Adds /api/health, ntfy notify on config save, /admin/analytics charts, and deploy smoke for miniprogram config/API. Co-authored-by: Cursor <cursoragent@cursor.com>
36 lines
1.2 KiB
TypeScript
36 lines
1.2 KiB
TypeScript
import type { Metadata } from "next";
|
||
import { CoverPage } from "@ebook/components/CoverPage";
|
||
import { getSiteConfig, getAdSlot } from "@ebook/lib/site-config.server";
|
||
import { getServerFeatures } from "@ebook/lib/features.server";
|
||
import { VipEbookShell } from "./VipEbookShell";
|
||
import { loadVipEbookAsBook } from "../lib/loadVipEbookBook";
|
||
|
||
export const metadata: Metadata = {
|
||
title: "电子书 | 数字游民",
|
||
description: "数字游民:地理套利与自动化杠杆,低成本工作室、云手机、无人直播、出海掘金。",
|
||
};
|
||
|
||
/**
|
||
* 封面与 /book 同一套 CoverPage;
|
||
* 阅读进 /vip/ebook/read(ScrollReaderShell,正文仍是 ebook.md)。
|
||
*/
|
||
export default function VipEbookCoverPage() {
|
||
const { book, chapters } = loadVipEbookAsBook();
|
||
const site = getSiteConfig();
|
||
const f = getServerFeatures();
|
||
const chapterMinutes = Object.fromEntries(
|
||
chapters.map((c) => [c.slug, c.readingMinutes]),
|
||
);
|
||
|
||
return (
|
||
<VipEbookShell>
|
||
<CoverPage
|
||
book={book}
|
||
site={site}
|
||
chapterMinutes={chapterMinutes}
|
||
coverAdSlot={f.ads.enabled ? getAdSlot("coverSlot") : ""}
|
||
/>
|
||
</VipEbookShell>
|
||
);
|
||
}
|