@golstats/gsc-top-player 1.0.0 → 1.0.2
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/dist/{FilterConditions-55d68355-Dpbg-_AB.js → FilterConditions-55d68355-C5NIJbY6.js} +1 -1
- package/dist/{FilterField-59a73e38-j9kmr0oF.js → FilterField-59a73e38-DO8nYLqs.js} +1 -1
- package/dist/{FilterSubcategories-a9b32cc9-DwhgmIwf.js → FilterSubcategories-a9b32cc9-DlkHni1L.js} +1 -1
- package/dist/gsc-top-player.css +1 -1
- package/dist/gsc-top-player.es.js +1 -1
- package/dist/gsc-top-player.umd.js +11 -15
- package/dist/images/events/logo-fusionado.svg +38 -0
- package/dist/{index-oO1T2oQg.js → index-DfxUh38Q.js} +4115 -5038
- package/dist/logo-team@2x.png +0 -0
- package/dist/player-shadow-02@2x.png +0 -0
- package/dist/player-shadow@2x.png +0 -0
- package/dist/styles.css +906 -921
- package/package.json +1 -1
- package/src/App.vue +7 -12
- package/src/components/comparative/dummy-top-players.js +122 -0
- package/src/components/comparative/gsc-button.vue +8 -19
- package/src/components/comparative/gsc-header-tops.vue +1 -4
- package/src/components/comparative/gsc-row.vue +1624 -1810
- package/src/components/comparative/gsc-top.vue +162 -166
- package/src/components/comparative/gsc-tops-full.vue +11 -1
- package/src/components/gsc-top-player.vue +16 -2
package/package.json
CHANGED
package/src/App.vue
CHANGED
|
@@ -1,22 +1,20 @@
|
|
|
1
1
|
<script setup>
|
|
2
2
|
import GscTopPlayer from './components/gsc-top-player.vue'
|
|
3
|
-
import { categoriesDefault } from './components/comparative/categories.js'
|
|
3
|
+
// import { categoriesDefault } from './components/comparative/categories.js'
|
|
4
|
+
// import { dummyTopPlayers } from './components/comparative/dummy-top-players.js'
|
|
4
5
|
|
|
5
|
-
//
|
|
6
|
-
const selectedCategories =
|
|
6
|
+
// Selecciona una categoría real o la dummy manualmente para pruebas
|
|
7
|
+
const selectedCategories = [{ id: 0, name: 'Categoria' }]
|
|
8
|
+
// const selectedCategories = categoriesDefault.filter((cat) => cat.id === 2)
|
|
7
9
|
</script>
|
|
8
10
|
|
|
9
11
|
<template>
|
|
10
12
|
<div id="app">
|
|
11
13
|
<GscTopPlayer
|
|
12
14
|
:category-view="selectedCategories"
|
|
13
|
-
:can-play-videos="true"
|
|
14
|
-
:carrousel="false"
|
|
15
|
-
:arrow="false"
|
|
16
|
-
:type="1"
|
|
17
15
|
:gamed="90209"
|
|
18
16
|
:season="1909"
|
|
19
|
-
:team-view="
|
|
17
|
+
:team-view="2"
|
|
20
18
|
/>
|
|
21
19
|
</div>
|
|
22
20
|
</template>
|
|
@@ -31,10 +29,7 @@ body {
|
|
|
31
29
|
|
|
32
30
|
<style scoped>
|
|
33
31
|
#app {
|
|
34
|
-
font-family: Avenir, Helvetica, Arial, sans-serif;
|
|
35
|
-
-webkit-font-smoothing: antialiased;
|
|
36
|
-
-moz-osx-font-smoothing: grayscale;
|
|
37
|
-
text-align: center;
|
|
38
32
|
color: #2c3e50;
|
|
33
|
+
width: 100%;
|
|
39
34
|
}
|
|
40
35
|
</style>
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
// Información dummy para mostrar en el top de jugadores
|
|
2
|
+
export const dummyTopPlayers = [
|
|
3
|
+
{
|
|
4
|
+
top: '01',
|
|
5
|
+
name: 'Nombre Jugador',
|
|
6
|
+
name_short: 'Nombre Jugador',
|
|
7
|
+
img: 'https://golstatsimages.blob.core.windows.net/images-library/player-shadow@2x.png',
|
|
8
|
+
id: 9991,
|
|
9
|
+
age: 25,
|
|
10
|
+
team: 'DUM',
|
|
11
|
+
teamid: 1,
|
|
12
|
+
position: 'DEL',
|
|
13
|
+
positionId: 9,
|
|
14
|
+
positionfull: 'Delantero',
|
|
15
|
+
country: 138,
|
|
16
|
+
effectiveness: 100,
|
|
17
|
+
minutes: 90,
|
|
18
|
+
games: 1,
|
|
19
|
+
date: '01-01-1999',
|
|
20
|
+
nationality: 'Mexicano',
|
|
21
|
+
player_country_flag:
|
|
22
|
+
'https://golstatsimages.blob.core.windows.net/images-library/player-shadow-02@2x.png',
|
|
23
|
+
categoryName: 'Pases acertados',
|
|
24
|
+
total: 0,
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
top: '02',
|
|
28
|
+
name: 'Nombre Jugador',
|
|
29
|
+
name_short: 'Nombre Jugador',
|
|
30
|
+
img: 'https://golstatsimages.blob.core.windows.net/images-library/player-shadow-02@2x.png',
|
|
31
|
+
id: 9992,
|
|
32
|
+
age: 27,
|
|
33
|
+
team: 'DUM',
|
|
34
|
+
teamname: 'Dummy FC',
|
|
35
|
+
teamid: 1,
|
|
36
|
+
position: 'MED',
|
|
37
|
+
positionId: 7,
|
|
38
|
+
positionfull: 'Medio',
|
|
39
|
+
country: 138,
|
|
40
|
+
effectiveness: 95,
|
|
41
|
+
minutes: 85,
|
|
42
|
+
games: 1,
|
|
43
|
+
date: '02-02-1998',
|
|
44
|
+
nationality: 'Mexicano',
|
|
45
|
+
player_country_flag:
|
|
46
|
+
'https://golstatsimages.blob.core.windows.net/images-library/player-shadow-02@2x.png',
|
|
47
|
+
categoryName: 'Pases acertados',
|
|
48
|
+
total: 0,
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
top: '03',
|
|
52
|
+
name: 'Nombre Jugador',
|
|
53
|
+
name_short: 'Nombre Jugador',
|
|
54
|
+
img: 'https://golstatsimages.blob.core.windows.net/images-library/player-shadow-02@2x.png',
|
|
55
|
+
id: 9993,
|
|
56
|
+
age: 22,
|
|
57
|
+
team: 'DUM',
|
|
58
|
+
teamname: 'Dummy FC',
|
|
59
|
+
teamid: 1,
|
|
60
|
+
position: 'DEF',
|
|
61
|
+
positionId: 2,
|
|
62
|
+
positionfull: 'Defensa',
|
|
63
|
+
country: 138,
|
|
64
|
+
effectiveness: 90,
|
|
65
|
+
minutes: 80,
|
|
66
|
+
games: 1,
|
|
67
|
+
date: '03-03-2000',
|
|
68
|
+
nationality: 'Mexicano',
|
|
69
|
+
player_country_flag:
|
|
70
|
+
'https://golstatsimages.blob.core.windows.net/images-library/player-shadow-02@2x.png',
|
|
71
|
+
categoryName: 'Pases acertados',
|
|
72
|
+
total: 0,
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
top: '04',
|
|
76
|
+
name: 'Nombre Jugador',
|
|
77
|
+
name_short: 'Nombre Jugador',
|
|
78
|
+
img: 'https://golstatsimages.blob.core.windows.net/images-library/player-shadow-02@2x.png',
|
|
79
|
+
id: 9994,
|
|
80
|
+
age: 24,
|
|
81
|
+
team: 'DUM',
|
|
82
|
+
teamname: 'Dummy FC',
|
|
83
|
+
teamid: 1,
|
|
84
|
+
position: 'POR',
|
|
85
|
+
positionId: 1,
|
|
86
|
+
positionfull: 'Portero',
|
|
87
|
+
country: 138,
|
|
88
|
+
effectiveness: 88,
|
|
89
|
+
minutes: 70,
|
|
90
|
+
games: 1,
|
|
91
|
+
date: '04-04-1997',
|
|
92
|
+
nationality: 'Mexicano',
|
|
93
|
+
player_country_flag:
|
|
94
|
+
'https://golstatsimages.blob.core.windows.net/images-library/player-shadow-02@2x.png',
|
|
95
|
+
categoryName: 'Pases acertados',
|
|
96
|
+
total: 0,
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
top: '05',
|
|
100
|
+
name: 'Nombre Jugador',
|
|
101
|
+
name_short: 'Nombre Jugador',
|
|
102
|
+
img: 'https://golstatsimages.blob.core.windows.net/images-library/player-shadow-02@2x.png',
|
|
103
|
+
id: 9995,
|
|
104
|
+
age: 28,
|
|
105
|
+
team: 'DUM',
|
|
106
|
+
teamname: 'Dummy FC',
|
|
107
|
+
teamid: 1,
|
|
108
|
+
position: 'LAT',
|
|
109
|
+
positionId: 3,
|
|
110
|
+
positionfull: 'Lateral',
|
|
111
|
+
country: 138,
|
|
112
|
+
effectiveness: 85,
|
|
113
|
+
minutes: 60,
|
|
114
|
+
games: 1,
|
|
115
|
+
date: '05-05-1995',
|
|
116
|
+
nationality: 'Mexicano',
|
|
117
|
+
player_country_flag:
|
|
118
|
+
'https://golstatsimages.blob.core.windows.net/images-library/player-shadow-02@2x.png',
|
|
119
|
+
categoryName: 'Pases acertados',
|
|
120
|
+
total: 0,
|
|
121
|
+
},
|
|
122
|
+
]
|
|
@@ -13,16 +13,9 @@
|
|
|
13
13
|
v-if="icon && iconPosition.toLowerCase() === 'left'"
|
|
14
14
|
/>
|
|
15
15
|
<div class="text" v-if="textValue">{{ textValue }}</div>
|
|
16
|
-
<img
|
|
17
|
-
class="icon"
|
|
18
|
-
:style="{ width: iconSize }"
|
|
19
|
-
:src="icon"
|
|
20
|
-
v-if="icon && iconPosition.toLowerCase() === 'right'"
|
|
21
|
-
/>
|
|
22
16
|
</div>
|
|
23
17
|
<div v-if="type == 1" class="button-target" @click="btnClick">
|
|
24
18
|
<div class="stats">
|
|
25
|
-
<img class="iconstats" src="https://golstatsimages.blob.core.windows.net/todoelfut/playdes.png" />
|
|
26
19
|
<div class="numstats">{{ textStat }}</div>
|
|
27
20
|
</div>
|
|
28
21
|
<div class="leyend">{{ textCategory }}</div>
|
|
@@ -36,10 +29,6 @@ export default {
|
|
|
36
29
|
type: { type: Number, default: 0 },
|
|
37
30
|
value: { type: Boolean, default: false },
|
|
38
31
|
textValue: String,
|
|
39
|
-
icon: {
|
|
40
|
-
type: String,
|
|
41
|
-
default: 'https://golstatsimages.blob.core.windows.net/images-library/arrow-btn.png'
|
|
42
|
-
},
|
|
43
32
|
iconPosition: { type: String, default: 'left' },
|
|
44
33
|
iconSize: String,
|
|
45
34
|
mini: { type: Boolean, default: false },
|
|
@@ -67,7 +56,7 @@ export default {
|
|
|
67
56
|
typeOnOff: { type: Boolean, default: false },
|
|
68
57
|
textCategory: String,
|
|
69
58
|
textStat: String,
|
|
70
|
-
marginLeftStat: { type: String, default: '15%' }
|
|
59
|
+
marginLeftStat: { type: String, default: '15%' },
|
|
71
60
|
},
|
|
72
61
|
watch: {
|
|
73
62
|
value: {
|
|
@@ -75,8 +64,8 @@ export default {
|
|
|
75
64
|
immediate: true,
|
|
76
65
|
handler(newValue) {
|
|
77
66
|
this.status = newValue
|
|
78
|
-
}
|
|
79
|
-
}
|
|
67
|
+
},
|
|
68
|
+
},
|
|
80
69
|
},
|
|
81
70
|
data() {
|
|
82
71
|
return { status: false }
|
|
@@ -95,16 +84,16 @@ export default {
|
|
|
95
84
|
cursor: this.cursorType,
|
|
96
85
|
fontSize: this.fontSize,
|
|
97
86
|
fontStyle: this.fontStyle,
|
|
98
|
-
fontFamily: `${this.fontFamily} !important
|
|
87
|
+
fontFamily: `${this.fontFamily} !important`,
|
|
99
88
|
}
|
|
100
89
|
},
|
|
101
90
|
customActive() {
|
|
102
91
|
return {
|
|
103
92
|
backgroundColor: this.activeBackgroundColor,
|
|
104
93
|
color: this.activeColorText,
|
|
105
|
-
border: `${this.activeBorderType} ${this.activeBorderWidth}px ${this.activeBorderColor}
|
|
94
|
+
border: `${this.activeBorderType} ${this.activeBorderWidth}px ${this.activeBorderColor}`,
|
|
106
95
|
}
|
|
107
|
-
}
|
|
96
|
+
},
|
|
108
97
|
},
|
|
109
98
|
methods: {
|
|
110
99
|
btnClick(id) {
|
|
@@ -113,8 +102,8 @@ export default {
|
|
|
113
102
|
this.status = !this.status
|
|
114
103
|
this.$emit('status', this.status)
|
|
115
104
|
}
|
|
116
|
-
}
|
|
117
|
-
}
|
|
105
|
+
},
|
|
106
|
+
},
|
|
118
107
|
}
|
|
119
108
|
</script>
|
|
120
109
|
|
|
@@ -252,10 +252,7 @@ export default {
|
|
|
252
252
|
type: String,
|
|
253
253
|
default: '#cbee6b',
|
|
254
254
|
},
|
|
255
|
-
|
|
256
|
-
type: String,
|
|
257
|
-
default: 'https://golstatsimages.blob.core.windows.net/images-library/arrow-btn.png',
|
|
258
|
-
},
|
|
255
|
+
|
|
259
256
|
iconSize: {
|
|
260
257
|
type: String,
|
|
261
258
|
default: '18px',
|