Skip to content

Commit b13a146

Browse files
committed
Adding improvements and fixes
1 parent e6c3b33 commit b13a146

18 files changed

+43
-560
lines changed

resources/js/components/AppSidebar.vue

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { BookOpenText, FolderGit2, LayoutDashboard } from 'lucide-vue-next';
33
import NavMain from '@/components/NavMain.vue';
44
import NavFooter from '@/components/NavFooter.vue';
55
import NavUser from '@/components/NavUser.vue';
6-
import { type NavItemType } from '@/types'
6+
import { type NavItem } from '@/types'
77
import {
88
Sidebar,
99
SidebarContent,
@@ -15,15 +15,15 @@ import {
1515
} from '@/components/ui/sidebar';
1616
import ApplicationLogo from './ApplicationLogo.vue';
1717
18-
const mainNavItems: NavItemType[] = [
18+
const mainNavItems: NavItem[] = [
1919
{
2020
title: "Dashboard",
2121
url: "/dashboard",
2222
icon: LayoutDashboard,
2323
},
2424
]
2525
26-
const footerNavItems: NavItemType[] = [
26+
const footerNavItems: NavItem[] = [
2727
{
2828
title: 'Github Repo',
2929
url: 'https://github.com/laravel/vue-starter-kit',
@@ -62,7 +62,6 @@ const footerNavItems: NavItemType[] = [
6262
</SidebarContent>
6363

6464
<SidebarFooter>
65-
<NavFooter :items="footerNavItems" class="mt-auto" />
6665
<NavUser />
6766
</SidebarFooter>
6867
</Sidebar>

resources/js/components/NavFooter.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<script setup lang="ts">
22
import { type LucideIcon, ExternalLink } from 'lucide-vue-next';
3-
import { type NavItemType } from '@/types'
3+
import { type NavItem } from '@/types'
44
import {
55
SidebarGroup,
66
SidebarGroupContent,
@@ -11,7 +11,7 @@ import {
1111
} from '@/components/ui/sidebar';
1212
1313
interface Props {
14-
items: NavItemType[];
14+
items: NavItem[];
1515
class?: string;
1616
}
1717

resources/js/components/NavMain.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<script setup lang="ts">
22
import { Link, usePage } from '@inertiajs/vue3';
3-
import { type NavItemType } from '@/types'
3+
import { type NavItem } from '@/types'
44
import {
55
SidebarGroup,
66
SidebarMenu,
@@ -9,7 +9,7 @@ import {
99
} from '@/components/ui/sidebar';
1010
1111
const props = defineProps<{
12-
items?: NavItemType[];
12+
items?: NavItem[];
1313
}>();
1414
1515
const page = usePage();

resources/js/components/sidebar/NavMain.vue

Lines changed: 0 additions & 75 deletions
This file was deleted.

resources/js/components/sidebar/NavProjects.vue

Lines changed: 0 additions & 88 deletions
This file was deleted.

resources/js/components/sidebar/NavSecondary.vue

Lines changed: 0 additions & 32 deletions
This file was deleted.

resources/js/components/sidebar/NavUser.vue

Lines changed: 0 additions & 123 deletions
This file was deleted.

0 commit comments

Comments
 (0)