Skip to content

Commit f18b7ea

Browse files
committed
feat: restructure global settings route and update sidebar navigation, enhance GlobalSettings view with DashboardLayout
1 parent 922994d commit f18b7ea

File tree

3 files changed

+26
-17
lines changed

3 files changed

+26
-17
lines changed

services/frontend/src/components/AppSidebar.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -216,10 +216,10 @@ onMounted(() => {
216216
<SidebarMenu>
217217
<SidebarMenuItem>
218218
<SidebarMenuButton
219-
@click="navigateTo('/global-settings')"
220-
:is-active="router.currentRoute.value.path === '/global-settings'"
219+
@click="navigateTo('/admin/settings')"
220+
:is-active="router.currentRoute.value.path === '/admin/settings'"
221221
class="w-full justify-start"
222-
:aria-current="router.currentRoute.value.path === '/global-settings' ? 'page' : undefined"
222+
:aria-current="router.currentRoute.value.path === '/admin/settings' ? 'page' : undefined"
223223
>
224224
<FileSliders class="mr-2 h-4 w-4 shrink-0" />
225225
<span>{{ t('sidebar.adminArea.globalSettings') }}</span>

services/frontend/src/router/index.ts

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,13 +68,18 @@ const routes = [
6868
meta: { requiresSetup: true },
6969
},
7070
{
71-
path: '/global-settings',
72-
name: 'GlobalSettings',
73-
component: () => import('../views/GlobalSettings.vue'),
71+
path: '/admin',
7472
meta: {
7573
requiresSetup: true,
7674
requiresRole: 'global_admin'
7775
},
76+
children: [
77+
{
78+
path: 'settings',
79+
name: 'AdminSettings',
80+
component: () => import('../views/GlobalSettings.vue'),
81+
},
82+
],
7883
},
7984
{
8085
path: '/:pathMatch(.*)*',
Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,20 @@
1-
<template>
2-
<div class="container mx-auto p-6">
3-
<h1 class="text-3xl font-bold mb-4">
4-
{{ t('globalSettings.title') }}
5-
</h1>
6-
<p class="text-gray-600">
7-
{{ t('globalSettings.description') }}
8-
</p>
9-
</div>
10-
</template>
11-
121
<script setup lang="ts">
2+
import DashboardLayout from '@/components/DashboardLayout.vue'
133
import { useI18n } from 'vue-i18n'
144
155
const { t } = useI18n()
166
</script>
7+
8+
<template>
9+
<DashboardLayout :title="t('globalSettings.title')">
10+
<div class="rounded-xl border bg-card text-card-foreground shadow">
11+
<div class="p-6">
12+
<h2 class="text-2xl font-bold">{{ t('globalSettings.title') }}</h2>
13+
<p class="text-muted-foreground mt-2">{{ t('globalSettings.description') }}</p>
14+
<div class="mt-6">
15+
<p class="text-sm text-muted-foreground">This page is under construction.</p>
16+
</div>
17+
</div>
18+
</div>
19+
</DashboardLayout>
20+
</template>

0 commit comments

Comments
 (0)