add fronted docker
This commit is contained in:
1 parent
5cd5ec5649
commit
a18f7a5c8b
14 files changed
+124
-24
No files matched your search
@@ -1,12 +1,14 @@
|
||||
"use client";
|
||||
|
||||
import DisabledNotice from "@/components/disabled-notice";
|
||||
import { FEATURES } from "@/lib/features";
|
||||
import { use, useEffect, useState } from "react";
|
||||
import Link from "next/link";
|
||||
import MetadataCard from "@/components/metadata-card";
|
||||
import { InternalOnlyWarning, LicenseBadge } from "@/components/license-badge";
|
||||
import { apiFetch, archiveKind, type ArchiveEntry } from "@/lib/api";
|
||||
|
||||
export default function ArchiveDetailPage({ params }: { params: Promise<{ slug: string }> }) {
|
||||
function ArchiveDetailPageInner({ params }: { params: Promise<{ slug: string }> }) {
|
||||
const { slug } = use(params);
|
||||
const [entry, setEntry] = useState<ArchiveEntry | null>(null);
|
||||
const [error, setError] = useState<string | null>(null);
|
||||
@@ -86,3 +88,9 @@ export default function ArchiveDetailPage({ params }: { params: Promise<{ slug:
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
export default function ArchiveDetailPage(props: Parameters<typeof ArchiveDetailPageInner>[0]) {
|
||||
if (!FEATURES.archive) return <DisabledNotice title="아카이브" backHref="/" />;
|
||||
return <ArchiveDetailPageInner {...props} />;
|
||||
}
|
||||
@@ -1,10 +1,12 @@
|
||||
"use client";
|
||||
|
||||
import DisabledNotice from "@/components/disabled-notice";
|
||||
import { FEATURES } from "@/lib/features";
|
||||
import { useEffect, useState } from "react";
|
||||
import Link from "next/link";
|
||||
import { apiFetch, archiveKind, type ArchiveEntry } from "@/lib/api";
|
||||
|
||||
export default function ArchivePage() {
|
||||
function ArchivePageInner() {
|
||||
const [entries, setEntries] = useState<ArchiveEntry[] | null>(null);
|
||||
|
||||
useEffect(() => {
|
||||
@@ -50,3 +52,9 @@ export default function ArchivePage() {
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
export default function ArchivePage() {
|
||||
if (!FEATURES.archive) return <DisabledNotice title="아카이브" backHref="/" />;
|
||||
return <ArchivePageInner />;
|
||||
}
|
||||
Reference in new issue
Block a user