module-menu 0.1.13 → 0.1.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/.umi/.cache/babel-loader/0b8aa71fcd1f198ac99777250520d170.json.gz +0 -0
- package/src/.umi/.cache/babel-loader/0cecca89b0bae0d34ad8800164dcc311.json.gz +0 -0
- package/src/.umi/.cache/babel-loader/18b66617f68d828143b15a16fcbf70d1.json.gz +0 -0
- package/src/.umi/.cache/babel-loader/1d59e803029ec082eed760ace4c9850b.json.gz +0 -0
- package/src/.umi/.cache/babel-loader/1dacc5d200818cb73f5978f25d649750.json.gz +0 -0
- package/src/.umi/.cache/babel-loader/2819d1381a1983754f3242b81a752940.json.gz +0 -0
- package/src/.umi/.cache/babel-loader/32b74ba724b91ec3f7152e24341c54ee.json.gz +0 -0
- package/src/.umi/.cache/babel-loader/37d670798d4605135e9d0158d5bdd2c7.json.gz +0 -0
- package/src/.umi/.cache/babel-loader/40362101e82d097ce26c246fc3e39649.json.gz +0 -0
- package/src/.umi/.cache/babel-loader/484fe71e479c50c9d00fae382e8e6d97.json.gz +0 -0
- package/src/.umi/.cache/babel-loader/4a8187a04ccbb5321a334d59689eaa8c.json.gz +0 -0
- package/src/.umi/.cache/babel-loader/4ed8b3de7fb4fb290e1f3234a2dfcf64.json.gz +0 -0
- package/src/.umi/.cache/babel-loader/55769b45827598e58d1ad3859b0b4176.json.gz +0 -0
- package/src/.umi/.cache/babel-loader/565ad01c58cfd2dd726cce1669b43a83.json.gz +0 -0
- package/src/.umi/.cache/babel-loader/5af9005528fbaff10a8a749b4a75132d.json.gz +0 -0
- package/src/.umi/.cache/babel-loader/5fa5abe9e2a8be1beecfa3849610a0f5.json.gz +0 -0
- package/src/.umi/.cache/babel-loader/6591908fe0ff1ccbe6e941da5f4ef511.json.gz +0 -0
- package/src/.umi/.cache/babel-loader/6c05b0c0af954da1cee705d15325c8ae.json.gz +0 -0
- package/src/.umi/.cache/babel-loader/6c613061901b8a7dd07a324bc24b22e4.json.gz +0 -0
- package/src/.umi/.cache/babel-loader/734ef88679bc117c8a7c9f87f1aeca2e.json.gz +0 -0
- package/src/.umi/.cache/babel-loader/781996813a45f4f60caae9a9e5b62cb9.json.gz +0 -0
- package/src/.umi/.cache/babel-loader/7a5e07f55b612d5c8f9855afd1076061.json.gz +0 -0
- package/src/.umi/.cache/babel-loader/80b71826905030ba16fc486347a704e2.json.gz +0 -0
- package/src/.umi/.cache/babel-loader/81847e0e14ec28d95ac98d87593ae293.json.gz +0 -0
- package/src/.umi/.cache/babel-loader/86f3472ad741010600f2e659336a1f50.json.gz +0 -0
- package/src/.umi/.cache/babel-loader/885ffa42e91596feaec4d528db9f3ab5.json.gz +0 -0
- package/src/.umi/.cache/babel-loader/9ca740b7824439d36c0cb0123949401e.json.gz +0 -0
- package/src/.umi/.cache/babel-loader/9eff36076a82744e4d9f6c43a9d3858a.json.gz +0 -0
- package/src/.umi/.cache/babel-loader/a1b6a5aa8434048fcc225b19a5b52b08.json.gz +0 -0
- package/src/.umi/.cache/babel-loader/a6792b43409b777e3481cc2397e85fcc.json.gz +0 -0
- package/src/.umi/.cache/babel-loader/aac1165ec3101755b00fe2c95300215c.json.gz +0 -0
- package/src/.umi/.cache/babel-loader/ac8661dea02f9cb4677714701eb63a0b.json.gz +0 -0
- package/src/.umi/.cache/babel-loader/b3381007efa4ee39bc940e1902129c66.json.gz +0 -0
- package/src/.umi/.cache/babel-loader/bbbc07f6788a87045e07262b0e598873.json.gz +0 -0
- package/src/.umi/.cache/babel-loader/bcc7e929974f92d168d829687e228911.json.gz +0 -0
- package/src/.umi/.cache/babel-loader/be03520e356aa934a1b568fd6ea3a7d4.json.gz +0 -0
- package/src/.umi/.cache/babel-loader/bf986f041a2c210f40e77a03a157a93f.json.gz +0 -0
- package/src/.umi/.cache/babel-loader/c250dc462b627ec7c44c1401fc6f887b.json.gz +0 -0
- package/src/.umi/.cache/babel-loader/c6fc0afc1ff0b7dc7f0b2df97df0655d.json.gz +0 -0
- package/src/.umi/.cache/babel-loader/cfd92708682b364a5d95c3f959ee6df0.json.gz +0 -0
- package/src/.umi/.cache/babel-loader/d83ea9dab7ad5c1790a884b285ded4f1.json.gz +0 -0
- package/src/.umi/.cache/babel-loader/d8a24b1dbe348341005d6d857d1ef75c.json.gz +0 -0
- package/src/.umi/.cache/babel-loader/df70cc6f5dfb13e9683f45ad51f910c2.json.gz +0 -0
- package/src/.umi/.cache/babel-loader/e57182404b2b7e4c32096928f9ddf38e.json.gz +0 -0
- package/src/.umi/.cache/babel-loader/eab4adf6dddf9dee5bb7698471fda435.json.gz +0 -0
- package/src/.umi/.cache/babel-loader/ecb35ce5418f913f01043a1eecd55305.json.gz +0 -0
- package/src/.umi/.cache/babel-loader/fa6a4c30bc283b21346166ca58b23c78.json.gz +0 -0
- package/src/pages/ModuleMenu/index.jsx +100 -87
- package/src/pages/ModuleMenu/index.less +37 -26
- package/module-menu/.editorconfig +0 -16
- package/module-menu/.prettierignore +0 -8
- package/module-menu/.prettierrc +0 -11
- package/module-menu/.umirc.js +0 -11
- package/module-menu/README.md +0 -15
- package/module-menu/mock/.gitkeep +0 -0
- package/module-menu/package-lock.json +0 -10508
- package/module-menu/package.json +0 -43
- package/module-menu/src/.umi/.cache/babel-loader/006cd391c2d71e6cf49cff32a7d7e7ea.json.gz +0 -0
- package/module-menu/src/.umi/.cache/babel-loader/03284ae7112fac4df41a59399f35eb71.json.gz +0 -0
- package/module-menu/src/.umi/.cache/babel-loader/0338b3888dd146dd07b8a2dadae22515.json.gz +0 -0
- package/module-menu/src/.umi/.cache/babel-loader/046a6f14bf358d879b171cc3fd01a7f1.json.gz +0 -0
- package/module-menu/src/.umi/.cache/babel-loader/06653d4063f1fa0a78dbe664c4d942a2.json.gz +0 -0
- package/module-menu/src/.umi/.cache/babel-loader/06d0fe56df444f975b92ef13f83ac9dc.json.gz +0 -0
- package/module-menu/src/.umi/.cache/babel-loader/07946a12d045541a6da81e832a157386.json.gz +0 -0
- package/module-menu/src/.umi/.cache/babel-loader/098a5cfe0e14aa583144c71244bbaf0d.json.gz +0 -0
- package/module-menu/src/.umi/.cache/babel-loader/0bd5919b2a2a3a6672ace3392d7b54c7.json.gz +0 -0
- package/module-menu/src/.umi/.cache/babel-loader/0e803b5601d075064d8a5641f3170e96.json.gz +0 -0
- package/module-menu/src/.umi/.cache/babel-loader/1442bb8085d75aace84c47184037ee95.json.gz +0 -0
- package/module-menu/src/.umi/.cache/babel-loader/18c838bdac254bbf1beb7712f133cc5d.json.gz +0 -0
- package/module-menu/src/.umi/.cache/babel-loader/205f69591df1adc59d31d7d316807079.json.gz +0 -0
- package/module-menu/src/.umi/.cache/babel-loader/207aedf3f20ffcb46971f059f764a937.json.gz +0 -0
- package/module-menu/src/.umi/.cache/babel-loader/21bf22a0f74efaed9c74cc4affccdb03.json.gz +0 -0
- package/module-menu/src/.umi/.cache/babel-loader/2cd50d901ae2e761fb8b68217d063338.json.gz +0 -0
- package/module-menu/src/.umi/.cache/babel-loader/2d229db1056434d82e241d47a7cb0019.json.gz +0 -0
- package/module-menu/src/.umi/.cache/babel-loader/31ec5214ed0e837a88908074a704a9f2.json.gz +0 -0
- package/module-menu/src/.umi/.cache/babel-loader/3516c56d068efdb601a4ab92380d0d8d.json.gz +0 -0
- package/module-menu/src/.umi/.cache/babel-loader/38fe4fe93f78903424446b2670dd881a.json.gz +0 -0
- package/module-menu/src/.umi/.cache/babel-loader/3c68d1331943fa9728a907595666f07e.json.gz +0 -0
- package/module-menu/src/.umi/.cache/babel-loader/3f4c30e441ca71253594a5f549c83e5d.json.gz +0 -0
- package/module-menu/src/.umi/.cache/babel-loader/3fa050f4121950e0c8fbed0a7a17f949.json.gz +0 -0
- package/module-menu/src/.umi/.cache/babel-loader/43a5d580c6a2da6134a17edcf7b87084.json.gz +0 -0
- package/module-menu/src/.umi/.cache/babel-loader/49df2c271b8c26be9fa63c2f08a39e1c.json.gz +0 -0
- package/module-menu/src/.umi/.cache/babel-loader/49e42f927f0dfd4fbf356621b462907d.json.gz +0 -0
- package/module-menu/src/.umi/.cache/babel-loader/519c1e6e8b80823d319520282883d39a.json.gz +0 -0
- package/module-menu/src/.umi/.cache/babel-loader/5292c5d56ff34f3fd3129c440fdb4493.json.gz +0 -0
- package/module-menu/src/.umi/.cache/babel-loader/5c100893e49bb4efeb051d923f32e423.json.gz +0 -0
- package/module-menu/src/.umi/.cache/babel-loader/5e0b4502b7ceb437bf7f27f9e95d297a.json.gz +0 -0
- package/module-menu/src/.umi/.cache/babel-loader/5e7949d3b58decc79a0edfe0d7e4c8c9.json.gz +0 -0
- package/module-menu/src/.umi/.cache/babel-loader/5fd00a980e83fad309c4ffe18acd445e.json.gz +0 -0
- package/module-menu/src/.umi/.cache/babel-loader/61996ca5ddd9a40ea57e9b8e8208c140.json.gz +0 -0
- package/module-menu/src/.umi/.cache/babel-loader/62134e23705254446f29c84b5db350c4.json.gz +0 -0
- package/module-menu/src/.umi/.cache/babel-loader/6432db849c9ee59480c90f5c482cd5b2.json.gz +0 -0
- package/module-menu/src/.umi/.cache/babel-loader/658d7adb4f4e9d7cb3db5066f2519f56.json.gz +0 -0
- package/module-menu/src/.umi/.cache/babel-loader/6ddf93f0a388c458b2625d756c2db343.json.gz +0 -0
- package/module-menu/src/.umi/.cache/babel-loader/6f45db40796a8803ac6312b4857f27ec.json.gz +0 -0
- package/module-menu/src/.umi/.cache/babel-loader/77b6cd8f61f66fa2458792503a65eb37.json.gz +0 -0
- package/module-menu/src/.umi/.cache/babel-loader/7944475811983ddaa4b770f627624e0d.json.gz +0 -0
- package/module-menu/src/.umi/.cache/babel-loader/7b4983c7428750b20c354ecb1cc6226f.json.gz +0 -0
- package/module-menu/src/.umi/.cache/babel-loader/8039a02aa8eed37acc9323630d107146.json.gz +0 -0
- package/module-menu/src/.umi/.cache/babel-loader/85c1f7c86d92940fa620b83221c3308b.json.gz +0 -0
- package/module-menu/src/.umi/.cache/babel-loader/88b299cd1184db10195e72bb7d98b152.json.gz +0 -0
- package/module-menu/src/.umi/.cache/babel-loader/9063d2c47eb5e0bb594120f8f5c68195.json.gz +0 -0
- package/module-menu/src/.umi/.cache/babel-loader/91e8bfec8fe860c1bb34175291c89984.json.gz +0 -0
- package/module-menu/src/.umi/.cache/babel-loader/92928bbbb76c0e98cfac0f18fd57f944.json.gz +0 -0
- package/module-menu/src/.umi/.cache/babel-loader/97775925a6d686cc65b6881088b6aaa4.json.gz +0 -0
- package/module-menu/src/.umi/.cache/babel-loader/ac1120025ed179b467390d0571cf7458.json.gz +0 -0
- package/module-menu/src/.umi/.cache/babel-loader/b3c7cec78f9f5d89bad744a7925088f5.json.gz +0 -0
- package/module-menu/src/.umi/.cache/babel-loader/bf21c0e0aef3bca337d64052aac542ae.json.gz +0 -0
- package/module-menu/src/.umi/.cache/babel-loader/c1e4065a5c16bb60e0dad17fd17e4d21.json.gz +0 -0
- package/module-menu/src/.umi/.cache/babel-loader/c21f0a9cfaa9c2508ff66278ae805cec.json.gz +0 -0
- package/module-menu/src/.umi/.cache/babel-loader/c5f25455f80accb4389a63e966193658.json.gz +0 -0
- package/module-menu/src/.umi/.cache/babel-loader/c9dd744bd0783172a360449fa1e38ed6.json.gz +0 -0
- package/module-menu/src/.umi/.cache/babel-loader/ca6ee733d6717db7fdca16d74303b505.json.gz +0 -0
- package/module-menu/src/.umi/.cache/babel-loader/ca9f2f7ba4ddf43250e857bb72d09844.json.gz +0 -0
- package/module-menu/src/.umi/.cache/babel-loader/d5cec1443884c84dea19b626dff4a130.json.gz +0 -0
- package/module-menu/src/.umi/.cache/babel-loader/d6766af37348eff45bd00811479caa5d.json.gz +0 -0
- package/module-menu/src/.umi/.cache/babel-loader/d7d65bbebb7d2a6933b8994ed54ba1f4.json.gz +0 -0
- package/module-menu/src/.umi/.cache/babel-loader/d8e03990d8e0f543ddd2c8b7c1986b6e.json.gz +0 -0
- package/module-menu/src/.umi/.cache/babel-loader/d94d2cccf8876adaf96c9792ae1604d7.json.gz +0 -0
- package/module-menu/src/.umi/.cache/babel-loader/e76ddc963361774c561993f62f13cd1c.json.gz +0 -0
- package/module-menu/src/.umi/.cache/babel-loader/ead72363425c1c628f2e2ef38aff6274.json.gz +0 -0
- package/module-menu/src/.umi/.cache/babel-loader/f51381c1c72497b2501b84bb197f1317.json.gz +0 -0
- package/module-menu/src/.umi/core/devScripts.ts +0 -53
- package/module-menu/src/.umi/core/history.ts +0 -21
- package/module-menu/src/.umi/core/plugin.ts +0 -8
- package/module-menu/src/.umi/core/pluginConfig.d.ts +0 -304
- package/module-menu/src/.umi/core/pluginRegister.ts +0 -15
- package/module-menu/src/.umi/core/polyfill.ts +0 -4
- package/module-menu/src/.umi/core/routes.ts +0 -24
- package/module-menu/src/.umi/core/umiExports.ts +0 -7
- package/module-menu/src/.umi/plugin-helmet/exports.ts +0 -3
- package/module-menu/src/.umi/plugin-initial-state/Provider.tsx +0 -37
- package/module-menu/src/.umi/plugin-initial-state/exports.ts +0 -7
- package/module-menu/src/.umi/plugin-initial-state/models/initialState.ts +0 -2
- package/module-menu/src/.umi/plugin-initial-state/runtime.tsx +0 -13
- package/module-menu/src/.umi/plugin-model/Provider.tsx +0 -39
- package/module-menu/src/.umi/plugin-model/helpers/constant.tsx +0 -4
- package/module-menu/src/.umi/plugin-model/helpers/dispatcher.tsx +0 -19
- package/module-menu/src/.umi/plugin-model/helpers/executor.tsx +0 -83
- package/module-menu/src/.umi/plugin-model/runtime.tsx +0 -12
- package/module-menu/src/.umi/plugin-model/useModel.tsx +0 -71
- package/module-menu/src/.umi/plugin-request/request.ts +0 -278
- package/module-menu/src/.umi/umi.ts +0 -58
- package/module-menu/src/assets/childIcon.svg +0 -10
- package/module-menu/src/assets/home.svg +0 -12
- package/module-menu/src/assets/logout.png +0 -0
- package/module-menu/src/assets/menuIcon.svg +0 -1
- package/module-menu/src/assets/messageCenter.svg +0 -1
- package/module-menu/src/assets/module.svg +0 -12
- package/module-menu/src/assets/personalCenter.svg +0 -16
- package/module-menu/src/assets/systemManage.svg +0 -16
- package/module-menu/src/pages/ModuleMenu/constData.jsx +0 -60
- package/module-menu/src/pages/ModuleMenu/index.jsx +0 -181
- package/module-menu/src/pages/ModuleMenu/index.less +0 -77
- package/module-menu/src/pages/ModuleUser/constData.jsx +0 -11
- package/module-menu/src/pages/ModuleUser/index.jsx +0 -59
- package/module-menu/src/pages/ModuleUser/index.less +0 -46
- package/module-menu/src/pages/ModuleUser/userInfo.js +0 -50
- package/module-menu/src/pages/PageHeader/index.jsx +0 -13
- package/module-menu/src/pages/PageHeader/index.less +0 -10
- package/module-menu/src/pages/index.jsx +0 -2
- package/module-menu/tsconfig.json +0 -37
- package/module-menu/typings.d.ts +0 -10
package/module-menu/package.json
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "module-menu",
|
|
3
|
-
"version": "0.1.2",
|
|
4
|
-
"description": "城市大数据平台菜单",
|
|
5
|
-
"scripts": {
|
|
6
|
-
"start": "umi dev",
|
|
7
|
-
"build": "umi build",
|
|
8
|
-
"postinstall": "umi generate tmp",
|
|
9
|
-
"prettier": "prettier --write '**/*.{js,jsx,tsx,ts,less,md,json}'",
|
|
10
|
-
"test": "umi-test",
|
|
11
|
-
"test:coverage": "umi-test --coverage"
|
|
12
|
-
},
|
|
13
|
-
"gitHooks": {
|
|
14
|
-
"pre-commit": "lint-staged"
|
|
15
|
-
},
|
|
16
|
-
"lint-staged": {
|
|
17
|
-
"**/*.less": "stylelint --syntax less",
|
|
18
|
-
"**/*.{js,jsx,ts,tsx}": "npm run lint-staged:js",
|
|
19
|
-
"*.{js,jsx,less,md,json}": [
|
|
20
|
-
"prettier --write"
|
|
21
|
-
],
|
|
22
|
-
"*.ts?(x)": [
|
|
23
|
-
"prettier --parser=typescript --write"
|
|
24
|
-
]
|
|
25
|
-
},
|
|
26
|
-
"dependencies": {
|
|
27
|
-
"@ant-design/pro-layout": "^6.5.0",
|
|
28
|
-
"antd": "^4.17.0",
|
|
29
|
-
"react": "^17.0.0",
|
|
30
|
-
"react-dom": "^17.0.0",
|
|
31
|
-
"umi": "^3.5.0"
|
|
32
|
-
},
|
|
33
|
-
"devDependencies": {
|
|
34
|
-
"@types/react": "^17.0.0",
|
|
35
|
-
"@types/react-dom": "^17.0.0",
|
|
36
|
-
"@umijs/preset-react": "^1.8.17",
|
|
37
|
-
"@umijs/test": "^3.5.41",
|
|
38
|
-
"lint-staged": "^10.0.0",
|
|
39
|
-
"prettier": "^2.3.2",
|
|
40
|
-
"typescript": "^4.2.2",
|
|
41
|
-
"yorkie": "^2.0.0"
|
|
42
|
-
}
|
|
43
|
-
}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
// @ts-nocheck
|
|
2
|
-
|
|
3
|
-
if (window.g_initWebpackHotDevClient) {
|
|
4
|
-
function tryApplyUpdates(onHotUpdateSuccess?: Function) {
|
|
5
|
-
// @ts-ignore
|
|
6
|
-
if (!module.hot) {
|
|
7
|
-
window.location.reload();
|
|
8
|
-
return;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
function isUpdateAvailable() {
|
|
12
|
-
// @ts-ignore
|
|
13
|
-
return window.g_getMostRecentCompilationHash() !== __webpack_hash__;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
// TODO: is update available?
|
|
17
|
-
// @ts-ignore
|
|
18
|
-
if (!isUpdateAvailable() || module.hot.status() !== 'idle') {
|
|
19
|
-
return;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
function handleApplyUpdates(err: Error | null, updatedModules: any) {
|
|
23
|
-
if (err || !updatedModules || window.g_getHadRuntimeError()) {
|
|
24
|
-
window.location.reload();
|
|
25
|
-
return;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
onHotUpdateSuccess?.();
|
|
29
|
-
|
|
30
|
-
if (isUpdateAvailable()) {
|
|
31
|
-
// While we were updating, there was a new update! Do it again.
|
|
32
|
-
tryApplyUpdates();
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
// @ts-ignore
|
|
37
|
-
module.hot.check(true).then(
|
|
38
|
-
function (updatedModules: any) {
|
|
39
|
-
handleApplyUpdates(null, updatedModules);
|
|
40
|
-
},
|
|
41
|
-
function (err: Error) {
|
|
42
|
-
handleApplyUpdates(err, null);
|
|
43
|
-
},
|
|
44
|
-
);
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
window.g_initWebpackHotDevClient({
|
|
48
|
-
tryApplyUpdates,
|
|
49
|
-
});
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
export const __mfsu = 1;
|
|
53
|
-
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
// @ts-nocheck
|
|
2
|
-
import { createBrowserHistory, History } from 'D:/NewGitPro/module-menu/node_modules/umi/node_modules/@umijs/runtime';
|
|
3
|
-
|
|
4
|
-
let options = {
|
|
5
|
-
"basename": "/"
|
|
6
|
-
};
|
|
7
|
-
if ((<any>window).routerBase) {
|
|
8
|
-
options.basename = (<any>window).routerBase;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
// remove initial history because of ssr
|
|
12
|
-
let history: History = process.env.__IS_SERVER ? null : createBrowserHistory(options);
|
|
13
|
-
export const createHistory = (hotReload = false) => {
|
|
14
|
-
if (!hotReload) {
|
|
15
|
-
history = createBrowserHistory(options);
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
return history;
|
|
19
|
-
};
|
|
20
|
-
|
|
21
|
-
export { history };
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
// @ts-nocheck
|
|
2
|
-
import { Plugin } from 'D:/NewGitPro/module-menu/node_modules/umi/node_modules/@umijs/runtime';
|
|
3
|
-
|
|
4
|
-
const plugin = new Plugin({
|
|
5
|
-
validKeys: ['modifyClientRenderOpts','patchRoutes','rootContainer','render','onRouteChange','__mfsu','getInitialState','initialStateConfig','request',],
|
|
6
|
-
});
|
|
7
|
-
|
|
8
|
-
export { plugin };
|
|
@@ -1,304 +0,0 @@
|
|
|
1
|
-
// Created by Umi Plugin
|
|
2
|
-
|
|
3
|
-
export interface IConfigFromPlugins {
|
|
4
|
-
"404"?: boolean
|
|
5
|
-
routes?: {
|
|
6
|
-
/**
|
|
7
|
-
* Any valid URL path
|
|
8
|
-
*/
|
|
9
|
-
path?: string
|
|
10
|
-
/**
|
|
11
|
-
* A React component to render only when the location matches.
|
|
12
|
-
*/
|
|
13
|
-
component?: (string | (() => any))
|
|
14
|
-
wrappers?: string[]
|
|
15
|
-
/**
|
|
16
|
-
* navigate to a new location
|
|
17
|
-
*/
|
|
18
|
-
redirect?: string
|
|
19
|
-
/**
|
|
20
|
-
* When true, the active class/style will only be applied if the location is matched exactly.
|
|
21
|
-
*/
|
|
22
|
-
exact?: boolean
|
|
23
|
-
routes?: any[]
|
|
24
|
-
[k: string]: any
|
|
25
|
-
}[]
|
|
26
|
-
history?: {
|
|
27
|
-
type?: ("browser" | "hash" | "memory")
|
|
28
|
-
options?: {
|
|
29
|
-
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
polyfill?: {
|
|
33
|
-
imports?: string[]
|
|
34
|
-
}
|
|
35
|
-
alias?: {
|
|
36
|
-
|
|
37
|
-
}
|
|
38
|
-
analyze?: {
|
|
39
|
-
analyzerMode?: ("server" | "static" | "disabled")
|
|
40
|
-
analyzerHost?: string
|
|
41
|
-
analyzerPort?: any
|
|
42
|
-
openAnalyzer?: boolean
|
|
43
|
-
generateStatsFile?: boolean
|
|
44
|
-
statsFilename?: string
|
|
45
|
-
logLevel?: ("info" | "warn" | "error" | "silent")
|
|
46
|
-
defaultSizes?: ("stat" | "parsed" | "gzip")
|
|
47
|
-
[k: string]: any
|
|
48
|
-
}
|
|
49
|
-
/**
|
|
50
|
-
* postcss autoprefixer, default flexbox: no-2009
|
|
51
|
-
*/
|
|
52
|
-
autoprefixer?: {
|
|
53
|
-
|
|
54
|
-
}
|
|
55
|
-
base?: string
|
|
56
|
-
chainWebpack?: (() => any)
|
|
57
|
-
chunks?: string[]
|
|
58
|
-
/**
|
|
59
|
-
* more css-loader options see https://webpack.js.org/loaders/css-loader/#options
|
|
60
|
-
*/
|
|
61
|
-
cssLoader?: {
|
|
62
|
-
url?: (boolean | (() => any))
|
|
63
|
-
import?: (boolean | (() => any))
|
|
64
|
-
modules?: (boolean | string | {
|
|
65
|
-
|
|
66
|
-
})
|
|
67
|
-
sourceMap?: boolean
|
|
68
|
-
importLoaders?: number
|
|
69
|
-
onlyLocals?: boolean
|
|
70
|
-
esModule?: boolean
|
|
71
|
-
localsConvention?: ("asIs" | "camelCase" | "camelCaseOnly" | "dashes" | "dashesOnly")
|
|
72
|
-
}
|
|
73
|
-
cssModulesTypescriptLoader?: {
|
|
74
|
-
mode?: ("emit" | "verify")
|
|
75
|
-
}
|
|
76
|
-
cssnano?: {
|
|
77
|
-
|
|
78
|
-
}
|
|
79
|
-
copy?: any[]
|
|
80
|
-
define?: {
|
|
81
|
-
|
|
82
|
-
}
|
|
83
|
-
devScripts?: {
|
|
84
|
-
|
|
85
|
-
}
|
|
86
|
-
/**
|
|
87
|
-
* devServer configs
|
|
88
|
-
*/
|
|
89
|
-
devServer?: {
|
|
90
|
-
/**
|
|
91
|
-
* devServer port, default 8000
|
|
92
|
-
*/
|
|
93
|
-
port?: number
|
|
94
|
-
host?: string
|
|
95
|
-
https?: ({
|
|
96
|
-
key?: string
|
|
97
|
-
cert?: string
|
|
98
|
-
http2?: boolean
|
|
99
|
-
[k: string]: any
|
|
100
|
-
} | boolean)
|
|
101
|
-
headers?: {
|
|
102
|
-
|
|
103
|
-
}
|
|
104
|
-
writeToDisk?: (boolean | (() => any))
|
|
105
|
-
[k: string]: any
|
|
106
|
-
}
|
|
107
|
-
devtool?: string
|
|
108
|
-
/**
|
|
109
|
-
* Code splitting for performance optimization
|
|
110
|
-
*/
|
|
111
|
-
dynamicImport?: {
|
|
112
|
-
/**
|
|
113
|
-
* loading the component before loaded
|
|
114
|
-
*/
|
|
115
|
-
loading?: string
|
|
116
|
-
}
|
|
117
|
-
/**
|
|
118
|
-
* Code splitting for import statement syntax
|
|
119
|
-
*/
|
|
120
|
-
dynamicImportSyntax?: {
|
|
121
|
-
|
|
122
|
-
}
|
|
123
|
-
exportStatic?: {
|
|
124
|
-
htmlSuffix?: boolean
|
|
125
|
-
dynamicRoot?: boolean
|
|
126
|
-
supportWin?: boolean
|
|
127
|
-
/**
|
|
128
|
-
* extra render paths only enable in ssr
|
|
129
|
-
*/
|
|
130
|
-
extraRoutePaths?: (() => any)
|
|
131
|
-
}
|
|
132
|
-
externals?: ({
|
|
133
|
-
|
|
134
|
-
} | string | (() => any))
|
|
135
|
-
extraBabelIncludes?: any[]
|
|
136
|
-
extraBabelPlugins?: any[]
|
|
137
|
-
extraBabelPresets?: any[]
|
|
138
|
-
extraPostCSSPlugins?: any[]
|
|
139
|
-
/**
|
|
140
|
-
* fork-ts-checker-webpack-plugin options see https://github.com/TypeStrong/fork-ts-checker-webpack-plugin#options
|
|
141
|
-
*/
|
|
142
|
-
forkTSChecker?: {
|
|
143
|
-
async?: boolean
|
|
144
|
-
typescript?: (boolean | {
|
|
145
|
-
|
|
146
|
-
})
|
|
147
|
-
eslint?: {
|
|
148
|
-
|
|
149
|
-
}
|
|
150
|
-
issue?: {
|
|
151
|
-
|
|
152
|
-
}
|
|
153
|
-
formatter?: (string | {
|
|
154
|
-
|
|
155
|
-
})
|
|
156
|
-
logger?: {
|
|
157
|
-
|
|
158
|
-
}
|
|
159
|
-
[k: string]: any
|
|
160
|
-
}
|
|
161
|
-
fastRefresh?: {
|
|
162
|
-
|
|
163
|
-
}
|
|
164
|
-
hash?: boolean
|
|
165
|
-
ignoreMomentLocale?: boolean
|
|
166
|
-
inlineLimit?: number
|
|
167
|
-
lessLoader?: {
|
|
168
|
-
|
|
169
|
-
}
|
|
170
|
-
manifest?: {
|
|
171
|
-
fileName?: string
|
|
172
|
-
publicPath?: ""
|
|
173
|
-
basePath?: string
|
|
174
|
-
writeToFileEmit?: boolean
|
|
175
|
-
}
|
|
176
|
-
/**
|
|
177
|
-
* open mfsu feature
|
|
178
|
-
*/
|
|
179
|
-
mfsu?: {
|
|
180
|
-
development?: {
|
|
181
|
-
output?: string
|
|
182
|
-
}
|
|
183
|
-
production?: {
|
|
184
|
-
output?: string
|
|
185
|
-
}
|
|
186
|
-
mfName?: string
|
|
187
|
-
exportAllMembers?: {
|
|
188
|
-
|
|
189
|
-
}
|
|
190
|
-
chunks?: string[]
|
|
191
|
-
ignoreNodeBuiltInModules?: boolean
|
|
192
|
-
}
|
|
193
|
-
mountElementId?: ""
|
|
194
|
-
mpa?: {
|
|
195
|
-
|
|
196
|
-
}
|
|
197
|
-
nodeModulesTransform?: {
|
|
198
|
-
type?: ("all" | "none")
|
|
199
|
-
exclude?: string[]
|
|
200
|
-
}
|
|
201
|
-
outputPath?: ""
|
|
202
|
-
plugins?: string[]
|
|
203
|
-
postcssLoader?: {
|
|
204
|
-
|
|
205
|
-
}
|
|
206
|
-
presets?: string[]
|
|
207
|
-
proxy?: {
|
|
208
|
-
|
|
209
|
-
}
|
|
210
|
-
publicPath?: string
|
|
211
|
-
runtimePublicPath?: boolean
|
|
212
|
-
ssr?: {
|
|
213
|
-
/**
|
|
214
|
-
* force execing Page getInitialProps functions
|
|
215
|
-
*/
|
|
216
|
-
forceInitial?: boolean
|
|
217
|
-
/**
|
|
218
|
-
* remove window.g_initialProps in html
|
|
219
|
-
*/
|
|
220
|
-
removeWindowInitialProps?: boolean
|
|
221
|
-
/**
|
|
222
|
-
* disable serve-side render in umi dev mode.
|
|
223
|
-
*/
|
|
224
|
-
devServerRender?: boolean
|
|
225
|
-
mode?: ("stream" | "string")
|
|
226
|
-
/**
|
|
227
|
-
* static markup in static site
|
|
228
|
-
*/
|
|
229
|
-
staticMarkup?: boolean
|
|
230
|
-
}
|
|
231
|
-
singular?: boolean
|
|
232
|
-
styleLoader?: {
|
|
233
|
-
|
|
234
|
-
}
|
|
235
|
-
targets?: {
|
|
236
|
-
|
|
237
|
-
}
|
|
238
|
-
terserOptions?: {
|
|
239
|
-
|
|
240
|
-
}
|
|
241
|
-
theme?: {
|
|
242
|
-
|
|
243
|
-
}
|
|
244
|
-
runtimeHistory?: {
|
|
245
|
-
|
|
246
|
-
}
|
|
247
|
-
webpack5?: {
|
|
248
|
-
lazyCompilation?: {
|
|
249
|
-
entries?: boolean
|
|
250
|
-
imports?: boolean
|
|
251
|
-
test?: any
|
|
252
|
-
}
|
|
253
|
-
}
|
|
254
|
-
workerLoader?: {
|
|
255
|
-
|
|
256
|
-
}
|
|
257
|
-
favicon?: string
|
|
258
|
-
headScripts?: any[]
|
|
259
|
-
links?: any[]
|
|
260
|
-
metas?: any[]
|
|
261
|
-
scripts?: any[]
|
|
262
|
-
styles?: any[]
|
|
263
|
-
title?: string
|
|
264
|
-
mock?: {
|
|
265
|
-
exclude?: string[]
|
|
266
|
-
}
|
|
267
|
-
antd?: {
|
|
268
|
-
dark?: boolean
|
|
269
|
-
compact?: boolean
|
|
270
|
-
mobile?: boolean
|
|
271
|
-
disableBabelPluginImport?: boolean
|
|
272
|
-
config?: {
|
|
273
|
-
|
|
274
|
-
}
|
|
275
|
-
}
|
|
276
|
-
dva?: {
|
|
277
|
-
disableModelsReExport?: boolean
|
|
278
|
-
/**
|
|
279
|
-
* lazy load dva model avoiding the import modules from umi undefined
|
|
280
|
-
*/
|
|
281
|
-
lazyLoad?: boolean
|
|
282
|
-
extraModels?: string[]
|
|
283
|
-
hmr?: boolean
|
|
284
|
-
immer?: (boolean | {
|
|
285
|
-
|
|
286
|
-
})
|
|
287
|
-
skipModelValidate?: boolean
|
|
288
|
-
}
|
|
289
|
-
locale?: {
|
|
290
|
-
default?: string
|
|
291
|
-
useLocalStorage?: boolean
|
|
292
|
-
baseNavigator?: boolean
|
|
293
|
-
title?: boolean
|
|
294
|
-
antd?: boolean
|
|
295
|
-
baseSeparator?: string
|
|
296
|
-
}
|
|
297
|
-
layout?: {
|
|
298
|
-
|
|
299
|
-
}
|
|
300
|
-
request?: {
|
|
301
|
-
dataField?: ""
|
|
302
|
-
}
|
|
303
|
-
[k: string]: any
|
|
304
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
// @ts-nocheck
|
|
2
|
-
import { plugin } from './plugin';
|
|
3
|
-
import * as Plugin_0 from '../plugin-initial-state/runtime';
|
|
4
|
-
import * as Plugin_1 from '../plugin-model/runtime';
|
|
5
|
-
|
|
6
|
-
plugin.register({
|
|
7
|
-
apply: Plugin_0,
|
|
8
|
-
path: '../plugin-initial-state/runtime',
|
|
9
|
-
});
|
|
10
|
-
plugin.register({
|
|
11
|
-
apply: Plugin_1,
|
|
12
|
-
path: '../plugin-model/runtime',
|
|
13
|
-
});
|
|
14
|
-
|
|
15
|
-
export const __mfsu = 1;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
// @ts-nocheck
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { ApplyPluginsType } from 'D:/NewGitPro/module-menu/node_modules/umi/node_modules/@umijs/runtime';
|
|
4
|
-
import * as umiExports from './umiExports';
|
|
5
|
-
import { plugin } from './plugin';
|
|
6
|
-
|
|
7
|
-
export function getRoutes() {
|
|
8
|
-
const routes = [
|
|
9
|
-
{
|
|
10
|
-
"path": "/",
|
|
11
|
-
"component": require('@/pages/index').default,
|
|
12
|
-
"exact": true
|
|
13
|
-
}
|
|
14
|
-
];
|
|
15
|
-
|
|
16
|
-
// allow user to extend routes
|
|
17
|
-
plugin.applyPlugins({
|
|
18
|
-
key: 'patchRoutes',
|
|
19
|
-
type: ApplyPluginsType.event,
|
|
20
|
-
args: { routes },
|
|
21
|
-
});
|
|
22
|
-
|
|
23
|
-
return routes;
|
|
24
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
// @ts-nocheck
|
|
2
|
-
export { history } from './history';
|
|
3
|
-
export { plugin } from './plugin';
|
|
4
|
-
export * from '../plugin-initial-state/exports';
|
|
5
|
-
export * from '../plugin-model/useModel';
|
|
6
|
-
export * from '../plugin-request/request';
|
|
7
|
-
export * from '../plugin-helmet/exports';
|