Showing
14 changed files
with
244 additions
and
0 deletions
Too many changes to show.
To preserve performance only 14 of 60 files are displayed.
.editorconfig
0 → 100755
| 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 | ... | ... |
.eslintignore
0 → 100644
.eslintrc.js
0 → 100644
| 1 | +export default { | |
| 2 | + env: { | |
| 3 | + browser: true, | |
| 4 | + es2021: true, | |
| 5 | + }, | |
| 6 | + extends: [ | |
| 7 | + 'eslint:recommended', | |
| 8 | + 'plugin:react/recommended', | |
| 9 | + 'plugin:@typescript-eslint/recommended', | |
| 10 | + ], | |
| 11 | + parser: '@typescript-eslint/parser', | |
| 12 | + parserOptions: { | |
| 13 | + ecmaFeatures: { | |
| 14 | + jsx: true, | |
| 15 | + }, | |
| 16 | + ecmaVersion: 12, | |
| 17 | + sourceType: 'module', | |
| 18 | + }, | |
| 19 | + plugins: ['react', '@typescript-eslint'], | |
| 20 | + rules: {}, | |
| 21 | +}; | ... | ... |
.gitignore
0 → 100644
| 1 | +# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. | |
| 2 | + | |
| 3 | +# dependencies | |
| 4 | +/node_modules | |
| 5 | +/npm-debug.log* | |
| 6 | +/yarn-error.log | |
| 7 | +/yarn.lock | |
| 8 | +/package-lock.json | |
| 9 | + | |
| 10 | +# production | |
| 11 | +/dist | |
| 12 | + | |
| 13 | +# misc | |
| 14 | +.DS_Store | |
| 15 | + | |
| 16 | +# umi | |
| 17 | +/src/.umi | |
| 18 | +/src/.umi-production | |
| 19 | +/src/.umi-test | |
| 20 | +/.env.local | ... | ... |
.gitmodules
0 → 100644
.prettierignore
0 → 100644
.prettierrc
0 → 100644
.umirc.local.ts
0 → 100644
| 1 | +import { defineConfig } from 'umi'; | |
| 2 | + | |
| 3 | +export default defineConfig({ | |
| 4 | + devServer: { | |
| 5 | + port: 5200, | |
| 6 | + }, | |
| 7 | + define: { | |
| 8 | + 'process.env.site': 'http://qx-test.qgutech.com', | |
| 9 | + // 'process.env.apiUrl': 'http://192.168.181.107/qgyun-api', | |
| 10 | + // 'process.env.apiUrl': 'http://192.168.1.180/qx-api', | |
| 11 | + 'process.env.apiUrl': 'http://test.qgutech.com/qx-api', | |
| 12 | + // 'process.env.apiUrl': 'https://uat.qgutech.com/qx-api', | |
| 13 | + 'process.env.wf.appCode': 'wf', | |
| 14 | + 'process.env.wf.funCode': 'ew57e', | |
| 15 | + 'process.env.openUrl': '/open', | |
| 16 | + }, | |
| 17 | +}); | ... | ... |
.umirc.ts
0 → 100644
| 1 | +import { defineConfig } from 'umi'; | |
| 2 | +import path from 'path'; | |
| 3 | +import pkg from './package.json'; | |
| 4 | +import routes from './src/routes'; | |
| 5 | + | |
| 6 | +export default defineConfig({ | |
| 7 | + mountElementId: pkg.name, | |
| 8 | + webpack5: { | |
| 9 | + lazyCompilation: {}, | |
| 10 | + }, | |
| 11 | + nodeModulesTransform: { | |
| 12 | + type: 'none', | |
| 13 | + }, | |
| 14 | + routes, | |
| 15 | + alias: { | |
| 16 | + '@/src': 'src', | |
| 17 | + }, | |
| 18 | + fastRefresh: {}, | |
| 19 | + qiankun: { | |
| 20 | + slave: {}, | |
| 21 | + }, | |
| 22 | + chainWebpack(memo, { env, webpack, createCSSRule }) { | |
| 23 | + // 设置 alias | |
| 24 | + memo.resolve.alias.set('@', path.resolve(__dirname, './libs/src')); | |
| 25 | + memo.resolve.alias.set('@@', path.resolve(__dirname, './src/.umi')); | |
| 26 | + memo.resolve.alias.set('@/src', path.resolve(__dirname, './src')); | |
| 27 | + }, | |
| 28 | + define: { | |
| 29 | + 'process.env.site': '', | |
| 30 | + 'process.env.apiUrl': '/qx-api', | |
| 31 | + 'process.env.wf.appCode': 'wf', | |
| 32 | + 'process.env.wf.funCode': 'ew57e', | |
| 33 | + 'process.env.openUrl': '/open', | |
| 34 | + }, | |
| 35 | +}); | ... | ... |
README.md
0 → 100644
package.json
0 → 100644
| 1 | +{ | |
| 2 | + "name": "micro-app-template", | |
| 3 | + "private": true, | |
| 4 | + "scripts": { | |
| 5 | + "start": "umi dev", | |
| 6 | + "build": "umi build", | |
| 7 | + "postinstall": "umi generate tmp", | |
| 8 | + "prettier": "prettier --write '**/*.{js,jsx,tsx,ts,less,md,json}'", | |
| 9 | + "test": "umi-test", | |
| 10 | + "test:coverage": "umi-test --coverage", | |
| 11 | + "prepare": "husky install", | |
| 12 | + "lint-staged": "lint-staged", | |
| 13 | + "rm-submodule": "git rm –cached libs & rm -rf libs", | |
| 14 | + "update-submodule": "cd libs & git pull origin feature/libs" | |
| 15 | + }, | |
| 16 | + "gitHooks": { | |
| 17 | + "pre-commit": "lint-staged" | |
| 18 | + }, | |
| 19 | + "lint-staged": { | |
| 20 | + "src/**/*.{js,jsx,less,md,json}": [ | |
| 21 | + "prettier --write" | |
| 22 | + ], | |
| 23 | + "src/**/*.ts?(x)": [ | |
| 24 | + "prettier --parser=typescript --write" | |
| 25 | + ] | |
| 26 | + }, | |
| 27 | + "dependencies": { | |
| 28 | + "@ant-design/icons": "^4.7.0", | |
| 29 | + "@ant-design/pro-layout": "^6.5.0", | |
| 30 | + "@antv/x6": "^1.34.6", | |
| 31 | + "@antv/x6-react-shape": "^1.6.0", | |
| 32 | + "@formulajs/formulajs": "^3.1.7", | |
| 33 | + "@qx/common": "0.2.12-beta.5", | |
| 34 | + "@qx/form-design": "^0.0.35", | |
| 35 | + "@qx/form-render": "0.0.51", | |
| 36 | + "@qx/utils": "^0.0.37", | |
| 37 | + "@qx/view-render": "0.1.9-beta.19", | |
| 38 | + "@tinymce/tinymce-react": "^4.2.0", | |
| 39 | + "ahooks": "^3.7.2", | |
| 40 | + "antd": "^4.24.1", | |
| 41 | + "browser-md5-file": "^1.1.1", | |
| 42 | + "classnames": "^2.3.2", | |
| 43 | + "codemirror": "5.65.8", | |
| 44 | + "dingtalk-jsapi": "^3.0.12", | |
| 45 | + "echarts": "^5.4.0", | |
| 46 | + "echarts-for-react": "^3.0.2", | |
| 47 | + "lodash": "^4.17.21", | |
| 48 | + "mockjs": "^1.1.0", | |
| 49 | + "moment": "^2.29.4", | |
| 50 | + "nanoid": "^4.0.0", | |
| 51 | + "rc-virtual-list": "^3.4.11", | |
| 52 | + "react": "^16.14.0", | |
| 53 | + "react-codemirror2": "^7.2.1", | |
| 54 | + "react-cookies": "^0.1.1", | |
| 55 | + "react-dom": "^16.14.0", | |
| 56 | + "react-draggable": "^4.4.5", | |
| 57 | + "react-grid-layout": "^1.3.4", | |
| 58 | + "react-resizable": "^3.0.4", | |
| 59 | + "umi": "^3.5.35", | |
| 60 | + "umi-request": "^1.4.0", | |
| 61 | + "umi-request-progress": "^1.1.0" | |
| 62 | + }, | |
| 63 | + "devDependencies": { | |
| 64 | + "@types/lodash": "^4.14.188", | |
| 65 | + "@types/moment": "^2.13.0", | |
| 66 | + "@types/nanoid": "^3.0.0", | |
| 67 | + "@types/react": "^17.0.0", | |
| 68 | + "@types/react-cookies": "^0.1.0", | |
| 69 | + "@types/react-dom": "^17.0.0", | |
| 70 | + "@types/react-grid-layout": "^1.3.2", | |
| 71 | + "@typescript-eslint/eslint-plugin": "^5.43.0", | |
| 72 | + "@typescript-eslint/parser": "^5.43.0", | |
| 73 | + "@umijs/plugin-qiankun": "^2.41.0", | |
| 74 | + "@umijs/preset-react": "1.x", | |
| 75 | + "@umijs/test": "^3.5.35", | |
| 76 | + "eslint": "^7.1.0", | |
| 77 | + "eslint-plugin-react": "^7.31.10", | |
| 78 | + "husky": "^8.0.2", | |
| 79 | + "lint-staged": "^10.0.7", | |
| 80 | + "prettier": "^2.2.0", | |
| 81 | + "rc-select": "^14.1.13", | |
| 82 | + "typescript": "^4.1.2", | |
| 83 | + "yorkie": "^2.0.0" | |
| 84 | + } | |
| 85 | +} | ... | ... |