From 03c27ae859784321cd695f202018b324b1739717 Mon Sep 17 00:00:00 2001 From: Fuwn Date: Sun, 19 Nov 2023 03:06:28 -0800 Subject: feat(language): simplify --- src/routes/index.svelte | 4 +-- src/routes/language.svelte | 61 ++++++--------------------------------------- src/routes/languages.svelte | 2 +- 3 files changed, 10 insertions(+), 57 deletions(-) diff --git a/src/routes/index.svelte b/src/routes/index.svelte index 046410f..57af629 100644 --- a/src/routes/index.svelte +++ b/src/routes/index.svelte @@ -36,7 +36,7 @@ SPDX-License-Identifier: GPL-3.0-only -->
{#if !complete} -

Fetching a random image...

+

Fetching a random image ...

{:else}
@@ -46,7 +46,7 @@ SPDX-License-Identifier: GPL-3.0-only --> {/if}

Related Projects

-

Check out these other [The] Senpy Club-related projects!

+
  • API diff --git a/src/routes/language.svelte b/src/routes/language.svelte index 8e7ee77..0803635 100644 --- a/src/routes/language.svelte +++ b/src/routes/language.svelte @@ -88,22 +88,19 @@ SPDX-License-Identifier: GPL-3.0-only -->
    -

    {language}

    +

    + {language} +

    {#if !complete} -

    Fetching images...

    +

    Fetching girls ...

    {:else if images.length === 0} -

    Sorry, no images were found for this language.

    +

    No images were found for this language.

    {:else if image} {#if errorImages.includes(image)}

    - Could not locate that specific image! - Wanna go - back - to language homepage? + This image could not be found.

    @@ -112,52 +109,9 @@ SPDX-License-Identifier: GPL-3.0-only -->
    {:else if image}
    -

    - Wanna go - back - to language homepage? -

    - - + An anime girl holding a programming book - -

    Information

    -

    - Want to know more information about this specific anime scene? Like - what anime and episode it's from, frame, studio, where you can watch - it, and a bunch of other information); Visit - this - link! -

    - -

    Attributes

    -

    - Attributes attributes = {
    -  direct_link: "url",
    -  size: {imageSize}, /* kb */
    -  fetch_time: {fetchTime}, /* ms */
    - }; -

    - -

    Development Information

    -

    - The aforementioned link does have an API which can provide direct data - about images and could be integrated directly into this website, - however, there is a ratelimit of around one-thousand, low-tier - requests per month without a paid subscription, which is why the link - is outbound. -

    -

    - Integrating the API into this website is a future goal, however, it is - not financially viable at the moment for this project. If you'd like - to support the project to reach future goals, you can donate at - - github.com/sponsors/senpy-club - . -

    {/if} {:else} @@ -168,7 +122,6 @@ SPDX-License-Identifier: GPL-3.0-only --> href={`/language?language=${languageEncoded}&image=${images.indexOf( image )}`} - target="_blank" > An anime girl holding a programming book diff --git a/src/routes/languages.svelte b/src/routes/languages.svelte index fdac393..80097bc 100644 --- a/src/routes/languages.svelte +++ b/src/routes/languages.svelte @@ -36,7 +36,7 @@ SPDX-License-Identifier: GPL-3.0-only -->
    {#if !complete} -

    Fetching languages...

    +

    Fetching languages ...

    {:else}
      {#each languages as language} -- cgit v1.2.3