mirror of
https://github.com/emsesp/EMS-ESP32.git
synced 2025-12-06 15:59:52 +03:00
replace msgpack with msgpackr - https://github.com/emsesp/EMS-ESP32/issues/1112
This commit is contained in:
@@ -7,5 +7,6 @@ dist/
|
||||
.eslintrc*
|
||||
env.d.ts
|
||||
progmem-generator.js
|
||||
unpack.ts
|
||||
vite.config.ts
|
||||
package.json
|
||||
@@ -21,7 +21,6 @@
|
||||
"dependencies": {
|
||||
"@emotion/react": "^11.11.0",
|
||||
"@emotion/styled": "^11.11.0",
|
||||
"@msgpack/msgpack": "^3.0.0-beta2",
|
||||
"@mui/icons-material": "^5.11.16",
|
||||
"@mui/material": "^5.12.3",
|
||||
"@table-library/react-table-library": "4.1.4",
|
||||
@@ -39,7 +38,6 @@
|
||||
"react-dom": "latest",
|
||||
"react-dropzone": "^14.2.3",
|
||||
"react-icons": "^4.8.0",
|
||||
"react-number-format": "^5.1.4",
|
||||
"react-router-dom": "^6.11.1",
|
||||
"react-toastify": "^9.1.2",
|
||||
"sockette": "^2.0.6",
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
import { decode } from '@msgpack/msgpack';
|
||||
import axios from 'axios';
|
||||
import { unpack } from './unpack';
|
||||
|
||||
import type { AxiosPromise, CancelToken, AxiosProgressEvent } from 'axios';
|
||||
|
||||
export const WS_BASE_URL = '/ws/';
|
||||
@@ -72,7 +73,8 @@ export const AXIOS_BIN = axios.create({
|
||||
return JSON.stringify(data);
|
||||
}
|
||||
],
|
||||
transformResponse: [(data) => decode(data)]
|
||||
// transformResponse: [(data) => decode(data)]
|
||||
transformResponse: [(data) => unpack(data)] // new using msgpackr
|
||||
});
|
||||
|
||||
export interface FileUploadConfig {
|
||||
|
||||
1134
interface/src/api/unpack.ts
Normal file
1134
interface/src/api/unpack.ts
Normal file
File diff suppressed because it is too large
Load Diff
@@ -764,13 +764,6 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@msgpack/msgpack@npm:^3.0.0-beta2":
|
||||
version: 3.0.0-beta2
|
||||
resolution: "@msgpack/msgpack@npm:3.0.0-beta2"
|
||||
checksum: f4dc4c210bb722f0f7407214334dda728263cce8eb0d3f9af1a40a48e13ce175b599de35a757dce5f1d92a74d3ce4d0242feb67516f308a626058d0f98f01c70
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"@mui/base@npm:5.0.0-alpha.128":
|
||||
version: 5.0.0-alpha.128
|
||||
resolution: "@mui/base@npm:5.0.0-alpha.128"
|
||||
@@ -1581,7 +1574,6 @@ __metadata:
|
||||
dependencies:
|
||||
"@emotion/react": ^11.11.0
|
||||
"@emotion/styled": ^11.11.0
|
||||
"@msgpack/msgpack": ^3.0.0-beta2
|
||||
"@mui/icons-material": ^5.11.16
|
||||
"@mui/material": ^5.12.3
|
||||
"@table-library/react-table-library": 4.1.4
|
||||
@@ -1616,7 +1608,6 @@ __metadata:
|
||||
react-dom: latest
|
||||
react-dropzone: ^14.2.3
|
||||
react-icons: ^4.8.0
|
||||
react-number-format: ^5.1.4
|
||||
react-router-dom: ^6.11.1
|
||||
react-toastify: ^9.1.2
|
||||
rollup-plugin-visualizer: ^5.9.0
|
||||
@@ -4764,7 +4755,7 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"prop-types@npm:^15.6.2, prop-types@npm:^15.7.2, prop-types@npm:^15.8.1":
|
||||
"prop-types@npm:^15.6.2, prop-types@npm:^15.8.1":
|
||||
version: 15.8.1
|
||||
resolution: "prop-types@npm:15.8.1"
|
||||
dependencies:
|
||||
@@ -4851,18 +4842,6 @@ __metadata:
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"react-number-format@npm:^5.1.4":
|
||||
version: 5.1.4
|
||||
resolution: "react-number-format@npm:5.1.4"
|
||||
dependencies:
|
||||
prop-types: ^15.7.2
|
||||
peerDependencies:
|
||||
react: ^0.14 || ^15.0.0 || ^16.0.0 || ^17.0.0 || ^18.0.0
|
||||
react-dom: ^0.14 || ^15.0.0 || ^16.0.0 || ^17.0.0 || ^18.0.0
|
||||
checksum: 121bae7eda40e3b81fa47f29974d6af2b1809c29ee287a9722497d139ba6ffdf3dab006c317961e31c7635991a3a20277b13f8d7df7ce53e229c5243b0507350
|
||||
languageName: node
|
||||
linkType: hard
|
||||
|
||||
"react-router-dom@npm:^6.11.1":
|
||||
version: 6.11.1
|
||||
resolution: "react-router-dom@npm:6.11.1"
|
||||
|
||||
Reference in New Issue
Block a user