-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1 parent
b40e20e
commit 51368da
Showing
135 changed files
with
6,899 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,16 @@ | ||
# 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 | ||
|
||
[Makefile] | ||
indent_style = tab |
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,8 @@ | ||
/lambda/ | ||
/scripts | ||
/config | ||
.history | ||
public | ||
dist | ||
.umi | ||
mock |
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,8 @@ | ||
module.exports = { | ||
extends: [require.resolve('@umijs/fabric/dist/eslint')], | ||
globals: { | ||
ANT_DESIGN_PRO_ONLY_DO_NOT_USE_IN_YOUR_PRODUCTION: true, | ||
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 | ||
|
||
# misc | ||
.DS_Store | ||
npm-debug.log* | ||
yarn-error.log | ||
|
||
/coverage | ||
.idea | ||
yarn.lock | ||
package-lock.json | ||
pnpm-lock.yaml | ||
*bak | ||
|
||
|
||
# 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 @@ | ||
_ |
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 @@ | ||
#!/bin/sh | ||
. "$(dirname "$0")/_/husky.sh" | ||
|
||
# Export Git hook params | ||
export GIT_PARAMS=$* | ||
|
||
npx --no-install fabric verify-commit |
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 @@ | ||
#!/bin/sh | ||
. "$(dirname "$0")/_/husky.sh" | ||
|
||
npx --no-install lint-staged |
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,3 @@ | ||
module.exports = { | ||
extends: [require.resolve('@umijs/fabric/dist/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,8 @@ | ||
{ | ||
"recommendations": [ | ||
"esbenp.prettier-vscode", | ||
"dbaeumer.vscode-eslint", | ||
"stylelint.vscode-stylelint", | ||
"wangzy.sneak-mark" | ||
] | ||
} |
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 @@ | ||
{ | ||
"editor.formatOnSave": true, | ||
"prettier.requireConfig": true, | ||
"editor.defaultFormatter": "esbenp.prettier-vscode" | ||
} |
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,14 @@ | ||
// https://umijs.org/config/ | ||
import { defineConfig } from 'umi'; | ||
export default defineConfig({ | ||
plugins: [ | ||
// https://github.com/zthxxx/react-dev-inspector | ||
'react-dev-inspector/plugins/umi/react-inspector', | ||
], | ||
// https://github.com/zthxxx/react-dev-inspector#inspector-loader-props | ||
inspectorConfig: { | ||
exclude: [], | ||
babelPlugins: [], | ||
babelOptions: {}, | ||
}, | ||
}); |
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,75 @@ | ||
// https://umijs.org/config/ | ||
import { defineConfig } from 'umi'; | ||
import { join } from 'path'; | ||
import defaultSettings from './defaultSettings'; | ||
import proxy from './proxy'; | ||
import routes from './routes'; | ||
const { REACT_APP_ENV } = process.env; | ||
export default defineConfig({ | ||
hash: true, | ||
antd: {}, | ||
dva: { | ||
hmr: true, | ||
}, | ||
layout: { | ||
// https://umijs.org/zh-CN/plugins/plugin-layout | ||
locale: true, | ||
siderWidth: 208, | ||
...defaultSettings, | ||
}, | ||
// https://umijs.org/zh-CN/plugins/plugin-locale | ||
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: '@ant-design/pro-layout/es/PageLoading', | ||
}, | ||
targets: { | ||
ie: 11, | ||
}, | ||
// umi routes: https://umijs.org/docs/routing | ||
routes, | ||
access: {}, | ||
// Theme for antd: https://ant.design/docs/react/customize-theme-cn | ||
theme: { | ||
// 如果不想要 configProvide 动态设置主题需要把这个设置为 default | ||
// 只有设置为 variable, 才能使用 configProvide 动态设置主色调 | ||
// https://ant.design/docs/react/customize-theme-variable-cn | ||
'root-entry-name': 'variable', | ||
}, | ||
// esbuild is father build tools | ||
// https://umijs.org/plugins/plugin-esbuild | ||
esbuild: {}, | ||
title: false, | ||
ignoreMomentLocale: true, | ||
proxy: proxy[REACT_APP_ENV || 'dev'], | ||
manifest: { | ||
basePath: '/', | ||
}, | ||
// Fast Refresh 热更新 | ||
fastRefresh: {}, | ||
openAPI: [ | ||
{ | ||
requestLibPath: "import { request } from 'umi'", | ||
// 或者使用在线的版本 | ||
// schemaPath: "https://gw.alipayobjects.com/os/antfincdn/M%24jrzTTYJN/oneapi.json" | ||
schemaPath: join(__dirname, 'oneapi.json'), | ||
mock: false, | ||
}, | ||
{ | ||
requestLibPath: "import { request } from 'umi'", | ||
schemaPath: 'https://gw.alipayobjects.com/os/antfincdn/CA1dOm%2631B/openapi.json', | ||
projectName: 'swagger', | ||
}, | ||
], | ||
nodeModulesTransform: { | ||
type: 'none', | ||
}, | ||
mfsu: {}, | ||
webpack5: {}, | ||
exportStatic: {}, | ||
}); |
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,15 @@ | ||
const Settings = { | ||
navTheme: 'light', | ||
// 拂晓蓝 | ||
primaryColor: '#1890ff', | ||
layout: 'mix', | ||
contentWidth: 'Fluid', | ||
fixedHeader: false, | ||
fixSiderbar: true, | ||
colorWeak: false, | ||
title: 'Ant Design Pro', | ||
pwa: false, | ||
logo: 'https://gw.alipayobjects.com/zos/rmsportal/KDpgvguMpGfqaHPjicRK.svg', | ||
iconfontUrl: '', | ||
}; | ||
export default Settings; |
Oops, something went wrong.