ai-gateway/web/berry/src/menu-items/panel.js
2024-04-30 17:33:57 +08:00

114 lines
2.2 KiB
JavaScript

// assets
import {
IconDashboard,
IconSitemap,
IconArticle,
IconCoin,
IconAdjustments,
IconKey,
IconGardenCart,
IconUser,
IconUserScan,
IconFileTextAi
} from '@tabler/icons-react';
// constant
const icons = { IconDashboard, IconSitemap, IconArticle, IconCoin, IconAdjustments, IconKey, IconGardenCart, IconUser, IconUserScan,IconFileTextAi };
// ==============================|| DASHBOARD MENU ITEMS ||============================== //
const panel = {
id: 'panel',
type: 'group',
children: [
{
id: 'dashboard',
title: '总览',
type: 'item',
url: '/panel/dashboard',
icon: icons.IconDashboard,
breadcrumbs: false,
isAdmin: false
},
{
id: 'chat',
title: '聊天',
type: 'item',
url: '/panel/chat',
icon: icons.IconFileTextAi,
breadcrumbs: false
},
{
id: 'channel',
title: '渠道',
type: 'item',
url: '/panel/channel',
icon: icons.IconSitemap,
breadcrumbs: false,
isAdmin: true
},
{
id: 'token',
title: '令牌',
type: 'item',
url: '/panel/token',
icon: icons.IconKey,
breadcrumbs: false
},
{
id: 'log',
title: '日志',
type: 'item',
url: '/panel/log',
icon: icons.IconArticle,
breadcrumbs: false
},
{
id: 'redemption',
title: '兑换',
type: 'item',
url: '/panel/redemption',
icon: icons.IconCoin,
breadcrumbs: false,
isAdmin: true
},
{
id: 'topup',
title: '充值',
type: 'item',
url: '/panel/topup',
icon: icons.IconGardenCart,
breadcrumbs: false
},
{
id: 'user',
title: '用户',
type: 'item',
url: '/panel/user',
icon: icons.IconUser,
breadcrumbs: false,
isAdmin: true
},
{
id: 'profile',
title: '我的',
type: 'item',
url: '/panel/profile',
icon: icons.IconUserScan,
breadcrumbs: false,
isAdmin: false
},
{
id: 'setting',
title: '设置',
type: 'item',
url: '/panel/setting',
icon: icons.IconAdjustments,
breadcrumbs: false,
isAdmin: true
}
]
};
export default panel;