669addf799
Build and Push Reader Image / docker (push) Failing after 22s
- Introduced a new batch import client for handling multiple EPUB files simultaneously. - Updated API routes for previewing and importing EPUB files, improving error handling and response management. - Enhanced genre management during import, allowing for dynamic creation and association of genres. - Implemented long-fetch handling to accommodate lengthy processing times for large EPUB files. - Refined UI components for better user experience in the import workflow.
21 lines
712 B
TypeScript
21 lines
712 B
TypeScript
import { ImportBatchClient } from "./import-batch-client"
|
|
import { ImportClient } from "./import-client"
|
|
import { Tabs, TabsContent, TabsList, TabsTrigger } from "@/components/ui/tabs"
|
|
|
|
export default function ModImportPage() {
|
|
return (
|
|
<Tabs defaultValue="single" className="w-full">
|
|
<TabsList className="mx-4 mt-4 md:mx-6">
|
|
<TabsTrigger value="single">Một EPUB</TabsTrigger>
|
|
<TabsTrigger value="batch">Nhiều EPUB (tự động)</TabsTrigger>
|
|
</TabsList>
|
|
<TabsContent value="single" className="mt-0">
|
|
<ImportClient />
|
|
</TabsContent>
|
|
<TabsContent value="batch" className="mt-0">
|
|
<ImportBatchClient />
|
|
</TabsContent>
|
|
</Tabs>
|
|
)
|
|
}
|