@vixoniccom/footbal-score 1.0.1-beta.14 → 1.0.1-beta.16

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 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.1-beta.16](https://gitlab.com/mandomedio/vixonic/football-score/compare/v1.0.1-beta.15...v1.0.1-beta.16) (2022-11-23)
6
+
7
+ ### [1.0.1-beta.15](https://gitlab.com/mandomedio/vixonic/football-score/compare/v1.0.1-beta.14...v1.0.1-beta.15) (2022-11-22)
8
+
5
9
  ### [1.0.1-beta.14](https://gitlab.com/mandomedio/vixonic/football-score/compare/v1.0.1-beta.13...v1.0.1-beta.14) (2022-11-22)
6
10
 
7
11
  ### [1.0.1-beta.13](https://gitlab.com/mandomedio/vixonic/football-score/compare/v1.0.1-beta.12...v1.0.1-beta.13) (2022-11-22)
package/build.zip CHANGED
Binary file
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@vixoniccom/footbal-score",
3
3
  "alias": "Resultados Deportivos",
4
- "version": "1.0.1-beta.14",
4
+ "version": "1.0.1-beta.16",
5
5
  "description": "Muestra resultados en vivo de fútbol.",
6
6
  "main": "main.js",
7
7
  "author": "",
@@ -29,8 +29,10 @@ export const Row = (item: any) => {
29
29
  let gridColumns = descriptionEnabled ? `${widthTime || "200px"} ${widthStatus || "200px"} ${widthDescription || "200px"} ${widthImage || "300px"} ${widthScore || "100px"} ${widthImage || "300px"} ${widthDescription || "200px"}` :
30
30
  ` ${widthTime || "100px"} ${widthStatus || "100px"} ${widthImage || "300px"} ${widthScore || "100px"} ${widthImage || "300px"}`
31
31
 
32
- let nameHome = translateTeams(teams.home.name)
32
+ let nameHome = translateTeams(teams.home.name)
33
33
  let nameAway = translateTeams(teams.away.name)
34
+ let idHome = teams.home.id
35
+ let idAway = teams.away.id
34
36
 
35
37
  return (
36
38
  <div
@@ -63,9 +65,15 @@ export const Row = (item: any) => {
63
65
  <div style={{
64
66
  display: 'flex',
65
67
  justifyContent: 'center',
66
- width: '100%'
68
+ width: '100%',
69
+ alignItems: 'center',
67
70
  }}>
68
- <img src={teams.home.logo} style={{ width: `${imageSize ? imageSize : 100}%` }} />
71
+ {
72
+ idHome ?
73
+ <img src={`https://storage.googleapis.com/vixoniccom-emails/results_flags/${idHome}.png`} style={{ width: `${imageSize ? imageSize : 100}%`, objectFit: 'contain' }} />:
74
+ <img src={`https://storage.googleapis.com/vixoniccom-emails/results_flags/0000.png`} style={{ width: `${imageSize ? imageSize : 100}%`, objectFit: 'contain' }} />
75
+
76
+ }
69
77
  </div>
70
78
 
71
79
  <Results goals={goals} />
@@ -75,9 +83,14 @@ export const Row = (item: any) => {
75
83
  display: 'flex',
76
84
  justifyContent: 'center',
77
85
  width: '100%',
86
+ alignItems: 'center'
78
87
  }}
79
88
  >
80
- <img src={teams.away.logo} style={{ width: `${imageSize ? imageSize : 100}%` }} />
89
+ {
90
+ idAway ?
91
+ <img src={`https://storage.googleapis.com/vixoniccom-emails/results_flags/${idAway}.png`} style={{ width: `${imageSize ? imageSize : 100}%`, objectFit: 'contain' }} />
92
+ : <img src={`https://storage.googleapis.com/vixoniccom-emails/results_flags/0000.png`} style={{ width: `${imageSize ? imageSize : 100}%`, objectFit: 'contain' }} />
93
+ }
81
94
  </div>
82
95
  {
83
96
  descriptionEnabled &&
@@ -3,7 +3,7 @@ const axios = require("axios");
3
3
 
4
4
  export const getFixture = async () => {
5
5
 
6
- const today = moment().format('YYYY-MM-DD')
6
+ const today = moment().format('YYYY-MM-DD')
7
7
  // console.log("🚀 ~ file: getFixture.ts ~ line 6 ~ getFixture ~ today", today)
8
8
 
9
9
  const options = {