@golstats/gsc-reports 1.0.0
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 -0
- package/dist/FilterConditions-55d68355-C5NIJbY6-xW04mYhu-DRN4eEO4.js +191 -0
- package/dist/FilterField-59a73e38-DO8nYLqs-Da7H_Fvj-ZuLwDGOM.js +21 -0
- package/dist/FilterSubcategories-a9b32cc9-DlkHni1L-BXid_sIn-BvoU3OqZ.js +42 -0
- package/dist/css/fonts.css +83 -0
- package/dist/fonts/BebasNeue-Bold.otf +0 -0
- package/dist/fonts/BebasNeue-Bold.ttf +0 -0
- package/dist/fonts/BebasNeue-Bold.woff2 +0 -0
- package/dist/fonts/BebasNeue-Book.otf +0 -0
- package/dist/fonts/BebasNeue-Book.ttf +0 -0
- package/dist/fonts/BebasNeue-Book.woff2 +0 -0
- package/dist/fonts/BebasNeue-Light.otf +0 -0
- package/dist/fonts/BebasNeue-Light.ttf +0 -0
- package/dist/fonts/BebasNeue-Light.woff2 +0 -0
- package/dist/fonts/BebasNeue-Regular.otf +0 -0
- package/dist/fonts/BebasNeue-Regular.ttf +0 -0
- package/dist/fonts/BebasNeue-Regular.woff2 +0 -0
- package/dist/fonts/BebasNeue-Thin.otf +0 -0
- package/dist/fonts/BebasNeue-Thin.ttf +0 -0
- package/dist/fonts/BebasNeue-Thin.woff2 +0 -0
- package/dist/fonts/Montserrat-Black.otf +0 -0
- package/dist/fonts/Montserrat-BlackItalic.otf +0 -0
- package/dist/fonts/Montserrat-Bold.otf +0 -0
- package/dist/fonts/Montserrat-BoldItalic.otf +0 -0
- package/dist/fonts/Montserrat-ExtraBold.otf +0 -0
- package/dist/fonts/Montserrat-ExtraBoldItalic.otf +0 -0
- package/dist/fonts/Montserrat-ExtraLight.otf +0 -0
- package/dist/fonts/Montserrat-ExtraLightItalic.otf +0 -0
- package/dist/fonts/Montserrat-Italic.otf +0 -0
- package/dist/fonts/Montserrat-Light.otf +0 -0
- package/dist/fonts/Montserrat-LightItalic.otf +0 -0
- package/dist/fonts/Montserrat-Medium.otf +0 -0
- package/dist/fonts/Montserrat-MediumItalic.otf +0 -0
- package/dist/fonts/Montserrat-Regular.otf +0 -0
- package/dist/fonts/Montserrat-SemiBold.otf +0 -0
- package/dist/fonts/Montserrat-SemiBoldItalic.otf +0 -0
- package/dist/fonts/Montserrat-Thin.otf +0 -0
- package/dist/fonts/Montserrat-ThinItalic.otf +0 -0
- package/dist/fonts/Oswald-Bold.ttf +0 -0
- package/dist/fonts/Oswald-ExtraLight.ttf +0 -0
- package/dist/fonts/Oswald-Light.ttf +0 -0
- package/dist/fonts/Oswald-Medium.ttf +0 -0
- package/dist/fonts/Oswald-Regular.ttf +0 -0
- package/dist/fonts/Oswald-SemiBold.ttf +0 -0
- package/dist/fonts/Poppins-Black.otf +0 -0
- package/dist/fonts/Poppins-BlackItalic.otf +0 -0
- package/dist/fonts/Poppins-Bold.otf +0 -0
- package/dist/fonts/Poppins-BoldItalic.otf +0 -0
- package/dist/fonts/Poppins-ExtraBold.otf +0 -0
- package/dist/fonts/Poppins-ExtraBoldItalic.otf +0 -0
- package/dist/fonts/Poppins-ExtraLight.otf +0 -0
- package/dist/fonts/Poppins-ExtraLightItalic.otf +0 -0
- package/dist/fonts/Poppins-Italic.otf +0 -0
- package/dist/fonts/Poppins-Light.otf +0 -0
- package/dist/fonts/Poppins-LightItalic.otf +0 -0
- package/dist/fonts/Poppins-Medium.otf +0 -0
- package/dist/fonts/Poppins-MediumItalic.otf +0 -0
- package/dist/fonts/Poppins-Regular.otf +0 -0
- package/dist/fonts/Poppins-SemiBold.otf +0 -0
- package/dist/fonts/Poppins-SemiBoldItalic.otf +0 -0
- package/dist/fonts/Poppins-Thin.otf +0 -0
- package/dist/fonts/Poppins-ThinItalic.otf +0 -0
- package/dist/gsc-reports.css +1 -0
- package/dist/gsc-reports.es.js +4 -0
- package/dist/gsc-reports.umd.js +4079 -0
- package/dist/icons/icn-close.svg +5 -0
- package/dist/icons/icn-delete-delete.svg +3 -0
- package/dist/icons/icn-delete.svg +3 -0
- package/dist/icons/icn-download.svg +4 -0
- package/dist/icons/icn-duplicate-white.svg +11 -0
- package/dist/icons/icn-duplicate.svg +11 -0
- package/dist/icons/icn-edit.svg +11 -0
- package/dist/icons/icn-editar-withe.svg +3 -0
- package/dist/icons/icn-rename-white.svg +3 -0
- package/dist/icons/icn-rename.svg +3 -0
- package/dist/icons/icn-report-white.svg +11 -0
- package/dist/icons/icn-report.svg +11 -0
- package/dist/images/background-postmatch-template-01.jpg +0 -0
- package/dist/images/background-postmatch-template-02.jpg +0 -0
- package/dist/images/canchaRPH.svg +30 -0
- package/dist/index-B1R4W2EC.js +128151 -0
- package/dist/reports/background-postmatch-template-01@2x.jpg +0 -0
- package/dist/reports/background-postmatch-template-02@2x.jpg +0 -0
- package/dist/reports/thumbnail-portada-01@2x.png +0 -0
- package/dist/reports/thumbnail-portada-02@2x.png +0 -0
- package/dist/reports/thumbnail-portada-03@2x.png +0 -0
- package/dist/reports/thumbnail-portada-04@2x.png +0 -0
- package/dist/reports/thumbnail-portada-prmatch-01@2x.png +0 -0
- package/dist/reports/thumbnail-portada-prmatch-02@2x.png +0 -0
- package/dist/reports/thumbnail-portada-prmatch-03@2x.png +0 -0
- package/dist/reports/thumbnail-portada-prmatch-04@2x.png +0 -0
- package/dist/thumb1.png +0 -0
- package/dist/thumbnail-portada-01.jpg +0 -0
- package/dist/thumbnail-portada-02.jpg +0 -0
- package/dist/thumbnail-portada-03.jpg +0 -0
- package/dist/thumbnail-portada-04.jpg +0 -0
- package/dist/thumbnail-portada-prmatch-01.jpg +0 -0
- package/dist/thumbnail-portada-prmatch-02.jpg +0 -0
- package/dist/thumbnail-portada-prmatch-03.jpg +0 -0
- package/dist/thumbnail-portada-prmatch-04.jpg +0 -0
- package/package.json +70 -0
- package/src/App.vue +28 -0
- package/src/components/ReportsSection.vue +764 -0
- package/src/components/TemplatesSection.vue +911 -0
- package/src/components/elementsTemplates/ModalCreateTemplate.vue +407 -0
- package/src/components/elementsTemplates/ModalDeleteReport.vue +231 -0
- package/src/components/elementsTemplates/ModalDeleteTemplate.vue +234 -0
- package/src/components/elementsTemplates/ModalGenerarReporte.vue +1151 -0
- package/src/components/elementsTemplates/ModalRenameReporte.vue +315 -0
- package/src/components/elementsTemplates/ModalRenameTemplate.vue +320 -0
- package/src/components/elementsTemplates/ModalSoloEscritorio.vue +83 -0
- package/src/components/elementsTemplates/ModalduplicateTemplate.vue +283 -0
- package/src/components/elementsTemplates/ReportItem.vue +458 -0
- package/src/components/elementsTemplates/TemplateItem.vue +360 -0
- package/src/components/elementsTemplates/TooltipReportOptions.vue +85 -0
- package/src/components/elementsTemplates/TooltipTemplateOptions.vue +141 -0
- package/src/components/filters.vue +935 -0
- package/src/components/gsc-reports.vue +452 -0
- package/src/components/template-report-maker/CoverPage.vue +636 -0
- package/src/components/template-report-maker/CoverSelector.vue +165 -0
- package/src/components/template-report-maker/ReportAndTemplateMaker.vue +675 -0
- package/src/components/template-report-maker/ReportView.vue +66 -0
- package/src/components/template-report-maker/TemplateReportPage.vue +398 -0
- package/src/components/thumbnails-reports/AnalisisPostMatchType1.vue +741 -0
- package/src/components/thumbnails-reports/AnalisisPostMatchType2.vue +743 -0
- package/src/components/thumbnails-reports/AnalisisPostMatchType3.vue +463 -0
- package/src/components/thumbnails-reports/AnalisisPostMatchType4.vue +462 -0
- package/src/components/thumbnails-reports/AnalisisPrematchType1.vue +164 -0
- package/src/components/thumbnails-reports/AnalisisPrematchType2.vue +163 -0
- package/src/components/thumbnails-reports/AnalisisPrematchType3.vue +173 -0
- package/src/components/thumbnails-reports/AnalisisPrematchType4.vue +173 -0
- package/src/index.js +4 -0
- package/src/main.js +4 -0
- package/src/types.d.ts +45 -0
- package/src/utils/dateUtils.js +52 -0
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="prematch-bg">
|
|
3
|
+
<div class="title">Análisis <span class="highlight">Prematch</span></div>
|
|
4
|
+
<div class="subtitle">
|
|
5
|
+
<span class="jornada">{{ traducirJornada(props.report.game.matchday_name) }}</span>
|
|
6
|
+
<span class="fecha"> - {{ formatDate(props.report.game.date_time_utc) }}</span>
|
|
7
|
+
</div>
|
|
8
|
+
<div class="teams-row">
|
|
9
|
+
<div class="team team-local">
|
|
10
|
+
<span class="escudo-svg">
|
|
11
|
+
<img
|
|
12
|
+
width="55px"
|
|
13
|
+
:src="
|
|
14
|
+
'https://golstatsimages.blob.core.windows.net/teams-80/' +
|
|
15
|
+
props.report.game.home_team +
|
|
16
|
+
'.png'
|
|
17
|
+
"
|
|
18
|
+
/>
|
|
19
|
+
</span>
|
|
20
|
+
<span class="team-name">{{ props.report.game.home_team_acronym }}</span>
|
|
21
|
+
</div>
|
|
22
|
+
<div class="team team-visitor">
|
|
23
|
+
<span class="escudo-svg">
|
|
24
|
+
<img
|
|
25
|
+
width="55px"
|
|
26
|
+
:src="
|
|
27
|
+
'https://golstatsimages.blob.core.windows.net/teams-80/' +
|
|
28
|
+
props.report.game.visiting_team +
|
|
29
|
+
'.png'
|
|
30
|
+
"
|
|
31
|
+
/>
|
|
32
|
+
</span>
|
|
33
|
+
<span class="team-name">{{ props.report.game.visiting_team_acronym }}</span>
|
|
34
|
+
</div>
|
|
35
|
+
</div>
|
|
36
|
+
</div>
|
|
37
|
+
</template>
|
|
38
|
+
|
|
39
|
+
<script setup>
|
|
40
|
+
import { formatDate } from '../../utils/dateUtils.js'
|
|
41
|
+
|
|
42
|
+
function traducirJornada(jornada) {
|
|
43
|
+
if (!jornada) return ''
|
|
44
|
+
return jornada
|
|
45
|
+
.replace('Matchday', 'J')
|
|
46
|
+
.replace('de Final', '')
|
|
47
|
+
.replace('Playoffs 1', 'CFI')
|
|
48
|
+
.replace('Playoffs 2', 'CFV')
|
|
49
|
+
.replace('Playoffs 3', 'SI')
|
|
50
|
+
.replace('Playoffs 4', 'SV')
|
|
51
|
+
.replace('Playoffs 5', 'FI')
|
|
52
|
+
.replace('Playoffs 6', 'FV')
|
|
53
|
+
}
|
|
54
|
+
// Aquí puedes agregar props si quieres que los nombres de equipos y jornada sean dinámicos
|
|
55
|
+
const props = defineProps({
|
|
56
|
+
report: {
|
|
57
|
+
type: Object,
|
|
58
|
+
default: () => ({}),
|
|
59
|
+
},
|
|
60
|
+
})
|
|
61
|
+
</script>
|
|
62
|
+
|
|
63
|
+
<style scoped>
|
|
64
|
+
.prematch-bg {
|
|
65
|
+
width: 100%;
|
|
66
|
+
height: 222px;
|
|
67
|
+
/* height: 100vh; */
|
|
68
|
+
background: url('/images/background-postmatch-template-02.jpg');
|
|
69
|
+
background-size: cover;
|
|
70
|
+
background-repeat: no-repeat;
|
|
71
|
+
display: flex;
|
|
72
|
+
flex-direction: column;
|
|
73
|
+
justify-content: center;
|
|
74
|
+
align-items: center;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.header {
|
|
78
|
+
padding: 24px 32px;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.logo {
|
|
82
|
+
height: 40px;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
.main-content {
|
|
86
|
+
display: flex;
|
|
87
|
+
flex-direction: column;
|
|
88
|
+
align-items: center;
|
|
89
|
+
/* Elimina el margin-top para centrar verticalmente */
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
.title {
|
|
93
|
+
font-size: 0.8rem;
|
|
94
|
+
color: #fff;
|
|
95
|
+
margin-top: -10px;
|
|
96
|
+
font-family: Poppins-Regular;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
.highlight {
|
|
100
|
+
font-family: Poppins-Bold;
|
|
101
|
+
color: #fff;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.subtitle {
|
|
105
|
+
font-family: Poppins-Regular;
|
|
106
|
+
margin-top: -8px;
|
|
107
|
+
font-size: 1.1rem;
|
|
108
|
+
color: #e0e0e0;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
.jornada {
|
|
112
|
+
font-family: Poppins-Medium;
|
|
113
|
+
color: #fff;
|
|
114
|
+
font-size: 0.4rem;
|
|
115
|
+
line-height: 2.2;
|
|
116
|
+
letter-spacing: 0.2px;
|
|
117
|
+
opacity: 0.8;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
.fecha {
|
|
121
|
+
font-family: Poppins-Regular;
|
|
122
|
+
color: #e0e0e0;
|
|
123
|
+
opacity: 0.8;
|
|
124
|
+
line-height: 2.2;
|
|
125
|
+
letter-spacing: 0.2px;
|
|
126
|
+
font-size: 0.4rem;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.teams-row {
|
|
130
|
+
display: flex;
|
|
131
|
+
justify-content: center;
|
|
132
|
+
align-items: center;
|
|
133
|
+
gap: 30px;
|
|
134
|
+
margin-top: 20px;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
.team {
|
|
138
|
+
display: flex;
|
|
139
|
+
flex-direction: row;
|
|
140
|
+
align-items: center;
|
|
141
|
+
gap: 12px;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
.team-visitor {
|
|
145
|
+
flex-direction: row-reverse;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
.escudo-svg {
|
|
149
|
+
display: flex;
|
|
150
|
+
justify-content: center;
|
|
151
|
+
align-items: center;
|
|
152
|
+
width: 55px;
|
|
153
|
+
height: 55px;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
.team-name {
|
|
157
|
+
font-size: 1rem;
|
|
158
|
+
font-family: Poppins-bold;
|
|
159
|
+
font-weight: 700;
|
|
160
|
+
color: #fff;
|
|
161
|
+
letter-spacing: 2px;
|
|
162
|
+
}
|
|
163
|
+
</style>
|
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="prematch-bg">
|
|
3
|
+
<div class="title">Análisis <span class="highlight">Prematch</span></div>
|
|
4
|
+
<div class="subtitle">
|
|
5
|
+
<span class="jornada">{{ traducirJornada(props.report.game.matchday_name) }}</span>
|
|
6
|
+
<span class="fecha"> - {{ formatDate(props.report.game.date_time_utc) }}</span>
|
|
7
|
+
</div>
|
|
8
|
+
<div class="teams-row">
|
|
9
|
+
<div class="team team-local">
|
|
10
|
+
<span class="escudo-svg">
|
|
11
|
+
<img
|
|
12
|
+
width="55px"
|
|
13
|
+
:src="
|
|
14
|
+
'https://golstatsimages.blob.core.windows.net/teams-80/' +
|
|
15
|
+
props.report.game.home_team +
|
|
16
|
+
'.png'
|
|
17
|
+
"
|
|
18
|
+
/>
|
|
19
|
+
</span>
|
|
20
|
+
</div>
|
|
21
|
+
|
|
22
|
+
<div class="divider-line">
|
|
23
|
+
<div class="dotted-line"></div>
|
|
24
|
+
</div>
|
|
25
|
+
|
|
26
|
+
<div class="team team-visitor">
|
|
27
|
+
<span class="escudo-svg">
|
|
28
|
+
<img
|
|
29
|
+
width="55px"
|
|
30
|
+
:src="
|
|
31
|
+
'https://golstatsimages.blob.core.windows.net/teams-80/' +
|
|
32
|
+
props.report.game.visiting_team +
|
|
33
|
+
'.png'
|
|
34
|
+
"
|
|
35
|
+
/>
|
|
36
|
+
</span>
|
|
37
|
+
</div>
|
|
38
|
+
</div>
|
|
39
|
+
</div>
|
|
40
|
+
</template>
|
|
41
|
+
|
|
42
|
+
<script setup>
|
|
43
|
+
import { formatDate } from '../../utils/dateUtils.js'
|
|
44
|
+
|
|
45
|
+
function traducirJornada(jornada) {
|
|
46
|
+
if (!jornada) return ''
|
|
47
|
+
return jornada
|
|
48
|
+
.replace('Matchday', 'J')
|
|
49
|
+
.replace('de Final', '')
|
|
50
|
+
.replace('Playoffs 1', 'CFI')
|
|
51
|
+
.replace('Playoffs 2', 'CFV')
|
|
52
|
+
.replace('Playoffs 3', 'SI')
|
|
53
|
+
.replace('Playoffs 4', 'SV')
|
|
54
|
+
.replace('Playoffs 5', 'FI')
|
|
55
|
+
.replace('Playoffs 6', 'FV')
|
|
56
|
+
}
|
|
57
|
+
// Aquí puedes agregar props si quieres que los nombres de equipos y jornada sean dinámicos
|
|
58
|
+
const props = defineProps({
|
|
59
|
+
report: {
|
|
60
|
+
type: Object,
|
|
61
|
+
default: () => ({}),
|
|
62
|
+
},
|
|
63
|
+
})
|
|
64
|
+
</script>
|
|
65
|
+
|
|
66
|
+
<style scoped>
|
|
67
|
+
.prematch-bg {
|
|
68
|
+
width: 100%;
|
|
69
|
+
height: 222px;
|
|
70
|
+
/* height: 100vh; */
|
|
71
|
+
background: url('/images/background-postmatch-template-01.jpg');
|
|
72
|
+
background-size: cover;
|
|
73
|
+
background-repeat: no-repeat;
|
|
74
|
+
display: flex;
|
|
75
|
+
flex-direction: column;
|
|
76
|
+
justify-content: center;
|
|
77
|
+
align-items: center;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.header {
|
|
81
|
+
padding: 24px 32px;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.logo {
|
|
85
|
+
height: 40px;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.main-content {
|
|
89
|
+
display: flex;
|
|
90
|
+
flex-direction: column;
|
|
91
|
+
align-items: center;
|
|
92
|
+
/* Elimina el margin-top para centrar verticalmente */
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.title {
|
|
96
|
+
font-size: 0.8rem;
|
|
97
|
+
color: #fff;
|
|
98
|
+
margin-top: -10px;
|
|
99
|
+
font-family: Poppins-Regular;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.highlight {
|
|
103
|
+
font-family: Poppins-Bold;
|
|
104
|
+
color: #fff;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.subtitle {
|
|
108
|
+
font-family: Poppins-Regular;
|
|
109
|
+
margin-top: -8px;
|
|
110
|
+
font-size: 1.1rem;
|
|
111
|
+
color: #e0e0e0;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.jornada {
|
|
115
|
+
font-family: Poppins-Medium;
|
|
116
|
+
color: #fff;
|
|
117
|
+
font-size: 0.4rem;
|
|
118
|
+
line-height: 2.2;
|
|
119
|
+
letter-spacing: 0.2px;
|
|
120
|
+
opacity: 0.8;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.fecha {
|
|
124
|
+
font-family: Poppins-Regular;
|
|
125
|
+
color: #e0e0e0;
|
|
126
|
+
opacity: 0.8;
|
|
127
|
+
line-height: 2.2;
|
|
128
|
+
letter-spacing: 0.2px;
|
|
129
|
+
font-size: 0.4rem;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.teams-row {
|
|
133
|
+
display: flex;
|
|
134
|
+
justify-content: center;
|
|
135
|
+
align-items: center;
|
|
136
|
+
gap: 15px;
|
|
137
|
+
margin-top: 20px;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
.team {
|
|
141
|
+
display: flex;
|
|
142
|
+
justify-content: center;
|
|
143
|
+
align-items: center;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.divider-line {
|
|
147
|
+
display: flex;
|
|
148
|
+
justify-content: center;
|
|
149
|
+
align-items: center;
|
|
150
|
+
height: 60px;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
.dotted-line {
|
|
154
|
+
width: 2px;
|
|
155
|
+
height: 60px;
|
|
156
|
+
background: repeating-linear-gradient(
|
|
157
|
+
to bottom,
|
|
158
|
+
#fff 0,
|
|
159
|
+
#fff 4px,
|
|
160
|
+
transparent 4px,
|
|
161
|
+
transparent 8px
|
|
162
|
+
);
|
|
163
|
+
opacity: 0.5;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
.escudo-svg {
|
|
167
|
+
display: flex;
|
|
168
|
+
justify-content: center;
|
|
169
|
+
align-items: center;
|
|
170
|
+
width: 55px;
|
|
171
|
+
height: 55px;
|
|
172
|
+
}
|
|
173
|
+
</style>
|
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="prematch-bg">
|
|
3
|
+
<div class="title">Análisis <span class="highlight">Prematch</span></div>
|
|
4
|
+
<div class="subtitle">
|
|
5
|
+
<span class="jornada">{{ traducirJornada(props.report.game.matchday_name) }}</span>
|
|
6
|
+
<span class="fecha"> - {{ formatDate(props.report.game.date_time_utc) }}</span>
|
|
7
|
+
</div>
|
|
8
|
+
<div class="teams-row">
|
|
9
|
+
<div class="team team-local">
|
|
10
|
+
<span class="escudo-svg">
|
|
11
|
+
<img
|
|
12
|
+
width="55px"
|
|
13
|
+
:src="
|
|
14
|
+
'https://golstatsimages.blob.core.windows.net/teams-80/' +
|
|
15
|
+
props.report.game.home_team +
|
|
16
|
+
'.png'
|
|
17
|
+
"
|
|
18
|
+
/>
|
|
19
|
+
</span>
|
|
20
|
+
</div>
|
|
21
|
+
|
|
22
|
+
<div class="divider-line">
|
|
23
|
+
<div class="dotted-line"></div>
|
|
24
|
+
</div>
|
|
25
|
+
|
|
26
|
+
<div class="team team-visitor">
|
|
27
|
+
<span class="escudo-svg">
|
|
28
|
+
<img
|
|
29
|
+
width="55px"
|
|
30
|
+
:src="
|
|
31
|
+
'https://golstatsimages.blob.core.windows.net/teams-80/' +
|
|
32
|
+
props.report.game.visiting_team +
|
|
33
|
+
'.png'
|
|
34
|
+
"
|
|
35
|
+
/>
|
|
36
|
+
</span>
|
|
37
|
+
</div>
|
|
38
|
+
</div>
|
|
39
|
+
</div>
|
|
40
|
+
</template>
|
|
41
|
+
|
|
42
|
+
<script setup>
|
|
43
|
+
import { formatDate } from '../../utils/dateUtils.js'
|
|
44
|
+
|
|
45
|
+
function traducirJornada(jornada) {
|
|
46
|
+
if (!jornada) return ''
|
|
47
|
+
return jornada
|
|
48
|
+
.replace('Matchday', 'J')
|
|
49
|
+
.replace('de Final', '')
|
|
50
|
+
.replace('Playoffs 1', 'CFI')
|
|
51
|
+
.replace('Playoffs 2', 'CFV')
|
|
52
|
+
.replace('Playoffs 3', 'SI')
|
|
53
|
+
.replace('Playoffs 4', 'SV')
|
|
54
|
+
.replace('Playoffs 5', 'FI')
|
|
55
|
+
.replace('Playoffs 6', 'FV')
|
|
56
|
+
}
|
|
57
|
+
// Aquí puedes agregar props si quieres que los nombres de equipos y jornada sean dinámicos
|
|
58
|
+
const props = defineProps({
|
|
59
|
+
report: {
|
|
60
|
+
type: Object,
|
|
61
|
+
default: () => ({}),
|
|
62
|
+
},
|
|
63
|
+
})
|
|
64
|
+
</script>
|
|
65
|
+
|
|
66
|
+
<style scoped>
|
|
67
|
+
.prematch-bg {
|
|
68
|
+
width: 100%;
|
|
69
|
+
height: 222px;
|
|
70
|
+
/* height: 100vh; */
|
|
71
|
+
background: url('/images/background-postmatch-template-02.jpg');
|
|
72
|
+
background-size: cover;
|
|
73
|
+
background-repeat: no-repeat;
|
|
74
|
+
display: flex;
|
|
75
|
+
flex-direction: column;
|
|
76
|
+
justify-content: center;
|
|
77
|
+
align-items: center;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.header {
|
|
81
|
+
padding: 24px 32px;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.logo {
|
|
85
|
+
height: 40px;
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
.main-content {
|
|
89
|
+
display: flex;
|
|
90
|
+
flex-direction: column;
|
|
91
|
+
align-items: center;
|
|
92
|
+
/* Elimina el margin-top para centrar verticalmente */
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.title {
|
|
96
|
+
font-size: 0.8rem;
|
|
97
|
+
color: #fff;
|
|
98
|
+
margin-top: -10px;
|
|
99
|
+
font-family: Poppins-Regular;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.highlight {
|
|
103
|
+
font-family: Poppins-Bold;
|
|
104
|
+
color: #fff;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.subtitle {
|
|
108
|
+
font-family: Poppins-Regular;
|
|
109
|
+
margin-top: -8px;
|
|
110
|
+
font-size: 1.1rem;
|
|
111
|
+
color: #e0e0e0;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
.jornada {
|
|
115
|
+
font-family: Poppins-Medium;
|
|
116
|
+
color: #fff;
|
|
117
|
+
font-size: 0.4rem;
|
|
118
|
+
line-height: 2.2;
|
|
119
|
+
letter-spacing: 0.2px;
|
|
120
|
+
opacity: 0.8;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.fecha {
|
|
124
|
+
font-family: Poppins-Regular;
|
|
125
|
+
color: #e0e0e0;
|
|
126
|
+
opacity: 0.8;
|
|
127
|
+
line-height: 2.2;
|
|
128
|
+
letter-spacing: 0.2px;
|
|
129
|
+
font-size: 0.4rem;
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
.teams-row {
|
|
133
|
+
display: flex;
|
|
134
|
+
justify-content: center;
|
|
135
|
+
align-items: center;
|
|
136
|
+
gap: 15px;
|
|
137
|
+
margin-top: 20px;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
.team {
|
|
141
|
+
display: flex;
|
|
142
|
+
justify-content: center;
|
|
143
|
+
align-items: center;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.divider-line {
|
|
147
|
+
display: flex;
|
|
148
|
+
justify-content: center;
|
|
149
|
+
align-items: center;
|
|
150
|
+
height: 60px;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
.dotted-line {
|
|
154
|
+
width: 2px;
|
|
155
|
+
height: 60px;
|
|
156
|
+
background: repeating-linear-gradient(
|
|
157
|
+
to bottom,
|
|
158
|
+
#fff 0,
|
|
159
|
+
#fff 4px,
|
|
160
|
+
transparent 4px,
|
|
161
|
+
transparent 8px
|
|
162
|
+
);
|
|
163
|
+
opacity: 0.5;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
.escudo-svg {
|
|
167
|
+
display: flex;
|
|
168
|
+
justify-content: center;
|
|
169
|
+
align-items: center;
|
|
170
|
+
width: 55px;
|
|
171
|
+
height: 55px;
|
|
172
|
+
}
|
|
173
|
+
</style>
|
package/src/index.js
ADDED
package/src/main.js
ADDED
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,52 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Convierte una fecha en formato ISO a formato legible
|
|
3
|
+
* @param {string} isoDate - Fecha en formato ISO (ej: "2025-07-11T16:30:00Z")
|
|
4
|
+
* @returns {string} - Fecha en formato "18 jun, 2025"
|
|
5
|
+
*/
|
|
6
|
+
export function formatDate(isoDate) {
|
|
7
|
+
if (!isoDate) return ''
|
|
8
|
+
|
|
9
|
+
const date = new Date(isoDate)
|
|
10
|
+
|
|
11
|
+
// Verificar si la fecha es válida
|
|
12
|
+
if (isNaN(date.getTime())) return ''
|
|
13
|
+
|
|
14
|
+
const day = date.getDate()
|
|
15
|
+
const month = date.toLocaleDateString('es-ES', { month: 'short' })
|
|
16
|
+
const year = date.getFullYear()
|
|
17
|
+
|
|
18
|
+
return `${day} ${month}, ${year}`
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Convierte una fecha en formato ISO a formato de hora
|
|
23
|
+
* @param {string} isoDate - Fecha en formato ISO (ej: "2025-07-11T16:30:00Z")
|
|
24
|
+
* @returns {string} - Hora en formato "16:30"
|
|
25
|
+
*/
|
|
26
|
+
export function formatTime(isoDate) {
|
|
27
|
+
if (!isoDate) return ''
|
|
28
|
+
|
|
29
|
+
const date = new Date(isoDate)
|
|
30
|
+
|
|
31
|
+
// Verificar si la fecha es válida
|
|
32
|
+
if (isNaN(date.getTime())) return ''
|
|
33
|
+
|
|
34
|
+
const hours = date.getHours().toString().padStart(2, '0')
|
|
35
|
+
const minutes = date.getMinutes().toString().padStart(2, '0')
|
|
36
|
+
|
|
37
|
+
return `${hours}:${minutes}`
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* Convierte una fecha en formato ISO a formato completo con fecha y hora
|
|
42
|
+
* @param {string} isoDate - Fecha en formato ISO (ej: "2025-07-11T16:30:00Z")
|
|
43
|
+
* @returns {string} - Fecha y hora en formato "18 jun, 2025 - 16:30"
|
|
44
|
+
*/
|
|
45
|
+
export function formatDateTime(isoDate) {
|
|
46
|
+
if (!isoDate) return ''
|
|
47
|
+
|
|
48
|
+
const date = formatDate(isoDate)
|
|
49
|
+
const time = formatTime(isoDate)
|
|
50
|
+
|
|
51
|
+
return `${date} - ${time}`
|
|
52
|
+
}
|