Skip to content

Commit 2216867

Browse files
committed
fix conflicts
2 parents 8c15254 + 56b3d93 commit 2216867

File tree

76 files changed

+158
-311
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

76 files changed

+158
-311
lines changed

app/Http/Middleware/HandleInertiaRequests.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ public function share(Request $request): array
5050
...(new Ziggy)->toArray(),
5151
'location' => $request->url(),
5252
],
53+
'sidebarOpen' => ! $request->hasCookie('sidebar_state') || $request->cookie('sidebar_state') === 'true',
5354
];
5455
}
5556
}

bootstrap/app.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
health: '/up',
1515
)
1616
->withMiddleware(function (Middleware $middleware) {
17-
$middleware->encryptCookies(except: ['appearance']);
17+
$middleware->encryptCookies(except: ['appearance', 'sidebar_state']);
1818

1919
$middleware->web(append: [
2020
HandleAppearance::class,

components.json

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
{
2-
"$schema": "https://shadcn-vue.com/schema.json",
3-
"style": "default",
4-
"typescript": true,
5-
"tailwind": {
6-
"config": "tailwind.config.js",
7-
"css": "resources/css/app.css",
8-
"baseColor": "neutral",
9-
"cssVariables": true,
10-
"prefix": ""
11-
},
12-
"aliases": {
13-
"components": "@/components",
14-
"composables": "@/composables",
15-
"utils": "@/lib/utils",
16-
"ui": "@/components/ui",
17-
"lib": "@/lib"
18-
},
19-
"iconLibrary": "lucide"
2+
"$schema": "https://shadcn-vue.com/schema.json",
3+
"style": "default",
4+
"typescript": true,
5+
"tailwind": {
6+
"config": "tailwind.config.js",
7+
"css": "resources/css/app.css",
8+
"baseColor": "neutral",
9+
"cssVariables": true,
10+
"prefix": ""
11+
},
12+
"aliases": {
13+
"components": "@/components",
14+
"composables": "@/composables",
15+
"utils": "@/lib/utils",
16+
"ui": "@/components/ui",
17+
"lib": "@/lib"
18+
},
19+
"iconLibrary": "lucide"
2020
}

package-lock.json

Lines changed: 29 additions & 129 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"laravel-vite-plugin": "^1.0",
3434
"lucide": "^0.468.0",
3535
"lucide-vue-next": "^0.468.0",
36-
"radix-vue": "^1.9.11",
36+
"reka-ui": "^2.0.0",
3737
"tailwind-merge": "^2.5.5",
3838
"tailwindcss": "^3.4.1",
3939
"tailwindcss-animate": "^1.0.7",

resources/js/components/AppShell.vue

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,22 @@
11
<script setup lang="ts">
22
import { SidebarProvider } from '@/components/ui/sidebar';
3-
import { onMounted, ref } from 'vue';
3+
import { usePage } from '@inertiajs/vue3';
4+
import { SharedData } from '@/types';
45
56
interface Props {
67
variant?: 'header' | 'sidebar';
78
}
89
910
defineProps<Props>();
1011
11-
const isOpen = ref(true);
12-
13-
onMounted(() => {
14-
isOpen.value = localStorage.getItem('sidebar') !== 'false';
15-
});
16-
17-
const handleSidebarChange = (open: boolean) => {
18-
isOpen.value = open;
19-
localStorage.setItem('sidebar', String(open));
20-
};
12+
const isOpen = usePage<SharedData>().props.sidebarOpen;
2113
</script>
2214

2315
<template>
2416
<div v-if="variant === 'header'" class="flex min-h-screen w-full flex-col">
2517
<slot />
2618
</div>
27-
<SidebarProvider v-else :default-open="isOpen" :open="isOpen" @update:open="handleSidebarChange">
19+
<SidebarProvider v-else :default-open="isOpen">
2820
<slot />
2921
</SidebarProvider>
3022
</template>

resources/js/components/NavMain.vue

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,10 @@ const page = usePage<SharedData>();
1515
<SidebarGroupLabel>Platform</SidebarGroupLabel>
1616
<SidebarMenu>
1717
<SidebarMenuItem v-for="item in items" :key="item.title">
18-
<SidebarMenuButton as-child :is-active="item.href === page.url">
18+
<SidebarMenuButton
19+
as-child :is-active="item.href === page.url"
20+
:tooltip="item.title"
21+
>
1922
<Link :href="item.href">
2023
<component :is="item.icon" />
2124
<span>{{ item.title }}</span>

resources/js/components/NavUser.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ const { isMobile, state } = useSidebar();
2222
<ChevronsUpDown class="ml-auto size-4" />
2323
</SidebarMenuButton>
2424
</DropdownMenuTrigger>
25-
<DropdownMenuContent
26-
class="w-[--radix-dropdown-menu-trigger-width] min-w-56 rounded-lg"
25+
<DropdownMenuContent
26+
class="w-[--reka-dropdown-menu-trigger-width] min-w-56 rounded-lg"
2727
:side="isMobile ? 'bottom' : state === 'collapsed' ? 'left' : 'bottom'"
2828
align="end"
2929
:side-offset="4"

resources/js/components/ui/avatar/Avatar.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<script setup lang="ts">
22
import { cn } from '@/lib/utils';
3-
import { AvatarRoot } from 'radix-vue';
3+
import { AvatarRoot } from 'reka-ui';
44
import type { HTMLAttributes } from 'vue';
55
import { avatarVariant, type AvatarVariants } from '.';
66

resources/js/components/ui/avatar/AvatarFallback.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<script setup lang="ts">
2-
import { AvatarFallback, type AvatarFallbackProps } from 'radix-vue';
2+
import { AvatarFallback, type AvatarFallbackProps } from 'reka-ui';
33
44
const props = defineProps<AvatarFallbackProps>();
55
</script>

0 commit comments

Comments
 (0)