@golstats/gsc-reports 1.0.78 → 1.0.80
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 -2
- package/dist/{FilterConditions-55d68355-DMqzcKBO-D2kXmeoL-DEviWylE.js → FilterConditions-55d68355-DMqzcKBO-BAniiYAp-BupK7hCt.js} +1 -1
- package/dist/{FilterField-59a73e38-CNaE03Ge-B0XkVQzG-V94Z81Vi.js → FilterField-59a73e38-CNaE03Ge-C_jOHZXY-lDCHt_1F.js} +1 -1
- package/dist/{FilterSubcategories-a9b32cc9-_h5FCZ4r-Df-aYrQw-VYuSaZOV.js → FilterSubcategories-a9b32cc9-_h5FCZ4r-B83ffZQ0-BBw7f2jE.js} +1 -1
- package/dist/css/fonts.css +83 -83
- package/dist/gsc-reports.css +1 -1
- package/dist/gsc-reports.es.js +1 -1
- package/dist/gsc-reports.umd.js +66 -65
- package/dist/{index-Ddsk52G7.js → index-D3dTwIm2.js} +10982 -10903
- package/package.json +2 -2
- package/src/App.vue +4 -4
- package/src/components/elementsTemplates/FortalezasView.vue +15 -4
- package/src/components/elementsTemplates/ModalConfigurarContenido.vue +1332 -1250
- package/src/components/elementsTemplates/ModalDeleteTemplate.vue +249 -249
- package/src/components/elementsTemplates/ModalSoloEscritorio.vue +83 -83
- package/src/components/elementsTemplates/ModalduplicateTemplate.vue +300 -300
- package/src/components/elementsTemplates/TooltipReportOptions.vue +97 -97
- package/src/components/elementsTemplates/TooltipTemplateOptions.vue +168 -168
- package/src/components/filters.vue +935 -935
- package/src/components/template-report-maker/CoverSelector.vue +165 -165
- package/src/components/template-report-maker/ReportView.vue +66 -66
- package/src/components/thumbnails-reports/AnalisisPostMatchType1.vue +741 -741
- package/src/components/thumbnails-reports/AnalisisPostMatchType2.vue +743 -743
- package/src/components/thumbnails-reports/AnalisisPrematchType3.vue +173 -173
- package/src/components/thumbnails-reports/AnalisisPrematchType4.vue +173 -173
- package/src/index.js +4 -4
- package/src/types.d.ts +45 -45
- package/src/utils/dateUtils.js +52 -52
- package/dist/images/cancha-horizontal.jpg +0 -0
- package/dist/images/canchaRPH.svg +0 -30
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@golstats/gsc-reports",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.80",
|
|
4
4
|
"main": "dist/gsc-reports.umd.js",
|
|
5
5
|
"module": "dist/gsc-reports.es.js",
|
|
6
6
|
"exports": {
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
},
|
|
48
48
|
"dependencies": {
|
|
49
49
|
"@golstats/gsc-checkbox": "^1.0.13",
|
|
50
|
-
"@golstats/gsc-template-report-maker": "^1.0.
|
|
50
|
+
"@golstats/gsc-template-report-maker": "^1.0.114",
|
|
51
51
|
"axios": "^1.10.0",
|
|
52
52
|
"gridstack": "^12.1.1",
|
|
53
53
|
"tiny-emitter": "^2.1.0",
|
package/src/App.vue
CHANGED
|
@@ -27,13 +27,13 @@ function handleModalNext(options) {
|
|
|
27
27
|
<template>
|
|
28
28
|
<div class="container-reports">
|
|
29
29
|
<GSCReports
|
|
30
|
-
:team="
|
|
31
|
-
:user-id="
|
|
32
|
-
token="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.
|
|
30
|
+
:team="950"
|
|
31
|
+
:user-id="481"
|
|
32
|
+
token="eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6NDgxLCJuYW1lIjoiR29sU3RhdHMiLCJ1c2VybmFtZSI6ImdvbHNhbWNoaXZhcyIsImVtYWlsIjoiIiwicHJvdmlkZXJfaWQiOjEsImxvZ2luX2dvbHN0YXRzIjoxLCJpYXQiOjE3NjI1NDQwMDUsImV4cCI6MTc5NDA4MDAwNX0.SGWoxQjwtNKmYVSX0j-0yivKHECqu-C_0Fu-Iae1XEY"
|
|
33
33
|
@toHome="handleToHome"
|
|
34
34
|
/>
|
|
35
35
|
|
|
36
|
-
<!-- Modal de configuración de contenido
|
|
36
|
+
<!-- Modal de configuración de contenido
|
|
37
37
|
<ModalConfigurarContenido
|
|
38
38
|
v-if="showModal"
|
|
39
39
|
:has-rival="true"
|
|
@@ -215,6 +215,11 @@ const props = defineProps({
|
|
|
215
215
|
required: false,
|
|
216
216
|
default: null,
|
|
217
217
|
},
|
|
218
|
+
gameId: {
|
|
219
|
+
type: [String, Number],
|
|
220
|
+
required: false,
|
|
221
|
+
default: null,
|
|
222
|
+
},
|
|
218
223
|
})
|
|
219
224
|
|
|
220
225
|
const emit = defineEmits(['update:modelValue'])
|
|
@@ -326,9 +331,9 @@ watch(
|
|
|
326
331
|
{ deep: true },
|
|
327
332
|
)
|
|
328
333
|
|
|
329
|
-
// Recargar fortalezas cuando cambien seasonId, teamId o token
|
|
334
|
+
// Recargar fortalezas cuando cambien seasonId, teamId, gameId o token
|
|
330
335
|
watch(
|
|
331
|
-
() => [props.seasonId, props.teamId, props.token],
|
|
336
|
+
() => [props.seasonId, props.teamId, props.gameId, props.token],
|
|
332
337
|
() => {
|
|
333
338
|
fetchFortalezas()
|
|
334
339
|
},
|
|
@@ -366,7 +371,10 @@ async function fetchFortalezas() {
|
|
|
366
371
|
error.value = null
|
|
367
372
|
|
|
368
373
|
try {
|
|
369
|
-
|
|
374
|
+
// Construir la URL: si hay gameId, usar la ruta con pregames, si no, usar la ruta sin pregames
|
|
375
|
+
|
|
376
|
+
const url = `https://5c9xc3gwh2.execute-api.us-east-2.amazonaws.com/prod/strengths/seasons/${props.seasonId}/pregames/${props.gameId}/teams/${props.teamId}`
|
|
377
|
+
|
|
370
378
|
const response = await fetch(url, {
|
|
371
379
|
method: 'GET',
|
|
372
380
|
headers: {
|
|
@@ -381,17 +389,20 @@ async function fetchFortalezas() {
|
|
|
381
389
|
|
|
382
390
|
const data = await response.json()
|
|
383
391
|
console.log('data: ', data)
|
|
392
|
+
console.log('nUEVO NUEVO dataaaaaa: ----------->', data)
|
|
384
393
|
|
|
385
394
|
// Guardar los datos originales del API
|
|
386
395
|
fortalezasRawData.value = data.strengths || []
|
|
387
396
|
|
|
397
|
+
console.log('nUEVO NUEVO dataaaaaa:5555555555 ----------->', data.strengths)
|
|
398
|
+
|
|
388
399
|
// Mapear los datos del API al formato esperado por el componente
|
|
389
400
|
fortalezasData.value = data.strengths.map((item) => ({
|
|
390
401
|
id: item.categories,
|
|
391
402
|
name: item.name,
|
|
392
403
|
value: item.total,
|
|
393
404
|
category:
|
|
394
|
-
item.category_type == 1 ? 'Ofensiva' : item.category_type == 2 ? '
|
|
405
|
+
item.category_type == 1 ? 'Ofensiva' : item.category_type == 2 ? 'Defensiva' : 'Posesion',
|
|
395
406
|
ranking: `#${item.league_ranking} en la liga`,
|
|
396
407
|
color: getCategoryColor(item.category_type || 'General'),
|
|
397
408
|
}))
|