Skip to content

Commit 78ff3e4

Browse files
committed
feat(setup): add SetupView, setup route and Supabase initializer
1 parent fab0d66 commit 78ff3e4

3 files changed

Lines changed: 15 additions & 2 deletions

File tree

src/lib/supabase.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import { createClient } from '@supabase/supabase-js'
2+
3+
const supabaseUrl = process.env.VITE_SUPABASE_URL || 'https://xyzcompany.supabase.co'
4+
const supabaseKey = process.env.VITE_SUPABASE_ANON || 'public-anon-key'
5+
export const supabase = createClient(supabaseUrl, supabaseKey)

src/router/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { useUserStore } from '../store/user'
55
import { useAuthStore } from '../store/auth'
66

77
const routes: RouteRecordRaw[] = [
8-
{ path: '/', redirect: '/dashboard' },
8+
{ path: '/', redirect: '/setup' },
99
{ path: '/dashboard', name: 'Dashboard', component: () => import('../components/MainDashboard.vue'), meta: { roles: ['admin','vorstand','notenwart','mitglied'] } },
1010
{ path: '/library', name: 'Library', component: () => import('../views/LibraryView.vue'), meta: { roles: ['admin','notenwart','dirigent','mitglied'] } },
1111
{ path: '/members', name: 'Members', component: () => import('../views/MembersView.vue'), meta: { roles: ['admin','vorstand'] } },
@@ -18,7 +18,7 @@ const routes: RouteRecordRaw[] = [
1818
{ path: '/settings', name: 'Settings', component: () => import('../views/SettingsView.vue'), meta: { roles: ['admin'] } },
1919
{ path: '/import', name: 'MemberImport', component: () => import('../views/MemberImport.vue') },
2020
{ path: '/login', name: 'Login', component: () => import('../components/Login.vue') },
21-
{ path: '/setup', name: 'Setup', component: () => import('../components/SetupWizard.vue') }
21+
{ path: '/setup', name: 'Setup', component: () => import('../views/SetupView.vue') }
2222
]
2323

2424
const router = createRouter({ history: createWebHistory(), routes })

src/views/SetupView.vue

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<template>
2+
<h2>Setup</h2>
3+
<p>Hier kannst du die Konfiguration starten.</p>
4+
</template>
5+
6+
<script setup lang="ts">
7+
// Optional: Setup logic
8+
</script>

0 commit comments

Comments
 (0)