Merge branch 'master' into v4
Showing
.firebaserc
deleted
100644 → 0
README.tr-TR.md
0 → 100644
firebase.json
deleted
100644 → 0
{ | { | ||
"name": "ant-design-pro", | "name": "ant-design-pro", | ||
"version": "2.2.1", | "version": "2.3.1", | ||
"description": "An out-of-box UI solution for enterprise applications", | |||
"private": true, | "private": true, | ||
"description": "An out-of-box UI solution for enterprise applications", | |||
"scripts": { | "scripts": { | ||
"presite": "cd functions && npm install", | "analyze": "cross-env ANALYZE=1 umi build", | ||
"start": "cross-env APP_TYPE=site umi dev", | "build": "umi build", | ||
"start:no-mock": "cross-env MOCK=none umi dev", | |||
"dev": "cross-env APP_TYPE=site umi dev", | "dev": "cross-env APP_TYPE=site umi dev", | ||
"dev:no-mock": "cross-env MOCK=none umi dev", | "dev:no-mock": "cross-env MOCK=none umi dev", | ||
"build": "umi build", | "docker-hub:build": "docker build -f Dockerfile.hub -t ant-design-pro ./", | ||
"analyze": "cross-env ANALYZE=1 umi build", | "docker-prod:build": "docker-compose -f ./docker/docker-compose.yml build", | ||
"lint:js": "eslint --ext .js src tests", | "docker-prod:dev": "docker-compose -f ./docker/docker-compose.yml up", | ||
"lint:ts": "tslint -p . -c tslint.yml", | "docker:build": "docker-compose -f ./docker/docker-compose.dev.yml build", | ||
"lint:style": "stylelint 'src/**/*.less' --syntax less", | "docker:dev": "docker-compose -f ./docker/docker-compose.dev.yml up", | ||
"lint:prettier": "check-prettier lint", | "docker:push": "npm run docker-hub:build && npm run docker:tag && docker push antdesign/ant-design-pro", | ||
"lint": "npm run lint:js && npm run lint:ts && npm run lint:style && npm run lint:prettier", | "docker:tag": "docker tag ant-design-pro antdesign/ant-design-pro", | ||
"lint:fix": "eslint --fix --ext .js src tests && tslint --fix -p . -c tslint.yml && stylelint --fix 'src/**/*.less' --syntax less", | "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", | |||
"lint": "eslint --ext .js src mock tests && npm run lint:style && npm run lint:prettier", | |||
"lint-staged": "lint-staged", | "lint-staged": "lint-staged", | ||
"lint-staged:js": "eslint --ext .js", | "lint-staged:js": "eslint --ext .js", | ||
"lint-staged:ts": "tslint", | "lint-staged:ts": "tslint", | ||
"lint:fix": "eslint --fix --ext .js src mock tests && stylelint --fix 'src/**/*.less' --syntax less", | |||
"lint:js": "eslint --ext .js src tests", | |||
"lint:prettier": "check-prettier lint", | |||
"lint:style": "stylelint 'src/**/*.less' --syntax less", | |||
"lint:ts": "tslint -p . -c tslint.yml", | |||
"presite": "cd functions && npm install", | |||
"prettier": "node ./scripts/prettier.js", | |||
"start": "cross-env APP_TYPE=site umi dev", | |||
"start:no-mock": "cross-env MOCK=none umi dev", | |||
"test": "umi test", | "test": "umi test", | ||
"test:component": "umi test ./src/components", | |||
"test:all": "node ./tests/run-tests.js", | "test:all": "node ./tests/run-tests.js", | ||
"prettier": "node ./scripts/prettier.js", | "test:component": "umi test ./src/components", | ||
"docker:dev": "docker-compose -f ./docker/docker-compose.dev.yml up", | "tslint": "npm run tslint:fix", | ||
"docker:build": "docker-compose -f ./docker/docker-compose.dev.yml build", | "tslint:fix": "tslint --fix 'src/**/*.ts*'" | ||
"docker-prod:dev": "docker-compose -f ./docker/docker-compose.yml up", | }, | ||
"docker-prod:build": "docker-compose -f ./docker/docker-compose.yml build", | "husky": { | ||
"docker-hub:build": "docker build -f Dockerfile.hub -t ant-design-pro ./", | "hooks": { | ||
"docker:tag": "docker tag ant-design-pro antdesign/ant-design-pro", | "pre-commit": "npm run lint-staged" | ||
"docker:push": "npm run docker-hub:build && npm run docker:tag && docker push antdesign/ant-design-pro" | } | ||
}, | }, | ||
"lint-staged": { | |||
"**/*.less": "stylelint --syntax less", | |||
"**/*.{js,jsx}": "npm run lint-staged:js", | |||
"**/*.{js,ts,tsx,json,jsx,less}": [ | |||
"node ./scripts/lint-prettier.js", | |||
"git add" | |||
], | |||
"**/*.{ts,tsx}": "npm run lint-staged:ts" | |||
}, | |||
"browserslist": [ | |||
"> 1%", | |||
"last 2 versions", | |||
"not ie <= 10" | |||
], | |||
"dependencies": { | "dependencies": { | ||
"@types/classnames": "^2.2.7", | |||
"@types/react-document-title": "^2.0.3", | |||
"ant-design-pro": "^2.3.0", | "ant-design-pro": "^2.3.0", | ||
"antd": "^3.15.0", | "antd": "^3.15.0", | ||
"classnames": "^2.2.6", | "classnames": "^2.2.6", | ||
"dva": "^2.4.0", | "dva": "^2.4.0", | ||
"express": "^4.16.4", | |||
"lodash": "^4.17.10", | "lodash": "^4.17.10", | ||
"lodash-decorators": "^6.0.0", | "lodash-decorators": "^6.0.0", | ||
"lodash.isequal": "^4.5.0", | |||
"memoize-one": "^5.0.0", | "memoize-one": "^5.0.0", | ||
"moment": "^2.22.2", | "moment": "^2.22.2", | ||
"omit.js": "^1.0.0", | "omit.js": "^1.0.0", | ||
"path-to-regexp": "^2.4.0", | "path-to-regexp": "^2.4.0", | ||
"qs": "^6.7.0", | |||
"rc-animate": "^2.4.4", | "rc-animate": "^2.4.4", | ||
"react": "^16.8.5", | "react": "^16.8.5", | ||
"react-container-query": "^0.11.0", | "react-container-query": "^0.11.0", | ||
... | @@ -53,13 +82,9 @@ | ... | @@ -53,13 +82,9 @@ |
"umi-request": "^1.0.0" | "umi-request": "^1.0.0" | ||
}, | }, | ||
"devDependencies": { | "devDependencies": { | ||
"@types/classnames": "^2.2.7", | "@types/history": "^4.7.2", | ||
"@types/enzyme": "^3.9.0", | |||
"@types/jest": "^24.0.11", | |||
"@types/lodash": "^4.14.122", | |||
"@types/memoize-one": "^4.1.0", | |||
"@types/react": "^16.8.1", | "@types/react": "^16.8.1", | ||
"@types/react-document-title": "^2.0.3", | "@types/react-dom": "^16.0.11", | ||
"antd-pro-merge-less": "^1.0.0", | "antd-pro-merge-less": "^1.0.0", | ||
"antd-theme-webpack-plugin": "^1.2.0", | "antd-theme-webpack-plugin": "^1.2.0", | ||
"babel-eslint": "^10.0.1", | "babel-eslint": "^10.0.1", | ||
... | @@ -70,16 +95,16 @@ | ... | @@ -70,16 +95,16 @@ |
"enzyme": "^3.9.0", | "enzyme": "^3.9.0", | ||
"eslint": "^5.13.0", | "eslint": "^5.13.0", | ||
"eslint-config-airbnb": "^17.1.0", | "eslint-config-airbnb": "^17.1.0", | ||
"eslint-config-prettier": "^4.0.0", | "eslint-config-prettier": "^4.1.0", | ||
"eslint-plugin-babel": "^5.3.0", | "eslint-plugin-babel": "^5.3.0", | ||
"eslint-plugin-compat": "^2.6.3", | "eslint-plugin-compat": "^2.6.3", | ||
"eslint-plugin-import": "^2.16.0", | "eslint-plugin-import": "^2.16.0", | ||
"eslint-plugin-jsx-a11y": "^6.2.0", | "eslint-plugin-jsx-a11y": "^6.2.1", | ||
"eslint-plugin-markdown": "^1.0.0", | "eslint-plugin-markdown": "^1.0.0", | ||
"eslint-plugin-react": "^7.12.4", | "eslint-plugin-react": "^7.12.4", | ||
"gh-pages": "^2.0.1", | "gh-pages": "^2.0.1", | ||
"husky": "^1.3.1", | "husky": "^1.3.1", | ||
"jest-puppeteer": "^4.0.0", | "jest-puppeteer": "^4.1.0", | ||
"less": "^3.9.0", | "less": "^3.9.0", | ||
"lint-staged": "^8.1.1", | "lint-staged": "^8.1.1", | ||
"merge-umi-mock-data": "^1.0.4", | "merge-umi-mock-data": "^1.0.4", | ||
... | @@ -98,40 +123,21 @@ | ... | @@ -98,40 +123,21 @@ |
"tslint-eslint-rules": "^5.4.0", | "tslint-eslint-rules": "^5.4.0", | ||
"tslint-react": "^3.6.0", | "tslint-react": "^3.6.0", | ||
"umi-plugin-ga": "^1.1.3", | "umi-plugin-ga": "^1.1.3", | ||
"umi-plugin-pro-block": "^1.2.0", | "umi-plugin-pro-block": "^1.3.0", | ||
"umi-plugin-react": "^1.3.4", | "umi-plugin-react": "^1.7.2", | ||
"umi-types": "^0.2.0" | "umi-types": "^0.2.0" | ||
}, | }, | ||
"optionalDependencies": { | "optionalDependencies": { | ||
"puppeteer": "^1.12.1" | "puppeteer": "^1.12.1" | ||
}, | }, | ||
"lint-staged": { | |||
"**/*.{js,ts,tsx,json,jsx,less}": [ | |||
"node ./scripts/lint-prettier.js", | |||
"git add" | |||
], | |||
"**/*.{js,jsx}": "npm run lint-staged:js", | |||
"**/*.{ts,tsx}": "npm run lint-staged:ts", | |||
"**/*.less": "stylelint --syntax less" | |||
}, | |||
"engines": { | "engines": { | ||
"node": ">=8.0.0" | "node": ">=8.0.0" | ||
}, | }, | ||
"browserslist": [ | |||
"> 1%", | |||
"last 2 versions", | |||
"not ie <= 10" | |||
], | |||
"checkFiles": [ | "checkFiles": [ | ||
"src/**/*.js*", | "src/**/*.js*", | ||
"src/**/*.ts*", | "src/**/*.ts*", | ||
"src/**/*.less", | "src/**/*.less", | ||
"config/**/*.js*", | "config/**/*.js*", | ||
"scripts/**/*.js" | "scripts/**/*.js" | ||
], | ] | ||
"husky": { | |||
"hooks": { | |||
"pre-commit": "npm run lint-staged" | |||
} | |||
} | |||
} | } |
src/services/api.js
0 → 100644
Please register or sign in to comment