@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.
- package/README.md +2 -2
- package/dist/css/fonts.css +91 -91
- package/dist/gsc-lineups-reports.css +1 -1
- package/dist/gsc-lineups-reports.es.js +3073 -2773
- package/dist/gsc-lineups-reports.umd.js +10 -7
- package/dist/images/canchaRPH.svg +30 -30
- package/dist/images/events/atajada.svg +56 -56
- package/dist/images/events/fin-del-partido.svg +43 -43
- package/dist/images/events/fuera-de-lugar.svg +57 -57
- package/dist/images/events/gol.svg +48 -48
- package/dist/images/events/icn-cambio.svg +6 -6
- package/dist/images/events/icn-falta.svg +4 -4
- package/dist/images/events/icn-play.svg +3 -3
- package/dist/images/events/icn-tarjeta-amarilla.svg +3 -3
- package/dist/images/events/icn-tarjeta-roja.svg +3 -3
- package/dist/images/events/icn-tiro-a-porteria.svg +36 -36
- package/dist/images/events/icn-tiros-de-esquina.svg +18 -18
- package/dist/images/events/inicia-el-partido.svg +45 -45
- package/dist/images/events/jugada-peligrosa.svg +90 -90
- package/dist/images/events/penal-fallado.svg +194 -194
- package/dist/images/events/penal-marcado.svg +189 -189
- package/dist/images/events/tiempo-agregado.svg +74 -74
- package/dist/images/events/tiro-a-porteria.svg +80 -80
- package/dist/images/events/var.svg +30 -30
- package/package.json +7 -3
- package/src/components/Lineup2D/CheckBox.vue +42 -42
- package/src/components/Lineup2D/FilterEmpty.vue +48 -48
- package/src/components/Lineup2D/Icons.vue +29 -29
- package/src/components/Lineup2D/LineupField.vue +274 -274
- package/src/components/Lineup2D/LineupFilter.vue +285 -285
- package/src/components/Lineup2D/LineupMainHeader.vue +222 -222
- package/src/components/Lineup2D/LineupRecentItem.vue +115 -110
- package/src/components/Lineup2D/MatchDetails.vue +66 -66
- package/src/components/gsc-filter.vue +286 -286
- package/src/components/gsc-header-historico-lineup.vue +1070 -1064
- package/src/components/gsc-header-postmatch-lineup.vue +1023 -1017
- package/src/components/gsc-header-probables-lineup.vue +1050 -1044
- package/src/components/gsc-header-recientes-lineup.vue +2343 -2337
- package/src/components/gsc-lineup-dosd.vue +3779 -3752
- package/src/components/gsc-lineup-main.vue +81 -65
- package/src/components/gsc-lineups-reports.vue +10 -0
- package/src/components/gsc-lineups.vue +95 -60
- package/src/components/gsc-player-card.vue +166 -166
- package/src/index.js +4 -4
- package/src/main-test.js +42 -0
- package/src/types.d.ts +45 -45
- package/src/utils/apiUrl.js +33 -0
- package/src/utils/imageUrl.js +30 -0
- package/src/utils/socketConnection.js +29 -29
|
@@ -1,111 +1,116 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="recent-item">
|
|
3
|
-
<div class="recent-item__team-info">
|
|
4
|
-
<div class="recent-item__team">
|
|
5
|
-
<div class="recent-item__acronym">
|
|
6
|
-
{{ game.home_team_abbreviation }}
|
|
7
|
-
</div>
|
|
8
|
-
<img :src="'https://golstatsimages.blob.core.windows.net/teams-80/'+game.home_team+'.png'" class="left">
|
|
9
|
-
</div>
|
|
10
|
-
<div class="recent-item__score">
|
|
11
|
-
{{ game.score[0]}} - {{ game.score[4] }}
|
|
12
|
-
</div>
|
|
13
|
-
<div class="recent-item__team">
|
|
14
|
-
<img :src="'https://golstatsimages.blob.core.windows.net/teams-80/'+game.away_team+'.png'">
|
|
15
|
-
<div class="recent-item__acronym">
|
|
16
|
-
{{ game.away_team_abbreviation }}
|
|
17
|
-
</div>
|
|
18
|
-
</div>
|
|
19
|
-
</div>
|
|
20
|
-
<div class="recent-item__status">
|
|
21
|
-
<template v-if="game.home_team_abbreviation == teamSelect">
|
|
22
|
-
<template v-if="game.home_match_result == 1">Ganado</template>
|
|
23
|
-
<template v-if="game.home_match_result == 2">Perdido</template>
|
|
24
|
-
<template v-if="game.home_match_result == 3">Empatado</template>
|
|
25
|
-
</template>
|
|
26
|
-
<template v-if="game.away_team_abbreviation == teamSelect">
|
|
27
|
-
<template v-if="game.visiting_match_result == 1">Ganado</template>
|
|
28
|
-
<template v-if="game.visiting_match_result == 2">Perdido</template>
|
|
29
|
-
<template v-if="game.visiting_match_result == 3">Empatado</template>
|
|
30
|
-
</template>
|
|
31
|
-
</div>
|
|
32
|
-
</div>
|
|
33
|
-
</template>
|
|
34
|
-
<script setup>
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
&__team {
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
1
|
+
<template>
|
|
2
|
+
<div class="recent-item">
|
|
3
|
+
<div class="recent-item__team-info">
|
|
4
|
+
<div class="recent-item__team">
|
|
5
|
+
<div class="recent-item__acronym">
|
|
6
|
+
{{ game.home_team_abbreviation }}
|
|
7
|
+
</div>
|
|
8
|
+
<img :src="getImageUrl('https://golstatsimages.blob.core.windows.net/teams-80/'+game.home_team+'.png', provider)" class="left">
|
|
9
|
+
</div>
|
|
10
|
+
<div class="recent-item__score">
|
|
11
|
+
{{ game.score[0]}} - {{ game.score[4] }}
|
|
12
|
+
</div>
|
|
13
|
+
<div class="recent-item__team">
|
|
14
|
+
<img :src="getImageUrl('https://golstatsimages.blob.core.windows.net/teams-80/'+game.away_team+'.png', provider)">
|
|
15
|
+
<div class="recent-item__acronym">
|
|
16
|
+
{{ game.away_team_abbreviation }}
|
|
17
|
+
</div>
|
|
18
|
+
</div>
|
|
19
|
+
</div>
|
|
20
|
+
<div class="recent-item__status">
|
|
21
|
+
<template v-if="game.home_team_abbreviation == teamSelect">
|
|
22
|
+
<template v-if="game.home_match_result == 1">Ganado</template>
|
|
23
|
+
<template v-if="game.home_match_result == 2">Perdido</template>
|
|
24
|
+
<template v-if="game.home_match_result == 3">Empatado</template>
|
|
25
|
+
</template>
|
|
26
|
+
<template v-if="game.away_team_abbreviation == teamSelect">
|
|
27
|
+
<template v-if="game.visiting_match_result == 1">Ganado</template>
|
|
28
|
+
<template v-if="game.visiting_match_result == 2">Perdido</template>
|
|
29
|
+
<template v-if="game.visiting_match_result == 3">Empatado</template>
|
|
30
|
+
</template>
|
|
31
|
+
</div>
|
|
32
|
+
</div>
|
|
33
|
+
</template>
|
|
34
|
+
<script setup>
|
|
35
|
+
import { getImageUrl } from '@/utils/imageUrl'
|
|
36
|
+
defineProps({
|
|
37
|
+
provider: {
|
|
38
|
+
type: Number,
|
|
39
|
+
default: 1
|
|
40
|
+
},
|
|
41
|
+
score: {
|
|
42
|
+
type: String,
|
|
43
|
+
default: '2 - 3'
|
|
44
|
+
},
|
|
45
|
+
status: {
|
|
46
|
+
type: String,
|
|
47
|
+
default: 'Ganado'
|
|
48
|
+
},
|
|
49
|
+
game: {
|
|
50
|
+
type: Object,
|
|
51
|
+
default: () => ({})
|
|
52
|
+
},
|
|
53
|
+
teamSelect: {
|
|
54
|
+
type: String,
|
|
55
|
+
default: '1'
|
|
56
|
+
}
|
|
57
|
+
})
|
|
58
|
+
</script>
|
|
59
|
+
<style lang="scss" scoped>
|
|
60
|
+
.recent-item {
|
|
61
|
+
width: 200px;
|
|
62
|
+
max-width: 264px;
|
|
63
|
+
margin: auto;
|
|
64
|
+
&__team-info {
|
|
65
|
+
margin-bottom: 10px;
|
|
66
|
+
display: flex;
|
|
67
|
+
justify-content: space-between;
|
|
68
|
+
}
|
|
69
|
+
&__team {
|
|
70
|
+
display: flex;
|
|
71
|
+
align-items: center;
|
|
72
|
+
}
|
|
73
|
+
&__acronym {
|
|
74
|
+
color: rgba(255, 255, 255, 0.70);
|
|
75
|
+
font-family: Poppins, sans-serif;
|
|
76
|
+
font-size: 14px;
|
|
77
|
+
font-weight: 500;
|
|
78
|
+
line-height: 20.065px; /* 143.322% */
|
|
79
|
+
letter-spacing: -0.14px;
|
|
80
|
+
}
|
|
81
|
+
&__score {
|
|
82
|
+
border-radius: 17.398px;
|
|
83
|
+
border: 0.5px solid #CBEE6B;
|
|
84
|
+
background: rgba(255, 255, 255, 0.10);
|
|
85
|
+
width: 70px;
|
|
86
|
+
height: 32px;
|
|
87
|
+
display: flex;
|
|
88
|
+
justify-content: center;
|
|
89
|
+
align-items: center;
|
|
90
|
+
color: #FFF;
|
|
91
|
+
text-align: center;
|
|
92
|
+
font-family: Inter, sans-serif;
|
|
93
|
+
font-size: 15.223px;
|
|
94
|
+
font-style: normal;
|
|
95
|
+
font-weight: 600;
|
|
96
|
+
line-height: normal;
|
|
97
|
+
}
|
|
98
|
+
img {
|
|
99
|
+
height: 29px;
|
|
100
|
+
width: 29px;
|
|
101
|
+
margin: 0 5px 0 0;
|
|
102
|
+
}
|
|
103
|
+
.left {
|
|
104
|
+
margin: 0 0 0 5px;
|
|
105
|
+
}
|
|
106
|
+
&__status {
|
|
107
|
+
margin: auto;
|
|
108
|
+
color: rgba(255, 255, 255, 0.70);
|
|
109
|
+
text-align: center;
|
|
110
|
+
font-family: Poppins, sans-serif;
|
|
111
|
+
font-size: 12px;
|
|
112
|
+
font-style: normal;
|
|
113
|
+
font-weight: 500;
|
|
114
|
+
}
|
|
115
|
+
}
|
|
111
116
|
</style>
|
|
@@ -1,67 +1,67 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="match-details">
|
|
3
|
-
<ul class="match-details__list">
|
|
4
|
-
<li v-for="detail in localDetails">
|
|
5
|
-
<Icons class="icon" :icon="detail.icon" />
|
|
6
|
-
<span>{{ detail.description }}</span>
|
|
7
|
-
</li>
|
|
8
|
-
</ul>
|
|
9
|
-
<ul class="match-details__list right">
|
|
10
|
-
<li v-for="detail in foreignDetails">
|
|
11
|
-
<span>{{ detail.description }}</span>
|
|
12
|
-
<Icons class="icon" :icon="detail.icon" />
|
|
13
|
-
</li>
|
|
14
|
-
</ul>
|
|
15
|
-
</div>
|
|
16
|
-
</template>
|
|
17
|
-
<script setup>
|
|
18
|
-
import Icons from '@/components/Lineup2D/Icons.vue'
|
|
19
|
-
defineProps({
|
|
20
|
-
localDetails: {
|
|
21
|
-
type: Array,
|
|
22
|
-
default: () => []
|
|
23
|
-
},
|
|
24
|
-
foreignDetails: {
|
|
25
|
-
type: Array,
|
|
26
|
-
default: () => []
|
|
27
|
-
}
|
|
28
|
-
})
|
|
29
|
-
</script>
|
|
30
|
-
<style lang="scss" scoped>
|
|
31
|
-
.match-details {
|
|
32
|
-
max-width: 195px;
|
|
33
|
-
widows: 100%;
|
|
34
|
-
margin: auto;
|
|
35
|
-
display: flex;
|
|
36
|
-
justify-content: space-between;
|
|
37
|
-
&__list {
|
|
38
|
-
list-style: none;
|
|
39
|
-
padding: 0;
|
|
40
|
-
margin: 0;
|
|
41
|
-
li {
|
|
42
|
-
color: rgba(255, 255, 255, 0.70);
|
|
43
|
-
font-family: Poppins, sans-serif;
|
|
44
|
-
font-size: 9px;
|
|
45
|
-
display: flex;
|
|
46
|
-
align-items: center;
|
|
47
|
-
font-weight: 500;
|
|
48
|
-
text-align: right;
|
|
49
|
-
line-height: 19.5px; /* 216.667% */
|
|
50
|
-
letter-spacing: -0.09px;
|
|
51
|
-
text-transform: capitalize;
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
.icon {
|
|
55
|
-
margin-right: 9px;
|
|
56
|
-
width: 9px;
|
|
57
|
-
}
|
|
58
|
-
&__list.right li {
|
|
59
|
-
text-align: left;
|
|
60
|
-
justify-content: flex-end;
|
|
61
|
-
}
|
|
62
|
-
&__list.right .icon {
|
|
63
|
-
margin-right: unset;
|
|
64
|
-
margin-left: 9px;
|
|
65
|
-
}
|
|
66
|
-
}
|
|
1
|
+
<template>
|
|
2
|
+
<div class="match-details">
|
|
3
|
+
<ul class="match-details__list">
|
|
4
|
+
<li v-for="detail in localDetails">
|
|
5
|
+
<Icons class="icon" :icon="detail.icon" />
|
|
6
|
+
<span>{{ detail.description }}</span>
|
|
7
|
+
</li>
|
|
8
|
+
</ul>
|
|
9
|
+
<ul class="match-details__list right">
|
|
10
|
+
<li v-for="detail in foreignDetails">
|
|
11
|
+
<span>{{ detail.description }}</span>
|
|
12
|
+
<Icons class="icon" :icon="detail.icon" />
|
|
13
|
+
</li>
|
|
14
|
+
</ul>
|
|
15
|
+
</div>
|
|
16
|
+
</template>
|
|
17
|
+
<script setup>
|
|
18
|
+
import Icons from '@/components/Lineup2D/Icons.vue'
|
|
19
|
+
defineProps({
|
|
20
|
+
localDetails: {
|
|
21
|
+
type: Array,
|
|
22
|
+
default: () => []
|
|
23
|
+
},
|
|
24
|
+
foreignDetails: {
|
|
25
|
+
type: Array,
|
|
26
|
+
default: () => []
|
|
27
|
+
}
|
|
28
|
+
})
|
|
29
|
+
</script>
|
|
30
|
+
<style lang="scss" scoped>
|
|
31
|
+
.match-details {
|
|
32
|
+
max-width: 195px;
|
|
33
|
+
widows: 100%;
|
|
34
|
+
margin: auto;
|
|
35
|
+
display: flex;
|
|
36
|
+
justify-content: space-between;
|
|
37
|
+
&__list {
|
|
38
|
+
list-style: none;
|
|
39
|
+
padding: 0;
|
|
40
|
+
margin: 0;
|
|
41
|
+
li {
|
|
42
|
+
color: rgba(255, 255, 255, 0.70);
|
|
43
|
+
font-family: Poppins, sans-serif;
|
|
44
|
+
font-size: 9px;
|
|
45
|
+
display: flex;
|
|
46
|
+
align-items: center;
|
|
47
|
+
font-weight: 500;
|
|
48
|
+
text-align: right;
|
|
49
|
+
line-height: 19.5px; /* 216.667% */
|
|
50
|
+
letter-spacing: -0.09px;
|
|
51
|
+
text-transform: capitalize;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
.icon {
|
|
55
|
+
margin-right: 9px;
|
|
56
|
+
width: 9px;
|
|
57
|
+
}
|
|
58
|
+
&__list.right li {
|
|
59
|
+
text-align: left;
|
|
60
|
+
justify-content: flex-end;
|
|
61
|
+
}
|
|
62
|
+
&__list.right .icon {
|
|
63
|
+
margin-right: unset;
|
|
64
|
+
margin-left: 9px;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
67
|
</style>
|