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

View File

@@ -0,0 +1,22 @@
<script lang="ts">
import { location } from "../store"
export let url = ""
if (url) {
// ssr
let l = url.split("?")
$location = {
path: l[0],
search: l.length > 1 ? l[1] : "",
hash: "",
categoryPath: l[0].replace(/\/[^_\/]+_[^\/]+$/, ""),
push: false,
pop: false,
}
}
if (typeof window !== "undefined") console.log("App initialized")
</script>
<h1>Hello World</h1>