hedgedoc/package.json
Erik Michelson d597438c42
Add revisions dialog (#485)
* Add mock files

Note that revisions-list needs to be called revisions in the reality to be confirm with the API spec, but our mocking solution doesn't allow that...

* Add revisions API calls

* Fix line endings in mock files

* Extend CommonModal to accept size and additionalClasses

* Clarify variable name in API request

* Add react-diff-viewer as dependency

* Add revision chooser modal

* Fix type of route params

* Added and updated mock files

* Added user-icon list per revision

* Added translation to alt text of avatars

* Updated mock file to remove inconsistencies

* Add caching for revisions

* Sort mock file revisions-list descending by timestamp

* Pre-select first/newest revision on first modal open

* Regenerated yarn.lock file from scratch

* Applied requested changes in variable names and line lengths

* User UserAvatar component instead of manually set image

* Move revision-modal-list-entry to own component

* Removed unnecessary return statements
2020-09-02 22:57:44 +02:00

156 lines
5.4 KiB
JSON

{
"name": "react_client",
"license": "AGPL-3.0",
"version": "0.1.0",
"dependencies": {
"@hedgedoc/markdown-it-task-lists": "0.0.1",
"@matejmazur/react-katex": "3.1.3",
"@testing-library/jest-dom": "5.11.4",
"@testing-library/react": "10.4.9",
"@testing-library/user-event": "12.1.3",
"@types/codemirror": "0.0.97",
"@types/diff": "4.0.2",
"@types/emoji-mart": "3.0.2",
"@types/highlight.js": "9.12.4",
"@types/jest": "26.0.10",
"@types/js-yaml": "3.12.5",
"@types/markdown-it": "10.0.2",
"@types/markdown-it-anchor": "4.0.4",
"@types/markdown-it-container": "2.0.3",
"@types/node": "12.12.53",
"@types/node-sass": "4.11.1",
"@types/react": "16.9.48",
"@types/react-bootstrap-typeahead": "3.4.6",
"@types/react-dom": "16.9.8",
"@types/react-html-parser": "2.0.1",
"@types/react-redux": "7.1.9",
"@types/react-router": "5.1.8",
"@types/react-router-bootstrap": "0.24.5",
"@types/react-router-dom": "5.1.5",
"@typescript-eslint/eslint-plugin": "3.10.1",
"@typescript-eslint/parser": "3.10.1",
"bootstrap": "4.5.2",
"codemirror": "5.57.0",
"diff": "4.0.2",
"emoji-mart": "3.0.0",
"eslint-config-react-app": "5.2.1",
"eslint-config-standard": "14.1.1",
"eslint-plugin-flowtype": "5.2.0",
"eslint-plugin-import": "2.22.0",
"eslint-plugin-jsx-a11y": "6.3.1",
"eslint-plugin-node": "11.1.0",
"eslint-plugin-promise": "4.2.1",
"eslint-plugin-standard": "4.0.1",
"fast-deep-equal": "^3.1.3",
"flowchart.js": "1.14.0",
"fork-awesome": "1.1.7",
"github-markdown-css": "4.0.0",
"highlight.js": "10.1.2",
"i18next": "19.7.0",
"i18next-browser-languagedetector": "6.0.1",
"i18next-http-backend": "1.0.18",
"js-yaml": "3.14.0",
"katex": "0.12.0",
"markdown-it": "11.0.0",
"markdown-it-abbr": "1.0.4",
"markdown-it-anchor": "5.3.0",
"markdown-it-container": "3.0.0",
"markdown-it-deflist": "2.0.3",
"markdown-it-emoji": "1.4.0",
"markdown-it-footnote": "3.0.2",
"markdown-it-front-matter": "0.2.1",
"markdown-it-imsize": "2.0.1",
"markdown-it-ins": "3.0.0",
"markdown-it-mark": "3.0.0",
"markdown-it-mathjax": "2.0.0",
"markdown-it-plantuml": "1.4.1",
"markdown-it-regex": "0.2.0",
"markdown-it-sub": "1.0.0",
"markdown-it-sup": "1.0.0",
"markdown-it-task-lists": "2.1.1",
"markdown-it-toc-done-right": "4.1.0",
"moment": "2.27.0",
"node-sass": "4.14.1",
"react": "16.13.1",
"react-bootstrap": "1.3.0",
"react-bootstrap-typeahead": "5.1.1",
"react-codemirror2": "7.2.1",
"react-diff-viewer": "^3.1.1",
"react-dom": "16.13.1",
"react-html-parser": "2.0.2",
"react-i18next": "11.7.2",
"react-redux": "7.2.1",
"react-router": "5.2.0",
"react-router-bootstrap": "0.25.0",
"react-router-dom": "5.2.0",
"react-scripts": "3.4.3",
"react-use": "15.3.3",
"redux": "4.0.5",
"ts-mockery": "1.2.0",
"typescript": "4.0.2",
"use-media": "1.4.0",
"use-resize-observer": "6.1.0"
},
"scripts": {
"start": "PORT=3001 react-scripts start",
"start:dev": "REACT_APP_BACKEND=http://localhost:3000 yarn start",
"build:serve": "http-server build/ -s -p 3001 -P \"http://127.0.0.1:3001?\"",
"build": "react-scripts build",
"test": "react-scripts test",
"lint": "eslint --ext .ts,.tsx src",
"eject": "react-scripts eject",
"cy:open": "cypress open",
"cy:run:chrome": "cypress run --browser chrome",
"cy:run:firefox": "cypress run --browser firefox"
},
"eslintConfig": {
"parserOptions": {
"tsconfigRootDir": "",
"project": [
"./tsconfig.json"
]
},
"plugins": [
"@typescript-eslint"
],
"extends": [
"react-app",
"standard",
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking",
"plugin:import/recommended",
"plugin:import/typescript"
]
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
},
"devDependencies": {
"@cypress/webpack-preprocessor": "5.4.5",
"@testing-library/cypress": "6.0.1",
"@types/redux-devtools": "3.0.47",
"@types/redux-devtools-extension": "2.13.2",
"@types/testing-library__cypress": "5.0.6",
"cypress": "5.0.0",
"eslint-plugin-chai-friendly": "0.6.0",
"eslint-plugin-cypress": "2.11.1",
"http-server": "0.12.3",
"redux-devtools": "3.6.1",
"redux-devtools-extension": "2.13.8",
"ts-loader": "8.0.3"
},
"resolutions": {
"cypress": "5.0.0"
}
}