@vixoniccom/footbal-score 1.3.0-beta.0 → 1.4.0-dev.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.
Files changed (44) hide show
  1. package/.github/workflows/sonarqube.yml +30 -0
  2. package/CHANGELOG.md +25 -0
  3. package/build/index.html +1 -0
  4. package/build/main.js +2 -0
  5. package/build/main.js.LICENSE.txt +59 -0
  6. package/build/test/downloads/4a9bcc4e-f398-4317-9f0f-afa8bcef1a4f.png +0 -0
  7. package/build/test/downloads/7953953c-7029-4730-ae4d-cff4abd5288f.ttf +0 -0
  8. package/build/test/downloads/Roboto-Bold.ttf +0 -0
  9. package/build/test/downloads/Spring in May.ttf +0 -0
  10. package/build/test/downloads/c705a739-312e-4334-9231-e73a05e9d382.ttf +0 -0
  11. package/build/test/downloads/cumples.png +0 -0
  12. package/build/test/downloads/d1093778-f3c9-42c8-9b07-9f8736390aeb/Foto prueba.jpg +0 -0
  13. package/build/test/downloads/d1093778-f3c9-42c8-9b07-9f8736390aeb/foto1.jpg +0 -0
  14. package/build/test/downloads/d1093778-f3c9-42c8-9b07-9f8736390aeb.zip +0 -0
  15. package/build/test/downloads/fondopasto.jpg +0 -0
  16. package/build/test/parameters.json +9 -0
  17. package/build.zip +0 -0
  18. package/configuration/appearanceGroup/appearanceInputs.ts +24 -0
  19. package/configuration/appearanceGroup/index.ts +8 -0
  20. package/configuration/dataGroup/dataInputs.ts +101 -0
  21. package/configuration/dataGroup/index.ts +8 -0
  22. package/configuration/index.ts +8 -0
  23. package/configuration/styleGroup/index.ts +8 -0
  24. package/configuration/styleGroup/styleInputs.ts +56 -0
  25. package/configuration/utils.ts +31 -0
  26. package/configuration.json +139 -132
  27. package/package.json +11 -17
  28. package/sonar-project.properties +1 -0
  29. package/src/App.tsx +39 -53
  30. package/src/components/FontLoader/index.tsx +7 -7
  31. package/src/components/FormattedText/index.tsx +34 -34
  32. package/src/components/Table/components/Results.tsx +10 -11
  33. package/src/components/Table/components/Row.tsx +34 -73
  34. package/src/components/Table/components/Status.tsx +8 -10
  35. package/src/components/Table/components/Time.tsx +7 -8
  36. package/src/components/Table/index.tsx +5 -16
  37. package/src/helpers/getFixture.ts +10 -7
  38. package/src/helpers/translateTeams.ts +48 -93
  39. package/src/index.html +12 -9
  40. package/src/parameters.d.ts +102 -103
  41. package/src/style.css +446 -434
  42. package/src/test/parameters.json +4 -2
  43. package/tsconfig.json +8 -18
  44. /package/src/{main.tsx → main.ts} +0 -0
@@ -2,9 +2,8 @@
2
2
  "schema": [
3
3
  {
4
4
  "id": "dataGroup",
5
- "type": "group",
6
5
  "label": "Configuración",
7
- "description": "",
6
+ "type": "group",
8
7
  "items": [
9
8
  {
10
9
  "type": "label",
@@ -12,10 +11,8 @@
12
11
  },
13
12
  {
14
13
  "id": "league",
15
- "type": "select-input",
16
- "required": true,
17
14
  "label": "Competencia",
18
- "defaultValue": "9",
15
+ "type": "select-input",
19
16
  "items": [
20
17
  {
21
18
  "label": "Mundial",
@@ -34,77 +31,89 @@
34
31
  "value": "22"
35
32
  },
36
33
  {
37
- "label": "Mundial de Clubes",
34
+ "label": "Mundial de clubes",
38
35
  "value": "15"
36
+ },
37
+ {
38
+ "label": "Primera división Chile",
39
+ "value": "265"
40
+ },
41
+ {
42
+ "label": "Liga profesional Argentina",
43
+ "value": "128"
39
44
  }
40
- ]
45
+ ],
46
+ "required": true,
47
+ "defaultValue": "9"
41
48
  },
42
49
  {
43
- "type": "switch",
44
50
  "id": "matchesYesterday",
45
51
  "label": "Mostrar partidos día anterior",
46
- "defaultValue": false
52
+ "type": "switch",
53
+ "defaultValue": false,
54
+ "displayOnTrue": "Si",
55
+ "displayOnFalse": "No"
47
56
  },
48
57
  {
49
- "type": "switch",
50
58
  "id": "matchesTomorrow",
51
59
  "label": "Mostrar partidos día posterior",
52
- "defaultValue": false
60
+ "type": "switch",
61
+ "defaultValue": false,
62
+ "displayOnTrue": "Si",
63
+ "displayOnFalse": "No"
53
64
  },
54
65
  {
55
66
  "id": "timeStart",
67
+ "label": "Hora de inicio",
56
68
  "type": "select-input",
57
- "required": true,
58
- "label": "Hora Inicio",
59
- "defaultValue": "6am",
60
69
  "items": [
61
70
  {
62
71
  "label": "12 am",
63
- "value": "12am"
72
+ "value": "12m"
64
73
  },
65
74
  {
66
75
  "label": "1 am",
67
- "value": "1am"
76
+ "value": "1m"
68
77
  },
69
78
  {
70
79
  "label": "2 am",
71
- "value": "2am"
80
+ "value": "2m"
72
81
  },
73
82
  {
74
83
  "label": "3 am",
75
- "value": "3am"
84
+ "value": "3m"
76
85
  },
77
86
  {
78
87
  "label": "4 am",
79
- "value": "4am"
88
+ "value": "4m"
80
89
  },
81
90
  {
82
91
  "label": "5 am",
83
- "value": "5am"
92
+ "value": "5m"
84
93
  },
85
94
  {
86
95
  "label": "6 am",
87
- "value": "6am"
96
+ "value": "6m"
88
97
  },
89
98
  {
90
99
  "label": "7 am",
91
- "value": "7am"
100
+ "value": "7m"
92
101
  },
93
102
  {
94
103
  "label": "8 am",
95
- "value": "8am"
104
+ "value": "8m"
96
105
  },
97
106
  {
98
107
  "label": "9 am",
99
- "value": "9am"
108
+ "value": "9m"
100
109
  },
101
110
  {
102
111
  "label": "10 am",
103
- "value": "10am"
112
+ "value": "10m"
104
113
  },
105
114
  {
106
115
  "label": "11 am",
107
- "value": "11am"
116
+ "value": "11m"
108
117
  },
109
118
  {
110
119
  "label": "12 pm",
@@ -154,62 +163,62 @@
154
163
  "label": "11 pm",
155
164
  "value": "11pm"
156
165
  }
157
- ]
166
+ ],
167
+ "required": true,
168
+ "defaultValue": "6am"
158
169
  },
159
170
  {
160
171
  "id": "timeEnd",
161
- "type": "select-input",
162
- "required": true,
163
172
  "label": "Hora Fin",
164
- "defaultValue": "7pm",
173
+ "type": "select-input",
165
174
  "items": [
166
175
  {
167
176
  "label": "12 am",
168
- "value": "12am"
177
+ "value": "12m"
169
178
  },
170
179
  {
171
180
  "label": "1 am",
172
- "value": "1am"
181
+ "value": "1m"
173
182
  },
174
183
  {
175
184
  "label": "2 am",
176
- "value": "2am"
185
+ "value": "2m"
177
186
  },
178
187
  {
179
188
  "label": "3 am",
180
- "value": "3am"
189
+ "value": "3m"
181
190
  },
182
191
  {
183
192
  "label": "4 am",
184
- "value": "4am"
193
+ "value": "4m"
185
194
  },
186
195
  {
187
196
  "label": "5 am",
188
- "value": "5am"
197
+ "value": "5m"
189
198
  },
190
199
  {
191
200
  "label": "6 am",
192
- "value": "6am"
201
+ "value": "6m"
193
202
  },
194
203
  {
195
204
  "label": "7 am",
196
- "value": "7am"
205
+ "value": "7m"
197
206
  },
198
207
  {
199
208
  "label": "8 am",
200
- "value": "8am"
209
+ "value": "8m"
201
210
  },
202
211
  {
203
212
  "label": "9 am",
204
- "value": "9am"
213
+ "value": "9m"
205
214
  },
206
215
  {
207
216
  "label": "10 am",
208
- "value": "10am"
217
+ "value": "10m"
209
218
  },
210
219
  {
211
220
  "label": "11 am",
212
- "value": "11am"
221
+ "value": "11m"
213
222
  },
214
223
  {
215
224
  "label": "12 pm",
@@ -259,14 +268,14 @@
259
268
  "label": "11 pm",
260
269
  "value": "11pm"
261
270
  }
262
- ]
271
+ ],
272
+ "required": true,
273
+ "defaultValue": "7pm"
263
274
  },
264
275
  {
265
276
  "id": "updateTime",
266
- "type": "select-input",
267
- "required": true,
268
277
  "label": "Actualización",
269
- "defaultValue": 300000,
278
+ "type": "select-input",
270
279
  "items": [
271
280
  {
272
281
  "label": "5 minutos",
@@ -296,57 +305,45 @@
296
305
  "label": "Diario",
297
306
  "value": 86400000
298
307
  }
299
- ]
308
+ ],
309
+ "required": true,
310
+ "defaultValue": 300000
300
311
  },
301
312
  {
302
- "type": "switch",
303
313
  "id": "titleEnabled",
304
- "label": "Titulo App",
305
- "defaultValue": false
314
+ "label": "Título App",
315
+ "type": "switch",
316
+ "defaultValue": false,
317
+ "displayOnTrue": "Habilitado",
318
+ "displayOnFalse": "Deshabilitado"
306
319
  },
307
320
  {
308
- "type": "text-input",
309
321
  "id": "title0",
310
- "description": "Título",
311
- "show": "{{titleEnabled}} === true"
322
+ "label": "Título",
323
+ "show": "{{titleEnabled}} === true",
324
+ "type": "text-input"
312
325
  },
313
326
  {
314
- "type": "text-format",
315
327
  "id": "titleFormat",
316
- "label": "Formato",
317
- "show": "{{titleEnabled}} === true"
328
+ "label": "Formato título",
329
+ "show": "{{titleEnabled}} === true",
330
+ "type": "text-format"
318
331
  },
319
332
  {
320
- "type": "text-input",
321
333
  "id": "msj0",
322
- "label": "Sin Partidos",
323
- "description": "Mensaje que se muestra cuando no hay partidos."
334
+ "label": "Mensaje sin partidos",
335
+ "type": "text-input",
336
+ "description": "Mensaje que se muestra cuando no hay partidos"
324
337
  },
325
338
  {
326
- "type": "text-format",
327
339
  "id": "formatMjs",
328
- "label": "Formato Mensaje"
329
- },
330
- {
331
- "type": "number-input",
332
- "id": "itemsPerPage",
333
- "range": "[1:100]",
334
- "label": "Elementos por página",
335
- "defaultValue": 4
336
- },
337
- {
338
- "type": "number-input",
339
- "id": "durationPerPage",
340
- "range": "[1:100]",
341
- "label": "Duración por página (segundos)",
342
- "defaultValue": 5
340
+ "label": "Formato mensaje sin partidos",
341
+ "type": "text-format"
343
342
  },
344
343
  {
345
344
  "id": "alignVerticalMsj",
346
- "type": "select-input",
347
- "required": true,
348
345
  "label": "Alineación vertical texto sin partidos",
349
- "defaultValue": "center",
346
+ "type": "select-input",
350
347
  "items": [
351
348
  {
352
349
  "label": "Arriba",
@@ -360,15 +357,29 @@
360
357
  "label": "Abajo",
361
358
  "value": "flex-end"
362
359
  }
363
- ]
360
+ ],
361
+ "required": true,
362
+ "defaultValue": "center"
363
+ },
364
+ {
365
+ "id": "itemsPerPage",
366
+ "label": "Elementos por página",
367
+ "type": "number-input",
368
+ "range": "[1:100:]"
369
+ },
370
+ {
371
+ "id": "durationPerPage",
372
+ "label": "Duración de elementos",
373
+ "type": "number-input",
374
+ "range": "[1:100:]",
375
+ "description": "Duración por página (en segundos)"
364
376
  }
365
377
  ]
366
378
  },
367
379
  {
368
380
  "id": "appearanceGroup",
369
- "type": "group",
370
381
  "label": "Apariencia",
371
- "description": "",
382
+ "type": "group",
372
383
  "items": [
373
384
  {
374
385
  "type": "label",
@@ -376,124 +387,120 @@
376
387
  },
377
388
  {
378
389
  "id": "backgroundImage",
390
+ "label": "Fondo",
379
391
  "type": "select-asset-kna-input",
380
392
  "required": false,
381
- "label": "Fondo",
382
- "extensions": ["jpg", "png"]
393
+ "extensions": [
394
+ "jpg",
395
+ "png"
396
+ ],
397
+ "multiple": false
383
398
  },
384
399
  {
385
400
  "id": "padding",
386
- "type": "text-input",
387
- "required": false,
388
401
  "label": "Márgenes",
389
- "description": "CSS para dar espacio arriba/derecha/abajo/izquieda."
402
+ "type": "text-input",
403
+ "description": "CSS para dar espacio arriba/derecha/abajo/izquieda",
404
+ "required": false
390
405
  },
391
406
  {
392
407
  "id": "columnGap",
393
- "type": "text-input",
394
- "required": false,
395
408
  "label": "Separación entre columnas",
396
- "description": "Agregar en px, ejemplo 100px. (Por defecto son 10px)"
409
+ "type": "text-input",
410
+ "description": "Agregar en px, ejemplo 100px. Por defecto son 10px",
411
+ "required": false
397
412
  },
398
413
  {
399
414
  "id": "rowGap",
400
- "type": "text-input",
401
- "required": false,
402
415
  "label": "Separación entre filas",
403
- "description": "Agregar en px, ejemplo 100px. (Por defecto son 30px)"
416
+ "type": "text-input",
417
+ "description": "Agregar en px, ejemplo 100px. Por defecto son 30px",
418
+ "required": false
404
419
  }
405
420
  ]
406
421
  },
407
422
  {
408
- "id": "standardGroup",
409
- "type": "group",
423
+ "id": "style",
410
424
  "label": "Estilo",
411
- "description": "",
425
+ "type": "group",
412
426
  "items": [
413
427
  {
414
428
  "type": "label",
415
429
  "label": "Textos"
416
430
  },
417
431
  {
418
- "type": "text-format",
419
432
  "id": "timeFormat",
420
- "label": "Formato Tiempo"
433
+ "label": "Formato Tiempo",
434
+ "type": "text-format"
421
435
  },
422
436
  {
423
437
  "id": "widthTime",
424
- "type": "text-input",
425
- "required": false,
426
438
  "label": "Ancho columna fecha partido",
427
- "description": "Agregar en px, ejemplo 100px. (Por defecto son 200px)",
428
- "defaultValue": "200px"
439
+ "type": "text-input",
440
+ "description": "Agregar en px, ejemplo 100px. Por defecto son 200px"
429
441
  },
430
442
  {
431
- "type": "text-format",
432
443
  "id": "statusFormat",
433
- "label": "Formato Status"
444
+ "label": "Formato Status",
445
+ "type": "text-format"
434
446
  },
435
447
  {
436
448
  "id": "widthStatus",
449
+ "label": "Ancho columna status partido",
437
450
  "type": "text-input",
438
- "required": false,
439
- "label": "Ancho columna Status Partido",
440
- "description": "Agregar en px, ejemplo 100px. (Por defecto son 200px)",
441
- "defaultValue": "200px"
451
+ "description": "Agregar en px, ejemplo 100px. Por defecto son 200px"
442
452
  },
443
453
  {
444
- "type": "text-format",
445
454
  "id": "goalsFormat",
446
- "label": "Formato Goles"
455
+ "label": "Formato Goles",
456
+ "type": "text-format"
447
457
  },
448
458
  {
449
459
  "id": "widthScore",
460
+ "label": "Ancho columna goles",
450
461
  "type": "text-input",
451
- "required": false,
452
- "label": "Ancho columna Goles",
453
- "description": "Agregar en px, ejemplo 100px. (Por defecto son 100px)",
454
- "defaultValue": "200px"
462
+ "description": "Agregar en px, ejemplo 100px. Por defecto son 200px"
455
463
  },
456
464
  {
457
- "type": "switch",
458
465
  "id": "descriptionEnabled",
459
- "label": "Nombre Equipos",
460
- "defaultValue": true
466
+ "label": "Nombre equipos",
467
+ "type": "switch",
468
+ "defaultValue": true,
469
+ "displayOnTrue": "Si",
470
+ "displayOnFalse": "No"
461
471
  },
462
472
  {
463
- "type": "text-format",
464
473
  "id": "descriptionFormat",
465
- "label": "Formato Nombre Equipo",
466
- "show": "{{descriptionEnabled}} === true"
474
+ "label": "Formato Nombre Equipos",
475
+ "show": "{{descriptionEnabled}} === true",
476
+ "type": "text-format"
467
477
  },
468
478
  {
469
479
  "id": "widthDescription",
470
- "type": "text-input",
471
- "required": false,
472
- "label": "Ancho columna Nombre Equipo",
480
+ "label": "Ancho columna Nombre Equipos",
473
481
  "show": "{{descriptionEnabled}} === true",
474
- "description": "Agregar en px, ejemplo 100px. (Por defecto son 200px)",
475
- "defaultValue": "200px"
482
+ "type": "text-input",
483
+ "description": "Agregar en px, ejemplo 100px. Por defecto son 200px"
476
484
  },
477
485
  {
478
486
  "type": "label",
479
487
  "label": "Banderas"
480
488
  },
481
489
  {
482
- "type": "number-input",
483
490
  "id": "imageSize",
484
- "range": "[1:100]",
485
491
  "label": "Tamaño",
486
- "description": "Tamaño de la imagen en porcentaje."
492
+ "type": "number-input",
493
+ "range": "[1:100:]",
494
+ "description": "Tamaño de la imagen (en porcentaje)"
487
495
  },
488
496
  {
489
497
  "id": "widthImage",
498
+ "label": "Ancho columna Banderas",
490
499
  "type": "text-input",
491
- "required": false,
492
- "label": "Ancho columna Bandera",
493
- "description": "Agregar en px, ejemplo 100px. (Por defecto son 300px)",
494
- "defaultValue": "300px"
500
+ "description": "Agregar en px, ejemplo 100px. Por defecto son 300px",
501
+ "required": false
495
502
  }
496
503
  ]
497
504
  }
498
505
  ]
499
- }
506
+ }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vixoniccom/footbal-score",
3
3
  "alias": "Resultados Deportivos",
4
- "version": "1.3.0-beta.0",
4
+ "version": "1.4.0-dev.0",
5
5
  "description": "Muestra resultados en vivo de fútbol.",
6
6
  "main": "main.js",
7
7
  "author": "",
@@ -13,28 +13,22 @@
13
13
  "configuration": "vixonic-module-packager --mode generate-configuration",
14
14
  "configuration:validate": "vixonic-module-packager --mode validate-configuration",
15
15
  "release": "standard-version",
16
- "prerelease-beta": "standard-version --prerelease beta"
16
+ "prerelease-beta": "standard-version --prerelease beta",
17
+ "prerelease-dev": "standard-version --prerelease dev"
17
18
  },
18
19
  "dependencies": {
19
- "animejs": "^2.0.2",
20
- "axios": "^0.27.2",
21
- "jquery": "^3.6.0",
20
+ "axios": "^1.6.0",
22
21
  "localforage": "^1.10.0",
23
- "lodash": "^4.17.21",
24
22
  "moment": "^2.29.3",
25
- "prop-types": "^15.8.1",
26
- "react": "^17.0.2",
27
- "react-dom": "^17.0.2",
28
- "use-state-with-callback": "^3.0.2"
23
+ "react": "^18.3.1",
24
+ "react-dom": "^18.3.1"
29
25
  },
30
26
  "devDependencies": {
31
- "@types/animejs": "^3.1.4",
32
- "@types/lodash": "^4.14.182",
33
27
  "@types/node": "^12.20.37",
34
- "@types/react": "^17.0.35",
35
- "@types/react-dom": "^17.0.11",
36
- "@vixoniccom/module-packager": "^2.5.1",
37
- "@vixoniccom/modules": "^2.12.1",
38
- "standard-version": "^9.3.1"
28
+ "@types/react": "^18.3.23",
29
+ "@types/react-dom": "^18.3.7",
30
+ "@vixoniccom/module-packager": "^2.13.0-dev.1",
31
+ "@vixoniccom/modules": "^2.20.5-dev.1",
32
+ "standard-version": "^9.5.0"
39
33
  }
40
34
  }
@@ -0,0 +1 @@
1
+ sonar.projectKey=Vixonic_store-football-score_e59e2797-8ca0-40ae-8ab7-6fb9b96101d8