-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 1374ccf
Showing
69 changed files
with
3,295 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# http://editorconfig.org | ||
root = true | ||
|
||
[*] | ||
indent_style = space | ||
indent_size = 2 | ||
end_of_line = lf | ||
charset = utf-8 | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true | ||
|
||
[*.md] | ||
trim_trailing_whitespace = false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
/lambda/ | ||
/scripts | ||
/config | ||
.history |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
module.exports = { | ||
extends: [require.resolve('@umijs/fabric/dist/eslint')], | ||
globals: { | ||
page: true, | ||
REACT_APP_ENV: true, | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. | ||
|
||
# dependencies | ||
**/node_modules | ||
# roadhog-api-doc ignore | ||
/src/utils/request-temp.js | ||
_roadhog-api-doc | ||
|
||
# production | ||
/dist | ||
/.vscode | ||
|
||
# misc | ||
.DS_Store | ||
npm-debug.log* | ||
yarn-error.log | ||
|
||
/coverage | ||
.idea | ||
yarn.lock | ||
package-lock.json | ||
*bak | ||
.vscode | ||
|
||
# visual studio code | ||
.history | ||
*.log | ||
functions/* | ||
.temp/** | ||
|
||
# umi | ||
.umi | ||
.umi-production | ||
|
||
# screenshot | ||
screenshot | ||
.firebase | ||
.eslintcache | ||
|
||
build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
**/*.svg | ||
package.json | ||
.umi | ||
.umi-production | ||
/dist | ||
.dockerignore | ||
.DS_Store | ||
.eslintignore | ||
*.png | ||
*.toml | ||
docker | ||
.editorconfig | ||
Dockerfile* | ||
.gitignore | ||
.prettierignore | ||
LICENSE | ||
.eslintcache | ||
*.lock | ||
yarn-error.log | ||
.history | ||
CNAME | ||
/build | ||
/public |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
const fabric = require('@umijs/fabric'); | ||
|
||
module.exports = { | ||
...fabric.prettier, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
const fabric = require('@umijs/fabric'); | ||
|
||
module.exports = { | ||
...fabric.stylelint, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# Lanting | ||
|
||
Palette: #F4E285 #F4A259 #7A4419 #755C1B | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
// https://umijs.org/config/ | ||
import { defineConfig } from 'umi'; | ||
import defaultSettings from './defaultSettings'; | ||
import proxy from './proxy'; | ||
|
||
const { REACT_APP_ENV } = process.env; | ||
|
||
export default defineConfig({ | ||
hash: true, | ||
antd: {}, | ||
dva: { | ||
hmr: true, | ||
}, | ||
locale: { | ||
// default zh-CN | ||
default: 'zh-CN', | ||
antd: true, | ||
// default true, when it is true, will use `navigator.language` overwrite default | ||
baseNavigator: true, | ||
}, | ||
dynamicImport: { | ||
loading: '@/components/PageLoading/index', | ||
}, | ||
targets: { | ||
ie: 11, | ||
}, | ||
// umi routes: https://umijs.org/docs/routing | ||
routes: [ | ||
{ | ||
path: '/user', | ||
component: '../layouts/UserLayout', | ||
routes: [ | ||
{ | ||
name: 'login', | ||
path: '/user/login', | ||
component: './user/login', | ||
}, | ||
], | ||
}, | ||
{ | ||
path: '/', | ||
component: '../layouts/LoadingLayout', | ||
routes: [ | ||
{ | ||
path: '/', | ||
component: '../layouts/BasicLayout', | ||
routes: [ | ||
{ | ||
path: '/', | ||
redirect: '/lanting', | ||
}, | ||
{ | ||
name: 'lanting', | ||
path: '/lanting', | ||
icon: 'BookOutlined', | ||
component: './ListTableList', | ||
}, | ||
{ | ||
component: './404', | ||
}, | ||
], | ||
}, | ||
{ | ||
component: './404', | ||
}, | ||
], | ||
}, | ||
{ | ||
component: './404', | ||
}, | ||
], | ||
// Theme for antd: https://ant.design/docs/react/customize-theme-cn | ||
theme: { | ||
// ...darkTheme, | ||
'primary-color': defaultSettings.primaryColor, | ||
}, | ||
// @ts-ignore | ||
title: false, | ||
ignoreMomentLocale: true, | ||
proxy: proxy[REACT_APP_ENV || 'dev'], | ||
manifest: { | ||
basePath: '/', | ||
}, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import { Settings as ProSettings } from '@ant-design/pro-layout'; | ||
|
||
const proSettings: ProSettings = { | ||
navTheme: 'light', | ||
|
||
primaryColor: '#755C1B', | ||
layout: 'top', | ||
contentWidth: 'Fluid', | ||
fixedHeader: false, | ||
fixSiderbar: true, | ||
colorWeak: false, | ||
menu: { | ||
locale: true, | ||
}, | ||
title: '兰亭', | ||
iconfontUrl: '', | ||
}; | ||
|
||
export type { ProSettings as DefaultSettings }; | ||
|
||
export default proSettings; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
/** | ||
* 在生产环境 代理是无法生效的,所以这里没有生产环境的配置 | ||
* The agent cannot take effect in the production environment | ||
* so there is no configuration of the production environment | ||
* For details, please see | ||
* https://pro.ant.design/docs/deploy | ||
*/ | ||
export default { | ||
dev: { | ||
'/api/': { | ||
target: 'https://localhost:14441', | ||
changeOrigin: true, | ||
pathRewrite: { '^': '' }, | ||
}, | ||
}, | ||
test: { | ||
'/api/': { | ||
target: 'https://localhost:14441', | ||
changeOrigin: true, | ||
pathRewrite: { '^': '' }, | ||
}, | ||
}, | ||
pre: { | ||
'/api/': { | ||
target: 'https://localhost:14441', | ||
changeOrigin: true, | ||
pathRewrite: { '^': '' }, | ||
}, | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"compilerOptions": { | ||
"emitDecoratorMetadata": true, | ||
"experimentalDecorators": true, | ||
"baseUrl": ".", | ||
"paths": { | ||
"@/*": ["./src/*"] | ||
} | ||
} | ||
} |
Oops, something went wrong.