demo project

This commit is contained in:
2023-02-21 12:36:06 +00:00
parent 751b6e753c
commit 57bfba5b8d
39 changed files with 4667 additions and 76 deletions

11
frontend/src/store.ts Normal file
View File

@@ -0,0 +1,11 @@
import { writable } from "svelte/store"
const initLoc = {
path: (typeof window !== "undefined" && window.location?.pathname) || "/",
search: (typeof window !== "undefined" && window.location?.search) || "",
hash: (typeof window !== "undefined" && window.location?.hash) || "",
push: false,
pop: false,
categoryPath: "",
}
export const location = writable(initLoc)