init
This commit is contained in:
commit
d295c7f139
1527 files changed
+270726
No files matched your search
@@ -0,0 +1,13 @@
|
||||
import { notFound } from "next/navigation";
|
||||
import { readReport, findApplication, trackerCanDelete } from "@/lib/career-ops";
|
||||
import { ReportView } from "@/components/report-view";
|
||||
|
||||
export const dynamic = "force-dynamic";
|
||||
|
||||
export default async function ReportPage({ params }: { params: Promise<{ id: string }> }) {
|
||||
const { id } = await params;
|
||||
const app = findApplication(id);
|
||||
const report = readReport(id);
|
||||
if (!app && !report) notFound();
|
||||
return <ReportView id={id} app={app} report={report?.content ?? null} file={report?.file ?? null} canDelete={trackerCanDelete()} />;
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
import { Suspense } from "react";
|
||||
import { pipelineSummary } from "@/lib/career-ops";
|
||||
import { PipelineView } from "@/components/pipeline-view";
|
||||
|
||||
export const dynamic = "force-dynamic"; // always read fresh local files
|
||||
|
||||
export default function PipelinePage() {
|
||||
const { inbox, applications } = pipelineSummary();
|
||||
return (
|
||||
<Suspense>
|
||||
<PipelineView applications={applications} inbox={inbox} />
|
||||
</Suspense>
|
||||
);
|
||||
}
|
||||
Reference in new issue
Block a user