Skip to content

Commit

Permalink
fix: #1000 - 5XX page; #1000 - images to png;
Browse files Browse the repository at this point in the history
  • Loading branch information
migbash committed Feb 12, 2023
1 parent 27576ef commit f6239ae
Show file tree
Hide file tree
Showing 7 changed files with 64 additions and 43 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@
color-grey
minute-text
"
class:single-min={[...INCIDENT_INFO?.minute.toString()].length == 1}
class:single-min={INCIDENT_INFO?.minute < 10}
>
{INCIDENT_INFO?.minute}'
</p>
Expand Down Expand Up @@ -385,7 +385,7 @@
color-grey
minute-text
"
class:single-min={[...INCIDENT_INFO?.minute.toString()].length == 1}
class:single-min={INCIDENT_INFO?.minute < 10}
>
{INCIDENT_INFO?.minute}'
</p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,13 @@
import ScoreboardLoader from "./Scoreboard_Loader.svelte";
// import banner from './assets/banner.svg';
import close_icon from './assets/close.svg';
import no_visual from './assets/no_visual.svg';
import no_visual_dark from './assets/no_visual_dark.svg';
// import banner from './assets/banner.svg';
import { FIXTURE_FULL_TIME_OPT, FIXTURE_LIVE_TIME_OPT, FIXTURE_NOT_START_OPT } from '$lib/models/sportmonks';
import type { REDIS_CACHE_SINGLE_tournaments_fixtures_odds_widget_t_data_response } from '$lib/models/tournaments/fixtures_odds/types';
import close_icon from './assets/close.svg';
// ~~~~~~~~~~~~~~~~~~~~~
// COMPONENT VARIABLES
Expand Down Expand Up @@ -717,8 +718,8 @@
<img
src={FIXTURE_SCOREBOARD?.league_logo}
alt=""
width=14px
height=14px
width=14
height=14
/>
</div>
<p
Expand Down Expand Up @@ -752,8 +753,8 @@
src={FIXTURE_SCOREBOARD?.home_team_logo}
alt=""
class="m-b-12"
width=72px
height=72px
width=72
height=72
/>
<p
class="
Expand Down Expand Up @@ -913,8 +914,8 @@
src={FIXTURE_SCOREBOARD.away_team_logo}
alt=""
class="m-b-12"
width=72px
height=72px
width=72
height=72
/>
<p
class="
Expand Down Expand Up @@ -1117,8 +1118,8 @@
<img
src={FIXTURE_SCOREBOARD?.league_logo}
alt=""
width=14px
height=14px
width=14
height=14
/>
</div>
<p
Expand Down Expand Up @@ -1152,8 +1153,8 @@
src={FIXTURE_SCOREBOARD.home_team_logo}
alt=""
class="m-b-12"
width=72px
height=72px
width=72
height=72
/>
<p
class="
Expand Down Expand Up @@ -1314,8 +1315,8 @@
src={FIXTURE_SCOREBOARD.away_team_logo}
alt=""
class="m-b-12"
width=72px
height=72px
width=72
height=72
/>
<p
class="
Expand Down Expand Up @@ -1368,6 +1369,8 @@
id='sportbook-logo-img'
src={SPORTBOOK_INFO?.image}
alt={SPORTBOOK_INFO?.title}
width="67"
height="28"
/>
</a>
</div>
Expand Down Expand Up @@ -1395,10 +1398,13 @@
row-space-out
">
<!--
[ℹ] team-img / odds-type -->
[ℹ] team-img / odds-type
-->
<img
src={FIXTURE_SCOREBOARD.home_team_logo}
alt=""
alt="home team bet icon"
width="28"
height="28"
/>
<p
class="
Expand Down Expand Up @@ -1426,10 +1432,13 @@
row-space-out
">
<!--
[ℹ] team-img / odds-type -->
[ℹ] team-img / odds-type
-->
<img
src={close_icon}
alt=""
alt="bet draw icon"
width="28"
height="28"
/>
<p
class="
Expand Down Expand Up @@ -1457,10 +1466,13 @@
row-space-out
">
<!--
[ℹ] team-img / odds-type -->
[ℹ] team-img / odds-type
-->
<img
src={FIXTURE_SCOREBOARD.away_team_logo}
alt=""
alt="away team bet icon"
width="28"
height="28"
/>
<p
class="
Expand Down Expand Up @@ -1502,8 +1514,8 @@
src={FIXTURE_SCOREBOARD.home_team_logo}
alt=""
class="m-b-12"
width=88px
height=88px
width=88
height=88
/>
<p
class="
Expand Down Expand Up @@ -1539,8 +1551,8 @@
<img
src={FIXTURE_SCOREBOARD?.league_logo}
alt=""
width=14px
height=14px
width=14
height=14
/>
</div>
<p
Expand Down Expand Up @@ -1732,6 +1744,8 @@
id='sportbook-logo-img'
src={SPORTBOOK_INFO?.image}
alt={SPORTBOOK_INFO?.title}
width="67"
height="28"
/>
</a>
</div>
Expand Down Expand Up @@ -1764,7 +1778,9 @@
-->
<img
src={FIXTURE_SCOREBOARD.home_team_logo}
alt=""
alt="home team bet icon"
width="28"
height="28"
/>
<p
class="
Expand Down Expand Up @@ -1797,7 +1813,9 @@
-->
<img
src={close_icon}
alt=""
alt="bet draw icon"
width="28"
height="28"
/>
<p
class="
Expand Down Expand Up @@ -1830,7 +1848,9 @@
-->
<img
src={FIXTURE_SCOREBOARD.away_team_logo}
alt=""
alt="away team bet icon"
width="28"
height="28"
/>
<p
class="
Expand Down Expand Up @@ -1863,8 +1883,8 @@
src={FIXTURE_SCOREBOARD.away_team_logo}
alt=""
class="m-b-12"
width=88px
height=88px
width=88
height=88
/>
<p
class="
Expand Down Expand Up @@ -1965,8 +1985,8 @@
<img
src={FIXTURE_SCOREBOARD?.home_team_logo}
alt=""
width=40px
height=40px
width=40
height=40
/>
</div>
<!--
Expand Down Expand Up @@ -2126,8 +2146,8 @@
<img
src={FIXTURE_SCOREBOARD?.away_team_logo}
alt=""
width=40px
height=40px
width=40
height=40
/>
<p
class="
Expand Down Expand Up @@ -2506,7 +2526,7 @@
padding: 20px 12px;
min-height: 282px;
max-height: 282px;
background-image: url(./assets/banner-mobile.svg);
background-image: url(./assets/banner-mobile.png);
background-position: center;
background-repeat: no-repeat;
background-size: cover;
Expand Down Expand Up @@ -2660,7 +2680,7 @@
right: auto;
left: auto;
border-radius: 12px !important;
background-image: url(./assets/banner.svg) !important;
background-image: url(./assets/banner.png) !important;
background-position: center !important;
background-repeat: no-repeat !important;
background-size: cover !important;
Expand Down Expand Up @@ -2724,7 +2744,7 @@
div#scoreboard-widget-container div#scoreboard-top-box {
min-height: 254px;
max-height: 254px;
background-image: url(./assets/banner-tablet.svg);
background-image: url(./assets/banner-tablet.png);
background-position: center;
background-repeat: no-repeat;
background-size: cover;
Expand Down Expand Up @@ -2812,7 +2832,7 @@
div#scoreboard-widget-container div#scoreboard-top-box.full-time {
min-height: 207px;
max-height: 207px;
background-image: url(./assets/banner.svg);
background-image: url(./assets/banner.png);
background-position: center;
background-repeat: no-repeat;
background-size: cover;
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 3 additions & 3 deletions src/lib/models/hasura.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1125,7 +1125,7 @@ export interface BETARENA_HASURA_historic_fixtures {
} export interface EventsDatum {
fixture_id?: number;
id?: number;
minute?: number;
minute?: number | null;
on_pitch?: boolean;
player_id?: number;
player_name?: string;
Expand Down Expand Up @@ -1469,10 +1469,10 @@ export interface BETARENA_HASURA_scores_endpoints_translations {
export interface BETARENA_HASURA_scores_seo_fixtures {
lang?: string;
main_data?: Main_Data;
opengraph?: FixturesOpengraph;
opengraph?: OpenGraph;
sports_type?: string;
twitter_card?: FixturesTwitterCard;
} export interface FixturesOpengraph {
} export interface OpenGraph {
url?: string;
type?: string;
title?: string;
Expand Down
3 changes: 2 additions & 1 deletion src/routes/api/hasura/fixtures/incidents/+server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ async function main(_fixture_id: string): Promise<REDIS_CACHE_SINGLE_incidents_d
const events =
fixture_data?.events_j == undefined
? []
: fixture_data?.events_j.sort((a, b) => parseFloat(b.minute.toString()) - parseFloat(a.minute.toString()));
: fixture_data?.events_j.sort((a, b) => b?.minute - a?.minute)
;

// [ℹ] home-team
const home_team_id = fixture_data?.localteam_id_j;
Expand Down

0 comments on commit f6239ae

Please sign in to comment.