forked from cms/tibi-svelte-starter
sourcemap tests
This commit is contained in:
@@ -1,29 +1,8 @@
|
||||
<h1>__PROJECT_TITLE__</h1>
|
||||
|
||||
<div use:links>
|
||||
<a href="/test1">1</a>
|
||||
<a href="/test2">2</a>
|
||||
<a href="/test3">3</a>
|
||||
<a href="/test4">4</a>
|
||||
<Router url="{url}">
|
||||
<Route path="/*path" let:params>
|
||||
<Content path="/{params.path}" />
|
||||
</Route>
|
||||
</Router>
|
||||
</div>
|
||||
|
||||
<style lang="less">
|
||||
@import "./../css/main.less";
|
||||
h1 {
|
||||
color: red;
|
||||
}
|
||||
</style>
|
||||
|
||||
<script lang="typescript">
|
||||
import { Router, Route, links } from "svelte-routing"
|
||||
// import { Router, Route, links } from "svelte-routing"
|
||||
import { scrollToTop } from "svelte-scrollto"
|
||||
import { location } from "../store"
|
||||
import Content from "./Content.svelte"
|
||||
import Content from "./routes/Content.svelte"
|
||||
|
||||
export let url = ""
|
||||
if (url) {
|
||||
@@ -45,3 +24,26 @@
|
||||
|
||||
if (typeof window !== "undefined") console.log("App initialized")
|
||||
</script>
|
||||
|
||||
<style lang="less" global>
|
||||
@import "./../css/main.less";
|
||||
h1 {
|
||||
color: red;
|
||||
}
|
||||
</style>
|
||||
|
||||
<h1>__PROJECT_TITLE__</h1>
|
||||
|
||||
<Content path="test" />
|
||||
|
||||
<!-- <div use:links>
|
||||
<a href="/test1">1</a>
|
||||
<a href="/test2">2</a>
|
||||
<a href="/test3">3</a>
|
||||
<a href="/test4">4</a>
|
||||
<Router url="{url}">
|
||||
<Route path="/*path" let:params>
|
||||
<Content path="/{params.path}" />
|
||||
</Route>
|
||||
</Router>
|
||||
</div> -->
|
||||
|
||||
Reference in New Issue
Block a user