Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
02c26cfb4d | ||
|
|
ef096499a2 | ||
|
|
a007e1d065 | ||
|
|
c181731870 | ||
|
|
54c57a08c3 | ||
|
|
65abd7c9ab | ||
|
|
5fc811d2ef | ||
|
|
5afd4af897 | ||
|
|
ac0a3d9ae7 | ||
|
|
b0d23373c0 | ||
|
|
5381d45e50 |
@@ -9,7 +9,7 @@ on:
|
|||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
env:
|
env:
|
||||||
ALPINE_VERSION: 3.15
|
ALPINE_VERSION: 3.16
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-and-push-docker-base-image:
|
build-and-push-docker-base-image:
|
||||||
|
|||||||
@@ -3,3 +3,10 @@ docker-compose.override.yml
|
|||||||
|
|
||||||
.idea
|
.idea
|
||||||
.DS_Store
|
.DS_Store
|
||||||
|
|
||||||
|
# Prevent another lockfile than package-lock.json (npm) from being created
|
||||||
|
# If some case you are using pnpm or yarn, don't forget to generate npm lockfile
|
||||||
|
# before commiting your code by running:
|
||||||
|
# `npm i --package-lock-only`
|
||||||
|
pnpm-lock.yaml
|
||||||
|
yarn.lock
|
||||||
|
|||||||
+1
-1
@@ -8,7 +8,7 @@ RUN npm install npm@latest --global \
|
|||||||
&& npm install
|
&& npm install
|
||||||
|
|
||||||
COPY client .
|
COPY client .
|
||||||
RUN npm run build
|
RUN DISABLE_ESLINT_PLUGIN=true npm run build
|
||||||
|
|
||||||
FROM ghcr.io/plankanban/planka:base-latest
|
FROM ghcr.io/plankanban/planka:base-latest
|
||||||
|
|
||||||
|
|||||||
+2
-2
@@ -1,7 +1,7 @@
|
|||||||
FROM node:lts-alpine
|
FROM node:lts-alpine
|
||||||
|
|
||||||
ARG ALPINE_VERSION=3.15
|
ARG ALPINE_VERSION=3.16
|
||||||
ARG VIPS_VERSION=8.12.2
|
ARG VIPS_VERSION=8.13.3
|
||||||
|
|
||||||
RUN apk -U upgrade \
|
RUN apk -U upgrade \
|
||||||
&& apk add \
|
&& apk add \
|
||||||
|
|||||||
Generated
+11235
-14581
File diff suppressed because it is too large
Load Diff
+30
-42
@@ -34,15 +34,13 @@
|
|||||||
},
|
},
|
||||||
"requireConfigFile": false
|
"requireConfigFile": false
|
||||||
},
|
},
|
||||||
"plugins": [
|
|
||||||
"prettier"
|
|
||||||
],
|
|
||||||
"extends": [
|
"extends": [
|
||||||
"airbnb",
|
"airbnb",
|
||||||
"airbnb/hooks",
|
"airbnb/hooks",
|
||||||
"plugin:prettier/recommended"
|
"../package.json"
|
||||||
],
|
],
|
||||||
"rules": {
|
"rules": {
|
||||||
|
"no-unused-vars": "warn",
|
||||||
"import/no-extraneous-dependencies": [
|
"import/no-extraneous-dependencies": [
|
||||||
"error",
|
"error",
|
||||||
{
|
{
|
||||||
@@ -51,78 +49,68 @@
|
|||||||
"**/*.test.js"
|
"**/*.test.js"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
],
|
|
||||||
"prettier/prettier": [
|
|
||||||
"error",
|
|
||||||
{
|
|
||||||
"printWidth": 100,
|
|
||||||
"singleQuote": true,
|
|
||||||
"trailingComma": "all"
|
|
||||||
}
|
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@juggle/resize-observer": "^3.4.0",
|
"@juggle/resize-observer": "^3.4.0",
|
||||||
"classnames": "^2.3.1",
|
"classnames": "^2.3.2",
|
||||||
"connected-react-router": "^6.9.3",
|
"date-fns": "^2.29.3",
|
||||||
"date-fns": "^2.29.1",
|
|
||||||
"dequal": "^2.0.3",
|
"dequal": "^2.0.3",
|
||||||
"easymde": "^2.18.0",
|
"easymde": "^2.18.0",
|
||||||
"history": "^4.10.1",
|
"history": "^5.3.0",
|
||||||
"i18next": "^21.8.14",
|
"i18next": "^22.0.6",
|
||||||
"i18next-browser-languagedetector": "^6.1.4",
|
"i18next-browser-languagedetector": "^7.0.1",
|
||||||
"initials": "^3.1.2",
|
"initials": "^3.1.2",
|
||||||
"js-cookie": "^3.0.1",
|
"js-cookie": "^3.0.1",
|
||||||
"jwt-decode": "^3.1.2",
|
"jwt-decode": "^3.1.2",
|
||||||
"lodash": "^4.17.21",
|
"lodash": "^4.17.21",
|
||||||
"node-sass": "^7.0.1",
|
"node-sass": "^8.0.0",
|
||||||
"photoswipe": "^5.3.0",
|
"photoswipe": "^5.3.3",
|
||||||
"prop-types": "^15.8.1",
|
"prop-types": "^15.8.1",
|
||||||
"react": "^17.0.2",
|
"react": "^18.2.0",
|
||||||
"react-beautiful-dnd": "^13.1.0",
|
"react-beautiful-dnd": "^13.1.1",
|
||||||
"react-datepicker": "^4.8.0",
|
"react-datepicker": "^4.8.0",
|
||||||
"react-dom": "^17.0.2",
|
"react-dom": "^18.2.0",
|
||||||
"react-dropzone": "^14.2.2",
|
"react-dropzone": "^14.2.3",
|
||||||
"react-i18next": "^11.18.1",
|
"react-i18next": "^12.0.0",
|
||||||
"react-input-mask": "^2.0.4",
|
"react-input-mask": "^2.0.4",
|
||||||
"react-markdown": "^8.0.3",
|
"react-markdown": "^8.0.3",
|
||||||
"react-photoswipe-gallery": "^2.2.1",
|
"react-photoswipe-gallery": "^2.2.2",
|
||||||
"react-redux": "^7.2.8",
|
"react-redux": "^8.0.5",
|
||||||
"react-router-dom": "^5.3.1",
|
"react-router": "^6.4.3",
|
||||||
|
"react-router-dom": "^6.4.3",
|
||||||
"react-scripts": "5.0.1",
|
"react-scripts": "5.0.1",
|
||||||
"react-simplemde-editor": "^5.2.0",
|
"react-simplemde-editor": "^5.2.0",
|
||||||
"react-textarea-autosize": "^8.3.4",
|
"react-textarea-autosize": "^8.4.0",
|
||||||
"redux": "^4.2.0",
|
"redux": "^4.2.0",
|
||||||
|
"redux-first-history": "^5.1.1",
|
||||||
"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.2.1",
|
||||||
"remark-breaks": "^3.0.2",
|
"remark-breaks": "^3.0.2",
|
||||||
"remark-gfm": "^3.0.1",
|
"remark-gfm": "^3.0.1",
|
||||||
"reselect": "^4.1.6",
|
"reselect": "^4.1.7",
|
||||||
"sails.io.js": "^1.2.1",
|
"sails.io.js": "^1.2.1",
|
||||||
"semantic-ui-react": "^2.1.3",
|
"semantic-ui-react": "^2.1.3",
|
||||||
"socket.io-client": "^2.3.1",
|
"socket.io-client": "^2.5.0",
|
||||||
"validator": "^13.7.0",
|
"validator": "^13.7.0",
|
||||||
"whatwg-fetch": "^3.6.2",
|
"whatwg-fetch": "^3.6.2",
|
||||||
"zxcvbn": "^4.4.2"
|
"zxcvbn": "^4.4.2"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@wojtekmaj/enzyme-adapter-react-17": "^0.6.7",
|
"@testing-library/jest-dom": "^5.16.5",
|
||||||
|
"@testing-library/react": "^13.4.0",
|
||||||
|
"@testing-library/user-event": "^13.5.0",
|
||||||
"babel-preset-airbnb": "^5.0.0",
|
"babel-preset-airbnb": "^5.0.0",
|
||||||
"chai": "^4.3.6",
|
"chai": "^4.3.7",
|
||||||
"enzyme": "^3.11.0",
|
"eslint": "^8.28.0",
|
||||||
"eslint": "^8.20.0",
|
|
||||||
"eslint-config-airbnb": "^19.0.4",
|
"eslint-config-airbnb": "^19.0.4",
|
||||||
"eslint-config-prettier": "^8.5.0",
|
|
||||||
"eslint-plugin-import": "^2.26.0",
|
"eslint-plugin-import": "^2.26.0",
|
||||||
"eslint-plugin-jsx-a11y": "^6.6.1",
|
"eslint-plugin-jsx-a11y": "^6.6.1",
|
||||||
"eslint-plugin-prettier": "^4.2.1",
|
"eslint-plugin-react": "^7.31.11",
|
||||||
"eslint-plugin-react": "^7.30.1",
|
|
||||||
"eslint-plugin-react-hooks": "^4.6.0",
|
"eslint-plugin-react-hooks": "^4.6.0",
|
||||||
"jest-enzyme": "^7.1.2",
|
|
||||||
"prettier": "2.7.1",
|
|
||||||
"react-app-rewired": "^2.2.1",
|
"react-app-rewired": "^2.2.1",
|
||||||
"react-test-renderer": "^17.0.2"
|
"react-test-renderer": "^18.2.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,8 +1,8 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import PropTypes from 'prop-types';
|
import PropTypes from 'prop-types';
|
||||||
import { Provider } from 'react-redux';
|
import { Provider } from 'react-redux';
|
||||||
import { Route, Switch } from 'react-router-dom';
|
import { Route, Routes } from 'react-router-dom';
|
||||||
import { ConnectedRouter } from 'connected-react-router';
|
import { HistoryRouter as Router } from 'redux-first-history/rr6';
|
||||||
|
|
||||||
import Paths from '../constants/Paths';
|
import Paths from '../constants/Paths';
|
||||||
import LoginContainer from '../containers/LoginContainer';
|
import LoginContainer from '../containers/LoginContainer';
|
||||||
@@ -19,16 +19,16 @@ import '../styles.module.scss';
|
|||||||
function Root({ store, history }) {
|
function Root({ store, history }) {
|
||||||
return (
|
return (
|
||||||
<Provider store={store}>
|
<Provider store={store}>
|
||||||
<ConnectedRouter history={history}>
|
<Router history={history}>
|
||||||
<Switch>
|
<Routes>
|
||||||
<Route exact path={Paths.LOGIN} component={LoginContainer} />
|
<Route path={Paths.LOGIN} element={<LoginContainer />} />
|
||||||
<Route exact path={Paths.ROOT} component={CoreWrapperContainer} />
|
<Route path={Paths.ROOT} element={<CoreWrapperContainer />} />
|
||||||
<Route exact path={Paths.PROJECTS} component={CoreWrapperContainer} />
|
<Route path={Paths.PROJECTS} element={<CoreWrapperContainer />} />
|
||||||
<Route exact path={Paths.BOARDS} component={CoreWrapperContainer} />
|
<Route path={Paths.BOARDS} element={<CoreWrapperContainer />} />
|
||||||
<Route exact path={Paths.CARDS} component={CoreWrapperContainer} />
|
<Route path={Paths.CARDS} element={<CoreWrapperContainer />} />
|
||||||
<Route path="*" component={NotFound} />
|
<Route path="*" element={<NotFound />} />
|
||||||
</Switch>
|
</Routes>
|
||||||
</ConnectedRouter>
|
</Router>
|
||||||
</Provider>
|
</Provider>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { bindActionCreators } from 'redux';
|
import { bindActionCreators } from 'redux';
|
||||||
import { connect } from 'react-redux';
|
import { connect } from 'react-redux';
|
||||||
import { push } from 'connected-react-router';
|
import { push } from 'redux-first-history';
|
||||||
import omit from 'lodash/omit';
|
import omit from 'lodash/omit';
|
||||||
|
|
||||||
import selectors from '../selectors';
|
import selectors from '../selectors';
|
||||||
|
|||||||
@@ -1,3 +0,0 @@
|
|||||||
import { createBrowserHistory } from 'history';
|
|
||||||
|
|
||||||
export default createBrowserHistory();
|
|
||||||
+4
-4
@@ -1,10 +1,10 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import ReactDOM from 'react-dom';
|
import ReactDOM from 'react-dom/client';
|
||||||
|
|
||||||
import store from './store';
|
import store, { history } from './store';
|
||||||
import history from './history';
|
|
||||||
import Root from './components/Root';
|
import Root from './components/Root';
|
||||||
|
|
||||||
import './i18n';
|
import './i18n';
|
||||||
|
|
||||||
ReactDOM.render(React.createElement(Root, { store, history }), document.getElementById('root'));
|
const root = ReactDOM.createRoot(document.getElementById('root'));
|
||||||
|
root.render(React.createElement(Root, { store, history }));
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { LOCATION_CHANGE } from 'connected-react-router';
|
import { LOCATION_CHANGE } from 'redux-first-history';
|
||||||
|
|
||||||
import ActionTypes from '../constants/ActionTypes';
|
import ActionTypes from '../constants/ActionTypes';
|
||||||
import ModalTypes from '../constants/ModalTypes';
|
import ModalTypes from '../constants/ModalTypes';
|
||||||
|
|||||||
@@ -1,5 +1,3 @@
|
|||||||
import { connectRouter } from 'connected-react-router';
|
import { routerReducer } from '../redux-history-context';
|
||||||
|
|
||||||
import history from '../history';
|
export default routerReducer;
|
||||||
|
|
||||||
export default connectRouter(history);
|
|
||||||
|
|||||||
Executable
+6
@@ -0,0 +1,6 @@
|
|||||||
|
import { createBrowserHistory } from 'history';
|
||||||
|
import { createReduxHistoryContext } from 'redux-first-history';
|
||||||
|
|
||||||
|
export const { createReduxHistory, routerMiddleware, routerReducer } = createReduxHistoryContext({
|
||||||
|
history: createBrowserHistory(),
|
||||||
|
});
|
||||||
@@ -23,9 +23,9 @@ export function* fetchBoardByCurrentPath() {
|
|||||||
|
|
||||||
if (pathsMatch) {
|
if (pathsMatch) {
|
||||||
let boardId;
|
let boardId;
|
||||||
if (pathsMatch.path === Paths.BOARDS) {
|
if (pathsMatch.pattern.path === Paths.BOARDS) {
|
||||||
boardId = pathsMatch.params.id;
|
boardId = pathsMatch.params.id;
|
||||||
} else if (pathsMatch.path === Paths.CARDS) {
|
} else if (pathsMatch.pattern.path === Paths.CARDS) {
|
||||||
({
|
({
|
||||||
item: card,
|
item: card,
|
||||||
item: { boardId },
|
item: { boardId },
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { call, put, select, take } from 'redux-saga/effects';
|
import { call, put, select, take } from 'redux-saga/effects';
|
||||||
import { push } from 'connected-react-router';
|
import { push } from 'redux-first-history';
|
||||||
|
|
||||||
import request from '../request';
|
import request from '../request';
|
||||||
import selectors from '../../../selectors';
|
import selectors from '../../../selectors';
|
||||||
@@ -31,7 +31,7 @@ export function* handleLocationChange() {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
switch (pathsMatch.path) {
|
switch (pathsMatch.pattern.path) {
|
||||||
case Paths.LOGIN:
|
case Paths.LOGIN:
|
||||||
yield call(goToRoot);
|
yield call(goToRoot);
|
||||||
|
|
||||||
@@ -58,7 +58,7 @@ export function* handleLocationChange() {
|
|||||||
let attachments;
|
let attachments;
|
||||||
let deletedNotifications;
|
let deletedNotifications;
|
||||||
|
|
||||||
switch (pathsMatch.path) {
|
switch (pathsMatch.pattern.path) {
|
||||||
case Paths.BOARDS:
|
case Paths.BOARDS:
|
||||||
case Paths.CARDS: {
|
case Paths.CARDS: {
|
||||||
const currentBoard = yield select(selectors.selectCurrentBoard);
|
const currentBoard = yield select(selectors.selectCurrentBoard);
|
||||||
@@ -85,7 +85,7 @@ export function* handleLocationChange() {
|
|||||||
} catch (error) {} // eslint-disable-line no-empty
|
} catch (error) {} // eslint-disable-line no-empty
|
||||||
}
|
}
|
||||||
|
|
||||||
if (pathsMatch.path === Paths.CARDS) {
|
if (pathsMatch.pattern.path === Paths.CARDS) {
|
||||||
const notificationIds = yield select(selectors.selectNotificationIdsForCurrentCard);
|
const notificationIds = yield select(selectors.selectNotificationIdsForCurrentCard);
|
||||||
|
|
||||||
if (notificationIds && notificationIds.length > 0) {
|
if (notificationIds && notificationIds.length > 0) {
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { takeEvery } from 'redux-saga/effects';
|
import { takeEvery } from 'redux-saga/effects';
|
||||||
import { LOCATION_CHANGE } from 'connected-react-router';
|
import { LOCATION_CHANGE } from 'redux-first-history';
|
||||||
|
|
||||||
import services from '../services';
|
import services from '../services';
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { call, put, select } from 'redux-saga/effects';
|
import { call, put, select } from 'redux-saga/effects';
|
||||||
import { push } from 'connected-react-router';
|
import { push } from 'redux-first-history';
|
||||||
|
|
||||||
import selectors from '../../../selectors';
|
import selectors from '../../../selectors';
|
||||||
import Paths from '../../../constants/Paths';
|
import Paths from '../../../constants/Paths';
|
||||||
@@ -19,7 +19,7 @@ export function* handleLocationChange() {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
switch (pathsMatch.path) {
|
switch (pathsMatch.pattern.path) {
|
||||||
case Paths.ROOT:
|
case Paths.ROOT:
|
||||||
case Paths.PROJECTS:
|
case Paths.PROJECTS:
|
||||||
case Paths.BOARDS:
|
case Paths.BOARDS:
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { takeEvery } from 'redux-saga/effects';
|
import { takeEvery } from 'redux-saga/effects';
|
||||||
import { LOCATION_CHANGE } from 'connected-react-router';
|
import { LOCATION_CHANGE } from 'redux-first-history';
|
||||||
|
|
||||||
import services from '../services';
|
import services from '../services';
|
||||||
|
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ export const selectPath = createReduxOrmSelector(
|
|||||||
(state) => selectCurrentUserId(state),
|
(state) => selectCurrentUserId(state),
|
||||||
({ Project, Board, Card }, pathsMatch, currentUserId) => {
|
({ Project, Board, Card }, pathsMatch, currentUserId) => {
|
||||||
if (pathsMatch) {
|
if (pathsMatch) {
|
||||||
switch (pathsMatch.path) {
|
switch (pathsMatch.pattern.path) {
|
||||||
case Paths.PROJECTS: {
|
case Paths.PROJECTS: {
|
||||||
const projectModel = Project.withId(pathsMatch.params.id);
|
const projectModel = Project.withId(pathsMatch.params.id);
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
import { configure } from 'enzyme';
|
// jest-dom adds custom jest matchers for asserting on DOM nodes.
|
||||||
import Adapter from '@wojtekmaj/enzyme-adapter-react-17';
|
// allows you to do things like:
|
||||||
|
// expect(element).toHaveTextContent(/react/i)
|
||||||
import 'jest-enzyme';
|
// learn more: https://github.com/testing-library/jest-dom
|
||||||
|
import '@testing-library/jest-dom';
|
||||||
configure({ adapter: new Adapter() });
|
|
||||||
|
|||||||
+7
-4
@@ -1,14 +1,13 @@
|
|||||||
import { applyMiddleware, legacy_createStore as createStore, compose as reduxCompose } from 'redux';
|
import { applyMiddleware, legacy_createStore as createStore, compose as reduxCompose } from 'redux';
|
||||||
import createSagaMiddleware from 'redux-saga';
|
import createSagaMiddleware from 'redux-saga';
|
||||||
import { routerMiddleware } from 'connected-react-router';
|
|
||||||
|
|
||||||
import rootReducer from './reducers';
|
import rootReducer from './reducers';
|
||||||
import rootSaga from './sagas';
|
import rootSaga from './sagas';
|
||||||
import history from './history';
|
import { createReduxHistory, routerMiddleware } from './redux-history-context';
|
||||||
|
|
||||||
const sagaMiddleware = createSagaMiddleware();
|
const sagaMiddleware = createSagaMiddleware();
|
||||||
|
|
||||||
const middlewares = [sagaMiddleware, routerMiddleware(history)];
|
const middlewares = [sagaMiddleware, routerMiddleware];
|
||||||
|
|
||||||
let compose = reduxCompose;
|
let compose = reduxCompose;
|
||||||
|
|
||||||
@@ -23,6 +22,10 @@ if (process.env.NODE_ENV !== 'production') {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export default createStore(rootReducer, compose(applyMiddleware(...middlewares)));
|
const store = createStore(rootReducer, compose(applyMiddleware(...middlewares)));
|
||||||
|
|
||||||
sagaMiddleware.run(rootSaga);
|
sagaMiddleware.run(rootSaga);
|
||||||
|
|
||||||
|
export default store;
|
||||||
|
|
||||||
|
export const history = createReduxHistory(store);
|
||||||
|
|||||||
@@ -2,10 +2,13 @@ import { matchPath } from 'react-router-dom';
|
|||||||
|
|
||||||
export default (pathname, paths) => {
|
export default (pathname, paths) => {
|
||||||
for (let i = 0; i < paths.length; i += 1) {
|
for (let i = 0; i < paths.length; i += 1) {
|
||||||
const match = matchPath(pathname, {
|
const match = matchPath(
|
||||||
path: paths[i],
|
{
|
||||||
exact: true,
|
path: paths[i],
|
||||||
});
|
end: true,
|
||||||
|
},
|
||||||
|
pathname,
|
||||||
|
);
|
||||||
|
|
||||||
if (match) {
|
if (match) {
|
||||||
return match;
|
return match;
|
||||||
|
|||||||
Generated
+1843
-254
File diff suppressed because it is too large
Load Diff
+26
-3
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "planka",
|
"name": "planka",
|
||||||
"version": "1.8.5",
|
"version": "1.8.6",
|
||||||
"private": true,
|
"private": true,
|
||||||
"homepage": "https://plankanban.github.io/planka",
|
"homepage": "https://plankanban.github.io/planka",
|
||||||
"repository": {
|
"repository": {
|
||||||
@@ -38,9 +38,32 @@
|
|||||||
"npm run server:lint"
|
"npm run server:lint"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
"prettier": {
|
||||||
|
"printWidth": 100,
|
||||||
|
"singleQuote": true,
|
||||||
|
"trailingComma": "all"
|
||||||
|
},
|
||||||
|
"eslintConfig": {
|
||||||
|
"plugins": [
|
||||||
|
"prettier"
|
||||||
|
],
|
||||||
|
"extends": [
|
||||||
|
"plugin:prettier/recommended"
|
||||||
|
],
|
||||||
|
"rules": {
|
||||||
|
"no-undef": "off",
|
||||||
|
"prettier/prettier": "error"
|
||||||
|
}
|
||||||
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"concurrently": "^7.3.0",
|
"concurrently": "^7.6.0",
|
||||||
"husky": "^8.0.1",
|
"husky": "^8.0.2",
|
||||||
"lint-staged": "^13.0.3"
|
"lint-staged": "^13.0.3"
|
||||||
|
},
|
||||||
|
"devDependencies": {
|
||||||
|
"eslint": "^8.28.0",
|
||||||
|
"eslint-config-prettier": "^8.5.0",
|
||||||
|
"eslint-plugin-prettier": "^4.2.1",
|
||||||
|
"prettier": "^2.7.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -22,6 +22,6 @@ module.exports = {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
return sails.helpers.cards.getMany(criteria);
|
return sails.helpers.cards.getMany(criteria, 'position');
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|||||||
Generated
+1051
-1155
File diff suppressed because it is too large
Load Diff
+16
-30
@@ -13,24 +13,13 @@
|
|||||||
"test": "mocha test/lifecycle.test.js test/integration/**/*.test.js test/utils/**/*.test.js"
|
"test": "mocha test/lifecycle.test.js test/integration/**/*.test.js test/utils/**/*.test.js"
|
||||||
},
|
},
|
||||||
"eslintConfig": {
|
"eslintConfig": {
|
||||||
"plugins": [
|
|
||||||
"prettier"
|
|
||||||
],
|
|
||||||
"extends": [
|
"extends": [
|
||||||
"airbnb-base",
|
"airbnb-base",
|
||||||
"plugin:prettier/recommended"
|
"../package.json"
|
||||||
],
|
],
|
||||||
"rules": {
|
"rules": {
|
||||||
"no-throw-literal": "off",
|
"no-throw-literal": "off",
|
||||||
"no-undef": "off",
|
"no-undef": "off"
|
||||||
"prettier/prettier": [
|
|
||||||
"error",
|
|
||||||
{
|
|
||||||
"printWidth": 100,
|
|
||||||
"singleQuote": true,
|
|
||||||
"trailingComma": "all"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
},
|
||||||
"globals": {
|
"globals": {
|
||||||
"_": true,
|
"_": true,
|
||||||
@@ -38,38 +27,35 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"bcrypt": "^5.0.1",
|
"bcrypt": "^5.1.0",
|
||||||
"dotenv": "^16.0.1",
|
"dotenv": "^16.0.3",
|
||||||
"dotenv-cli": "^6.0.0",
|
"dotenv-cli": "^6.0.0",
|
||||||
"filenamify": "^4.3.0",
|
"filenamify": "^4.3.0",
|
||||||
"jsonwebtoken": "^8.5.1",
|
"jsonwebtoken": "^8.5.1",
|
||||||
"knex": "^2.2.0",
|
"knex": "^2.3.0",
|
||||||
"lodash": "^4.17.21",
|
"lodash": "^4.17.21",
|
||||||
"moment": "^2.29.4",
|
"moment": "^2.29.4",
|
||||||
"move-file": "^2.1.0",
|
"move-file": "^2.1.0",
|
||||||
"rimraf": "^3.0.2",
|
"rimraf": "^3.0.2",
|
||||||
"sails": "^1.5.2",
|
"sails": "^1.5.3",
|
||||||
"sails-hook-orm": "^4.0.1",
|
"sails-hook-orm": "^4.0.2",
|
||||||
"sails-hook-sockets": "^2.0.1",
|
"sails-hook-sockets": "^2.0.3",
|
||||||
"sails-postgresql-redacted": "^1.0.2-9",
|
"sails-postgresql-redacted": "^1.0.2-9",
|
||||||
"sharp": "^0.30.7",
|
"sharp": "^0.31.2",
|
||||||
"stream-to-array": "^2.3.0",
|
"stream-to-array": "^2.3.0",
|
||||||
"uuid": "^8.3.2",
|
"uuid": "^9.0.0",
|
||||||
"validator": "^13.7.0",
|
"validator": "^13.7.0",
|
||||||
"winston": "^3.8.1",
|
"winston": "^3.8.2",
|
||||||
"zxcvbn": "^4.4.2"
|
"zxcvbn": "^4.4.2"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"chai": "^4.3.6",
|
"chai": "^4.3.7",
|
||||||
"eslint": "^8.20.0",
|
"eslint": "^8.28.0",
|
||||||
"eslint-config-airbnb-base": "^15.0.0",
|
"eslint-config-airbnb-base": "^15.0.0",
|
||||||
"eslint-config-prettier": "^8.5.0",
|
|
||||||
"eslint-plugin-import": "^2.26.0",
|
"eslint-plugin-import": "^2.26.0",
|
||||||
"eslint-plugin-prettier": "^4.2.1",
|
"mocha": "^10.1.0",
|
||||||
"mocha": "^9.2.2",
|
"nodemon": "^2.0.20",
|
||||||
"nodemon": "^2.0.19",
|
"supertest": "^6.3.1"
|
||||||
"prettier": "2.7.1",
|
|
||||||
"supertest": "^6.2.4"
|
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": "^12.10"
|
"node": "^12.10"
|
||||||
|
|||||||
Reference in New Issue
Block a user