@insapp-dev/inslog 0.0.0-stage → 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (110) hide show
  1. package/LICENSE +26 -0
  2. package/README.md +66 -2
  3. package/config/database.example.json +5 -0
  4. package/config/locale.example.json +3 -0
  5. package/locales/en.json +476 -0
  6. package/locales/zh-CN.json +1 -0
  7. package/next-env.d.ts +7 -0
  8. package/next.config.ts +10 -0
  9. package/package.json +62 -4
  10. package/public/apple-touch-icon.png +0 -0
  11. package/public/favicon.ico +0 -0
  12. package/public/icon-color.png +0 -0
  13. package/public/icon-color.svg +5 -0
  14. package/public/icon-dark.svg +5 -0
  15. package/public/icon.svg +5 -0
  16. package/scripts/_db.mjs +67 -0
  17. package/scripts/export-backup.mjs +104 -0
  18. package/scripts/release.sh +70 -0
  19. package/scripts/seed-demo.mjs +184 -0
  20. package/scripts/test-connection.mjs +26 -0
  21. package/src/app/api/auth/logout/route.ts +9 -0
  22. package/src/app/api/auth/passkey/add-request/route.ts +35 -0
  23. package/src/app/api/auth/passkey/login/options/route.ts +40 -0
  24. package/src/app/api/auth/passkey/login/verify/route.ts +58 -0
  25. package/src/app/api/auth/passkey/register/options/route.ts +46 -0
  26. package/src/app/api/auth/passkey/register/verify/route.ts +63 -0
  27. package/src/app/api/auth/passkey/remove-request/route.ts +44 -0
  28. package/src/app/api/auth/recovery/route.ts +45 -0
  29. package/src/app/api/auth/totp/disable/route.ts +42 -0
  30. package/src/app/api/auth/totp/enable/route.ts +75 -0
  31. package/src/app/api/auth/totp/login/route.ts +47 -0
  32. package/src/app/api/auth/totp/setup/route.ts +20 -0
  33. package/src/app/api/setup/complete/route.ts +27 -0
  34. package/src/app/api/setup/email/route.ts +41 -0
  35. package/src/app/api/upload/local/route.ts +73 -0
  36. package/src/app/api/upload/route.ts +73 -0
  37. package/src/app/api/upload/s3/route.ts +73 -0
  38. package/src/app/confirm/[token]/page.tsx +181 -0
  39. package/src/app/globals.css +952 -0
  40. package/src/app/layout.tsx +107 -0
  41. package/src/app/login/login-form.tsx +325 -0
  42. package/src/app/login/page.tsx +76 -0
  43. package/src/app/not-found.tsx +26 -0
  44. package/src/app/page.tsx +179 -0
  45. package/src/app/posts/[slug]/page.tsx +100 -0
  46. package/src/app/robots.txt/route.ts +25 -0
  47. package/src/app/rss.xml/route.ts +60 -0
  48. package/src/app/search/page.tsx +94 -0
  49. package/src/app/settings/actions.ts +92 -0
  50. package/src/app/settings/image-field.tsx +143 -0
  51. package/src/app/settings/language-actions.ts +28 -0
  52. package/src/app/settings/language-select.tsx +56 -0
  53. package/src/app/settings/page.tsx +97 -0
  54. package/src/app/settings/passkey-manager.tsx +194 -0
  55. package/src/app/settings/site-form.tsx +323 -0
  56. package/src/app/settings/theme-toggle.tsx +51 -0
  57. package/src/app/settings/totp-manager.tsx +239 -0
  58. package/src/app/setup/auth-config-panel.tsx +132 -0
  59. package/src/app/setup/config-actions.ts +90 -0
  60. package/src/app/setup/page.tsx +80 -0
  61. package/src/app/setup/secrets-actions.ts +49 -0
  62. package/src/app/setup/setup-data.ts +133 -0
  63. package/src/app/setup/setup-wizard.tsx +338 -0
  64. package/src/app/sitemap.xml/route.ts +46 -0
  65. package/src/app/uploads/[...path]/route.ts +64 -0
  66. package/src/app/write/actions.ts +85 -0
  67. package/src/app/write/page.tsx +48 -0
  68. package/src/app/write/write-client.tsx +254 -0
  69. package/src/components/BlockEditor.tsx +102 -0
  70. package/src/components/PostBody.tsx +51 -0
  71. package/src/components/SiteFooter.tsx +41 -0
  72. package/src/components/WriteFab.tsx +38 -0
  73. package/src/components/i18n-provider.tsx +22 -0
  74. package/src/components/install-hint.tsx +31 -0
  75. package/src/components/service-config-fields.tsx +110 -0
  76. package/src/lib/auth.ts +41 -0
  77. package/src/lib/change-request.ts +184 -0
  78. package/src/lib/config-keys.ts +300 -0
  79. package/src/lib/credentials.ts +171 -0
  80. package/src/lib/env-config.ts +39 -0
  81. package/src/lib/env-store.ts +72 -0
  82. package/src/lib/i18n-core.ts +27 -0
  83. package/src/lib/i18n.ts +72 -0
  84. package/src/lib/image-compress.ts +59 -0
  85. package/src/lib/mail.ts +121 -0
  86. package/src/lib/mongodb.ts +236 -0
  87. package/src/lib/passkey.ts +73 -0
  88. package/src/lib/pending.ts +142 -0
  89. package/src/lib/post-utils.ts +56 -0
  90. package/src/lib/posts.ts +283 -0
  91. package/src/lib/rate-limit.ts +91 -0
  92. package/src/lib/recovery-hints.ts +16 -0
  93. package/src/lib/safe-path.ts +0 -0
  94. package/src/lib/secret-box.ts +46 -0
  95. package/src/lib/service-config.ts +25 -0
  96. package/src/lib/service-features.ts +72 -0
  97. package/src/lib/session-constants.ts +5 -0
  98. package/src/lib/session.ts +51 -0
  99. package/src/lib/settings-file.ts +120 -0
  100. package/src/lib/settings.ts +199 -0
  101. package/src/lib/site-url.ts +15 -0
  102. package/src/lib/slug.ts +53 -0
  103. package/src/lib/storage.ts +226 -0
  104. package/src/lib/time.ts +15 -0
  105. package/src/lib/totp.ts +88 -0
  106. package/src/lib/types.ts +72 -0
  107. package/src/lib/upload-client.ts +83 -0
  108. package/src/lib/xml.ts +12 -0
  109. package/src/proxy.ts +24 -0
  110. package/tsconfig.json +41 -0
package/LICENSE ADDED
@@ -0,0 +1,26 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 inslog contributors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ Additional condition: Any public deployment of the Software (for example, a
16
+ blog built with it) must retain a visible link to the original source code
17
+ repository of the Software, so that more people can find, obtain and use it.
18
+ This link is independent of the site owner's own content or social links.
19
+
20
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
21
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
22
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
23
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
24
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
25
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
26
+ SOFTWARE.
package/README.md CHANGED
@@ -1,3 +1,67 @@
1
- # Temporary Holding Version
1
+ # inslog
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ 一个基于 Node.js + Next.js 的 Blog APP:让作者专注于写作,让读者专注于阅读。
4
+
5
+ **路径短、界面干净、默认安全。** 单用户、单站点、纯自用;没有账号系统、密码、追踪、评论、推荐算法、弹窗和花哨装饰。不做多用户、后台、社交、统计,也没有主题模板。
6
+
7
+ **归属权在你手里。** 内容在 MongoDB,文件在 Vercel Blob / S3 / 本地磁盘,邮件走 Resend / SMTP。服务可换,配置由你自己保存。公开部署需在页脚保留源码链接。
8
+
9
+ ## 能做什么
10
+
11
+ - 首页时间线:日期 + 标题,支持搜索、标签、分页;公开文章 6 个月内标 `new`,置顶只调排序。
12
+ - 文章:草稿 / 私有 / 公开三态;访客只读公开内容,草稿和私有直接访问 404。
13
+ - 编辑器:BlockNote,支持标题、列表、引用、代码块、表格、图片,以及文件 / 音频 / 视频块。
14
+ - 标签与地址:标签手动创建,没人引用就删;slug 自动生成,也可自己填。
15
+ - 登录:Passkey 主,TOTP 辅;两把钥匙都丢了用 `RECOVERY_TOKEN`。凭据变更走一次性邮件确认。
16
+ - 设置:站点信息、SEO、外观、每页文章数、社交链接;主题和界面语言即时生效。
17
+ - 输出:RSS、sitemap、robots.txt、自定义 404;只输出公开文章。
18
+
19
+ ## 部署
20
+
21
+ 推荐 Vercel:把 Production Branch / Branch Tracking 设为 `main`,避免推 `nightly` 影响正式站点。
22
+
23
+ 1. 导入 `daveswong/inslog`,Framework Preset 选 Next.js,根目录留空,Deploy。
24
+ 2. 打开 `/setup`,填数据库地址、库名、`RP_ID`、`ORIGIN`,选发信 / 存储方案,点「生成 .env 文件」。
25
+ 3. 把下载的 `.env` 导入 Vercel 环境变量,重新部署;库名必须明确,`AUTH_SECRET` 和 `RECOVERY_TOKEN` 自动生成、页面不显示。
26
+ 4. 回 `/setup` 点「检查配置,完成安装」,通过后跳登录页。
27
+ 5. 用 `RECOVERY_TOKEN` 从 `/login?recovery=1` 登录,到设置页填通知邮箱、绑 Passkey 和 TOTP。
28
+
29
+ 自部署:把 `.env` 放到项目根目录,`npm run build && npm run start`,重启服务。非 Vercel 可使用本地文件存储;Vercel 只能用 MongoDB 存设置。
30
+
31
+ **程序不会写服务器环境变量。** 所有环境变量都是机密,只放服务端 `.env` / 平台后台,不进文章、截图、聊天或公开仓库。站点没有重置流程;恢复密钥用完后建议自行删除,不删也不报错。
32
+
33
+ MongoDB 库名必须明确:`MONGODB_DB_NAME` 或连接串路径;填一个不存在的库名会自动创建。Vercel 上 Atlas 白名单需放开 `0.0.0.0/0`。
34
+
35
+ `NEXT_PUBLIC_SITE_URL` 可选,不填回退 `ORIGIN`;`SETTINGS_STORE` 可选 `mongodb` / `file`;界面语言在设置页切换。
36
+
37
+ ## 本地开发
38
+
39
+ ```bash
40
+ npm install
41
+ npm run dev
42
+ ```
43
+
44
+ 常用命令:
45
+
46
+ ```bash
47
+ node scripts/test-connection.mjs # 只读连通测试
48
+ node scripts/seed-demo.mjs # 演示数据
49
+ npm run backup # 导出文章 / 标签 / 设置,不导出凭据
50
+ npx tsc --noEmit
51
+ npm run build
52
+ ```
53
+
54
+ 仓库无 test / lint 脚本,验收以上述命令加具体行为核对为准。
55
+
56
+ ## 参与开发
57
+
58
+ - 改动走 `nightly`,测通后再同步 `main`;`main` 是发布分支,推之前要单独确认。
59
+ - 发布命令:`npm run release`(force push nightly → main,不打 tag、不建 GitHub Release)。
60
+ - 提交信息用中文短句,说清做了什么即可。
61
+ - 代码注释用中文,文件编码 UTF-8。
62
+ - 改界面文案同步 `locales/en.json`;缺翻译回退中文。
63
+ - 不引入主题模板 / 外观预设;不过度设计。
64
+
65
+ ## 协议
66
+
67
+ MIT License,附加要求:公开部署必须在页脚保留指向源码仓库的可见链接,链接固定在 `src/components/SiteFooter.tsx`,不进设置。
@@ -0,0 +1,5 @@
1
+ {
2
+ "uri": "mongodb+srv://<用户名>:<密码>@<集群地址>/?retryWrites=true&w=majority",
3
+ "dbName": "inslog",
4
+ "_comment": "本地开发用:把本文件复制为 database.json,再把 uri 换成你的 MongoDB Atlas 连接串。database.json 已被 gitignore,不会提交。"
5
+ }
@@ -0,0 +1,3 @@
1
+ {
2
+ "locale": "zh-CN"
3
+ }
@@ -0,0 +1,476 @@
1
+ {
2
+ "搜索文章": "Search posts",
3
+ "搜索": "Search",
4
+ "更新": "Updated",
5
+ "这个标签下还没有文章。": "No posts under this tag.",
6
+ "还没有文章。": "No posts yet.",
7
+ "查看全部": "View all",
8
+ "上一页": "Previous",
9
+ "下一页": "Next",
10
+ "页面不存在": "Page not found",
11
+ "地址可能写错了,文章也许还没发布、已经删掉,或者换了地址。": "The address may be wrong, or the post may be unpublished, deleted, or moved.",
12
+ "返回首页": "Back to home",
13
+ "首页": "Home",
14
+ "设置": "Settings",
15
+ "退出登录": "Sign out",
16
+ "登录": "Sign in",
17
+ "写文章": "Write",
18
+ "登录已过期,请重新登录后再上传": "Session expired. Please sign in again before uploading.",
19
+ "只支持图片文件(jpg/png/webp/gif)": "Only image files are supported (jpg/png/webp/gif)",
20
+ "图片超过 10MB,请压缩后再传": "Image is over 10MB. Please compress it first.",
21
+ "图片上传失败,请重试": "Upload failed. Please retry.",
22
+ "确认邮件发得太频繁,请 10 分钟后再试": "Too many confirmation emails. Try again in 10 minutes.",
23
+ "只支持 jpg / png / webp / gif / avif / svg 图片": "Only jpg / png / webp / gif / avif / svg images are supported",
24
+ "图片超过 10MB,请先压缩": "Image is over 10MB. Please compress it first.",
25
+ "设置页还没填通知邮箱": "Notification email is not set on the settings page",
26
+ "未知": "Unknown",
27
+ "确认地址(10 分钟内有效,只能用一次):": "Confirmation link (valid for 10 minutes, single use):",
28
+ "如果不是你本人操作,忽略这封邮件即可,凭据不会改变。": "If you did not request this, just ignore this email; nothing will change.",
29
+ "确认邮件发送失败": "Failed to send the confirmation email",
30
+ "更换登录验证器": "Replace sign-in authenticator",
31
+ "解绑登录验证器": "Remove sign-in authenticator",
32
+ "确认后旧验证器立刻失效,所有设备都需要重新登录。": "After confirmation the old authenticator stops working and all devices must sign in again.",
33
+ "确认后账号会少一把钥匙,所有设备都需要重新登录。": "After confirmation you will lose one key and all devices must sign in again.",
34
+ "绑定一把新的 Passkey": "Add a new Passkey",
35
+ "删除一把 Passkey": "Remove a Passkey",
36
+ "确认后 10 分钟内可以回设置页完成设备绑定,过期需要重新申请。": "After confirmation you have 10 minutes to finish binding on your device. Reapply if it expires.",
37
+ "确认后这把 Passkey 立刻失效,所有设备都需要重新登录。": "After confirmation this Passkey stops working and all devices must sign in again.",
38
+ "公开": "Public",
39
+ "私有": "Private",
40
+ "草稿": "Draft",
41
+ "保存草稿": "Save draft",
42
+ "保存为私有": "Save as private",
43
+ "发布": "Publish",
44
+ "保存中…": "Saving…",
45
+ "确定删除这篇文章?删除后无法恢复。": "Delete this post? This cannot be undone.",
46
+ "删除中…": "Deleting…",
47
+ "← 返回": "← Back",
48
+ "编辑文章": "Editing post",
49
+ "新建文章": "New post",
50
+ "文章标题": "Post title",
51
+ "新建标签后回车": "Press Enter after typing a new tag",
52
+ "新建标签": "New tag",
53
+ "添加": "Add",
54
+ "可见性": "Visibility",
55
+ "删除这篇文章": "Delete this post",
56
+ "登录已过期,请重新登录后再保存": "Session expired. Please sign in again before saving.",
57
+ "先写个标题吧": "Please enter a title first.",
58
+ "文章不存在,可能已被删除": "Post not found, or already deleted.",
59
+ "保存失败:数据库连接异常": "Save failed: database error",
60
+ "登录已过期,请重新登录": "Session expired. Please sign in again.",
61
+ "删除失败:数据库连接异常": "Delete failed: database error",
62
+ "站点名": "Site name",
63
+ "简介": "Description",
64
+ "作者": "Author",
65
+ "图片地址,留空用默认": "Image URL, leave blank for default",
66
+ "分享图": "Share image",
67
+ "每页文章数": "Posts per page",
68
+ "页脚文字": "Footer text",
69
+ "留空用默认页脚": "Leave blank for the default footer",
70
+ "标题": "Title",
71
+ "留空用站点名": "Leave blank to use the site name",
72
+ "描述": "Description",
73
+ "留空用简介": "Leave blank to use the description",
74
+ "关键词": "Keywords",
75
+ "用逗号分隔": "Separate with commas",
76
+ "通知邮箱": "Notification email",
77
+ "社交链接": "Social links",
78
+ "保存": "Save",
79
+ "正在申请…": "Requesting…",
80
+ "申请失败": "Request failed",
81
+ "确认信已发出:点邮件里的链接,再回这页点「完成绑定」。": "Confirmation email sent: open the link, then come back here and click Finish binding.",
82
+ "授权还在有效期内,可以完成绑定。": "Authorization is still valid. You can finish binding.",
83
+ "正在请求浏览器…": "Requesting browser…",
84
+ "Passkey 需要 HTTPS 或 localhost 环境,当前页面不满足": "Passkey requires HTTPS or localhost; this page is not secure.",
85
+ "无法开始绑定": "Could not start binding",
86
+ "等待系统弹窗确认(Touch ID / 指纹 / 设备密码)…": "Waiting for system confirmation (Touch ID / fingerprint / device password)…",
87
+ "绑定失败": "Binding failed",
88
+ "浏览器没有放行:可能取消了确认,或页面嵌在别的窗口里。请在独立的浏览器标签页打开本站再试。": "Browser did not allow it: you may have cancelled, or the page is embedded. Open this site in a standalone tab and retry.",
89
+ "确定删除这把 Passkey?需要邮件确认后才会生效。": "Delete this Passkey? It takes effect only after email confirmation.",
90
+ "确认信已发出:点邮件里的链接、点一下确认,删除才会生效。": "Confirmation email sent: open the link and confirm to delete.",
91
+ "还没有绑定 Passkey。": "No Passkey bound yet.",
92
+ "… · 绑于": "… · added",
93
+ "删除": "Delete",
94
+ "完成绑定(授权 10 分钟内有效)": "Finish binding (valid for 10 minutes)",
95
+ "申请绑定新的 Passkey": "Request a new Passkey",
96
+ "登录已过期,请重新登录后再试": "Session expired. Please sign in again.",
97
+ "站点名不能为空": "Site name cannot be empty",
98
+ "已保存": "Saved",
99
+ "正在生成密钥…": "Generating secret…",
100
+ "无法生成密钥": "Could not generate the secret",
101
+ "确认信已发出:点邮件里的链接、点一下确认,更换才会生效。": "Confirmation email sent: open the link and confirm to apply the change.",
102
+ "已绑定。以后可以用这个验证器的 6 位码登录。": "Bound. You can now sign in with a 6-digit code from this authenticator.",
103
+ "请求失败": "Request failed",
104
+ "确认信已发出:点邮件里的链接、点一下确认,解绑才会生效。": "Confirmation email sent: open the link and confirm to unbind.",
105
+ "用手机上的验证器(1Password、Google Authenticator、iOS 密码 App 都行)扫这个码:": "Scan this code with an authenticator app (1Password, Google Authenticator, iOS Passwords):",
106
+ "扫不了就把这串密钥手输进去:": "If you cannot scan it, type this secret manually: ",
107
+ "验证器上显示的 6 位码": "6-digit code from your authenticator",
108
+ "6 位验证码": "6-digit code",
109
+ "验证并请求更换": "Verify and request change",
110
+ "验证并绑定": "Verify and bind",
111
+ "取消": "Cancel",
112
+ "已经绑了一把验证器。": "An authenticator is already bound.",
113
+ "换一把": "Replace it",
114
+ "解绑": "Unbind",
115
+ "还没有绑定验证器。": "No authenticator bound yet.",
116
+ "绑定验证器": "Bind authenticator",
117
+ "站点设置": "Site settings",
118
+ "初始化还没走完,去安装向导": "Setup is not finished. Go to the setup guide",
119
+ "站点信息": "Site info",
120
+ "外观": "Appearance",
121
+ "手机验证器": "Authenticator",
122
+ "跟随系统": "Follow system",
123
+ "浅色": "Light",
124
+ "深色": "Dark",
125
+ "下面是通用步骤。登录后打开这一页,会直接按你的实际状态列。": "Generic steps below. Sign in to see your actual status here.",
126
+ "Passkey 还在手上:直接": "Passkey available: sign in directly ",
127
+ "只有手机验证器在手:在": "Only the authenticator is available: on the ",
128
+ "登录页": "sign-in page",
129
+ "输 6 位码。": " enter the 6-digit code.",
130
+ "紧急登录": "Emergency sign-in",
131
+ "当前状态与下一步。只显示配置是否存在,不显示任何密钥内容。": "Current status and next steps. Only whether things are configured is shown, never the secrets.",
132
+ "当前状态": "Current status",
133
+ "没有绑定": "Not bound",
134
+ "已绑定": "Bound",
135
+ "未绑定": "Unbound",
136
+ "邮件确认": "Email confirmation",
137
+ "可用": "Available",
138
+ "未配好(换绑 / 解绑会被禁用)": "Not configured (replace / unbind disabled)",
139
+ "紧急密钥": "Recovery key",
140
+ "已配置 RECOVERY_TOKEN": "RECOVERY_TOKEN configured",
141
+ "未配置": "Not configured",
142
+ "接下来做什么": "What to do next",
143
+ "安装向导": "setup guide",
144
+ "把两把钥匙都绑上。": "to bind both keys.",
145
+ "还没有 Passkey:到": "No Passkey yet: go to ",
146
+ "设置页": "settings",
147
+ "绑这台设备,Face ID / 指纹一按就能登录。": " to bind this device, then sign in with Face ID / fingerprint.",
148
+ "还没有验证器:到": "No authenticator yet: go to ",
149
+ "扫码绑定,这是 Passkey 之外的另一把钥匙。": " to scan and bind it — a second key besides Passkey.",
150
+ "邮件确认没配好:需要服务端配置": "Email confirmation is not set up: configure",
151
+ "与": "and",
152
+ "集合的": "document in the",
153
+ "文档等于解绑验证器; 删": "collection to unbind the authenticator; delete the",
154
+ "重新走一遍安装向导": "Run the setup guide again",
155
+ "(初始化已完成)": "(setup complete)",
156
+ "(初始化未完成)": "(setup incomplete)",
157
+ "验证器": "Authenticator",
158
+ "完成": "Done",
159
+ "保存失败": "Save failed",
160
+ "一句话介绍这个站子": "A one-line intro for this site",
161
+ "更换或解绑验证器时收确认信": "Where confirmation emails are sent when replacing / unbinding the authenticator",
162
+ "保存站点信息": "Save site info",
163
+ "绑定 Passkey": "Bind Passkey",
164
+ "绑定手机验证器": "Bind authenticator",
165
+ "当前已经绑好。": "Already bound.",
166
+ "完成安装,回首页": "Finish setup and go home",
167
+ "上一步": "Previous",
168
+ "下一步": "Next",
169
+ "首次安装": "First-time setup",
170
+ "输入关键词": "Enter keywords",
171
+ "搜标题、正文或标签都可以。": "Search titles, content or tags.",
172
+ "没有匹配的文章。": "No matching posts.",
173
+ "共": "Total",
174
+ "篇,只显示前": "posts, showing only the first",
175
+ "篇。": "posts.",
176
+ "无法开始 Passkey 登录": "Could not start Passkey sign-in",
177
+ "验证失败": "Verification failed",
178
+ "浏览器这次没放行 Passkey:再点一次按钮试试;反复不行就换独立标签页打开本站。如果还是不行,用下面的 6 位验证码登录。": "Browser did not allow Passkey: click again; if it keeps failing, open this site in a standalone tab. You can also sign in with the 6-digit code below.",
179
+ "登录失败": "Sign-in failed",
180
+ "已经登录了。": "Already signed in.",
181
+ "用 Passkey 登录": "Sign in with Passkey",
182
+ "或者用手机验证器里的 6 位码。": "Or use a 6-digit code from your phone authenticator.",
183
+ "用验证码登录": "Sign in with code",
184
+ "进入": "Enter",
185
+ "只有这里需要身份:写文章和站点设置。": "Only writing and site settings require sign-in.",
186
+ "请求格式不正确": "Invalid request format",
187
+ "登录后才能上传图片": "Sign in before uploading images",
188
+ "上传失败": "Upload failed",
189
+ "请先登录": "Please sign in",
190
+ "保存失败:数据库异常": "Save failed: database error",
191
+ "站点名太长(最多 80 字)": "Site name is too long (max 80 characters)",
192
+ "通知邮箱格式不对": "Invalid notification email",
193
+ "密钥不对": "Incorrect key",
194
+ "数据库暂时不可用,稍后再试": "Database temporarily unavailable. Retry shortly.",
195
+ "密钥格式不对,请重新生成": "Invalid secret format. Generate a new one.",
196
+ "验证码不对,确认手机时间和内容后再试": "Incorrect code. Check your phone's time and the code.",
197
+ "还没配好邮件确认,暂时不能更换验证器": "Email confirmation is not configured; cannot replace the authenticator yet",
198
+ "现在没有绑定验证器": "No authenticator is bound",
199
+ "还没配好邮件确认,暂时不能解绑": "Email confirmation is not configured; cannot unbind yet",
200
+ "还没有绑定验证器。请用 Passkey 登录后到设置页绑定。": "No authenticator bound. Sign in with Passkey and bind one in Settings.",
201
+ "验证码不对,或已经用过": "Incorrect code, or already used",
202
+ "还没配好邮件确认,暂时不能新增 Passkey": "Email confirmation is not configured; cannot add a Passkey yet",
203
+ "缺少凭据编号": "Missing credential ID",
204
+ "没有找到这把 Passkey": "Passkey not found",
205
+ "还没配好邮件确认,暂时不能删除 Passkey": "Email confirmation is not configured; cannot remove a Passkey yet",
206
+ "还没有绑定 Passkey,请先用验证器登录并在设置里添加": "No Passkey bound. Sign in with the authenticator and add one in Settings.",
207
+ "验证已过期,请重新登录": "Verification expired. Please sign in again.",
208
+ "缺少认证数据": "Missing authentication data",
209
+ "验证失败,请重试": "Verification failed. Retry.",
210
+ "请先到设置页申请绑定,点确认邮件里的链接后再回来完成": "Request in Settings first, then open the email link and come back to finish",
211
+ "站长": "Owner",
212
+ "授权已过期,请重新申请": "Authorization expired. Please request again.",
213
+ "验证已过期,请重试": "Verification expired. Retry.",
214
+ "缺少注册数据": "Missing registration data",
215
+ "注册失败": "Registration failed",
216
+ "注册失败,请重试": "Registration failed. Retry.",
217
+ "已完成": "Complete",
218
+ "确认变更": "Confirm change",
219
+ "变更已生效。": "Change applied.",
220
+ "现在回设置页,在 10 分钟内用设备完成绑定(Touch ID / 指纹)。过期需要重新申请。": "Back to Settings: finish device binding within 10 minutes (Touch ID / fingerprint). Reapply if it expires.",
221
+ "去设置页": "Go to settings",
222
+ "所有设备上的登录状态都已失效,包括当前这台。请用 Passkey 或验证器重新登录。": "All sessions, including this one, are now invalid. Sign in with Passkey or your authenticator.",
223
+ "去登录": "Go to sign in",
224
+ "这个链接已经失效:可能已被使用,或超过 10 分钟。": "This link is invalid: it may have been used, or more than 10 minutes have passed.",
225
+ "到设置页重新发起一次即可。": "Just restart the request in Settings.",
226
+ "链接不对,或者这条记录已经被清理掉了。": "Link not found, or the record was cleaned up.",
227
+ "这个链接已经用过了,不能重复使用。": "This link has already been used.",
228
+ "如果刚才确实是你确认的,变更已经生效,请用 Passkey 或验证器重新登录。": "If you confirmed this, the change is applied. Sign in with Passkey or your authenticator.",
229
+ "链接超过 10 分钟,已失效。": "Link expired after 10 minutes.",
230
+ "回到设置页重新发起一次即可。": "Go back to Settings and request again.",
231
+ "即将执行:": "About to:",
232
+ "解绑登录验证器。": "Remove sign-in authenticator.",
233
+ "把登录验证器换成新的一个。": "Replace the sign-in authenticator with a new one.",
234
+ "授权 10 分钟内绑定一把新的 Passkey(还要本人在设备上确认)。": "Authorize adding a new Passkey for 10 minutes (device confirmation still required).",
235
+ "删除一把 Passkey。": "Remove a Passkey.",
236
+ "申请时间": "Requested at",
237
+ "来源 IP": "Source IP",
238
+ "设备": "Device",
239
+ "确认后所有设备都需要重新登录。不是你发起的就关掉这页,什么都不会变。": "After confirmation all devices must sign in again. If you did not request this, close the page — nothing will change.",
240
+ "确认执行": "Confirm",
241
+ "文章不存在": "Post not found",
242
+ "编辑": "Edit",
243
+ "上传图片": "Upload image",
244
+ "上传中…": "Uploading…",
245
+ "清除": "Clear",
246
+ "只支持图片文件": "Only image files are supported",
247
+ "图片过大,请压缩后再传": "Image is too large. Please compress it first.",
248
+ "图片地址,留空用默认渐变图标": "Image URL, leave blank for the default gradient icon",
249
+ "界面语言": "Interface language",
250
+ "不支持的语言": "Unsupported language",
251
+ "服务器配置": "Server configuration",
252
+ "已写入 .env,刷新后生效。": "Written to .env. Takes effect after a refresh.",
253
+ "已配置": "Configured",
254
+ "必填,可以从 数据库管理后台 生成": "Required. Can be generated in the database admin console.",
255
+ "没有需要保存的内容": "Nothing to save",
256
+ "站点已经初始化,请先登录再修改配置": "The site is already set up. Sign in before changing configuration.",
257
+ "Vercel 的文件系统是只读的,配置要填到项目的环境变量里。下面这份清单就是需要填的内容。": "Vercel's filesystem is read-only, so these go in the project's environment variables. The list below is what to fill in.",
258
+ "申请中…": "Requesting…",
259
+ "数据库连接串": "Database connection string",
260
+ "会话密钥": "Session secret",
261
+ "Passkey 域名主体": "Passkey domain (RP_ID)",
262
+ "站点地址": "Site address (ORIGIN)",
263
+ "发信 API key": "Mail API key",
264
+ "发件人": "Sender",
265
+ "用来签名登录状态。改了之后所有设备都要重新登录,已绑定的验证器也要重新绑定。": "Signs the session. Changing it signs every device out and requires rebinding authenticators.",
266
+ "Resend 后台创建的密钥。没配就发不出验证器变更确认信。": "The key from the Resend dashboard. Without it, authenticator-change confirmation emails cannot be sent.",
267
+ "形如 inslog <no-reply@你的域名>,域名要先在 Resend 验证过。": "Looks like inslog <no-reply@yourdomain>; the domain must be verified in Resend first.",
268
+ "当前平台写不了 .env 文件(配置在平台的环境变量里),应用只能清掉存在数据库里的那部分;剩下的变量会列出来,需要你手动去平台控制台删。": "This platform cannot write .env files (the settings live in the platform's environment variables), so the app can only clear the part stored in the database. The remaining variables are listed for you to delete in the platform's dashboard.",
269
+ "需要把配置推倒重来时用这个:会清掉下面这些配置项的值。站点设置、文章、已绑定的 Passkey 和验证器都不动。": "Use this to wipe the configuration: the values listed below are cleared. Site settings, posts, and your bound Passkeys and authenticator are left alone.",
270
+ ".env 文件": ".env file",
271
+ "环境变量": "environment variable",
272
+ "下面这些已经清掉了:": "These have been cleared:",
273
+ "下面这些应用改不了(配置在平台的环境变量里),需要你手动删除:": "The app cannot change these (they live in the platform's environment variables). Delete them yourself:",
274
+ "请手动删除": "Delete manually",
275
+ "去平台的项目设置里删掉这些环境变量。站点设置、文章、已绑定的 Passkey 和验证器都没动。": "Delete these environment variables in your project's settings. Site settings, posts, and your bound Passkeys and authenticator were not touched.",
276
+ "去安装向导": "Go to the setup guide",
277
+ "主题": "Theme",
278
+ "站点还没配置好": "The site is not configured yet",
279
+ "数据库连不上,所以没有内容可以显示。": "The database can't be reached, so there is nothing to show.",
280
+ "第一步填数据库地址就行,填完刷新页面。": "Just fill in the database address in step 1, then refresh.",
281
+ "任何 MongoDB 都行:Atlas、自建、Railway、容器里的都行。改了会立刻重连数据库,页面可能短暂打不开。": "Any MongoDB works: Atlas, self-hosted, Railway, in a container. Changing it reconnects the database right away; the page may briefly fail to load.",
282
+ "选一个。Vercel 部署用 Vercel Blob 最省事;自建服务器可以用本地磁盘或任何 S3 兼容服务。": "Pick one. On Vercel, Vercel Blob is the least work; on your own server use local disk or any S3-compatible service.",
283
+ "Vercel Blob(Vercel 部署最省事)": "Vercel Blob (easiest on Vercel)",
284
+ "S3 兼容(R2 / MinIO / S3 / OSS…)": "S3-compatible (R2 / MinIO / S3 / OSS…)",
285
+ "S3 接入地址": "S3 endpoint",
286
+ "留空就是 AWS S3 本身。Cloudflare R2 填 https://<账号>.r2.cloudflarestorage.com,MinIO 填 http://<主机>:9000。": "Leave blank for AWS S3 itself. Cloudflare R2: https://<account>.r2.cloudflarestorage.com; MinIO: http://<host>:9000.",
287
+ "区域": "Region",
288
+ "AWS 是 us-east-1 之类;R2 填 auto;MinIO 留空即可。": "AWS uses us-east-1 and similar; R2 uses auto; MinIO can be left blank.",
289
+ "存储桶名": "Bucket",
290
+ "图片放进哪个桶。": "Which bucket the images go into.",
291
+ "访问密钥 ID": "Access key ID",
292
+ "S3 兼容服务的访问密钥。": "The access key of the S3-compatible service.",
293
+ "访问密钥": "Secret key",
294
+ "S3 兼容服务的密钥。只在服务端用,不会显示在前端。": "The secret key of the S3-compatible service. Server-side only; never shown in the browser.",
295
+ "公开访问地址": "Public URL",
296
+ "桶的公开访问前缀,例如 https://cdn.example.com。桶需要允许匿名读取。": "The public base URL of the bucket, e.g. https://cdn.example.com. The bucket must allow anonymous reads.",
297
+ "本地存放目录": "Local directory",
298
+ "相对项目根目录,默认 uploads。服务器上要可写;多实例部署需要共享这个目录。": "Relative to the project root; uploads by default. It must be writable; multi-instance deployments need it shared.",
299
+ "本地磁盘(自建服务器)": "Local disk (self-hosted)",
300
+ "发信方式": "Mail",
301
+ "选一个。没配好就不能更换或解绑验证器(那是保护你账号的最后一层)。": "Pick one. Without it you cannot replace or unbind your authenticator — the last layer protecting your account.",
302
+ "Resend(HTTP API)": "Resend (HTTP API)",
303
+ "SMTP(QQ / Gmail / 自建)": "SMTP (QQ / Gmail / self-hosted)",
304
+ "SMTP 服务器": "SMTP server",
305
+ "QQ 邮箱是 smtp.qq.com,Gmail 是 smtp.gmail.com,自建 Postfix 填自己的主机名。": "QQ Mail is smtp.qq.com, Gmail is smtp.gmail.com; for a self-hosted Postfix use its own hostname.",
306
+ "SMTP 端口": "SMTP port",
307
+ "一般是 465(隐式 TLS)或 587(STARTTLS)。": "Usually 465 (implicit TLS) or 587 (STARTTLS).",
308
+ "SMTP 账号": "SMTP user",
309
+ "登录用的账号。QQ / Gmail 一般就是邮箱地址;本地 relay 不需要登录就留空。": "The account used to log in. For QQ / Gmail it is your email address; leave blank for a local relay that needs no login.",
310
+ "SMTP 密码或授权码": "SMTP password or app password",
311
+ "QQ / Gmail 要用「授权码」而不是登录密码。只在服务端用。": "QQ / Gmail need an app password, not your login password. Server-side only.",
312
+ "形如 inslog <no-reply@你的域名>。": "Looks like inslog <no-reply@yourdomain>.",
313
+ "用隐式 TLS": "Use implicit TLS",
314
+ "填 1 表示端口 465 那种直连加密。587 一般留空。": "Set to 1 for implicit TLS on port 465. Leave blank for 587.",
315
+ "已写入": "Written",
316
+ "还没配发信服务": "No mail service configured",
317
+ "置顶": "Pin",
318
+ "置顶的文章排在列表最前面": "Pinned posts come first in the list",
319
+ "库名": "Database name",
320
+ "数据库 {name} 已创建": "Database {name} created",
321
+ "数据库 {name} 已存在,里面有 {n} 篇文章": "Database {name} already exists and holds {n} post(s)",
322
+ "密钥": "Keys",
323
+ "生成中…": "Generating…",
324
+ "生成密钥": "Generate keys",
325
+ "重新生成": "Generate again",
326
+ "已复制": "Copied",
327
+ "复制": "Copy",
328
+ "生成失败": "Could not generate",
329
+ "这个站点当前未设置 RECOVERY_TOKEN。可以用下面的「生成恢复密钥」按钮生成一把,复制后添加到服务器 .env 或 Vercel 项目 → Settings → Environment Variables,然后重新部署 / 重启,再用紧急登录。": "RECOVERY_TOKEN is not set on this site. You can generate one with the Generate recovery key button below, copy it, and add it to the server's .env or under Vercel → Project → Settings → Environment Variables, then redeploy / restart before using emergency sign-in.",
330
+ "已用紧急密钥登录。请尽快到站点设置里重新绑定 Passkey 和验证器。": "You signed in with the emergency key. Rebind your Passkey and authenticator in site settings as soon as possible.",
331
+ "继续": "Continue",
332
+ "尝试次数过多,请 {minutes} 分钟后再试": "Too many attempts. Try again in {minutes} minutes.",
333
+ "两把钥匙都丢了时的救急入口。程序生成,请立刻保存下来。": "The emergency way in when both keys are lost. The program generates it — save it right away.",
334
+ "保存到 .env": "Save to .env",
335
+ "生成 .env 文件": "Generate .env file",
336
+ "已下载 .env 文件。把它导入到 Vercel 的环境变量里(项目 → Settings → Environment Variables → 上传),然后重新部署。": "The .env file has been downloaded. Import it into the project's environment variables (Vercel → Project → Settings → Environment Variables → Upload), then redeploy.",
337
+ "已下载 .env 文件。请把它保存到服务器的项目根目录(不要提交 Git);Vercel 请导入到项目 → Settings → Environment Variables,然后重新部署。": "The .env file has been downloaded. Save it to the server's project root (do not commit it to Git); on Vercel, import it under Project → Settings → Environment Variables, then redeploy.",
338
+ "生成恢复密钥": "Generate recovery key",
339
+ "生成的密钥只显示一部分,复制出来是完整的。请把它保存到服务器 .env 的 RECOVERY_TOKEN,或导入 Vercel 环境变量,重新部署 / 重启后才生效。": "Only part of the key is shown on screen; the copied value is complete. Save it as RECOVERY_TOKEN in the server's .env or as a Vercel environment variable, then redeploy / restart for it to take effect.",
340
+ "配置尚未生效:先把生成的 .env 保存到服务器或导入平台后台,并重新部署 / 重启,之后紧急登录才可用。": "Settings are not active yet: save the generated .env on your server or import it into your platform's dashboard, then redeploy / restart before emergency sign-in works.",
341
+ "把下载的 .env 保存到服务器项目根目录,不要提交 Git。": "Save the downloaded .env to the server's project root; do not commit it to Git.",
342
+ "重启服务并刷新本页。": "Restart the service and refresh this page.",
343
+ "地址填了,但连不上。查两处:连接串里的用户名密码对不对,Atlas 的 Network Access 里有没有放行当前出口 IP(加上 0.0.0.0/0 最省事)。改完 .env 后要重新部署或重启,然后再刷新本页。": "The address is set but the connection failed. Check two things: the credentials in the connection string, and whether Atlas Network Access allows the current outbound IP (0.0.0.0/0 is easiest). After editing .env, redeploy or restart, then refresh this page.",
344
+ "服务器上没有 RECOVERY_TOKEN。刚在安装向导生成的 .env 要先导入到环境变量并重新部署才生效。": "There is no RECOVERY_TOKEN on the server. The .env generated by the setup wizard only takes effect after you import it into the environment variables and redeploy.",
345
+ "到 Vercel 项目 → Settings → Environment Variables,上传这个 .env 文件。": "Go to Vercel → Project → Settings → Environment Variables and upload the .env file.",
346
+ "服务器上还没有生效的 RECOVERY_TOKEN——先把第 1 步的 .env 导入 Vercel 并重新部署,紧急入口才会开。": "There is no effective RECOVERY_TOKEN on the server yet — import the .env from step 1 into Vercel and redeploy, and the emergency entry will open.",
347
+ "第一次安装还没有任何钥匙,用这个进门:填安装向导生成的 .env 里的 RECOVERY_TOKEN。进去之后立刻绑定 Passkey 和验证器。": "A fresh install has no keys yet — use this to get in: enter RECOVERY_TOKEN from the .env generated by the setup wizard. Bind a Passkey and an authenticator right after.",
348
+ "当前域名": "Current domain",
349
+ "(未知)": "(unknown)",
350
+ "(未配置)": "(not configured)",
351
+ "安全": "Security",
352
+ "社交链接格式不对": "Invalid social links format",
353
+ "留空表示不改": "Leave blank to keep the current value",
354
+ "Vercel 不能写文件:下载 .env 后导入环境变量,再重新部署。": "Vercel is read-only: download .env, import it as environment variables, then redeploy.",
355
+ "写入项目根目录的 .env,不进 Git。": "Written to .env in the project root; not committed to Git.",
356
+ "后面几步需要登录。首次请用 .env 里的 RECOVERY_TOKEN 从紧急入口进入。": "Later steps need sign-in. First time, use RECOVERY_TOKEN from .env via emergency sign-in.",
357
+ "这一步需要先登录。": "Sign in first to continue.",
358
+ "用 .env 里的 RECOVERY_TOKEN 从紧急入口进入。": "Use RECOVERY_TOKEN from .env via emergency sign-in.",
359
+ "配置尚未生效:Vercel 需导入 .env 并重新部署,之后紧急登录才可用。": "Not active yet: on Vercel, import .env and redeploy before emergency sign-in works.",
360
+ "填好各项,下载生成的 .env。": "Fill in the fields, then download the generated .env.",
361
+ "重新部署并等待完成,然后刷新本页。": "Redeploy and wait for it to finish, then refresh this page.",
362
+ "按当前域名,应填:{host}": "For the current domain, use: {host}",
363
+ "改成当前站点的域名,不带协议。": "Use this site's domain, without the scheme.",
364
+ "ORIGIN 与当前域名不符,确认邮件链接会指向别处。应填 https://{host}": "ORIGIN does not match this domain, so confirmation links point elsewhere. Use https://{host}",
365
+ "填写站点信息;密钥只在服务端配置。": "Site details only; secrets are configured on the server.",
366
+ "主登录方式,绑好后 Touch ID / 指纹一按即可。": "Primary sign-in: once bound, just use Touch ID / fingerprint.",
367
+ "备用登录方式,用手机上的 6 位码登录。": "Backup sign-in with a 6-digit code from your phone.",
368
+ "两把钥匙齐了,以后可在设置里随时改。": "Both keys are ready; change them anytime in settings.",
369
+ "验证器还没绑,建议回到第 4 步。": "Authenticator not bound — go back to step 4.",
370
+ "程序生成,请存进密码管理器。": "Generated automatically; save it in a password manager.",
371
+ "已完成初始化,这里供复查。": "Setup already done; this is just for review.",
372
+ "增删 Passkey 需邮件确认。请先配置服务端发信,并在站点设置里填好通知邮箱。": "Adding/removing Passkeys needs email confirmation. Configure server mail and set a notification email in site settings.",
373
+ "换绑 / 解绑需邮件确认。请先配置服务端发信,并在站点设置里填好通知邮箱。": "Changing/removing the authenticator needs email confirmation. Configure server mail and set a notification email in site settings.",
374
+ "。": ".",
375
+ "数据库连接": "Database connection",
376
+ "域名": "Domain",
377
+ "复制后自己去服务器配置,页面不会保存它。": "Copy it and configure it on the server yourself; this page does not store it.",
378
+ "复制失败,请手动选中复制": "Copy failed. Select the text and copy it manually.",
379
+ "生成失败,请重试": "Generation failed. Try again.",
380
+ "尝试次数过多,请 {n} 分钟后再试": "Too many attempts. Try again in {n} minutes.",
381
+ "把它填进服务端:Vercel 在 Settings → Environment Variables 加一条": "Put it on the server: in Vercel, add a variable under Settings → Environment Variables",
382
+ ";自部署写入项目根目录的": "; for self-hosting, write it to",
383
+ "。然后重新部署或重启。": "in the project root. Then redeploy or restart.",
384
+ "生效后打开": "Once active, open",
385
+ ",粘贴密钥进去。": ", then paste the key.",
386
+ "站点设置存哪": "Where site settings are stored",
387
+ "MongoDB(跟着数据库一起备份)": "MongoDB (backed up with the database)",
388
+ "配置文件(config/settings.json)": "Config file (config/settings.json)",
389
+ "mongodb 或 file。file 是服务器上的 config/settings.json,只在文件系统可写时可用。": "mongodb or file. file means config/settings.json on the server; only available when the filesystem is writable.",
390
+ "当前平台写不了文件,只能存 MongoDB。": "This platform cannot write files; MongoDB only.",
391
+ "站点设置存在服务器上的 config/settings.json。": "Site settings are stored in config/settings.json on the server.",
392
+ "站点设置存在数据库里。": "Site settings are stored in the database.",
393
+ ",并在站点设置里填好通知邮箱。否则更换 / 解绑验证器会被禁用。": ", and set a notification email in site settings. Otherwise replacing / unbinding the authenticator is disabled.",
394
+ "当前已绑 {n} 把。": "{n} bound so far.",
395
+ "“{q}” 的结果": "Results for “{q}”",
396
+ "标签:{tag}": "Tag: {tag}",
397
+ "已绑定 {n} 把": "{n} bound",
398
+ "已绑定,现在共 {n} 把。": "Bound. Now {n} in total.",
399
+ " · 最近使用 {date}": " · last used {date}",
400
+ "编辑器加载中…": "Loading editor…",
401
+ "Vercel Blob 的读写令牌。在 Storage 里连上 Blob store 时勾上「Add a read-write token env var」,Vercel 会自动注入,不用手填。浏览器直传图片需要它。": "Vercel Blob read-write token. When connecting a Blob store in Storage, enable \"Add a read-write token env var\" — Vercel injects it, no manual copying. Browser-direct uploads need it.",
402
+ "数据库连上了但读不到登录凭据:可能是数据库用户的权限不够。为了安全起见,这时不能免登录修改配置——先修好数据库权限再回来。": "The database is reachable but login credentials cannot be read — the database user may lack permissions. For safety, config cannot be changed without signing in; fix the database permissions first.",
403
+ "配置文件读取失败,当前显示的是默认值。": "Failed to read the config file; defaults are shown.",
404
+ "网站图标": "Site icon",
405
+ "第 {n} 条社交链接的标题": "Title of social link {n}",
406
+ "第 {n} 条社交链接的地址": "URL of social link {n}",
407
+ "附件太大,单个不能超过 50MB": "Attachment too large — 50 MB max per file",
408
+ "登录后才能上传文件": "Sign in before uploading files",
409
+ "文件超过 50MB,请换一个再传": "File is over 50 MB — please choose a smaller one",
410
+ "文件上传失败,请重试": "File upload failed. Please try again.",
411
+ "验证码不对。手机上的那条必须对应本页显示的密钥,重新扫一次二维码。": "Code doesn't match. The entry on your phone must correspond to the key shown here — scan the QR code again.",
412
+ "还没配好邮件确认,暂时不能绑定验证器": "Email confirmation isn't set up yet, so the authenticator can't be bound.",
413
+ "绑定验证器需要邮件确认。请先配置服务端发信,并在站点设置里填好通知邮箱。": "Binding an authenticator requires email confirmation. Set up sending on the server and fill in the notification email in site settings.",
414
+ "手机上要留的必须是这一条。重新生成密钥后,旧的条目就作废了,验证码要对上这一串。": "Keep exactly this entry on your phone. Regenerating the key invalidates the old one — the code must match this string.",
415
+ "确认邮箱": "Confirm your email",
416
+ "已确认": "Confirmed",
417
+ "填一个你常用的邮箱。我们会发一封确认信过去,点里面的链接就继续安装。": "Enter an email you use. We'll send a confirmation link — click it to continue the setup.",
418
+ "这个邮箱会用来接收验证器变更、恢复入口之类的确认信,装完也能在设置里改。": "This address receives confirmation emails for authenticator changes and recovery links. You can change it later in settings.",
419
+ "你常用的邮箱": "you@example.com",
420
+ "发送确认邮件": "Send confirmation email",
421
+ "发送中…": "Sending…",
422
+ "确认信已发出:去邮箱点一下里面的链接,接着往下装。链接 10 分钟内有效。": "Confirmation sent — click the link in your inbox to continue. The link is valid for 10 minutes.",
423
+ "站点名、简介这些装完再填也不迟,装完到设置页里改。": "Site name and description can wait — fill them in later from settings.",
424
+ "确认后这个邮箱会存进站点设置,用来接收验证器变更等确认信。": "This address will be saved to the site settings and used for confirmation emails.",
425
+ "邮箱格式不对": "That doesn't look like an email address",
426
+ "先填个邮箱": "Enter an email address first",
427
+ "发送失败": "Couldn't send",
428
+ "验证码是 6 位数字,现在只输入了 {n} 位。": "The code is 6 digits — you've entered {n} so far.",
429
+ "请求超时了,服务器没在 20 秒内回应。稍后再试一次。": "The request timed out — the server didn't answer within 20 seconds. Try again.",
430
+ "安装邮箱": "the setup email address",
431
+ "数据库 {name} 已创建,连得上。": "Database {name} created and reachable.",
432
+ "数据库 {name} 连得上,里面有 {n} 篇文章。": "Database {name} is reachable. It has {n} post(s).",
433
+ "数据库还没连上,先回上一步把 MONGODB_URI 配好。": "The database isn't reachable yet. Go back and set MONGODB_URI.",
434
+ "已跳过 Passkey。之后只能用 .env 里的 RECOVERY_TOKEN 登录,随时可以回来补。": "Passkey skipped. Until you add one, you can only sign in with RECOVERY_TOKEN from .env.",
435
+ "已跳过验证器。之后只能用 .env 里的 RECOVERY_TOKEN 登录,随时可以回来补。": "Authenticator skipped. Until you add one, you can only sign in with RECOVERY_TOKEN from .env.",
436
+ "两把钥匙没配齐:以后只能用 .env 里的 RECOVERY_TOKEN 登录,建议去设置里补上。": "Both keys aren't set up. You'll only be able to sign in with RECOVERY_TOKEN from .env — add them in settings.",
437
+ "接下来去设置页填站点信息(站名、简介、SEO),随时可以改。": "Next, fill in the site details (name, description, SEO) in settings. You can change them any time.",
438
+ "跳过,之后再说": "Skip for now",
439
+ "留空则显示 © 2026。填了就整段替换它。": "Leave empty for © 2026. Anything you type replaces it entirely.",
440
+ "地址填了,但连不上。查两处:连接串里的用户名密码对不对,Atlas 的 Network Access 里有没有放行当前出口 IP(加上 0.0.0.0/0 最省事)。改完刷新本页就行,不用重新部署。": "The address is set but the connection fails. Check two things: the username and password in the connection string, and whether Atlas's Network Access allows your current IP (adding 0.0.0.0/0 is easiest). Refresh this page afterwards — no redeploy needed.",
441
+ "还有必填配置没生效:{items}。填好后请先保存,再往下走。": "Required settings are not active yet: {items}. Save them first, then continue.",
442
+ "检查配置失败": "Failed to check configuration",
443
+ "邮件与文件存储": "Mail and file storage",
444
+ "文件存储令牌": "File storage token",
445
+ "文件存储方式": "File storage",
446
+ "文件存储": "File storage",
447
+ "进去后立刻重新绑定 Passkey 和验证器。": "Rebind your Passkey and authenticator right after signing in.",
448
+ "建议配置一把紧急密钥": "Consider adding a recovery key",
449
+ ":两把钥匙都丢时用它进门。": ": use it to get in if you lose both keys.",
450
+ "两把钥匙都不在手上的时候用这个:填环境变量 RECOVERY_TOKEN 的值。进来之后立刻重新绑定 Passkey 和验证器。": "Use this when neither key is available: enter the RECOVERY_TOKEN environment value. Rebind your Passkey and authenticator right after signing in.",
451
+ "这一步可以先跳过:Vercel 上在项目后台 Storage 里连一个 Blob store,令牌会自动注入,重新部署即可。": "You can skip this for now: on Vercel, connect a Blob store under Storage in the project dashboard — the token is injected automatically. Then redeploy.",
452
+ "非 Vercel 环境建议现在就配好:以后再补要改服务器上的 .env 并重启,比较麻烦。文章的图片和附件都要用它。": "Outside Vercel, it's best to set this up now: adding it later means editing .env on the server and restarting. Article images and attachments both rely on it.",
453
+ "检查配置,完成安装": "Check configuration and finish setup",
454
+ "检查中…": "Checking…",
455
+ "配置服务器的运行环境变量。": "Configure the server's runtime environment variables.",
456
+ "安装完成。请用 .env 里的 RECOVERY_TOKEN 登录,然后到站点设置里配置通知邮箱和身份验证(Passkey、验证器)。": "Setup is complete. Sign in with RECOVERY_TOKEN from .env, then go to site settings to set up your notification email and sign-in methods (Passkey, authenticator).",
457
+ "进不去就用紧急密钥:": "If you can't sign in, use the recovery key: ",
458
+ "从这里登录": "Sign in here",
459
+ "两把钥匙都丢了?用紧急密钥从": "Lost both keys? Sign in with the recovery key ",
460
+ "这里登录": "here",
461
+ "这是最后一把 Passkey,删掉后如果没有绑定手机验证器,就只能用 RECOVERY_TOKEN 从紧急入口登录。确定继续?需要邮件确认后才会生效。": "This is your last Passkey. If no authenticator is bound, you'll only be able to sign in with RECOVERY_TOKEN via the emergency entry after deleting it. Continue? Deletion takes effect after email confirmation.",
462
+ "文章地址": "Post address",
463
+ "留空自动生成": "Leave blank to generate automatically",
464
+ "只能用小写字母、数字和连字符,中文会自动转拼音": "Lowercase letters, digits and hyphens only; Chinese is converted to pinyin",
465
+ "这个地址已被占用,换一个吧": "This address is already taken, please choose another",
466
+ "这个验证器已经在这台设备上注册过了。换一个设备,或先在浏览器里移除本站已保存的 Passkey 再试。": "This authenticator is already registered on this device. Try a different device, or first remove this site's saved passkey in your browser.",
467
+ "刷新后的页面点「检查配置,完成安装」,通过后会跳到登录页。": "On the refreshed page, click Check configuration and finish setup. Once it passes you will be taken to the sign-in page.",
468
+ "RP_ID 和当前域名对不上,浏览器会拒绝绑定 Passkey。RP_ID 要填当前域名本身,或者它的上级可注册域,不能带 https://、端口或路径。": "RP_ID does not match the current domain, so the browser will refuse to bind a Passkey. Enter the domain itself or its registrable parent domain, without https://, a port or a path.",
469
+ "RECOVERY_TOKEN 是临时救急钥匙,绑定好 Passkey 和验证器后可自行删除,不删也不报错。": "RECOVERY_TOKEN is a temporary rescue key. Once your Passkey and authenticator are bound, you can delete it yourself; leaving it does not cause an error.",
470
+ "配置未生效:{items}。请保存 .env 并重启 / 重新部署。": "Settings not active yet: {items}. Save the .env file, then restart or redeploy.",
471
+ "检查通过,正在跳转到登录页…": "Check passed. Redirecting to sign-in…",
472
+ "RECOVERY_TOKEN 是临时救急钥匙。绑定好 Passkey 和验证器后可以自行删除:从服务器 .env 里删掉 RECOVERY_TOKEN 这一行;Vercel 在项目 → Settings → Environment Variables 删除同名变量并重新部署。不删除也不会报错。": "RECOVERY_TOKEN is a temporary rescue key. Once your Passkey and authenticator are bound, you can delete it yourself: remove the RECOVERY_TOKEN line from the server's .env; on Vercel, delete the variable under Project → Settings → Environment Variables and redeploy. Leaving it in place does not cause an error.",
473
+ "必须指定数据库,集群中没有时会自动创建": "Database name is required. It will be created automatically if it does not exist in the cluster.",
474
+ "域名,请不要带 http:// 或 https://": "Domain name, without http:// or https://",
475
+ "站点的完整地址,例如 https://inslog.example.com。": "The full site address, e.g. https://inslog.example.com."
476
+ }
@@ -0,0 +1 @@
1
+ {}
package/next-env.d.ts ADDED
@@ -0,0 +1,7 @@
1
+ /// <reference types="next" />
2
+ /// <reference types="next/image-types/global" />
3
+ import "./.next/types/routes.d.ts";
4
+ import "./.next/types/root-params.d.ts";
5
+
6
+ // NOTE: This file should not be edited
7
+ // see https://nextjs.org/docs/app/api-reference/config/typescript for more information.