2023-07-13 13:12:19 +02:00
|
|
|
<script lang="ts">
|
2023-07-13 15:20:36 +02:00
|
|
|
import { location } from "./store"
|
2023-07-13 13:12:19 +02:00
|
|
|
|
|
|
|
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,
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2023-07-13 16:28:54 +02:00
|
|
|
if (typeof window !== "undefined") console.log("App initialized")
|
2023-07-13 13:12:19 +02:00
|
|
|
</script>
|
|
|
|
|
2023-07-13 16:28:54 +02:00
|
|
|
<h1>Hello Worlddg g</h1>
|
|
|
|
|
|
|
|
<style lang="less">
|
|
|
|
@font-face {
|
|
|
|
font-display: swap;
|
|
|
|
font-family: "Libre Franklin";
|
|
|
|
font-style: normal;
|
|
|
|
font-weight: 400;
|
|
|
|
src: url("./lib/assets/fonts/libre-franklin-v13-latin-regular.woff2") format("woff2");
|
|
|
|
}
|
|
|
|
</style>
|