-
Notifications
You must be signed in to change notification settings - Fork 9
/
.umirc.ts
47 lines (45 loc) · 1.44 KB
/
.umirc.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
import { defineConfig } from 'umi';
/** 判断是不是 cosmos 私有化部署环境 */
const customPublicPath = process.argv[3];
export default defineConfig({
hash: true,
title: 'TuGraph DB',
history: {
type: 'hash',
},
outputPath: './dist/resource',
publicPath: customPublicPath ? customPublicPath : '/resource/',
theme: {
'@primary-color': '#1650FF',
'@border-radius-base': '6px',
'@collapse-panel-border-radius': '6px',
'@checkbox-border-radius': '4px',
'@tag-border-radius': '4px',
'@text-color': '#363740',
'@heading-color': '#363740',
'@text-color-dark': '#363740',
},
routes: [
{ path: '/', component: 'studio', title: '图项目' },
{ path: '/login', component: 'login', title: '登录' },
{ path: '/home', component: 'studio', title: '图项目' },
{ path: '/console', component: 'console', title: '控制台' },
{ path: '/construct', component: 'construct', title: '图构建' },
{ path: '/analysis', component: 'graph-schema/index', title: '图分析' },
{ path: '/query', component: 'query', title: '图查询' },
{ path: '/reset', component: 'resetPassword', title: '重置密码' }
],
npmClient: 'npm',
favicons: ['/resource/assets/favicon.png'],
esbuildMinifyIIFE: true,
plugins: [
'@umijs/plugins/dist/initial-state',
'@umijs/plugins/dist/model',
'@umijs/plugins/dist/antd',
],
initialState: {},
model: {},
antd: {
import: true,
},
});