refactor: refactor
This commit is contained in:
2
settings/index.js
Normal file
2
settings/index.js
Normal file
@@ -0,0 +1,2 @@
|
||||
export * from './theme.json'
|
||||
export * from './proxy-config'
|
18
settings/proxy-config.js
Normal file
18
settings/proxy-config.js
Normal file
@@ -0,0 +1,18 @@
|
||||
const proxyConfigMappings = {
|
||||
dev: {
|
||||
prefix: '/api',
|
||||
target: 'http://localhost:8080',
|
||||
},
|
||||
test: {
|
||||
prefix: '/api',
|
||||
target: 'http://localhost:8080',
|
||||
},
|
||||
prod: {
|
||||
prefix: '/api',
|
||||
target: 'http://localhost:8080',
|
||||
},
|
||||
}
|
||||
|
||||
export function getProxyConfig(envType = 'dev') {
|
||||
return proxyConfigMappings[envType]
|
||||
}
|
17
settings/theme.json
Normal file
17
settings/theme.json
Normal file
@@ -0,0 +1,17 @@
|
||||
{
|
||||
"header": {
|
||||
"height": 60
|
||||
},
|
||||
"tags": {
|
||||
"visible": true,
|
||||
"height": 50
|
||||
},
|
||||
"naiveThemeOverrides": {
|
||||
"common": {
|
||||
"primaryColor": "#316C72FF",
|
||||
"primaryColorHover": "#316C72E3",
|
||||
"primaryColorPressed": "#2B4C59FF",
|
||||
"primaryColorSuppl": "#316C7263"
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user