@golstats/gsc-lineups-reports 1.0.9 → 1.1.1

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.
Files changed (49) hide show
  1. package/README.md +2 -2
  2. package/dist/css/fonts.css +91 -91
  3. package/dist/gsc-lineups-reports.css +1 -1
  4. package/dist/gsc-lineups-reports.es.js +3073 -2773
  5. package/dist/gsc-lineups-reports.umd.js +10 -7
  6. package/dist/images/canchaRPH.svg +30 -30
  7. package/dist/images/events/atajada.svg +56 -56
  8. package/dist/images/events/fin-del-partido.svg +43 -43
  9. package/dist/images/events/fuera-de-lugar.svg +57 -57
  10. package/dist/images/events/gol.svg +48 -48
  11. package/dist/images/events/icn-cambio.svg +6 -6
  12. package/dist/images/events/icn-falta.svg +4 -4
  13. package/dist/images/events/icn-play.svg +3 -3
  14. package/dist/images/events/icn-tarjeta-amarilla.svg +3 -3
  15. package/dist/images/events/icn-tarjeta-roja.svg +3 -3
  16. package/dist/images/events/icn-tiro-a-porteria.svg +36 -36
  17. package/dist/images/events/icn-tiros-de-esquina.svg +18 -18
  18. package/dist/images/events/inicia-el-partido.svg +45 -45
  19. package/dist/images/events/jugada-peligrosa.svg +90 -90
  20. package/dist/images/events/penal-fallado.svg +194 -194
  21. package/dist/images/events/penal-marcado.svg +189 -189
  22. package/dist/images/events/tiempo-agregado.svg +74 -74
  23. package/dist/images/events/tiro-a-porteria.svg +80 -80
  24. package/dist/images/events/var.svg +30 -30
  25. package/package.json +7 -3
  26. package/src/components/Lineup2D/CheckBox.vue +42 -42
  27. package/src/components/Lineup2D/FilterEmpty.vue +48 -48
  28. package/src/components/Lineup2D/Icons.vue +29 -29
  29. package/src/components/Lineup2D/LineupField.vue +274 -274
  30. package/src/components/Lineup2D/LineupFilter.vue +285 -285
  31. package/src/components/Lineup2D/LineupMainHeader.vue +222 -222
  32. package/src/components/Lineup2D/LineupRecentItem.vue +115 -110
  33. package/src/components/Lineup2D/MatchDetails.vue +66 -66
  34. package/src/components/gsc-filter.vue +286 -286
  35. package/src/components/gsc-header-historico-lineup.vue +1070 -1064
  36. package/src/components/gsc-header-postmatch-lineup.vue +1023 -1017
  37. package/src/components/gsc-header-probables-lineup.vue +1050 -1044
  38. package/src/components/gsc-header-recientes-lineup.vue +2343 -2337
  39. package/src/components/gsc-lineup-dosd.vue +3779 -3752
  40. package/src/components/gsc-lineup-main.vue +81 -65
  41. package/src/components/gsc-lineups-reports.vue +10 -0
  42. package/src/components/gsc-lineups.vue +95 -60
  43. package/src/components/gsc-player-card.vue +166 -166
  44. package/src/index.js +4 -4
  45. package/src/main-test.js +42 -0
  46. package/src/types.d.ts +45 -45
  47. package/src/utils/apiUrl.js +33 -0
  48. package/src/utils/imageUrl.js +30 -0
  49. package/src/utils/socketConnection.js +29 -29
@@ -1,65 +1,81 @@
1
- <template>
2
- <div>
3
- <template v-if="type == '2D'">
4
- <GSCLineups2D :selected-option="selectedOption" :game="game" :socket="socket" />
5
- </template>
6
- <template v-if="type == '3D'">
7
- <GSCLineups3D
8
- :is-live="isLive"
9
- :isFemale="isFemale"
10
- @onOpenProfile="onOpenProfile"
11
- :selected-option="selectedOption"
12
- :game="game"
13
- :socket="socket"
14
- />
15
- </template>
16
- </div>
17
- </template>
18
- <script>
19
- import GSCLineups2D from './gsc-lineup-dosd.vue'
20
- import GSCLineups3D from './gsc-lineups.vue'
21
- export default {
22
- components: {
23
- GSCLineups2D,
24
- GSCLineups3D
25
- },
26
- props: {
27
- isFemale: {
28
- type: Boolean,
29
- default: false
30
- },
31
- selectedOption: {
32
- type: String,
33
- default: 'Historicos'
34
- },
35
- game: {
36
- type: Object,
37
- default: () => {}
38
- },
39
- isLive: {
40
- type: Boolean,
41
- default: false
42
- },
43
- type: {
44
- type: String,
45
- default: '2D'
46
- },
47
- socket: {
48
- type: Object,
49
- default: () => {}
50
- }
51
- },
52
- watch: {},
53
- data() {
54
- return {}
55
- },
56
- computed: {},
57
- methods: {
58
- onOpenProfile(data) {
59
- this.$emit('onOpenProfile', data)
60
- }
61
- }
62
- }
63
- </script>
64
-
65
- <style module></style>
1
+ <template>
2
+ <div>
3
+ <template v-if="type == '2D'">
4
+ <GSCLineups2D
5
+ :selected-option="selectedOption"
6
+ :game="game"
7
+ :socket="socket"
8
+ :provider="provider"
9
+ :is-dev-apis="isDevApis"
10
+ />
11
+ </template>
12
+ <template v-if="type == '3D'">
13
+ <GSCLineups3D
14
+ :is-live="isLive"
15
+ :isFemale="isFemale"
16
+ @onOpenProfile="onOpenProfile"
17
+ :selected-option="selectedOption"
18
+ :game="game"
19
+ :socket="socket"
20
+ :provider="provider"
21
+ :is-dev-apis="isDevApis"
22
+ />
23
+ </template>
24
+ </div>
25
+ </template>
26
+ <script>
27
+ import GSCLineups2D from './gsc-lineup-dosd.vue'
28
+ import GSCLineups3D from './gsc-lineups.vue'
29
+ export default {
30
+ components: {
31
+ GSCLineups2D,
32
+ GSCLineups3D
33
+ },
34
+ props: {
35
+ isFemale: {
36
+ type: Boolean,
37
+ default: false
38
+ },
39
+ selectedOption: {
40
+ type: String,
41
+ default: 'Historicos'
42
+ },
43
+ game: {
44
+ type: Object,
45
+ default: () => {}
46
+ },
47
+ isLive: {
48
+ type: Boolean,
49
+ default: false
50
+ },
51
+ type: {
52
+ type: String,
53
+ default: '2D'
54
+ },
55
+ socket: {
56
+ type: Object,
57
+ default: () => {}
58
+ },
59
+ provider: {
60
+ type: Number,
61
+ default: 1
62
+ },
63
+ isDevApis: {
64
+ type: Boolean,
65
+ default: false
66
+ }
67
+ },
68
+ watch: {},
69
+ data() {
70
+ return {}
71
+ },
72
+ computed: {},
73
+ methods: {
74
+ onOpenProfile(data) {
75
+ this.$emit('onOpenProfile', data)
76
+ }
77
+ }
78
+ }
79
+ </script>
80
+
81
+ <style module></style>
@@ -5,6 +5,8 @@
5
5
  :gamehome="lastHomeGame"
6
6
  :gameaway="lastVisitingGame"
7
7
  :selected-option="selectedOption"
8
+ :provider="provider"
9
+ :is-dev-apis="isDevApis"
8
10
  />
9
11
  </div>
10
12
  </template>
@@ -38,6 +40,14 @@ const props = defineProps({
38
40
  type: String,
39
41
  default: 'Prematch',
40
42
  },
43
+ provider: {
44
+ type: Number,
45
+ default: 1,
46
+ },
47
+ isDevApis: {
48
+ type: Boolean,
49
+ default: false,
50
+ },
41
51
  })
42
52
 
43
53
  // Función para validar y formatear el objeto del juego
@@ -274,6 +274,8 @@
274
274
  <script>
275
275
  import axios from 'axios'
276
276
  import { /*connectSocket,*/ connectChannel } from '@/utils/socketConnection'
277
+ import { getApiUrl } from '@/utils/apiUrl'
278
+ import { getImageUrl } from '@/utils/imageUrl'
277
279
  import CardPlayer from './gsc-player-card.vue'
278
280
  import HeaderPlayerHistorico from './gsc-header-historico-lineup.vue'
279
281
  import HeaderPlayerRecientes from './gsc-header-recientes-lineup.vue'
@@ -312,6 +314,14 @@ export default {
312
314
  type: Object,
313
315
  default: () => {},
314
316
  },
317
+ provider: {
318
+ type: Number,
319
+ default: 1,
320
+ },
321
+ isDevApis: {
322
+ type: Boolean,
323
+ default: false,
324
+ },
315
325
  },
316
326
  components: {
317
327
  CardPlayer,
@@ -1030,7 +1040,11 @@ export default {
1030
1040
  this.cleaneData()
1031
1041
  await this.getHeaderInfo(newValue)
1032
1042
  const gameDataInfoPromise = axios.get(
1033
- this.urlGames + newValue.season_id + '/games/' + newValue.game_id,
1043
+ getApiUrl(
1044
+ this.urlGames + newValue.season_id + '/games/' + newValue.game_id,
1045
+ this.provider,
1046
+ this.isDevApis,
1047
+ ),
1034
1048
  axiosConfig,
1035
1049
  )
1036
1050
  const promises = [gameDataInfoPromise]
@@ -1049,7 +1063,10 @@ export default {
1049
1063
  lineUpsGameId !== this.lastGetLineUpGameId
1050
1064
  ) {
1051
1065
  console.log('✅ Haciendo petición de alineaciones para game_id:', lineUpsGameId)
1052
- lineUpsPromise = axios.get(this.url + lineUpsGameId, axiosConfig)
1066
+ lineUpsPromise = axios.get(
1067
+ getApiUrl(this.url + lineUpsGameId, this.provider, this.isDevApis),
1068
+ axiosConfig,
1069
+ )
1053
1070
  promises.push(lineUpsPromise)
1054
1071
  } else if (lineUpsGameId === 0) {
1055
1072
  console.warn('❌ Se evitó petición con game_id = 0')
@@ -1150,9 +1167,9 @@ export default {
1150
1167
  substitutionOut: false,
1151
1168
  abrevNamePlayer: abrevNamePlayerHomeBench,
1152
1169
  imgTeam:
1153
- 'https://golstatsimages.blob.core.windows.net/teams-80/' +
1170
+ getImageUrl('https://golstatsimages.blob.core.windows.net/teams-80/' +
1154
1171
  this.home_team_id +
1155
- '.png',
1172
+ '.png', this.provider),
1156
1173
  substitutionMin: '',
1157
1174
  substitutionDataID: '',
1158
1175
  shirt_number: benchEvent[this.home_team_id][index].jerseyNumber,
@@ -1257,9 +1274,9 @@ export default {
1257
1274
  substitutionOut: false,
1258
1275
  abrevNamePlayer: abrevNamePlayerAwayBench,
1259
1276
  imgTeam:
1260
- 'https://golstatsimages.blob.core.windows.net/teams-80/' +
1277
+ getImageUrl('https://golstatsimages.blob.core.windows.net/teams-80/' +
1261
1278
  this.away_team_id +
1262
- '.png',
1279
+ '.png', this.provider),
1263
1280
  substitutionMin: '',
1264
1281
  substitutionDataID: '',
1265
1282
  shirt_number: benchEvent[this.away_team_id][index].jerseyNumber,
@@ -1376,9 +1393,9 @@ export default {
1376
1393
  substitutionOut: false,
1377
1394
  abrevNamePlayer: abrevNamePlayerHome,
1378
1395
  imgTeam:
1379
- 'https://golstatsimages.blob.core.windows.net/teams-80/' +
1396
+ getImageUrl('https://golstatsimages.blob.core.windows.net/teams-80/' +
1380
1397
  gameEvent.team_id +
1381
- '.png',
1398
+ '.png', this.provider),
1382
1399
  substitutionMin: '',
1383
1400
  substitutionDataID: '',
1384
1401
  shirt_number: gameEvent.data[index].jersey_number,
@@ -1401,7 +1418,7 @@ export default {
1401
1418
  id_team: gameEvent.team_id,
1402
1419
  })
1403
1420
  this.homeTeamLogo =
1404
- 'https://golstatsimages.blob.core.windows.net/teams-80/' + gameEvent.team_id + '.png'
1421
+ getImageUrl('https://golstatsimages.blob.core.windows.net/teams-80/' + gameEvent.team_id + '.png', this.provider)
1405
1422
  }
1406
1423
 
1407
1424
  this.playersHome.sort((a, b) =>
@@ -1499,9 +1516,9 @@ export default {
1499
1516
  substitutionOut: false,
1500
1517
  abrevNamePlayer: abrevNamePlayerAway,
1501
1518
  imgTeam:
1502
- 'https://golstatsimages.blob.core.windows.net/teams-80/' +
1519
+ getImageUrl('https://golstatsimages.blob.core.windows.net/teams-80/' +
1503
1520
  gameEvent.team_id +
1504
- '.png',
1521
+ '.png', this.provider),
1505
1522
  substitutionMin: '',
1506
1523
  substitutionDataID: '',
1507
1524
  shirt_number: gameEvent.data[index].jersey_number,
@@ -1524,7 +1541,7 @@ export default {
1524
1541
  id_team: gameEvent.team_id,
1525
1542
  })
1526
1543
  this.awayTeamLogo =
1527
- 'https://golstatsimages.blob.core.windows.net/teams-80/' + gameEvent.team_id + '.png'
1544
+ getImageUrl('https://golstatsimages.blob.core.windows.net/teams-80/' + gameEvent.team_id + '.png', this.provider)
1528
1545
  }
1529
1546
  this.playersAway.sort((a, b) =>
1530
1547
  a.position_id > b.position_id ? 1 : b.position_id > a.position_id ? -1 : 0,
@@ -2043,7 +2060,9 @@ export default {
2043
2060
  Authorization: `${this.tokenPremium}`,
2044
2061
  },
2045
2062
  })
2046
- const data = await axiosInstanceLineUp.get(this.url + game)
2063
+ const data = await axiosInstanceLineUp.get(
2064
+ getApiUrl(this.url + game, this.provider, this.isDevApis),
2065
+ )
2047
2066
  if (!data || !data.data) {
2048
2067
  throw new Error('There is not lineups for this game.')
2049
2068
  }
@@ -2143,9 +2162,9 @@ export default {
2143
2162
  substitutionOut: false,
2144
2163
  abrevNamePlayer: abrevNamePlayerHome,
2145
2164
  imgTeam:
2146
- 'https://golstatsimages.blob.core.windows.net/teams-80/' +
2165
+ getImageUrl('https://golstatsimages.blob.core.windows.net/teams-80/' +
2147
2166
  data.data.home_team.team_id +
2148
- '.png',
2167
+ '.png', this.provider),
2149
2168
  substitutionMin: '',
2150
2169
  substitutionDataID: '',
2151
2170
  shirt_number: data.data.home_team.starting_lineup[0].lineup[index].jersey_number,
@@ -2168,9 +2187,9 @@ export default {
2168
2187
  id_team: data.data.home_team.team_id,
2169
2188
  })
2170
2189
  this.homeTeamLogo =
2171
- 'https://golstatsimages.blob.core.windows.net/teams-80/' +
2190
+ getImageUrl('https://golstatsimages.blob.core.windows.net/teams-80/' +
2172
2191
  data.data.home_team.team_id +
2173
- '.png'
2192
+ '.png', this.provider)
2174
2193
  }
2175
2194
  this.playersHome.sort((a, b) =>
2176
2195
  a.position_id > b.position_id ? 1 : b.position_id > a.position_id ? -1 : 0,
@@ -2252,9 +2271,9 @@ export default {
2252
2271
  substitutionOut: false,
2253
2272
  abrevNamePlayer: abrevNamePlayerHomeBench,
2254
2273
  imgTeam:
2255
- 'https://golstatsimages.blob.core.windows.net/teams-80/' +
2274
+ getImageUrl('https://golstatsimages.blob.core.windows.net/teams-80/' +
2256
2275
  data.data.home_team.team_id +
2257
- '.png',
2276
+ '.png', this.provider),
2258
2277
  substitutionMin: '',
2259
2278
  substitutionDataID: '',
2260
2279
  shirt_number: data.data.home_team.bench[index].jerseyNumber,
@@ -2378,9 +2397,9 @@ export default {
2378
2397
  substitutionOut: false,
2379
2398
  abrevNamePlayer: abrevNamePlayerHome,
2380
2399
  imgTeam:
2381
- 'https://golstatsimages.blob.core.windows.net/teams-80/' +
2400
+ getImageUrl('https://golstatsimages.blob.core.windows.net/teams-80/' +
2382
2401
  data.data.away_team.team_id +
2383
- '.png',
2402
+ '.png', this.provider),
2384
2403
  substitutionMin: '',
2385
2404
  substitutionDataID: '',
2386
2405
  shirt_number: data.data.away_team.starting_lineup[0].lineup[index].jersey_number,
@@ -2403,9 +2422,9 @@ export default {
2403
2422
  id_team: data.data.away_team.team_id,
2404
2423
  })
2405
2424
  this.homeTeamLogo =
2406
- 'https://golstatsimages.blob.core.windows.net/teams-80/' +
2425
+ getImageUrl('https://golstatsimages.blob.core.windows.net/teams-80/' +
2407
2426
  data.data.away_team.team_id +
2408
- '.png'
2427
+ '.png', this.provider)
2409
2428
  }
2410
2429
  this.playersHome.sort((a, b) =>
2411
2430
  a.position_id > b.position_id ? 1 : b.position_id > a.position_id ? -1 : 0,
@@ -2487,9 +2506,9 @@ export default {
2487
2506
  substitutionOut: false,
2488
2507
  abrevNamePlayer: abrevNamePlayerHomeBench,
2489
2508
  imgTeam:
2490
- 'https://golstatsimages.blob.core.windows.net/teams-80/' +
2509
+ getImageUrl('https://golstatsimages.blob.core.windows.net/teams-80/' +
2491
2510
  data.data.away_team.team_id +
2492
- '.png',
2511
+ '.png', this.provider),
2493
2512
  substitutionMin: '',
2494
2513
  substitutionDataID: '',
2495
2514
  shirt_number: data.data.away_team.bench[index].jerseyNumber,
@@ -2652,7 +2671,9 @@ export default {
2652
2671
  Authorization: `${this.tokenPremium}`,
2653
2672
  },
2654
2673
  })
2655
- const data = await axiosInstanceLineUp.get(this.url + game)
2674
+ const data = await axiosInstanceLineUp.get(
2675
+ getApiUrl(this.url + game, this.provider, this.isDevApis),
2676
+ )
2656
2677
  if (!data || !data.data) {
2657
2678
  throw new Error('There is not lineups for this game.')
2658
2679
  }
@@ -2753,9 +2774,9 @@ export default {
2753
2774
  substitutionOut: false,
2754
2775
  abrevNamePlayer: abrevNamePlayerAway,
2755
2776
  imgTeam:
2756
- 'https://golstatsimages.blob.core.windows.net/teams-80/' +
2777
+ getImageUrl('https://golstatsimages.blob.core.windows.net/teams-80/' +
2757
2778
  data.data.home_team.team_id +
2758
- '.png',
2779
+ '.png', this.provider),
2759
2780
  substitutionMin: '',
2760
2781
  substitutionDataID: '',
2761
2782
  shirt_number: data.data.home_team.starting_lineup[0].lineup[index].jersey_number,
@@ -2778,9 +2799,9 @@ export default {
2778
2799
  id_team: data.data.home_team.team_id,
2779
2800
  })
2780
2801
  this.awayTeamLogo =
2781
- 'https://golstatsimages.blob.core.windows.net/teams-80/' +
2802
+ getImageUrl('https://golstatsimages.blob.core.windows.net/teams-80/' +
2782
2803
  data.data.home_team.team_id +
2783
- '.png'
2804
+ '.png', this.provider)
2784
2805
  }
2785
2806
  this.playersAway.sort((a, b) =>
2786
2807
  a.position_id > b.position_id ? 1 : b.position_id > a.position_id ? -1 : 0,
@@ -2862,9 +2883,9 @@ export default {
2862
2883
  substitutionOut: false,
2863
2884
  abrevNamePlayer: abrevNamePlayerAwayBench,
2864
2885
  imgTeam:
2865
- 'https://golstatsimages.blob.core.windows.net/teams-80/' +
2886
+ getImageUrl('https://golstatsimages.blob.core.windows.net/teams-80/' +
2866
2887
  data.data.home_team.team_id +
2867
- '.png',
2888
+ '.png', this.provider),
2868
2889
  substitutionMin: '',
2869
2890
  substitutionDataID: '',
2870
2891
  shirt_number: data.data.home_team.bench[index].jerseyNumber,
@@ -2982,9 +3003,9 @@ export default {
2982
3003
  substitutionOut: false,
2983
3004
  abrevNamePlayer: abrevNamePlayerAway,
2984
3005
  imgTeam:
2985
- 'https://golstatsimages.blob.core.windows.net/teams-80/' +
3006
+ getImageUrl('https://golstatsimages.blob.core.windows.net/teams-80/' +
2986
3007
  data.data.away_team.team_id +
2987
- '.png',
3008
+ '.png', this.provider),
2988
3009
  substitutionMin: '',
2989
3010
  substitutionDataID: '',
2990
3011
  shirt_number: data.data.away_team.starting_lineup[0].lineup[index].jersey_number,
@@ -3007,9 +3028,9 @@ export default {
3007
3028
  id_team: data.data.away_team.team_id,
3008
3029
  })
3009
3030
  this.awayTeamLogo =
3010
- 'https://golstatsimages.blob.core.windows.net/teams-80/' +
3031
+ getImageUrl('https://golstatsimages.blob.core.windows.net/teams-80/' +
3011
3032
  data.data.away_team.team_id +
3012
- '.png'
3033
+ '.png', this.provider)
3013
3034
  }
3014
3035
  this.playersAway.sort((a, b) =>
3015
3036
  a.position_id > b.position_id ? 1 : b.position_id > a.position_id ? -1 : 0,
@@ -3091,9 +3112,9 @@ export default {
3091
3112
  substitutionOut: false,
3092
3113
  abrevNamePlayer: abrevNamePlayerAwayBench,
3093
3114
  imgTeam:
3094
- 'https://golstatsimages.blob.core.windows.net/teams-80/' +
3115
+ getImageUrl('https://golstatsimages.blob.core.windows.net/teams-80/' +
3095
3116
  data.data.away_team.team_id +
3096
- '.png',
3117
+ '.png', this.provider),
3097
3118
  substitutionMin: '',
3098
3119
  substitutionDataID: '',
3099
3120
  shirt_number: data.data.away_team.bench[index].jerseyNumber,
@@ -3222,11 +3243,15 @@ export default {
3222
3243
  const data =
3223
3244
  responseData ||
3224
3245
  (await axiosInstance.get(
3225
- 'https://fxtcaw9tw6.execute-api.us-east-2.amazonaws.com/prod/historic/seasons/' +
3226
- game.season_id +
3227
- '/games/' +
3228
- game.game_id +
3229
- '/lineups',
3246
+ getApiUrl(
3247
+ 'https://fxtcaw9tw6.execute-api.us-east-2.amazonaws.com/prod/historic/seasons/' +
3248
+ game.season_id +
3249
+ '/games/' +
3250
+ game.game_id +
3251
+ '/lineups',
3252
+ this.provider,
3253
+ this.isDevApis,
3254
+ ),
3230
3255
  ))
3231
3256
  console.log(
3232
3257
  'GAME INFO HEADER --------------------------------------------------------> ',
@@ -3317,7 +3342,13 @@ export default {
3317
3342
  })
3318
3343
  const data =
3319
3344
  responseData ||
3320
- (await axiosInstance.get(this.urlGames + game.season_id + '/games/' + game.game_id))
3345
+ (await axiosInstance.get(
3346
+ getApiUrl(
3347
+ this.urlGames + game.season_id + '/games/' + game.game_id,
3348
+ this.provider,
3349
+ this.isDevApis,
3350
+ ),
3351
+ ))
3321
3352
  this.homeTeam = data.data.teams[0]
3322
3353
  //this.homeTeamAbrev = data.data.teams[0].acronym
3323
3354
  //this.awayTeamAbrev = data.data.teams[1].acronym
@@ -3471,7 +3502,7 @@ export default {
3471
3502
  },
3472
3503
  async getMXM(game) {
3473
3504
  try {
3474
- const getMXMUrl = this.urlMXM + game
3505
+ const getMXMUrl = getApiUrl(this.urlMXM + game, this.provider, this.isDevApis)
3475
3506
  if (getMXMUrl === this.lastMXMUrl) {
3476
3507
  return
3477
3508
  }
@@ -3676,7 +3707,11 @@ export default {
3676
3707
  Authorization: `${this.tokenPremium}`,
3677
3708
  },
3678
3709
  })
3679
- const data = responseData || (await axiosInstanceLineUp.get(this.url + game))
3710
+ const data =
3711
+ responseData ||
3712
+ (await axiosInstanceLineUp.get(
3713
+ getApiUrl(this.url + game, this.provider, this.isDevApis),
3714
+ ))
3680
3715
  if (!data || !data.data) {
3681
3716
  throw new Error('There is not lineups for this game.')
3682
3717
  }
@@ -3764,9 +3799,9 @@ export default {
3764
3799
  substitutionOut: false,
3765
3800
  abrevNamePlayer: abrevNamePlayerHome,
3766
3801
  imgTeam:
3767
- 'https://golstatsimages.blob.core.windows.net/teams-80/' +
3802
+ getImageUrl('https://golstatsimages.blob.core.windows.net/teams-80/' +
3768
3803
  data.data.home_team.team_id +
3769
- '.png',
3804
+ '.png', this.provider),
3770
3805
  substitutionMin: '',
3771
3806
  substitutionDataID: '',
3772
3807
  shirt_number: data.data.home_team.starting_lineup[0].lineup[index].jersey_number,
@@ -3789,13 +3824,13 @@ export default {
3789
3824
  id_team: data.data.home_team.team_id,
3790
3825
  })
3791
3826
  this.homeTeamLogo =
3792
- 'https://golstatsimages.blob.core.windows.net/teams-80/' +
3827
+ getImageUrl('https://golstatsimages.blob.core.windows.net/teams-80/' +
3793
3828
  data.data.home_team.team_id +
3794
- '.png'
3829
+ '.png', this.provider)
3795
3830
  this.homeTeamLogo =
3796
- 'https://golstatsimages.blob.core.windows.net/teams-80/' +
3831
+ getImageUrl('https://golstatsimages.blob.core.windows.net/teams-80/' +
3797
3832
  data.data.home_team.team_id +
3798
- '.png'
3833
+ '.png', this.provider)
3799
3834
  if (this.selectOptMenuheader == 'Historicos') {
3800
3835
  if (data.data.home_team.team_id == this.homeTeam.team_id) {
3801
3836
  this.homeTeamAbrev = this.homeTeam.acronym
@@ -3889,9 +3924,9 @@ export default {
3889
3924
  substitutionOut: false,
3890
3925
  abrevNamePlayer: abrevNamePlayerHomeBench,
3891
3926
  imgTeam:
3892
- 'https://golstatsimages.blob.core.windows.net/teams-80/' +
3927
+ getImageUrl('https://golstatsimages.blob.core.windows.net/teams-80/' +
3893
3928
  data.data.home_team.team_id +
3894
- '.png',
3929
+ '.png', this.provider),
3895
3930
  substitutionMin: '',
3896
3931
  substitutionDataID: '',
3897
3932
  shirt_number: data.data.home_team.bench[index].jerseyNumber,
@@ -3996,9 +4031,9 @@ export default {
3996
4031
  substitutionOut: false,
3997
4032
  abrevNamePlayer: abrevNamePlayerAway,
3998
4033
  imgTeam:
3999
- 'https://golstatsimages.blob.core.windows.net/teams-80/' +
4034
+ getImageUrl('https://golstatsimages.blob.core.windows.net/teams-80/' +
4000
4035
  data.data.away_team.team_id +
4001
- '.png',
4036
+ '.png', this.provider),
4002
4037
  substitutionMin: '',
4003
4038
  substitutionDataID: '',
4004
4039
  shirt_number: data.data.away_team.starting_lineup[0].lineup[index].jersey_number,
@@ -4021,9 +4056,9 @@ export default {
4021
4056
  id_team: data.data.away_team.team_id,
4022
4057
  })
4023
4058
  this.awayTeamLogo =
4024
- 'https://golstatsimages.blob.core.windows.net/teams-80/' +
4059
+ getImageUrl('https://golstatsimages.blob.core.windows.net/teams-80/' +
4025
4060
  data.data.away_team.team_id +
4026
- '.png'
4061
+ '.png', this.provider)
4027
4062
  if (this.selectOptMenuheader == 'Historicos') {
4028
4063
  if (data.data.away_team.team_id == this.visitingTeam.team_id) {
4029
4064
  this.awayTeamAbrev = this.visitingTeam.acronym
@@ -4115,9 +4150,9 @@ export default {
4115
4150
  substitutionOut: false,
4116
4151
  abrevNamePlayer: abrevNamePlayerAwayBench,
4117
4152
  imgTeam:
4118
- 'https://golstatsimages.blob.core.windows.net/teams-80/' +
4153
+ getImageUrl('https://golstatsimages.blob.core.windows.net/teams-80/' +
4119
4154
  data.data.away_team.team_id +
4120
- '.png',
4155
+ '.png', this.provider),
4121
4156
  substitutionMin: '',
4122
4157
  substitutionDataID: '',
4123
4158
  shirt_number: data.data.away_team.bench[index].jerseyNumber,