@@ -18,8 +18,8 @@ const items = computed<DropdownMenuItem[][]>(() => ([[{
1818 label: user .value ?.name || undefined ,
1919 avatar: {
2020 src: user .value ?.avatar || ' ' ,
21- alt: user .value ?.name || ' ' ,
22- },
21+ alt: user .value ?.name || ' '
22+ }
2323}], [{
2424 label: ' Theme' ,
2525 icon: ' i-lucide-palette' ,
@@ -29,7 +29,7 @@ const items = computed<DropdownMenuItem[][]>(() => ([[{
2929 chip: appConfig .ui .colors .primary ,
3030 content: {
3131 align: ' center' ,
32- collisionPadding: 16 ,
32+ collisionPadding: 16
3333 },
3434 children: colors .map (color => ({
3535 label: color ,
@@ -41,15 +41,15 @@ const items = computed<DropdownMenuItem[][]>(() => ([[{
4141 e .preventDefault ()
4242
4343 appConfig .ui .colors .primary = color
44- },
45- })),
44+ }
45+ }))
4646 }, {
4747 label: ' Neutral' ,
4848 slot: ' chip' ,
4949 chip: appConfig .ui .colors .neutral === ' neutral' ? ' old-neutral' : appConfig .ui .colors .neutral ,
5050 content: {
5151 align: ' end' ,
52- collisionPadding: 16 ,
52+ collisionPadding: 16
5353 },
5454 children: neutrals .map (color => ({
5555 label: color ,
@@ -61,9 +61,9 @@ const items = computed<DropdownMenuItem[][]>(() => ([[{
6161 e .preventDefault ()
6262
6363 appConfig .ui .colors .neutral = color
64- },
65- })),
66- }],
64+ }
65+ }))
66+ }]
6767}, {
6868 label: ' Appearance' ,
6969 icon: ' i-lucide-sun-moon' ,
@@ -76,7 +76,7 @@ const items = computed<DropdownMenuItem[][]>(() => ([[{
7676 e .preventDefault ()
7777
7878 colorMode .preference = ' light'
79- },
79+ }
8080 }, {
8181 label: ' Dark' ,
8282 icon: ' i-lucide-moon' ,
@@ -89,26 +89,26 @@ const items = computed<DropdownMenuItem[][]>(() => ([[{
8989 },
9090 onSelect(e : Event ) {
9191 e .preventDefault ()
92- },
93- }],
92+ }
93+ }]
9494}], [{
9595 label: ' Documentation' ,
9696 icon: ' i-lucide-book-open' ,
9797 to: ' https://auto-crud.clifland.in/' ,
98- target: ' _blank' ,
98+ target: ' _blank'
9999}, {
100100 label: ' GitHub repository' ,
101101 icon: ' i-simple-icons-github' ,
102102 to: ' https://github.com/clifordpereira/nuxt-auto-crud' ,
103- target: ' _blank' ,
103+ target: ' _blank'
104104}, {
105105 label: ' Log out' ,
106106 icon: ' i-lucide-log-out' ,
107107 onSelect : async () => {
108108 await $fetch (' /api/auth/logout' , { method: ' POST' })
109109 // Force a reload to ensure layout changes (admin -> guest) are applied
110110 window .location .href = ' /'
111- },
111+ }
112112}]]))
113113 </script >
114114
@@ -124,15 +124,15 @@ const items = computed<DropdownMenuItem[][]>(() => ([[{
124124 name: user?.name || undefined,
125125 avatar: user?.avatar ? { src: user.avatar, alt: user?.name || undefined } : undefined,
126126 label: collapsed ? undefined : (user?.name || undefined),
127- trailingIcon: collapsed ? undefined : 'i-lucide-chevrons-up-down',
127+ trailingIcon: collapsed ? undefined : 'i-lucide-chevrons-up-down'
128128 }"
129129 color =" neutral"
130130 variant =" ghost"
131131 block
132132 :square =" collapsed"
133133 class =" data-[state=open]:bg-elevated"
134134 :ui =" {
135- trailingIcon: 'text-dimmed',
135+ trailingIcon: 'text-dimmed'
136136 }"
137137 />
138138
@@ -142,7 +142,7 @@ const items = computed<DropdownMenuItem[][]>(() => ([[{
142142 class =" rounded-full ring ring-bg bg-(--chip-light) dark:bg-(--chip-dark) size-2"
143143 :style =" {
144144 '--chip-light': `var(--color-${(item as any).chip}-500)`,
145- '--chip-dark': `var(--color-${(item as any).chip}-400)`,
145+ '--chip-dark': `var(--color-${(item as any).chip}-400)`
146146 }"
147147 />
148148 </div >
0 commit comments