@golstats/gsc-top-player 1.0.7 → 1.0.9

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@golstats/gsc-top-player",
3
- "version": "1.0.7",
3
+ "version": "1.0.9",
4
4
  "main": "dist/gsc-top-player.umd.js",
5
5
  "module": "dist/gsc-top-player.es.js",
6
6
  "exports": {
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
- //const selectedCategories = categoriesDefault.filter((cat) => cat.id === 2)
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
- <!--<GscTopPlayer
126
+ <!-- Ejemplo con datos dummy (useDummyData: true) -->
127
+ <GscTopPlayer
127
128
  :category-view="selectedCategories"
128
- :gamed="90209"
129
- :season="1909"
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="selectedCategories"
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