@golstats/gsc-lineups-reports 1.1.0 → 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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@golstats/gsc-lineups-reports",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "main": "dist/gsc-lineups-reports.umd.js",
5
5
  "module": "dist/gsc-lineups-reports.es.js",
6
6
  "exports": {
@@ -5,13 +5,13 @@
5
5
  <div class="recent-item__acronym">
6
6
  {{ game.home_team_abbreviation }}
7
7
  </div>
8
- <img :src="'https://golstatsimages.blob.core.windows.net/teams-80/'+game.home_team+'.png'" class="left">
8
+ <img :src="getImageUrl('https://golstatsimages.blob.core.windows.net/teams-80/'+game.home_team+'.png', provider)" class="left">
9
9
  </div>
10
10
  <div class="recent-item__score">
11
11
  {{ game.score[0]}} - {{ game.score[4] }}
12
12
  </div>
13
13
  <div class="recent-item__team">
14
- <img :src="'https://golstatsimages.blob.core.windows.net/teams-80/'+game.away_team+'.png'">
14
+ <img :src="getImageUrl('https://golstatsimages.blob.core.windows.net/teams-80/'+game.away_team+'.png', provider)">
15
15
  <div class="recent-item__acronym">
16
16
  {{ game.away_team_abbreviation }}
17
17
  </div>
@@ -32,11 +32,16 @@
32
32
  </div>
33
33
  </template>
34
34
  <script setup>
35
+ import { getImageUrl } from '@/utils/imageUrl'
35
36
  defineProps({
37
+ provider: {
38
+ type: Number,
39
+ default: 1
40
+ },
36
41
  score: {
37
42
  type: String,
38
43
  default: '2 - 3'
39
- },
44
+ },
40
45
  status: {
41
46
  type: String,
42
47
  default: 'Ganado'
@@ -40,9 +40,9 @@
40
40
  alt=""
41
41
  v-if="gameHistoric.length > 0"
42
42
  :src="
43
- 'https://golstatsimages.blob.core.windows.net/teams-80/' +
43
+ getImageUrl('https://golstatsimages.blob.core.windows.net/teams-80/' +
44
44
  gameHistoric[selectedOption].objgame.home_team +
45
- '.png'
45
+ '.png', provider)
46
46
  "
47
47
  />
48
48
  </div>
@@ -73,9 +73,9 @@
73
73
  alt=""
74
74
  v-if="gameHistoric.length > 0"
75
75
  :src="
76
- 'https://golstatsimages.blob.core.windows.net/teams-80/' +
76
+ getImageUrl('https://golstatsimages.blob.core.windows.net/teams-80/' +
77
77
  gameHistoric[selectedOption].objgame.away_team +
78
- '.png'
78
+ '.png', provider)
79
79
  "
80
80
  />
81
81
  </div>
@@ -146,9 +146,9 @@
146
146
  alt=""
147
147
  v-if="gameHistoric.length > 0"
148
148
  :src="
149
- 'https://golstatsimages.blob.core.windows.net/teams-80/' +
149
+ getImageUrl('https://golstatsimages.blob.core.windows.net/teams-80/' +
150
150
  gameHistoric[selectedOption].objgame.home_team +
151
- '.png'
151
+ '.png', provider)
152
152
  "
153
153
  />
154
154
  </div>
@@ -183,9 +183,9 @@
183
183
  alt=""
184
184
  v-if="gameHistoric.length > 0"
185
185
  :src="
186
- 'https://golstatsimages.blob.core.windows.net/teams-80/' +
186
+ getImageUrl('https://golstatsimages.blob.core.windows.net/teams-80/' +
187
187
  gameHistoric[selectedOption].objgame.away_team +
188
- '.png'
188
+ '.png', provider)
189
189
  "
190
190
  />
191
191
  <div :class="$style.manchesterUnited" v-if="gameHistoric.length > 0">
@@ -236,9 +236,9 @@
236
236
  alt=""
237
237
  v-if="gameHistoric.length > 0"
238
238
  :src="
239
- 'https://golstatsimages.blob.core.windows.net/teams-80/' +
239
+ getImageUrl('https://golstatsimages.blob.core.windows.net/teams-80/' +
240
240
  gameHistoric[selectedOption].objgame.home_team +
241
- '.png'
241
+ '.png', provider)
242
242
  "
243
243
  />
244
244
  </div>
@@ -267,9 +267,9 @@
267
267
  alt=""
268
268
  v-if="gameHistoric.length > 0"
269
269
  :src="
270
- 'https://golstatsimages.blob.core.windows.net/teams-80/' +
270
+ getImageUrl('https://golstatsimages.blob.core.windows.net/teams-80/' +
271
271
  gameHistoric[selectedOption].objgame.away_team +
272
- '.png'
272
+ '.png', provider)
273
273
  "
274
274
  />
275
275
  </div>
@@ -306,9 +306,14 @@ import '@@/@golstats/gsc-carousel/dist/style.css'
306
306
  import { GSCCarousel } from '@golstats/gsc-carousel'
307
307
  import { GscSwitchComponent } from '@golstats/gsc-switch-component'
308
308
  import '@@/@golstats/gsc-switch-component/dist/style.css'
309
+ import { getImageUrl } from '@/utils/imageUrl'
309
310
  export default {
310
311
  components: { GSCCarousel, GscSwitchComponent },
311
312
  props: {
313
+ provider: {
314
+ type: Number,
315
+ default: 1,
316
+ },
312
317
  optionSelected: {
313
318
  type: String,
314
319
  default: 'Historicos',
@@ -379,6 +384,7 @@ export default {
379
384
  },
380
385
  },
381
386
  methods: {
387
+ getImageUrl,
382
388
  changeCarouselItem(val) {
383
389
  this.$emit('input', {
384
390
  season_id: val.selectedItem.season,
@@ -20,9 +20,9 @@
20
20
  :class="$style.imgHomeTeamIcon"
21
21
  alt=""
22
22
  :src="
23
- 'https://golstatsimages.blob.core.windows.net/teams-80/' +
23
+ getImageUrl('https://golstatsimages.blob.core.windows.net/teams-80/' +
24
24
  gameInfo.home_team +
25
- '.png'
25
+ '.png', provider)
26
26
  "
27
27
  />
28
28
  </div>
@@ -61,9 +61,9 @@
61
61
  :class="$style.imgHomeTeamIcon"
62
62
  alt=""
63
63
  :src="
64
- 'https://golstatsimages.blob.core.windows.net/teams-80/' +
64
+ getImageUrl('https://golstatsimages.blob.core.windows.net/teams-80/' +
65
65
  gameInfo.away_team +
66
- '.png'
66
+ '.png', provider)
67
67
  "
68
68
  />
69
69
  </div>
@@ -113,9 +113,9 @@
113
113
  :class="$style.imgHomeTeamIcon"
114
114
  alt=""
115
115
  :src="
116
- 'https://golstatsimages.blob.core.windows.net/teams-80/' +
116
+ getImageUrl('https://golstatsimages.blob.core.windows.net/teams-80/' +
117
117
  gameInfo.home_team +
118
- '.png'
118
+ '.png', provider)
119
119
  "
120
120
  />
121
121
  </div>
@@ -149,9 +149,9 @@
149
149
  :class="$style.imgHomeTeamIcon"
150
150
  alt=""
151
151
  :src="
152
- 'https://golstatsimages.blob.core.windows.net/teams-80/' +
152
+ getImageUrl('https://golstatsimages.blob.core.windows.net/teams-80/' +
153
153
  gameInfo.away_team +
154
- '.png'
154
+ '.png', provider)
155
155
  "
156
156
  />
157
157
  <div :class="$style.manchesterUnited">{{ gameInfo.away_team_abbreviation }}</div>
@@ -180,9 +180,9 @@
180
180
  :class="$style.imgHomeTeamIcon"
181
181
  alt=""
182
182
  :src="
183
- 'https://golstatsimages.blob.core.windows.net/teams-80/' +
183
+ getImageUrl('https://golstatsimages.blob.core.windows.net/teams-80/' +
184
184
  gameInfo.home_team +
185
- '.png'
185
+ '.png', provider)
186
186
  "
187
187
  />
188
188
  </div>
@@ -206,9 +206,9 @@
206
206
  :class="$style.imgHomeTeamIcon"
207
207
  alt=""
208
208
  :src="
209
- 'https://golstatsimages.blob.core.windows.net/teams-80/' +
209
+ getImageUrl('https://golstatsimages.blob.core.windows.net/teams-80/' +
210
210
  gameInfo.away_team +
211
- '.png'
211
+ '.png', provider)
212
212
  "
213
213
  />
214
214
  </div>
@@ -227,9 +227,14 @@ import '@@/@golstats/gsc-carousel/dist/style.css'
227
227
  import { GSCCarousel } from '@golstats/gsc-carousel'
228
228
  import { GscSwitchComponent } from '@golstats/gsc-switch-component'
229
229
  import '@@/@golstats/gsc-switch-component/dist/style.css'
230
+ import { getImageUrl } from '@/utils/imageUrl'
230
231
  export default {
231
232
  components: { GSCCarousel, GscSwitchComponent },
232
233
  props: {
234
+ provider: {
235
+ type: Number,
236
+ default: 1,
237
+ },
233
238
  optionSelected: {
234
239
  type: String,
235
240
  default: 'Historicos',
@@ -300,6 +305,7 @@ export default {
300
305
  },
301
306
  },
302
307
  methods: {
308
+ getImageUrl,
303
309
  remplazarMxJor(val) {
304
310
  return val.replace('M', 'JOR ')
305
311
  },
@@ -32,7 +32,7 @@
32
32
  <img
33
33
  :class="$style.imgHomeTeamIcon"
34
34
  alt=""
35
- :src="'https://golstatsimages.blob.core.windows.net/teams-80/'+gameInfo.home_team+'.png'"
35
+ :src="getImageUrl('https://golstatsimages.blob.core.windows.net/teams-80/'+gameInfo.home_team+'.png', provider)"
36
36
  />
37
37
  </div>
38
38
  </div>
@@ -79,7 +79,7 @@
79
79
  <img
80
80
  :class="$style.imgHomeTeamIcon"
81
81
  alt=""
82
- :src="'https://golstatsimages.blob.core.windows.net/teams-80/'+gameInfo.away_team+'.png'"
82
+ :src="getImageUrl('https://golstatsimages.blob.core.windows.net/teams-80/'+gameInfo.away_team+'.png', provider)"
83
83
  />
84
84
  </div>
85
85
  </div>
@@ -119,7 +119,7 @@
119
119
  <img
120
120
  :class="$style.imgHomeTeamIcon"
121
121
  alt=""
122
- :src="'https://golstatsimages.blob.core.windows.net/teams-80/'+gameInfo.home_team+'.png'"
122
+ :src="getImageUrl('https://golstatsimages.blob.core.windows.net/teams-80/'+gameInfo.home_team+'.png', provider)"
123
123
  />
124
124
  </div>
125
125
  </div>
@@ -164,7 +164,7 @@
164
164
  <img
165
165
  :class="$style.imgHomeTeamIcon"
166
166
  alt=""
167
- :src="'https://golstatsimages.blob.core.windows.net/teams-80/'+gameInfo.away_team+'.png'"
167
+ :src="getImageUrl('https://golstatsimages.blob.core.windows.net/teams-80/'+gameInfo.away_team+'.png', provider)"
168
168
  />
169
169
  </div>
170
170
  </div>
@@ -198,7 +198,7 @@
198
198
  <img
199
199
  :class="$style.imgHomeTeamIcon"
200
200
  alt=""
201
- :src="'https://golstatsimages.blob.core.windows.net/teams-80/'+gameInfo.home_team+'.png'"
201
+ :src="getImageUrl('https://golstatsimages.blob.core.windows.net/teams-80/'+gameInfo.home_team+'.png', provider)"
202
202
  />
203
203
  </div>
204
204
  </div>
@@ -211,7 +211,7 @@
211
211
  <img
212
212
  :class="$style.imgHomeTeamIcon"
213
213
  alt=""
214
- :src="'https://golstatsimages.blob.core.windows.net/teams-80/'+gameInfo.away_team+'.png'"
214
+ :src="getImageUrl('https://golstatsimages.blob.core.windows.net/teams-80/'+gameInfo.away_team+'.png', provider)"
215
215
  />
216
216
  </div>
217
217
  </div>
@@ -277,9 +277,14 @@ import {
277
277
  import '@@/@golstats/gsc-dropdown/dist/style.css'
278
278
  import { GscSwitchComponent } from '@golstats/gsc-switch-component'
279
279
  import '@@/@golstats/gsc-switch-component/dist/style.css'
280
+ import { getImageUrl } from '@/utils/imageUrl'
280
281
  export default {
281
282
  components: { GSCDropdown, GscSwitchComponent},
282
283
  props: {
284
+ provider: {
285
+ type: Number,
286
+ default: 1,
287
+ },
283
288
  optionSelected: {
284
289
  type: String,
285
290
  default: 'Historicos',
@@ -320,13 +325,14 @@ export default {
320
325
  },
321
326
  },
322
327
  methods: {
328
+ getImageUrl,
323
329
  clickOnSelectOption(val){
324
330
  this.$emit('clickOnSelectOption', val);
325
331
  },
326
332
  changeDropdownVisit(val){
327
333
  const indexGame = this.gameRecientes[this.gameInfo.away_team_abbreviation].findIndex(x => x.matchday_id ===val.id);
328
334
  this.rivalVisitAbrev = this.gameInfo.away_team_abbreviation == this.gameRecientes[this.gameInfo.away_team_abbreviation][indexGame].home_team_abbreviation ? this.gameRecientes[this.gameInfo.away_team_abbreviation][indexGame].away_team_abbreviation : this.gameRecientes[this.gameInfo.away_team_abbreviation][indexGame].home_team_abbreviation;
329
- this.rivalVisitImg = this.gameInfo.away_team_abbreviation == this.gameRecientes[this.gameInfo.away_team_abbreviation][indexGame].home_team_abbreviation ? 'https://golstatsimages.blob.core.windows.net/teams-80/'+this.gameRecientes[this.gameInfo.away_team_abbreviation][indexGame].away_team+'.png' : 'https://golstatsimages.blob.core.windows.net/teams-80/'+this.gameRecientes[this.gameInfo.away_team_abbreviation][indexGame].home_team+'.png';
335
+ this.rivalVisitImg = this.gameInfo.away_team_abbreviation == this.gameRecientes[this.gameInfo.away_team_abbreviation][indexGame].home_team_abbreviation ? getImageUrl('https://golstatsimages.blob.core.windows.net/teams-80/'+this.gameRecientes[this.gameInfo.away_team_abbreviation][indexGame].away_team+'.png', this.provider) : getImageUrl('https://golstatsimages.blob.core.windows.net/teams-80/'+this.gameRecientes[this.gameInfo.away_team_abbreviation][indexGame].home_team+'.png', this.provider);
330
336
 
331
337
  this.$emit('changeaway',this.gameRecientes[this.gameInfo.away_team_abbreviation][indexGame]);
332
338
 
@@ -334,7 +340,7 @@ export default {
334
340
  changeDropdownLocal(val){
335
341
  const indexGame = this.gameRecientes[this.gameInfo.home_team_abbreviation].findIndex(x => x.matchday_id ===val.id);
336
342
  this.rivalHomeAbrev = this.gameInfo.home_team_abbreviation == this.gameRecientes[this.gameInfo.home_team_abbreviation][indexGame].away_team_abbreviation ? this.gameRecientes[this.gameInfo.home_team_abbreviation][indexGame].home_team_abbreviation : this.gameRecientes[this.gameInfo.home_team_abbreviation][indexGame].away_team_abbreviation;
337
- this.rivalHomeImg = this.gameInfo.home_team_abbreviation == this.gameRecientes[this.gameInfo.home_team_abbreviation][indexGame].away_team_abbreviation ? 'https://golstatsimages.blob.core.windows.net/teams-80/'+this.gameRecientes[this.gameInfo.home_team_abbreviation][indexGame].home_team+'.png' : 'https://golstatsimages.blob.core.windows.net/teams-80/'+this.gameRecientes[this.gameInfo.home_team_abbreviation][indexGame].away_team+'.png';
343
+ this.rivalHomeImg = this.gameInfo.home_team_abbreviation == this.gameRecientes[this.gameInfo.home_team_abbreviation][indexGame].away_team_abbreviation ? getImageUrl('https://golstatsimages.blob.core.windows.net/teams-80/'+this.gameRecientes[this.gameInfo.home_team_abbreviation][indexGame].home_team+'.png', this.provider) : getImageUrl('https://golstatsimages.blob.core.windows.net/teams-80/'+this.gameRecientes[this.gameInfo.home_team_abbreviation][indexGame].away_team+'.png', this.provider);
338
344
 
339
345
  this.$emit('changehome',this.gameRecientes[this.gameInfo.home_team_abbreviation][indexGame]);
340
346
 
@@ -33,9 +33,9 @@
33
33
  :class="$style.imgHomeTeamIcon"
34
34
  alt=""
35
35
  :src="
36
- 'https://golstatsimages.blob.core.windows.net/teams-80/' +
36
+ getImageUrl('https://golstatsimages.blob.core.windows.net/teams-80/' +
37
37
  gameInfo.home_team +
38
- '.png'
38
+ '.png', provider)
39
39
  "
40
40
  />
41
41
  </div>
@@ -65,9 +65,9 @@
65
65
  :class="$style.imgHomeTeamIcon"
66
66
  alt=""
67
67
  :src="
68
- 'https://golstatsimages.blob.core.windows.net/teams-80/' +
68
+ getImageUrl('https://golstatsimages.blob.core.windows.net/teams-80/' +
69
69
  gameInfo.away_team +
70
- '.png'
70
+ '.png', provider)
71
71
  "
72
72
  />
73
73
  </div>
@@ -159,9 +159,9 @@
159
159
  :class="$style.imgHomeTeamIcon"
160
160
  alt=""
161
161
  :src="
162
- 'https://golstatsimages.blob.core.windows.net/teams-80/' +
162
+ getImageUrl('https://golstatsimages.blob.core.windows.net/teams-80/' +
163
163
  item.home_team +
164
- '.png'
164
+ '.png', provider)
165
165
  "
166
166
  />
167
167
  </div>
@@ -196,9 +196,9 @@
196
196
  :class="$style.imgHomeTeamIcon"
197
197
  alt=""
198
198
  :src="
199
- 'https://golstatsimages.blob.core.windows.net/teams-80/' +
199
+ getImageUrl('https://golstatsimages.blob.core.windows.net/teams-80/' +
200
200
  item.away_team +
201
- '.png'
201
+ '.png', provider)
202
202
  "
203
203
  />
204
204
  <div :class="$style.manchesterUnited">{{ item.away_team_abbreviation }}</div>
@@ -265,9 +265,9 @@
265
265
  :class="$style.imgHomeTeamIcon"
266
266
  alt=""
267
267
  :src="
268
- 'https://golstatsimages.blob.core.windows.net/teams-80/' +
268
+ getImageUrl('https://golstatsimages.blob.core.windows.net/teams-80/' +
269
269
  gameInfo.home_team +
270
- '.png'
270
+ '.png', provider)
271
271
  "
272
272
  />
273
273
  </div>
@@ -297,9 +297,9 @@
297
297
  :class="$style.imgHomeTeamIcon"
298
298
  alt=""
299
299
  :src="
300
- 'https://golstatsimages.blob.core.windows.net/teams-80/' +
300
+ getImageUrl('https://golstatsimages.blob.core.windows.net/teams-80/' +
301
301
  gameInfo.away_team +
302
- '.png'
302
+ '.png', provider)
303
303
  "
304
304
  />
305
305
  </div>
@@ -395,9 +395,9 @@
395
395
  :class="$style.imgHomeTeamIcon"
396
396
  alt=""
397
397
  :src="
398
- 'https://golstatsimages.blob.core.windows.net/teams-80/' +
398
+ getImageUrl('https://golstatsimages.blob.core.windows.net/teams-80/' +
399
399
  item.home_team +
400
- '.png'
400
+ '.png', provider)
401
401
  "
402
402
  />
403
403
  </div>
@@ -432,9 +432,9 @@
432
432
  :class="$style.imgHomeTeamIcon"
433
433
  alt=""
434
434
  :src="
435
- 'https://golstatsimages.blob.core.windows.net/teams-80/' +
435
+ getImageUrl('https://golstatsimages.blob.core.windows.net/teams-80/' +
436
436
  item.away_team +
437
- '.png'
437
+ '.png', provider)
438
438
  "
439
439
  />
440
440
  <div :class="$style.manchesterUnited">{{ item.away_team_abbreviation }}</div>
@@ -490,9 +490,9 @@
490
490
  :class="$style.imgHomeTeamIcon"
491
491
  alt=""
492
492
  :src="
493
- 'https://golstatsimages.blob.core.windows.net/teams-80/' +
493
+ getImageUrl('https://golstatsimages.blob.core.windows.net/teams-80/' +
494
494
  gameInfo.home_team +
495
- '.png'
495
+ '.png', provider)
496
496
  "
497
497
  />
498
498
  </div>
@@ -522,9 +522,9 @@
522
522
  :class="$style.imgHomeTeamIcon"
523
523
  alt=""
524
524
  :src="
525
- 'https://golstatsimages.blob.core.windows.net/teams-80/' +
525
+ getImageUrl('https://golstatsimages.blob.core.windows.net/teams-80/' +
526
526
  gameInfo.away_team +
527
- '.png'
527
+ '.png', provider)
528
528
  "
529
529
  />
530
530
  </div>
@@ -622,9 +622,9 @@
622
622
  :class="$style.imgHomeTeamIcon"
623
623
  alt=""
624
624
  :src="
625
- 'https://golstatsimages.blob.core.windows.net/teams-80/' +
625
+ getImageUrl('https://golstatsimages.blob.core.windows.net/teams-80/' +
626
626
  item.home_team +
627
- '.png'
627
+ '.png', provider)
628
628
  "
629
629
  />
630
630
  </div>
@@ -659,9 +659,9 @@
659
659
  :class="$style.imgHomeTeamIcon"
660
660
  alt=""
661
661
  :src="
662
- 'https://golstatsimages.blob.core.windows.net/teams-80/' +
662
+ getImageUrl('https://golstatsimages.blob.core.windows.net/teams-80/' +
663
663
  item.away_team +
664
- '.png'
664
+ '.png', provider)
665
665
  "
666
666
  />
667
667
  <div :class="$style.manchesterUnited">
@@ -707,6 +707,7 @@ import GSCFilter from './gsc-filter.vue'
707
707
  import GSCMatchDetails from './Lineup2D/MatchDetails.vue'
708
708
  import { GSCSwitchRadio } from '@golstats/gsc-switch-radio'
709
709
  import '@@/@golstats/gsc-switch-radio/dist/style.css'
710
+ import { getImageUrl } from '@/utils/imageUrl'
710
711
  export default {
711
712
  components: {
712
713
  GSCCarousel,
@@ -717,6 +718,10 @@ export default {
717
718
  GSCMatchDetails,
718
719
  },
719
720
  props: {
721
+ provider: {
722
+ type: Number,
723
+ default: 1,
724
+ },
720
725
  widthSize: {
721
726
  type: Number,
722
727
  default: 0,
@@ -1050,6 +1055,7 @@ export default {
1050
1055
  },
1051
1056
  },
1052
1057
  methods: {
1058
+ getImageUrl,
1053
1059
  clickOnValueFilter() {
1054
1060
  this.auxISsection = 0
1055
1061
  },