Skip to content

Commit aabd9e8

Browse files
committed
refactor: clean up unused pages
1 parent 2851163 commit aabd9e8

File tree

2 files changed

+8
-160
lines changed

2 files changed

+8
-160
lines changed

components/app-sidebar.tsx

Lines changed: 8 additions & 79 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,16 @@
11
"use client";
22

33
import {
4-
BookOpen,
5-
Frame,
4+
Book,
5+
Code,
66
LibrarySquare,
7-
LifeBuoy,
87
type LucideIcon,
9-
Map,
10-
PieChart,
11-
Send,
12-
Settings2,
138
SquareUser,
149
} from "lucide-react";
1510
import Image from "next/image";
1611
import * as React from "react";
1712

1813
import { NavMain } from "@/components/nav-main";
19-
import { NavProjects } from "@/components/nav-projects";
2014
import { NavSecondary } from "@/components/nav-secondary";
2115
import { NavUser } from "@/components/nav-user";
2216
import {
@@ -63,7 +57,6 @@ const buildNavbar = (
6357
): {
6458
navMain: NavItem[];
6559
navSecondary: NavItem[];
66-
projects: NavSmallItem[];
6760
} => ({
6861
navMain: [
6962
{
@@ -107,80 +100,17 @@ const buildNavbar = (
107100
},
108101
],
109102
},
110-
{
111-
title: "Documentation",
112-
url: "#",
113-
icon: BookOpen,
114-
items: [
115-
{
116-
title: "Introduction",
117-
url: "#",
118-
},
119-
{
120-
title: "Get Started",
121-
url: "#",
122-
},
123-
{
124-
title: "Tutorials",
125-
url: "#",
126-
},
127-
{
128-
title: "Changelog",
129-
url: "#",
130-
},
131-
],
132-
},
133-
{
134-
title: "Settings",
135-
url: "#",
136-
icon: Settings2,
137-
items: [
138-
{
139-
title: "General",
140-
url: "#",
141-
},
142-
{
143-
title: "Team",
144-
url: "#",
145-
},
146-
{
147-
title: "Billing",
148-
url: "#",
149-
},
150-
{
151-
title: "Limits",
152-
url: "#",
153-
},
154-
],
155-
},
156103
],
157104
navSecondary: [
158105
{
159-
title: "Support",
160-
url: "#",
161-
icon: LifeBuoy,
162-
},
163-
{
164-
title: "Feedback",
165-
url: "#",
166-
icon: Send,
167-
},
168-
],
169-
projects: [
170-
{
171-
name: "Design Engineering",
172-
url: "#",
173-
icon: Frame,
174-
},
175-
{
176-
name: "Sales & Marketing",
177-
url: "#",
178-
icon: PieChart,
106+
title: "程式碼儲存庫",
107+
url: "https://github.com/database-playground",
108+
icon: Code,
179109
},
180110
{
181-
name: "Travel",
182-
url: "#",
183-
icon: Map,
111+
title: "API 文件",
112+
url: "https://api.dbplay.app",
113+
icon: Book,
184114
},
185115
],
186116
});
@@ -221,7 +151,6 @@ export function AppSidebar({ ...props }: React.ComponentProps<typeof Sidebar>) {
221151
</SidebarHeader>
222152
<SidebarContent>
223153
<NavMain items={data.navMain} />
224-
<NavProjects projects={data.projects} />
225154
<NavSecondary items={data.navSecondary} className="mt-auto" />
226155
</SidebarContent>
227156
<SidebarFooter>

components/nav-projects.tsx

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

0 commit comments

Comments
 (0)