- Add full AniList integration: OAuth connect, series linking, push/pull sync - Push: PLANNING/CURRENT/COMPLETED based on books read vs total_volumes (never auto-complete from owned books alone) - Pull: update local reading progress from AniList list (per-user) - Detailed sync/pull reports with per-series status and progress - Local user selector in settings to scope sync to a specific user - Rename "AniList" tab/buttons to generic "État de lecture" / "Reading status" - Make Bédéthèque and AniList badges clickable links on series detail page - Fix ON CONFLICT error on series link (provider column in PK) - Migration 0054: fix series_metadata missing columns (authors, publishers, locked_fields, total_volumes, status) - Align button heights on series detail page; move MarkSeriesReadButton to action row Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
31 lines
1.3 KiB
TypeScript
31 lines
1.3 KiB
TypeScript
import { getSettings, getCacheStats, getThumbnailStats, fetchUsers } from "@/lib/api";
|
|
import SettingsPage from "./SettingsPage";
|
|
|
|
export const dynamic = "force-dynamic";
|
|
|
|
export default async function SettingsPageWrapper({ searchParams }: { searchParams: Promise<{ tab?: string }> }) {
|
|
const { tab } = await searchParams;
|
|
const settings = await getSettings().catch(() => ({
|
|
image_processing: { format: "webp", quality: 85, filter: "lanczos3", max_width: 2160 },
|
|
cache: { enabled: true, directory: "/tmp/stripstream-image-cache", max_size_mb: 10000 },
|
|
limits: { concurrent_renders: 4, timeout_seconds: 12, rate_limit_per_second: 120 },
|
|
thumbnail: { enabled: true, width: 300, height: 400, quality: 80, format: "webp", directory: "/data/thumbnails" }
|
|
}));
|
|
|
|
const cacheStats = await getCacheStats().catch(() => ({
|
|
total_size_mb: 0,
|
|
file_count: 0,
|
|
directory: "/tmp/stripstream-image-cache"
|
|
}));
|
|
|
|
const thumbnailStats = await getThumbnailStats().catch(() => ({
|
|
total_size_mb: 0,
|
|
file_count: 0,
|
|
directory: "/data/thumbnails"
|
|
}));
|
|
|
|
const users = await fetchUsers().catch(() => []);
|
|
|
|
return <SettingsPage initialSettings={settings} initialCacheStats={cacheStats} initialThumbnailStats={thumbnailStats} users={users} initialTab={tab} />;
|
|
}
|