@vixoniccom/footbal-score 1.3.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.
- package/.github/workflows/sonarqube.yml +30 -0
- package/CHANGELOG.md +18 -0
- package/build/index.html +1 -0
- package/build/main.js +2 -0
- package/build/main.js.LICENSE.txt +59 -0
- package/build/test/downloads/4a9bcc4e-f398-4317-9f0f-afa8bcef1a4f.png +0 -0
- package/build/test/downloads/7953953c-7029-4730-ae4d-cff4abd5288f.ttf +0 -0
- package/build/test/downloads/Roboto-Bold.ttf +0 -0
- package/build/test/downloads/Spring in May.ttf +0 -0
- package/build/test/downloads/c705a739-312e-4334-9231-e73a05e9d382.ttf +0 -0
- package/build/test/downloads/cumples.png +0 -0
- package/build/test/downloads/d1093778-f3c9-42c8-9b07-9f8736390aeb/Foto prueba.jpg +0 -0
- package/build/test/downloads/d1093778-f3c9-42c8-9b07-9f8736390aeb/foto1.jpg +0 -0
- package/build/test/downloads/d1093778-f3c9-42c8-9b07-9f8736390aeb.zip +0 -0
- package/build/test/downloads/fondopasto.jpg +0 -0
- package/build/test/parameters.json +9 -0
- package/build.zip +0 -0
- package/configuration/appearanceGroup/appearanceInputs.ts +24 -0
- package/configuration/appearanceGroup/index.ts +8 -0
- package/configuration/dataGroup/dataInputs.ts +101 -0
- package/configuration/dataGroup/index.ts +8 -0
- package/configuration/index.ts +8 -0
- package/configuration/styleGroup/index.ts +8 -0
- package/configuration/styleGroup/styleInputs.ts +56 -0
- package/configuration/utils.ts +31 -0
- package/configuration.json +139 -132
- package/package.json +11 -17
- package/sonar-project.properties +1 -0
- package/src/App.tsx +39 -53
- package/src/components/FontLoader/index.tsx +7 -7
- package/src/components/FormattedText/index.tsx +34 -34
- package/src/components/Table/components/Results.tsx +10 -11
- package/src/components/Table/components/Row.tsx +34 -73
- package/src/components/Table/components/Status.tsx +8 -10
- package/src/components/Table/components/Time.tsx +7 -8
- package/src/components/Table/index.tsx +5 -16
- package/src/helpers/getFixture.ts +10 -7
- package/src/helpers/translateTeams.ts +48 -93
- package/src/index.html +12 -9
- package/src/parameters.d.ts +102 -103
- package/src/style.css +446 -434
- package/src/test/parameters.json +4 -2
- package/tsconfig.json +8 -18
- /package/src/{main.tsx → main.ts} +0 -0
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
localForage -- Offline Storage, Improved
|
|
3
|
+
Version 1.10.0
|
|
4
|
+
https://localforage.github.io/localForage
|
|
5
|
+
(c) 2013-2017 Mozilla, Apache License 2.0
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* @license
|
|
10
|
+
* Lodash <https://lodash.com/>
|
|
11
|
+
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
|
12
|
+
* Released under MIT license <https://lodash.com/license>
|
|
13
|
+
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
|
14
|
+
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
|
15
|
+
*/
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* @license React
|
|
19
|
+
* react-dom.production.min.js
|
|
20
|
+
*
|
|
21
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
22
|
+
*
|
|
23
|
+
* This source code is licensed under the MIT license found in the
|
|
24
|
+
* LICENSE file in the root directory of this source tree.
|
|
25
|
+
*/
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* @license React
|
|
29
|
+
* react-jsx-runtime.production.min.js
|
|
30
|
+
*
|
|
31
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
32
|
+
*
|
|
33
|
+
* This source code is licensed under the MIT license found in the
|
|
34
|
+
* LICENSE file in the root directory of this source tree.
|
|
35
|
+
*/
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* @license React
|
|
39
|
+
* react.production.min.js
|
|
40
|
+
*
|
|
41
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
42
|
+
*
|
|
43
|
+
* This source code is licensed under the MIT license found in the
|
|
44
|
+
* LICENSE file in the root directory of this source tree.
|
|
45
|
+
*/
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* @license React
|
|
49
|
+
* scheduler.production.min.js
|
|
50
|
+
*
|
|
51
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
52
|
+
*
|
|
53
|
+
* This source code is licensed under the MIT license found in the
|
|
54
|
+
* LICENSE file in the root directory of this source tree.
|
|
55
|
+
*/
|
|
56
|
+
|
|
57
|
+
//! moment.js
|
|
58
|
+
|
|
59
|
+
//! moment.js locale configuration
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/build.zip
CHANGED
|
Binary file
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { Label, SelectAssetKna, TextInput } from '@vixoniccom/modules'
|
|
2
|
+
|
|
3
|
+
export const appearanceInputs = [
|
|
4
|
+
new Label({ label: 'Avanzado' }),
|
|
5
|
+
new SelectAssetKna({ id: 'backgroundImage', label: 'Fondo', required: false, extensions: ['jpg', 'png'] }),
|
|
6
|
+
new TextInput({
|
|
7
|
+
id: 'padding',
|
|
8
|
+
label: 'Márgenes',
|
|
9
|
+
required: false,
|
|
10
|
+
description: 'CSS para dar espacio arriba/derecha/abajo/izquieda',
|
|
11
|
+
}),
|
|
12
|
+
new TextInput({
|
|
13
|
+
id: 'columnGap',
|
|
14
|
+
label: 'Separación entre columnas',
|
|
15
|
+
required: false,
|
|
16
|
+
description: 'Agregar en px, ejemplo 100px. Por defecto son 10px',
|
|
17
|
+
}),
|
|
18
|
+
new TextInput({
|
|
19
|
+
id: 'rowGap',
|
|
20
|
+
label: 'Separación entre filas',
|
|
21
|
+
required: false,
|
|
22
|
+
description: 'Agregar en px, ejemplo 100px. Por defecto son 30px',
|
|
23
|
+
}),
|
|
24
|
+
]
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import { Label, NumberInput, NumberRangeValue, SelectInput, Switch, TextFormat, TextInput } from '@vixoniccom/modules'
|
|
2
|
+
import { ShowValidations, timeSelect } from '../utils'
|
|
3
|
+
|
|
4
|
+
export const dataInputs = [
|
|
5
|
+
new Label({ label: 'Datos' }),
|
|
6
|
+
new SelectInput({
|
|
7
|
+
id: 'league',
|
|
8
|
+
label: 'Competencia',
|
|
9
|
+
required: true,
|
|
10
|
+
items: [
|
|
11
|
+
{ label: 'Mundial', value: '1' },
|
|
12
|
+
{ label: 'Copa América', value: '9' },
|
|
13
|
+
{ label: 'Euro Copa', value: '4' },
|
|
14
|
+
{ label: 'Copa Oro (Concacaf)', value: '22' },
|
|
15
|
+
{ label: 'Mundial de clubes', value: '15' },
|
|
16
|
+
{ label: 'Primera división Chile', value: '265' },
|
|
17
|
+
{ label: 'Liga profesional Argentina', value: '128' },
|
|
18
|
+
],
|
|
19
|
+
defaultValue: '9',
|
|
20
|
+
}),
|
|
21
|
+
new Switch({
|
|
22
|
+
id: 'matchesYesterday',
|
|
23
|
+
label: 'Mostrar partidos día anterior',
|
|
24
|
+
displayOnTrue: 'Si',
|
|
25
|
+
displayOnFalse: 'No',
|
|
26
|
+
defaultValue: false,
|
|
27
|
+
}),
|
|
28
|
+
new Switch({
|
|
29
|
+
id: 'matchesTomorrow',
|
|
30
|
+
label: 'Mostrar partidos día posterior',
|
|
31
|
+
displayOnTrue: 'Si',
|
|
32
|
+
displayOnFalse: 'No',
|
|
33
|
+
defaultValue: false,
|
|
34
|
+
}),
|
|
35
|
+
new SelectInput({
|
|
36
|
+
id: 'timeStart',
|
|
37
|
+
label: 'Hora de inicio',
|
|
38
|
+
required: true,
|
|
39
|
+
items: [...timeSelect],
|
|
40
|
+
defaultValue: '6am',
|
|
41
|
+
}),
|
|
42
|
+
new SelectInput({
|
|
43
|
+
id: 'timeEnd',
|
|
44
|
+
label: 'Hora Fin',
|
|
45
|
+
required: true,
|
|
46
|
+
items: [...timeSelect],
|
|
47
|
+
defaultValue: '7pm',
|
|
48
|
+
}),
|
|
49
|
+
new SelectInput({
|
|
50
|
+
id: 'updateTime',
|
|
51
|
+
label: 'Actualización',
|
|
52
|
+
required: true,
|
|
53
|
+
items: [
|
|
54
|
+
{ label: '5 minutos', value: 300000 },
|
|
55
|
+
{ label: '10 minutos', value: 600000 },
|
|
56
|
+
{ label: '30 minutos', value: 1800000 },
|
|
57
|
+
{ label: '1 hora', value: 3600000 },
|
|
58
|
+
{ label: '6 horas', value: 21600000 },
|
|
59
|
+
{ label: '12 horas', value: 43200000 },
|
|
60
|
+
{ label: 'Diario', value: 86400000 },
|
|
61
|
+
],
|
|
62
|
+
defaultValue: 300000,
|
|
63
|
+
}),
|
|
64
|
+
new Switch({
|
|
65
|
+
id: 'titleEnabled',
|
|
66
|
+
label: 'Título App',
|
|
67
|
+
displayOnTrue: 'Habilitado',
|
|
68
|
+
displayOnFalse: 'Deshabilitado',
|
|
69
|
+
defaultValue: false,
|
|
70
|
+
}),
|
|
71
|
+
new TextInput({ id: 'title0', label: 'Título', show: ShowValidations.titleEnabled }),
|
|
72
|
+
new TextFormat({ id: 'titleFormat', label: 'Formato título', show: ShowValidations.titleEnabled }),
|
|
73
|
+
new TextInput({
|
|
74
|
+
id: 'msj0',
|
|
75
|
+
label: 'Mensaje sin partidos',
|
|
76
|
+
description: 'Mensaje que se muestra cuando no hay partidos',
|
|
77
|
+
}),
|
|
78
|
+
new TextFormat({ id: 'formatMjs', label: 'Formato mensaje sin partidos' }),
|
|
79
|
+
new SelectInput({
|
|
80
|
+
id: 'alignVerticalMsj',
|
|
81
|
+
label: 'Alineación vertical texto sin partidos',
|
|
82
|
+
required: true,
|
|
83
|
+
items: [
|
|
84
|
+
{ label: 'Arriba', value: 'flex-start' },
|
|
85
|
+
{ label: 'Centro', value: 'center' },
|
|
86
|
+
{ label: 'Abajo', value: 'flex-end' },
|
|
87
|
+
],
|
|
88
|
+
defaultValue: 'center',
|
|
89
|
+
}),
|
|
90
|
+
new NumberInput({
|
|
91
|
+
id: 'itemsPerPage',
|
|
92
|
+
label: 'Elementos por página',
|
|
93
|
+
range: new NumberRangeValue(1, 100),
|
|
94
|
+
}),
|
|
95
|
+
new NumberInput({
|
|
96
|
+
id: 'durationPerPage',
|
|
97
|
+
label: 'Duración de elementos',
|
|
98
|
+
description: 'Duración por página (en segundos)',
|
|
99
|
+
range: new NumberRangeValue(1, 100),
|
|
100
|
+
}),
|
|
101
|
+
]
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Configuration } from '@vixoniccom/modules'
|
|
2
|
+
import { dataGroup } from './dataGroup'
|
|
3
|
+
import { appearanceGroup } from './appearanceGroup'
|
|
4
|
+
import { styleGroup } from './styleGroup'
|
|
5
|
+
|
|
6
|
+
export const configuration = new Configuration({
|
|
7
|
+
schema: [dataGroup, appearanceGroup, styleGroup],
|
|
8
|
+
})
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { Label, NumberInput, NumberRangeValue, Switch, TextFormat, TextInput } from '@vixoniccom/modules'
|
|
2
|
+
import { ShowValidations } from '../utils'
|
|
3
|
+
|
|
4
|
+
export const styleInputs = [
|
|
5
|
+
new Label({ label: 'Textos' }),
|
|
6
|
+
new TextFormat({ id: 'timeFormat', label: 'Formato Tiempo' }),
|
|
7
|
+
new TextInput({
|
|
8
|
+
id: 'widthTime',
|
|
9
|
+
label: 'Ancho columna fecha partido',
|
|
10
|
+
description: 'Agregar en px, ejemplo 100px. Por defecto son 200px',
|
|
11
|
+
}),
|
|
12
|
+
new TextFormat({ id: 'statusFormat', label: 'Formato Status' }),
|
|
13
|
+
new TextInput({
|
|
14
|
+
id: 'widthStatus',
|
|
15
|
+
label: 'Ancho columna status partido',
|
|
16
|
+
description: 'Agregar en px, ejemplo 100px. Por defecto son 200px',
|
|
17
|
+
}),
|
|
18
|
+
new TextFormat({ id: 'goalsFormat', label: 'Formato Goles' }),
|
|
19
|
+
new TextInput({
|
|
20
|
+
id: 'widthScore',
|
|
21
|
+
label: 'Ancho columna goles',
|
|
22
|
+
description: 'Agregar en px, ejemplo 100px. Por defecto son 200px',
|
|
23
|
+
}),
|
|
24
|
+
new Switch({
|
|
25
|
+
id: 'descriptionEnabled',
|
|
26
|
+
label: 'Nombre equipos',
|
|
27
|
+
displayOnTrue: 'Si',
|
|
28
|
+
displayOnFalse: 'No',
|
|
29
|
+
defaultValue: true,
|
|
30
|
+
}),
|
|
31
|
+
new TextFormat({
|
|
32
|
+
id: 'descriptionFormat',
|
|
33
|
+
label: 'Formato Nombre Equipos',
|
|
34
|
+
show: ShowValidations.descriptionEnabled,
|
|
35
|
+
}),
|
|
36
|
+
new TextInput({
|
|
37
|
+
id: 'widthDescription',
|
|
38
|
+
label: 'Ancho columna Nombre Equipos',
|
|
39
|
+
description: 'Agregar en px, ejemplo 100px. Por defecto son 200px',
|
|
40
|
+
show: ShowValidations.descriptionEnabled,
|
|
41
|
+
}),
|
|
42
|
+
|
|
43
|
+
new Label({ label: 'Banderas' }),
|
|
44
|
+
new NumberInput({
|
|
45
|
+
id: 'imageSize',
|
|
46
|
+
label: 'Tamaño',
|
|
47
|
+
description: 'Tamaño de la imagen (en porcentaje)',
|
|
48
|
+
range: new NumberRangeValue(1, 100),
|
|
49
|
+
}),
|
|
50
|
+
new TextInput({
|
|
51
|
+
id: 'widthImage',
|
|
52
|
+
label: 'Ancho columna Banderas',
|
|
53
|
+
required: false,
|
|
54
|
+
description: 'Agregar en px, ejemplo 100px. Por defecto son 300px',
|
|
55
|
+
}),
|
|
56
|
+
]
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export const ShowValidations = {
|
|
2
|
+
titleEnabled: '{{titleEnabled}} === true',
|
|
3
|
+
descriptionEnabled: '{{descriptionEnabled}} === true',
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
export const timeSelect = [
|
|
7
|
+
{ label: '12 am', value: '12m' },
|
|
8
|
+
{ label: '1 am', value: '1m' },
|
|
9
|
+
{ label: '2 am', value: '2m' },
|
|
10
|
+
{ label: '3 am', value: '3m' },
|
|
11
|
+
{ label: '4 am', value: '4m' },
|
|
12
|
+
{ label: '5 am', value: '5m' },
|
|
13
|
+
{ label: '6 am', value: '6m' },
|
|
14
|
+
{ label: '7 am', value: '7m' },
|
|
15
|
+
{ label: '8 am', value: '8m' },
|
|
16
|
+
{ label: '9 am', value: '9m' },
|
|
17
|
+
{ label: '10 am', value: '10m' },
|
|
18
|
+
{ label: '11 am', value: '11m' },
|
|
19
|
+
{ label: '12 pm', value: '12pm' },
|
|
20
|
+
{ label: '1 pm', value: '1pm' },
|
|
21
|
+
{ label: '2 pm', value: '2pm' },
|
|
22
|
+
{ label: '3 pm', value: '3pm' },
|
|
23
|
+
{ label: '4 pm', value: '4pm' },
|
|
24
|
+
{ label: '5 pm', value: '5pm' },
|
|
25
|
+
{ label: '6 pm', value: '6pm' },
|
|
26
|
+
{ label: '7 pm', value: '7pm' },
|
|
27
|
+
{ label: '8 pm', value: '8pm' },
|
|
28
|
+
{ label: '9 pm', value: '9pm' },
|
|
29
|
+
{ label: '10 pm', value: '10pm' },
|
|
30
|
+
{ label: '11 pm', value: '11pm' },
|
|
31
|
+
]
|