refactor: refactor graphql
This commit is contained in:
136
apps/webui/src/app/config/nav.ts
Normal file
136
apps/webui/src/app/config/nav.ts
Normal file
@@ -0,0 +1,136 @@
|
||||
import type { NavMainGroup } from '@/infra/routes/nav';
|
||||
import {
|
||||
BookOpen,
|
||||
Folders,
|
||||
KeyRound,
|
||||
ListTodo,
|
||||
Settings2,
|
||||
SquareTerminal,
|
||||
Telescope,
|
||||
Tv,
|
||||
} from 'lucide-react';
|
||||
|
||||
export const AppNavMainData: NavMainGroup[] = [
|
||||
{
|
||||
group: 'Dashboard',
|
||||
items: [
|
||||
{
|
||||
title: 'Explore',
|
||||
icon: Telescope,
|
||||
link: {
|
||||
to: '/explore',
|
||||
},
|
||||
},
|
||||
{
|
||||
title: 'Subscriptions',
|
||||
link: {
|
||||
to: '/subscriptions/manage',
|
||||
},
|
||||
icon: Folders,
|
||||
children: [
|
||||
{
|
||||
title: 'Manage',
|
||||
link: {
|
||||
to: '/subscriptions/manage',
|
||||
},
|
||||
},
|
||||
{
|
||||
title: 'Create',
|
||||
link: {
|
||||
to: '/subscriptions/create',
|
||||
},
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
title: 'Bangumi',
|
||||
icon: Tv,
|
||||
children: [
|
||||
{
|
||||
title: 'Manage',
|
||||
link: {
|
||||
to: '/bangumi/recorder',
|
||||
},
|
||||
},
|
||||
{
|
||||
title: 'Feed',
|
||||
link: {
|
||||
to: '/bangumi/feed',
|
||||
},
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
title: 'Tasks',
|
||||
icon: ListTodo,
|
||||
children: [
|
||||
{
|
||||
title: 'Manage',
|
||||
link: {
|
||||
to: '/task/manage',
|
||||
},
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
title: 'Credential 3rd',
|
||||
link: {
|
||||
to: '/credential3rd/manage',
|
||||
},
|
||||
icon: KeyRound,
|
||||
children: [
|
||||
{
|
||||
title: 'Manage',
|
||||
link: {
|
||||
to: '/credential3rd/manage',
|
||||
},
|
||||
},
|
||||
{
|
||||
title: 'Create',
|
||||
link: {
|
||||
to: '/credential3rd/create',
|
||||
},
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
title: 'Playground',
|
||||
icon: SquareTerminal,
|
||||
link: {
|
||||
to: '/playground',
|
||||
},
|
||||
children: [
|
||||
{
|
||||
title: 'GraphQL Api',
|
||||
link: {
|
||||
to: '/playground/graphql-api',
|
||||
},
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
title: 'Documentation',
|
||||
link: {
|
||||
href: 'https://github.com/dumtruck/konobangu/wiki',
|
||||
target: '_blank',
|
||||
},
|
||||
icon: BookOpen,
|
||||
},
|
||||
{
|
||||
title: 'Settings',
|
||||
link: {
|
||||
to: '/settings',
|
||||
},
|
||||
icon: Settings2,
|
||||
children: [
|
||||
{
|
||||
title: 'Downloader',
|
||||
link: {
|
||||
to: '/settings/downloader',
|
||||
},
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
},
|
||||
];
|
||||
Reference in New Issue
Block a user