File tree Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Expand file tree Collapse file tree 3 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -44,8 +44,9 @@ resources/js/
44
44
├── components/ # Reusable Vue components
45
45
├── composables/ # Vue composables/hooks
46
46
├── layouts/ # Application layouts
47
+ ├── lib/ # Utility functions and configurations
47
48
├── pages/ # Page components
48
- └── lib / # Utility functions and configurations
49
+ └── types / # Typescript definitions and interfaces
49
50
```
50
51
51
52
** Components** : Use PascalCase for component files
Original file line number Diff line number Diff line change 2
2
import { defineComponent } from ' vue' ;
3
3
import { ChevronsUpDown , LogOut , Settings } from ' lucide-vue-next' ;
4
4
import { Link , usePage } from ' @inertiajs/vue3' ;
5
+ import { User } from ' @/types' ;
5
6
import {
6
7
Avatar ,
7
8
AvatarFallback ,
@@ -22,12 +23,6 @@ import {
22
23
SidebarMenuItem ,
23
24
} from ' @/components/ui/sidebar' ;
24
25
25
- interface User {
26
- name: string ;
27
- email: string ;
28
- avatar? : string ;
29
- }
30
-
31
26
function getInitials(fullName : string ): string {
32
27
const names = fullName .trim ().split (' ' );
33
28
if (names .length === 0 ) return ' ' ;
Original file line number Diff line number Diff line change 1
1
import { LucideIcon } from 'lucide-react'
2
2
3
+ export interface Auth {
4
+ user : User
5
+ }
6
+
3
7
export interface BreadcrumbItem {
4
8
title : string
5
9
href : string
You can’t perform that action at this time.
0 commit comments