init
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
import { defineConfig } from '@umijs/max';
|
||||
import routes from './routes';
|
||||
|
||||
export default defineConfig({
|
||||
clickToComponent: {},
|
||||
antd: {
|
||||
style: 'less',
|
||||
configProvider: {
|
||||
theme:{
|
||||
'root-entry-name': 'variable',
|
||||
cssVar: true,
|
||||
hashed: false,
|
||||
token: {
|
||||
colorPrimary: '#2fbf85',
|
||||
motion: true,
|
||||
}
|
||||
},
|
||||
}
|
||||
},
|
||||
access: {},
|
||||
model: {},
|
||||
initialState: {},
|
||||
request: {},
|
||||
// locale: {
|
||||
// // 默认使用 src/locales/zh-CN.ts 作为多语言文件
|
||||
// default: 'zh-CN',
|
||||
// baseSeparator: '-',
|
||||
// },
|
||||
layout: false,
|
||||
routes,
|
||||
npmClient: 'pnpm',
|
||||
});
|
||||
@@ -0,0 +1,69 @@
|
||||
export default [
|
||||
{
|
||||
path: '/',
|
||||
key: 'dashboard',
|
||||
layout: false,
|
||||
icon: 'home',
|
||||
redirect: '/dashboard',
|
||||
},
|
||||
{
|
||||
name: 'Dashboard',
|
||||
path: '/dashboard',
|
||||
key: 'dashboard',
|
||||
icon: 'home',
|
||||
component: './dashboard',
|
||||
},
|
||||
{
|
||||
name: 'Playground',
|
||||
path: '/playground',
|
||||
key: 'playground',
|
||||
icon: 'Comment',
|
||||
component: './playground',
|
||||
},
|
||||
{
|
||||
name: 'Models',
|
||||
path: '/models',
|
||||
key: 'models',
|
||||
icon: 'Block',
|
||||
component: './models',
|
||||
},
|
||||
{
|
||||
name: 'Nodes',
|
||||
path: '/nodes',
|
||||
key: 'nodes',
|
||||
icon: 'CloudServer',
|
||||
component: './nodes',
|
||||
},
|
||||
{
|
||||
name: 'Users',
|
||||
path: '/users',
|
||||
key: 'users',
|
||||
icon: 'Team',
|
||||
component: './users',
|
||||
},
|
||||
// {
|
||||
// name: '首页',
|
||||
// path: '/home',
|
||||
// key: 'homes',
|
||||
// component: './Home',
|
||||
// },
|
||||
// {
|
||||
// name: '权限演示',
|
||||
// path: '/access',
|
||||
// key: 'access',
|
||||
// component: './Access',
|
||||
// },
|
||||
// {
|
||||
// name: ' CRUD 示例',
|
||||
// path: '/table',
|
||||
// key: 'table',
|
||||
// component: './Table',
|
||||
// },
|
||||
{
|
||||
name: '404',
|
||||
path: '*',
|
||||
key: '404',
|
||||
layout: false,
|
||||
component: './404',
|
||||
},
|
||||
];
|
||||
Reference in New Issue
Block a user