Remove unused components and models for improved maintainability

- Deleted redundant components (`AddActionButton`, `AlertBox`, `AlertStack`, `BackButton`, `CancelButton`, and `CollapsableArea`) and related files.
- Removed unused models (`Book`, `BookSerie`, `BookTables`, `Character`, and `Chapter`) to reduce codebase clutter.
- Updated project structure and references to reflect these removals.
This commit is contained in:
natreex
2026-03-22 22:37:31 -04:00
parent e8aaef108b
commit 64ed90d993
229 changed files with 15091 additions and 21289 deletions

View File

@@ -1,8 +1,6 @@
import {faSearch} from "@fortawesome/free-solid-svg-icons";
import {FontAwesomeIcon} from "@fortawesome/react-fontawesome";
import {ChangeEvent, Dispatch, SetStateAction} from "react";
import {useTranslations} from "next-intl";
import TextInput from "@/components/form/TextInput";
import {Search} from 'lucide-react';
import React, {ChangeEvent, Dispatch, SetStateAction} from "react";
import {useTranslations} from '@/lib/i18n';
export default function SearchBook(
{
@@ -15,20 +13,16 @@ export default function SearchBook(
const t = useTranslations();
return (
<div className="flex items-center relative my-5 w-full max-w-3xl">
<div className="relative flex-grow">
<div className="relative">
<FontAwesomeIcon icon={faSearch}
className="absolute left-4 top-1/2 transform -translate-y-1/2 text-primary w-5 h-5 pointer-events-none z-10"/>
<div className="pl-11">
<TextInput
value={searchQuery}
setValue={(e: ChangeEvent<HTMLInputElement>) => setSearchQuery(e.target.value)}
placeholder={t("searchBook.placeholder")}
/>
</div>
</div>
</div>
<div
className="flex items-center gap-3 w-full max-w-3xl bg-secondary rounded-xl px-4 py-2.5 border border-secondary hover:bg-gray-dark hover:border-gray-dark focus-within:border-primary focus-within:ring-4 focus-within:ring-primary/20 transition-all duration-200">
<Search className="text-muted w-4 h-4 flex-shrink-0" strokeWidth={1.75}/>
<input
type="text"
value={searchQuery}
onChange={(e: ChangeEvent<HTMLInputElement>): void => setSearchQuery(e.target.value)}
placeholder={t("searchBook.placeholder")}
className="w-full bg-transparent text-text-primary text-sm placeholder:text-muted outline-none"
/>
</div>
)
}