-
Notifications
You must be signed in to change notification settings - Fork 256
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: sync from RAP2@alibaba-internal to RAP2@CE
- Loading branch information
Showing
85 changed files
with
1,930 additions
and
749 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,6 @@ | |
"description": "", | ||
"main": "app.js", | ||
"scripts": { | ||
"dev": "npm run start", | ||
"build-css": "node ./node_modules/sass/sass src/:src/ --quiet", | ||
"watch-css": "npm run build-css && node ./node_modules/sass/sass src/:src/ --watch", | ||
"start-js": "react-scripts start", | ||
|
@@ -13,41 +12,45 @@ | |
"test-backup": "npm run lint && react-scripts test --env=jsdom", | ||
"test": "npm run lint", | ||
"eject": "react-scripts eject", | ||
"lint": "tslint --project ./ -c tslint.json --fix", | ||
"build-docker": "docker build --rm -f \"Dockerfile\" -t rapteam/rap2-dolores:latest ." | ||
"dev": "npm run start", | ||
"lint": "tslint --project ./ -c tslint.json --fix" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "[email protected]:thx/rap2-dolores.git" | ||
}, | ||
"engines": { | ||
"install-alinode": "v5.15.0" | ||
}, | ||
"author": "[email protected]", | ||
"license": "ISC", | ||
"dependencies": { | ||
"@material-ui/core": "^4.4.3", | ||
"@material-ui/icons": "^4.4.3", | ||
"@material-ui/pickers": "^3.2.6", | ||
"@material-ui/styles": "^4.4.3", | ||
"@material-ui/core": "^4.11.0", | ||
"@material-ui/icons": "^4.9.1", | ||
"@material-ui/pickers": "^3.2.10", | ||
"@material-ui/styles": "^4.10.0", | ||
"@types/json5": "^0.0.30", | ||
"@welldone-software/why-did-you-render": "^4.0.3", | ||
"@welldone-software/why-did-you-render": "^4.2.5", | ||
"animate.css": "3.7.2", | ||
"awesome-debounce-promise": "^2.1.0", | ||
"chart.js": "^2.8.0", | ||
"chart.js": "^2.9.3", | ||
"classnames": "^2.2.6", | ||
"clipboard-copy": "^3.1.0", | ||
"codemirror": "5.49.0", | ||
"connected-react-router": "^6.5.2", | ||
"debounce-promise": "^3.1.2", | ||
"formik": "^1.5.8", | ||
"formik-material-ui": "^0.0.22", | ||
"formik": "^2.1.4", | ||
"formik-material-ui": "^2.0.1", | ||
"graceful": "1.0.2", | ||
"history": "^4.10.1", | ||
"jquery": "^3.4.1", | ||
"json5": "^2.1.0", | ||
"json5": "^2.1.3", | ||
"koa": "2.8.1", | ||
"koa-router": "7.4.0", | ||
"koa-session": "5.12.3", | ||
"koa-static": "5.0.0", | ||
"lodash": "4.17.15", | ||
"markdown-to-jsx": "^6.11.4", | ||
"mockjs": "1.1.0", | ||
"moment": "2.24.0", | ||
"node-fetch": "2.6.0", | ||
|
@@ -58,19 +61,21 @@ | |
"popper.js": "^1.15.0", | ||
"prop-types": "15.7.2", | ||
"rc-tooltip": "^3.7.3", | ||
"react": "^16.9.0", | ||
"react-custom-scroll": "^4.2.0", | ||
"react-dom": "^16.9.0", | ||
"react": "^16.13.1", | ||
"react-custom-scroll": "^4.2.1", | ||
"react-dom": "^16.13.1", | ||
"react-hotkeys": "^2.0.0", | ||
"react-icons": "3.7.0", | ||
"react-joyride": "^2.2.0", | ||
"react-modal": "3.10.1", | ||
"react-redux": "^7.1.1", | ||
"react-router": "5.1.0", | ||
"react-router-config": "5.1.0", | ||
"react-router-dom": "5.1.0", | ||
"react-select": "^3.0.5", | ||
"redux": "4.0.4", | ||
"redux-saga": "1.1.1", | ||
"react-redux": "^7.2.0", | ||
"react-router": "5.2.0", | ||
"react-router-config": "5.1.1", | ||
"react-router-dom": "5.2.0", | ||
"react-select": "^3.1.0", | ||
"redux": "4.0.5", | ||
"redux-api-middleware": "^3.2.1", | ||
"redux-saga": "1.1.3", | ||
"reselect": "^4.0.0", | ||
"sortablejs": "1.10.0", | ||
"urijs": "1.19.1", | ||
|
@@ -86,7 +91,7 @@ | |
] | ||
}, | ||
"devDependencies": { | ||
"@types/chart.js": "^2.8.5", | ||
"@types/chart.js": "^2.9.22", | ||
"@types/classnames": "^2.2.9", | ||
"@types/codemirror": "^0.0.77", | ||
"@types/history": "^4.7.3", | ||
|
@@ -112,10 +117,10 @@ | |
"pre-commit": "^1.2.2", | ||
"react-scripts": "^3.1.2", | ||
"standard": "14.3.1", | ||
"tslint": "^5.20.0", | ||
"tslint-react": "^4.1.0", | ||
"tslint-react-hooks": "^2.2.1", | ||
"typescript": "^3.8.3" | ||
"tslint": "^6.1.2", | ||
"tslint-react": "^5.0.0", | ||
"tslint-react-hooks": "^2.2.2", | ||
"typescript": "^3.9.6" | ||
}, | ||
"pre-commit": [ | ||
"lint" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import { ApiError, IRSAA } from 'redux-api-middleware' | ||
|
||
export interface CommonFetchFailureAction { | ||
payload: ApiError | ||
error: true | ||
} | ||
|
||
const RSAA_BASE: Partial<IRSAA> = { | ||
credentials: 'include', | ||
method: 'GET', | ||
headers: { 'Content-Type': 'application/json' }, | ||
} | ||
|
||
export const mergeRSAABase = (options: Partial<IRSAA>) => { | ||
return { | ||
...RSAA_BASE, | ||
...options, | ||
} as IRSAA | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.