diff --git a/CONTRIBUTING/TEMPLATE.svelte b/CONTRIBUTING/TEMPLATE.svelte index 79430ba3c..a53639ba5 100644 --- a/CONTRIBUTING/TEMPLATE.svelte +++ b/CONTRIBUTING/TEMPLATE.svelte @@ -19,28 +19,9 @@ COMPONENT JS (w/ TS) //#region ➤ [MAIN] Package Imports // <-imports-go-here-> - //#region ➤ Svelte/SvelteKit Imports - // <-imports-go-here-> import { onMount } from 'svelte'; - //#endregion ➤ Svelte/SvelteKit Imports - - //#region ➤ Project Custom Imports - // <-imports-go-here-> import { viewport_change } from '$lib/utils/platform-functions'; - //#endregion ➤ Project Custom Imports - - //#region ➤ [PLUGIN] Firebase Imports - // <-imports-go-here-> - //#endregion ➤ [PLUGIN] Firebase Imports - - //#region ➤ Types Imports - // <-imports-go-here-> - //#endregion ➤ Types Imports - - //#region ➤ Assets Imports - // <-imports-go-here-> import profile_avatar from './assets/profile-avatar.svg'; - //#endregion ➤ Assets Imports //#endregion ➤ [MAIN] Package Imports diff --git a/src/app.html b/src/app.html index 7af323aaa..4824ecdf4 100644 --- a/src/app.html +++ b/src/app.html @@ -4,7 +4,11 @@ - [ℹ] YANDEX - ORIGINAL - [ℹ] GOOGLE V1 - ORIGINAL - [ℹ] GOOGLE V2 - NONCE BASED + [ℹ] 1. SMARTLOOK + [ℹ] 2. GOOGLE ANALYTICS --> - + > + - %sveltekit.head% { // ... verify if the response is error-free @@ -25,7 +25,7 @@ export async function get( if (dev) logErrorGroup( 'utils [DEV]', - `response: ${response}` + `response: ${JSON.stringify(response)}` ); throw new Error( 'Network response was not ok' @@ -34,6 +34,7 @@ export async function get( // ... return the data return response.json(); }); + return response; } /** @@ -54,7 +55,7 @@ export async function post( data ): Promise { // ... - return await fetch(path, { + const response = await fetch(path, { method: 'POST', credentials: 'include', body: JSON.stringify(data), @@ -69,7 +70,7 @@ export async function post( if (dev) logErrorGroup( 'utils [DEV]', - `response: ${response}` + `response: ${JSON.stringify(response)}` ); throw new Error( 'Network response was not ok' @@ -78,4 +79,5 @@ export async function post( // ... return the data return response.json(); }); + return response; } diff --git a/src/lib/components/Widget-No-Data.svelte b/src/lib/components/Widget-No-Data.svelte new file mode 100644 index 000000000..6b28d56f6 --- /dev/null +++ b/src/lib/components/Widget-No-Data.svelte @@ -0,0 +1,197 @@ + + + + + + + + + + + + + + + + + + +
+ + No widget visual icon + +
+

+ {NO_DATA_TITLE} +

+

+ {NO_DATA_DESC} +

+
+
+ + + + \ No newline at end of file diff --git a/src/lib/components/_main_/footer/_Footer.svelte b/src/lib/components/_main_/footer/_Footer.svelte index 3fce827f1..f3b94c879 100644 --- a/src/lib/components/_main_/footer/_Footer.svelte +++ b/src/lib/components/_main_/footer/_Footer.svelte @@ -5,6 +5,7 @@ -
- + + - - {/if} + --> +
+

{SEO_BLOCK_DATA.title}

+ {@html SEO_BLOCK_DATA.html} +
+
+ +
- {#if noSEOBlockData && !loaded} - -

- {SEO_BLOCK_DATA.title} -

- - -
- {#if $userBetarenaSettings.theme == 'Dark'} - no-featured-match-visual_dark - {:else} - no-featured-match-visual - {/if} - - -
-

- No SEO Block Available -

-

- Sorry, at this time there is no SEO data - available! -

-
-
+ {/if} {:then data} - -

- {SEO_BLOCK_DATA.title} -

-
- + {:catch error} {error} {/await} @@ -162,19 +123,6 @@ COMPONENT STYLE ==================== -->