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

View File

@ -7,7 +7,7 @@ import io from "socket.io-client";
import { loadAvatarURL } from './api/avatars'; import { loadAvatarURL } from './api/avatars';
import { Match } from './api/interfaces'; import { Match } from './api/interfaces';
import "./HUD/GameHUD/gamehud.scss"; import "./HUD/GameHUD/gamehud.scss";
import { exampleData } from './example'; //import { exampleData } from './example';
import { initiateConnection } from './HUD/Camera/mediaStream'; import { initiateConnection } from './HUD/Camera/mediaStream';
import { GameSummary } from './summaries'; import { GameSummary } from './summaries';
@ -15,7 +15,7 @@ const DOTA2 = new DOTA2GSI();
export const socket = io(isDev ? `localhost:${port}` : '/'); export const socket = io(isDev ? `localhost:${port}` : '/');
const isTest = false; const isTest = false;
/*
if (isTest) { if (isTest) {
setTimeout(() => { setTimeout(() => {
DOTA2.digest(exampleData); DOTA2.digest(exampleData);
@ -23,7 +23,7 @@ if (isTest) {
setTimeout(() => { setTimeout(() => {
DOTA2.digest(exampleData) DOTA2.digest(exampleData)
}, 2000) }, 2000)
} }*/
let i = 0; let i = 0;
socket.on('update', (data: any) => { socket.on('update', (data: any) => {
if (!i) console.log(data); 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" no-case "^3.0.4"
tslib "^2.0.3" tslib "^2.0.3"
dotagsi@^1.1.3: "dotagsi@github:Macronic/dota2gsi":
version "1.1.3" version "1.3.2"
resolved "https://registry.npmjs.org/dotagsi/-/dotagsi-1.1.3.tgz" resolved "git+ssh://git@github.com/Macronic/dota2gsi.git#df17e53279c67c54b02e583c1ba57eb185197d83"
integrity sha512-6xVd4f9umWEvth2Jf4XThd4AuF2AIyrt9q+iYaC8I0sKFGwko3drUdM1HOzOb/3YSjPPNF5ni07eP4ZC589l9Q==
dotenv-expand@^5.1.0: dotenv-expand@^5.1.0:
version "5.1.0" version "5.1.0"