diff --git a/src/components/dashboard/AppSidebar.vue b/src/components/dashboard/AppSidebar.vue index c1678c0..ce6ad46 100644 --- a/src/components/dashboard/AppSidebar.vue +++ b/src/components/dashboard/AppSidebar.vue @@ -23,6 +23,14 @@ import { SidebarFooter, SidebarHeader, } from "@/components/ui/sidebar" + +defineProps<{ + activeTab?: string +}>() + +const emit = defineEmits<{ + 'update:activeTab': [value: string] +}>() \ No newline at end of file + diff --git a/src/components/dashboard/NavDocuments.vue b/src/components/dashboard/NavDocuments.vue index 6ed9613..5461522 100644 --- a/src/components/dashboard/NavDocuments.vue +++ b/src/components/dashboard/NavDocuments.vue @@ -26,6 +26,14 @@ const documentItems = [ { name: 'nav.wordAssistant', icon: IconFileWord, id: 'word-assistant' }, { name: 'nav.templates', icon: IconFileDescription, id: 'templates' }, ] + +defineProps<{ + activeTab?: string +}>() + +const emit = defineEmits<{ + 'update:activeTab': [value: string] +}>() \ No newline at end of file + diff --git a/src/components/dashboard/NavMain.vue b/src/components/dashboard/NavMain.vue index f3f44b8..44f70fa 100644 --- a/src/components/dashboard/NavMain.vue +++ b/src/components/dashboard/NavMain.vue @@ -30,6 +30,11 @@ const mainNavItems = [ defineProps<{ items?: { title: string; url: string; icon?: Component }[] + activeTab?: string +}>() + +const emit = defineEmits<{ + 'update:activeTab': [value: string] }>() @@ -49,7 +54,11 @@ defineProps<{ - + {{ t(item.title) }} @@ -57,4 +66,4 @@ defineProps<{ - \ No newline at end of file + diff --git a/src/components/dashboard/SectionCards.vue b/src/components/dashboard/SectionCards.vue index 6e9e73b..6291770 100644 --- a/src/components/dashboard/SectionCards.vue +++ b/src/components/dashboard/SectionCards.vue @@ -10,95 +10,41 @@ import { CardHeader, CardTitle, } from "@/components/ui/card" + +interface CardData { + label: string + value: string + trend: string + up: boolean +} + +defineProps<{ + cards?: CardData[] +}>()