[FA-misc] Switches to using DTOs, updates frontend with details and reader page, updates novel import to be an upsert
This commit is contained in:
@@ -1,6 +1,4 @@
|
||||
---
|
||||
export const prerender = true; // Static page
|
||||
|
||||
import AppLayout from '../layouts/AppLayout.astro';
|
||||
import { Card, CardContent, CardHeader, CardTitle } from '../lib/components/ui/card';
|
||||
import { Button } from '../lib/components/ui/button';
|
||||
|
||||
22
fictionarchive-web-astro/src/pages/gated-404.astro
Normal file
22
fictionarchive-web-astro/src/pages/gated-404.astro
Normal file
@@ -0,0 +1,22 @@
|
||||
---
|
||||
// Internal route used by middleware for unauthenticated users
|
||||
Astro.response.status = 404;
|
||||
|
||||
import GatedLayout from '../layouts/GatedLayout.astro';
|
||||
import { Card, CardContent, CardHeader, CardTitle } from '../lib/components/ui/card';
|
||||
---
|
||||
|
||||
<GatedLayout title="Not Found - FictionArchive">
|
||||
<div class="flex min-h-[50vh] items-center justify-center">
|
||||
<Card class="mx-auto max-w-md text-center shadow-md shadow-primary/10">
|
||||
<CardHeader>
|
||||
<CardTitle class="text-4xl font-bold">404</CardTitle>
|
||||
</CardHeader>
|
||||
<CardContent class="space-y-4">
|
||||
<p class="text-muted-foreground">
|
||||
The page you're looking for doesn't exist or has been moved.
|
||||
</p>
|
||||
</CardContent>
|
||||
</Card>
|
||||
</div>
|
||||
</GatedLayout>
|
||||
@@ -1,6 +1,4 @@
|
||||
---
|
||||
export const prerender = true; // Static page
|
||||
|
||||
import AppLayout from '../layouts/AppLayout.astro';
|
||||
import HomePage from '../lib/components/HomePage.svelte';
|
||||
---
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
---
|
||||
import AppLayout from '../../../../layouts/AppLayout.astro';
|
||||
import ChapterReaderPage from '../../../../lib/components/ChapterReaderPage.svelte';
|
||||
|
||||
const { id, chapterNumber } = Astro.params;
|
||||
---
|
||||
|
||||
<AppLayout title="Reading - FictionArchive">
|
||||
<ChapterReaderPage novelId={id} chapterNumber={chapterNumber} client:load />
|
||||
</AppLayout>
|
||||
@@ -1,6 +1,4 @@
|
||||
---
|
||||
export const prerender = true; // Static page
|
||||
|
||||
import AppLayout from '../../layouts/AppLayout.astro';
|
||||
import NovelsPage from '../../lib/components/NovelsPage.svelte';
|
||||
---
|
||||
|
||||
Reference in New Issue
Block a user