diff --git a/packages/link2cid/app.json b/packages/link2cid/app.json new file mode 100644 index 0000000..2b90246 --- /dev/null +++ b/packages/link2cid/app.json @@ -0,0 +1,14 @@ +{ + "healthchecks": { + "web": [ + { + "type": "startup", + "name": "web check", + "description": "Checking for expecting string at /health", + "path": "/health", + "content": "link2cid", + "attempts": 3 + } + ] + } +} \ No newline at end of file diff --git a/packages/next/app/components/archive-progress.tsx b/packages/next/app/components/archive-progress.tsx index 2783f2f..3f292e1 100644 --- a/packages/next/app/components/archive-progress.tsx +++ b/packages/next/app/components/archive-progress.tsx @@ -1,4 +1,5 @@ import { getAllStreamsForVtuber } from "@/lib/streams"; +import { getVodsForVtuber } from "@/lib/vods"; import { IVtuber } from "@/lib/vtubers"; export interface IArchiveProgressProps { @@ -6,6 +7,7 @@ export interface IArchiveProgressProps { } export default async function ArchiveProgress ({ vtuber }: IArchiveProgressProps) { + const vods = await getVodsForVtuber(vtuber.id) // const streams = await getAllStreamsForVtuber(vtuber.id); // const goodStreams = await getAllStreamsForVtuber(vtuber.id, ['good']); // const issueStreams = await getAllStreamsForVtuber(vtuber.id, ['issue']); @@ -20,5 +22,11 @@ export default async function ArchiveProgress ({ vtuber }: IArchiveProgressProps // // // ) - return "@todo" + // @todo + + return ( +
{(vods) ? vods.data.length : 0} vods
+hi mom!
-// //
-// //
-// // {JSON.stringify(missingStreams, null, 2)}
-// //
-// //
-// // >
-// // )
+// return (
+// <>
+// hi mom!
+//
+//
+// {JSON.stringify(missingStreams, null, 2)}
+//
+//
+// >
+// )
-// return (
-// <>
-// {vtuber && (
-// <>
-// {vtuber.attributes.description1}
-//{vtuber.attributes.description2}
-//{vtuber.attributes.description1}
+{vtuber.attributes.description2}
+No VODs have been added, yet.
) -// } +No VODs have been added, yet.
) + } -//