@signalk/server-admin-ui 2.7.0 → 2.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/.eslintrc.js ADDED
@@ -0,0 +1,35 @@
1
+ module.exports = {
2
+ "env": {
3
+ "browser": true,
4
+ "es2021": true
5
+ },
6
+ "extends": [
7
+ "eslint:recommended",
8
+ "plugin:react/recommended"
9
+ ],
10
+ "overrides": [
11
+ {
12
+ "env": {
13
+ "node": true
14
+ },
15
+ "files": [
16
+ ".eslintrc.{js,cjs}"
17
+ ],
18
+ "parserOptions": {
19
+ "sourceType": "script"
20
+ }
21
+ }
22
+ ],
23
+ "parserOptions": {
24
+ "ecmaVersion": "latest",
25
+ "sourceType": "module"
26
+ },
27
+ "plugins": [
28
+ "react"
29
+ ],
30
+ "rules": {
31
+ "react/prop-types": "off",
32
+ "react/no-string-refs": "off",
33
+ "react/no-direct-mutation-state": "off"
34
+ }
35
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@signalk/server-admin-ui",
3
- "version": "2.7.0",
3
+ "version": "2.8.0",
4
4
  "description": "Signal K server admin webapp",
5
5
  "author": "Scott Bender, Teppo Kurki",
6
6
  "contributors": [
@@ -27,6 +27,8 @@
27
27
  "buffer": "^6.0.3",
28
28
  "copy-webpack-plugin": "^11.0.0",
29
29
  "css-loader": "^5.0.0",
30
+ "eslint": "^8.57.0",
31
+ "eslint-plugin-react": "^7.34.1",
30
32
  "file-loader": "^6.1.1",
31
33
  "font-awesome": "^4.7.0",
32
34
  "html-webpack-plugin": "^5.0.0-alpha.6",
@@ -34,9 +36,11 @@
34
36
  "lodash.get": "^4.4.2",
35
37
  "lodash.remove": "^4.7.0",
36
38
  "lodash.set": "^4.3.2",
39
+ "lodash.uniq": "^4.5.0",
37
40
  "moment": "^2.29.1",
38
41
  "node-sass": "^8.0.0",
39
42
  "prettier": "^2.3.2",
43
+ "react": "^16.13.1",
40
44
  "react-copy-to-clipboard": "^5.0.3",
41
45
  "react-dom": "^16.13.1",
42
46
  "react-html-parser": "^2.0.2",
@@ -45,24 +49,24 @@
45
49
  "react-redux": "^5.1.2",
46
50
  "react-router-dom": "^4.3.1",
47
51
  "react-select": "^3.1.0",
48
- "react": "^16.13.1",
49
52
  "reactstrap": "^5.0.0",
50
53
  "reconnecting-websocket": "^4.4.0",
51
- "redux-thunk": "2.3.0",
52
54
  "redux": "^3.7.2",
55
+ "redux-thunk": "2.3.0",
53
56
  "sass-loader": "^13.2.0",
54
57
  "simple-line-icons": "^2.5.5",
55
58
  "style-loader": "^2.0.0",
59
+ "webpack": "^5.0.0",
56
60
  "webpack-bundle-analyzer": "^3.9.0",
57
- "webpack-cli": "^4.2.0",
58
- "webpack": "^5.0.0"
61
+ "webpack-cli": "^4.2.0"
59
62
  },
60
63
  "scripts": {
61
64
  "prepublishOnly": "npm run clean && npm run build",
62
65
  "watch": "webpack --watch --mode development",
63
66
  "build": "webpack --mode=production",
64
67
  "format": "prettier --write src/",
65
- "ci": "prettier --check src/",
68
+ "eslint": "eslint src/",
69
+ "ci": "prettier --check src/ && npm run eslint",
66
70
  "clean": "rimraf ./public",
67
71
  "bundle-analyzer": "webpack-bundle-analyzer --port 4200 public/stats.json"
68
72
  }
package/public/188.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"188.js","mappings":"0LAEA,QAAeA,MAAQA,IAAMC,IAAAA,cAAA,WAAK,0B","sources":["webpack://@signalk/server-admin-ui/./src/views/Webapps/loadingerror.js"],"sourcesContent":["import React from 'react'\n\nexport default Error = () => <div>Error loading component</div>\n"],"names":["Error","React"],"sourceRoot":""}
1
+ {"version":3,"file":"188.js","mappings":"0LAGA,QAAeA,MAAQA,IAAMC,IAAAA,cAAA,WAAK,0B","sources":["webpack://@signalk/server-admin-ui/./src/views/Webapps/loadingerror.js"],"sourcesContent":["import React from 'react'\n\n// eslint-disable-next-line no-global-assign, react/display-name\nexport default Error = () => <div>Error loading component</div>\n"],"names":["Error","React"],"sourceRoot":""}