1
0
mirror of https://github.com/lexogrine/dota2-react-hud.git synced 2025-12-10 01:52:49 +01:00

fixed error

This commit is contained in:
Hubert Walczak 2023-05-16 17:42:02 +02:00
parent 44eb8896c5
commit e422cd3fc9
No known key found for this signature in database
GPG Key ID: 17BB1C9355357860
4 changed files with 12 additions and 2606 deletions

13
package-lock.json generated
View File

@ -15,7 +15,7 @@
"@types/react": "18.0.35",
"@types/react-dom": "18.0.11",
"buffer": "^6.0.3",
"dotagsi": "^1.1.3",
"dotagsi": "github:Macronic/dota2gsi",
"query-string": "^6.12.1",
"react": "^18.2.0",
"react-dom": "^18.2.0",
@ -6795,9 +6795,9 @@
}
},
"node_modules/dotagsi": {
"version": "1.1.3",
"resolved": "https://registry.npmjs.org/dotagsi/-/dotagsi-1.1.3.tgz",
"integrity": "sha512-6xVd4f9umWEvth2Jf4XThd4AuF2AIyrt9q+iYaC8I0sKFGwko3drUdM1HOzOb/3YSjPPNF5ni07eP4ZC589l9Q=="
"version": "1.3.2",
"resolved": "git+ssh://git@github.com/Macronic/dota2gsi.git#df17e53279c67c54b02e583c1ba57eb185197d83",
"license": "MIT"
},
"node_modules/dotenv": {
"version": "10.0.0",
@ -23037,9 +23037,8 @@
}
},
"dotagsi": {
"version": "1.1.3",
"resolved": "https://registry.npmjs.org/dotagsi/-/dotagsi-1.1.3.tgz",
"integrity": "sha512-6xVd4f9umWEvth2Jf4XThd4AuF2AIyrt9q+iYaC8I0sKFGwko3drUdM1HOzOb/3YSjPPNF5ni07eP4ZC589l9Q=="
"version": "git+ssh://git@github.com/Macronic/dota2gsi.git#df17e53279c67c54b02e583c1ba57eb185197d83",
"from": "dotagsi@github:Macronic/dota2gsi"
},
"dotenv": {
"version": "10.0.0",

View File

@ -7,7 +7,7 @@ import io from "socket.io-client";
import { loadAvatarURL } from './api/avatars';
import { Match } from './api/interfaces';
import "./HUD/GameHUD/gamehud.scss";
import { exampleData } from './example';
//import { exampleData } from './example';
import { initiateConnection } from './HUD/Camera/mediaStream';
import { GameSummary } from './summaries';
@ -15,7 +15,7 @@ const DOTA2 = new DOTA2GSI();
export const socket = io(isDev ? `localhost:${port}` : '/');
const isTest = false;
/*
if (isTest) {
setTimeout(() => {
DOTA2.digest(exampleData);
@ -23,7 +23,7 @@ if (isTest) {
setTimeout(() => {
DOTA2.digest(exampleData)
}, 2000)
}
}*/
let i = 0;
socket.on('update', (data: any) => {
if (!i) console.log(data);

File diff suppressed because it is too large Load Diff

View File

@ -3926,10 +3926,9 @@ dot-case@^3.0.4:
no-case "^3.0.4"
tslib "^2.0.3"
dotagsi@^1.1.3:
version "1.1.3"
resolved "https://registry.npmjs.org/dotagsi/-/dotagsi-1.1.3.tgz"
integrity sha512-6xVd4f9umWEvth2Jf4XThd4AuF2AIyrt9q+iYaC8I0sKFGwko3drUdM1HOzOb/3YSjPPNF5ni07eP4ZC589l9Q==
"dotagsi@github:Macronic/dota2gsi":
version "1.3.2"
resolved "git+ssh://git@github.com/Macronic/dota2gsi.git#df17e53279c67c54b02e583c1ba57eb185197d83"
dotenv-expand@^5.1.0:
version "5.1.0"