Files
plainleaf/client/html/auth.html
T
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

51 lines
1.8 KiB
HTML

<!doctype html>
<html lang="zh-CN">
<head>
<meta charset="utf-8" />
<meta
content="width=device-width, initial-scale=1, maximum-scale=1"
name="viewport"
/>
<base href="{{ host_prefix | safe }}/" />
<link rel="icon" type="image/png" href=".client/favicon-96x96.png?v=plainleaf-1" sizes="96x96" />
<link rel="icon" type="image/svg+xml" href=".client/favicon.svg?v=plainleaf-1" />
<link rel="shortcut icon" href=".client/favicon.ico?v=plainleaf-1" />
<link rel="stylesheet" href=".client/app.css" />
<title>登录 · Plainleaf</title>
<style>
/* Login-page-only layout; everything else comes from app.css. */
header {
position: absolute;
padding: 1rem;
font-size: 1.2rem;
}
footer {
text-align: center;
}
form > div {
display: flex;
flex-direction: column;
flex-grow: 1;
}
</style>
</head>
<body class="sb-standalone">
<!-- Config crosses over as data attributes, not a JSON island: the
template autoescapes (the space name is user-controlled), and
attribute escaping is the case autoescaping handles correctly.
A JSON <script> island would arrive HTML-escaped and unparseable,
and un-escaping it would let a space named "</script>…" break out. -->
<div
id="root"
data-space-name="{{ space_name }}"
data-encryption-salt="{{ encryption_salt }}"
data-remember-me-days="{{ remember_me_days }}"
data-account-managed="{{ account_managed }}"
></div>
<script type="module" src=".client/auth.js"></script>
</body>
</html>