feat(frontend): start settings
This commit is contained in:
parent
0c78cd25b0
commit
c179669799
13 changed files with 301 additions and 17 deletions
|
|
@ -1,6 +1,7 @@
|
|||
// place files you want to import through the `$lib` alias in this folder.
|
||||
|
||||
import type { Cookies } from "@sveltejs/kit";
|
||||
import { DateTime } from "luxon";
|
||||
|
||||
export const TOKEN_COOKIE_NAME = "__Host-pronounscc-token";
|
||||
|
||||
|
|
@ -10,3 +11,6 @@ export const clearToken = (cookies: Cookies) => cookies.delete(TOKEN_COOKIE_NAME
|
|||
|
||||
// TODO: change this to something we actually clearly have the rights to use
|
||||
export const DEFAULT_AVATAR = "https://pronouns.cc/default/512.webp";
|
||||
|
||||
export const idTimestamp = (id: string) =>
|
||||
DateTime.fromMillis(parseInt(id, 10) / (1 << 22) + 1_640_995_200_000);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue