@vixoniccom/footbal-score 1.0.1-beta.17 → 1.0.1-beta.19
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/package.json +1 -1
- package/src/components/table-fixture/Row.tsx +36 -16
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.19](https://gitlab.com/mandomedio/vixonic/football-score/compare/v1.0.1-beta.18...v1.0.1-beta.19) (2022-11-23)
|
|
6
|
+
|
|
7
|
+
### [1.0.1-beta.18](https://gitlab.com/mandomedio/vixonic/football-score/compare/v1.0.1-beta.17...v1.0.1-beta.18) (2022-11-23)
|
|
8
|
+
|
|
5
9
|
### [1.0.1-beta.17](https://gitlab.com/mandomedio/vixonic/football-score/compare/v1.0.1-beta.16...v1.0.1-beta.17) (2022-11-23)
|
|
6
10
|
|
|
7
11
|
### [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)
|
package/build.zip
CHANGED
|
Binary file
|
package/package.json
CHANGED
|
@@ -27,7 +27,7 @@ export const Row = (item: any) => {
|
|
|
27
27
|
widthStatus,
|
|
28
28
|
widthTime,
|
|
29
29
|
} = parameters
|
|
30
|
-
|
|
30
|
+
|
|
31
31
|
let gridColumns = descriptionEnabled ? `${widthTime || "200px"} ${widthStatus || "200px"} ${widthDescription || "200px"} ${widthImage || "300px"} ${widthScore || "100px"} ${widthImage || "300px"} ${widthDescription || "200px"}` :
|
|
32
32
|
` ${widthTime || "100px"} ${widthStatus || "100px"} ${widthImage || "300px"} ${widthScore || "100px"} ${widthImage || "300px"}`
|
|
33
33
|
|
|
@@ -35,10 +35,10 @@ export const Row = (item: any) => {
|
|
|
35
35
|
let nameAway = translateTeams(teams.away.name)
|
|
36
36
|
|
|
37
37
|
|
|
38
|
-
const requestFlagHome = async(id:any) =>{
|
|
38
|
+
const requestFlagHome = async (id: any) => {
|
|
39
39
|
try {
|
|
40
40
|
const resp1 = await fetch(`https://storage.googleapis.com/vixoniccom-emails/results_flags/${id}.png`)
|
|
41
|
-
if(resp1.status === 200){
|
|
41
|
+
if (resp1.status === 200) {
|
|
42
42
|
setHomeTeam(true)
|
|
43
43
|
}
|
|
44
44
|
} catch (error) {
|
|
@@ -47,10 +47,10 @@ export const Row = (item: any) => {
|
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
49
|
|
|
50
|
-
const requestFlagAway = async(id:any) =>{
|
|
50
|
+
const requestFlagAway = async (id: any) => {
|
|
51
51
|
try {
|
|
52
52
|
const resp1 = await fetch(`https://storage.googleapis.com/vixoniccom-emails/results_flags/${id}.png`)
|
|
53
|
-
|
|
53
|
+
if (resp1.status === 200) {
|
|
54
54
|
setAwayTeam(true)
|
|
55
55
|
}
|
|
56
56
|
} catch (error) {
|
|
@@ -60,10 +60,10 @@ export const Row = (item: any) => {
|
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
62
|
|
|
63
|
-
useEffect(() =>{
|
|
63
|
+
useEffect(() => {
|
|
64
64
|
requestFlagHome(teams.home.id)
|
|
65
65
|
requestFlagAway(teams.away.id)
|
|
66
|
-
},[])
|
|
66
|
+
}, [])
|
|
67
67
|
|
|
68
68
|
|
|
69
69
|
return (
|
|
@@ -80,9 +80,26 @@ export const Row = (item: any) => {
|
|
|
80
80
|
justifyContent: 'center'
|
|
81
81
|
}}
|
|
82
82
|
>
|
|
83
|
-
<
|
|
83
|
+
<div
|
|
84
|
+
style={{
|
|
85
|
+
display: 'flex',
|
|
86
|
+
justifyContent: 'flex-end',
|
|
87
|
+
}}
|
|
88
|
+
>
|
|
89
|
+
<Time time={Number(fixture.timestamp)} />
|
|
90
|
+
|
|
91
|
+
</div>
|
|
92
|
+
|
|
93
|
+
<div
|
|
94
|
+
style={{
|
|
95
|
+
display: 'flex',
|
|
96
|
+
justifyContent: 'flex-end',
|
|
97
|
+
}}
|
|
98
|
+
>
|
|
99
|
+
<Status status={fixture.status.short} />
|
|
100
|
+
|
|
101
|
+
</div>
|
|
84
102
|
|
|
85
|
-
<Status status={fixture.status.short} />
|
|
86
103
|
|
|
87
104
|
|
|
88
105
|
{
|
|
@@ -90,7 +107,7 @@ export const Row = (item: any) => {
|
|
|
90
107
|
<div style={{
|
|
91
108
|
display: 'flex',
|
|
92
109
|
justifyContent: 'flex-end',
|
|
93
|
-
minWidth: '
|
|
110
|
+
minWidth: '150px',
|
|
94
111
|
marginRight: '5px'
|
|
95
112
|
}}>
|
|
96
113
|
<FormattedText text={nameHome} format={descriptionFormat} />
|
|
@@ -101,11 +118,12 @@ export const Row = (item: any) => {
|
|
|
101
118
|
justifyContent: 'center',
|
|
102
119
|
width: '100%',
|
|
103
120
|
alignItems: 'center',
|
|
121
|
+
marginLeft: '5px'
|
|
104
122
|
}}>
|
|
105
123
|
{
|
|
106
124
|
homeTeam ?
|
|
107
|
-
|
|
108
|
-
|
|
125
|
+
<img src={`https://storage.googleapis.com/vixoniccom-emails/results_flags/${teams.home.id}.png`} style={{ width: `${imageSize ? imageSize : 100}%`, objectFit: 'contain' }} /> :
|
|
126
|
+
<img src={`https://storage.googleapis.com/vixoniccom-emails/results_flags/0000.png`} style={{ width: `${imageSize ? imageSize : 100}%`, objectFit: 'contain' }} />
|
|
109
127
|
|
|
110
128
|
}
|
|
111
129
|
</div>
|
|
@@ -117,13 +135,14 @@ export const Row = (item: any) => {
|
|
|
117
135
|
display: 'flex',
|
|
118
136
|
justifyContent: 'flex-start',
|
|
119
137
|
width: '100%',
|
|
120
|
-
alignItems: 'center'
|
|
138
|
+
alignItems: 'center',
|
|
139
|
+
marginRight: '5px'
|
|
121
140
|
}}
|
|
122
141
|
>
|
|
123
142
|
{
|
|
124
143
|
awayTeam ?
|
|
125
|
-
|
|
126
|
-
|
|
144
|
+
<img src={`https://storage.googleapis.com/vixoniccom-emails/results_flags/${teams.away.id}.png`} style={{ width: `${imageSize ? imageSize : 100}%`, objectFit: 'contain' }} />
|
|
145
|
+
: <img src={`https://storage.googleapis.com/vixoniccom-emails/results_flags/0000.png`} style={{ width: `${imageSize ? imageSize : 100}%`, objectFit: 'contain' }} />
|
|
127
146
|
}
|
|
128
147
|
</div>
|
|
129
148
|
{
|
|
@@ -132,7 +151,8 @@ export const Row = (item: any) => {
|
|
|
132
151
|
style={{
|
|
133
152
|
display: 'flex',
|
|
134
153
|
justifyContent: 'flex-start',
|
|
135
|
-
|
|
154
|
+
marginLeft: '10px',
|
|
155
|
+
minWidth: '150px'
|
|
136
156
|
}}
|
|
137
157
|
>
|
|
138
158
|
<FormattedText text={nameAway} format={descriptionFormat} />
|