1
0
Fork 0
mirror of https://github.com/plankanban/planka.git synced 2025-07-18 12:49:43 +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

39423
client/package-lock.json generated

File diff suppressed because it is too large Load diff

View file

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

View file

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

View file

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

View file

@ -9,22 +9,24 @@ import UserSettingsModalContainer from '../containers/UserSettingsModalContainer
import ProjectAddModalContainer from '../containers/ProjectAddModalContainer';
import Background from './Background';
const Core = ({ currentModal, currentProject }) => (
<>
{currentProject && currentProject.background && (
<Background
type={currentProject.background.type}
name={currentProject.background.name}
imageUrl={currentProject.backgroundImage && currentProject.backgroundImage.url}
/>
)}
<FixedContainer />
<StaticContainer />
{currentModal === ModalTypes.USERS && <UsersModalContainer />}
{currentModal === ModalTypes.USER_SETTINGS && <UserSettingsModalContainer />}
{currentModal === ModalTypes.PROJECT_ADD && <ProjectAddModalContainer />}
</>
);
function Core({ currentModal, currentProject }) {
return (
<>
{currentProject && currentProject.background && (
<Background
type={currentProject.background.type}
name={currentProject.background.name}
imageUrl={currentProject.backgroundImage && currentProject.backgroundImage.url}
/>
)}
<FixedContainer />
<StaticContainer />
{currentModal === ModalTypes.USERS && <UsersModalContainer />}
{currentModal === ModalTypes.USER_SETTINGS && <UserSettingsModalContainer />}
{currentModal === ModalTypes.PROJECT_ADD && <ProjectAddModalContainer />}
</>
);
}
Core.propTypes = {
currentModal: PropTypes.oneOf(Object.values(ModalTypes)),

View file

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

View file

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

View file

@ -14,20 +14,22 @@ import '../lib/custom-ui/styles.css';
import '../styles.module.scss';
const Root = ({ store, history }) => (
<Provider store={store}>
<ConnectedRouter history={history}>
<Switch>
<Route exact path={Paths.LOGIN} component={LoginContainer} />
<Route exact path={Paths.ROOT} component={CoreWrapperContainer} />
<Route exact path={Paths.PROJECTS} component={CoreWrapperContainer} />
<Route exact path={Paths.BOARDS} component={CoreWrapperContainer} />
<Route exact path={Paths.CARDS} component={CoreWrapperContainer} />
<Route path="*" component={NotFound} />
</Switch>
</ConnectedRouter>
</Provider>
);
function Root({ store, history }) {
return (
<Provider store={store}>
<ConnectedRouter history={history}>
<Switch>
<Route exact path={Paths.LOGIN} component={LoginContainer} />
<Route exact path={Paths.ROOT} component={CoreWrapperContainer} />
<Route exact path={Paths.PROJECTS} component={CoreWrapperContainer} />
<Route exact path={Paths.BOARDS} component={CoreWrapperContainer} />
<Route exact path={Paths.CARDS} component={CoreWrapperContainer} />
<Route path="*" component={NotFound} />
</Switch>
</ConnectedRouter>
</Provider>
);
}
Root.propTypes = {
/* eslint-disable react/forbid-prop-types */

View file

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

File diff suppressed because one or more lines are too long

View file

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

View file

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

View file

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

View file

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

View file

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

View file

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

1699
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

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

5169
server/package-lock.json generated

File diff suppressed because it is too large Load diff

View file

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