upgrade to svelte 5
This commit is contained in:
parent
fc9c9de719
commit
8ca76d21d0
@ -10,19 +10,19 @@
|
||||
"check": "svelte-check --tsconfig ./tsconfig.json"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@sveltejs/vite-plugin-svelte": "^1.0.1",
|
||||
"@sveltejs/vite-plugin-svelte": "^4.0.0",
|
||||
"@tsconfig/svelte": "^3.0.0",
|
||||
"autoprefixer": "^10.4.20",
|
||||
"flowbite": "^3.1.1",
|
||||
"flowbite-svelte": "^0.47.4",
|
||||
"flowbite-svelte-icons": "^2.0.2",
|
||||
"svelte": "^3.49.0",
|
||||
"svelte-check": "^2.8.0",
|
||||
"svelte-preprocess": "^4.10.7",
|
||||
"svelte-routing": "^2.13.0",
|
||||
"svelte": "^5.0.0",
|
||||
"svelte-check": "^4.0.0",
|
||||
"svelte-preprocess": "^6.0.0",
|
||||
"tailwindcss": "^3.4.9",
|
||||
"tslib": "^2.4.0",
|
||||
"typescript": "^4.6.4",
|
||||
"vite": "^3.0.7"
|
||||
"typescript": "^5.5.0",
|
||||
"vite": "^5.4.4"
|
||||
}
|
||||
}
|
||||
|
@ -1 +0,0 @@
|
||||
a5a8c3695f34d6c9bafb2ee7f70bf99a
|
File diff suppressed because it is too large
Load Diff
@ -1,22 +1,20 @@
|
||||
<script lang="ts">
|
||||
import "./app.css";
|
||||
import { Navbar, NavBrand, DarkMode } from "flowbite-svelte";
|
||||
import { Router, Route } from "svelte-routing";
|
||||
import { Router, Route, Link } from "svelte-routing";
|
||||
import Home from "./routes/Home.svelte";
|
||||
import "./app.css";
|
||||
export let url = "";
|
||||
import { Navbar, NavBrand, DarkMode } from "flowbite-svelte";
|
||||
let url: string = $state();
|
||||
</script>
|
||||
|
||||
<main class="flex-col h-screen items-center bg-gray-50 dark:bg-gray-800">
|
||||
<Router bind:url>
|
||||
<Navbar>
|
||||
<NavBrand>
|
||||
<span>Wails</span>
|
||||
<Link to="/">HOME</Link>
|
||||
</NavBrand>
|
||||
<DarkMode />
|
||||
</Navbar>
|
||||
<Router {url}>
|
||||
<div>
|
||||
<Route path="/"><Home /></Route>
|
||||
</div>
|
||||
</Router>
|
||||
</main>
|
||||
|
@ -1,7 +1,8 @@
|
||||
import './style.css'
|
||||
import App from './App.svelte'
|
||||
import { mount } from "svelte";
|
||||
|
||||
const app = new App({
|
||||
const app = mount(App, {
|
||||
target: document.getElementById('app')
|
||||
})
|
||||
|
||||
|
@ -1,7 +1,5 @@
|
||||
import sveltePreprocess from 'svelte-preprocess'
|
||||
|
||||
export default {
|
||||
// Consult https://github.com/sveltejs/svelte-preprocess
|
||||
// for more information about preprocessors
|
||||
preprocess: sveltePreprocess()
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user