Skip to content

Commit

Permalink
fix(#226): upgrade nodejs dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
WangYihang committed Sep 15, 2024
1 parent 0f7c394 commit d01107a
Show file tree
Hide file tree
Showing 5 changed files with 8,389 additions and 12,430 deletions.
6 changes: 3 additions & 3 deletions web/frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"@testing-library/react": "^11.1.0",
"@testing-library/user-event": "^12.1.10",
"antd": "^4.15.2",
"axios": "^1.7.4",
"axios": "^1.7.7",
"browserslist": "^4.16.7",
"filesize": "^6.3.0",
"glob-parent": "^6.0.1",
Expand All @@ -18,14 +18,14 @@
"react": "^17.0.2",
"react-copy-to-clipboard": "^5.0.3",
"react-dom": "^17.0.2",
"react-scripts": "4.0.3",
"react-scripts": "5",
"web-vitals": "^1.0.1",
"webpack": "5.94.0",
"websocket": "^1.0.34"
},
"scripts": {
"start": "NODE_ENV=development react-scripts start",
"build": "react-scripts build",
"dev": "react-scripts dev",
"test": "react-scripts test",
"eject": "react-scripts eject"
},
Expand Down
4 changes: 1 addition & 3 deletions web/frontend/src/components/Platypus.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import BeforeAuth from "./BeforeAuth/index";
import Banner from "./Banner/Banner";
import SideBar from "./SideBar/SideBar";
import ClientsBody from "./Body/ClientsBody";
import axios from 'axios';

message.config({
duration: 3,
Expand All @@ -19,9 +20,6 @@ let apiUrl = [baseUrl, "/api"].join("");
let rbacUrl = [apiUrl, "/rbac"].join("");
let wsUrl = [window.location.protocol === "https:" ? "wss://" : "ws://", endPoint, "/notify"].join("");

const axios = require("axios");
axios.defaults.headers.post["Content-Type"] = "application/x-www-form-urlencoded";

export default class Platypus extends React.Component {
upgradeToTermite(clientHash, target) {
if (target !== "") {
Expand Down
Loading

0 comments on commit d01107a

Please sign in to comment.