nomadro/app/vip/ebook/page.tsx
eric 9f8fec1723 Ship portal PC/H5 acceptance, VIP ScrollReader, admin analytics and ops anchors.
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>
2026-09-28 23:52:00 -05:00

36 lines
1.2 KiB
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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>
);
}