-
Notifications
You must be signed in to change notification settings - Fork 47
/
Copy pathdashboard.ts
93 lines (90 loc) · 2.21 KB
/
dashboard.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
import { UserRole } from "@prisma/client";
import { SidebarNavItem } from "types";
import { siteConfig } from "./site";
export const sidebarLinks: SidebarNavItem[] = [
{
title: "MENU",
items: [
{ href: "/dashboard", icon: "dashboard", title: "Dashboard" },
{ href: "/dashboard/records", icon: "globeLock", title: "DNS Records" },
{ href: "/dashboard/urls", icon: "link", title: "Short Urls" },
{ href: "/emails", icon: "mail", title: "Emails" },
],
},
{
title: "SCRAPE",
items: [
{
href: "/dashboard/scrape",
icon: "bug",
title: "Overview",
},
{
href: "/dashboard/scrape/screenshot",
icon: "camera",
title: "Screenshot",
},
{
href: "/dashboard/scrape/meta-info",
icon: "globe",
title: "Meta Info",
},
{
href: "/dashboard/scrape/markdown",
icon: "fileText",
title: "Markdown",
},
{
href: "/dashboard/scrape/qrcode",
icon: "qrcode",
title: "QR Code",
},
],
},
{
title: "ADMIN",
items: [
{
href: "/admin",
icon: "laptop",
title: "Admin Panel",
authorizeOnly: UserRole.ADMIN,
},
{
href: "/admin/users",
icon: "users",
title: "Users",
authorizeOnly: UserRole.ADMIN,
},
{
href: "/admin/records",
icon: "globe",
title: "Records",
authorizeOnly: UserRole.ADMIN,
},
{
href: "/admin/urls",
icon: "link",
title: "URLs",
authorizeOnly: UserRole.ADMIN,
},
],
},
{
title: "OPTIONS",
items: [
{ href: "/dashboard/settings", icon: "settings", title: "Settings" },
{ href: "/", icon: "home", title: "Homepage" },
{ href: "/docs", icon: "bookOpen", title: "Documentation" },
// { href: siteConfig.links.github, icon: "github", title: "Github" },
{ href: siteConfig.links.discord, icon: "discord", title: "Discord" },
{
href: "mailto:" + siteConfig.mailSupport,
icon: "mail",
title: "Support",
// authorizeOnly: UserRole.USER,
// disabled: true,
},
],
},
];