@golstats/gsc-top-player 1.0.7 → 1.0.8
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 +36 -120
- package/dist/{FilterConditions-55d68355-BUvCA8gG.js → FilterConditions-55d68355-DgmObXIt.js} +1 -1
- package/dist/{FilterField-59a73e38-C85AzksG.js → FilterField-59a73e38-09cJ-DRW.js} +1 -1
- package/dist/{FilterSubcategories-a9b32cc9-B7ERo60D.js → FilterSubcategories-a9b32cc9-DNpw7zPl.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 -11
- package/dist/{index-DyFLI-xL.js → index-BUTX2R4X.js} +964 -960
- package/package.json +1 -1
- package/src/App.vue +15 -7
- package/src/components/comparative/gsc-header-tops.vue +256 -230
- package/src/components/comparative/gsc-row.vue +2 -2
- package/src/components/comparative/gsc-top.vue +1 -1
- package/src/components/comparative/gsc-tops-full.vue +1 -1
- package/src/components/gsc-top-player.vue +6 -3
package/package.json
CHANGED
package/src/App.vue
CHANGED
|
@@ -4,8 +4,8 @@ import { categoriesDefault } from './components/comparative/categories.js'
|
|
|
4
4
|
// import { dummyTopPlayers } from './components/comparative/dummy-top-players.js'
|
|
5
5
|
|
|
6
6
|
// Selecciona una categoría real o la dummy manualmente para pruebas
|
|
7
|
-
const selectedCategories = [{ id: 0, name: 'Categoria' }]
|
|
8
|
-
|
|
7
|
+
//const selectedCategories = [{ id: 0, name: 'Categoria' }]
|
|
8
|
+
const selectedCategories = categoriesDefault.filter((cat) => cat.id === 2)
|
|
9
9
|
|
|
10
10
|
const gameData = {
|
|
11
11
|
gameId: 90209,
|
|
@@ -123,19 +123,27 @@ const gameData2 = {
|
|
|
123
123
|
|
|
124
124
|
<template>
|
|
125
125
|
<div id="app">
|
|
126
|
-
|
|
126
|
+
<!-- Ejemplo con datos dummy (useDummyData: true) -->
|
|
127
|
+
<GscTopPlayer
|
|
127
128
|
:category-view="selectedCategories"
|
|
128
|
-
:gamed="
|
|
129
|
-
:
|
|
129
|
+
:gamed="gameData.id"
|
|
130
|
+
:game="gameData"
|
|
131
|
+
:season="gameData.seasonId"
|
|
130
132
|
:team-view="2"
|
|
131
|
-
|
|
133
|
+
:use-dummy-data="false"
|
|
134
|
+
/>
|
|
135
|
+
|
|
136
|
+
<!-- Ejemplo con datos reales (useDummyData: false) -->
|
|
137
|
+
<!--
|
|
132
138
|
<GscTopPlayer
|
|
133
|
-
:category-view="
|
|
139
|
+
:category-view="[{ id: 1, name: 'Goles' }]"
|
|
134
140
|
:gamed="gameData.id"
|
|
135
141
|
:game="gameData"
|
|
136
142
|
:season="gameData.seasonId"
|
|
137
143
|
:team-view="2"
|
|
144
|
+
:use-dummy-data="false"
|
|
138
145
|
/>
|
|
146
|
+
-->
|
|
139
147
|
</div>
|
|
140
148
|
</template>
|
|
141
149
|
|