Graphical overhaul.

Remove all legacy pixeldrain pages, handlers and assets.
Remove old theming engine.
Make logo responsive to the accent colour.
Lots of other stuff.
This commit is contained in:
2026-10-01 02:06:00 +02:00
parent 7b2e4b4240
commit 58db683fc8
98 changed files with 1025 additions and 6475 deletions

View File

@@ -51,21 +51,8 @@ export type Subscription = {
// Utility funcs
// =============
export const get_endpoint = () => {
if ((window as any).api_endpoint !== undefined) {
return (window as any).api_endpoint as string
}
console.warn("api_endpoint property is not defined on window")
return "/api"
}
export const get_hostname = () => {
if ((window as any).server_hostname !== undefined) {
return (window as any).server_hostname as string
}
console.warn("server_hostname property is not defined on window")
return "undefined"
}
export const get_endpoint = () => window.api_endpoint
export const get_hostname = () => window.server_hostname
export const check_response = async (resp: Response) => {
let text = await resp.text()
@@ -111,8 +98,8 @@ export type UserSession = {
}
// If cached_user is undefined it means that the value is not initialized yet,
// null means the user is not logged in
let cached_user: User = undefined
// null means the user is not logged in. Some pages have it embedded by the server
let cached_user: User = window.user
// The request which is currently in flight. Callers which arrive while the
// request is still running share this promise, so the user is only requested