Преглед изворни кода

A few housekeeping updates for the opencost UI:

- Removes a redundant preset from .babelrc (this preset is included with
  Parcel by default).
- Updates the README.md file to require newer versions of NodeJS and
  NPM.
- Adds a .nvmrc file to pin a working version.
- Updates package-lock.json to v2, to be compatible with the newer
  version of NPM.
- Makes a minor upgrade to the Recharts version.

Signed-off-by: Neal Ormsbee <neal.ormsbee@gmail.com>
Neal Ormsbee пре 3 година
родитељ
комит
0aa63fb1f2
5 измењених фајлова са 8311 додато и 6 уклоњено
  1. 1 2
      ui/.babelrc
  2. 1 0
      ui/.nvmrc
  3. 2 2
      ui/README.md
  4. 8306 1
      ui/package-lock.json
  5. 1 1
      ui/package.json

+ 1 - 2
ui/.babelrc

@@ -1,4 +1,3 @@
 {
-  "plugins": ["@babel/plugin-transform-runtime", "@babel/plugin-proposal-class-properties"],
-  "presets": ["@babel/preset-react"]
+  "plugins": ["@babel/plugin-transform-runtime", "@babel/plugin-proposal-class-properties"]
 }

+ 1 - 0
ui/.nvmrc

@@ -0,0 +1 @@
+18.3.0

+ 2 - 2
ui/README.md

@@ -5,8 +5,8 @@ To manually run the OpenCost UI, follow the steps below.
 
 ## Requirements
 
-* `nodejs >= 12.0.0`
-* `npm >= 7.0.0`
+* `nodejs >= 18.3.0`
+* `npm >= 8.11.0`
 
 ## Installation & Running
 To run the UI, open a terminal to the `opencost/ui/` directory (where this README is located) and run

Разлика између датотеке није приказан због своје велике величине
+ 8306 - 1
ui/package-lock.json


+ 1 - 1
ui/package.json

@@ -26,7 +26,7 @@
     "react": "^17.0.1",
     "react-dom": "^17.0.1",
     "react-router-dom": "^5.2.0",
-    "recharts": "^2.0.8"
+    "recharts": "^2.2.0"
   },
   "devDependencies": {
     "@babel/core": "^7.13.10",

Неке датотеке нису приказане због велике количине промена