forked from lapikud/lapikud.github.io
refactor(vue): migrate app, routes, and tooling from Svelte
Replace the Svelte runtime, Vite plugin, Storybook adapter, and component files with Vue 3 equivalents while preserving the existing route table, page markup, styling, assets, deployment shape, and npm workflows. Move shared and page-level state onto Vue refs, computed values, lifecycle hooks, and script setup components. Recreate the custom async router and translation composable as Vue-native modules so navigation and bilingual content continue to work without introducing a router or state-management dependency. Adopt the maintained @lucide/vue package, remove the Svelte icon and map wrappers, and initialize MapLibre directly on the Helpdesk page. Replace the Svelte CSF story with a Vue Storybook story, remove obsolete aliases and generation/config files, and update the audited lockfile with no known vulnerabilities.
This commit is contained in:
18
src/App.vue
Normal file
18
src/App.vue
Normal file
@@ -0,0 +1,18 @@
|
||||
<script setup>
|
||||
import { Router, text } from "./lib/index.js";
|
||||
import { routes } from "./routes/index.js";
|
||||
import Navbar from "./layout/Navbar.vue";
|
||||
import Footer from "./layout/Footer.vue";
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<template v-if="Object.keys(text).length > 0">
|
||||
<Navbar />
|
||||
<main class="min-h-screen flex flex-col">
|
||||
<div class="flex-1 flex flex-col">
|
||||
<Router :routes="routes" />
|
||||
</div>
|
||||
<Footer />
|
||||
</main>
|
||||
</template>
|
||||
</template>
|
||||
Reference in New Issue
Block a user