mirror of
https://github.com/lexogrine/dota2-react-hud.git
synced 2025-12-10 01:52:49 +01:00
Updated gsi package
This commit is contained in:
parent
6c50432f1f
commit
16b83d0b54
17
package-lock.json
generated
17
package-lock.json
generated
@ -1,12 +1,12 @@
|
||||
{
|
||||
"name": "lexogrine_dota2_hud",
|
||||
"version": "1.3.0",
|
||||
"version": "1.3.1",
|
||||
"lockfileVersion": 2,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "lexogrine_dota2_hud",
|
||||
"version": "1.3.0",
|
||||
"version": "1.3.1",
|
||||
"license": "GPL-3.0",
|
||||
"dependencies": {
|
||||
"@craco/craco": "^5.7.0",
|
||||
@ -15,7 +15,7 @@
|
||||
"@types/react": "18.0.35",
|
||||
"@types/react-dom": "18.0.11",
|
||||
"buffer": "^6.0.3",
|
||||
"dotagsi": "github:Macronic/dota2gsi",
|
||||
"dotagsi": "^1.4.3",
|
||||
"query-string": "^6.12.1",
|
||||
"react": "^18.2.0",
|
||||
"react-dom": "^18.2.0",
|
||||
@ -6795,9 +6795,9 @@
|
||||
}
|
||||
},
|
||||
"node_modules/dotagsi": {
|
||||
"version": "1.3.2",
|
||||
"resolved": "git+ssh://git@github.com/Macronic/dota2gsi.git#df17e53279c67c54b02e583c1ba57eb185197d83",
|
||||
"license": "MIT"
|
||||
"version": "1.4.3",
|
||||
"resolved": "https://registry.npmjs.org/dotagsi/-/dotagsi-1.4.3.tgz",
|
||||
"integrity": "sha512-6yksHABW4InBVJ+IOgKXwN3UtTiRdPLsIHVJeswDco6rWUZxMWYXS4YZlpcdMbBX539rdmLiNzGq08ZW64lKqg=="
|
||||
},
|
||||
"node_modules/dotenv": {
|
||||
"version": "10.0.0",
|
||||
@ -23037,8 +23037,9 @@
|
||||
}
|
||||
},
|
||||
"dotagsi": {
|
||||
"version": "git+ssh://git@github.com/Macronic/dota2gsi.git#df17e53279c67c54b02e583c1ba57eb185197d83",
|
||||
"from": "dotagsi@github:Macronic/dota2gsi"
|
||||
"version": "1.4.3",
|
||||
"resolved": "https://registry.npmjs.org/dotagsi/-/dotagsi-1.4.3.tgz",
|
||||
"integrity": "sha512-6yksHABW4InBVJ+IOgKXwN3UtTiRdPLsIHVJeswDco6rWUZxMWYXS4YZlpcdMbBX539rdmLiNzGq08ZW64lKqg=="
|
||||
},
|
||||
"dotenv": {
|
||||
"version": "10.0.0",
|
||||
|
||||
@ -9,7 +9,7 @@
|
||||
"@types/node": "18.15.11",
|
||||
"@types/react": "18.0.35",
|
||||
"@types/react-dom": "18.0.11",
|
||||
"dotagsi": "github:Macronic/dota2gsi",
|
||||
"dotagsi": "^1.4.3",
|
||||
"buffer": "^6.0.3",
|
||||
"query-string": "^6.12.1",
|
||||
"react": "^18.2.0",
|
||||
|
||||
@ -2,7 +2,7 @@ import React from 'react';
|
||||
import Layout from './HUD/Layout/Layout';
|
||||
import api, { port, isDev } from './api/api';
|
||||
import ActionManager, { ConfigManager } from './api/actionManager';
|
||||
import { Dota2, DOTA2GSI, PlayerExtension } from 'dotagsi';
|
||||
import { Dota2, DOTA2GSI, PlayerExtension, TeamExtension } from 'dotagsi';
|
||||
import io from "socket.io-client";
|
||||
import { loadAvatarURL } from './api/avatars';
|
||||
import { Match } from './api/interfaces';
|
||||
@ -181,7 +181,7 @@ class App extends React.Component<any, { game: Dota2 | null,summary: GameSummary
|
||||
|
||||
if (match.left.id) {
|
||||
api.teams.getOne(match.left.id).then(left => {
|
||||
const gsiTeamData = { id: left._id, name: left.name, country: left.country, logo: left.logo, map_score: match.left.wins, extra: left.extra };
|
||||
const gsiTeamData: TeamExtension = { id: left._id, name: left.name, short_name: left.shortName, country: left.country, logo: left.logo, map_score: match.left.wins, extra: left.extra, };
|
||||
if (!isReversed) {
|
||||
DOTA2.teams.radiant = gsiTeamData;
|
||||
}
|
||||
@ -190,7 +190,7 @@ class App extends React.Component<any, { game: Dota2 | null,summary: GameSummary
|
||||
}
|
||||
if (match.right.id) {
|
||||
api.teams.getOne(match.right.id).then(right => {
|
||||
const gsiTeamData = { id: right._id, name: right.name, country: right.country, logo: right.logo, map_score: match.right.wins, extra: right.extra };
|
||||
const gsiTeamData: TeamExtension = { id: right._id, name: right.name, short_name: right.shortName, country: right.country, logo: right.logo, map_score: match.right.wins, extra: right.extra };
|
||||
|
||||
if (!isReversed) DOTA2.teams.dire = gsiTeamData;
|
||||
else DOTA2.teams.radiant = gsiTeamData;
|
||||
|
||||
@ -3926,9 +3926,10 @@ dot-case@^3.0.4:
|
||||
no-case "^3.0.4"
|
||||
tslib "^2.0.3"
|
||||
|
||||
"dotagsi@github:Macronic/dota2gsi":
|
||||
version "1.3.2"
|
||||
resolved "git+ssh://git@github.com/Macronic/dota2gsi.git#df17e53279c67c54b02e583c1ba57eb185197d83"
|
||||
dotagsi@^1.4.3:
|
||||
version "1.4.3"
|
||||
resolved "https://registry.npmjs.org/dotagsi/-/dotagsi-1.4.3.tgz"
|
||||
integrity sha512-6yksHABW4InBVJ+IOgKXwN3UtTiRdPLsIHVJeswDco6rWUZxMWYXS4YZlpcdMbBX539rdmLiNzGq08ZW64lKqg==
|
||||
|
||||
dotenv-expand@^5.1.0:
|
||||
version "5.1.0"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user