Skip to content

Commit 7dac72b

Browse files
committed
Update components to the latest version.
1 parent efd24f8 commit 7dac72b

38 files changed

+12534
-16213
lines changed

.eslintrc.json

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,16 @@
44
"node": true,
55
"browser": true
66
},
7-
"parser": "babel-eslint",
7+
"parser": "@babel/eslint-parser",
88
"extends": "eslint:recommended",
99
"parserOptions": {
10+
"requireConfigFile": false,
11+
"babelOptions": {
12+
"presets": ["@babel/preset-react"],
13+
"plugins": [
14+
[ "@babel/plugin-proposal-decorators", { "legacy": true } ]
15+
]
16+
},
1017
"ecmaFeatures": {
1118
"experimentalObjectRestSpread": true,
1219
"jsx": true

package-lock.json

Lines changed: 0 additions & 16094 deletions
This file was deleted.

package.json

Lines changed: 73 additions & 68 deletions
Original file line numberDiff line numberDiff line change
@@ -34,78 +34,83 @@
3434
"README.md",
3535
"LICENSE"
3636
],
37+
"resolutions": {
38+
"chokidar": "^3.5.1"
39+
},
3740
"dependencies": {
38-
"@babel/runtime": "7.13.10",
39-
"bcryptjs": "2.3.0",
40-
"body-parser": "1.19.0",
41-
"codemirror-graphql": "github:timsuchanek/codemirror-graphql#details-fix",
42-
"commander": "6.2.1",
43-
"connect-flash": "0.1.1",
44-
"cookie-session": "2.0.0-beta.3",
45-
"copy-to-clipboard": "3.2.0",
46-
"create-react-class": "15.7.0",
47-
"csurf": "1.11.0",
48-
"express": "4.17.1",
49-
"graphql": "14.6.0",
50-
"graphql-playground-react": "1.7.20",
51-
"history": "4.10.1",
52-
"immutable": "4.0.0-rc.9",
53-
"immutable-devtools": "0.1.5",
54-
"js-beautify": "1.11.0",
55-
"json-file-plus": "3.2.0",
56-
"package-json": "6.5.0",
57-
"parse": "2.19.0",
58-
"passport": "0.4.1",
59-
"passport-local": "1.0.0",
60-
"prismjs": "1.23.0",
61-
"prop-types": "15.7.2",
62-
"query-string": "6.14.1",
63-
"react": "16.14.0",
64-
"react-ace": "9.3.0",
65-
"react-dnd": "10.0.2",
66-
"react-dnd-html5-backend": "10.0.2",
67-
"react-dom": "16.14.0",
68-
"react-helmet": "6.0.0",
69-
"react-json-view": "1.21.3",
70-
"react-redux": "5.1.2",
71-
"react-router": "5.1.2",
72-
"react-router-dom": "5.1.2",
73-
"regenerator-runtime": "0.13.5",
74-
"semver": "7.3.4"
41+
"@babel/runtime": "^7.13.10",
42+
"bcryptjs": "^2.4.3",
43+
"body-parser": "^1.19.0",
44+
"codemirror-graphql": "^1.0.0",
45+
"commander": "^7.1.0",
46+
"connect-flash": "^0.1.1",
47+
"cookie-session": "^2.0.0-rc.1",
48+
"create-react-class": "^15.7.0",
49+
"csurf": "^1.11.0",
50+
"express": "^4.17.1",
51+
"graphql": "^15.5.0",
52+
"graphql-playground-react": "^1.7.27",
53+
"immutable": "^4.0.0-rc.12",
54+
"immutable-devtools": "^0.1.5",
55+
"js-beautify": "^1.13.5",
56+
"json-file-plus": "^3.3.1",
57+
"package-json": "^6.5.0",
58+
"parse": "^2.19.0",
59+
"passport": "^0.4.1",
60+
"passport-local": "^1.0.0",
61+
"prismjs": "^1.23.0",
62+
"prop-types": "^15.7.2",
63+
"query-string": "^7.0.0",
64+
"react": "^16.14.0",
65+
"react-ace": "^9.3.0",
66+
"react-copy-to-clipboard": "^5.0.3",
67+
"react-dnd": "^14.0.1",
68+
"react-dnd-html5-backend": "^14.0.0",
69+
"react-dom": "^16.14.0",
70+
"react-helmet": "^6.1.0",
71+
"react-input-autosize": "^3.0.0",
72+
"react-json-view": "^1.21.3",
73+
"react-modal": "^3.12.1",
74+
"react-redux": "^7.2.2",
75+
"react-router": "^5.2.0",
76+
"react-router-dom": "^5.2.0",
77+
"react-sortable-hoc": "^2.0.0",
78+
"regenerator-runtime": "^0.13.7",
79+
"semver": "^7.3.4",
80+
"styled-components": "^5.0.0"
7581
},
7682
"devDependencies": {
77-
"@babel/core": "7.8.7",
78-
"@babel/plugin-proposal-decorators": "7.8.3",
79-
"@babel/plugin-transform-regenerator": "7.8.7",
80-
"@babel/plugin-transform-runtime": "7.8.3",
81-
"@babel/preset-env": "7.9.0",
82-
"@babel/preset-react": "7.8.3",
83-
"babel-eslint": "10.1.0",
84-
"babel-loader": "8.1.0",
85-
"babel-plugin-transform-object-rest-spread": "6.26.0",
86-
"core-js": "3.6.5",
87-
"cross-env": "7.0.2",
88-
"css-loader": "3.5.2",
89-
"eslint": "6.8.0",
90-
"eslint-plugin-jest": "23.8.2",
91-
"eslint-plugin-react": "7.19.0",
92-
"file-loader": "6.0.0",
93-
"http-server": "0.12.0",
94-
"jest": "24.8.0",
95-
"marked": "0.8.2",
96-
"node-sass": "4.13.1",
97-
"null-loader": "3.0.0",
83+
"@babel/core": "^7.13.10",
84+
"@babel/eslint-parser": "^7.13.10",
85+
"@babel/plugin-proposal-decorators": "^7.13.5",
86+
"@babel/plugin-transform-regenerator": "^7.12.13",
87+
"@babel/plugin-transform-runtime": "7.13.10",
88+
"@babel/preset-env": "^7.13.10",
89+
"@babel/preset-react": "^7.12.13",
90+
"babel-loader": "^8.2.2",
91+
"babel-plugin-transform-object-rest-spread": "^6.26.0",
92+
"core-js": "^3.9.1",
93+
"cross-env": "^7.0.3",
94+
"css-loader": "^5.1.3",
95+
"eslint": "^7.22.0",
96+
"eslint-plugin-jest": "^24.3.1",
97+
"eslint-plugin-react": "^7.22.0",
98+
"file-loader": "^6.2.0",
99+
"http-server": "^0.12.3",
100+
"jest": "^26.6.3",
101+
"marked": "^2.0.1",
102+
"node-sass": "^5.0.0",
103+
"null-loader": "^4.0.1",
98104
"parse-server": "github:parseplatform/parse-server#master",
99-
"path-to-regexp": "3.2.0",
100-
"puppeteer": "3.0.0",
101-
"react-test-renderer": "16.13.1",
102-
"request": "2.88.2",
103-
"request-promise": "4.2.5",
104-
"sass-loader": "8.0.0",
105-
"style-loader": "1.1.2",
106-
"svg-prep": "1.0.4",
107-
"webpack": "4.42.1",
108-
"webpack-cli": "3.3.10"
105+
"puppeteer": "^8.0.0",
106+
"react-test-renderer": "^16.14.0",
107+
"request": "^2.88.2",
108+
"request-promise": "^4.2.6",
109+
"sass-loader": "^10.0.5",
110+
"style-loader": "^2.0.0",
111+
"svg-prep": "^1.0.4",
112+
"webpack": "^4.42.1",
113+
"webpack-cli": "^3.3.10"
109114
},
110115
"scripts": {
111116
"dev": "node ./Parse-Dashboard/index.js & webpack --config webpack/build.config.js --devtool eval-source-map --progress --watch",

src/components/BrowserCell/BrowserCell.react.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ import Parse from 'parse';
1313
import Pill from 'components/Pill/Pill.react';
1414
import React, { Component } from 'react';
1515
import styles from 'components/BrowserCell/BrowserCell.scss';
16-
import { unselectable } from 'stylesheets/base.scss';
16+
import baseStyles from 'stylesheets/base.scss';
17+
const { unselectable } = baseStyles;
1718

1819
export default class BrowserCell extends Component {
1920
constructor() {

src/components/Button/Button.react.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
* This source code is licensed under the license found in the LICENSE file in
66
* the root directory of this source tree.
77
*/
8-
import { unselectable } from 'stylesheets/base.scss';
8+
import baseStyles from 'stylesheets/base.scss';
9+
const { unselectable } = baseStyles;
910
import PropTypes from 'lib/PropTypes';
1011
import React from 'react';
1112
import styles from 'components/Button/Button.scss';

src/components/CascadingView/CascadingView.react.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
* This source code is licensed under the license found in the LICENSE file in
66
* the root directory of this source tree.
77
*/
8-
import { center } from 'stylesheets/base.scss'
8+
import baseStyles from 'stylesheets/base.scss';
9+
const { center } = baseStyles;
910
import PropTypes from 'lib/PropTypes';
1011
import React from 'react';
1112
import styles from 'components/CascadingView/CascadingView.scss';

src/components/ColumnsConfiguration/ColumnConfigurationItem.react.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ const DND_TYPE = 'ColumnConfigurationItem';
88

99
export default ({ name, handleColumnDragDrop, index, onChangeVisible, visible }) => {
1010
const [ { isDragging}, drag ] = useDrag({
11-
item: { type: DND_TYPE, index },
11+
type: DND_TYPE,
12+
item: { index },
1213
collect: monitor => ({ isDragging: !!monitor.isDragging() })
1314
});
1415

src/components/ColumnsConfiguration/ColumnsConfiguration.react.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React from 'react';
22
import { DndProvider } from 'react-dnd'
3-
import HTML5Backend from 'react-dnd-html5-backend'
3+
import { HTML5Backend } from 'react-dnd-html5-backend'
44
import ReactDOM from 'react-dom';
55

66
import Button from 'components/Button/Button.react';

src/components/DataBrowserHeader/DataBrowserHeader.example.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* the root directory of this source tree.
77
*/
88
import DataBrowserHeader from 'components/DataBrowserHeader/DataBrowserHeader.react';
9-
import HTML5Backend from 'react-dnd-html5-backend';
9+
import { HTML5Backend } from 'react-dnd-html5-backend';
1010
import React from 'react';
1111
import { DndProvider } from 'react-dnd'
1212

src/components/DataBrowserHeader/DataBrowserHeader.react.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
import PropTypes from 'lib/PropTypes';
99
import React from 'react';
1010
import styles from 'components/DataBrowserHeader/DataBrowserHeader.scss';
11-
import { unselectable } from 'stylesheets/base.scss';
11+
import baseStyles from 'stylesheets/base.scss';
12+
const { unselectable } = baseStyles;
1213
import { DragSource, DropTarget } from 'react-dnd';
1314

1415
const Types = {

src/components/DataBrowserHeaderBar/DataBrowserHeaderBar.react.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*/
88
import DataBrowserHeader from 'components/DataBrowserHeader/DataBrowserHeader.react';
99
import DragHandle from 'components/DragHandle/DragHandle.react';
10-
import HTML5Backend from 'react-dnd-html5-backend';
10+
import { HTML5Backend } from 'react-dnd-html5-backend';
1111
import React from 'react';
1212
import styles from 'components/DataBrowserHeaderBar/DataBrowserHeaderBar.scss';
1313
import { DndProvider } from 'react-dnd'
@@ -65,7 +65,7 @@ export default class DataBrowserHeaderBar extends React.Component {
6565
if (headers.length % 2) {
6666
finalStyle.background = 'rgba(224,224,234,0.10)';
6767
}
68-
68+
6969
elements.push(
7070
readonly || preventSchemaEdits ? null : (
7171
<div key='add' className={styles.addColumn} style={finalStyle}>

src/components/DragHandle/DragHandle.example.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*/
88
import DataBrowserHeader from 'components/DataBrowserHeader/DataBrowserHeader.react';
99
import DragHandle from 'components/DragHandle/DragHandle.react';
10-
import HTML5Backend from 'react-dnd-html5-backend';
10+
import { HTML5Backend } from 'react-dnd-html5-backend';
1111
import React from 'react';
1212
import { DndProvider } from 'react-dnd'
1313

src/components/EmptyState/EmptyState.react.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ import PropTypes from 'lib/PropTypes';
1111
import React from 'react';
1212
import styles from 'components/EmptyState/EmptyState.scss';
1313
import stylesButton from 'components/Button/Button.scss';
14-
import { center } from 'stylesheets/base.scss';
14+
import baseStyles from 'stylesheets/base.scss';
15+
const { center } = baseStyles;
1516

1617
let ctaButton = (cta, action) => {
1718
if (cta) {

src/components/ExplorerActiveChartButton/ExplorerActiveChartButton.react.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@ import PropTypes from 'lib/PropTypes';
1414
import React from 'react';
1515
import ReactDOM from 'react-dom';
1616
import styles from 'components/ExplorerActiveChartButton/ExplorerActiveChartButton.scss';
17-
import { verticalCenter } from 'stylesheets/base.scss';
17+
import baseStyles from 'stylesheets/base.scss';
18+
const { verticalCenter } = baseStyles;
1819

1920
export default class ExplorerActiveChartButton extends React.Component {
2021
constructor() {

src/components/Label/Label.react.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
* This source code is licensed under the license found in the LICENSE file in
66
* the root directory of this source tree.
77
*/
8-
import { centered } from 'components/Field/Field.scss';
8+
import fieldStyles from 'components/Field/Field.scss';
9+
const { centered } = fieldStyles;
910
import PropTypes from 'lib/PropTypes';
1011
import React from 'react';
1112
import styles from 'components/Label/Label.scss';

src/components/Loader/Loader.example.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
* This source code is licensed under the license found in the LICENSE file in
66
* the root directory of this source tree.
77
*/
8-
import { center } from 'stylesheets/base.scss';
8+
import baseStyles from 'stylesheets/base.scss';
9+
const { center } = baseStyles;
910
import Loader from 'components/Loader/Loader.react';
1011
import React from 'react';
1112

src/components/LoaderContainer/LoaderContainer.react.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
* This source code is licensed under the license found in the LICENSE file in
66
* the root directory of this source tree.
77
*/
8-
import { center } from 'stylesheets/base.scss';
8+
import baseStyles from 'stylesheets/base.scss';
9+
const { center } = baseStyles;
910
import Loader from 'components/Loader/Loader.react';
1011
import PropTypes from 'lib/PropTypes';
1112
import React from 'react';

src/components/LoginForm/LoginForm.react.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ import CSRFInput from 'components/CSRFInput/CSRFInput.react';
99
import Icon from 'components/Icon/Icon.react';
1010
import React from 'react';
1111
import styles from 'components/LoginForm/LoginForm.scss';
12-
import { verticalCenter } from 'stylesheets/base.scss';
12+
import baseStyles from 'stylesheets/base.scss';
13+
const { verticalCenter } = baseStyles;
1314

1415
// Class-style component, because we need refs
1516
export default class LoginForm extends React.Component {

src/components/PermissionsDialog/PermissionsDialog.react.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,8 @@
55
* This source code is licensed under the license found in the LICENSE file in
66
* the root directory of this source tree.
77
*/
8-
import {
9-
unselectable,
10-
verticalCenter } from 'stylesheets/base.scss';
8+
import baseStyles from 'stylesheets/base.scss';
9+
const { unselectable, verticalCenter } = baseStyles;
1110
import Button from 'components/Button/Button.react';
1211
import Checkbox from 'components/Checkbox/Checkbox.react';
1312
import Icon from 'components/Icon/Icon.react';

src/components/ProtectedFieldsDialog/ProtectedFieldsDialog.react.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,8 @@ import styles from 'components/ProtectedFieldsDialog/ProtectedFields
1919
import MultiSelect from 'components/MultiSelect/MultiSelect.react';
2020
import MultiSelectOption from 'components/MultiSelect/MultiSelectOption.react';
2121
import TrackVisibility from 'components/TrackVisibility/TrackVisibility.react';
22-
import {
23-
unselectable,
24-
verticalCenter } from 'stylesheets/base.scss';
22+
import baseStyles from 'stylesheets/base.scss';
23+
const { unselectable, verticalCenter } = baseStyles;
2524

2625
let origin = new Position(0, 0);
2726
const intersectionMargin = '10px 0px 0px 20px';

src/components/Range/Range.react.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
* This source code is licensed under the license found in the LICENSE file in
66
* the root directory of this source tree.
77
*/
8-
import { input } from 'components/Field/Field.scss';
8+
import fieldStyles from 'components/Field/Field.scss';
9+
const { input } = fieldStyles;
910
import PropTypes from 'lib/PropTypes';
1011
import React from 'react';
1112
import styles from 'components/Range/Range.scss';

src/components/SaveButton/SaveButton.react.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ import Button from 'components/Button/Button.react';
99
import keyMirror from 'lib/keyMirror';
1010
import PropTypes from 'lib/PropTypes';
1111
import React from 'react';
12-
import { shake } from 'components/SaveButton/SaveButton.scss';
12+
import saveButtonStyles from 'components/SaveButton/SaveButton.scss';
13+
const { shake } = saveButtonStyles;
1314

1415
let SaveButton = ({
1516
state = SaveButton.States.WAITING,

src/components/Sidebar/AppsMenu.react.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ import html from 'lib/htmlString';
1111
import { Link } from 'react-router-dom';
1212
import React from 'react';
1313
import styles from 'components/Sidebar/Sidebar.scss';
14-
import { unselectable } from 'stylesheets/base.scss';
14+
import baseStyles from 'stylesheets/base.scss';
15+
const { unselectable } = baseStyles;
1516

1617
let AppsMenu = ({ apps, current, height, onSelect }) => (
1718
<div style={{ height }} className={[styles.appsMenu, unselectable].join(' ')}>

src/components/Toggle/Toggle.react.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,13 @@
55
* This source code is licensed under the license found in the LICENSE file in
66
* the root directory of this source tree.
77
*/
8-
import { input } from 'components/Field/Field.scss';
8+
import fieldStyles from 'components/Field/Field.scss';
9+
const { input } = fieldStyles;
910
import PropTypes from 'lib/PropTypes';
1011
import React from 'react';
1112
import styles from 'components/Toggle/Toggle.scss';
12-
import { unselectable } from 'stylesheets/base.scss';
13+
import baseStyles from 'stylesheets/base.scss';
14+
const { unselectable } = baseStyles;
1315

1416
export default class Toggle extends React.Component {
1517
toLeft() {

0 commit comments

Comments
 (0)