1
0
Fork 0
mirror of https://github.com/plankanban/planka.git synced 2025-07-18 20:59:44 +02:00

Update dependencies

This commit is contained in:
Maksim Eltyshev 2022-02-09 00:56:01 +05:00
parent da9878f220
commit 99862c2f9a
20 changed files with 18933 additions and 27589 deletions

39379
client/package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -25,7 +25,15 @@
"browser": true, "browser": true,
"jest": true "jest": true
}, },
"parser": "babel-eslint", "parser": "@babel/eslint-parser",
"parserOptions": {
"babelOptions": {
"presets": [
"airbnb"
]
},
"requireConfigFile": false
},
"plugins": [ "plugins": [
"prettier" "prettier"
], ],
@ -56,54 +64,55 @@
}, },
"dependencies": { "dependencies": {
"classnames": "^2.2.6", "classnames": "^2.2.6",
"connected-react-router": "^6.8.0", "connected-react-router": "^6.9.2",
"date-fns": "^2.23.0", "date-fns": "^2.28.0",
"dequal": "^2.0.2", "dequal": "^2.0.2",
"history": "^4.10.1", "history": "^4.10.1",
"i18next": "^20.3.5", "i18next": "^21.6.11",
"i18next-browser-languagedetector": "^6.1.2", "i18next-browser-languagedetector": "^6.1.3",
"initials": "^3.1.1", "initials": "^3.1.2",
"lodash": "^4.17.20", "lodash": "^4.17.20",
"node-sass": "^6.0.1", "node-sass": "^7.0.1",
"prop-types": "^15.7.2", "prop-types": "^15.8.1",
"react": "^17.0.1", "react": "^17.0.1",
"react-beautiful-dnd": "^13.0.0", "react-beautiful-dnd": "^13.0.0",
"react-datepicker": "^4.1.1", "react-datepicker": "^4.6.0",
"react-dom": "^17.0.1", "react-dom": "^17.0.1",
"react-dropzone": "^11.3.4", "react-dropzone": "^12.0.1",
"react-i18next": "^11.11.4", "react-i18next": "^11.15.4",
"react-input-mask": "^2.0.4", "react-input-mask": "^2.0.4",
"react-markdown": "^6.0.3", "react-markdown": "^8.0.0",
"react-redux": "^7.2.4", "react-redux": "^7.2.6",
"react-router-dom": "^5.2.0", "react-router-dom": "^5.2.0",
"react-scripts": "4.0.3", "react-scripts": "5.0.0",
"react-textarea-autosize": "^8.3.3", "react-textarea-autosize": "^8.3.3",
"redux": "^4.1.0", "redux": "^4.1.2",
"redux-logger": "^3.0.6", "redux-logger": "^3.0.6",
"redux-orm": "^0.16.2", "redux-orm": "^0.16.2",
"redux-saga": "^1.1.3", "redux-saga": "^1.1.3",
"remark-gfm": "^1.0.0", "remark-gfm": "^3.0.1",
"reselect": "^4.0.0", "reselect": "^4.1.5",
"sails.io.js": "^1.2.1", "sails.io.js": "^1.2.1",
"semantic-ui-react": "^2.0.3", "semantic-ui-react": "^2.1.1",
"socket.io-client": "^2.3.1", "socket.io-client": "^2.3.1",
"validator": "^13.6.0", "validator": "^13.7.0",
"whatwg-fetch": "^3.5.0" "whatwg-fetch": "^3.5.0"
}, },
"devDependencies": { "devDependencies": {
"@wojtekmaj/enzyme-adapter-react-17": "^0.6.3", "@wojtekmaj/enzyme-adapter-react-17": "^0.6.6",
"chai": "^4.3.0", "babel-preset-airbnb": "^5.0.0",
"chai": "^4.3.6",
"enzyme": "^3.11.0", "enzyme": "^3.11.0",
"eslint": "^7.32.0", "eslint": "^8.8.0",
"eslint-config-airbnb": "^18.2.1", "eslint-config-airbnb": "^19.0.4",
"eslint-config-prettier": "^8.3.0", "eslint-config-prettier": "^8.3.0",
"eslint-plugin-import": "^2.23.4", "eslint-plugin-import": "^2.25.4",
"eslint-plugin-jsx-a11y": "^6.4.1", "eslint-plugin-jsx-a11y": "^6.5.1",
"eslint-plugin-prettier": "^3.4.0", "eslint-plugin-prettier": "^4.0.0",
"eslint-plugin-react": "^7.24.0", "eslint-plugin-react": "^7.28.0",
"eslint-plugin-react-hooks": "^4.2.0", "eslint-plugin-react-hooks": "^4.3.0",
"jest-enzyme": "^7.1.2", "jest-enzyme": "^7.1.2",
"prettier": "2.3.2", "prettier": "2.5.1",
"react-test-renderer": "^17.0.1" "react-test-renderer": "^17.0.1"
} }
} }

View file

@ -9,7 +9,8 @@ import { ProjectBackgroundTypes } from '../../constants/Enums';
import styles from './Background.module.scss'; import styles from './Background.module.scss';
import globalStyles from '../../styles.module.scss'; import globalStyles from '../../styles.module.scss';
const Background = ({ type, name, imageUrl }) => ( function Background({ type, name, imageUrl }) {
return (
<div <div
className={classNames( className={classNames(
styles.wrapper, styles.wrapper,
@ -20,7 +21,8 @@ const Background = ({ type, name, imageUrl }) => (
background: type === 'image' && `url("${imageUrl}") center / cover`, background: type === 'image' && `url("${imageUrl}") center / cover`,
}} }}
/> />
); );
}
Background.propTypes = { Background.propTypes = {
type: PropTypes.string.isRequired, type: PropTypes.string.isRequired,

View file

@ -40,9 +40,7 @@ const Tasks = React.memo(({ items }) => {
<span <span
className={classNames(styles.count, isOpened ? styles.countOpened : styles.countClosed)} className={classNames(styles.count, isOpened ? styles.countOpened : styles.countClosed)}
> >
{completedItems.length} {completedItems.length}/{items.length}
{'/'}
{items.length}
</span> </span>
</div> </div>
{isOpened && ( {isOpened && (

View file

@ -9,7 +9,8 @@ import UserSettingsModalContainer from '../containers/UserSettingsModalContainer
import ProjectAddModalContainer from '../containers/ProjectAddModalContainer'; import ProjectAddModalContainer from '../containers/ProjectAddModalContainer';
import Background from './Background'; import Background from './Background';
const Core = ({ currentModal, currentProject }) => ( function Core({ currentModal, currentProject }) {
return (
<> <>
{currentProject && currentProject.background && ( {currentProject && currentProject.background && (
<Background <Background
@ -24,7 +25,8 @@ const Core = ({ currentModal, currentProject }) => (
{currentModal === ModalTypes.USER_SETTINGS && <UserSettingsModalContainer />} {currentModal === ModalTypes.USER_SETTINGS && <UserSettingsModalContainer />}
{currentModal === ModalTypes.PROJECT_ADD && <ProjectAddModalContainer />} {currentModal === ModalTypes.PROJECT_ADD && <ProjectAddModalContainer />}
</> </>
); );
}
Core.propTypes = { Core.propTypes = {
currentModal: PropTypes.oneOf(Object.values(ModalTypes)), currentModal: PropTypes.oneOf(Object.values(ModalTypes)),

View file

@ -7,13 +7,15 @@ import BoardActionsContainer from '../../containers/BoardActionsContainer';
import styles from './Fixed.module.scss'; import styles from './Fixed.module.scss';
const Fixed = ({ projectId, board }) => ( function Fixed({ projectId, board }) {
return (
<div className={styles.wrapper}> <div className={styles.wrapper}>
<HeaderContainer /> <HeaderContainer />
{projectId && <ProjectContainer />} {projectId && <ProjectContainer />}
{board && !board.isFetching && <BoardActionsContainer />} {board && !board.isFetching && <BoardActionsContainer />}
</div> </div>
); );
}
Fixed.propTypes = { Fixed.propTypes = {
projectId: PropTypes.string, projectId: PropTypes.string,

View file

@ -1,7 +1,7 @@
import React from 'react'; import React from 'react';
import { useTranslation } from 'react-i18next'; import { useTranslation } from 'react-i18next';
const NotFound = () => { function NotFound() {
const [t] = useTranslation(); const [t] = useTranslation();
return ( return (
@ -11,6 +11,6 @@ const NotFound = () => {
})} })}
</h1> </h1>
); );
}; }
export default NotFound; export default NotFound;

View file

@ -14,7 +14,8 @@ import '../lib/custom-ui/styles.css';
import '../styles.module.scss'; import '../styles.module.scss';
const Root = ({ store, history }) => ( function Root({ store, history }) {
return (
<Provider store={store}> <Provider store={store}>
<ConnectedRouter history={history}> <ConnectedRouter history={history}>
<Switch> <Switch>
@ -27,7 +28,8 @@ const Root = ({ store, history }) => (
</Switch> </Switch>
</ConnectedRouter> </ConnectedRouter>
</Provider> </Provider>
); );
}
Root.propTypes = { Root.propTypes = {
/* eslint-disable react/forbid-prop-types */ /* eslint-disable react/forbid-prop-types */

View file

@ -9,7 +9,7 @@ import BoardWrapperContainer from '../../containers/BoardWrapperContainer';
import styles from './Static.module.scss'; import styles from './Static.module.scss';
const Static = ({ cardId, boardId, projectId }) => { function Static({ cardId, boardId, projectId }) {
const [t] = useTranslation(); const [t] = useTranslation();
if (projectId === undefined) { if (projectId === undefined) {
@ -85,7 +85,7 @@ const Static = ({ cardId, boardId, projectId }) => {
<BoardWrapperContainer /> <BoardWrapperContainer />
</div> </div>
); );
}; }
Static.propTypes = { Static.propTypes = {
cardId: PropTypes.string, cardId: PropTypes.string,

File diff suppressed because one or more lines are too long

View file

@ -6,6 +6,7 @@ const initialState = {
userId: null, userId: null,
}; };
// eslint-disable-next-line default-param-last
export default (state = initialState, { type, payload }) => { export default (state = initialState, { type, payload }) => {
switch (type) { switch (type) {
case ActionTypes.AUTHENTICATE__SUCCESS: case ActionTypes.AUTHENTICATE__SUCCESS:

View file

@ -8,6 +8,7 @@ const initialState = {
currentModal: null, currentModal: null,
}; };
// eslint-disable-next-line default-param-last
export default (state = initialState, { type, payload }) => { export default (state = initialState, { type, payload }) => {
switch (type) { switch (type) {
case LOCATION_CHANGE: case LOCATION_CHANGE:

View file

@ -4,6 +4,7 @@ const initialState = {
isDisconnected: false, isDisconnected: false,
}; };
// eslint-disable-next-line default-param-last
export default (state = initialState, { type }) => { export default (state = initialState, { type }) => {
switch (type) { switch (type) {
case ActionTypes.SOCKET_DISCONNECT_HANDLE: case ActionTypes.SOCKET_DISCONNECT_HANDLE:

View file

@ -9,6 +9,7 @@ const initialState = {
error: null, error: null,
}; };
// eslint-disable-next-line default-param-last
export default (state = initialState, { type, payload }) => { export default (state = initialState, { type, payload }) => {
switch (type) { switch (type) {
case ActionTypes.AUTHENTICATE: case ActionTypes.AUTHENTICATE:

View file

@ -7,6 +7,7 @@ const initialState = {
isSubmitting: false, isSubmitting: false,
}; };
// eslint-disable-next-line default-param-last
export default (state = initialState, { type, payload }) => { export default (state = initialState, { type, payload }) => {
switch (type) { switch (type) {
case ActionTypes.PROJECT_CREATE: case ActionTypes.PROJECT_CREATE:

View file

@ -10,6 +10,7 @@ const initialState = {
error: null, error: null,
}; };
// eslint-disable-next-line default-param-last
export default (state = initialState, { type, payload }) => { export default (state = initialState, { type, payload }) => {
switch (type) { switch (type) {
case ActionTypes.USER_CREATE: case ActionTypes.USER_CREATE:

1689
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -41,8 +41,8 @@
] ]
}, },
"dependencies": { "dependencies": {
"concurrently": "^6.2.0", "concurrently": "^7.0.0",
"husky": "^7.0.1", "husky": "^7.0.4",
"lint-staged": "^11.1.1" "lint-staged": "^12.3.3"
} }
} }

5163
server/package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -39,34 +39,34 @@
}, },
"dependencies": { "dependencies": {
"bcrypt": "^5.0.1", "bcrypt": "^5.0.1",
"dotenv": "^10.0.0", "dotenv": "^16.0.0",
"dotenv-cli": "^4.0.0", "dotenv-cli": "^5.0.0",
"filenamify": "^4.3.0", "filenamify": "^4.3.0",
"jsonwebtoken": "^8.5.1", "jsonwebtoken": "^8.5.1",
"knex": "^0.95.9", "knex": "^1.0.2",
"lodash": "^4.17.21", "lodash": "^4.17.21",
"moment": "^2.29.1", "moment": "^2.29.1",
"rimraf": "^3.0.2", "rimraf": "^3.0.2",
"sails": "^1.4.4", "sails": "^1.5.2",
"sails-hook-orm": "^3.0.2", "sails-hook-orm": "^4.0.1",
"sails-hook-sockets": "^2.0.1", "sails-hook-sockets": "^2.0.1",
"sails-postgresql-redacted": "^1.0.2-9", "sails-postgresql-redacted": "^1.0.2-9",
"sharp": "^0.28.3", "sharp": "^0.30.0",
"stream-to-array": "^2.3.0", "stream-to-array": "^2.3.0",
"uuid": "^8.3.2", "uuid": "^8.3.2",
"validator": "^13.6.0" "validator": "^13.7.0"
}, },
"devDependencies": { "devDependencies": {
"chai": "^4.3.4", "chai": "^4.3.6",
"eslint": "^7.32.0", "eslint": "^8.8.0",
"eslint-config-airbnb-base": "^14.2.0", "eslint-config-airbnb-base": "^15.0.0",
"eslint-config-prettier": "^8.3.0", "eslint-config-prettier": "^8.3.0",
"eslint-plugin-import": "^2.23.4", "eslint-plugin-import": "^2.25.4",
"eslint-plugin-prettier": "^3.4.0", "eslint-plugin-prettier": "^4.0.0",
"mocha": "^9.0.3", "mocha": "^9.2.0",
"nodemon": "^2.0.12", "nodemon": "^2.0.15",
"prettier": "2.3.2", "prettier": "2.5.1",
"supertest": "^6.1.4" "supertest": "^6.2.2"
}, },
"engines": { "engines": {
"node": "^12.10" "node": "^12.10"