forked from antdpro/antdp
-
Notifications
You must be signed in to change notification settings - Fork 0
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
1 parent
eef231e
commit d9214ec
Showing
75 changed files
with
5,240 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 @@ | ||
SKIP_PREFLIGHT_CHECK=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,20 @@ | ||
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. | ||
|
||
# dependencies | ||
/node_modules | ||
/npm-debug.log* | ||
/yarn-error.log | ||
/yarn.lock | ||
/package-lock.json | ||
|
||
# production | ||
/dist | ||
|
||
# misc | ||
.DS_Store | ||
|
||
# umi | ||
/src/.umi | ||
/src/.umi-production | ||
/src/.umi-test | ||
/.env.local |
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 @@ | ||
**/*.md | ||
**/*.svg | ||
**/*.ejs | ||
**/*.html | ||
package.json | ||
.umi | ||
.umi-production | ||
.umi-test |
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,11 @@ | ||
{ | ||
"singleQuote": true, | ||
"trailingComma": "all", | ||
"printWidth": 80, | ||
"overrides": [ | ||
{ | ||
"files": ".prettierrc", | ||
"options": { "parser": "json" } | ||
} | ||
] | ||
} |
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 @@ | ||
{ | ||
"installDependencies": true, | ||
"startCommand": "npm start" | ||
} |
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,19 @@ | ||
# umi project | ||
|
||
## Getting Started | ||
|
||
Install dependencies, | ||
|
||
```bash | ||
$ yarn | ||
``` | ||
|
||
Start the dev server, | ||
|
||
```bash | ||
$ yarn start | ||
``` | ||
|
||
## Open in CodeSandbox | ||
|
||
[](https://codesandbox.io/s/github/antdpro/antdp/tree/master/examples/antdp-base) |
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,48 @@ | ||
import config from '@antdp/config'; | ||
import proxy from './proxy'; | ||
import router from './router.json'; | ||
export default config(router, { | ||
proxy, | ||
npmClient: 'npm', | ||
define: { | ||
// 是否显示 左侧菜单 | ||
// ANTD_MENU_IS_SHOW: false, | ||
// 是否显示 head头部 | ||
// ANTD_HEAD_IS_SHOW: false, | ||
// 是否展示tab栏 | ||
ANTD_IS_TABS: true, | ||
// 是否展示面包屑 | ||
ANTD_IS_BREADCRUMB: false, | ||
ANTD_AUTH_CONF: { | ||
auth_menu: 'authMenu', | ||
auth_btn: 'authBtn', | ||
auth_check_url: '', | ||
}, | ||
ANTD_MENU_TOP_LEFT: false, | ||
ANTD_MENU_SLIDER: false, | ||
/** 是否展示搜索菜单 */ | ||
ANTD_MENU_SEARCH_IS_SHOW: true, | ||
}, | ||
locale: { | ||
// 默认使用 src/locales/zh-CN.ts 作为多语言文件 | ||
default: 'zh-CN', | ||
antd: true, | ||
// default true, when it is true, will use `navigator.language` overwrite default | ||
// baseNavigator: true, | ||
/** | ||
* [国际化] 控制台提示 Warning: The current popular language does not exist, please check the locales folder! 警告信息 | ||
* https://github.com/umijs/umi/issues/4363#issuecomment-616134434 | ||
* 警用 `baseNavigator` 和 `title` 两个配置项 可以解决国际化警告问题 | ||
*/ | ||
baseNavigator: false, | ||
title: false, | ||
}, | ||
dva: {}, | ||
model: {}, | ||
request: {}, | ||
reactQuery: { | ||
// 是否开启 react query 官方 devtool 工具 | ||
devtool: false, | ||
queryClient: 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,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://preview.pro.ant.design', | ||
changeOrigin: true, | ||
pathRewrite: { '^': '' }, | ||
}, | ||
}, | ||
test: { | ||
'/api/': { | ||
target: 'https://preview.pro.ant.design', | ||
changeOrigin: true, | ||
pathRewrite: { '^': '' }, | ||
}, | ||
}, | ||
pre: { | ||
'/api/': { | ||
target: 'your pre url', | ||
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,166 @@ | ||
[ | ||
{ | ||
"path": "/login", | ||
"component": "@/layouts/UserLayout" | ||
}, | ||
{ | ||
"path": "/", | ||
"component": "@/layouts/BasicLayout", | ||
"routes": [ | ||
{ | ||
"path": "/", | ||
"redirectTo": "/welcome" | ||
}, | ||
{ | ||
"path": "/*", | ||
"component": "@/pages/404" | ||
}, | ||
{ | ||
"path": "/welcome", | ||
"name": "首页", | ||
"locale": "welcome", | ||
"icon": "dashboard", | ||
"component": "@/pages/Home/index" | ||
}, | ||
{ | ||
"path": "/dashboard", | ||
"name": "页面实例", | ||
"locale": "dashboard", | ||
"icon": "fileText", | ||
"side": true, | ||
"component": "@/pages/Demo" | ||
}, | ||
{ | ||
"path": "/components", | ||
"name": "组件页", | ||
"locale": "components", | ||
"icon": "form", | ||
"routes": [ | ||
{ | ||
"path": "/components/quickform", | ||
"name": "快速表单", | ||
"locale": "quickform", | ||
"component": "@/pages/Components/QuickForm" | ||
}, | ||
{ | ||
"path": "/components/formdetail", | ||
"name": "详情表单", | ||
"locale": "formdetail", | ||
"component": "@/pages/Components/FormDetail" | ||
}, | ||
{ | ||
"path": "/components/edittable", | ||
"name": "编辑表格", | ||
"locale": "edittable", | ||
"component": "@/pages/Components/EditTable" | ||
}, | ||
{ | ||
"path": "/components/proform", | ||
"name": "ProForm", | ||
"locale": "proform", | ||
"component": "@/pages/Components/ProForm" | ||
} | ||
] | ||
}, | ||
{ | ||
"path": "/list", | ||
"name": "列表页", | ||
"icon": "table", | ||
"locale": "list", | ||
"routes": [ | ||
{ | ||
"path": "/list/basiclist", | ||
"name": "基础列表", | ||
"locale": "basiclist", | ||
"component": "@/pages/List/BasicList" | ||
}, | ||
{ | ||
"path": "/list/cardlist", | ||
"name": "卡片列表", | ||
"locale": "cardlist", | ||
"component": "@/pages/List/CardList" | ||
}, | ||
{ | ||
"path": "/list/tablelist", | ||
"name": "ProTable", | ||
"locale": "tablelist", | ||
"component": "@/pages/List/TableList" | ||
}, | ||
{ | ||
"path": "/list/prolist", | ||
"name": "ProList", | ||
"locale": "prolist", | ||
"component": "@/pages/List/ProList" | ||
} | ||
] | ||
}, | ||
{ | ||
"path": "/detail", | ||
"name": "详情页", | ||
"icon": "profile", | ||
"locale": "detail", | ||
"routes": [ | ||
{ | ||
"path": "/detail/basicdetails", | ||
"name": "基础详情页", | ||
"locale": "basicdetails", | ||
"component": "@/pages/Detail/BasicDetails" | ||
}, | ||
{ | ||
"path": "/detail/advanceddetails", | ||
"name": "高级详情页", | ||
"locale": "advanceddetails", | ||
"component": "@/pages/Detail/AdvancedDetails" | ||
} | ||
] | ||
}, | ||
{ | ||
"path": "/results", | ||
"name": "结果页", | ||
"locale": "results", | ||
"icon": "checkCircle", | ||
"routes": [ | ||
{ | ||
"path": "/results/success", | ||
"name": "成功页", | ||
"locale": "success", | ||
"component": "@/pages/Results/Success" | ||
}, | ||
{ | ||
"path": "/results/fail", | ||
"name": "失败页", | ||
"locale": "fail", | ||
"component": "@/pages/Results/Fail" | ||
} | ||
] | ||
}, | ||
{ | ||
"path": "/person", | ||
"name": "个人页", | ||
"icon": "user", | ||
"locale": "person", | ||
"routes": [ | ||
{ | ||
"path": "/person/personalCenter", | ||
"name": "个人中心", | ||
"locale": "personalCenter", | ||
"component": "@/pages/Person/PersonalCenter" | ||
}, | ||
{ | ||
"path": "/person/personalSettings", | ||
"name": "个人设置", | ||
"locale": "personalSettings", | ||
"component": "@/pages/Person/PersonalSettings" | ||
} | ||
] | ||
}, | ||
{ | ||
"path": "/403", | ||
"name": "403", | ||
"icon": "file-protect", | ||
"component": "@/pages/403", | ||
"hideInMenu": true | ||
} | ||
] | ||
} | ||
] |
Empty file.
Oops, something went wrong.