@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.
Files changed (158) hide show
  1. package/README.md +2 -0
  2. package/dist/atajada.svg +57 -0
  3. package/dist/backarrow.svg +3 -0
  4. package/dist/cancha-3d.png +0 -0
  5. package/dist/contorno-escudo.svg +3 -0
  6. package/dist/css/fonts.css +91 -0
  7. package/dist/escudo1.png +0 -0
  8. package/dist/escudo2.png +0 -0
  9. package/dist/favicon.ico +0 -0
  10. package/dist/field-green-posesion.png +0 -0
  11. package/dist/fin-del-partido.svg +44 -0
  12. package/dist/fonts/BebasNeue-Bold.otf +0 -0
  13. package/dist/fonts/BebasNeue-Bold.ttf +0 -0
  14. package/dist/fonts/BebasNeue-Bold.woff2 +0 -0
  15. package/dist/fonts/BebasNeue-Book.otf +0 -0
  16. package/dist/fonts/BebasNeue-Book.ttf +0 -0
  17. package/dist/fonts/BebasNeue-Book.woff2 +0 -0
  18. package/dist/fonts/BebasNeue-Light.otf +0 -0
  19. package/dist/fonts/BebasNeue-Light.ttf +0 -0
  20. package/dist/fonts/BebasNeue-Light.woff2 +0 -0
  21. package/dist/fonts/BebasNeue-Regular.otf +0 -0
  22. package/dist/fonts/BebasNeue-Regular.ttf +0 -0
  23. package/dist/fonts/BebasNeue-Regular.woff2 +0 -0
  24. package/dist/fonts/BebasNeue-Thin.otf +0 -0
  25. package/dist/fonts/BebasNeue-Thin.ttf +0 -0
  26. package/dist/fonts/BebasNeue-Thin.woff2 +0 -0
  27. package/dist/fonts/Montserrat-Black.otf +0 -0
  28. package/dist/fonts/Montserrat-BlackItalic.otf +0 -0
  29. package/dist/fonts/Montserrat-Bold.otf +0 -0
  30. package/dist/fonts/Montserrat-BoldItalic.otf +0 -0
  31. package/dist/fonts/Montserrat-ExtraBold.otf +0 -0
  32. package/dist/fonts/Montserrat-ExtraBoldItalic.otf +0 -0
  33. package/dist/fonts/Montserrat-ExtraLight.otf +0 -0
  34. package/dist/fonts/Montserrat-ExtraLightItalic.otf +0 -0
  35. package/dist/fonts/Montserrat-Italic.otf +0 -0
  36. package/dist/fonts/Montserrat-Light.otf +0 -0
  37. package/dist/fonts/Montserrat-LightItalic.otf +0 -0
  38. package/dist/fonts/Montserrat-Medium.otf +0 -0
  39. package/dist/fonts/Montserrat-MediumItalic.otf +0 -0
  40. package/dist/fonts/Montserrat-Regular.otf +0 -0
  41. package/dist/fonts/Montserrat-SemiBold.otf +0 -0
  42. package/dist/fonts/Montserrat-SemiBoldItalic.otf +0 -0
  43. package/dist/fonts/Montserrat-Thin.otf +0 -0
  44. package/dist/fonts/Montserrat-ThinItalic.otf +0 -0
  45. package/dist/fonts/Oswald-Bold.ttf +0 -0
  46. package/dist/fonts/Oswald-ExtraLight.ttf +0 -0
  47. package/dist/fonts/Oswald-Light.ttf +0 -0
  48. package/dist/fonts/Oswald-Medium.ttf +0 -0
  49. package/dist/fonts/Oswald-Regular.ttf +0 -0
  50. package/dist/fonts/Oswald-SemiBold.ttf +0 -0
  51. package/dist/fonts/Poppins-Black.otf +0 -0
  52. package/dist/fonts/Poppins-BlackItalic.otf +0 -0
  53. package/dist/fonts/Poppins-Bold.otf +0 -0
  54. package/dist/fonts/Poppins-BoldItalic.otf +0 -0
  55. package/dist/fonts/Poppins-ExtraBold.otf +0 -0
  56. package/dist/fonts/Poppins-ExtraBoldItalic.otf +0 -0
  57. package/dist/fonts/Poppins-ExtraLight.otf +0 -0
  58. package/dist/fonts/Poppins-ExtraLightItalic.otf +0 -0
  59. package/dist/fonts/Poppins-Italic.otf +0 -0
  60. package/dist/fonts/Poppins-Light.otf +0 -0
  61. package/dist/fonts/Poppins-LightItalic.otf +0 -0
  62. package/dist/fonts/Poppins-Medium.otf +0 -0
  63. package/dist/fonts/Poppins-MediumItalic.otf +0 -0
  64. package/dist/fonts/Poppins-Regular.otf +0 -0
  65. package/dist/fonts/Poppins-SemiBold.otf +0 -0
  66. package/dist/fonts/Poppins-SemiBoldItalic.otf +0 -0
  67. package/dist/fonts/Poppins-Thin.otf +0 -0
  68. package/dist/fonts/Poppins-ThinItalic.otf +0 -0
  69. package/dist/fuera-de-lugar.svg +58 -0
  70. package/dist/gol.svg +49 -0
  71. package/dist/group-427321178.svg +8 -0
  72. package/dist/group-427321179.svg +5 -0
  73. package/dist/group-427321501.svg +5 -0
  74. package/dist/gsc-lineups-reports.css +1 -0
  75. package/dist/gsc-lineups-reports.es.js +11272 -0
  76. package/dist/gsc-lineups-reports.umd.js +10 -0
  77. package/dist/icn-arrow-expand.svg +3 -0
  78. package/dist/icn-cambio.svg +27 -0
  79. package/dist/icn-expand-arrow.svg +3 -0
  80. package/dist/icn-expand-arrow1.svg +3 -0
  81. package/dist/icn-falta.svg +43 -0
  82. package/dist/icn-filter.svg +12 -0
  83. package/dist/icn-filter1.svg +12 -0
  84. package/dist/icn-filter2.svg +12 -0
  85. package/dist/icn-golstats.png +0 -0
  86. package/dist/icn-play.svg +10 -0
  87. package/dist/icn-tarjeta-amarilla.svg +4 -0
  88. package/dist/icn-tarjeta-roja.svg +4 -0
  89. package/dist/icn-tiro-a-porteria.svg +36 -0
  90. package/dist/icn-tiros-de-esquina.svg +55 -0
  91. package/dist/images/cancha-horizontal-raw.jpg +0 -0
  92. package/dist/images/cancha-horizontal.jpg +0 -0
  93. package/dist/images/canchaRPH.svg +30 -0
  94. package/dist/images/events/atajada.svg +57 -0
  95. package/dist/images/events/cambio.svg +27 -0
  96. package/dist/images/events/falta.svg +43 -0
  97. package/dist/images/events/favicon.ico +0 -0
  98. package/dist/images/events/fin-del-partido.svg +44 -0
  99. package/dist/images/events/fuera-de-lugar.svg +58 -0
  100. package/dist/images/events/generic.svg +1 -0
  101. package/dist/images/events/gol.svg +49 -0
  102. package/dist/images/events/icn-cambio.svg +6 -0
  103. package/dist/images/events/icn-falta.svg +4 -0
  104. package/dist/images/events/icn-play.svg +3 -0
  105. package/dist/images/events/icn-tarjeta-amarilla.svg +3 -0
  106. package/dist/images/events/icn-tarjeta-roja.svg +3 -0
  107. package/dist/images/events/icn-tiro-a-porteria.svg +36 -0
  108. package/dist/images/events/icn-tiros-de-esquina.svg +18 -0
  109. package/dist/images/events/inicia-el-partido.svg +46 -0
  110. package/dist/images/events/jugada-peligrosa.svg +91 -0
  111. package/dist/images/events/penal-fallado.svg +195 -0
  112. package/dist/images/events/penal-marcado.svg +190 -0
  113. package/dist/images/events/tiempo-agregado.svg +75 -0
  114. package/dist/images/events/tiro-a-porteria.svg +81 -0
  115. package/dist/images/events/tiro-de-esquina.svg +55 -0
  116. package/dist/images/events/var.png +0 -0
  117. package/dist/images/events/var.svg +31 -0
  118. package/dist/inicia-el-partido.svg +46 -0
  119. package/dist/jugada-peligrosa.svg +91 -0
  120. package/dist/line-white.png +0 -0
  121. package/dist/line.png +0 -0
  122. package/dist/next-arrow.svg +3 -0
  123. package/dist/nextarrow.svg +3 -0
  124. package/dist/penal-fallado.svg +195 -0
  125. package/dist/penal-marcado.svg +190 -0
  126. package/dist/play-icn.svg +3 -0
  127. package/dist/shape.svg +3 -0
  128. package/dist/styles.css +1191 -0
  129. package/dist/tiempo-agregado.svg +75 -0
  130. package/dist/tiro-a-porteria.svg +81 -0
  131. package/dist/var.png +0 -0
  132. package/dist/var.svg +31 -0
  133. package/package.json +71 -0
  134. package/src/App.vue +9 -0
  135. package/src/components/Lineup2D/CheckBox.vue +42 -0
  136. package/src/components/Lineup2D/FilterEmpty.vue +49 -0
  137. package/src/components/Lineup2D/Icons.vue +30 -0
  138. package/src/components/Lineup2D/LineupField.vue +120 -0
  139. package/src/components/Lineup2D/LineupFilter.vue +286 -0
  140. package/src/components/Lineup2D/LineupMainHeader.vue +223 -0
  141. package/src/components/Lineup2D/LineupRecentItem.vue +111 -0
  142. package/src/components/Lineup2D/MatchDetails.vue +67 -0
  143. package/src/components/Lineup2D/playerimg.png +0 -0
  144. package/src/components/Lineup2D/tijuana.png +0 -0
  145. package/src/components/gsc-filter.vue +287 -0
  146. package/src/components/gsc-header-historico-lineup.vue +985 -0
  147. package/src/components/gsc-header-postmatch-lineup.vue +968 -0
  148. package/src/components/gsc-header-probables-lineup.vue +1044 -0
  149. package/src/components/gsc-header-recientes-lineup.vue +1873 -0
  150. package/src/components/gsc-lineup-dosd.vue +3752 -0
  151. package/src/components/gsc-lineup-main.vue +65 -0
  152. package/src/components/gsc-lineups-reports.vue +27 -0
  153. package/src/components/gsc-lineups.vue +6562 -0
  154. package/src/components/gsc-player-card.vue +166 -0
  155. package/src/index.js +4 -0
  156. package/src/main.js +4 -0
  157. package/src/types.d.ts +45 -0
  158. 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
@@ -0,0 +1,4 @@
1
+ 'use strict'
2
+ import GSCLineupsReports from './components/gsc-lineups-reports.vue'
3
+
4
+ export { GSCLineupsReports }
package/src/main.js ADDED
@@ -0,0 +1,4 @@
1
+ import { createApp } from 'vue'
2
+ import App from './App.vue'
3
+
4
+ createApp(App).mount('#app')
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
+ }