初始化2

This commit is contained in:
2026-04-08 17:10:58 +08:00
commit 4986d90eb9
532 changed files with 112617 additions and 0 deletions

96
app/config/console-nav.ts Normal file
View File

@@ -0,0 +1,96 @@
import type { Component } from 'vue'
import {
AppstoreOutlined,
BellOutlined,
CustomerServiceOutlined,
FileTextOutlined,
GiftOutlined,
HomeOutlined,
MailOutlined,
ShoppingCartOutlined,
ShoppingOutlined,
UnorderedListOutlined,
} from '@ant-design/icons-vue'
export type ConsoleNavItem = {
key: string
label: string
icon?: Component
to: string
}
export type ConsoleNavGroup = {
key: string
label: string
icon?: Component
iconColor?: string
badge?: string
disabled?: boolean
children: ConsoleNavItem[]
}
export type ConsoleNavLink = Omit<ConsoleNavGroup, 'children'> & {
to: string
}
export type ConsoleNavEntry = ConsoleNavGroup | ConsoleNavLink
export const consoleNav: ConsoleNavEntry[] = [
{
key: 'console-home',
label: '控制台',
icon: HomeOutlined,
to: '/console',
},
{
key: 'console-apps',
label: '应用中心',
icon: AppstoreOutlined,
to: '/console/apps',
},
// {
// key: 'console-store',
// label: '应用商店',
// icon: ShoppingOutlined,
// to: '/market',
// },
{
key: 'console-products',
label: '我的产品',
icon: ShoppingOutlined,
children: [
{ key: 'console-products-list', label: '已购产品', icon: ShoppingOutlined, to: '/console/products' },
{ key: 'console-products-coupons', label: '优惠券', icon: GiftOutlined, to: '/console/coupons' },
],
},
{
key: 'console-orders',
label: '订单与账单',
icon: ShoppingCartOutlined,
children: [
{ key: 'console-orders-list', label: '订单记录', icon: UnorderedListOutlined, to: '/console/orders' },
{ key: 'console-orders-invoices', label: '发票记录', icon: FileTextOutlined, to: '/console/invoices' },
],
},
{
key: 'console-tickets',
label: '工单管理',
icon: CustomerServiceOutlined,
badge: 'NEW',
to: '/console/tickets',
},
{
key: 'console-notifications',
label: '消息通知',
icon: BellOutlined,
badge: 'NEW',
to: '/console/notifications',
},
{
key: 'console-invites',
label: '应用邀请',
icon: MailOutlined,
badge: 'NEW',
to: '/console/invites',
},
]