feat(#5): use auth

This commit is contained in:
Sirttas
2026-06-28 14:18:09 +02:00
parent e7249df23f
commit 61fbc8e16b
11 changed files with 1263 additions and 26 deletions
+9 -3
View File
@@ -1,5 +1,11 @@
import {RouteRecordRaw} from 'vue-router';
declare module 'vue-router' {
interface RouteMeta {
public?: boolean;
}
}
export const routeNames = {
home: 'home',
callback: 'callback',
@@ -15,8 +21,8 @@ export const routeNames = {
} as const;
export const routes: RouteRecordRaw[] = [
{path: '/', name: routeNames.home, component: () => import('@/pages/Index.vue')},
{path: '/callback', name: routeNames.callback, component: () => import('@/pages/Index.vue')},
{path: '/', name: routeNames.home, component: () => import('@/pages/Index.vue'), meta: {public: true}},
{path: '/callback', name: routeNames.callback, component: () => import('@/pages/Index.vue'), meta: {public: true}},
{path: '/ledgers', component: () => import('@/pages/Ledgers.vue'), children: [
{path: '', component: () => import('@/pages/ledger/ListLedgers.vue')},
@@ -52,5 +58,5 @@ export const routes: RouteRecordRaw[] = [
{path: '/tools', component: () => import('@/pages/Tools.vue')},
{path: '/characters', component: () => import('@/pages/Characters.vue')},
{path: '/about', name: routeNames.about, component: () => import('@/pages/About.vue')},
{path: '/about', name: routeNames.about, component: () => import('@/pages/About.vue'), meta: {public: true}},
] as const;