Files
wushenghuaandCodex 7928ebf4f2
CI / config (push) Canceled after 0s
CI / test-frontend (push) Canceled after 0s
CI / test-rust (push) Canceled after 0s
CI / test-e2e (push) Canceled after 0s
CI / test-e2e-release (push) Canceled after 0s
CI / build (push) Canceled after 0s
CI / release (push) Canceled after 0s
CI / docker (push) Canceled after 0s
CI / docker-website (push) Canceled after 0s
feat: complete Plainleaf Chinese branding
Replace visible SilverBullet branding, localize the primary login and editor surfaces, and seed new spaces with a Chinese home page while preserving Markdown file names and command IDs.

Co-Authored-By: Codex <noreply@anthropic.com>
2026-08-12 14:55:58 +08:00

41 lines
764 B
TypeScript

import {
editor,
markdown,
system,
} from "@silverbulletmd/silverbullet/syscalls";
export async function parsePageCommand() {
console.log(
"AST",
JSON.stringify(
await markdown.parseMarkdown(await editor.getText()),
null,
2,
),
);
}
export async function wipeClientCommand() {
if (
!(await editor.confirm(
"确定要清除本地客户端数据吗?此操作会清空浏览器缓存。",
{ destructive: true },
))
) {
return;
}
await system.wipeClient();
}
export async function wipeAndLogoutCommand() {
await system.wipeClient(true);
}
export async function reloadUICommand() {
await editor.reloadUI();
}
export async function reloadPlugsCommand() {
await system.reloadPlugs();
}