forked from dragonflyoss/console
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.umirc.ts
122 lines (121 loc) · 2.62 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
import { defineConfig } from 'umi';
export default defineConfig({
title: 'Dragonfly',
nodeModulesTransform: {
type: 'none',
},
favicon: 'logo-dragonfly.png',
routes: [
{
exact: true,
path: '/',
component: '@/pages/index',
},
{ exact: true, path: '/signin', component: '@/pages/index' },
{ exact: true, path: '/installation', component: '@/pages/installation' },
{
exact: false,
path: '/profile',
component: '@/layouts/index',
routes: [
{
exact: true,
path: '/profile/:id',
component: '@/pages/profile',
},
],
},
{
exact: false,
path: '/configuration',
component: '@/layouts/index',
routes: [
{
exact: true,
path: '/configuration/',
component: '@/pages/scheduler',
},
{
exact: true,
path: '/configuration/scheduler-cluster',
component: '@/pages/scheduler',
},
{
exact: true,
path: '/configuration/seed-peer-cluster',
component: '@/pages/cdn',
},
{
exact: true,
path: '/configuration/application',
component: '@/pages/application',
},
{
exact: true,
path: '/configuration/security',
component: '@/pages/security',
},
],
},
{
exact: false,
path: '/setting',
component: '@/layouts/index',
routes: [
{
exact: true,
path: '/setting/',
component: '@/pages/permission',
},
{
exact: true,
path: '/setting/permission',
component: '@/pages/permission',
},
{
exact: true,
path: '/setting/user',
component: '@/pages/users',
},
{
exact: true,
path: '/setting/oauth',
component: '@/pages/oauth',
},
],
},
{
exact: false,
path: '/service',
component: '@/layouts/index',
routes: [
{
exact: true,
path: '/service/',
component: '@/pages/task',
},
{
exact: true,
path: '/service/task',
component: '@/pages/task',
},
{ component: '@/pages/404' },
],
},
{ component: '@/pages/404' },
],
locale: {
default: 'en-US', // en-US
baseNavigator: true,
antd: true,
},
proxy: {
'/api/v1': {
target: 'http://11.122.75.66:8080', // dep env
},
},
fastRefresh: {},
theme: {
'primary-color': '#23B066',
},
});