Skip to content

Commit 9f166ff

Browse files
committed
fix conflicts
2 parents 3c122b1 + ca4bbb6 commit 9f166ff

21 files changed

+5515
-108
lines changed

package-lock.json

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

resources/css/app.css

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,11 @@
22
@tailwind components;
33
@tailwind utilities;
44

5+
body,
6+
html {
7+
--font-sans: 'Inter var', ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol', 'Noto Color Emoji';
8+
}
9+
510
@layer base {
611
:root {
712
--background: 0 0% 100%;
@@ -50,7 +55,7 @@
5055
--primary-foreground: 0 0% 9%;
5156
--secondary: 0 0% 14.9%;
5257
--secondary-foreground: 0 0% 98%;
53-
--muted: 0 0% 14.9%;
58+
--muted: 0 0% 6.9%;
5459
--muted-foreground: 0 0% 63.9%;
5560
--accent: 0 0% 14.9%;
5661
--accent-foreground: 0 0% 98%;

resources/js/components/AppHeader.vue

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import UserMenuContent from '@/components/UserMenuContent.vue';
1717
import { getInitials } from '@/composables/useInitials';
1818
import type { BreadcrumbItem, NavItem } from '@/types';
1919
import { Link, usePage } from '@inertiajs/vue3';
20-
import { BookOpenText, ChevronDown, FolderGit2, LayoutGrid, Menu, Search } from 'lucide-vue-next';
20+
import { BookOpen, Folder, LayoutGrid, Menu, Search } from 'lucide-vue-next';
2121
import { computed } from 'vue';
2222
2323
interface Props {
@@ -35,9 +35,7 @@ const isCurrentRoute = (url: string) => {
3535
return page.url === url;
3636
};
3737
38-
const activeItemStyles = computed(
39-
() => (url: string) => (isCurrentRoute(url) ? 'bg-neutral-100 text-neutral-900 dark:bg-neutral-800 dark:text-neutral-100' : ''),
40-
);
38+
const activeItemStyles = computed(() => (url: string) => (isCurrentRoute(url) ? 'text-neutral-900 dark:bg-neutral-800 dark:text-neutral-100' : ''));
4139
4240
const mainNavItems: NavItem[] = [
4341
{
@@ -51,12 +49,12 @@ const rightNavItems: NavItem[] = [
5149
{
5250
title: 'Repository',
5351
url: 'https://github.com/laravel/vue-starter-kit',
54-
icon: FolderGit2,
52+
icon: Folder,
5553
},
5654
{
5755
title: 'Documentation',
5856
url: 'https://laravel.com/docs/starter-kits',
59-
icon: BookOpenText,
57+
icon: BookOpen,
6058
},
6159
];
6260
</script>
@@ -134,19 +132,19 @@ const rightNavItems: NavItem[] = [
134132

135133
<div class="ml-auto flex items-center space-x-2">
136134
<div class="relative flex items-center space-x-1">
137-
<Button variant="ghost" size="icon" class="h-9 w-9 cursor-pointer">
138-
<Search class="h-5 w-5" />
135+
<Button variant="ghost" size="icon" class="group h-9 w-9 cursor-pointer">
136+
<Search class="size-5 opacity-80 group-hover:opacity-100" />
139137
</Button>
140138

141139
<div class="hidden space-x-1 lg:flex">
142140
<template v-for="item in rightNavItems" :key="item.title">
143141
<TooltipProvider :delay-duration="0">
144142
<Tooltip>
145143
<TooltipTrigger>
146-
<Button variant="ghost" size="icon" as-child class="h-9 w-9 cursor-pointer">
144+
<Button variant="ghost" size="icon" as-child class="group h-9 w-9 cursor-pointer">
147145
<a :href="item.url" target="_blank" rel="noopener noreferrer">
148146
<span class="sr-only">{{ item.title }}</span>
149-
<component :is="item.icon" class="h-5 w-5" />
147+
<component :is="item.icon" class="size-5 opacity-80 group-hover:opacity-100" />
150148
</a>
151149
</Button>
152150
</TooltipTrigger>
@@ -161,14 +159,17 @@ const rightNavItems: NavItem[] = [
161159

162160
<DropdownMenu>
163161
<DropdownMenuTrigger :as-child="true">
164-
<Button variant="ghost" size="icon" class="relative h-9 w-auto rounded-md px-1">
165-
<Avatar className="h-7 w-7 overflow-hidden rounded-lg">
162+
<Button
163+
variant="ghost"
164+
size="icon"
165+
class="relative size-10 w-auto rounded-full p-1 focus-within:ring-2 focus-within:ring-primary"
166+
>
167+
<Avatar class="size-8 overflow-hidden rounded-full">
166168
<AvatarImage :src="auth.user.avatar" :alt="auth.user.name" />
167-
<AvatarFallback class="rounded-lg bg-neutral-200 text-black dark:bg-neutral-700 dark:text-white">
169+
<AvatarFallback class="rounded-lg bg-neutral-200 font-semibold text-black dark:bg-neutral-700 dark:text-white">
168170
{{ getInitials(auth.user?.name) }}
169171
</AvatarFallback>
170172
</Avatar>
171-
<ChevronDown class="ml-auto mr-1 size-4" />
172173
</Button>
173174
</DropdownMenuTrigger>
174175
<DropdownMenuContent align="end" class="w-56">

resources/js/components/AppLogo.vue

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,7 @@ defineProps<Props>();
1212
<div class="flex aspect-square size-8 items-center justify-center rounded-md bg-sidebar-primary text-sidebar-primary-foreground">
1313
<AppLogoIcon class="size-5 fill-current text-white dark:text-black" />
1414
</div>
15-
<div class="grid flex-1 text-left text-sm leading-tight">
16-
<span class="mb-0.5 truncate font-semibold leading-none">Laravel</span>
17-
<span class="truncate text-[11px] leading-none tracking-tight opacity-80">Starter Kit</span>
15+
<div class="ml-1 grid flex-1 text-left text-sm">
16+
<span class="mb-0.5 truncate font-semibold leading-none">Laravel Starter Kit</span>
1817
</div>
1918
</template>

resources/js/components/AppLogoIcon.vue

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,12 @@ defineProps<Props>();
1313
</script>
1414

1515
<template>
16-
<svg viewBox="0 0 316 316" xmlns="http://www.w3.org/2000/svg" :class="className" v-bind="$attrs">
16+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 40 42" :class="className" v-bind="$attrs">
1717
<path
1818
fill="currentColor"
19-
d="M305.8 81.125C305.77 80.995 305.69 80.885 305.65 80.755C305.56 80.525 305.49 80.285 305.37 80.075C305.29 79.935 305.17 79.815 305.07 79.685C304.94 79.515 304.83 79.325 304.68 79.175C304.55 79.045 304.39 78.955 304.25 78.845C304.09 78.715 303.95 78.575 303.77 78.475L251.32 48.275C249.97 47.495 248.31 47.495 246.96 48.275L194.51 78.475C194.33 78.575 194.19 78.725 194.03 78.845C193.89 78.955 193.73 79.045 193.6 79.175C193.45 79.325 193.34 79.515 193.21 79.685C193.11 79.815 192.99 79.935 192.91 80.075C192.79 80.285 192.71 80.525 192.63 80.755C192.58 80.875 192.51 80.995 192.48 81.125C192.38 81.495 192.33 81.875 192.33 82.265V139.625L148.62 164.795V52.575C148.62 52.185 148.57 51.805 148.47 51.435C148.44 51.305 148.36 51.195 148.32 51.065C148.23 50.835 148.16 50.595 148.04 50.385C147.96 50.245 147.84 50.125 147.74 49.995C147.61 49.825 147.5 49.635 147.35 49.485C147.22 49.355 147.06 49.265 146.92 49.155C146.76 49.025 146.62 48.885 146.44 48.785L93.99 18.585C92.64 17.805 90.98 17.805 89.63 18.585L37.18 48.785C37 48.885 36.86 49.035 36.7 49.155C36.56 49.265 36.4 49.355 36.27 49.485C36.12 49.635 36.01 49.825 35.88 49.995C35.78 50.125 35.66 50.245 35.58 50.385C35.46 50.595 35.38 50.835 35.3 51.065C35.25 51.185 35.18 51.305 35.15 51.435C35.05 51.805 35 52.185 35 52.575V232.235C35 233.795 35.84 235.245 37.19 236.025L142.1 296.425C142.33 296.555 142.58 296.635 142.82 296.725C142.93 296.765 143.04 296.835 143.16 296.865C143.53 296.965 143.9 297.015 144.28 297.015C144.66 297.015 145.03 296.965 145.4 296.865C145.5 296.835 145.59 296.775 145.69 296.745C145.95 296.655 146.21 296.565 146.45 296.435L251.36 236.035C252.72 235.255 253.55 233.815 253.55 232.245V174.885L303.81 145.945C305.17 145.165 306 143.725 306 142.155V82.265C305.95 81.875 305.89 81.495 305.8 81.125ZM144.2 227.205L100.57 202.515L146.39 176.135L196.66 147.195L240.33 172.335L208.29 190.625L144.2 227.205ZM244.75 114.995V164.795L226.39 154.225L201.03 139.625V89.825L219.39 100.395L244.75 114.995ZM249.12 57.105L292.81 82.265L249.12 107.425L205.43 82.265L249.12 57.105ZM114.49 184.425L96.13 194.995V85.305L121.49 70.705L139.85 60.135V169.815L114.49 184.425ZM91.76 27.425L135.45 52.585L91.76 77.745L48.07 52.585L91.76 27.425ZM43.67 60.135L62.03 70.705L87.39 85.305V202.545V202.555V202.565C87.39 202.735 87.44 202.895 87.46 203.055C87.49 203.265 87.49 203.485 87.55 203.695V203.705C87.6 203.875 87.69 204.035 87.76 204.195C87.84 204.375 87.89 204.575 87.99 204.745C87.99 204.745 87.99 204.755 88 204.755C88.09 204.905 88.22 205.035 88.33 205.175C88.45 205.335 88.55 205.495 88.69 205.635L88.7 205.645C88.82 205.765 88.98 205.855 89.12 205.965C89.28 206.085 89.42 206.225 89.59 206.325C89.6 206.325 89.6 206.325 89.61 206.335C89.62 206.335 89.62 206.345 89.63 206.345L139.87 234.775V285.065L43.67 229.705V60.135ZM244.75 229.705L148.58 285.075V234.775L219.8 194.115L244.75 179.875V229.705ZM297.2 139.625L253.49 164.795V114.995L278.85 100.395L297.21 89.825V139.625H297.2Z"
19+
fill-rule="evenodd"
20+
clip-rule="evenodd"
21+
d="M17.2 5.633 8.6.855 0 5.633v26.51l16.2 9 16.2-9v-8.442l7.6-4.223V9.856l-8.6-4.777-8.6 4.777V18.3l-5.6 3.111V5.633ZM38 18.301l-5.6 3.11v-6.157l5.6-3.11V18.3Zm-1.06-7.856-5.54 3.078-5.54-3.079 5.54-3.078 5.54 3.079ZM24.8 18.3v-6.157l5.6 3.111v6.158L24.8 18.3Zm-1 1.732 5.54 3.078-13.14 7.302-5.54-3.078 13.14-7.3v-.002Zm-16.2 7.89 7.6 4.222V38.3L2 30.966V7.92l5.6 3.111v16.892ZM8.6 9.3 3.06 6.222 8.6 3.143l5.54 3.08L8.6 9.3Zm21.8 15.51-13.2 7.334V38.3l13.2-7.334v-6.156ZM9.6 11.034l5.6-3.11v14.6l-5.6 3.11v-14.6Z"
2022
/>
2123
</svg>
2224
</template>

resources/js/components/AppSidebar.vue

Lines changed: 7 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -4,47 +4,39 @@ import NavMain from '@/components/NavMain.vue';
44
import NavUser from '@/components/NavUser.vue';
55
import { Sidebar, SidebarContent, SidebarFooter, SidebarHeader, SidebarMenu, SidebarMenuButton, SidebarMenuItem } from '@/components/ui/sidebar';
66
import { type NavItem } from '@/types';
7-
import { BookOpenText, FolderGit2, LayoutDashboard } from 'lucide-vue-next';
7+
import { BookOpen, Folder, LayoutGrid } from 'lucide-vue-next';
88
import AppLogo from './AppLogo.vue';
99
1010
const mainNavItems: NavItem[] = [
1111
{
1212
title: 'Dashboard',
1313
url: '/dashboard',
14-
icon: LayoutDashboard,
14+
icon: LayoutGrid,
1515
},
1616
];
1717
1818
const footerNavItems: NavItem[] = [
1919
{
2020
title: 'Github Repo',
2121
url: 'https://github.com/laravel/vue-starter-kit',
22-
icon: FolderGit2,
22+
icon: Folder,
2323
},
2424
{
2525
title: 'Documentation',
2626
url: 'https://laravel.com/docs/starter-kits',
27-
icon: BookOpenText,
27+
icon: BookOpen,
2828
},
2929
];
3030
</script>
3131

3232
<template>
33-
<Sidebar collapsible="icon" variant="sidebar">
33+
<Sidebar collapsible="icon" variant="inset">
3434
<SidebarHeader>
3535
<SidebarMenu>
3636
<SidebarMenuItem>
3737
<SidebarMenuButton size="lg" as-child>
38-
<a href="#">
39-
<div
40-
class="flex aspect-square size-8 items-center justify-center rounded-md bg-sidebar-primary text-sidebar-primary-foreground"
41-
>
42-
<AppLogo class="size-5 fill-current text-white dark:text-black" />
43-
</div>
44-
<div class="grid flex-1 text-left text-sm leading-tight">
45-
<span class="truncate font-semibold">Laravel</span>
46-
<span class="truncate text-xs">Starter Kit</span>
47-
</div>
38+
<a :href="route('dashboard')">
39+
<AppLogo />
4840
</a>
4941
</SidebarMenuButton>
5042
</SidebarMenuItem>

resources/js/components/AppSidebarHeader.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ defineProps<{
1010

1111
<template>
1212
<header
13-
class="flex h-16 shrink-0 items-center gap-2 border-b border-sidebar-border/70 px-4 transition-[width,height] ease-linear group-has-[[data-collapsible=icon]]/sidebar-wrapper:h-12"
13+
class="flex h-16 shrink-0 items-center gap-2 border-b border-sidebar-border/70 px-6 transition-[width,height] ease-linear group-has-[[data-collapsible=icon]]/sidebar-wrapper:h-12 md:px-4"
1414
>
1515
<div class="flex items-center gap-2">
1616
<SidebarTrigger class="-ml-1" />

resources/js/components/DeleteUser.vue

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
<script setup lang="ts">
22
import { useForm } from '@inertiajs/vue3';
3-
import { ref } from 'vue';
43
54
import HeadingSmall from '@/components/HeadingSmall.vue';
6-
import InputError from '@/components/InputError.vue';
75
import { Button } from '@/components/ui/button';
86
import {
97
Dialog,
@@ -15,8 +13,6 @@ import {
1513
DialogTitle,
1614
DialogTrigger,
1715
} from '@/components/ui/dialog';
18-
import { Input } from '@/components/ui/input';
19-
import { Label } from '@/components/ui/label';
2016
2117
const form = useForm({});
2218
@@ -26,7 +22,7 @@ const deleteUser = (e: Event) => {
2622
form.delete(route('profile.destroy'), {
2723
preserveScroll: true,
2824
onSuccess: () => closeModal(),
29-
onFinish: () => form.reset()
25+
onFinish: () => form.reset(),
3026
});
3127
};
3228
@@ -39,7 +35,11 @@ const closeModal = () => {
3935
<template>
4036
<div class="space-y-6">
4137
<HeadingSmall title="Delete account" description="Delete your account and all of its resources" />
42-
<div className="border border-red-100 dark:border-red-950 p-3 rounded-lg flex items-center bg-red-50 dark:bg-red-700/10">
38+
<div class="space-y-4 rounded-lg border border-red-100 bg-red-50 p-4 dark:border-red-200/10 dark:bg-red-700/10">
39+
<div class="relative space-y-0.5 text-red-600 dark:text-red-100">
40+
<p class="font-medium">Warning</p>
41+
<p class="text-sm">Please proceed with caution, this cannot be undone.</p>
42+
</div>
4343
<Dialog>
4444
<DialogTrigger as-child>
4545
<Button variant="destructive">Delete account</Button>
@@ -49,8 +49,8 @@ const closeModal = () => {
4949
<DialogHeader class="space-y-3">
5050
<DialogTitle>Are you sure you want to delete your account?</DialogTitle>
5151
<DialogDescription>
52-
Once your account is deleted, all of its resources and data will also be permanently deleted. Please confirm
53-
you would like to permanently delete your account.
52+
Once your account is deleted, all of its resources and data will also be permanently deleted. Please confirm you would
53+
like to permanently delete your account.
5454
</DialogDescription>
5555
</DialogHeader>
5656

@@ -66,11 +66,6 @@ const closeModal = () => {
6666
</form>
6767
</DialogContent>
6868
</Dialog>
69-
70-
<div className="relative text-red-600 dark:text-red-100 ml-3">
71-
<p className="font-medium leading-none mb-1 text-sm">Warning</p>
72-
<p className="leading-none text-xs">Please proceed with caution, this cannot be undone.</p>
73-
</div>
7469
</div>
7570
</div>
7671
</template>

resources/js/components/Heading.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ defineProps<Props>();
1010
</script>
1111

1212
<template>
13-
<div class="space-y-0.5">
14-
<h2 class="text-base font-semibold tracking-tight sm:text-lg lg:text-xl">{{ title }}</h2>
15-
<p v-if="description" class="text-xs text-muted-foreground md:text-sm">
13+
<div class="mb-8 space-y-0.5">
14+
<h2 class="text-xl font-semibold tracking-tight">{{ title }}</h2>
15+
<p v-if="description" class="text-sm text-muted-foreground">
1616
{{ description }}
1717
</p>
1818
</div>

resources/js/components/HeadingSmall.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ defineProps<Props>();
1010
<template>
1111
<header>
1212
<h3 class="mb-0.5 text-base font-medium">{{ title }}</h3>
13-
<p v-if="description" class="text-xs text-muted-foreground">
13+
<p v-if="description" class="text-sm text-muted-foreground">
1414
{{ description }}
1515
</p>
1616
</header>

0 commit comments

Comments
 (0)