Completely reworked the app by starting fresh

- Now you can just swipe to access categories
- Redone side menu
- Inital API input screen is more legible
- A goose as an icon
- Proper display and internal name
- Correct handling of incoming data
This commit is contained in:
2025-10-16 16:41:01 +02:00
parent 8895bc9c9d
commit 26e5b0ae6f
26 changed files with 6089 additions and 1810 deletions

View File

@@ -1,6 +1,5 @@
export type Category = "home" | "royal-road" | "podcasts" | "mixtapes" | "utility";
const baseCategories = [
{ key: "home", label: "Home", title: "Welcome to Home!" },
{ key: "royal-road", label: "Royal Road", title: "Royal Road Chapters" },
@@ -9,7 +8,8 @@ const baseCategories = [
{ key: "utility", label: "Utility", title: "Utility" },
] as const;
export const categoryKeys: Category[] = baseCategories.map(c => c.key);
export const categoryKeys: Category[] = baseCategories.map(c => c.key) as Category[];
export const categories: { label: string; key: Category }[] = baseCategories.map(c => ({ label: c.label, key: c.key }));
export const categoryTitles: Record<Category, string> = Object.fromEntries(baseCategories.map(c => [c.key, c.title])) as Record<Category, string>;
export default Category;