Skip to content

Commit db3665f

Browse files
committed
cleaning up and documentating
1 parent b13a146 commit db3665f

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,9 @@ resources/js/
4444
├── components/ # Reusable Vue components
4545
├── composables/ # Vue composables/hooks
4646
├── layouts/ # Application layouts
47+
├── lib/ # Utility functions and configurations
4748
├── pages/ # Page components
48-
└── lib/ # Utility functions and configurations
49+
└── types/ # Typescript definitions and interfaces
4950
```
5051

5152
**Components**: Use PascalCase for component files

resources/js/components/NavUser.vue

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
import { defineComponent } from 'vue';
33
import { ChevronsUpDown, LogOut, Settings } from 'lucide-vue-next';
44
import { Link, usePage } from '@inertiajs/vue3';
5+
import { User } from '@/types';
56
import {
67
Avatar,
78
AvatarFallback,
@@ -22,12 +23,6 @@ import {
2223
SidebarMenuItem,
2324
} from '@/components/ui/sidebar';
2425
25-
interface User {
26-
name: string;
27-
email: string;
28-
avatar?: string;
29-
}
30-
3126
function getInitials(fullName: string): string {
3227
const names = fullName.trim().split(' ');
3328
if (names.length === 0) return '';

resources/js/types/index.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
import { LucideIcon } from 'lucide-react'
22

3+
export interface Auth {
4+
user: User
5+
}
6+
37
export interface BreadcrumbItem {
48
title: string
59
href: string

0 commit comments

Comments
 (0)