Formatting some things
This commit is contained in:
parent
73a0c2bdd4
commit
d8ce50a897
2 changed files with 16 additions and 18 deletions
|
@ -133,6 +133,7 @@ def protected():
|
||||||
"""
|
"""
|
||||||
return {'message': f'protected endpoint (allowed user {flask_praetorian.current_user().username})'}
|
return {'message': f'protected endpoint (allowed user {flask_praetorian.current_user().username})'}
|
||||||
|
|
||||||
|
|
||||||
@app.route('/api/register', methods=['POST'])
|
@app.route('/api/register', methods=['POST'])
|
||||||
def register():
|
def register():
|
||||||
req = flask.request.get_json(force=True)
|
req = flask.request.get_json(force=True)
|
||||||
|
|
|
@ -19,28 +19,25 @@ function Navbar() {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
const isLoggedIn = useAuth();
|
||||||
|
|
||||||
/* Shows the button after resizing the screen */
|
/* Shows the button after resizing the screen */
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
showButton();
|
showButton();
|
||||||
}, []);
|
}, []);
|
||||||
window.addEventListener("resize", showButton);
|
window.addEventListener("resize", showButton);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
{" "}
|
|
||||||
<nav className="navbar">
|
<nav className="navbar">
|
||||||
{" "}
|
|
||||||
<div className="navbar-container">
|
<div className="navbar-container">
|
||||||
{" "}
|
|
||||||
<Link to="/" className="navbar-logo" onClick={closeMobileMenu}>
|
<Link to="/" className="navbar-logo" onClick={closeMobileMenu}>
|
||||||
{" "}
|
|
||||||
Bachelorarbeit Marco Camenzind{" "}
|
Bachelorarbeit Marco Camenzind{" "}
|
||||||
</Link>{" "}
|
</Link>
|
||||||
<div className="menu-icon" onClick={handleClick}>
|
<div className="menu-icon" onClick={handleClick}>
|
||||||
{" "}
|
<i className={click ? "fas fa-times" : "fas fa-bars"} />
|
||||||
<i className={click ? "fas fa-times" : "fas fa-bars"} />{" "}
|
</div>
|
||||||
</div>{" "}
|
|
||||||
<ul className={click ? "nav-menu active" : "nav-menu"}>
|
<ul className={click ? "nav-menu active" : "nav-menu"}>
|
||||||
{" "}
|
|
||||||
<li className="nav-item">
|
<li className="nav-item">
|
||||||
<Link to="/" className="nav-links" onClick={closeMobileMenu}>
|
<Link to="/" className="nav-links" onClick={closeMobileMenu}>
|
||||||
Startseite
|
Startseite
|
||||||
|
|
Loading…
Reference in a new issue