@golstats/gsc-lineups-reports 1.1.2 → 1.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -392,6 +392,8 @@ export default {
|
|
|
392
392
|
selectOptMenuheader: 'Recientes',
|
|
393
393
|
token:
|
|
394
394
|
'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE',
|
|
395
|
+
// NO USAR: JWT vencido (exp 2024-10-02) y con claim provider_id: 1, por lo que las
|
|
396
|
+
// rutas /2/... responden 403 Forbidden. Las peticiones van con `token` (free), que si pasa.
|
|
395
397
|
tokenPremium:
|
|
396
398
|
'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6NTg2LCJuYW1lIjoiSkFTIEdvbFN0YXRzIiwidXNlcm5hbWUiOiJ5YXRlYW1lcmljYSIsImVtYWlsIjoiIiwicHJvdmlkZXJfaWQiOjEsImxvZ2luX2dvbHN0YXRzIjoxLCJpYXQiOjE2OTYzNjU1ODcsImV4cCI6MTcyNzkwMTU4N30.jynRtgtFM8sf8gtqZJ-1gHLc2Ws13TIykXcfrlOvv1g',
|
|
397
399
|
urlGames:
|
|
@@ -1210,7 +1212,7 @@ export default {
|
|
|
1210
1212
|
async getHeaderInfo(game) {
|
|
1211
1213
|
const axiosInstance = axios.create({
|
|
1212
1214
|
headers: {
|
|
1213
|
-
Authorization: `${this.
|
|
1215
|
+
Authorization: `${this.token}`
|
|
1214
1216
|
}
|
|
1215
1217
|
})
|
|
1216
1218
|
const data = await axiosInstance.get(
|
|
@@ -1279,7 +1281,7 @@ export default {
|
|
|
1279
1281
|
async gameDataInfo(game) {
|
|
1280
1282
|
const axiosInstance = axios.create({
|
|
1281
1283
|
headers: {
|
|
1282
|
-
Authorization: `${this.
|
|
1284
|
+
Authorization: `${this.token}`
|
|
1283
1285
|
}
|
|
1284
1286
|
})
|
|
1285
1287
|
const data = await axiosInstance.get(
|
|
@@ -1530,7 +1532,7 @@ export default {
|
|
|
1530
1532
|
try {
|
|
1531
1533
|
const axiosInstanceMXM = axios.create({
|
|
1532
1534
|
headers: {
|
|
1533
|
-
Authorization: `${this.
|
|
1535
|
+
Authorization: `${this.token}`
|
|
1534
1536
|
}
|
|
1535
1537
|
})
|
|
1536
1538
|
const dataMXM = await axiosInstanceMXM.get(
|
|
@@ -1683,7 +1685,7 @@ export default {
|
|
|
1683
1685
|
try {
|
|
1684
1686
|
const axiosInstanceLineUp = axios.create({
|
|
1685
1687
|
headers: {
|
|
1686
|
-
Authorization: `${this.
|
|
1688
|
+
Authorization: `${this.token}`
|
|
1687
1689
|
}
|
|
1688
1690
|
})
|
|
1689
1691
|
const data = await axiosInstanceLineUp.get(
|
|
@@ -1752,10 +1754,12 @@ export default {
|
|
|
1752
1754
|
number: data.data.home_team.starting_lineup[0].lineup[index].jersey_number,
|
|
1753
1755
|
isFirstTeam: false,
|
|
1754
1756
|
name: nameAway + '. ' + lastNameAway,
|
|
1755
|
-
photo:
|
|
1757
|
+
photo: getImageUrl(
|
|
1756
1758
|
'https://golstatsimages.blob.core.windows.net/players-profile/' +
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
+
data.data.home_team.starting_lineup[0].lineup[index].player_id +
|
|
1760
|
+
'.png',
|
|
1761
|
+
this.provider
|
|
1762
|
+
),
|
|
1759
1763
|
posX: positionConvert + 7,
|
|
1760
1764
|
posY: data.data.home_team.starting_lineup[0].lineup[index].y,
|
|
1761
1765
|
goals: 0,
|
|
@@ -1836,10 +1840,12 @@ export default {
|
|
|
1836
1840
|
number: data.data.away_team.starting_lineup[0].lineup[index].jersey_number,
|
|
1837
1841
|
isFirstTeam: false,
|
|
1838
1842
|
name: nameAway + '. ' + lastNameAway,
|
|
1839
|
-
photo:
|
|
1843
|
+
photo: getImageUrl(
|
|
1840
1844
|
'https://golstatsimages.blob.core.windows.net/players-profile/' +
|
|
1841
|
-
|
|
1842
|
-
|
|
1845
|
+
data.data.away_team.starting_lineup[0].lineup[index].player_id +
|
|
1846
|
+
'.png',
|
|
1847
|
+
this.provider
|
|
1848
|
+
),
|
|
1843
1849
|
posX:
|
|
1844
1850
|
100 - ((100 - data.data.away_team.starting_lineup[0].lineup[index].x) * 50) / 100,
|
|
1845
1851
|
posY: data.data.away_team.starting_lineup[0].lineup[index].y,
|
|
@@ -1867,7 +1873,7 @@ export default {
|
|
|
1867
1873
|
try {
|
|
1868
1874
|
const axiosInstanceLineUp = axios.create({
|
|
1869
1875
|
headers: {
|
|
1870
|
-
Authorization: `${this.
|
|
1876
|
+
Authorization: `${this.token}`
|
|
1871
1877
|
}
|
|
1872
1878
|
})
|
|
1873
1879
|
const data = await axiosInstanceLineUp.get(
|
|
@@ -1936,10 +1942,12 @@ export default {
|
|
|
1936
1942
|
number: data.data.home_team.starting_lineup[0].lineup[index].jersey_number,
|
|
1937
1943
|
isFirstTeam: true,
|
|
1938
1944
|
name: nameHome + '. ' + lastNameHome,
|
|
1939
|
-
photo:
|
|
1945
|
+
photo: getImageUrl(
|
|
1940
1946
|
'https://golstatsimages.blob.core.windows.net/players-profile/' +
|
|
1941
|
-
|
|
1942
|
-
|
|
1947
|
+
data.data.home_team.starting_lineup[0].lineup[index].player_id +
|
|
1948
|
+
'.png',
|
|
1949
|
+
this.provider
|
|
1950
|
+
),
|
|
1943
1951
|
posX: (data.data.home_team.starting_lineup[0].lineup[index].x * 50) / 100,
|
|
1944
1952
|
posY: data.data.home_team.starting_lineup[0].lineup[index].y,
|
|
1945
1953
|
goals: 0,
|
|
@@ -2018,10 +2026,12 @@ export default {
|
|
|
2018
2026
|
number: data.data.away_team.starting_lineup[0].lineup[index].jersey_number,
|
|
2019
2027
|
isFirstTeam: true,
|
|
2020
2028
|
name: nameHome + '. ' + lastNameHome,
|
|
2021
|
-
photo:
|
|
2029
|
+
photo: getImageUrl(
|
|
2022
2030
|
'https://golstatsimages.blob.core.windows.net/players-profile/' +
|
|
2023
|
-
|
|
2024
|
-
|
|
2031
|
+
data.data.away_team.starting_lineup[0].lineup[index].player_id +
|
|
2032
|
+
'.png',
|
|
2033
|
+
this.provider
|
|
2034
|
+
),
|
|
2025
2035
|
posX: positionConvertHome - 2,
|
|
2026
2036
|
posY: newY - 9,
|
|
2027
2037
|
goals: 0,
|
|
@@ -2052,7 +2062,7 @@ export default {
|
|
|
2052
2062
|
try {
|
|
2053
2063
|
const axiosInstanceLineUp = axios.create({
|
|
2054
2064
|
headers: {
|
|
2055
|
-
Authorization: `${this.
|
|
2065
|
+
Authorization: `${this.token}`
|
|
2056
2066
|
}
|
|
2057
2067
|
})
|
|
2058
2068
|
const data = await axiosInstanceLineUp.get(
|
|
@@ -2119,10 +2129,12 @@ export default {
|
|
|
2119
2129
|
number: data.data.home_team.starting_lineup[0].lineup[index].jersey_number,
|
|
2120
2130
|
isFirstTeam: true,
|
|
2121
2131
|
name: nameHome + '. ' + lastNameHome,
|
|
2122
|
-
photo:
|
|
2132
|
+
photo: getImageUrl(
|
|
2123
2133
|
'https://golstatsimages.blob.core.windows.net/players-profile/' +
|
|
2124
|
-
|
|
2125
|
-
|
|
2134
|
+
data.data.home_team.starting_lineup[0].lineup[index].player_id +
|
|
2135
|
+
'.png',
|
|
2136
|
+
this.provider
|
|
2137
|
+
),
|
|
2126
2138
|
posX: (data.data.home_team.starting_lineup[0].lineup[index].x * 50) / 100,
|
|
2127
2139
|
posY: data.data.home_team.starting_lineup[0].lineup[index].y,
|
|
2128
2140
|
goals: 0,
|
|
@@ -2142,10 +2154,12 @@ export default {
|
|
|
2142
2154
|
position:
|
|
2143
2155
|
this.positions[data.data.home_team.players[indexPlayerDataHome].position_id - 1].name,
|
|
2144
2156
|
position_id: data.data.home_team.players[indexPlayerDataHome].position_id - 1,
|
|
2145
|
-
imgPlayer:
|
|
2157
|
+
imgPlayer: getImageUrl(
|
|
2146
2158
|
'https://golstatsimages.blob.core.windows.net/players-profile/' +
|
|
2147
|
-
|
|
2148
|
-
|
|
2159
|
+
data.data.home_team.starting_lineup[0].lineup[index].player_id +
|
|
2160
|
+
'.png',
|
|
2161
|
+
this.provider
|
|
2162
|
+
),
|
|
2149
2163
|
nationality: data.data.home_team.players[indexPlayerDataHome].nationality
|
|
2150
2164
|
? data.data.home_team.players[indexPlayerDataHome].nationality.substring(0, 3)
|
|
2151
2165
|
: '',
|
|
@@ -2230,10 +2244,12 @@ export default {
|
|
|
2230
2244
|
].name
|
|
2231
2245
|
: '',
|
|
2232
2246
|
position_id: data.data.home_team.players[indexPlayerDataHomeBench].position_id,
|
|
2233
|
-
imgPlayer:
|
|
2247
|
+
imgPlayer: getImageUrl(
|
|
2234
2248
|
'https://golstatsimages.blob.core.windows.net/players-profile/' +
|
|
2235
|
-
|
|
2236
|
-
|
|
2249
|
+
data.data.home_team.bench[index].playerID +
|
|
2250
|
+
'.png',
|
|
2251
|
+
this.provider
|
|
2252
|
+
),
|
|
2237
2253
|
nationality:
|
|
2238
2254
|
indexPlayerDataHomeBench != -1
|
|
2239
2255
|
? data.data.home_team.players[indexPlayerDataHomeBench].nationality
|
|
@@ -2334,10 +2350,12 @@ export default {
|
|
|
2334
2350
|
number: data.data.away_team.starting_lineup[0].lineup[index].jersey_number,
|
|
2335
2351
|
isFirstTeam: false,
|
|
2336
2352
|
name: nameAway + '. ' + lastNameAway,
|
|
2337
|
-
photo:
|
|
2353
|
+
photo: getImageUrl(
|
|
2338
2354
|
'https://golstatsimages.blob.core.windows.net/players-profile/' +
|
|
2339
|
-
|
|
2340
|
-
|
|
2355
|
+
data.data.away_team.starting_lineup[0].lineup[index].player_id +
|
|
2356
|
+
'.png',
|
|
2357
|
+
this.provider
|
|
2358
|
+
),
|
|
2341
2359
|
posX: 100 - ((100 - data.data.away_team.starting_lineup[0].lineup[index].x) * 50) / 100,
|
|
2342
2360
|
posY: data.data.away_team.starting_lineup[0].lineup[index].y,
|
|
2343
2361
|
goals: 0,
|
|
@@ -2357,10 +2375,12 @@ export default {
|
|
|
2357
2375
|
position:
|
|
2358
2376
|
this.positions[data.data.away_team.players[indexPlayerData].position_id - 1].name,
|
|
2359
2377
|
position_id: data.data.away_team.players[indexPlayerData].position_id,
|
|
2360
|
-
imgPlayer:
|
|
2378
|
+
imgPlayer: getImageUrl(
|
|
2361
2379
|
'https://golstatsimages.blob.core.windows.net/players-profile/' +
|
|
2362
|
-
|
|
2363
|
-
|
|
2380
|
+
data.data.away_team.starting_lineup[0].lineup[index].player_id +
|
|
2381
|
+
'.png',
|
|
2382
|
+
this.provider
|
|
2383
|
+
),
|
|
2364
2384
|
nationality: data.data.away_team.players[indexPlayerData].nationality
|
|
2365
2385
|
? data.data.away_team.players[indexPlayerData].nationality.substring(0, 3)
|
|
2366
2386
|
: '',
|
|
@@ -2445,10 +2465,12 @@ export default {
|
|
|
2445
2465
|
].name
|
|
2446
2466
|
: '',
|
|
2447
2467
|
position_id: data.data.away_team.players[indexPlayerDataAwayBench].position_id,
|
|
2448
|
-
imgPlayer:
|
|
2468
|
+
imgPlayer: getImageUrl(
|
|
2449
2469
|
'https://golstatsimages.blob.core.windows.net/players-profile/' +
|
|
2450
|
-
|
|
2451
|
-
|
|
2470
|
+
data.data.away_team.bench[index].playerID +
|
|
2471
|
+
'.png',
|
|
2472
|
+
this.provider
|
|
2473
|
+
),
|
|
2452
2474
|
nationality:
|
|
2453
2475
|
indexPlayerDataAwayBench != -1
|
|
2454
2476
|
? data.data.away_team.players[indexPlayerDataAwayBench].nationality
|
|
@@ -2706,10 +2728,12 @@ export default {
|
|
|
2706
2728
|
.name
|
|
2707
2729
|
: '',
|
|
2708
2730
|
position_id: this.dataPlayersHome[indexPlayerDataHomeBench].position_id,
|
|
2709
|
-
imgPlayer:
|
|
2731
|
+
imgPlayer: getImageUrl(
|
|
2710
2732
|
'https://golstatsimages.blob.core.windows.net/players-profile/' +
|
|
2711
|
-
|
|
2712
|
-
|
|
2733
|
+
benchEvent[this.home_team_id][index].playerID +
|
|
2734
|
+
'.png',
|
|
2735
|
+
this.provider
|
|
2736
|
+
),
|
|
2713
2737
|
nationality:
|
|
2714
2738
|
indexPlayerDataHomeBench != -1
|
|
2715
2739
|
? this.dataPlayersHome[indexPlayerDataHomeBench].nationality
|
|
@@ -2802,10 +2826,12 @@ export default {
|
|
|
2802
2826
|
.name
|
|
2803
2827
|
: '',
|
|
2804
2828
|
position_id: this.dataPlayersAway[indexPlayerDataAwayBench].position_id,
|
|
2805
|
-
imgPlayer:
|
|
2829
|
+
imgPlayer: getImageUrl(
|
|
2806
2830
|
'https://golstatsimages.blob.core.windows.net/players-profile/' +
|
|
2807
|
-
|
|
2808
|
-
|
|
2831
|
+
benchEvent[this.away_team_id][index].playerID +
|
|
2832
|
+
'.png',
|
|
2833
|
+
this.provider
|
|
2834
|
+
),
|
|
2809
2835
|
nationality:
|
|
2810
2836
|
indexPlayerDataAwayBench != -1
|
|
2811
2837
|
? this.dataPlayersAway[indexPlayerDataAwayBench].nationality
|
|
@@ -2906,10 +2932,12 @@ export default {
|
|
|
2906
2932
|
.name
|
|
2907
2933
|
: '',
|
|
2908
2934
|
position_id: gameEvent.home_team.players[indexPlayerDataHome].position_id,
|
|
2909
|
-
imgPlayer:
|
|
2935
|
+
imgPlayer: getImageUrl(
|
|
2910
2936
|
'https://golstatsimages.blob.core.windows.net/players-profile/' +
|
|
2911
|
-
|
|
2912
|
-
|
|
2937
|
+
gameEvent.data[index].player_id +
|
|
2938
|
+
'.png',
|
|
2939
|
+
this.provider
|
|
2940
|
+
),
|
|
2913
2941
|
nationality:
|
|
2914
2942
|
indexPlayerDataHome != -1
|
|
2915
2943
|
? gameEvent.home_team.players[indexPlayerDataHome].nationality
|
|
@@ -3013,10 +3041,12 @@ export default {
|
|
|
3013
3041
|
.name
|
|
3014
3042
|
: '',
|
|
3015
3043
|
position_id: gameEvent.away_team.players[indexPlayerDataAway].position_id,
|
|
3016
|
-
imgPlayer:
|
|
3044
|
+
imgPlayer: getImageUrl(
|
|
3017
3045
|
'https://golstatsimages.blob.core.windows.net/players-profile/' +
|
|
3018
|
-
|
|
3019
|
-
|
|
3046
|
+
gameEvent.data[index].player_id +
|
|
3047
|
+
'.png',
|
|
3048
|
+
this.provider
|
|
3049
|
+
),
|
|
3020
3050
|
nationality:
|
|
3021
3051
|
indexPlayerDataAway != -1
|
|
3022
3052
|
? gameEvent.away_team.players[indexPlayerDataAway].nationality
|
|
@@ -337,6 +337,8 @@ export default {
|
|
|
337
337
|
selectOptMenuheader: 'Probables',
|
|
338
338
|
token:
|
|
339
339
|
'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6MCwibmFtZSI6IlVzdWFyaW8gRnJlZSIsInVzZXJuYW1lIjoiZnJlZUBnb2xzdGF0cy5jb20iLCJlbWFpbCI6ImZyZWVAZ29sc3RhdHMuY29tIiwiaWF0IjoxNjA2NzU4Nzk1LCJleHAiOjE2MzgyOTQ3OTV9.kPNmP7yDtk38cAXrUyc7OHRh6J25VFqy-XUNzbK-4YE',
|
|
340
|
+
// NO USAR: JWT vencido (exp 2024-10-02) y con claim provider_id: 1, por lo que las
|
|
341
|
+
// rutas /2/... responden 403 Forbidden. Las peticiones van con `token` (free), que si pasa.
|
|
340
342
|
tokenPremium:
|
|
341
343
|
'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6NTg2LCJuYW1lIjoiSkFTIEdvbFN0YXRzIiwidXNlcm5hbWUiOiJ5YXRlYW1lcmljYSIsImVtYWlsIjoiIiwicHJvdmlkZXJfaWQiOjEsImxvZ2luX2dvbHN0YXRzIjoxLCJpYXQiOjE2OTYzNjU1ODcsImV4cCI6MTcyNzkwMTU4N30.jynRtgtFM8sf8gtqZJ-1gHLc2Ws13TIykXcfrlOvv1g',
|
|
342
344
|
urlGames:
|
|
@@ -1149,10 +1151,12 @@ export default {
|
|
|
1149
1151
|
.name
|
|
1150
1152
|
: '',
|
|
1151
1153
|
position_id: this.dataPlayersHome[indexPlayerDataHomeBench].position_id,
|
|
1152
|
-
imgPlayer:
|
|
1154
|
+
imgPlayer: getImageUrl(
|
|
1153
1155
|
'https://golstatsimages.blob.core.windows.net/players-profile/' +
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
+
benchEvent[this.home_team_id][index].playerID +
|
|
1157
|
+
'.png',
|
|
1158
|
+
this.provider
|
|
1159
|
+
),
|
|
1156
1160
|
nationality:
|
|
1157
1161
|
indexPlayerDataHomeBench != -1
|
|
1158
1162
|
? this.dataPlayersHome[indexPlayerDataHomeBench].nationality
|
|
@@ -1256,10 +1260,12 @@ export default {
|
|
|
1256
1260
|
.name
|
|
1257
1261
|
: '',
|
|
1258
1262
|
position_id: this.dataPlayersAway[indexPlayerDataAwayBench].position_id,
|
|
1259
|
-
imgPlayer:
|
|
1263
|
+
imgPlayer: getImageUrl(
|
|
1260
1264
|
'https://golstatsimages.blob.core.windows.net/players-profile/' +
|
|
1261
|
-
|
|
1262
|
-
|
|
1265
|
+
benchEvent[this.away_team_id][index].playerID +
|
|
1266
|
+
'.png',
|
|
1267
|
+
this.provider
|
|
1268
|
+
),
|
|
1263
1269
|
nationality:
|
|
1264
1270
|
indexPlayerDataAwayBench != -1
|
|
1265
1271
|
? this.dataPlayersAway[indexPlayerDataAwayBench].nationality
|
|
@@ -1375,10 +1381,12 @@ export default {
|
|
|
1375
1381
|
].name
|
|
1376
1382
|
: '',
|
|
1377
1383
|
position_id: gameEvent.home_team.players[indexPlayerDataHome].position_id,
|
|
1378
|
-
imgPlayer:
|
|
1384
|
+
imgPlayer: getImageUrl(
|
|
1379
1385
|
'https://golstatsimages.blob.core.windows.net/players-profile/' +
|
|
1380
|
-
|
|
1381
|
-
|
|
1386
|
+
gameEvent.data[index].player_id +
|
|
1387
|
+
'.png',
|
|
1388
|
+
this.provider
|
|
1389
|
+
),
|
|
1382
1390
|
nationality:
|
|
1383
1391
|
indexPlayerDataHome != -1
|
|
1384
1392
|
? gameEvent.home_team.players[indexPlayerDataHome].nationality
|
|
@@ -1498,10 +1506,12 @@ export default {
|
|
|
1498
1506
|
].name
|
|
1499
1507
|
: '',
|
|
1500
1508
|
position_id: gameEvent.away_team.players[indexPlayerDataAway].position_id,
|
|
1501
|
-
imgPlayer:
|
|
1509
|
+
imgPlayer: getImageUrl(
|
|
1502
1510
|
'https://golstatsimages.blob.core.windows.net/players-profile/' +
|
|
1503
|
-
|
|
1504
|
-
|
|
1511
|
+
gameEvent.data[index].player_id +
|
|
1512
|
+
'.png',
|
|
1513
|
+
this.provider
|
|
1514
|
+
),
|
|
1505
1515
|
nationality:
|
|
1506
1516
|
indexPlayerDataAway != -1
|
|
1507
1517
|
? gameEvent.away_team.players[indexPlayerDataAway].nationality
|
|
@@ -2057,7 +2067,7 @@ export default {
|
|
|
2057
2067
|
try {
|
|
2058
2068
|
const axiosInstanceLineUp = axios.create({
|
|
2059
2069
|
headers: {
|
|
2060
|
-
Authorization: `${this.
|
|
2070
|
+
Authorization: `${this.token}`,
|
|
2061
2071
|
},
|
|
2062
2072
|
})
|
|
2063
2073
|
const data = await axiosInstanceLineUp.get(
|
|
@@ -2150,10 +2160,12 @@ export default {
|
|
|
2150
2160
|
: this.positions[data.data.home_team.players[indexPlayerDataHome].position_id - 1]
|
|
2151
2161
|
.name,
|
|
2152
2162
|
position_id: data.data.home_team.players[indexPlayerDataHome].position_id - 1,
|
|
2153
|
-
imgPlayer:
|
|
2163
|
+
imgPlayer: getImageUrl(
|
|
2154
2164
|
'https://golstatsimages.blob.core.windows.net/players-profile/' +
|
|
2155
|
-
|
|
2156
|
-
|
|
2165
|
+
data.data.home_team.starting_lineup[0].lineup[index].player_id +
|
|
2166
|
+
'.png',
|
|
2167
|
+
this.provider
|
|
2168
|
+
),
|
|
2157
2169
|
nationality: data.data.home_team.players[indexPlayerDataHome].nationality
|
|
2158
2170
|
? data.data.home_team.players[indexPlayerDataHome].nationality.substring(0, 3)
|
|
2159
2171
|
: '',
|
|
@@ -2250,10 +2262,12 @@ export default {
|
|
|
2250
2262
|
].name
|
|
2251
2263
|
: '',
|
|
2252
2264
|
position_id: data.data.home_team.players[indexPlayerDataHomeBench].position_id,
|
|
2253
|
-
imgPlayer:
|
|
2265
|
+
imgPlayer: getImageUrl(
|
|
2254
2266
|
'https://golstatsimages.blob.core.windows.net/players-profile/' +
|
|
2255
|
-
|
|
2256
|
-
|
|
2267
|
+
data.data.home_team.bench[index].playerID +
|
|
2268
|
+
'.png',
|
|
2269
|
+
this.provider
|
|
2270
|
+
),
|
|
2257
2271
|
nationality:
|
|
2258
2272
|
indexPlayerDataHomeBench != -1
|
|
2259
2273
|
? data.data.home_team.players[indexPlayerDataHomeBench].nationality
|
|
@@ -2385,10 +2399,12 @@ export default {
|
|
|
2385
2399
|
: this.positions[data.data.away_team.players[indexPlayerDataHome].position_id - 1]
|
|
2386
2400
|
.name,
|
|
2387
2401
|
position_id: data.data.away_team.players[indexPlayerDataHome].position_id - 1,
|
|
2388
|
-
imgPlayer:
|
|
2402
|
+
imgPlayer: getImageUrl(
|
|
2389
2403
|
'https://golstatsimages.blob.core.windows.net/players-profile/' +
|
|
2390
|
-
|
|
2391
|
-
|
|
2404
|
+
data.data.away_team.starting_lineup[0].lineup[index].player_id +
|
|
2405
|
+
'.png',
|
|
2406
|
+
this.provider
|
|
2407
|
+
),
|
|
2392
2408
|
nationality: data.data.away_team.players[indexPlayerDataHome].nationality
|
|
2393
2409
|
? data.data.away_team.players[indexPlayerDataHome].nationality.substring(0, 3)
|
|
2394
2410
|
: '',
|
|
@@ -2485,10 +2501,12 @@ export default {
|
|
|
2485
2501
|
].name
|
|
2486
2502
|
: '',
|
|
2487
2503
|
position_id: data.data.away_team.players[indexPlayerDataHomeBench].position_id,
|
|
2488
|
-
imgPlayer:
|
|
2504
|
+
imgPlayer: getImageUrl(
|
|
2489
2505
|
'https://golstatsimages.blob.core.windows.net/players-profile/' +
|
|
2490
|
-
|
|
2491
|
-
|
|
2506
|
+
data.data.away_team.bench[index].playerID +
|
|
2507
|
+
'.png',
|
|
2508
|
+
this.provider
|
|
2509
|
+
),
|
|
2492
2510
|
nationality:
|
|
2493
2511
|
indexPlayerDataHomeBench != -1
|
|
2494
2512
|
? data.data.away_team.players[indexPlayerDataHomeBench].nationality
|
|
@@ -2668,7 +2686,7 @@ export default {
|
|
|
2668
2686
|
try {
|
|
2669
2687
|
const axiosInstanceLineUp = axios.create({
|
|
2670
2688
|
headers: {
|
|
2671
|
-
Authorization: `${this.
|
|
2689
|
+
Authorization: `${this.token}`,
|
|
2672
2690
|
},
|
|
2673
2691
|
})
|
|
2674
2692
|
const data = await axiosInstanceLineUp.get(
|
|
@@ -2762,10 +2780,12 @@ export default {
|
|
|
2762
2780
|
.replace('Volante ofensivo', 'Volante ofensiva')
|
|
2763
2781
|
: this.positions[data.data.home_team.players[indexPlayerData].position_id - 1].name,
|
|
2764
2782
|
position_id: data.data.home_team.players[indexPlayerData].position_id,
|
|
2765
|
-
imgPlayer:
|
|
2783
|
+
imgPlayer: getImageUrl(
|
|
2766
2784
|
'https://golstatsimages.blob.core.windows.net/players-profile/' +
|
|
2767
|
-
|
|
2768
|
-
|
|
2785
|
+
data.data.home_team.starting_lineup[0].lineup[index].player_id +
|
|
2786
|
+
'.png',
|
|
2787
|
+
this.provider
|
|
2788
|
+
),
|
|
2769
2789
|
nationality: data.data.home_team.players[indexPlayerData].nationality
|
|
2770
2790
|
? data.data.home_team.players[indexPlayerData].nationality.substring(0, 3)
|
|
2771
2791
|
: '',
|
|
@@ -2862,10 +2882,12 @@ export default {
|
|
|
2862
2882
|
].name
|
|
2863
2883
|
: '',
|
|
2864
2884
|
position_id: data.data.home_team.players[indexPlayerDataAwayBench].position_id,
|
|
2865
|
-
imgPlayer:
|
|
2885
|
+
imgPlayer: getImageUrl(
|
|
2866
2886
|
'https://golstatsimages.blob.core.windows.net/players-profile/' +
|
|
2867
|
-
|
|
2868
|
-
|
|
2887
|
+
data.data.home_team.bench[index].playerID +
|
|
2888
|
+
'.png',
|
|
2889
|
+
this.provider
|
|
2890
|
+
),
|
|
2869
2891
|
nationality:
|
|
2870
2892
|
indexPlayerDataAwayBench != -1
|
|
2871
2893
|
? data.data.home_team.players[indexPlayerDataAwayBench].nationality
|
|
@@ -2991,10 +3013,12 @@ export default {
|
|
|
2991
3013
|
.replace('Volante ofensivo', 'Volante ofensiva')
|
|
2992
3014
|
: this.positions[data.data.away_team.players[indexPlayerData].position_id - 1].name,
|
|
2993
3015
|
position_id: data.data.away_team.players[indexPlayerData].position_id,
|
|
2994
|
-
imgPlayer:
|
|
3016
|
+
imgPlayer: getImageUrl(
|
|
2995
3017
|
'https://golstatsimages.blob.core.windows.net/players-profile/' +
|
|
2996
|
-
|
|
2997
|
-
|
|
3018
|
+
data.data.away_team.starting_lineup[0].lineup[index].player_id +
|
|
3019
|
+
'.png',
|
|
3020
|
+
this.provider
|
|
3021
|
+
),
|
|
2998
3022
|
nationality: data.data.away_team.players[indexPlayerData].nationality
|
|
2999
3023
|
? data.data.away_team.players[indexPlayerData].nationality.substring(0, 3)
|
|
3000
3024
|
: '',
|
|
@@ -3091,10 +3115,12 @@ export default {
|
|
|
3091
3115
|
].name
|
|
3092
3116
|
: '',
|
|
3093
3117
|
position_id: data.data.away_team.players[indexPlayerDataAwayBench].position_id,
|
|
3094
|
-
imgPlayer:
|
|
3118
|
+
imgPlayer: getImageUrl(
|
|
3095
3119
|
'https://golstatsimages.blob.core.windows.net/players-profile/' +
|
|
3096
|
-
|
|
3097
|
-
|
|
3120
|
+
data.data.away_team.bench[index].playerID +
|
|
3121
|
+
'.png',
|
|
3122
|
+
this.provider
|
|
3123
|
+
),
|
|
3098
3124
|
nationality:
|
|
3099
3125
|
indexPlayerDataAwayBench != -1
|
|
3100
3126
|
? data.data.away_team.players[indexPlayerDataAwayBench].nationality
|
|
@@ -3237,7 +3263,7 @@ export default {
|
|
|
3237
3263
|
async getHeaderInfo(game, responseData = null) {
|
|
3238
3264
|
const axiosInstance = axios.create({
|
|
3239
3265
|
headers: {
|
|
3240
|
-
Authorization: `${this.
|
|
3266
|
+
Authorization: `${this.token}`,
|
|
3241
3267
|
},
|
|
3242
3268
|
})
|
|
3243
3269
|
const data =
|
|
@@ -3337,7 +3363,7 @@ export default {
|
|
|
3337
3363
|
async gameDataInfo(game, responseData = null) {
|
|
3338
3364
|
const axiosInstance = axios.create({
|
|
3339
3365
|
headers: {
|
|
3340
|
-
Authorization: `${this.
|
|
3366
|
+
Authorization: `${this.token}`,
|
|
3341
3367
|
},
|
|
3342
3368
|
})
|
|
3343
3369
|
const data =
|
|
@@ -3509,7 +3535,7 @@ export default {
|
|
|
3509
3535
|
this.lastMXMUrl = getMXMUrl
|
|
3510
3536
|
const axiosInstanceMXM = axios.create({
|
|
3511
3537
|
headers: {
|
|
3512
|
-
Authorization: `${this.
|
|
3538
|
+
Authorization: `${this.token}`,
|
|
3513
3539
|
},
|
|
3514
3540
|
})
|
|
3515
3541
|
const dataMXM = await axiosInstanceMXM.get(getMXMUrl)
|
|
@@ -3704,7 +3730,7 @@ export default {
|
|
|
3704
3730
|
this.lastSection = this.selectOptMenuheader
|
|
3705
3731
|
const axiosInstanceLineUp = axios.create({
|
|
3706
3732
|
headers: {
|
|
3707
|
-
Authorization: `${this.
|
|
3733
|
+
Authorization: `${this.token}`,
|
|
3708
3734
|
},
|
|
3709
3735
|
})
|
|
3710
3736
|
const data =
|
|
@@ -3787,10 +3813,12 @@ export default {
|
|
|
3787
3813
|
: this.positions[data.data.home_team.players[indexPlayerDataHome].position_id - 1]
|
|
3788
3814
|
.name,
|
|
3789
3815
|
position_id: data.data.home_team.players[indexPlayerDataHome].position_id - 1,
|
|
3790
|
-
imgPlayer:
|
|
3816
|
+
imgPlayer: getImageUrl(
|
|
3791
3817
|
'https://golstatsimages.blob.core.windows.net/players-profile/' +
|
|
3792
|
-
|
|
3793
|
-
|
|
3818
|
+
data.data.home_team.starting_lineup[0].lineup[index].player_id +
|
|
3819
|
+
'.png',
|
|
3820
|
+
this.provider
|
|
3821
|
+
),
|
|
3794
3822
|
nationality: data.data.home_team.players[indexPlayerDataHome].nationality
|
|
3795
3823
|
? data.data.home_team.players[indexPlayerDataHome].nationality.substring(0, 3)
|
|
3796
3824
|
: '',
|
|
@@ -3903,10 +3931,12 @@ export default {
|
|
|
3903
3931
|
].name
|
|
3904
3932
|
: '',
|
|
3905
3933
|
position_id: data.data.home_team.players[indexPlayerDataHomeBench].position_id,
|
|
3906
|
-
imgPlayer:
|
|
3934
|
+
imgPlayer: getImageUrl(
|
|
3907
3935
|
'https://golstatsimages.blob.core.windows.net/players-profile/' +
|
|
3908
|
-
|
|
3909
|
-
|
|
3936
|
+
data.data.home_team.bench[index].playerID +
|
|
3937
|
+
'.png',
|
|
3938
|
+
this.provider
|
|
3939
|
+
),
|
|
3910
3940
|
nationality:
|
|
3911
3941
|
indexPlayerDataHomeBench != -1
|
|
3912
3942
|
? data.data.home_team.players[indexPlayerDataHomeBench].nationality
|
|
@@ -4019,10 +4049,12 @@ export default {
|
|
|
4019
4049
|
.replace('Volante ofensivo', 'Volante ofensiva')
|
|
4020
4050
|
: this.positions[data.data.away_team.players[indexPlayerData].position_id - 1].name,
|
|
4021
4051
|
position_id: data.data.away_team.players[indexPlayerData].position_id,
|
|
4022
|
-
imgPlayer:
|
|
4052
|
+
imgPlayer: getImageUrl(
|
|
4023
4053
|
'https://golstatsimages.blob.core.windows.net/players-profile/' +
|
|
4024
|
-
|
|
4025
|
-
|
|
4054
|
+
data.data.away_team.starting_lineup[0].lineup[index].player_id +
|
|
4055
|
+
'.png',
|
|
4056
|
+
this.provider
|
|
4057
|
+
),
|
|
4026
4058
|
nationality: data.data.away_team.players[indexPlayerData].nationality
|
|
4027
4059
|
? data.data.away_team.players[indexPlayerData].nationality.substring(0, 3)
|
|
4028
4060
|
: '',
|
|
@@ -4129,10 +4161,12 @@ export default {
|
|
|
4129
4161
|
].name
|
|
4130
4162
|
: '',
|
|
4131
4163
|
position_id: data.data.away_team.players[indexPlayerDataAwayBench].position_id,
|
|
4132
|
-
imgPlayer:
|
|
4164
|
+
imgPlayer: getImageUrl(
|
|
4133
4165
|
'https://golstatsimages.blob.core.windows.net/players-profile/' +
|
|
4134
|
-
|
|
4135
|
-
|
|
4166
|
+
data.data.away_team.bench[index].playerID +
|
|
4167
|
+
'.png',
|
|
4168
|
+
this.provider
|
|
4169
|
+
),
|
|
4136
4170
|
nationality:
|
|
4137
4171
|
indexPlayerDataAwayBench != -1
|
|
4138
4172
|
? data.data.away_team.players[indexPlayerDataAwayBench].nationality
|