Showing
16 changed files
with
252 additions
and
0 deletions
Too many changes to show.
To preserve performance only 16 of 117 files are displayed.
.editorconfig
0 → 100755
.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
.husky/pre-commit
0 → 100755
.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: 3000, | ||
| 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.qixiaocloud.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 | + base: '/', | ||
| 8 | + publicPath: `/${pkg.name}/`, | ||
| 9 | + mountElementId: pkg.name, | ||
| 10 | + webpack5: { | ||
| 11 | + lazyCompilation: {}, | ||
| 12 | + }, | ||
| 13 | + nodeModulesTransform: { | ||
| 14 | + type: 'none', | ||
| 15 | + }, | ||
| 16 | + routes, | ||
| 17 | + alias: { | ||
| 18 | + '@/src': 'src', | ||
| 19 | + }, | ||
| 20 | + fastRefresh: {}, | ||
| 21 | + qiankun: { | ||
| 22 | + slave: {}, | ||
| 23 | + }, | ||
| 24 | + lessLoader: { | ||
| 25 | + modifyVars: { | ||
| 26 | + 'hack': `true; @import "~@/src/variable.less";` | ||
| 27 | + } | ||
| 28 | + }, | ||
| 29 | + chainWebpack(memo, { env, webpack, createCSSRule }) { | ||
| 30 | + // 设置 alias | ||
| 31 | + memo.resolve.alias.set('@', path.resolve(__dirname, './libs/src')); | ||
| 32 | + memo.resolve.alias.set('@@', path.resolve(__dirname, './src/.umi')); | ||
| 33 | + memo.resolve.alias.set('@/src', path.resolve(__dirname, './src')); | ||
| 34 | + }, | ||
| 35 | + define: { | ||
| 36 | + 'process.env.site': '', | ||
| 37 | + 'process.env.apiUrl': '/qx-api', | ||
| 38 | + 'process.env.wf.appCode': 'wf', | ||
| 39 | + 'process.env.wf.funCode': 'ew57e', | ||
| 40 | + 'process.env.openUrl': '/open', | ||
| 41 | + }, | ||
| 42 | +}); |
README.md
0 → 100644
mock/.gitkeep
0 → 100644
package.json
0 → 100644
| 1 | +{ | ||
| 2 | + "name": "qx-apaas-runtime", | ||
| 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 | + }, | ||
| 14 | + "gitHooks": { | ||
| 15 | + "pre-commit": "lint-staged" | ||
| 16 | + }, | ||
| 17 | + "lint-staged": { | ||
| 18 | + "src/**/*.{js,jsx,less,md,json}": [ | ||
| 19 | + "prettier --write" | ||
| 20 | + ], | ||
| 21 | + "src/**/*.ts?(x)": [ | ||
| 22 | + "prettier --parser=typescript --write" | ||
| 23 | + ] | ||
| 24 | + }, | ||
| 25 | + "dependencies": { | ||
| 26 | + "@ant-design/icons": "^4.7.0", | ||
| 27 | + "@ant-design/pro-layout": "^6.5.0", | ||
| 28 | + "@antv/x6": "^1.34.6", | ||
| 29 | + "@antv/x6-react-shape": "^1.6.0", | ||
| 30 | + "@formulajs/formulajs": "^3.1.7", | ||
| 31 | + "@qx/common": "0.2.12-beta.5", | ||
| 32 | + "@qx/form-design": "^0.0.35", | ||
| 33 | + "@qx/form-render": "0.0.51", | ||
| 34 | + "@qx/utils": "^0.0.37", | ||
| 35 | + "@qx/view-render": "0.1.9-beta.19", | ||
| 36 | + "@tinymce/tinymce-react": "^4.2.0", | ||
| 37 | + "ahooks": "^3.7.2", | ||
| 38 | + "antd": "^4.24.1", | ||
| 39 | + "browser-md5-file": "^1.1.1", | ||
| 40 | + "classnames": "^2.3.2", | ||
| 41 | + "codemirror": "5.65.8", | ||
| 42 | + "dingtalk-jsapi": "^3.0.12", | ||
| 43 | + "echarts": "^5.4.0", | ||
| 44 | + "echarts-for-react": "^3.0.2", | ||
| 45 | + "lodash": "^4.17.21", | ||
| 46 | + "mockjs": "^1.1.0", | ||
| 47 | + "moment": "^2.29.4", | ||
| 48 | + "nanoid": "^4.0.0", | ||
| 49 | + "rc-virtual-list": "^3.4.11", | ||
| 50 | + "react": "^16.14.0", | ||
| 51 | + "react-codemirror2": "^7.2.1", | ||
| 52 | + "react-cookies": "^0.1.1", | ||
| 53 | + "react-dom": "^16.14.0", | ||
| 54 | + "react-draggable": "^4.4.5", | ||
| 55 | + "react-grid-layout": "^1.3.4", | ||
| 56 | + "react-resizable": "^3.0.4", | ||
| 57 | + "umi": "^3.5.35", | ||
| 58 | + "umi-request": "^1.4.0", | ||
| 59 | + "umi-request-progress": "^1.1.0" | ||
| 60 | + }, | ||
| 61 | + "devDependencies": { | ||
| 62 | + "@types/lodash": "^4.14.188", | ||
| 63 | + "@types/moment": "^2.13.0", | ||
| 64 | + "@types/nanoid": "^3.0.0", | ||
| 65 | + "@types/react": "^17.0.0", | ||
| 66 | + "@types/react-cookies": "^0.1.0", | ||
| 67 | + "@types/react-dom": "^17.0.0", | ||
| 68 | + "@types/react-grid-layout": "^1.3.2", | ||
| 69 | + "@typescript-eslint/eslint-plugin": "^5.43.0", | ||
| 70 | + "@typescript-eslint/parser": "^5.43.0", | ||
| 71 | + "@umijs/plugin-qiankun": "^2.41.0", | ||
| 72 | + "@umijs/preset-react": "1.x", | ||
| 73 | + "@umijs/test": "^3.5.35", | ||
| 74 | + "eslint": "^7.1.0", | ||
| 75 | + "eslint-plugin-react": "^7.31.10", | ||
| 76 | + "husky": "^8.0.2", | ||
| 77 | + "lint-staged": "^10.0.7", | ||
| 78 | + "prettier": "^2.2.0", | ||
| 79 | + "rc-select": "^14.1.13", | ||
| 80 | + "typescript": "^4.1.2", | ||
| 81 | + "yorkie": "^2.0.0" | ||
| 82 | + } | ||
| 83 | +} |