Skip to content

Commit

Permalink
minor (#1395)
Browse files Browse the repository at this point in the history
* Feature/issue-1359/fixture-incidents-players-urls (#1381)

* doc: update OpenAPI;

* chore: moved sleep() method to platform functions;

* feat: #1344; moved data endpoint to data/ dir;

* feat: #1344; updated target livescores_now;

* feat: #1344; updated session stores;

* feat: #1344; widget logic update; methods update;

* doc: TEMPLATE update .svelte structures;

* doc: rename TEMPLATE to v5;

* chore: rename lineups to V5 structure;

* chore: remove unecessary widget assets;

* feat: #1344; correct widget data endpoints;

* feat: #1344; correct widget data endpoints;

* chore: widget structure update; logic clean;

* feat: #1344; clean logic and methods update;

* chore: remove redundant TEAMPLTE file;

* chore: update structure; add links;

* chore: clean firebase methods; comments clean;

* feat: #1344; clean logic and methods update; cont;

* doc: template file update to V5;

* feat: #1344; clean logic and methods update; cont;

* chore: sturcutre file update; global serverLang;

* chore: sturcutre file update; global serverLang;

* feat: #1344; translation entry method fallback;

* package: scores-lib -> 0.14.1;

* chore: update player-page/breadcrumb;

* doc: update OpenAPI;

* chore: update global preload log method;

* chore: player-page/+page.ts clean;

* doc: update OpenAPI;

* issue: #1350;

* chore: update player/+page.ts;

* chore: update data/seo endpoint + clean;

* package: scores-lib -> 0.14.2;

* doc: update OpenAPI;

* doc: update OpenAPI;

* issue: #1352;

* issue: #1353;

* feat: #1220; incidents widget revamp V5;

* feat: #1220; lineups promote to layout listen;

* feat: #1220; fixture > statistics widget;

* feat: #1220; fixture > statistics widget (stable);

* chore: clean dates methods; clean code;

* chore: update global app.css;

* feat: #1220; fixture > scoreboard widget (stable);

* feat: #1220; fixture (page) layout;

* feat: update firebase method odds; session inject;

* feat: #1220; fixture > probability widget;

* chore: update global method for google events;

* feat: #1220; fixture > votes widget;

* feat: #1220; fixture > h2h widget;

* feat: #1220; fixture (page) layout;

* feat: #1220; fixture > about widget;

* feat: #1220; fixture > content widget;

* feat: #1220; fixture > about widget; (clean)

* feat: update H2H endpoint data entry;

* doc: update OpenAPI;

* feat: #1220; fixture > h2h widget; (cont);

* feat: #1220; fixture > scoreboard widget; (cont);

* feat: update Votes endpoint data entry;

* feat: #1220; fixture > votes widget; (cont);

* doc: update OpenAPI;

* chore: update endpoint target name;

* feat: #1220; fixture > h2h widget; (cont);

* feat: #1220; fixture > content widget; (cont);

* doc: update OpenAPI;

* feat: #1220; fixture > h2h widget; (cont);

* chore: clean about; remove unused assets;

* chore: dates.ts update;

* chore: update googleEvents actions conditions add;

* chore: update widgets; votes; probability;

* chore: h2h widget clean; update;

* chore: scoreboard widget update;

* chore: scoreboard (main) widget update;

* chore: clean fixture > scoreboard (partial);

* chore: add google action-str;

* chore: clean fixture > h2h (comment);

* chore: clean fixture > h2h logci resturcture;

* chore: add google action-str;

* chore: clean fixture > content logic resturcture;

* chore: clean up invalid import data; votes; prob;

* chore: clean fixture > content endpoint revamp;

* doc: update OpenAPI;

* chore: clean fixture > scoreboard endpoint revamp;

* doc: update OpenAPI;

* chore: clean fixture > statistics endpoint revamp;

* doc: update OpenAPI;

* chore: clean fixture > about endpoint revamp;

* doc: update OpenAPI;

* chore: clean fixture > prob. endpoint revamp;

* doc: update OpenAPI;

* chore: clean fixture > incidents endpoint revamp;

* doc: update OpenAPI;

* chore: corrections all round fixture widgets;

* chore: update frontend types;

* chore: add google action-str;

* chore: offset votes mutation to endpoint;

* doc: update OpenAPI;

* chore: update session methods;

* chore: update session methods;

* chore: update frontend types;

* chore: update user-settings methods;

* chore: move fixture-vote localStore to main func;

* doc: update OpenAPI;

* chore: update fixture-vote fixture > votes widget;

* chore: remove fixutreVotes kickstart data;

* chore: clean +page.ts;

* feat: #1220; fixture > standings widget;

* feat: #1220; fixture > votes widget; (cont);

* chore: update frontend types;

* chore: upgrade and relocate feat-bet-site;

* chore: clean redundant comments;

* chore: clean up color-thief methods;

* chore: clean up featured-bet-site widget (widget);

* chore: update feat-bet-site widget layout loc;

* chore: add fixture > votes to fixture page.ts;

* chore: clean up featured-match widget (widget);

* chore: add comments;

* chore: clean up featured-match widget (widget);

* chore: clean up featured-match widget (widget);

* chore: clean up log; data inconsist; corrections;

* chore: +page.ts; endpoints logs update;

* chore: clean timer set intervals;

* chore: clean up votes-main;

* chore: user-settings update check null;

* chore: update h2h; votes; handle of odds post-FT;

* chore: feat-bet-site update viewport; show/hide;

* feat: #1220; fixture > probability widget; (cont);

* chore: add filter for non domestic leagues;

* chore: update featured match styles;

* feat: update probabilities logic of noData

* feat: #1220; update player > fixtures;

* package: scores-lib -> 0.15.0;

* chore: update feat-match styles;

* fix: feat-match data optional checkers;

* feat: move sportbookIndentify func to global;

* doc: update OpenAPI;

* feat: session methods update;

* feat: #1220; player > fixtures (widget) correct;

* feat: #1220; player > fixtures (widget) correct;

* package: scores-lib -> 0.15.1;

* fix: featured-match error;

* feat: update to live data tables use;

* issue: #1372; (+) comments;

* chore: correct mobile order of elements;

* fix: #1374;

* chore: dates function handle update;

* fix: featured match widget corrections;

* issue: #1375;

* issue: #1376;

* issue: #1377;

* issue: #1378;

* issue: #1371;

* package: scores-lib -> 0.15.2;

* issue: #1378;

* issue: #1378; (test)

* chore: fixture > incidents; lineups; (clean);

* feat: #1359; (+endpoint);

* chore: fixture > lineups; (clean);

* fix: #1380;

* doc: update OpenAPI;

* package: scores-lib -> 0.16.0;

* fix: #1359; undefined players omit links;

* issue: #1382; #1383; #1384;

* package: scores-lib -> 0.16.1;

* fix: revert to {@html ...} for about match widget;

* issue: #1359; incidents (widget) revamp;

* issue: #1359; lineups (widget) revamp;

* issue: #1359; incidents; lineups; endpoint revert;

* doc: update OpenAPI;

* package: scores-lib -> 0.16.2;

* package: scores-lib -> 0.16.6; #1390;

* chore: use of api/data/players entry translations;

* package: scores-lib -> 0.16.7;

* fix: #1391;

* fix: featured-match invalid view;

* fix: #1391;

* fix: #1326;

* fix: #1326;

* package: scores-lib -> 0.16.8;

* fix: deepsource;

* ci: update docker python package;

* ci: update docker python package;

* ci: update docker python package;
  • Loading branch information
migbash authored Jun 13, 2023
1 parent 7f48aa4 commit 0895e4f
Show file tree
Hide file tree
Showing 29 changed files with 778 additions and 785 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ COPY package.json package-lock.json ./
# [ℹ] example-use: https://superuser.com/questions/1055060/how-to-install-a-specific-package-version-in-alpine
# [ℹ] example-use: https://superuser.com/questions/1198215/fixate-version-alpine-linux-apk-package-in-container
RUN apk add --no-cache \
python3=3.10.11-r0 \
python3=3.10.12-r0 \
make=4.3-r0 \
g++=11.2.1_git20220219-r2 \
&& npm install -g [email protected] \
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.dev
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ COPY package.json package-lock.json ./
# [ℹ] example-use: https://superuser.com/questions/1055060/how-to-install-a-specific-package-version-in-alpine
# [ℹ] example-use: https://superuser.com/questions/1198215/fixate-version-alpine-linux-apk-package-in-container
RUN apk add --no-cache \
python3=3.10.11-r0 \
python3=3.10.12-r0 \
make=4.3-r0 \
g++=11.2.1_git20220219-r2 \
&& npm i --omit=optional
Expand Down
42 changes: 36 additions & 6 deletions openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,42 @@ paths:
description:
Target fixture FEAT-MATCH widget data

# [LP] - STANDINGS Widget
# TODO: move to /api/data/[...]
/api/cache/tournaments/standings:
get:
parameters:
- name: filter
in: query
description:
Target league/tournament (main) STANDINGS widget data parameters
required: true
style: form
explode: true
schema:
type: object
properties:
# ?league_id=[...]
league_id:
type: number
example: 2
# ?lang=[...]
lang:
type: string
example: es
additionalProperties: false
oneOf:
# translation
- required: [lang]
# data (main) [players]
- required: [league_id]
summary:
Returns a targets' fixture (id) main Standings widget (data).
responses:
200:
description:
Target fixture STANDINGS widget data

# [L] - SEO-PAGES Main
/api/data/main/seo-pages:
get:
Expand Down Expand Up @@ -433,18 +469,12 @@ paths:
lang:
type: string
example: es
# ?player_ids=[...]
player_ids:
type: string
example: 580
additionalProperties: false
oneOf:
# translation
- required: [lang]
# data (main) [lineup]
- required: [fixture_id]
# data (main) [players]
- required: [player_ids]
summary:
Returns a targets' fixture (id) main Lineup widget (data).
responses:
Expand Down
14 changes: 7 additions & 7 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
},
"type": "module",
"dependencies": {
"@betarena/scores-lib": "^0.15.2",
"@betarena/scores-lib": "^0.16.8",
"@lukeed/uuid": "^2.0.1",
"@metamask/sdk": "^0.1.0",
"@moralisweb3/client-firebase-auth-utils": "^2.18.4",
Expand Down
2 changes: 1 addition & 1 deletion src/lib/components/page/fixture/about/About-Widget.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ NOTE: [HINT] use (CTRL+SPACE) to select a (class) (id) style
<!--
SEO
-->
<p>{WIDGET_S_DATA?.seo_data}</p>
{@html WIDGET_S_DATA?.seo_data}
</SeoBox>

<!-- [🐞] -->
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ NOTE: [HINT] use (CTRL+SPACE) to select a (class) (id) style
<div
id="content-box"
>
{#each FIXTURE_CONTENT?.slice(0, limitViewRow) || [] as item}
{#each FIXTURE_CONTENT?.length > 0 ? FIXTURE_CONTENT?.slice(0, limitViewRow) : [] as item}
<a
aria-label="fixture-post-link"
href={item?.link}
Expand Down
13 changes: 10 additions & 3 deletions src/lib/components/page/fixture/content/Content-Widget.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,19 @@ COMPONENT JS (w/ TS)
WIDGET_DATA = WIDGET_S_DATA
const if_0 =
const if_M_0: boolean =
WIDGET_DATA == undefined
|| WIDGET_DATA?.length == 0
;
if (if_0)
if (if_M_0)
{
dlog(`${CO_W_F_TAG} ❌ no data available!`, CO_W_F_TOG, CO_W_F_STY);
// [🐞]
dlog
(
`${CO_W_F_TAG} ❌ no data available!`,
CO_W_F_TOG,
CO_W_F_STY
);
NO_WIDGET_DATA = true;
return;
}
Expand Down
Loading

0 comments on commit 0895e4f

Please sign in to comment.