feat(app): 初始化项目配置和页面结构
- 添加 .dockerignore 和 .env.example 配置文件 - 添加 .gitignore 忽略规则配置 - 创建服务端代理API路由(_file、_modules、_server) - 集成 Ant Design Vue 组件库并配置SSR样式提取 - 定义API响应类型封装 - 创建基础布局组件(blank、console) - 实现应用中心页面和组件(AppsCenter) - 添加文章列表测试页面 - 配置控制台导航菜单结构 - 实现控制台头部组件 - 创建联系页面表单
This commit is contained in:
70
app/config/console-nav.ts
Normal file
70
app/config/console-nav.ts
Normal file
@@ -0,0 +1,70 @@
|
||||
import type { Component } from 'vue'
|
||||
import {
|
||||
AppstoreOutlined,
|
||||
FileTextOutlined,
|
||||
GiftOutlined,
|
||||
IdcardOutlined,
|
||||
LogoutOutlined,
|
||||
SafetyCertificateOutlined,
|
||||
SettingOutlined,
|
||||
ShoppingCartOutlined,
|
||||
ShoppingOutlined,
|
||||
TeamOutlined,
|
||||
UnorderedListOutlined,
|
||||
UserOutlined
|
||||
} 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-tenant',
|
||||
label: '管理中心',
|
||||
icon: AppstoreOutlined,
|
||||
to: '/console'
|
||||
},
|
||||
{
|
||||
key: 'console-orders',
|
||||
label: '我的订单',
|
||||
icon: ShoppingCartOutlined,
|
||||
children: [
|
||||
{ key: 'console-orders-orders', label: '订单管理', icon: UnorderedListOutlined, to: '/console/orders' },
|
||||
{ key: 'console-orders-invoices', label: '发票记录', icon: FileTextOutlined, to: '/console/invoices' },
|
||||
{ key: 'console-orders-products', label: '已购产品', icon: ShoppingOutlined, to: '/console/products' },
|
||||
{ key: 'console-orders-coupons', label: '优惠券', icon: GiftOutlined, to: '/console/coupons' }
|
||||
]
|
||||
},
|
||||
{
|
||||
key: 'console-account',
|
||||
label: '账号设置',
|
||||
icon: SettingOutlined,
|
||||
children: [
|
||||
{ key: 'console-account-info', label: '账号信息', icon: UserOutlined, to: '/console/account' },
|
||||
{ key: 'console-account-members', label: '成员管理', icon: TeamOutlined, to: '/console/account/members' },
|
||||
{ key: 'console-account-security', label: '账号安全', icon: SafetyCertificateOutlined, to: '/console/account/security' },
|
||||
{ key: 'console-account-kyc', label: '实名认证', icon: IdcardOutlined, to: '/console/account/kyc' },
|
||||
{ key: 'console-account-logout', label: '退出登录', icon: LogoutOutlined, to: '/console/logout' }
|
||||
]
|
||||
}
|
||||
]
|
||||
Reference in New Issue
Block a user