From 8c634a381aafa5c17cec1da46404e3871e6dbf86 Mon Sep 17 00:00:00 2001 From: ld3zian <42660576+ld3z@users.noreply.github.com> Date: Sun, 26 Jan 2025 11:50:58 -0700 Subject: [PATCH] search pt 1 --- src/components/SlugInput.astro | 282 ++++++++++++++++++++------------- src/lib/api.ts | 3 +- src/pages/custom.astro | 4 +- 3 files changed, 174 insertions(+), 115 deletions(-) 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' }, +]; --- -
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"