@vixoniccom/footbal-score 1.0.3-beta.1 → 1.0.3
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/CHANGELOG.md +4 -0
- package/build.zip +0 -0
- package/configuration.json +0 -14
- package/package.json +1 -1
- package/src/App.tsx +2 -7
- package/src/helpers/getFixture.ts +1 -2
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
### [1.0.3](https://bitbucket.org/vixonic_dev/football-score/compare/v1.0.3-beta.2...v1.0.3) (2024-05-09)
|
|
6
|
+
|
|
7
|
+
### [1.0.3-beta.2](https://bitbucket.org/vixonic_dev/football-score/compare/v1.0.3-beta.1...v1.0.3-beta.2) (2024-04-30)
|
|
8
|
+
|
|
5
9
|
### [1.0.3-beta.1](https://bitbucket.org/vixonic_dev/football-score/compare/v1.0.3-beta.0...v1.0.3-beta.1) (2024-04-30)
|
|
6
10
|
|
|
7
11
|
### [1.0.3-beta.0](https://bitbucket.org/vixonic_dev/football-score/compare/v1.0.2...v1.0.3-beta.0) (2024-04-30)
|
package/build.zip
CHANGED
|
Binary file
|
package/configuration.json
CHANGED
|
@@ -209,20 +209,6 @@
|
|
|
209
209
|
"required": false,
|
|
210
210
|
"label": "Márgenes",
|
|
211
211
|
"description": "CSS para dar espacio arriba/derecha/abajo/izquieda."
|
|
212
|
-
},
|
|
213
|
-
{
|
|
214
|
-
"id": "columnGap",
|
|
215
|
-
"type": "text-input",
|
|
216
|
-
"required": false,
|
|
217
|
-
"label": "Separación entre columnas",
|
|
218
|
-
"description": "Agregar en px, ejemplo 100px. (Por defecto son 10px)"
|
|
219
|
-
},
|
|
220
|
-
{
|
|
221
|
-
"id": "rowGap",
|
|
222
|
-
"type": "text-input",
|
|
223
|
-
"required": false,
|
|
224
|
-
"label": "Separación entre filas",
|
|
225
|
-
"description": "Agregar en px, ejemplo 100px. (Por defecto son 30px)"
|
|
226
212
|
}
|
|
227
213
|
]
|
|
228
214
|
},
|
package/package.json
CHANGED
package/src/App.tsx
CHANGED
|
@@ -17,8 +17,7 @@ export const App = ({ data, start }: Props) => {
|
|
|
17
17
|
|
|
18
18
|
const [dataFixture, setDataFixture] = useState([]);
|
|
19
19
|
const [league, setLeague] = useState('');
|
|
20
|
-
|
|
21
|
-
const timezone = Intl.DateTimeFormat().resolvedOptions().timeZone
|
|
20
|
+
|
|
22
21
|
|
|
23
22
|
const { configureState, addConfiguration } = useContext(ConfigureContext)
|
|
24
23
|
|
|
@@ -58,7 +57,7 @@ export const App = ({ data, start }: Props) => {
|
|
|
58
57
|
addConfiguration(data)
|
|
59
58
|
}, [data])
|
|
60
59
|
|
|
61
|
-
useEffect(() =>
|
|
60
|
+
useEffect(() =>{
|
|
62
61
|
if (league !== data.parameters.league) {
|
|
63
62
|
console.log('league', league)
|
|
64
63
|
setLeague(data.parameters.league!)
|
|
@@ -115,8 +114,6 @@ export const App = ({ data, start }: Props) => {
|
|
|
115
114
|
<FormattedText text={parameters.title0 || "Partidos Mundial"} format={parameters.titleFormat} />
|
|
116
115
|
</div>
|
|
117
116
|
}
|
|
118
|
-
<FormattedText text={today} format={parameters.formatMjs} />
|
|
119
|
-
<FormattedText text={timezone} format={parameters.formatMjs} />
|
|
120
117
|
<Table dataFixture={dataFixture} />
|
|
121
118
|
</div> :
|
|
122
119
|
<div
|
|
@@ -140,8 +137,6 @@ export const App = ({ data, start }: Props) => {
|
|
|
140
137
|
flex: '1 1 0%',
|
|
141
138
|
flexDirection: 'column',
|
|
142
139
|
}}>
|
|
143
|
-
<FormattedText text={today} format={parameters.formatMjs} />
|
|
144
|
-
<FormattedText text={timezone} format={parameters.formatMjs} />
|
|
145
140
|
<FormattedText text={msj0 || "Sin partidos"} format={parameters.formatMjs} />
|
|
146
141
|
</div>
|
|
147
142
|
</div>
|
|
@@ -9,7 +9,7 @@ export const getFixture = async (league: string) => {
|
|
|
9
9
|
const options = {
|
|
10
10
|
method: 'GET',
|
|
11
11
|
url: 'https://api-football-v1.p.rapidapi.com/v3/fixtures',
|
|
12
|
-
params: { date:
|
|
12
|
+
params: { date: `${today}`, league: league, season: `${year}`, timezone: `${timezone}` },
|
|
13
13
|
headers: {
|
|
14
14
|
'X-RapidAPI-Key': 'a7e693d4c5msh72a2ff2020fd601p12dd08jsn0f168421d7bb',
|
|
15
15
|
'X-RapidAPI-Host': 'api-football-v1.p.rapidapi.com'
|
|
@@ -17,7 +17,6 @@ export const getFixture = async (league: string) => {
|
|
|
17
17
|
};
|
|
18
18
|
try {
|
|
19
19
|
const response = await axios.request(options)
|
|
20
|
-
console.log("🚀 ~ getFixture ~ response:", response.data )
|
|
21
20
|
return response.data.response
|
|
22
21
|
} catch (error) {
|
|
23
22
|
console.error(error);
|