Add router and tailwind
This commit is contained in:
@@ -17,6 +17,13 @@
|
|||||||
"svelte-preprocess": "^4.10.7",
|
"svelte-preprocess": "^4.10.7",
|
||||||
"tslib": "^2.4.0",
|
"tslib": "^2.4.0",
|
||||||
"typescript": "^4.6.4",
|
"typescript": "^4.6.4",
|
||||||
"vite": "^3.0.7"
|
"vite": "^3.0.7",
|
||||||
|
"svelte-spa-router": "^4.0.1",
|
||||||
|
"svelte-fa": "^4.0.2",
|
||||||
|
"tailwindcss": "^3.4.3"
|
||||||
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"chart.js": "^4.4.3",
|
||||||
|
"svelte-chartjs": "^3.1.5"
|
||||||
}
|
}
|
||||||
}
|
}
|
@@ -1 +1 @@
|
|||||||
ad9da3c17151b053a4d2fda8e3578901
|
d9cd4918e23adada21d6ec5bb7972896
|
1617
frontend/pnpm-lock.yaml
generated
Normal file
1617
frontend/pnpm-lock.yaml
generated
Normal file
File diff suppressed because it is too large
Load Diff
@@ -1,5 +1,6 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import Header from "$lib/components/Header.svelte";
|
import Header from "$lib/components/Header.svelte";
|
||||||
|
import Router from "$lib/router/Router.svelte";
|
||||||
import { Greet } from "../wailsjs/go/main/App.js";
|
import { Greet } from "../wailsjs/go/main/App.js";
|
||||||
|
|
||||||
let resultText: string = "Please enter your name below 👇";
|
let resultText: string = "Please enter your name below 👇";
|
||||||
|
0
frontend/src/lib/components/Energy/Energy.svelte
Normal file
0
frontend/src/lib/components/Energy/Energy.svelte
Normal file
10
frontend/src/lib/router/Router.svelte
Normal file
10
frontend/src/lib/router/Router.svelte
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
<script lang="ts">
|
||||||
|
import Router from 'svelte-spa-router'
|
||||||
|
import Energy from '$lib/components/Energy/Energy.svelte'
|
||||||
|
|
||||||
|
const routes = {
|
||||||
|
'/': Energy,
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<Router {routes} />
|
Reference in New Issue
Block a user