@golstats/gsc-lineups-reports 1.0.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 -0
- package/dist/atajada.svg +57 -0
- package/dist/backarrow.svg +3 -0
- package/dist/cancha-3d.png +0 -0
- package/dist/contorno-escudo.svg +3 -0
- package/dist/css/fonts.css +91 -0
- package/dist/escudo1.png +0 -0
- package/dist/escudo2.png +0 -0
- package/dist/favicon.ico +0 -0
- package/dist/field-green-posesion.png +0 -0
- package/dist/fin-del-partido.svg +44 -0
- package/dist/fonts/BebasNeue-Bold.otf +0 -0
- package/dist/fonts/BebasNeue-Bold.ttf +0 -0
- package/dist/fonts/BebasNeue-Bold.woff2 +0 -0
- package/dist/fonts/BebasNeue-Book.otf +0 -0
- package/dist/fonts/BebasNeue-Book.ttf +0 -0
- package/dist/fonts/BebasNeue-Book.woff2 +0 -0
- package/dist/fonts/BebasNeue-Light.otf +0 -0
- package/dist/fonts/BebasNeue-Light.ttf +0 -0
- package/dist/fonts/BebasNeue-Light.woff2 +0 -0
- package/dist/fonts/BebasNeue-Regular.otf +0 -0
- package/dist/fonts/BebasNeue-Regular.ttf +0 -0
- package/dist/fonts/BebasNeue-Regular.woff2 +0 -0
- package/dist/fonts/BebasNeue-Thin.otf +0 -0
- package/dist/fonts/BebasNeue-Thin.ttf +0 -0
- package/dist/fonts/BebasNeue-Thin.woff2 +0 -0
- package/dist/fonts/Montserrat-Black.otf +0 -0
- package/dist/fonts/Montserrat-BlackItalic.otf +0 -0
- package/dist/fonts/Montserrat-Bold.otf +0 -0
- package/dist/fonts/Montserrat-BoldItalic.otf +0 -0
- package/dist/fonts/Montserrat-ExtraBold.otf +0 -0
- package/dist/fonts/Montserrat-ExtraBoldItalic.otf +0 -0
- package/dist/fonts/Montserrat-ExtraLight.otf +0 -0
- package/dist/fonts/Montserrat-ExtraLightItalic.otf +0 -0
- package/dist/fonts/Montserrat-Italic.otf +0 -0
- package/dist/fonts/Montserrat-Light.otf +0 -0
- package/dist/fonts/Montserrat-LightItalic.otf +0 -0
- package/dist/fonts/Montserrat-Medium.otf +0 -0
- package/dist/fonts/Montserrat-MediumItalic.otf +0 -0
- package/dist/fonts/Montserrat-Regular.otf +0 -0
- package/dist/fonts/Montserrat-SemiBold.otf +0 -0
- package/dist/fonts/Montserrat-SemiBoldItalic.otf +0 -0
- package/dist/fonts/Montserrat-Thin.otf +0 -0
- package/dist/fonts/Montserrat-ThinItalic.otf +0 -0
- package/dist/fonts/Oswald-Bold.ttf +0 -0
- package/dist/fonts/Oswald-ExtraLight.ttf +0 -0
- package/dist/fonts/Oswald-Light.ttf +0 -0
- package/dist/fonts/Oswald-Medium.ttf +0 -0
- package/dist/fonts/Oswald-Regular.ttf +0 -0
- package/dist/fonts/Oswald-SemiBold.ttf +0 -0
- package/dist/fonts/Poppins-Black.otf +0 -0
- package/dist/fonts/Poppins-BlackItalic.otf +0 -0
- package/dist/fonts/Poppins-Bold.otf +0 -0
- package/dist/fonts/Poppins-BoldItalic.otf +0 -0
- package/dist/fonts/Poppins-ExtraBold.otf +0 -0
- package/dist/fonts/Poppins-ExtraBoldItalic.otf +0 -0
- package/dist/fonts/Poppins-ExtraLight.otf +0 -0
- package/dist/fonts/Poppins-ExtraLightItalic.otf +0 -0
- package/dist/fonts/Poppins-Italic.otf +0 -0
- package/dist/fonts/Poppins-Light.otf +0 -0
- package/dist/fonts/Poppins-LightItalic.otf +0 -0
- package/dist/fonts/Poppins-Medium.otf +0 -0
- package/dist/fonts/Poppins-MediumItalic.otf +0 -0
- package/dist/fonts/Poppins-Regular.otf +0 -0
- package/dist/fonts/Poppins-SemiBold.otf +0 -0
- package/dist/fonts/Poppins-SemiBoldItalic.otf +0 -0
- package/dist/fonts/Poppins-Thin.otf +0 -0
- package/dist/fonts/Poppins-ThinItalic.otf +0 -0
- package/dist/fuera-de-lugar.svg +58 -0
- package/dist/gol.svg +49 -0
- package/dist/group-427321178.svg +8 -0
- package/dist/group-427321179.svg +5 -0
- package/dist/group-427321501.svg +5 -0
- package/dist/gsc-lineups-reports.css +1 -0
- package/dist/gsc-lineups-reports.es.js +11272 -0
- package/dist/gsc-lineups-reports.umd.js +10 -0
- package/dist/icn-arrow-expand.svg +3 -0
- package/dist/icn-cambio.svg +27 -0
- package/dist/icn-expand-arrow.svg +3 -0
- package/dist/icn-expand-arrow1.svg +3 -0
- package/dist/icn-falta.svg +43 -0
- package/dist/icn-filter.svg +12 -0
- package/dist/icn-filter1.svg +12 -0
- package/dist/icn-filter2.svg +12 -0
- package/dist/icn-golstats.png +0 -0
- package/dist/icn-play.svg +10 -0
- package/dist/icn-tarjeta-amarilla.svg +4 -0
- package/dist/icn-tarjeta-roja.svg +4 -0
- package/dist/icn-tiro-a-porteria.svg +36 -0
- package/dist/icn-tiros-de-esquina.svg +55 -0
- package/dist/images/cancha-horizontal-raw.jpg +0 -0
- package/dist/images/cancha-horizontal.jpg +0 -0
- package/dist/images/canchaRPH.svg +30 -0
- package/dist/images/events/atajada.svg +57 -0
- package/dist/images/events/cambio.svg +27 -0
- package/dist/images/events/falta.svg +43 -0
- package/dist/images/events/favicon.ico +0 -0
- package/dist/images/events/fin-del-partido.svg +44 -0
- package/dist/images/events/fuera-de-lugar.svg +58 -0
- package/dist/images/events/generic.svg +1 -0
- package/dist/images/events/gol.svg +49 -0
- package/dist/images/events/icn-cambio.svg +6 -0
- package/dist/images/events/icn-falta.svg +4 -0
- package/dist/images/events/icn-play.svg +3 -0
- package/dist/images/events/icn-tarjeta-amarilla.svg +3 -0
- package/dist/images/events/icn-tarjeta-roja.svg +3 -0
- package/dist/images/events/icn-tiro-a-porteria.svg +36 -0
- package/dist/images/events/icn-tiros-de-esquina.svg +18 -0
- package/dist/images/events/inicia-el-partido.svg +46 -0
- package/dist/images/events/jugada-peligrosa.svg +91 -0
- package/dist/images/events/penal-fallado.svg +195 -0
- package/dist/images/events/penal-marcado.svg +190 -0
- package/dist/images/events/tiempo-agregado.svg +75 -0
- package/dist/images/events/tiro-a-porteria.svg +81 -0
- package/dist/images/events/tiro-de-esquina.svg +55 -0
- package/dist/images/events/var.png +0 -0
- package/dist/images/events/var.svg +31 -0
- package/dist/inicia-el-partido.svg +46 -0
- package/dist/jugada-peligrosa.svg +91 -0
- package/dist/line-white.png +0 -0
- package/dist/line.png +0 -0
- package/dist/next-arrow.svg +3 -0
- package/dist/nextarrow.svg +3 -0
- package/dist/penal-fallado.svg +195 -0
- package/dist/penal-marcado.svg +190 -0
- package/dist/play-icn.svg +3 -0
- package/dist/shape.svg +3 -0
- package/dist/styles.css +1191 -0
- package/dist/tiempo-agregado.svg +75 -0
- package/dist/tiro-a-porteria.svg +81 -0
- package/dist/var.png +0 -0
- package/dist/var.svg +31 -0
- package/package.json +71 -0
- package/src/App.vue +9 -0
- package/src/components/Lineup2D/CheckBox.vue +42 -0
- package/src/components/Lineup2D/FilterEmpty.vue +49 -0
- package/src/components/Lineup2D/Icons.vue +30 -0
- package/src/components/Lineup2D/LineupField.vue +120 -0
- package/src/components/Lineup2D/LineupFilter.vue +286 -0
- package/src/components/Lineup2D/LineupMainHeader.vue +223 -0
- package/src/components/Lineup2D/LineupRecentItem.vue +111 -0
- package/src/components/Lineup2D/MatchDetails.vue +67 -0
- package/src/components/Lineup2D/playerimg.png +0 -0
- package/src/components/Lineup2D/tijuana.png +0 -0
- package/src/components/gsc-filter.vue +287 -0
- package/src/components/gsc-header-historico-lineup.vue +985 -0
- package/src/components/gsc-header-postmatch-lineup.vue +968 -0
- package/src/components/gsc-header-probables-lineup.vue +1044 -0
- package/src/components/gsc-header-recientes-lineup.vue +1873 -0
- package/src/components/gsc-lineup-dosd.vue +3752 -0
- package/src/components/gsc-lineup-main.vue +65 -0
- package/src/components/gsc-lineups-reports.vue +27 -0
- package/src/components/gsc-lineups.vue +6562 -0
- package/src/components/gsc-player-card.vue +166 -0
- package/src/index.js +4 -0
- package/src/main.js +4 -0
- package/src/types.d.ts +45 -0
- package/src/utils/socketConnection.js +29 -0
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div v-if="type == 1" class="gsc-item-player">
|
|
3
|
+
<div class="gsc-num-player">
|
|
4
|
+
<template v-if="data.shirt < 10">0</template>
|
|
5
|
+
{{ data.shirt }}
|
|
6
|
+
</div>
|
|
7
|
+
<div class="gsc-cont-info-by-player">
|
|
8
|
+
<div class="gsc-cont-info-by-player-row1">
|
|
9
|
+
<div class="shield-player-cont">
|
|
10
|
+
<img class="gsc-logo-player" :src="data.img" />
|
|
11
|
+
</div>
|
|
12
|
+
</div>
|
|
13
|
+
<div class="gsc-cont-info-by-player-row2">
|
|
14
|
+
<div
|
|
15
|
+
class="gsc-cont-info-by-player-row2-line-name"
|
|
16
|
+
:style="
|
|
17
|
+
data.section == 'Historicos' && data.type != 'Postmatch'
|
|
18
|
+
? 'text-decoration: none !important; cursor: default !important'
|
|
19
|
+
: ''
|
|
20
|
+
"
|
|
21
|
+
@click="
|
|
22
|
+
openProfile({
|
|
23
|
+
playerId: data.playerid,
|
|
24
|
+
teamId: data.teamid,
|
|
25
|
+
seasonId: data.season,
|
|
26
|
+
section: data.section,
|
|
27
|
+
type: data.type
|
|
28
|
+
})
|
|
29
|
+
"
|
|
30
|
+
>
|
|
31
|
+
{{ data.name }}
|
|
32
|
+
</div>
|
|
33
|
+
<div class="gsc-cont-info-by-player-row2-line-data">
|
|
34
|
+
<div class="cont-display-gsc">
|
|
35
|
+
<img class="gsc-img-country" :src="data.nation" />
|
|
36
|
+
<div :class="position">{{ data.position }}</div>
|
|
37
|
+
</div>
|
|
38
|
+
<div class="gsc-cont-cards">
|
|
39
|
+
<div class="gsc-yellow_card_div" v-if="data.yellowcard >= 1 && data.redcard == 0"></div>
|
|
40
|
+
<div class="gsc-red_card_div" v-if="data.redcard >= 1 && data.yellowcard == 0"></div>
|
|
41
|
+
<div
|
|
42
|
+
class="gsc-yellowred_card_div"
|
|
43
|
+
v-if="data.yellowcard >= 1 && data.redcard >= 1"
|
|
44
|
+
></div>
|
|
45
|
+
<template v-if="data.yellowcard >= 1 && data.redcard == 0"
|
|
46
|
+
>'{{ data.yellowcardmin }}
|
|
47
|
+
</template>
|
|
48
|
+
<template v-if="data.redcard >= 1">'{{ data.redcardmin }}</template>
|
|
49
|
+
<div class="gsc-goal_card_div_wrapper" v-for="(min, keyM) in data.goalsMin" :key="keyM">
|
|
50
|
+
<div class="gsc-goal_card_div"></div>
|
|
51
|
+
<div>'{{ min }}</div>
|
|
52
|
+
</div>
|
|
53
|
+
<div
|
|
54
|
+
class="gsc-goal_card_div_wrapper"
|
|
55
|
+
v-if="data.substitutionIn || data.substitutionOut"
|
|
56
|
+
>
|
|
57
|
+
<div class="gsc-change_card_div"></div>
|
|
58
|
+
<div>'{{ data.substitutionMin }}</div>
|
|
59
|
+
</div>
|
|
60
|
+
</div>
|
|
61
|
+
</div>
|
|
62
|
+
</div>
|
|
63
|
+
</div>
|
|
64
|
+
</div>
|
|
65
|
+
<div v-if="type == 2" class="gsc-item-player">
|
|
66
|
+
<div class="gsc-num-player2">
|
|
67
|
+
<template v-if="data.shirt < 10">0</template>
|
|
68
|
+
{{ data.shirt }}
|
|
69
|
+
</div>
|
|
70
|
+
<div class="gsc-cont-info-by-player2">
|
|
71
|
+
<div class="gsc-cont-info-by-player-row2">
|
|
72
|
+
<div
|
|
73
|
+
class="gsc-cont-info-by-player-row2-line-name2"
|
|
74
|
+
:style="
|
|
75
|
+
data.section == 'Historicos' && data.type != 'Postmatch'
|
|
76
|
+
? 'text-decoration: none !important; cursor: default !important'
|
|
77
|
+
: ''
|
|
78
|
+
"
|
|
79
|
+
@click="
|
|
80
|
+
openProfile({
|
|
81
|
+
playerId: data.playerid,
|
|
82
|
+
teamId: data.teamid,
|
|
83
|
+
seasonId: data.season,
|
|
84
|
+
section: data.section,
|
|
85
|
+
type: data.type
|
|
86
|
+
})
|
|
87
|
+
"
|
|
88
|
+
>
|
|
89
|
+
{{ data.name }}
|
|
90
|
+
</div>
|
|
91
|
+
<div class="gsc-cont-info-by-player-row2-line-data">
|
|
92
|
+
<div class="gsc-cont-cards2">
|
|
93
|
+
<div class="gsc-yellow_card_div" v-if="data.yellowcard >= 1 && data.redcard == 0"></div>
|
|
94
|
+
<div class="gsc-red_card_div" v-if="data.redcard >= 1 && data.yellowcard == 0"></div>
|
|
95
|
+
<div
|
|
96
|
+
class="gsc-yellowred_card_div"
|
|
97
|
+
v-if="data.yellowcard >= 1 && data.redcard >= 1"
|
|
98
|
+
></div>
|
|
99
|
+
<template v-if="data.yellowcard >= 1 && data.redcard == 0"
|
|
100
|
+
>'{{ data.yellowcardmin }}
|
|
101
|
+
</template>
|
|
102
|
+
<template v-if="data.redcard >= 1">'{{ data.redcardmin }}</template>
|
|
103
|
+
<div class="gsc-goal_card_div_wrapper" v-for="(min, keyM) in data.goalsMin" :key="keyM">
|
|
104
|
+
<div class="gsc-goal_card_div"></div>
|
|
105
|
+
<div>'{{ min }}</div>
|
|
106
|
+
</div>
|
|
107
|
+
<div
|
|
108
|
+
class="gsc-goal_card_div_wrapper"
|
|
109
|
+
v-if="data.substitutionIn || data.substitutionOut"
|
|
110
|
+
>
|
|
111
|
+
<div class="gsc-change_card_div"></div>
|
|
112
|
+
<div>'{{ data.substitutionMin }}</div>
|
|
113
|
+
</div>
|
|
114
|
+
</div>
|
|
115
|
+
<div class="cont-display-gsc">
|
|
116
|
+
<div :class="position">{{ data.position }}</div>
|
|
117
|
+
<img class="gsc-img-country" :src="data.nation" />
|
|
118
|
+
</div>
|
|
119
|
+
</div>
|
|
120
|
+
</div>
|
|
121
|
+
<div class="gsc-cont-info-by-player-row1">
|
|
122
|
+
<div class="shield-player-cont">
|
|
123
|
+
<img class="gsc-logo-player" :src="data.img" />
|
|
124
|
+
</div>
|
|
125
|
+
</div>
|
|
126
|
+
</div>
|
|
127
|
+
</div>
|
|
128
|
+
</template>
|
|
129
|
+
|
|
130
|
+
<script>
|
|
131
|
+
export default {
|
|
132
|
+
name: 'PlayerCard',
|
|
133
|
+
emits: ['open-profile'],
|
|
134
|
+
components: {},
|
|
135
|
+
props: {
|
|
136
|
+
data: {
|
|
137
|
+
type: Object,
|
|
138
|
+
default: () => {}
|
|
139
|
+
},
|
|
140
|
+
position: {
|
|
141
|
+
type: String,
|
|
142
|
+
default: 'gsc-position-player'
|
|
143
|
+
},
|
|
144
|
+
type: {
|
|
145
|
+
type: Number,
|
|
146
|
+
default: 1
|
|
147
|
+
}
|
|
148
|
+
},
|
|
149
|
+
data() {
|
|
150
|
+
return {}
|
|
151
|
+
},
|
|
152
|
+
computed: {},
|
|
153
|
+
methods: {
|
|
154
|
+
openProfile(data) {
|
|
155
|
+
if (data.section !== 'Historicos' || data.type === 'Postmatch') {
|
|
156
|
+
this.$emit('open-profile', data)
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
},
|
|
160
|
+
mounted() {}
|
|
161
|
+
}
|
|
162
|
+
</script>
|
|
163
|
+
|
|
164
|
+
<style scoped>
|
|
165
|
+
@import '/css/fonts.css';
|
|
166
|
+
</style>
|
package/src/index.js
ADDED
package/src/main.js
ADDED
package/src/types.d.ts
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
export interface Team {
|
|
2
|
+
logo: string
|
|
3
|
+
team_id: number
|
|
4
|
+
provisional_logo: string
|
|
5
|
+
colloquial_name: string
|
|
6
|
+
acronym: string
|
|
7
|
+
team_name: string
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export interface GameMinutes {
|
|
11
|
+
home_goals_minutes: number[]
|
|
12
|
+
visiting_goals_minutes: number[]
|
|
13
|
+
home_yellow_cards_minutes: number[]
|
|
14
|
+
away_yellow_cards_minutes: number[]
|
|
15
|
+
home_red_cards_minutes: number[]
|
|
16
|
+
away_red_cards_minutes: number[]
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export interface Game {
|
|
20
|
+
gameId: number
|
|
21
|
+
id: number
|
|
22
|
+
seasonId: number
|
|
23
|
+
regularSeasonId: number
|
|
24
|
+
matchday_name: string
|
|
25
|
+
status: number
|
|
26
|
+
score: number[]
|
|
27
|
+
game_status: number
|
|
28
|
+
dateTimeUTC: string
|
|
29
|
+
homeTeam: Team
|
|
30
|
+
awayTeam: Team
|
|
31
|
+
is_live: number
|
|
32
|
+
minutes: GameMinutes
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export interface TeamSelected {
|
|
36
|
+
teamId: number
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export interface FieldPosesionProps {
|
|
40
|
+
game: Game
|
|
41
|
+
widthSection: number
|
|
42
|
+
teamSelected: TeamSelected
|
|
43
|
+
areInactiveVisible?: boolean
|
|
44
|
+
showTitle?: boolean
|
|
45
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import io from 'socket.io-client'
|
|
2
|
+
|
|
3
|
+
const socket = io('https://golstats-live-server-sockets.azurewebsites.net/', {
|
|
4
|
+
autoConnect: false,
|
|
5
|
+
transports: ['websocket']
|
|
6
|
+
})
|
|
7
|
+
|
|
8
|
+
export function getSocket() {
|
|
9
|
+
return socket
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export function connectSocket() {
|
|
13
|
+
if (socket.disconnected) {
|
|
14
|
+
socket.connect()
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export function disconnectSocket() {
|
|
19
|
+
if (socket.connected) socket.disconnect()
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export function connectChannel(channel, externalSocket) {
|
|
23
|
+
const socket = externalSocket || getSocket()
|
|
24
|
+
if (socket.connected) {
|
|
25
|
+
socket.emit('subscribe', {
|
|
26
|
+
channel
|
|
27
|
+
})
|
|
28
|
+
}
|
|
29
|
+
}
|