Skip to content

Commit

Permalink
Dev (#1124)
Browse files Browse the repository at this point in the history
* `hot-fix` for #974

* 🔥hot fix/prod h2h issues (#982)

* `update` README.md

* `issue` #972 #976

* `issue` #972

* `deepsource` JS-0357

* `deepsource` JS-0128

* `deepsource` JS-0051

* `deepsource` JS-0116

* `deepsource` JS-0246

* `deepsource` JS-0241

* `deepsource` JS-0241

* `deepsource` JS-0123

* `deepsource` JS-0356

* Update/fixture odds status ns 2 (#985)

* `hot-fix` for #974 (#975)

* `🔥hot-fix` to PROD (#983)

* `hot-fix` for #974

* 🔥hot fix/prod h2h issues (#982)

* `update` README.md

* `issue` #972 #976

* `issue` #972

* `deepsource` JS-0357

* `deepsource` JS-0128

* `deepsource` JS-0051

* `deepsource` JS-0116

* `deepsource` JS-0246

* `deepsource` JS-0241

* `deepsource` JS-0241

* `deepsource` JS-0123

* `deepsource` JS-0356

* issue #957

* Enhance/feature docker deploy (#1011)

* `update` logs for `PROD` server

* `update` for `Makefile`

* `update` for `.dockerignore`

* `setup` of `Docker` development env

* `update` for `package.json` with `scripts:`

* `.gitignore` update

* `update` for `Docker` in `PROD` deployment

* `update` Makefile

* `update` for `README.md`

* `update` express server for `https`

* add `new` deploy script with `Github Actions`

* `update` github actions test

* `revert` for `http` only support

* `update` for `Makefile`

* `update` for `deploy.yml`

* `revert` for `http` only support

* `add` for `https` deploy

* `update` - `Makefile`

* `update` - `my-server.js`

* issue `990`

* issue `990` - `V1`

* issue #949

* `update` packages

* `update` for `github/actions`

* issue #986

* `logs` update

* `update` for `settings.json`

* `update` issue #986

* `update` for `mobile` view `auth`

* `revert` express for `heroku`

* `revert` express for `heroku`

* `revert` express for `heroku`

* `revert` for `DEV` test `heroku`

* `revert` for `DEV` test `heroku`

* `revert` for `DEV` test `heroku`

* `add` back `AuthWidget`

* issue #1004

* issue #1004

* issue #1004 `checkout`

* `update` example widget

* issue #1004

* issue #1004 `dark-mode` hovers

* issue #1004 `🐞 debug`

* issue #1004 `🐞 debug`

* issue #1004

* issue #1004 `🐞 debug update`

* `revert` to `PROD` of `express-server`

* `deepsource` JS-0239

* `deepsource` JS-0239

* `deepsource` JS-0242

* `deepsource` JS-T1001

* Enhance/translations and wallet issues and other (#1030)

* issue #1006 #1021

* `update` .github/deploy script

* issue #1019

* `renaming`

* `aesthetic` `doc`

* `update` for `docker:dev` + `package.json` scripts

* `update` with `main`

* `update` settings.json

* issue #951

* issue #951

* issue #951

* issue #951 `redundant` code

* issue #951

* issue #1028

* issue #951 `styles` update

* `deepsource` JS-0128

* `update` documentations

* issue #1018

* `update` Makefile

* `update` Makefile

* Feature/profile page/issue 1022/user profile page work (#1067)

* `update` Makefile

* chore: update gitignore

* chore: update makefile

* chore: update template svelte widget;

* feat: add firestore; add firebase-storage;

* feat: add menu-widget on profile;

* feat: add profile widget assets;

* feat: update app.css;

* feat: add account widget; add dashboard widget;

* feat: update debug func;

* feat: add username-gen method;

* feat: update hasura types on profile_trans;

* feat: create new file for main component func.

* feat: add types - query - route profile data get;

* feat: profile page layout; profile page pre-load;

* chore: update tsconfig; update ref-readme;

* feat: update app.css;

* feat: update menu-widget cross-platform;

* feat: update app.css;

* feat: update platform-functions;

* feat: update assets for profile page components;

* feat: account widget responsivness;

* feat: polishing for main menu widget styles;

* feat: dashboard responsivness;

* feat: update platform main user-settings stores;

* doc: updating README;

* doc: renaming widgets files;

* feat: settings modals; settings profile cropper;

* feat: renaming dashboard widget; rename others (+)

* feat: new assets added;

* feat: layout for profile change to grid;

* feat: update auth-widget;

* doc: rename main header;

* feat: profile navbar create;

* doc: clear up code in +layout.svelte;

* feat: update for danger btn; add primary btn fade;

* feat: added menu opt hover effects;

* fix: #940

* fix: #944

* fix: #945

* fix: #565

* fix: #286

* fix: #998

* fix: #998

* fix: #993

* fix: #1008

* chore: aesthetic tournament/incident widget;

* doc: updated debug functions;

* fix: #1009

* fix: #1000 - 5XX page; #1000 - images to png;

* doc: update eslint; update prettier;

* doc: update prettier; update README;

* doc: update /+layout.ts aesthetics;

* doc: update /+layout.svelte aesthetics;

* doc: update prettier;

* doc: update package.json for removal bull bullmq;

* doc: update hooks.server.ts;

* doc: update README-DEV;

* feat: aesthetic app.html; add %lang% to app.html;

* doc: update prettier;

* feat: update hooks.server.ts for lang detection;

* doc: update README-DEV;

* fix: remove +layout.svelte use of <html lang={}>;

* feat: enhance debug.ts of platform in preload msg;

* feat: +layout.ts docs - aesth - promises;

* feat: clean/update (en) +page.ts - +page.svelte;

* doc: hooks.server.ts

* feat: prettier on widget-main; update types;

* chore: clean up leagues-table / best-goalscorers;

* feat: update profile-modal select for mobile;

* chore: update package.json scripts;

* chore: formatting with prettier;

* chore: update packages @sveltekit - vite - adnode;

* fix: #1000 - images width-heigth;

* chore: duplicate /(en) for /(lang) pages;

* feat: update correct $page.route.id use;

* doc: update prettier;

* chore: update package.json for plugin removal;

* feat: update new data-preload for sveltekit 1.5.5;

* chore: update global-types;

* chore: update debug-logs;

* feat: update correct $page.route.id use;

* chore: update debug-logs master file control;

* doc: update prettier;

* doc: update prettier version;

* fix: #1000 - (scaled-down) images to png;

* chore: update debug-logs;

* feat: update cache endpoints for prob-h2h trans;

* doc: update types for fixture-pages-info;

* test: promises in load() and update widget data;

* test: all fixed - updating;

* chore: transfer copy to /lang/fixture w/promise;

* feat: console.log() to debug.ts cont. update;

* feat: update scripts-package.json

* feat: update for pealoading data intents sessions;

* chore: update debug-master file;

* chore: update fixture/+page.ts (count.) logs geo;

* test: add detached endpoint for client-server IP;

* test: add detached endpoint for client-server IP;

* test: add detached endpoint layout.server.ts init;

* test: add detached endpoint layout.server.ts mod;

* test: add detached endpoint layout.server.ts mod;

* test: add detached endpoint layout.server.ts mod;

* test: server-heroku.js / layout.server.ts mod;

* test: page.server.ts mod;

* test: server-heroku.js mod;

* test: layout to client mod; del page.server;

* test: layou.ts mod;

* doc: update README-DEV;

* feat: update AuthWidget get/check user firestore;

* feat: updae WidgetSettings username & doc update;

* feat: update lang urls for profile page;

* feat: update main-layout nav transaltions handle;

* feat: update /u/[profile] page layout & widgets;

* feat: add darkmode to profile page widgets;

* feat: update navbar correct ui for profile page;

* chore: footer update comments;

* feat: revert Moralis to it's current state of auth;

* feat: update header for side-nav on profile page;

* feat: dark mode modals + btn-hollow; pic-add nav;

* hot-fix: update darkmode colors on profile;

* feat: update user profile route title page;

* feat: update OpenGraph types in main;

* doc: update debug (file);

* doc: update debug logs handle func;

* feat: (major) remove duplicate route for a locale;

* feat: moving fixture page layout to components;

* fix: correct new route.id rename;

* feat: (major) remove duplicate route for a locale;

* doc: update for lang-platform detect func;

* feat: remove cache control from (layout);

* fix: #1041;

* chore: update debug logs;

* chore: update debug logs fixutre/vote;

* fix: #1007;

* chore: update commens fixture/+page.ts

* fix: #1042;

* feat: (tournaments) #1034;

* fix: #940;

* fix: #944;

* fix: #1044 | 1,2,3,5,7,8,9,0,10,11,12;

* chore: update makefile;

* fix: #1044 | 4,8 (update)

* doc: update debug logs;

* fix: #1044;

* fix: #998;

* fix: #1007;

* fix: #940

* hot-fix: tablet profile page menu cahnge overflow;

* fix: #1044 - picture-profile update events;

* fix: #1044;

* fix: #1044 cont.;

* fix: #1044 cont. - restriction on profile-route;

* fix: #1044 cont. - transaltions;

* fix: #1009;

* fix: #1044 (cont);

* fix: #1058;

* fix: #1044 (translations);

* fix: #1044 (translations);

* fix: #1058 (update);

* fix: #1058 (update);

* fix: #1044 (upload-limit);

* fix: #1060;

* chore: data reduce (fixture) revert;

* fix: #1020;

* doc: README-DEV update; TEMPLATE (comp);

* fix: #1040;

* fix: #1044;

* fix: #1020 (mobile);

* fix: #1061;

* fix: #1020 (mobile-detect);

* fix: #1061;

* fix: #1066;

* fix: #1020;

* fix: #1020;

* hot-fix: Dockerfile python V update;

* hot-fix: deepsource issues;

* doc: update vscode/settings.json

* doc: update secrets;

* 🔥hot-fix: debug logs remove;

* Feature/livescore v2/issue 1055/update new livescore and bugs (#1106)

* Fix: typos (#1070)

* Fix: typos

* Fix: typos

* 🔥hot-fix: debug logs remove; (#1069)

* doc: update logs; add master debug; prettify;

* chore: remove package(s);

* chore: update .gitignore;

* chore: clean *.config.js for sveltekit;

* chore: clean docker-compose.dev;

* chore: update settings.json; add extensions.json;

* chore: update makefile comments;

* doc: contribute (update); ex-widget file (update);

* chore: update debug main comments;

* chore: remove console.logs;

* chore: remove console.logs (widgets) (cont);

* doc: new structure for svelte file apply Fix_Odds;

* doc: reformat README's contents (update);

* chore: re-structure components per page;

* chore: prettify app.css

* doc: update settings.json;

* doc: update contributing/template-widget.svelte;

* doc: update app.css (global);

* feat: add SEO-Box (widget);

* feat: add Widget-Title (widget);

* chore: update header (widget) debug-logs;

* feat: #1055 (stable) + (assets);

* feat: enhance session (stores);

* feat: decouple firebase (common) func (livescore);

* chore: update header (widget) debug-logs (cont);

* feat: #1055 (endpoint) to hasura on target date;

* feat: update dates (const);

* feat: #1055 (endpoint) to cache on target date(s);

* feat: page-level (home) update for fewer requests;

* chore: update betarena-types package imports;

* chore: update app.css (global);

* feat: update session-store for new reactive data;

* feat: update loaders

* feat: update responsivness for widget fixture row;

* feat: #1055 (cont) + (loader) + (components);

* feat/chore: update imports struct; fixes #1055;

* feat: #1055 (seo);

* chore: #1055 (cont) (title);

* chore: update debug-logs;

* chore: update debug-logs;

* feat: removed livescores-v1 (page-level);

* feat: #1055 (cont) - cal outlier case handle;

* feat: #1055 (cont) - validation checks + css;

* feat: #1055 (cont) - bet-tips-links;

* feat: #1055 (cont) - live status lib-use;

* feat: #1055 (cont) + dark + triggers + cal-mobile;

* chore: update use live @betarena/scores-lib npm;

* feat: #1055 (cont) minor-fix's

* fix: update bet-sites logos style;

* fix: unknown min value on live-fixtures;

* feat: add page-level livescroes listen on tab-chg;

* feat: first time request data for livescroes;

* chore: update @betarena/scores-lib packages;

* fix: added translations for calendar pop-up;

* feat: insert translations (cont);

* fix: update seo-box links #1055;

* feat: #1055 (endpoint) cache target leagues map;

* fix: (post-nuke) imports update;

* feat: update @[b]scores-lib package;

* fix: #1085 [mult];

* doc: template widget (update);

* chore: aesthetic (app.css);

* fix: #1085 [mult] (cont);

* fix: #1085 [mult] (cont);

* fix: #1085 [mult] (cont);

* fix: #1085 [mult] (cont);

* fix: #1085 [mult] (cont);

* chore: package.json (up); debug-logs (up);

* fix: #1085 [mult] (cont);

* fix: #1085 [mult] (cont);

* fix: #1085 [mult] (cont);

* fix: #1085 [mult] (cont);

* fix: #1085 [mult] (cont);

* fix: #1085 [mult] (cont);

* doc: settings.json (up); template.svelte (up);

* chore: clean league page code;

* fix: #1085 [mult] (cont);

* fix: #1096 [mult] (cont);

* fix: #1048;

* fix: #420;

* fix: #999;

* fix: #1010;

* fix: #1096;

* fix: #1097;

* fix: #1097;

* fix: #1097;

* chore: remove debug;

* fix: #1096;

* fix: #1096;

* fix: #1096;

* fix: #1096;

* fix: #1096;

* fix: #1096 (navbar) (up);

* fix: deepsource;

---------

Co-authored-by: omahs <[email protected]>

* Feature/issue 1063/migration to scores lib (#1119)

---------

Co-authored-by: omahs <[email protected]>
  • Loading branch information
migbash and omahs authored Mar 15, 2023
1 parent 39929e3 commit 826840d
Show file tree
Hide file tree
Showing 164 changed files with 2,069 additions and 12,919 deletions.
4 changes: 3 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,9 @@
"borderRadius": "2px"
}
],
// NOTE: SVELTE Specific Extensions (Config)
// -----------
// NOTE: [BELOW] SVELTE Specific Extensions (Config)
// -----------
// DOC: https://discord.com/channels/457912077277855764/1036919129782878218
// DOC: https://discord.com/channels/457912077277855764/1036369208721813554
"svelte.plugin.svelte.compilerWarnings": {
Expand Down
765 changes: 381 additions & 384 deletions package-lock.json

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"quick:preview:local:spin": "vite build && npm run preview",
"start:docker": "node server-docker.js",
"start:heroku": "node server-heroku.js",
"@betarena/scores-lib:pull:next": "npm i @betarena/scores-lib",
"@betarena/scores-lib:pull:next": "npm i @betarena/scores-lib@latest",
"@betarena/scores-lib:link": "npm link @betarena/scores-lib"
},
"devDependencies": {
Expand All @@ -50,7 +50,7 @@
},
"type": "module",
"dependencies": {
"@betarena/scores-lib": "^0.5.7",
"@betarena/scores-lib": "^0.7.1",
"@lukeed/uuid": "^2.0.0",
"@metamask/sdk": "^0.1.0",
"@moralisweb3/client-firebase-auth-utils": "^2.14.2",
Expand Down
2 changes: 1 addition & 1 deletion src/lib/components/_main_/auth/Auth_Widget.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ COMPONENT JS (w/ TS)
// (SSR) LANG SVELTE | IMPORTANT
// ~~~~~~~~~~~~~~~~~~~~~
let server_side_language = platfrom_lang_ssr(
$: server_side_language = platfrom_lang_ssr(
$page?.route?.id,
$page?.error,
$page?.params?.lang
Expand Down
55 changes: 33 additions & 22 deletions src/lib/components/_main_/header/Header.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ COMPONENT JS - BASIC
[TypeScript]
=================== -->
<script lang="ts">
import { browser } from '$app/environment';
import { browser, dev } from '$app/environment';
import { goto } from '$app/navigation';
import { page } from '$app/stores';
import { onMount } from 'svelte';
Expand All @@ -14,7 +14,7 @@ COMPONENT JS - BASIC
import {
getUserLocation,
getUserLocationFromIP
} from '$lib/geoJs/init';
} from '$lib/geo-js/init';
import { dlog, dlogv2, NB_W_STY, NB_W_TAG, NB_W_TOG } from '$lib/utils/debug';
import arrow_down_fade from './assets/arrow-down-fade.svg';
import arrow_down from './assets/arrow-down.svg';
Expand All @@ -29,8 +29,8 @@ COMPONENT JS - BASIC
import profile_avatar from './assets/profile-avatar.svg';
import light_icon_theme from './assets/theme-light-icon.svg';
import type { GeoJsResponse } from '$lib/models/geojs-types';
import type { Cache_Single_Lang_Header_Translation_Response } from '$lib/models/_main_/navbar/types';
import type { GeoJsResponse } from '$lib/types/geojs-types';
import { db_firestore } from '$lib/firebase/init';
import { sessionStore } from '$lib/store/session';
Expand Down Expand Up @@ -60,8 +60,8 @@ COMPONENT JS - BASIC
let langSelected: boolean = false;
const OMIT_URLS: string[] = [
'[[lang=lang]]/[sport]/[country]/[league_name]',
'[[lang=lang]]/[sport]/[fixture=fixture]'
'/[[lang=lang]]/[sport]/[country]/[league_name]',
'/[[lang=lang]]/[sport]/[fixture=fixture]'
]
const PROFILE_URL: string = '/u/[view]/[lang=lang]'
Expand Down Expand Up @@ -93,16 +93,6 @@ COMPONENT JS - BASIC
// COMPONENT METHODS
// ~~~~~~~~~~~~~~~~~~~~~
let setUserLang = false;
$: if ($userBetarenaSettings?.user != undefined
&& !setUserLang
&& PROFILE_URL != $page.route.id
) {
setUserLang = true
let userlang = $userBetarenaSettings.user?.scores_user_data?.lang
dlog(`${NB_W_TAG} 🔵 User Detected! Setting Auth language!`, NB_W_TOG, NB_W_STY)
selectLanguage(userlang)
}
// Set a Cookie
function setCookie(cName, cValue, expDays) {
Expand Down Expand Up @@ -195,11 +185,17 @@ COMPONENT JS - BASIC
async function selectLanguage(
lang: string
): Promise<void> {
// [ℹ] validation (exit);
if (server_side_language == lang) {
return;
}
// [ℹ] get past instance of LANG;
const pastLang: string =
$userBetarenaSettings.lang == 'en'
server_side_language == 'en'
? '/'
: `/${$userBetarenaSettings.lang}`
: `/${server_side_language}`
;
// [ℹ] set the user-lang to corresponding value;
userBetarenaSettings.setLang(lang);
Expand All @@ -208,6 +204,7 @@ COMPONENT JS - BASIC
`${NB_W_TAG} selectLanguage()`,
[
`$userBetarenaSettings.lang: ${$userBetarenaSettings.lang}`,
`server_side_language: ${server_side_language}`,
`lang: ${lang}`,
`pastLang: ${pastLang}`,
`$page.route.id: ${$page.route.id}`
Expand All @@ -233,7 +230,7 @@ COMPONENT JS - BASIC
}
// [ℹ] onError, navigate back to homepage
if ($page.error) {
if ($page.error && !dev) {
if (lang == 'en') {
dlog(`${NB_W_TAG} -> EN`, true, NB_W_STY)
await goto('/');
Expand Down Expand Up @@ -350,7 +347,7 @@ COMPONENT JS - BASIC
return;
}
const userGeoResponse: GeoJsResponse = await getUserLocation();
dlog(userGeoResponse, true);
dlog(`${NB_W_TAG} ${userGeoResponse}`, true);
let userGeo =
userGeoResponse.country_code === undefined
Expand Down Expand Up @@ -434,9 +431,23 @@ COMPONENT JS - BASIC
}
}
let setUserLang = false;
$: if ($userBetarenaSettings?.user != undefined
&& !setUserLang
&& PROFILE_URL != $page.route.id
) {
setUserLang = true
let userlang = $userBetarenaSettings.user?.scores_user_data?.lang
dlog(`${NB_W_TAG} 🔵 User Detected! Setting Auth language! ${userlang}`, NB_W_TOG, NB_W_STY)
selectLanguage(userlang)
}
// [ℹ] (archive) -> && PROFILE_URL == $page.route.id
$: if ($userBetarenaSettings?.lang
&& !$page.error
&& PROFILE_URL == $page.route.id) {
&& $page.route.id
&& $userBetarenaSettings?.user != undefined
&& setUserLang) {
update_select_lang()
}
Expand All @@ -446,8 +457,8 @@ COMPONENT JS - BASIC
* @returns {Promise<void>}
*/
async function update_select_lang(): Promise<void> {
dlog('🔵 Updating platform lang...');
const lang = $userBetarenaSettings?.lang;
dlog(`${NB_W_TAG} 🔵 Updating platform user lang ${lang}`, true);
// [ℹ] (update)from localStorage()
userBetarenaSettings.updateLang(
lang
Expand All @@ -462,7 +473,7 @@ COMPONENT JS - BASIC
await updateDoc(userRef, {
lang: lang
});
dlog('🟢 Language has been updated', true);
dlog(`${NB_W_TAG} 🟢 User language has been updated`, true);
}
/**
Expand Down
18 changes: 9 additions & 9 deletions src/lib/components/page/fixture/Breadcrumb.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,10 @@

<img
src="/assets/svg/tournaments/arrow-right.svg"
alt=""
alt="Arrow Right Icon"
class="m-r-10"
width="14px"
height="14px"
width="14"
height="14"
/>

<!--
Expand Down Expand Up @@ -80,10 +80,10 @@

<img
src="/assets/svg/tournaments/arrow-right.svg"
alt=""
alt="Arrow Right Icon"
class="m-r-10"
width="14px"
height="14px"
width="14"
height="14"
/>

<!--
Expand Down Expand Up @@ -111,10 +111,10 @@

<img
src="/assets/svg/tournaments/arrow-right.svg"
alt=""
alt="Arrow Right Icon"
class="m-r-10"
width="14px"
height="14px"
width="14"
height="14"
/>

<!--
Expand Down
14 changes: 12 additions & 2 deletions src/lib/components/page/fixture/Layout.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
import FeaturedBettingSitesWidget from '$lib/components/page/home/featured_betting_sites/_FeaturedBettingSitesWidget.svelte';
import type { Cache_Single_SportbookDetails_Data_Response } from '$lib/models/tournaments/league-info/types';
import { dlog } from '$lib/utils/debug';
import { viewport_change } from '$lib/utils/platform-functions';
import { platfrom_lang_ssr, viewport_change } from '$lib/utils/platform-functions';
import SvelteSeo from 'svelte-seo';
import Breadcrumb from './Breadcrumb.svelte';
Expand Down Expand Up @@ -201,6 +201,16 @@
);
});
// ~~~~~~~~~~~~~~~~~~~~~
// (SSR) LANG SVELTE | IMPORTANT
// ~~~~~~~~~~~~~~~~~~~~~
$: server_side_language = platfrom_lang_ssr(
$page?.route?.id,
$page?.error,
$page?.params?.lang
);
// ~~~~~~~~~~~~~~~~~~~~~
// REACTIVE SVELTE METHODS
// CRITICAL
Expand All @@ -209,7 +219,7 @@
// TODO: FIXME: replace into a single __layout.svelte method [?]
// TODO: FIXME: using page-stores [?]
// [ℹ] listen to change in LANG SELECT of `$userBetarenaSettings.lang`
let current_lang: string = $userBetarenaSettings.lang;
let current_lang: string = server_side_language;
$: refresh_lang = $userBetarenaSettings.lang;
$: lang_intent = $sessionStore.lang_intent;
Expand Down
6 changes: 3 additions & 3 deletions src/lib/components/page/fixture/about/About_Loader.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,9 @@
>
<img
src="/assets/svg/chevron-down.svg"
alt=""
width="20px"
height="20px"
alt="Arrow down icon"
width="20"
height="20"
/>
</div>
</div>
Expand Down
6 changes: 3 additions & 3 deletions src/lib/components/page/fixture/content/Content_Widget.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -320,9 +320,9 @@
[ℹ] featured-media -->
<img
src={item?.featured_media}
alt=""
width="80px"
height="80px"
alt="Featured Media"
width="80"
height="80"
/>
<!--
[ℹ] media-title + post-info -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@
fixture_time,
fixture_id
);
if (firebase_odds.length != 0) {
if (firebase_odds && firebase_odds?.length != 0) {
check_fixture_odds_inject(firebase_odds);
}
Expand Down Expand Up @@ -233,7 +233,7 @@
// (SSR) LANG SVELTE | IMPORTANT
// ~~~~~~~~~~~~~~~~~~~~~
let server_side_language = platfrom_lang_ssr(
$: server_side_language = platfrom_lang_ssr(
$page?.route?.id,
$page?.error,
$page?.params?.lang
Expand Down
12 changes: 6 additions & 6 deletions src/lib/components/page/fixture/incidents/Incident_Row.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -118,10 +118,10 @@
[ℹ] event minute -->
<img
src={icon}
alt=""
alt="Incident Icon"
class="event-icon"
width="18px"
height="18px"
width="18"
height="18"
/>
<p
class="
Expand Down Expand Up @@ -434,10 +434,10 @@
-->
<img
src={icon}
alt=""
alt="Incident Icon"
class="event-icon"
width="18px"
height="18px"
width="18"
height="18"
/>
{/if}
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
import {
FIXTURE_FULL_TIME_OPT,
FIXTURE_NOT_START_OPT
} from '$lib/models/sportmonks';
} from "@betarena/scores-lib/dist/api/sportmonks.js";
import no_visual from './assets/no_visual.svg';
import no_visual_dark from './assets/no_visual_dark.svg';
Expand Down Expand Up @@ -488,9 +488,9 @@
<img
src={FIXTURE_INCIDENTS?.home
?.team_logo}
alt=""
width="24px"
height="24px"
alt="Team image"
width="24"
height="24"
/>
<p
class="
Expand Down Expand Up @@ -521,9 +521,9 @@
<img
src={FIXTURE_INCIDENTS?.away
?.team_logo}
alt=""
width="24px"
height="24px"
alt="Team image"
width="24"
height="24"
/>
</div>
</div>
Expand Down
Loading

0 comments on commit 826840d

Please sign in to comment.