temporary signout fix, small aesthetics

This commit is contained in:
metacryst
2026-01-12 14:27:19 -06:00
parent 419c8b1151
commit 63304bd281
6 changed files with 13 additions and 5 deletions

View File

@@ -20,7 +20,10 @@ img(`db/images/${networks[i].logo}`, "2.25em", "2.25em")
quill gotchas quill gotchas
image width / height img element: width, height, x, and y do not work as usual. You have to put width and height in the constructor, and x and y should be "left" and "top" (or "bottom" and "right")
img(`db/images/${networks[i].logo}`, "2.25em", "2.25em")
forgetting to put a "/" at the beginning of the url for window.navigateTo (if you don't want to add to the existing url) forgetting to put a "/" at the beginning of the url for window.navigateTo (if you don't want to add to the existing url)
forgetting to define the event callback with or without the word "function", like so: forgetting to define the event callback with or without the word "function", like so:

View File

@@ -33,13 +33,13 @@ class Server {
router.get('/signout', this.auth.logout) router.get('/signout', this.auth.logout)
/* Site */ /* Site */
router.post('/signup', this.verifyToken, this.newUserSubmission) router.post('/signup', this.verifySignupToken, this.newUserSubmission)
router.get('/db/images/*', this.getUserImage) router.get('/db/images/*', this.getUserImage)
router.get('/*', this.get) router.get('/*', this.get)
return router return router
} }
verifyToken = (req, res, next) => { verifySignupToken = (req, res, next) => {
const { token } = req.query; const { token } = req.query;
if (!token) { if (!token) {
return res.status(400).json({ error: 'Token is required' }); return res.status(400).json({ error: 'Token is required' });

View File

@@ -4,7 +4,7 @@
--accent: black; --accent: black;
--accent2: black; --accent2: black;
--parchment: #FFEBCC; --parchment: #FEBA7D;
--gold: #FEBA7D; --gold: #FEBA7D;
--divider: #bb7c36; --divider: #bb7c36;
--green: #0857265c; --green: #0857265c;

View File

@@ -32,7 +32,6 @@ class Home extends Shadow {
.border("1px solid var(--accent)") .border("1px solid var(--accent)")
.attr({value: "dark"}) .attr({value: "dark"})
.onChange((e) => { .onChange((e) => {
console.log("onchange")
document.documentElement.className = e.target.value document.documentElement.className = e.target.value
localStorage.setItem("theme", e.target.value); localStorage.setItem("theme", e.target.value);
const event = new CustomEvent('themechange', { const event = new CustomEvent('themechange', {

View File

@@ -40,6 +40,10 @@ class Sidebar extends Shadow {
.height(100, vh) .height(100, vh)
.borderRight("1px solid var(--accent)") .borderRight("1px solid var(--accent)")
.zIndex(3) .zIndex(3)
.onEvent("themechange", () => {
console.log("change")
this.rerender()
})
} }
} }

View File

@@ -127,6 +127,8 @@ class Home extends Shadow {
SignupForm() SignupForm()
} else if(window.location.pathname.startsWith("/login")) { } else if(window.location.pathname.startsWith("/login")) {
SignIn() SignIn()
} else {
SignIn()
} }
} }
}) })