AI-native knowledge base & Evernote/Obsidian alternative with instant sync & native MCP. Free on Cloudflare or self-hosted via Docker.
HTML ai-agentcloudflarecloudflare-d1cloudflare-r2cloudflare-workersdockerelectronevernoteevernote-alternativeknowledge-basemcpnote-takingobsidian-alternativeoffline-firstpersonal-knowledge-basepwaself-hostedsqlitetiptapweb-clipper
feat(web): add reliable PDF export
tianma-if4bcee3142dac
diff --git a/apps/web/note-print.html b/apps/web/note-print.htmlnew file mode 100644index 00000000..743bb0e7--- /dev/null+++ b/apps/web/note-print.html@@ -0,0 +1,23 @@+<!doctype html>+<html lang="zh-CN">+ <head>+ <meta charset="UTF-8" />+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />+ <meta name="color-scheme" content="light" />+ <title>EdgeEver</title>+ </head>+ <body>+ <header id="print-toolbar" class="print-toolbar">+ <div>+ <strong id="print-status">EdgeEver</strong>+ <span id="print-hint"></span>+ </div>+ <div class="print-toolbar__actions">+ <button id="print-close" type="button"></button>+ <button id="print-action" type="button" disabled></button>+ </div>+ </header>+ <main id="print-preview" aria-live="polite"></main>+ <script type="module" src="/src/note-print.ts"></script>+ </body>+</html>diff --git a/apps/web/package.json b/apps/web/package.jsonindex 22976e91..8b6eb9db 100644--- a/apps/web/package.json+++ b/apps/web/package.json@@ -4,11 +4,13 @@"private": true,"type": "module","dependencies": {+ "@fontsource-variable/noto-sans-sc": "^5.2.8","@tiptap/extension-code-block-lowlight": "3.27.1","@tiptap/pm": "3.27.1","beautiful-mermaid": "^1.1.3","highlight.js": "^11.11.1","lowlight": "^3.3.0",- "mermaid": "^11.16.0"+ "mermaid": "^11.16.0",+ "pagedjs": "^0.4.3"}}diff --git a/apps/web/src/components/EditorPane.tsx b/apps/web/src/components/EditorPane.tsxindex b03bea4f..4bcc88d4 100644--- a/apps/web/src/components/EditorPane.tsx+++ b/apps/web/src/components/EditorPane.tsx@@ -31,6 +31,7 @@ import {CircleAlert,LoaderCircle,Info,+ Printer,} from "lucide-react";import { Button } from "@/components/ui/button";import { GitHubRepositoryLink } from "@/components/GitHubRepositoryLink";@@ -97,6 +98,7 @@ import { ThemeBlock } from "./ThemeBlock";import { SystemInfoDialog } from "./SystemInfoDialog";import { fetchLatestRelease, isVersionOutdated } from "@/lib/version-check";import { RELEASE_STATUS_EVENT } from "@/lib/release-notice";+import { openNotePrintPreview, serializeNoteDocumentForPrint } from "@/lib/note-print";const SUPPORTED_PASTE_IMAGE_TYPES = new Set(["image/png", "image/jpeg", "image/gif", "image/webp", "image/avif"]);const MOBILE_EDITOR_QUERY = "(max-width: 639px)";@@ -1145,7 +1147,7 @@ const RichEditorPane = ({selectionActionBar,onRequestMobileNativeEdit,}: RichEditorPaneProps) => {- const { t } = useTranslation();+ const { t, i18n } = useTranslation();const { customEditorTheme, editorTheme } = useTheme();const queryClient = useQueryClient();const isSelectionMode = Boolean(selectionActionBar);@@ -2004,6 +2006,52 @@ const RichEditorPane = ({}}, [editor, markdownSource, useMarkdownSourceEditor]);+ const handleExportPdf = useCallback(() => {+ if (!isEditorReady(editor) || !memo) {+ return;+ }++ const currentDocument = useMobilePlainTextEditor+ ? markdownToDoc(getMobilePlainTextValue())+ : useMarkdownSourceEditor+ ? markdownToDoc(markdownSource)+ : editor.getJSON() as TiptapDoc;+ const html = serializeNoteDocumentForPrint(editor, currentDocument);+ const opened = openNotePrintPreview({+ title: title.trim() || t("common.untitledMemo"),+ notebook: notebookOptions.find((notebook) => notebook.id === memo.notebookId)?.name ?? "",+ tags: parseTagsText(tagsText),+ updatedAt: formatDateTime(memo.updatedAt),+ html,+ language: i18n.resolvedLanguage ?? i18n.language,+ labels: {+ close: t("editor.pdfExport.close"),+ error: t("editor.pdfExport.error"),+ hint: t("editor.pdfExport.hint"),+ preparing: t("editor.pdfExport.preparing"),+ print: t("editor.pdfExport.print"),+ ready: t("editor.pdfExport.ready"),+ },+ });++ if (!opened) {+ window.alert(t("editor.pdfExport.popupBlocked"));+ }+ }, [+ editor,+ getMobilePlainTextValue,+ i18n.language,+ i18n.resolvedLanguage,+ markdownSource,+ memo,+ notebookOptions,+ t,+ tagsText,+ title,+ useMarkdownSourceEditor,+ useMobilePlainTextEditor,+ ]);+useEffect(() => {if (!useMobilePlainTextEditor) {return;@@ -2757,6 +2805,13 @@ const RichEditorPane = ({<History className="h-4 w-4 text-slate-500" />{t("editor.versionHistory")}</DropdownMenuItem>+ <DropdownMenuItem+ className="flex h-9 w-full items-center gap-2 px-3 text-left text-sm text-slate-700 hover:bg-slate-50 cursor-pointer outline-none"+ onClick={handleExportPdf}+ >+ <Printer className="h-4 w-4 text-slate-500" />+ {t("editor.exportPdf")}+ </DropdownMenuItem>{readOnly ? (<><DropdownMenuItemdiff --git a/apps/web/src/lib/note-print.ts b/apps/web/src/lib/note-print.tsnew file mode 100644index 00000000..7fd95870--- /dev/null+++ b/apps/web/src/lib/note-print.ts@@ -0,0 +1,82 @@+import { DOMSerializer } from "@tiptap/pm/model";+import type { Editor } from "@tiptap/react";+import type { TiptapDoc } from "@edgeever/shared";++export const NOTE_PRINT_MESSAGE = "edgeever:note-print";+export const NOTE_PRINT_READY_MESSAGE = "edgeever:note-print-ready";+export const NOTE_PRINT_PATH = "/note-print.html";++export type NotePrintLabels = {+ close: string;+ error: string;+ hint: string;+ preparing: string;+ print: string;+ ready: string;+};++export type NotePrintPayload = {+ type: typeof NOTE_PRINT_MESSAGE;+ token: string;+ title: string;+ notebook: string;+ tags: string[];+ updatedAt: string;+ html: string;+ language: string;+ labels: NotePrintLabels;+};++type NotePrintReadyMessage = {+ type: typeof NOTE_PRINT_READY_MESSAGE;+ token: string;+};++export const serializeNoteDocumentForPrint = (editor: Editor, document: TiptapDoc) => {+ const node = editor.schema.nodeFromJSON(document);+ const container = window.document.createElement("div");+ container.appendChild(DOMSerializer.fromSchema(editor.schema).serializeFragment(node.content));+ return container.innerHTML;+};++export const openNotePrintPreview = (+ payload: Omit<NotePrintPayload, "type" | "token">+) => {+ const token = crypto.randomUUID();+ let printWindow: Window | null = null;++ const handleMessage = (event: MessageEvent<NotePrintReadyMessage>) => {+ if (+ event.origin !== window.location.origin ||+ event.source !== printWindow ||+ event.data?.type !== NOTE_PRINT_READY_MESSAGE ||+ event.data.token !== token+ ) {+ return;+ }++ window.removeEventListener("message", handleMessage);+ printWindow?.postMessage(+ {+ ...payload,+ type: NOTE_PRINT_MESSAGE,+ token,+ } satisfies NotePrintPayload,+ window.location.origin+ );+ };++ window.addEventListener("message", handleMessage);+ printWindow = window.open(+ `${NOTE_PRINT_PATH}?token=${encodeURIComponent(token)}`,+ "_blank"+ );++ if (!printWindow) {+ window.removeEventListener("message", handleMessage);+ return false;+ }++ window.setTimeout(() => window.removeEventListener("message", handleMessage), 30_000);+ return true;+};diff --git a/apps/web/src/note-print.ts b/apps/web/src/note-print.tsnew file mode 100644index 00000000..e77e77d0--- /dev/null+++ b/apps/web/src/note-print.ts@@ -0,0 +1,171 @@+import { Previewer } from "pagedjs";+import hljs from "highlight.js/lib/common";+import { renderMermaidSVG, THEMES } from "beautiful-mermaid";+import {+ NOTE_PRINT_MESSAGE,+ NOTE_PRINT_READY_MESSAGE,+ type NotePrintPayload,+} from "@/lib/note-print";+import printStyles from "@/styles/note-print.css?inline";+import "@fontsource-variable/noto-sans-sc/wght.css";+import "@/styles/note-print-screen.css";++const PRINT_FONT_FAMILY = '"Noto Sans SC Variable", sans-serif';+const toolbar = document.getElementById("print-toolbar");+const status = document.getElementById("print-status");+const hint = document.getElementById("print-hint");+const closeButton = document.getElementById("print-close") as HTMLButtonElement | null;+const printButton = document.getElementById("print-action") as HTMLButtonElement | null;+const preview = document.getElementById("print-preview");+const token = new URLSearchParams(window.location.search).get("token");++const setText = (element: HTMLElement | null, value: string) => {+ if (element) {+ element.textContent = value;+ }+};++const renderMermaidBlocks = async (root: HTMLElement) => {+ const blocks = Array.from(root.querySelectorAll<HTMLElement>("pre > code.language-mermaid"));+ await Promise.all(blocks.map(async (code) => {+ const source = code.textContent?.trim();+ const container = code.closest("pre");+ if (!source || !container) {+ return;+ }++ try {+ const svg = renderMermaidSVG(source, {+ ...THEMES["zinc-light"],+ transparent: true,+ font: PRINT_FONT_FAMILY,+ padding: 24,+ });+ const figure = document.createElement("figure");+ figure.className = "edgeever-print-mermaid";+ figure.innerHTML = svg;+ container.replaceWith(figure);+ } catch {+ // Keep invalid Mermaid source readable in the exported document.+ }+ }));+};++const highlightCodeBlocks = (root: HTMLElement) => {+ root.querySelectorAll<HTMLElement>("pre > code:not(.language-mermaid)").forEach((code) => {+ hljs.highlightElement(code);+ });+};++const waitForImages = async (root: HTMLElement) => {+ const images = Array.from(root.querySelectorAll<HTMLImageElement>("img"));+ await Promise.all(images.map(async (image) => {+ if (image.complete && image.naturalWidth > 0) {+ return;+ }+ try {+ await image.decode();+ } catch {+ // A failed external image should not prevent the rest of the note printing.+ }+ }));+};++const waitForPrintFonts = async (text: string) => {+ await Promise.all([+ document.fonts.load(`400 16px ${PRINT_FONT_FAMILY}`, text),+ document.fonts.load(`700 16px ${PRINT_FONT_FAMILY}`, text),+ ]);+ await document.fonts.ready;+};++const buildSource = (payload: NotePrintPayload) => {+ const article = document.createElement("article");+ article.className = "edgeever-print-document";+ article.lang = payload.language;++ const title = document.createElement("h1");+ title.className = "edgeever-print-title";+ title.textContent = payload.title;+ article.appendChild(title);++ const metadata = document.createElement("div");+ metadata.className = "edgeever-print-meta";+ const metadataParts = [payload.notebook, payload.updatedAt, ...payload.tags.map((tag) => `#${tag}`)].filter(Boolean);+ metadata.textContent = metadataParts.join(" · ");+ if (metadataParts.length > 0) {+ article.appendChild(metadata);+ }++ const content = document.createElement("div");+ content.className = "edgeever-print-content";+ content.innerHTML = payload.html;+ article.appendChild(content);+ return article;+};++const renderPreview = async (payload: NotePrintPayload) => {+ document.documentElement.lang = payload.language;+ document.title = `${payload.title} · EdgeEver`;+ setText(status, payload.labels.preparing);+ setText(hint, "");+ setText(closeButton, payload.labels.close);+ setText(printButton, payload.labels.print);++ const source = buildSource(payload);+ await renderMermaidBlocks(source);+ highlightCodeBlocks(source);+ await Promise.all([+ waitForPrintFonts(source.textContent ?? ""),+ waitForImages(source),+ ]);++ if (!preview) {+ throw new Error("Print preview root not found");+ }++ const previewer = new Previewer();+ await previewer.preview(+ source,+ [{ [window.location.href]: printStyles }],+ preview+ );+ await document.fonts.ready;++ toolbar?.classList.add("is-ready");+ setText(status, payload.labels.ready);+ setText(hint, payload.labels.hint);+ if (printButton) {+ printButton.disabled = false;+ }+};++closeButton?.addEventListener("click", () => window.close());+printButton?.addEventListener("click", () => window.print());++window.addEventListener("message", (event: MessageEvent<NotePrintPayload>) => {+ if (+ event.origin !== window.location.origin ||+ event.source !== window.opener ||+ event.data?.type !== NOTE_PRINT_MESSAGE ||+ event.data.token !== token+ ) {+ return;+ }++ void renderPreview(event.data).catch((error) => {+ console.error("Failed to build note print preview", error);+ setText(status, event.data.labels.error);+ setText(hint, "");+ setText(closeButton, event.data.labels.close);+ });+}, { once: true });++if (window.opener && token) {+ window.opener.postMessage(+ { type: NOTE_PRINT_READY_MESSAGE, token },+ window.location.origin+ );+} else {+ setText(status, "EdgeEver");+}diff --git a/apps/web/src/styles/note-print-screen.css b/apps/web/src/styles/note-print-screen.cssnew file mode 100644index 00000000..de3c88da--- /dev/null+++ b/apps/web/src/styles/note-print-screen.css@@ -0,0 +1,136 @@+:root {+ color-scheme: light;+ background: #e2e8f0;+ font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;+}++* {+ box-sizing: border-box;+}++body {+ min-width: 320px;+ margin: 0;+ background: #e2e8f0;+ color: #0f172a;+}++.print-toolbar {+ position: sticky;+ top: 0;+ z-index: 100;+ display: flex;+ min-height: 3.5rem;+ align-items: center;+ justify-content: space-between;+ gap: 1rem;+ border-bottom: 1px solid #cbd5e1;+ background: rgb(255 255 255 / 0.96);+ padding: 0.65rem 1rem;+ box-shadow: 0 2px 10px rgb(15 23 42 / 0.08);+ backdrop-filter: blur(12px);+}++.print-toolbar > div:first-child {+ display: flex;+ min-width: 0;+ flex-direction: column;+}++#print-status {+ font-size: 0.875rem;+}++#print-hint {+ color: #64748b;+ font-size: 0.75rem;+}++.print-toolbar__actions {+ display: flex;+ flex: 0 0 auto;+ gap: 0.5rem;+}++.print-toolbar button {+ min-height: 2.25rem;+ border: 1px solid #cbd5e1;+ border-radius: 0.45rem;+ background: white;+ padding: 0.4rem 0.8rem;+ color: #334155;+ font: inherit;+ font-size: 0.8125rem;+ font-weight: 650;+ cursor: pointer;+}++.print-toolbar button:last-child {+ border-color: #059669;+ background: #059669;+ color: white;+}++.print-toolbar button:disabled {+ border-color: #cbd5e1;+ background: #e2e8f0;+ color: #94a3b8;+ cursor: wait;+}++#print-preview {+ padding: 1.5rem 0 3rem;+}++.pagedjs_pages {+ display: flex;+ flex-direction: column;+ align-items: center;+ gap: 1.5rem;+}++.pagedjs_page {+ flex: 0 0 auto;+ background: white;+ font-family: "Noto Sans SC Variable", sans-serif;+ box-shadow: 0 14px 35px rgb(15 23 42 / 0.18);+}++@media (max-width: 760px) {+ .print-toolbar {+ align-items: flex-start;+ }++ #print-hint {+ display: none;+ }++ #print-preview {+ overflow-x: auto;+ padding-top: 1rem;+ }+}++@media print {+ body {+ background: white;+ }++ .print-toolbar {+ display: none !important;+ }++ #print-preview {+ padding: 0;+ }++ .pagedjs_pages {+ display: block;+ }++ .pagedjs_page {+ margin: 0 !important;+ font-family: "Noto Sans SC Variable", sans-serif !important;+ box-shadow: none !important;+ }+}diff --git a/apps/web/src/styles/note-print.css b/apps/web/src/styles/note-print.cssnew file mode 100644index 00000000..a777ecb3--- /dev/null+++ b/apps/web/src/styles/note-print.css@@ -0,0 +1,247 @@+@page {+ size: A4;+ margin: 18mm 17mm 20mm;++ @top-center {+ content: string(edgeever-note-title);+ color: #64748b;+ font-family: "Noto Sans SC Variable", sans-serif;+ font-size: 8.5pt;+ }++ @bottom-center {+ content: counter(page) " / " counter(pages);+ color: #64748b;+ font-family: "Noto Sans SC Variable", sans-serif;+ font-size: 8.5pt;+ }+}++* {+ box-sizing: border-box;+}++.edgeever-print-document {+ color: #172033;+ font-family: "Noto Sans SC Variable", sans-serif;+ font-size: 10.5pt;+ line-height: 1.72;+ overflow-wrap: anywhere;+}++.edgeever-print-title {+ string-set: edgeever-note-title content(text);+ margin: 0 0 4mm;+ color: #0f172a;+ font-size: 24pt;+ font-weight: 760;+ line-height: 1.18;+}++.edgeever-print-meta {+ margin: 0 0 9mm;+ border-bottom: 0.3mm solid #dbe4ea;+ padding-bottom: 4mm;+ color: #64748b;+ font-size: 8.5pt;+}++.edgeever-print-content > :first-child {+ margin-top: 0;+}++.edgeever-print-content h1,+.edgeever-print-content h2,+.edgeever-print-content h3 {+ break-after: avoid-page;+ color: #0f172a;+ line-height: 1.25;+}++.edgeever-print-content h1 {+ margin: 8mm 0 3.5mm;+ font-size: 19pt;+}++.edgeever-print-content h2 {+ margin: 7mm 0 3mm;+ font-size: 15pt;+}++.edgeever-print-content h3 {+ margin: 6mm 0 2.5mm;+ font-size: 12.5pt;+}++.edgeever-print-content p {+ margin: 0 0 3.5mm;+ orphans: 3;+ widows: 3;+}++.edgeever-print-content ul,+.edgeever-print-content ol {+ margin: 0 0 4mm;+ padding-left: 6mm;+}++.edgeever-print-content li {+ margin: 1mm 0;+}++.edgeever-print-content blockquote {+ break-inside: avoid-page;+ margin: 4mm 0;+ border-left: 1mm solid #10b981;+ background: #f0fdf4;+ padding: 3mm 4mm;+ color: #334155;+}++.edgeever-print-content hr {+ margin: 7mm 0;+ border: 0;+ border-top: 0.3mm solid #cbd5e1;+}++.edgeever-print-content a {+ color: #047857;+ text-decoration: underline;+}++.edgeever-print-content code {+ border-radius: 1mm;+ background: #f1f5f9;+ padding: 0.2mm 0.8mm;+ font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;+ font-size: 0.9em;+}++.edgeever-print-content pre,+.edgeever-print-content .edgeever-code-source {+ break-inside: avoid-page;+ max-width: 100%;+ margin: 4mm 0;+ border: 0.3mm solid #dbe4ea;+ border-radius: 2mm;+ background: #f8fafc;+ padding: 3.5mm 4mm;+ color: #1e293b;+ font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;+ font-size: 8.5pt;+ line-height: 1.55;+ overflow-wrap: anywhere;+ white-space: pre-wrap;+}++.edgeever-print-content pre code {+ background: transparent;+ padding: 0;+}++.edgeever-print-content img,+.edgeever-print-mermaid svg {+ display: block;+ width: auto;+ max-width: 100%;+ height: auto;+ max-height: 220mm;+ object-fit: contain;+}++.edgeever-print-content figure,+.edgeever-print-mermaid {+ break-inside: avoid-page;+ max-width: 100%;+ margin: 5mm auto;+}++.edgeever-print-mermaid svg {+ margin: 0 auto;+}++.edgeever-print-content table {+ width: 100%;+ margin: 5mm 0;+ border-collapse: collapse;+ font-size: 8.5pt;+ line-height: 1.45;+}++.edgeever-print-content thead {+ display: table-header-group;+}++.edgeever-print-content tr {+ break-inside: avoid-page;+}++.edgeever-print-content th,+.edgeever-print-content td {+ border: 0.3mm solid #cbd5e1;+ padding: 2mm 2.5mm;+ text-align: left;+ vertical-align: top;+}++.edgeever-print-content th {+ background: #f1f5f9;+ font-weight: 700;+}++.edgeever-print-content [data-edgeever-theme-block] {+ break-inside: avoid-page;+ margin: 5mm 0;+ border: 0.3mm solid #a7f3d0;+ border-left: 1mm solid #059669;+ border-radius: 2mm;+ background: #f0fdf4;+ padding: 3.5mm 4mm;+}++.edgeever-print-content [data-theme-block-kind="chapter"] {+ border-width: 1mm 0 0;+ border-radius: 0;+ background: transparent;+}++.edgeever-print-content .tableWrapper {+ max-width: 100%;+ overflow: visible;+}++.edgeever-print-content .edgeever-image-controls,+.edgeever-print-content .edgeever-code-copy-button,+.edgeever-print-content .edgeever-theme-block__toolbar,+.edgeever-print-content .edgeever-mermaid-source {+ display: none !important;+}++.hljs-comment,+.hljs-quote {+ color: #64748b;+}++.hljs-keyword,+.hljs-selector-tag,+.hljs-literal {+ color: #7c3aed;+}++.hljs-string,+.hljs-title,+.hljs-section {+ color: #047857;+}++.hljs-number,+.hljs-symbol,+.hljs-bullet {+ color: #b45309;+}++.hljs-built_in,+.hljs-type,+.hljs-attribute {+ color: #0369a1;+}diff --git a/apps/web/src/types/pagedjs.d.ts b/apps/web/src/types/pagedjs.d.tsnew file mode 100644index 00000000..e2d6f9a9--- /dev/null+++ b/apps/web/src/types/pagedjs.d.ts@@ -0,0 +1,15 @@+declare module "pagedjs" {+ export type PagedFlow = {+ total: number;+ performance: number;+ pages: unknown[];+ };++ export class Previewer {+ preview(+ content?: DocumentFragment | Element | string,+ stylesheets?: Array<string | Record<string, string>>,+ renderTo?: Element+ ): Promise<PagedFlow>;+ }+}diff --git a/apps/web/vite.config.ts b/apps/web/vite.config.tsindex 9cdfce0f..a07f6ff7 100644--- a/apps/web/vite.config.ts+++ b/apps/web/vite.config.ts@@ -119,7 +119,7 @@ export default defineConfig({workbox: {globPatterns: ["**/*.{js,css,html,ico,png,svg,webp,woff2}"],navigateFallback: "/index.html",- navigateFallbackDenylist: [/^\/api\//, /^\/mcp\//, /^\/mobile-edit\.html$/, /^\/tiptap-ime-test\.html$/],+ navigateFallbackDenylist: [/^\/api\//, /^\/mcp\//, /^\/mobile-edit\.html$/, /^\/note-print\.html/, /^\/tiptap-ime-test\.html$/],runtimeCaching: [{urlPattern: ({ url }) => url.pathname.startsWith("/api/") || url.pathname.startsWith("/mcp/"),@@ -153,6 +153,7 @@ export default defineConfig({input: {app: fileURLToPath(new URL("./index.html", import.meta.url)),"mobile-edit": fileURLToPath(new URL("./mobile-edit.html", import.meta.url)),+ "note-print": fileURLToPath(new URL("./note-print.html", import.meta.url)),"tiptap-ime-test": fileURLToPath(new URL("./tiptap-ime-test.html", import.meta.url)),},output: {diff --git a/bun.lock b/bun.lockindex a139a0f1..45dccf67 100644--- a/bun.lock+++ b/bun.lock@@ -165,12 +165,14 @@"name": "@edgeever/web","version": "0.1.3","dependencies": {+ "@fontsource-variable/noto-sans-sc": "^5.2.8","@tiptap/extension-code-block-lowlight": "3.27.1","@tiptap/pm": "3.27.1","beautiful-mermaid": "^1.1.3","highlight.js": "^11.11.1","lowlight": "^3.3.0","mermaid": "^11.16.0",+ "pagedjs": "^0.4.3",},},"packages/client": {@@ -471,6 +473,8 @@"@babel/plugin-transform-unicode-sets-regex": ["@babel/[email protected]", "", { "dependencies": { "@babel/helper-create-regexp-features-plugin": "^7.29.7", "@babel/helper-plugin-utils": "^7.29.7" }, "peerDependencies": { "@babel/core": "^7.0.0" } }, "sha512-BLOhLht9DOJwIxlmp91wHvkXv1lguuHS3/FwUO8HL1H0u8s4hR1gASVFyilu9iGtcTRYqjTZmlsFFeQletntEg=="],+ "@babel/polyfill": ["@babel/[email protected]", "", { "dependencies": { "core-js": "^2.6.5", "regenerator-runtime": "^0.13.4" } }, "sha512-X0pi0V6gxLi6lFZpGmeNa4zxtwEmCs42isWLNjZZDE0Y8yVfgu0T2OAHlzBbdYlqbW/YXVvoBHpATEM+goCj8g=="],+"@babel/preset-env": ["@babel/[email protected]", "", { "dependencies": { "@babel/compat-data": "^7.29.7", "@babel/helper-compilation-targets": "^7.29.7", "@babel/helper-plugin-utils": "^7.29.7", "@babel/helper-validator-option": "^7.29.7", "@babel/plugin-bugfix-firefox-class-in-computed-class-key": "^7.29.7", "@babel/plugin-bugfix-safari-class-field-initializer-scope": "^7.29.7", "@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression": "^7.29.7", "@babel/plugin-bugfix-safari-rest-destructuring-rhs-array": "^7.29.7", "@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining": "^7.29.7", "@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly": "^7.29.7", "@babel/plugin-proposal-private-property-in-object": "7.21.0-placeholder-for-preset-env.2", "@babel/plugin-syntax-import-assertions": "^7.29.7", "@babel/plugin-syntax-import-attributes": "^7.29.7", "@babel/plugin-syntax-unicode-sets-regex": "^7.18.6", "@babel/plugin-transform-arrow-functions": "^7.29.7", "@babel/plugin-transform-async-generator-functions": "^7.29.7", "@babel/plugin-transform-async-to-generator": "^7.29.7", "@babel/plugin-transform-block-scoped-functions": "^7.29.7", "@babel/plugin-transform-block-scoping": "^7.29.7", "@babel/plugin-transform-class-properties": "^7.29.7", "@babel/plugin-transform-class-static-block": "^7.29.7", "@babel/plugin-transform-classes": "^7.29.7", "@babel/plugin-transform-computed-properties": "^7.29.7", "@babel/plugin-transform-destructuring": "^7.29.7", "@babel/plugin-transform-dotall-regex": "^7.29.7", "@babel/plugin-transform-duplicate-keys": "^7.29.7", "@babel/plugin-transform-duplicate-named-capturing-groups-regex": "^7.29.7", "@babel/plugin-transform-dynamic-import": "^7.29.7", "@babel/plugin-transform-explicit-resource-management": "^7.29.7", "@babel/plugin-transform-exponentiation-operator": "^7.29.7", "@babel/plugin-transform-export-namespace-from": "^7.29.7", "@babel/plugin-transform-for-of": "^7.29.7", "@babel/plugin-transform-function-name": "^7.29.7", "@babel/plugin-transform-json-strings": "^7.29.7", "@babel/plugin-transform-literals": "^7.29.7", "@babel/plugin-transform-logical-assignment-operators": "^7.29.7", "@babel/plugin-transform-member-expression-literals": "^7.29.7", "@babel/plugin-transform-modules-amd": "^7.29.7", "@babel/plugin-transform-modules-commonjs": "^7.29.7", "@babel/plugin-transform-modules-systemjs": "^7.29.7", "@babel/plugin-transform-modules-umd": "^7.29.7", "@babel/plugin-transform-named-capturing-groups-regex": "^7.29.7", "@babel/plugin-transform-new-target": "^7.29.7", "@babel/plugin-transform-nullish-coalescing-operator": "^7.29.7", "@babel/plugin-transform-numeric-separator": "^7.29.7", "@babel/plugin-transform-object-rest-spread": "^7.29.7", "@babel/plugin-transform-object-super": "^7.29.7", "@babel/plugin-transform-optional-catch-binding": "^7.29.7", "@babel/plugin-transform-optional-chaining": "^7.29.7", "@babel/plugin-transform-parameters": "^7.29.7", "@babel/plugin-transform-private-methods": "^7.29.7", "@babel/plugin-transform-private-property-in-object": "^7.29.7", "@babel/plugin-transform-property-literals": "^7.29.7", "@babel/plugin-transform-regenerator": "^7.29.7", "@babel/plugin-transform-regexp-modifiers": "^7.29.7", "@babel/plugin-transform-reserved-words": "^7.29.7", "@babel/plugin-transform-shorthand-properties": "^7.29.7", "@babel/plugin-transform-spread": "^7.29.7", "@babel/plugin-transform-sticky-regex": "^7.29.7", "@babel/plugin-transform-template-literals": "^7.29.7", "@babel/plugin-transform-typeof-symbol": "^7.29.7", "@babel/plugin-transform-unicode-escapes": "^7.29.7", "@babel/plugin-transform-unicode-property-regex": "^7.29.7", "@babel/plugin-transform-unicode-regex": "^7.29.7", "@babel/plugin-transform-unicode-sets-regex": "^7.29.7", "@babel/preset-modules": "0.1.6-no-external-plugins", "babel-plugin-polyfill-corejs2": "^0.4.15", "babel-plugin-polyfill-corejs3": "^0.14.0", "babel-plugin-polyfill-regenerator": "^0.6.6", "core-js-compat": "^3.48.0", "semver": "^6.3.1" }, "peerDependencies": { "@babel/core": "^7.0.0-0" } }, "sha512-GYzX36n1nsciIb0uyH0GHwxwtNwPQIcpxSeiVLDtG/B7jB5xXgchnmL1f/jCX5o+pwnaDBtO60ONSJhEBJfxYA=="],"@babel/preset-modules": ["@babel/[email protected]", "", { "dependencies": { "@babel/helper-plugin-utils": "^7.0.0", "@babel/types": "^7.4.4", "esutils": "^2.0.2" }, "peerDependencies": { "@babel/core": "^7.0.0-0 || ^8.0.0-0 <8.0.0" } }, "sha512-HrcgcIESLm9aIR842yhJ5RWan/gebQUJ6E/E5+rf0y9o6oj7w0Br+sWuL6kEQ/o/AdfvR1Je9jG18/gnpwjEyA=="],@@ -681,6 +685,8 @@"@fontsource-variable/inter": ["@fontsource-variable/[email protected]", "", {}, "sha512-kOfP2D+ykbcX/P3IFnokOhVRNoTozo5/JxhAIVYLpea/UBmCQ/YWPBfWIDuBImXX/15KH+eKh4xpEUyS2sQQGQ=="],+ "@fontsource-variable/noto-sans-sc": ["@fontsource-variable/[email protected]", "", {}, "sha512-lNar1dF7Ik/lHNPo/7JWG0TolXY29LtsqYgMvEysooZ5bsO9uH4shJmRrwyJ3PjyTPljhpMJEK0jDuLSU4vJ1w=="],+"@hono/zod-validator": ["@hono/[email protected]", "", { "peerDependencies": { "hono": ">=4.10.0", "zod": "^3.25.0 || ^4.0.0" } }, "sha512-5uS4S1/LKtZQYvD4BtpPUFkOv8d1wNxHHrChm26buMiEYc1FrHWvDUaKVBwkiVtvSExHSpLGDvcnpI2Copyj9w=="],"@iconify-json/bx": ["@iconify-json/[email protected]", "", { "dependencies": { "@iconify/types": "*" } }, "sha512-ihvX+2d688otgW7MAvUEdKVln+fZ28BJTlygazKUU/+RCODWT+2KObjAHe8+KPs4VhC8V6Tgoy1qrX0Myn/upA=="],@@ -1487,6 +1493,8 @@"class-variance-authority": ["[email protected]", "", { "dependencies": { "clsx": "^2.1.1" } }, "sha512-Ka+9Trutv7G8M6WT6SeiRWz792K5qEqIGEGzXKhAE6xOWAY6pPH8U+9IY3oCMv6kqTmLsv7Xh/2w2RigkePMsg=="],+ "clear-cut": ["[email protected]", "", {}, "sha512-WVgn/gSejQ+0aoR8ucbKIdo6icduPZW6AbWwyUmAUgxy63rUYjwa5rj/HeoNPhf0/XPrl82X8bO/hwBkSmsFtg=="],+"cli-boxes": ["[email protected]", "", {}, "sha512-/lzGpEWL/8PfI0BmBOPRwp0c/wFNX1RdUML3jK/RcSBA9T8mZDdQpqYBKtCFTOfQbwPqWEOpjqW+Fnayc0969g=="],"cli-cursor": ["[email protected]", "", { "dependencies": { "restore-cursor": "^2.0.0" } }, "sha512-8lgKz8LmCRYZZQDpRyT2m5rKJ08TnU4tR9FFFW2rxpxR1FzWi4PQ/NfyODchAatHaUgnSPVcx/R5w6NuTBzFiw=="],@@ -1537,6 +1545,8 @@"cookie-es": ["[email protected]", "", {}, "sha512-UaXxwISYJPTr9hwQxMFYZ7kNhSXboMXP+Z3TRX6f1/NyaGPfuNUZOWP1pUEb75B2HjfklIYLVRfWiFZJyC6Npg=="],+ "core-js": ["[email protected]", "", {}, "sha512-Kb2wC0fvsWfQrgk8HU5lW6U/Lcs8+9aaYcy4ZFc6DDlo4nZ7n70dEgE5rtR0oG6ufKDUnrwfWL1mXR5ljDatrQ=="],+"core-js-compat": ["[email protected]", "", { "dependencies": { "browserslist": "^4.28.1" } }, "sha512-VQXt1jr9cBz03b331DFDCCP90b3fanciLkgiOoy8SBHy06gNf+vQ1A3WFLqG7I8TipYIKeYK9wxd0tUrvHcOZA=="],"cose-base": ["[email protected]", "", { "dependencies": { "layout-base": "^1.0.0" } }, "sha512-s9whTXInMSgAp/NVXVNuVxVKzGH2qck3aQlVHxDCdAEPgtMKwc4Wq6/QKhgdEdgbLSi9rBTAcPoRa6JpiG4ksg=="],@@ -1577,6 +1587,8 @@"cytoscape-fcose": ["[email protected]", "", { "dependencies": { "cose-base": "^2.2.0" }, "peerDependencies": { "cytoscape": "^3.2.0" } }, "sha512-ki1/VuRIHFCzxWNrsshHYPs6L7TvLu3DL+TyIGEsRcvVERmxokbf5Gdk7mFxZnTdiGtnA4cfSmjZJMviqSuZrQ=="],+ "d": ["[email protected]", "", { "dependencies": { "es5-ext": "^0.10.64", "type": "^2.7.2" } }, "sha512-MOqHvMWF9/9MX6nza0KgvFH4HpMU0EF5uUDXqX/BtxtU8NfB0QzRtJ8Oe/6SuS4kbhyzVJwjd97EA4PKrzJ8bw=="],+"d3": ["[email protected]", "", { "dependencies": { "d3-array": "3", "d3-axis": "3", "d3-brush": "3", "d3-chord": "3", "d3-color": "3", "d3-contour": "4", "d3-delaunay": "6", "d3-dispatch": "3", "d3-drag": "3", "d3-dsv": "3", "d3-ease": "3", "d3-fetch": "3", "d3-force": "3", "d3-format": "3", "d3-geo": "3", "d3-hierarchy": "3", "d3-interpolate": "3", "d3-path": "3", "d3-polygon": "3", "d3-quadtree": "3", "d3-random": "3", "d3-scale": "4", "d3-scale-chromatic": "3", "d3-selection": "3", "d3-shape": "3", "d3-time": "3", "d3-time-format": "4", "d3-timer": "3", "d3-transition": "3", "d3-zoom": "3" } }, "sha512-e1U46jVP+w7Iut8Jt8ri1YsPOvFpg46k+K8TpCb0P+zjCkjkPnV7WzfDJzMHy1LnA+wj5pLT1wjO901gLXeEhA=="],"d3-array": ["[email protected]", "", { "dependencies": { "internmap": "1 - 2" } }, "sha512-tdQAmyA18i4J7wprpYq8ClcxZy3SC31QMeByyCFyRt7BVHdREQZ5lpzoe5mFEYZUWe+oq8HBvk9JjpibyEV4Jg=="],@@ -1759,6 +1771,12 @@"es-toolkit": ["[email protected]", "", {}, "sha512-G5iZ6Pc/FNRY/soKZHC+TxGDD83rHUDXxzaWhGCX44vAv/tMs56WMusnm/KMNK+luUPsgA9U28cGr4RDlSzL2g=="],+ "es5-ext": ["[email protected]", "", { "dependencies": { "es6-iterator": "^2.0.3", "es6-symbol": "^3.1.3", "esniff": "^2.0.1", "next-tick": "^1.1.0" } }, "sha512-p2snDhiLaXe6dahss1LddxqEm+SkuDvV8dnIQG0MWjyHpcMNfXKPE+/Cc0y+PhxJX3A4xGNeFCj5oc0BUh6deg=="],++ "es6-iterator": ["[email protected]", "", { "dependencies": { "d": "1", "es5-ext": "^0.10.35", "es6-symbol": "^3.1.1" } }, "sha512-zw4SRzoUkd+cl+ZoE15A9o1oQd920Bb0iOJMQkQhl3jNc03YqVjAhG7scf9C5KWRU/R13Orf588uCC6525o02g=="],++ "es6-symbol": ["[email protected]", "", { "dependencies": { "d": "^1.0.2", "ext": "^1.7.0" } }, "sha512-U9bFFjX8tFiATgtkJ1zg25+KviIXpgRvRHS8sau3GfhVzThRQrOeksPeT0BWW2MNZs1OEWJ1DPXOQMn0KKRkvg=="],+"esast-util-from-estree": ["[email protected]", "", { "dependencies": { "@types/estree-jsx": "^1.0.0", "devlop": "^1.0.0", "estree-util-visit": "^2.0.0", "unist-util-position-from-estree": "^2.0.0" } }, "sha512-4CyanoAudUSBAn5K13H4JhsMH6L9ZP7XbLVe/dKybkxMO7eDyLsT8UHl9TRNrU2Gr9nz+FovfSIjuXWJ81uVwQ=="],"esast-util-from-js": ["[email protected]", "", { "dependencies": { "@types/estree-jsx": "^1.0.0", "acorn": "^8.0.0", "esast-util-from-estree": "^2.0.0", "vfile-message": "^4.0.0" } }, "sha512-8Ja+rNJ0Lt56Pcf3TAmpBZjmx8ZcK5Ts4cAzIOjsjevg9oSXJnl6SUQ2EevU8tv3h6ZLWmoKL5H4fgWvdvfETw=="],@@ -1771,6 +1789,8 @@"escape-string-regexp": ["[email protected]", "", {}, "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA=="],+ "esniff": ["[email protected]", "", { "dependencies": { "d": "^1.0.1", "es5-ext": "^0.10.62", "event-emitter": "^0.3.5", "type": "^2.7.2" } }, "sha512-kTUIGKQ/mDPFoJ0oVfcmyJn4iBDRptjNVIzwIFR7tqWXdVI9xfA2RMwY/gbSpJG3lkdWNEjLap/NqVHZiJsdfg=="],+"estree-util-attach-comments": ["[email protected]", "", { "dependencies": { "@types/estree": "^1.0.0" } }, "sha512-cKUwm/HUcTDsYh/9FgnuFqpfquUbwIqwKM26BVCGDPVgvaCl/nDCCjUfiLlx6lsEZ3Z4RFxNbOQ60pkaEwFxGw=="],"estree-util-build-jsx": ["[email protected]", "", { "dependencies": { "@types/estree-jsx": "^1.0.0", "devlop": "^1.0.0", "estree-util-is-identifier-name": "^3.0.0", "estree-walker": "^3.0.0" } }, "sha512-8U5eiL6BTrPxp/CHbs2yMgP8ftMhR5ww1eIKoWRMlqvltHF8fZn5LRDvTKuxD3DUn+shRbLGqXemcP51oFCsGQ=="],@@ -1791,6 +1811,8 @@"etag": ["[email protected]", "", {}, "sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg=="],+ "event-emitter": ["[email protected]", "", { "dependencies": { "d": "1", "es5-ext": "~0.10.14" } }, "sha512-D9rRn9y7kLPnJ+hMq7S/nhvoKwwvVJahBi2BPmx3bvbsEdK3W9ii8cBSGjP+72/LnM4n6fo3+dkCX5FeTQruXA=="],+"event-target-shim": ["[email protected]", "", {}, "sha512-i/2XbnSz/uxRCU6+NdVJgKWDTM427+MqYbkQzD321DuCQJUqOuJKIA0IM2+W2xtYHdKOmZ4dR6fExsd4SXL+WQ=="],"eventemitter3": ["[email protected]", "", {}, "sha512-mlsTRyGaPBjPedk6Bvw+aqbsXDtoAyAzm5MO7JgU+yVRyMQ5O8bD4Kcci7BS85f93veegeCPkL8R4GLClnjLFw=="],@@ -1857,6 +1879,8 @@"exsolve": ["[email protected]", "", {}, "sha512-D+42+T12DdIlJM3uepa55qGiL3sYdLBOxIl2ifQCzCHz4c7eiolaHsi3BIqEr7JxBzxv2pYZQX9kw16ziMcEmw=="],+ "ext": ["[email protected]", "", { "dependencies": { "type": "^2.7.2" } }, "sha512-6hxeJYaL110a9b5TEJSj0gojyHQAmA2ch5Os+ySCiA1QGdS697XWY1pzsrSjqA9LDEEgdB/KypIlR59RcLuHYw=="],+"extend": ["[email protected]", "", {}, "sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g=="],"extract-zip": ["[email protected]", "", { "dependencies": { "debug": "^4.1.1", "get-stream": "^5.1.0", "yauzl": "^2.10.0" }, "optionalDependencies": { "@types/yauzl": "^2.9.1" }, "bin": { "extract-zip": "cli.js" } }, "sha512-GDhU9ntwuKyGXdZBUgTIe+vXnWj0fppUEtMDL0+idd5Sta8TGpHssn/eusA9mrPr9qNDym6SxAYZjNvCn/9RBg=="],@@ -2487,6 +2511,8 @@"nested-property": ["[email protected]", "", {}, "sha512-yFehXNWRs4cM0+dz7QxCd06hTbWbSkV0ISsqBfkntU6TOY4Qm3Q88fRRLOddkGh2Qq6dZvnKVAahfhjcUvLnyA=="],+ "next-tick": ["[email protected]", "", {}, "sha512-CXdUiJembsNjuToQvxayPZF9Vqht7hewsvy2sOWafLvi2awflj9mOC6bHIg50orX8IJvWKY9wYQ/zB2kogPslQ=="],+"nlcst-to-string": ["[email protected]", "", { "dependencies": { "@types/nlcst": "^2.0.0" } }, "sha512-YKLBCcUYKAg0FNlOBT6aI91qFmSiFKiluk655WzPF+DDMA02qIyy8uiRqI8QXtcFpEvll12LpL5MXqEmAZ+dcA=="],"node-domexception": ["[email protected]", "", {}, "sha512-/jKZoMpw0F8GRwl4/eLROPA3cfcXtLApP0QzLmUT/HuPCZWyB7IY9ZrMeKw2O/nFIqPQB3PVM9aYm0F312AXDQ=="],@@ -2557,6 +2583,8 @@"package-manager-detector": ["[email protected]", "", {}, "sha512-xg1eHpwYL/D/HEdWw2goFZP6vV0FH7W+PZ5rFkGjdIDLtxq7EkzBUeT3m+lndYCt8wKbmofUu1MUdMCXkCk9ZQ=="],+ "pagedjs": ["[email protected]", "", { "dependencies": { "@babel/polyfill": "^7.10.1", "@babel/runtime": "^7.21.0", "clear-cut": "^2.0.2", "css-tree": "^1.1.3", "event-emitter": "^0.3.5" } }, "sha512-YtAN9JAjsQw1142gxEjEAwXvOF5nYQuDwnQ67RW2HZDkMLI+b4RsBE37lULZa9gAr6kDAOGBOhXI4wGMoY3raw=="],+"parse-entities": ["[email protected]", "", { "dependencies": { "@types/unist": "^2.0.0", "character-entities-legacy": "^3.0.0", "character-reference-invalid": "^2.0.0", "decode-named-character-reference": "^1.0.0", "is-alphanumerical": "^2.0.0", "is-decimal": "^2.0.0", "is-hexadecimal": "^2.0.0" } }, "sha512-GG2AQYWoLgL877gQIKeRPGO1xF9+eG1ujIb5soS5gPvLQ1y2o8FL90w2QWNdf9I361Mpp7726c+lj3U0qK1uGw=="],"parse-latin": ["[email protected]", "", { "dependencies": { "@types/nlcst": "^2.0.0", "@types/unist": "^3.0.0", "nlcst-to-string": "^4.0.0", "unist-util-modify-children": "^4.0.0", "unist-util-visit-children": "^3.0.0", "vfile": "^6.0.0" } }, "sha512-mhHgobPPua5kZ98EF4HWiH167JWBfl4pvAIXXdbaVohtK7a6YBOy56kvhCqduqyo/f3yrHFWmqmiMg/BkBkYYQ=="],@@ -3043,6 +3071,8 @@"turndown": ["[email protected]", "", { "dependencies": { "@mixmark-io/domino": "^2.2.0" } }, "sha512-I8yFsfRzmzK0WV1pNNOA4A7y4RDfFxPRxb3t+e3ui14qSGOxGtiSP6GjeX+Y6CHb7HYaFj7ECUD7VE5kQMZWGQ=="],+ "type": ["[email protected]", "", {}, "sha512-8j+1QmAbPvLZow5Qpi6NCaN8FB60p/6x8/vfNqOk/hC+HuvFZhL4+WfekuhQLiqFZXOgQdrs3B+XxEmCc6b3FQ=="],+"type-fest": ["[email protected]", "", {}, "sha512-Ne2YiiGN8bmrmJJEuTWTLJR32nh/JdL1+PSicowtNb0WFpn59GK8/lfD61bVtzguz7b3PBt74nxpv/Pw5po5Rg=="],"typed-array-buffer": ["[email protected]", "", { "dependencies": { "call-bound": "^1.0.3", "es-errors": "^1.3.0", "is-typed-array": "^1.1.14" } }, "sha512-nAYYwfY3qnzX30IkA6AQZjVbtK6duGontcQm1WSG1MD94YLqK0515GNApXkoxKOWMusVssAHWLh9SeaoefYFGw=="],diff --git a/packages/shared/src/i18n/en-US.ts b/packages/shared/src/i18n/en-US.tsindex 26e9936d..73c13dd0 100644--- a/packages/shared/src/i18n/en-US.ts+++ b/packages/shared/src/i18n/en-US.ts@@ -576,6 +576,16 @@ export const enUS = {searchCurrentMemo: "Search current note",replaceCurrentMemo: "Replace in current note",versionHistory: "Version history",+ exportPdf: "Export PDF",+ pdfExport: {+ preparing: "Preparing print preview…",+ ready: "Print preview is ready",+ hint: "Choose “Save as PDF” in the print dialog.",+ print: "Print / Save PDF",+ close: "Close",+ error: "Could not generate the print preview",+ popupBlocked: "The browser blocked the print preview window. Allow pop-ups for EdgeEver and try again.",+ },save: "Save",more: "More",moreAria: "More note actions",diff --git a/packages/shared/src/i18n/zh-CN.ts b/packages/shared/src/i18n/zh-CN.tsindex 62f9a196..299e2cb5 100644--- a/packages/shared/src/i18n/zh-CN.ts+++ b/packages/shared/src/i18n/zh-CN.ts@@ -576,6 +576,16 @@ export const zhCN = {searchCurrentMemo: "搜索当前笔记",replaceCurrentMemo: "替换当前笔记",versionHistory: "版本历史",+ exportPdf: "导出 PDF",+ pdfExport: {+ preparing: "正在生成打印预览…",+ ready: "打印预览已就绪",+ hint: "请在打印对话框中选择“另存为 PDF”。",+ print: "打印 / 保存 PDF",+ close: "关闭",+ error: "打印预览生成失败",+ popupBlocked: "浏览器阻止了打印预览窗口,请允许 EdgeEver 打开弹出式窗口后重试。",+ },save: "保存",more: "更多",moreAria: "笔记更多操作",