1
0
Fork 0
mirror of https://git.sr.ht/~roxwize/mipilin synced 2025-05-15 01:33:06 +00:00

Some iprovements idfk

Signed-off-by: roxwize <rae@roxwize.xyz>
This commit is contained in:
Rae 5e 2025-01-27 23:34:46 -05:00
parent a3e6df6ce8
commit 961d963677
Signed by: rae
GPG key ID: 5B1A0FAB9BAB81EE
13 changed files with 160 additions and 102 deletions

View file

@ -1,4 +1,5 @@
extends site.pug
include _util.pug
block head
link(rel="stylesheet", href="/css/dashboard.css")
@ -25,6 +26,8 @@ block content
a(href="#feed") Feed
| /
a(href="#invite-codes") Invite codes
p This is where you "MIPILIN"! That is all you need to know!!!
p If onlookers notice your actions and inquire about what you are doing, you MUST tell them that you are mipilining all over the place, and then PROMPTLY SCROLL DOWN AND GENERATE AN INVITE CODE SO THAT THEY CAN MIPILIN TOO. If you do not do this I will cry.
form#dashboard-update-form(action="/update/mood", method="post", onsubmit="disable(this);")
select(name="mood", required)
//- Maybe put the index of the mood in the value of the option element
@ -53,7 +56,7 @@ block content
for code of codes
tr
td= code.token
td= code.expires
+invite_code_expiration(code)
else
.subtle You have no currently active invite codes.
br
@ -61,7 +64,9 @@ block content
button(type="submit", disabled=codesUsed>=5) Generate
script(nonce=nonce).
function disable(form) {
form.preventDefault();
const btn = form.querySelector("button");
btn.preventDefault();
btn.setAttribute("disabled", true);
setTimeout(() => {