module-menu 0.0.6 → 0.0.8

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.
Files changed (69) hide show
  1. package/.editorconfig +16 -0
  2. package/.prettierignore +8 -0
  3. package/.prettierrc +11 -0
  4. package/.umirc.js +11 -0
  5. package/README.md +10 -65
  6. package/dist/index.html +22 -0
  7. package/dist/static/childIcon.797194d8.svg +10 -0
  8. package/dist/static/home.c9f8fbce.svg +12 -0
  9. package/dist/static/menuIcon.a281e69f.svg +1 -0
  10. package/dist/static/module.287d1998.svg +12 -0
  11. package/dist/umi.css +1 -0
  12. package/dist/umi.js +1 -0
  13. package/mock/.gitkeep +0 -0
  14. package/package.json +29 -31
  15. package/src/.umi/.cache/babel-loader/006cd391c2d71e6cf49cff32a7d7e7ea.json.gz +0 -0
  16. package/src/.umi/.cache/babel-loader/0338b3888dd146dd07b8a2dadae22515.json.gz +0 -0
  17. package/src/.umi/.cache/babel-loader/046a6f14bf358d879b171cc3fd01a7f1.json.gz +0 -0
  18. package/src/.umi/.cache/babel-loader/06653d4063f1fa0a78dbe664c4d942a2.json.gz +0 -0
  19. package/src/.umi/.cache/babel-loader/07946a12d045541a6da81e832a157386.json.gz +0 -0
  20. package/src/.umi/.cache/babel-loader/098a5cfe0e14aa583144c71244bbaf0d.json.gz +0 -0
  21. package/src/.umi/.cache/babel-loader/0bd5919b2a2a3a6672ace3392d7b54c7.json.gz +0 -0
  22. package/src/.umi/.cache/babel-loader/0e803b5601d075064d8a5641f3170e96.json.gz +0 -0
  23. package/src/.umi/.cache/babel-loader/2cd50d901ae2e761fb8b68217d063338.json.gz +0 -0
  24. package/src/.umi/.cache/babel-loader/31ec5214ed0e837a88908074a704a9f2.json.gz +0 -0
  25. package/src/.umi/.cache/babel-loader/3516c56d068efdb601a4ab92380d0d8d.json.gz +0 -0
  26. package/src/.umi/.cache/babel-loader/38fe4fe93f78903424446b2670dd881a.json.gz +0 -0
  27. package/src/.umi/.cache/babel-loader/3f4c30e441ca71253594a5f549c83e5d.json.gz +0 -0
  28. package/src/.umi/.cache/babel-loader/43a5d580c6a2da6134a17edcf7b87084.json.gz +0 -0
  29. package/src/.umi/.cache/babel-loader/61996ca5ddd9a40ea57e9b8e8208c140.json.gz +0 -0
  30. package/src/.umi/.cache/babel-loader/6432db849c9ee59480c90f5c482cd5b2.json.gz +0 -0
  31. package/src/.umi/.cache/babel-loader/77b6cd8f61f66fa2458792503a65eb37.json.gz +0 -0
  32. package/src/.umi/.cache/babel-loader/7944475811983ddaa4b770f627624e0d.json.gz +0 -0
  33. package/src/.umi/.cache/babel-loader/7b4983c7428750b20c354ecb1cc6226f.json.gz +0 -0
  34. package/src/.umi/.cache/babel-loader/c1e4065a5c16bb60e0dad17fd17e4d21.json.gz +0 -0
  35. package/src/.umi/.cache/babel-loader/c5f25455f80accb4389a63e966193658.json.gz +0 -0
  36. package/src/.umi/.cache/babel-loader/d5cec1443884c84dea19b626dff4a130.json.gz +0 -0
  37. package/src/.umi/.cache/babel-loader/d7d65bbebb7d2a6933b8994ed54ba1f4.json.gz +0 -0
  38. package/src/.umi/.cache/babel-loader/d8e03990d8e0f543ddd2c8b7c1986b6e.json.gz +0 -0
  39. package/src/.umi/.cache/babel-loader/d94d2cccf8876adaf96c9792ae1604d7.json.gz +0 -0
  40. package/src/.umi/.cache/babel-loader/e76ddc963361774c561993f62f13cd1c.json.gz +0 -0
  41. package/src/.umi/core/devScripts.ts +53 -0
  42. package/src/.umi/core/history.ts +21 -0
  43. package/src/.umi/core/plugin.ts +8 -0
  44. package/src/.umi/core/pluginConfig.d.ts +304 -0
  45. package/src/.umi/core/pluginRegister.ts +15 -0
  46. package/src/.umi/core/polyfill.ts +4 -0
  47. package/src/.umi/core/routes.ts +24 -0
  48. package/src/.umi/core/umiExports.ts +7 -0
  49. package/src/.umi/plugin-helmet/exports.ts +3 -0
  50. package/src/.umi/plugin-initial-state/Provider.tsx +37 -0
  51. package/src/.umi/plugin-initial-state/exports.ts +7 -0
  52. package/src/.umi/plugin-initial-state/models/initialState.ts +2 -0
  53. package/src/.umi/plugin-initial-state/runtime.tsx +13 -0
  54. package/src/.umi/plugin-model/Provider.tsx +39 -0
  55. package/src/.umi/plugin-model/helpers/constant.tsx +4 -0
  56. package/src/.umi/plugin-model/helpers/dispatcher.tsx +19 -0
  57. package/src/.umi/plugin-model/helpers/executor.tsx +83 -0
  58. package/src/.umi/plugin-model/runtime.tsx +12 -0
  59. package/src/.umi/plugin-model/useModel.tsx +71 -0
  60. package/src/.umi/plugin-request/request.ts +278 -0
  61. package/src/.umi/umi.ts +58 -0
  62. package/src/{App.js → pages/index.jsx} +15 -17
  63. package/src/{App.css → pages/index.less} +68 -68
  64. package/tsconfig.json +37 -0
  65. package/typings.d.ts +10 -0
  66. package/package-lock.json +0 -30410
  67. package/public/index.html +0 -14
  68. package/public/robots.txt +0 -3
  69. package/src/index.js +0 -11
package/.editorconfig ADDED
@@ -0,0 +1,16 @@
1
+ # http://editorconfig.org
2
+ root = true
3
+
4
+ [*]
5
+ indent_style = space
6
+ indent_size = 2
7
+ end_of_line = lf
8
+ charset = utf-8
9
+ trim_trailing_whitespace = true
10
+ insert_final_newline = true
11
+
12
+ [*.md]
13
+ trim_trailing_whitespace = false
14
+
15
+ [Makefile]
16
+ indent_style = tab
@@ -0,0 +1,8 @@
1
+ **/*.md
2
+ **/*.svg
3
+ **/*.ejs
4
+ **/*.html
5
+ package.json
6
+ .umi
7
+ .umi-production
8
+ .umi-test
package/.prettierrc ADDED
@@ -0,0 +1,11 @@
1
+ {
2
+ "singleQuote": true,
3
+ "trailingComma": "all",
4
+ "printWidth": 80,
5
+ "overrides": [
6
+ {
7
+ "files": ".prettierrc",
8
+ "options": { "parser": "json" }
9
+ }
10
+ ]
11
+ }
package/.umirc.js ADDED
@@ -0,0 +1,11 @@
1
+ // import { defineConfig } from 'umi';
2
+ const {defineConfig} = require('umi');
3
+ export default defineConfig({
4
+ nodeModulesTransform: {
5
+ type: 'none',
6
+ },
7
+ routes: [
8
+ { path: '/', component: '@/pages/index' },
9
+ ],
10
+ fastRefresh: {},
11
+ });
package/README.md CHANGED
@@ -1,70 +1,15 @@
1
- # Getting Started with Create React App
1
+ # umi project
2
2
 
3
- This project was bootstrapped with [Create React App](https://github.com/facebook/create-react-app).
3
+ ## Getting Started
4
4
 
5
- ## Available Scripts
5
+ Install dependencies,
6
6
 
7
- In the project directory, you can run:
7
+ ```bash
8
+ $ yarn
9
+ ```
8
10
 
9
- ### `npm start`
11
+ Start the dev server,
10
12
 
11
- Runs the app in the development mode.\
12
- Open [http://localhost:3000](http://localhost:3000) to view it in your browser.
13
-
14
- The page will reload when you make changes.\
15
- You may also see any lint errors in the console.
16
-
17
- ### `npm test`
18
-
19
- Launches the test runner in the interactive watch mode.\
20
- See the section about [running tests](https://facebook.github.io/create-react-app/docs/running-tests) for more information.
21
-
22
- ### `npm run build`
23
-
24
- Builds the app for production to the `build` folder.\
25
- It correctly bundles React in production mode and optimizes the build for the best performance.
26
-
27
- The build is minified and the filenames include the hashes.\
28
- Your app is ready to be deployed!
29
-
30
- See the section about [deployment](https://facebook.github.io/create-react-app/docs/deployment) for more information.
31
-
32
- ### `npm run eject`
33
-
34
- **Note: this is a one-way operation. Once you `eject`, you can't go back!**
35
-
36
- If you aren't satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project.
37
-
38
- Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you're on your own.
39
-
40
- You don't have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn't feel obligated to use this feature. However we understand that this tool wouldn't be useful if you couldn't customize it when you are ready for it.
41
-
42
- ## Learn More
43
-
44
- You can learn more in the [Create React App documentation](https://facebook.github.io/create-react-app/docs/getting-started).
45
-
46
- To learn React, check out the [React documentation](https://reactjs.org/).
47
-
48
- ### Code Splitting
49
-
50
- This section has moved here: [https://facebook.github.io/create-react-app/docs/code-splitting](https://facebook.github.io/create-react-app/docs/code-splitting)
51
-
52
- ### Analyzing the Bundle Size
53
-
54
- This section has moved here: [https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size](https://facebook.github.io/create-react-app/docs/analyzing-the-bundle-size)
55
-
56
- ### Making a Progressive Web App
57
-
58
- This section has moved here: [https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app](https://facebook.github.io/create-react-app/docs/making-a-progressive-web-app)
59
-
60
- ### Advanced Configuration
61
-
62
- This section has moved here: [https://facebook.github.io/create-react-app/docs/advanced-configuration](https://facebook.github.io/create-react-app/docs/advanced-configuration)
63
-
64
- ### Deployment
65
-
66
- This section has moved here: [https://facebook.github.io/create-react-app/docs/deployment](https://facebook.github.io/create-react-app/docs/deployment)
67
-
68
- ### `npm run build` fails to minify
69
-
70
- This section has moved here: [https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify](https://facebook.github.io/create-react-app/docs/troubleshooting#npm-run-build-fails-to-minify)
13
+ ```bash
14
+ $ yarn start
15
+ ```
@@ -0,0 +1,22 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <meta charset="utf-8" />
5
+ <meta
6
+ name="viewport"
7
+ content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no"
8
+ />
9
+ <link rel="stylesheet" href="/umi.css" />
10
+ <script>
11
+ window.routerBase = "/";
12
+ </script>
13
+ <script>
14
+ //! umi version: 3.5.41
15
+ </script>
16
+ </head>
17
+ <body>
18
+ <div id="root"></div>
19
+
20
+ <script src="/umi.js"></script>
21
+ </body>
22
+ </html>
@@ -0,0 +1,10 @@
1
+ <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <g id="ic_caidan" clip-path="url(#clip0_1448_87845)">
3
+ <path id="Vector" d="M2 4C2 2.89543 2.89543 2 4 2H5.33333C6.4379 2 7.33333 2.89543 7.33333 4V5.33333C7.33333 6.4379 6.4379 7.33333 5.33333 7.33333H4C2.89543 7.33333 2 6.4379 2 5.33333V4ZM2 10.6667C2 9.5621 2.89543 8.66667 4 8.66667H5.33333C6.4379 8.66667 7.33333 9.5621 7.33333 10.6667V12C7.33333 13.1046 6.4379 14 5.33333 14H4C2.89543 14 2 13.1046 2 12V10.6667ZM8.66667 4C8.66667 2.89543 9.5621 2 10.6667 2H12C13.1046 2 14 2.89543 14 4V5.33333C14 6.4379 13.1046 7.33333 12 7.33333H10.6667C9.5621 7.33333 8.66667 6.4379 8.66667 5.33333V4ZM8.66667 10.6667C8.66667 9.5621 9.5621 8.66667 10.6667 8.66667H12C13.1046 8.66667 14 9.5621 14 10.6667V12C14 13.1046 13.1046 14 12 14H10.6667C9.5621 14 8.66667 13.1046 8.66667 12V10.6667ZM4.66667 3.33333C3.93029 3.33333 3.33333 3.93029 3.33333 4.66667C3.33333 5.40305 3.93029 6 4.66667 6C5.40305 6 6 5.40305 6 4.66667C6 3.93029 5.40305 3.33333 4.66667 3.33333Z" fill="#838C95"/>
4
+ </g>
5
+ <defs>
6
+ <clipPath id="clip0_1448_87845">
7
+ <rect width="16" height="16" fill="white"/>
8
+ </clipPath>
9
+ </defs>
10
+ </svg>
@@ -0,0 +1,12 @@
1
+ <svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <g id="remix-icons/fill/buildings/home-smile-fill" clip-path="url(#clip0_1537_93493)">
3
+ <g id="Group">
4
+ <path id="Vector" d="M16.6667 16.6666C16.6667 16.8877 16.5789 17.0996 16.4226 17.2559C16.2663 17.4122 16.0544 17.5 15.8334 17.5H4.16671C3.94569 17.5 3.73373 17.4122 3.57745 17.2559C3.42117 17.0996 3.33337 16.8877 3.33337 16.6666V9.16664H0.833374L9.43921 1.34331C9.59263 1.20371 9.79261 1.12634 10 1.12634C10.2075 1.12634 10.4074 1.20371 10.5609 1.34331L19.1667 9.16664H16.6667V16.6666ZM6.25004 10.8333C6.25004 11.8279 6.64513 12.7817 7.34839 13.485C8.05165 14.1882 9.00548 14.5833 10 14.5833C10.9946 14.5833 11.9484 14.1882 12.6517 13.485C13.355 12.7817 13.75 11.8279 13.75 10.8333H12.0834C12.0834 11.3858 11.8639 11.9157 11.4732 12.3064C11.0825 12.6971 10.5526 12.9166 10 12.9166C9.44751 12.9166 8.9176 12.6971 8.5269 12.3064C8.1362 11.9157 7.91671 11.3858 7.91671 10.8333H6.25004Z" fill="#4091F7"/>
5
+ </g>
6
+ </g>
7
+ <defs>
8
+ <clipPath id="clip0_1537_93493">
9
+ <rect width="20" height="20" fill="white"/>
10
+ </clipPath>
11
+ </defs>
12
+ </svg>
@@ -0,0 +1 @@
1
+ <?xml version="1.0" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg t="1686794241097" class="icon" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" p-id="2402" width="32" height="32" xmlns:xlink="http://www.w3.org/1999/xlink"><path d="M170.666667 213.333333h682.666666v85.333334H170.666667V213.333333z m0 512h682.666666v85.333334H170.666667v-85.333334z m0-256h682.666666v85.333334H170.666667v-85.333334z" fill="#ffffff" p-id="2403"></path></svg>
@@ -0,0 +1,12 @@
1
+ <svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <g id="remix-icons/line/business/stack-line" clip-path="url(#clip0_1537_92448)">
3
+ <g id="Group">
4
+ <path id="Vector" d="M16.7358 12.6666L17.7375 13.2675C17.7993 13.3045 17.8504 13.3568 17.8859 13.4195C17.9214 13.4822 17.9401 13.553 17.9401 13.625C17.9401 13.697 17.9214 13.7678 17.8859 13.8304C17.8504 13.8931 17.7993 13.9455 17.7375 13.9825L10.4291 18.3675C10.2995 18.4453 10.1512 18.4865 9.99996 18.4865C9.84876 18.4865 9.7004 18.4453 9.57079 18.3675L2.26246 13.9825C2.20067 13.9455 2.14952 13.8931 2.114 13.8304C2.07848 13.7678 2.05981 13.697 2.05981 13.625C2.05981 13.553 2.07848 13.4822 2.114 13.4195C2.14952 13.3568 2.20067 13.3045 2.26246 13.2675L3.26413 12.6666L9.99996 16.7083L16.7358 12.6666ZM16.7358 8.74998L17.7375 9.35081C17.7993 9.3878 17.8504 9.44018 17.8859 9.50284C17.9214 9.5655 17.9401 9.63629 17.9401 9.70831C17.9401 9.78033 17.9214 9.85112 17.8859 9.91378C17.8504 9.97644 17.7993 10.0288 17.7375 10.0658L9.99996 14.7083L2.26246 10.0658C2.20067 10.0288 2.14952 9.97644 2.114 9.91378C2.07848 9.85112 2.05981 9.78033 2.05981 9.70831C2.05981 9.63629 2.07848 9.5655 2.114 9.50284C2.14952 9.44018 2.20067 9.3878 2.26246 9.35081L3.26413 8.74998L9.99996 12.7916L16.7358 8.74998ZM10.4283 1.09081L17.7375 5.47581C17.7993 5.5128 17.8504 5.56518 17.8859 5.62784C17.9214 5.6905 17.9401 5.76129 17.9401 5.83331C17.9401 5.90533 17.9214 5.97612 17.8859 6.03878C17.8504 6.10144 17.7993 6.15382 17.7375 6.19081L9.99996 10.8333L2.26246 6.19081C2.20067 6.15382 2.14952 6.10144 2.114 6.03878C2.07848 5.97612 2.05981 5.90533 2.05981 5.83331C2.05981 5.76129 2.07848 5.6905 2.114 5.62784C2.14952 5.56518 2.20067 5.5128 2.26246 5.47581L9.57079 1.09081C9.7004 1.01294 9.84876 0.971802 9.99996 0.971802C10.1512 0.971802 10.2995 1.01294 10.4291 1.09081H10.4283ZM9.99996 2.77664L4.90579 5.83331L9.99996 8.88998L15.0941 5.83331L9.99996 2.77664Z" fill="#4091F7"/>
5
+ </g>
6
+ </g>
7
+ <defs>
8
+ <clipPath id="clip0_1537_92448">
9
+ <rect width="20" height="20" fill="white"/>
10
+ </clipPath>
11
+ </defs>
12
+ </svg>
package/dist/umi.css ADDED
@@ -0,0 +1 @@
1
+ .ant-popconfirm .ant-popconfirm-buttons{display:none!important}.ant-popover-placement-rightTop .ant-popover-arrow{display:none!important}.ant-popconfirm .ant-popconfirm-message{margin-bottom:0}.ant-popconfirm .ant-popconfirm-message{width:650px}.cardLine{height:60px;padding:5px 0}.textPad{padding-left:10px}.iconPad{padding-top:15px}.leftMenu{width:100px;height:60px;padding:0 35px;line-height:60px;float:left;color:rgba(0,0,0,.85);font-size:16px;cursor:pointer;text-align:left}.rightMenu{width:460px;height:60px;float:left;vertical-align:middle;padding:5px 10px 0;font-size:14px;color:rgba(0,0,0,.65)}.childMenu:hover{cursor:pointer;color:#4091f7}.childMenu{width:27%;display:inline-block;padding-top:15px}.middle{vertical-align:middle}.menuIcon{width:60px;height:50px;text-align:center;display:inline-block;line-height:67px;cursor:pointer;background-color:#4091f7}.ant-popover .ant-popover-inner{border-radius:0}.ant-popover{left:69px!important}