From fda432b21b2d6b6238bfd9f9fb645dcec1020ee7 Mon Sep 17 00:00:00 2001 From: migbash <20924663+migbash@users.noreply.github.com> Date: Tue, 12 Sep 2023 15:32:55 +0100 Subject: [PATCH] #1652: fix; feat: upgrade to single entry file; --- .../lobby/highlights/Highlights-Loader.svelte | 118 ++++----- .../loaders/CHIGH-Loader-Entry.svelte | 234 ++++++++++++++++++ .../loaders/CHIGH-Loader-Extra-Info.svelte | 18 -- .../loaders/CHIGH-Loader-JoinNow-Btn.svelte | 17 -- .../loaders/CHIGH-Loader-Participants.svelte | 19 -- .../loaders/CHIGH-Loader-Team-Box.svelte | 18 -- .../loaders/CHIGH-Loader-Timer-Box.svelte | 18 -- .../loaders/CHIGH-Loader-Timer-Start.svelte | 17 -- .../loaders/CHIGH-Loader-Top-Left.svelte | 18 -- .../loaders/CHIGH-Loader-Top-Right.svelte | 17 -- .../CHIGH-Loader-Tournament-Box.svelte | 17 -- .../CHIGH-Loader-Tournament-Info.svelte | 18 -- 12 files changed, 282 insertions(+), 247 deletions(-) create mode 100644 src/lib/components/page/lobby/highlights/loaders/CHIGH-Loader-Entry.svelte delete mode 100644 src/lib/components/page/lobby/highlights/loaders/CHIGH-Loader-Extra-Info.svelte delete mode 100644 src/lib/components/page/lobby/highlights/loaders/CHIGH-Loader-JoinNow-Btn.svelte delete mode 100644 src/lib/components/page/lobby/highlights/loaders/CHIGH-Loader-Participants.svelte delete mode 100644 src/lib/components/page/lobby/highlights/loaders/CHIGH-Loader-Team-Box.svelte delete mode 100644 src/lib/components/page/lobby/highlights/loaders/CHIGH-Loader-Timer-Box.svelte delete mode 100644 src/lib/components/page/lobby/highlights/loaders/CHIGH-Loader-Timer-Start.svelte delete mode 100644 src/lib/components/page/lobby/highlights/loaders/CHIGH-Loader-Top-Left.svelte delete mode 100644 src/lib/components/page/lobby/highlights/loaders/CHIGH-Loader-Top-Right.svelte delete mode 100644 src/lib/components/page/lobby/highlights/loaders/CHIGH-Loader-Tournament-Box.svelte delete mode 100644 src/lib/components/page/lobby/highlights/loaders/CHIGH-Loader-Tournament-Info.svelte diff --git a/src/lib/components/page/lobby/highlights/Highlights-Loader.svelte b/src/lib/components/page/lobby/highlights/Highlights-Loader.svelte index a368104bd..4f15e22a4 100644 --- a/src/lib/components/page/lobby/highlights/Highlights-Loader.svelte +++ b/src/lib/components/page/lobby/highlights/Highlights-Loader.svelte @@ -23,16 +23,9 @@ // ### 5. type(s) imports(s) ◼️ // ### ◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️◼️ - import ChighLoaderExtraInfo from "./loaders/CHIGH-Loader-Extra-Info.svelte"; - import ChighLoaderJoinNowBtn from "./loaders/CHIGH-Loader-JoinNow-Btn.svelte"; - import ChighLoaderParticipants from "./loaders/CHIGH-Loader-Participants.svelte"; - import ChighLoaderTeamBox from "./loaders/CHIGH-Loader-Team-Box.svelte"; - import ChighLoaderTimerBox from "./loaders/CHIGH-Loader-Timer-Box.svelte"; - import ChighLoaderTimerStart from "./loaders/CHIGH-Loader-Timer-Start.svelte"; - import ChighLoaderTopLeft from "./loaders/CHIGH-Loader-Top-Left.svelte"; - import ChighLoaderTopRight from "./loaders/CHIGH-Loader-Top-Right.svelte"; - import ChighLoaderTournamentBox from "./loaders/CHIGH-Loader-Tournament-Box.svelte"; - import ChighLoaderTournamentInfo from "./loaders/CHIGH-Loader-Tournament-Info.svelte"; + import userBetarenaSettings from '$lib/store/user-settings.js'; + + import ChighLoaderEntry from "./loaders/CHIGH-Loader-Entry.svelte"; // #endregion ➤ 📦 Package Imports @@ -82,6 +75,7 @@ " widget-component " + class:dark-background-1={$userBetarenaSettings.theme == 'Dark'} >
- - - - +
- - - -
- {#each { length: 3 } ?? [] as _} - - {/each} -
- +
+ + + + + + +{#if competitionTopLeftBox} + + + + +{/if} + + +{#if competitionTopRightBox} + + + +{/if} + + +{#if competitionTournamentBox} + + + + + +{/if} + + +{#if competitionExtraInfo} + + + + +{/if} + + +{#if competitionJoinNowBox} + + + +{/if} + + +{#if competitionParticipants} + + + + + +{/if} + + +{#if competitionTeamBox} + + + + + + + + + +{/if} + + +{#if competitionCountdown} + + + + + + + + + + +{/if} diff --git a/src/lib/components/page/lobby/highlights/loaders/CHIGH-Loader-Extra-Info.svelte b/src/lib/components/page/lobby/highlights/loaders/CHIGH-Loader-Extra-Info.svelte deleted file mode 100644 index b514f9cfb..000000000 --- a/src/lib/components/page/lobby/highlights/loaders/CHIGH-Loader-Extra-Info.svelte +++ /dev/null @@ -1,18 +0,0 @@ - - - - - - diff --git a/src/lib/components/page/lobby/highlights/loaders/CHIGH-Loader-JoinNow-Btn.svelte b/src/lib/components/page/lobby/highlights/loaders/CHIGH-Loader-JoinNow-Btn.svelte deleted file mode 100644 index f4621a4a5..000000000 --- a/src/lib/components/page/lobby/highlights/loaders/CHIGH-Loader-JoinNow-Btn.svelte +++ /dev/null @@ -1,17 +0,0 @@ - - - - - diff --git a/src/lib/components/page/lobby/highlights/loaders/CHIGH-Loader-Participants.svelte b/src/lib/components/page/lobby/highlights/loaders/CHIGH-Loader-Participants.svelte deleted file mode 100644 index 444a53868..000000000 --- a/src/lib/components/page/lobby/highlights/loaders/CHIGH-Loader-Participants.svelte +++ /dev/null @@ -1,19 +0,0 @@ - - - - - - - diff --git a/src/lib/components/page/lobby/highlights/loaders/CHIGH-Loader-Team-Box.svelte b/src/lib/components/page/lobby/highlights/loaders/CHIGH-Loader-Team-Box.svelte deleted file mode 100644 index 765134fc6..000000000 --- a/src/lib/components/page/lobby/highlights/loaders/CHIGH-Loader-Team-Box.svelte +++ /dev/null @@ -1,18 +0,0 @@ - - - - - - diff --git a/src/lib/components/page/lobby/highlights/loaders/CHIGH-Loader-Timer-Box.svelte b/src/lib/components/page/lobby/highlights/loaders/CHIGH-Loader-Timer-Box.svelte deleted file mode 100644 index a964ed43b..000000000 --- a/src/lib/components/page/lobby/highlights/loaders/CHIGH-Loader-Timer-Box.svelte +++ /dev/null @@ -1,18 +0,0 @@ - - - - - - diff --git a/src/lib/components/page/lobby/highlights/loaders/CHIGH-Loader-Timer-Start.svelte b/src/lib/components/page/lobby/highlights/loaders/CHIGH-Loader-Timer-Start.svelte deleted file mode 100644 index 4cc446785..000000000 --- a/src/lib/components/page/lobby/highlights/loaders/CHIGH-Loader-Timer-Start.svelte +++ /dev/null @@ -1,17 +0,0 @@ - - - - - diff --git a/src/lib/components/page/lobby/highlights/loaders/CHIGH-Loader-Top-Left.svelte b/src/lib/components/page/lobby/highlights/loaders/CHIGH-Loader-Top-Left.svelte deleted file mode 100644 index 8f45ec1c0..000000000 --- a/src/lib/components/page/lobby/highlights/loaders/CHIGH-Loader-Top-Left.svelte +++ /dev/null @@ -1,18 +0,0 @@ - - - - - - \ No newline at end of file diff --git a/src/lib/components/page/lobby/highlights/loaders/CHIGH-Loader-Top-Right.svelte b/src/lib/components/page/lobby/highlights/loaders/CHIGH-Loader-Top-Right.svelte deleted file mode 100644 index 7da7c1075..000000000 --- a/src/lib/components/page/lobby/highlights/loaders/CHIGH-Loader-Top-Right.svelte +++ /dev/null @@ -1,17 +0,0 @@ - - - - - diff --git a/src/lib/components/page/lobby/highlights/loaders/CHIGH-Loader-Tournament-Box.svelte b/src/lib/components/page/lobby/highlights/loaders/CHIGH-Loader-Tournament-Box.svelte deleted file mode 100644 index f15691293..000000000 --- a/src/lib/components/page/lobby/highlights/loaders/CHIGH-Loader-Tournament-Box.svelte +++ /dev/null @@ -1,17 +0,0 @@ - - - - - diff --git a/src/lib/components/page/lobby/highlights/loaders/CHIGH-Loader-Tournament-Info.svelte b/src/lib/components/page/lobby/highlights/loaders/CHIGH-Loader-Tournament-Info.svelte deleted file mode 100644 index 16a8e5fd2..000000000 --- a/src/lib/components/page/lobby/highlights/loaders/CHIGH-Loader-Tournament-Info.svelte +++ /dev/null @@ -1,18 +0,0 @@ - - - - - -