diff --git a/src/components/SlugInput.astro b/src/components/SlugInput.astro index f680986..94db311 100644 --- a/src/components/SlugInput.astro +++ b/src/components/SlugInput.astro @@ -6,74 +6,78 @@ interface Props { const { currentSlugs = [] } = Astro.props; import { availableLanguages, languageMap } from '../lib/api'; + +const languages = [ + { value: 'en', label: 'English' }, + { value: 'ja', label: 'Japanese' }, + { value: 'ko', label: 'Korean' }, + { value: 'zh', label: 'Chinese' }, + { value: 'fr', label: 'French' }, + { value: 'es', label: 'Spanish' }, + { value: 'it', label: 'Italian' }, + { value: 'de', label: 'German' }, + { value: 'tr', label: 'Turkish' }, + { value: 'pl', label: 'Polish' }, +]; --- -
-
- +
+
- -
+
-
-
- - +
{currentSlugs.map(slug => ( -
+
{slug}
))}
-
+ \ No newline at end of file diff --git a/src/lib/api.ts b/src/lib/api.ts index 131f8ec..d566cbe 100644 --- a/src/lib/api.ts +++ b/src/lib/api.ts @@ -11,7 +11,8 @@ const languageMap = { "zh": "Chinese", "sv": "Swedish", "ar": "Arabic", - "de": "German" + "de": "German", + "ko": "Korean" } as const; const languages = new Set(Object.keys(languageMap)); diff --git a/src/pages/custom.astro b/src/pages/custom.astro index a893396..87f97a8 100644 --- a/src/pages/custom.astro +++ b/src/pages/custom.astro @@ -15,8 +15,8 @@ const description = "Create a custom RSS feed for your favorite comics";
-

Add the comic slugs from the URLs of your favorite comics on ComicK.

-

Example: For https://comick.io/comic/01-one-piece, the slug is "01-one-piece"

+

Search for your favorite comics using the search box above, or add their slugs manually.

+

Manual example: For https://comick.io/comic/01-one-piece, the slug is "01-one-piece"

\ No newline at end of file