initial 1312 funktioniert ein bisschen
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
<h2>Einloggen</h2>
|
||||
<form hx-post="/auth/login" hx-target="#auth-rendertarget" hx-indicator=".loading">
|
||||
<input type="text" name="user" placeholder="Nutzername" value="{{ username }}"><br>
|
||||
<input type="password" name="pass" placeholder="Passphrase"><br>
|
||||
<label>Automatisch abmelden in:</label>
|
||||
<select name="timeout">
|
||||
<option value="1200">20 Minuten</option>
|
||||
<option value="3600" selected="selected">1 Stunde</option>
|
||||
<option value="18000">5 Stunden</option>
|
||||
<option value="86400">24 Stunden</option>
|
||||
<option value="31536000">1 Jahr</option>
|
||||
</select>
|
||||
<button type="submit">Anmelden</button>
|
||||
<div>
|
||||
{{response}}
|
||||
</div>
|
||||
</form>
|
||||
@@ -0,0 +1,3 @@
|
||||
<h1>Willkommen, {{username}}!</h1>
|
||||
|
||||
<button hx-get="/auth/logout" hx-swap="outerHTML">Abmelden...</button>
|
||||
@@ -0,0 +1,15 @@
|
||||
<h2>Neuen Account registrieren</h2>
|
||||
<form hx-post="/auth/newuser" hx-target="#auth-rendertarget" method="post">
|
||||
<input type="text" name="user" placeholder="Nutzername" value="{{ username }}"><br>
|
||||
<input type="password" name="pass1" placeholder="Passphrase"><br>
|
||||
<input type="password" name="pass2" placeholder="Passphrase wiederholen"><br>
|
||||
<label><input type="checkbox" name="pass2"> Ich bin mit der <a href="">Datenschutzerklärung</a> einverstanden!</label>
|
||||
<button type="submit">Account registrieren!</button>
|
||||
|
||||
<div>
|
||||
{% for r in responses %}
|
||||
{{ r }} <br>
|
||||
{% endfor %}
|
||||
</div>
|
||||
</form>
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
<h2>Willkommen im Kontrollverlust!</h2>
|
||||
@@ -0,0 +1,5 @@
|
||||
Sessionid: {{ sessionid }} <br>
|
||||
UID: {{ uid }} <br>
|
||||
Created: {{ created_at | timestamp }} <br>
|
||||
Expires: {{ expires | timestamp }} <br>
|
||||
Description: {{ description }} <br>
|
||||
@@ -0,0 +1,31 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
||||
<title>{% block title %}{% endblock %}</title>
|
||||
<link rel="stylesheet" href="/static/css/main.css">
|
||||
<script
|
||||
src="https://cdn.jsdelivr.net/npm/htmx.org@2.0.8/dist/htmx.min.js"
|
||||
integrity="sha384-/TgkGk7p307TH7EXJDuUlgG3Ce1UVolAOFopFekQkkXihi5u/6OCvVKyz1W+idaz"
|
||||
crossorigin="anonymous">
|
||||
</script>
|
||||
<script
|
||||
src="https://code.jquery.com/jquery-3.7.1.min.js"
|
||||
integrity="sha256-/JqT3SQfawRcv/BIHPThkBvs0OEvtFFmqPF/lYI/Cxo="
|
||||
crossorigin="anonymous">
|
||||
</script>
|
||||
<script src="/static/js/main.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<a href="/docs/impressum.html">Impressum</a>
|
||||
<a href="/docs/datenschutz.html">Datenschutz</a>
|
||||
<a href="/docs/kontakt.html">Kontakt</a>
|
||||
<div class="htmx-indicator loading"></div>
|
||||
<h1>Kontrollverlust</h1>
|
||||
<span>Verbuggte scheise hier. Komm hack mich doch, trau dich!</span>
|
||||
<div hx-get="/header" hx-trigger="load"></div>
|
||||
{% block content %}{% endblock %}
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,15 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
||||
<title>Database</title>
|
||||
<link rel="stylesheet" href="style.css">
|
||||
</head>
|
||||
<body>
|
||||
{% for tablename in tables %}
|
||||
<a href="/database/{{ tablename[0] }}">{{ tablename[0] }}</a><br>
|
||||
{% endfor %}
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,9 @@
|
||||
<table>
|
||||
{% for row in data %}
|
||||
<tr>
|
||||
{% for column in row %}
|
||||
<td>{{ column }}</td>
|
||||
{% endfor %}
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</table>
|
||||
@@ -0,0 +1,11 @@
|
||||
<form hx-post="/entry/create" hx-target="#entry-rendertarget" method="post" enctype="multipart/form-data">
|
||||
<textarea name="content"></textarea>
|
||||
<input type="file" name="file">
|
||||
<button type="submit">Beitrag erstellen!</button>
|
||||
|
||||
<div>
|
||||
{% for r in responses %}
|
||||
{{ r }} <br>
|
||||
{% endfor %}
|
||||
</div>
|
||||
</form>
|
||||
@@ -0,0 +1,15 @@
|
||||
{% for p in posts %}
|
||||
|
||||
<div class="post">
|
||||
<div class="meta">
|
||||
{{ p[6] }} - {{ p[3] | timestamp }} <br>
|
||||
</div>
|
||||
<div class="content">
|
||||
{{ p[4] }}
|
||||
</div>
|
||||
{% if p[5] != 'none' %}
|
||||
<img src="/{{ p[5] }}">
|
||||
{% endif %}
|
||||
</div>
|
||||
|
||||
{% endfor %}
|
||||
@@ -0,0 +1,6 @@
|
||||
<button onclick="$('#auth-visible').show()" hx-get="/auth/login" hx-target="#auth-rendertarget">Anmelden</button>
|
||||
<button onclick="$('#auth-visible').show()" hx-get="/auth/newuser" hx-target="#auth-rendertarget">Account erstellen</button>
|
||||
<div id="auth-visible">
|
||||
<div id="auth-rendertarget"></div>
|
||||
<button onclick="$('#auth-visible').hide()">Abbrechen</button>
|
||||
</div>
|
||||
@@ -0,0 +1,15 @@
|
||||
{% extends "baseof.html" %}
|
||||
|
||||
{% block title %}Index{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
|
||||
<hr>
|
||||
|
||||
<div hx-get="/entry/create" hx-trigger="load" id="entry-rendertarget"></div>
|
||||
|
||||
<hr>
|
||||
|
||||
<div hx-get="/entry/feed/0" hx-trigger="load, every 5s"></div>
|
||||
|
||||
{% endblock %}
|
||||
@@ -0,0 +1,22 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
||||
<title>My new Site!</title>
|
||||
<link rel="stylesheet" href="style.css">
|
||||
</head>
|
||||
<body>
|
||||
<h1>Upload new File</h1>
|
||||
<span>{{ state }}</span>
|
||||
<form method="post" enctype="multipart/form-data">
|
||||
<input type=file name=file>
|
||||
<input type=submit value=Upload>
|
||||
</form>
|
||||
|
||||
{% for id in imagedata %}
|
||||
{{ id }}
|
||||
{% endfor %}
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user