V4 fetch block (#4238)
* first step * fix local error * commit * test serve * fix test * sort package.json * fix typo * fix pageHeader error * new style * change script name * fix copy block url style * new copy code style * add loginout * auto insert pro code * use new layout * add locale to copy button
Showing
| ... | ... | @@ -13,6 +13,7 @@ |
| "docker:dev": "docker-compose -f ./docker/docker-compose.dev.yml up", | ||
| "docker:push": "npm run docker-hub:build && npm run docker:tag && docker push antdesign/ant-design-pro", | ||
| "docker:tag": "docker tag ant-design-pro antdesign/ant-design-pro", | ||
| "fetch:blocks": "node ./scripts/fetch-blocks.js", | ||
| "functions:build": "npm run generateMock && netlify-lambda build ./lambda", | ||
| "functions:run": "npm run generateMock && cross-env NODE_ENV=dev netlify-lambda serve ./lambda", | ||
| "generateMock": "node ./scripts/generateMock", | ||
| ... | ... | @@ -26,7 +27,7 @@ |
| "lint:style": "stylelint --fix 'src/**/*.less' --syntax less", | ||
| "lint:ts": "tslint -p . -c tslint.yml", | ||
| "prettier": " check-prettier write", | ||
| "site": "umi build && npm run functions:build", | ||
| "site": "npm run fetch:blocks && umi build && npm run functions:build", | ||
| "start": "umi dev", | ||
| "start:no-mock": "cross-env MOCK=none umi dev", | ||
| "test": "umi test", | ||
| ... | ... | @@ -49,18 +50,17 @@ |
| "dependencies": { | ||
| "@ant-design/pro-layout": "^4.2.0", | ||
| "@antv/data-set": "^0.10.1", | ||
| "@types/qs": "^6.5.3", | ||
| "antd": "^3.16.1", | ||
| "bizcharts": "^3.5.3-beta.0", | ||
| "bizcharts-plugin-slider": "^2.1.1-beta.1", | ||
| "classnames": "^2.2.6", | ||
| "dva": "^2.4.0", | ||
| "lodash": "^4.17.10", | ||
| "lodash-decorators": "^6.0.0", | ||
| "memoize-one": "^5.0.0", | ||
| "moment": "^2.22.2", | ||
| "numeral": "^2.0.6", | ||
| "omit.js": "^1.0.0", | ||
| "path-to-regexp": "^2.4.0", | ||
| "prop-types": "^15.7.2", | ||
| "qs": "^6.7.0", | ||
| "rc-animate": "^2.4.4", | ||
| "react": "^16.8.5", | ||
| ... | ... | @@ -68,9 +68,14 @@ |
| "react-copy-to-clipboard": "^5.0.1", | ||
| "react-document-title": "^2.0.3", | ||
| "react-dom": "^16.7.0", | ||
| "react-fittext": "^1.0.0", | ||
| "react-media": "^1.9.2", | ||
| "react-media-hook2": "^1.0.2" | ||
| "react-media-hook2": "^1.0.2", | ||
| "umi": "^2.7.0-beta.2", | ||
| "umi-plugin-ga": "^1.1.3", | ||
| "umi-plugin-locale": "^2.8.0-beta.1", | ||
| "umi-plugin-pro-block": "^1.3.0", | ||
| "umi-plugin-react": "^1.8.0-beta.1", | ||
| "umi-request": "^1.0.7" | ||
| }, | ||
| "devDependencies": { | ||
| "@types/classnames": "^2.2.7", | ||
| ... | ... | @@ -106,6 +111,7 @@ |
| "merge-umi-mock-data": "^1.0.4", | ||
| "mockjs": "^1.0.1-beta3", | ||
| "netlify-lambda": "^1.4.3", | ||
| "node-fetch": "^2.6.0", | ||
| "prettier": "^1.17.0", | ||
| "serverless-http": "^2.0.1", | ||
| "slash2": "^2.0.0", | ||
| ... | ... | @@ -119,12 +125,7 @@ |
| "tslint": "^5.12.1", | ||
| "tslint-config-prettier": "^1.17.0", | ||
| "tslint-eslint-rules": "^5.4.0", | ||
| "tslint-react": "^3.6.0", | ||
| "umi": "^2.7.0-beta.2", | ||
| "umi-plugin-ga": "^1.1.3", | ||
| "umi-plugin-pro-block": "^1.3.0", | ||
| "umi-plugin-react": "^1.8.0-beta.1", | ||
| "umi-request": "^1.0.0" | ||
| "tslint-react": "^3.6.0" | ||
| }, | ||
| "optionalDependencies": { | ||
| "puppeteer": "^1.12.1" | ||
| ... | ... |
scripts/fetch-blocks.js
0 → 100644
scripts/insertCode.js
0 → 100644
scripts/repalceRouter.js
0 → 100644
scripts/router.config.js
0 → 100644
src/models/login.ts
0 → 100644
Please register or sign in to comment