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:
@@ -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;
|
||||
Reference in New Issue
Block a user