feat(database): add account-scoped database manager

This commit is contained in:
Codex committed 2026-09-28 18:55:30 +08:00
1 parent 1606c41f43
commit 33e80a566e
18 files changed
+444 -25

No files matched your search

+50 -1
View File
@@ -9,7 +9,56 @@
"calendar": "CALENDAR",
"system": "SYSTEM",
"browser": "BROWSER",
"terminal": "TERMINAL"
"terminal": "TERMINAL",
"database": "DATABASE"
},
"db": {
"title": "Database Manager",
"loginBody": "Inspect and edit the records stored for your current account.",
"server": "Server",
"username": "Username",
"password": "Password",
"warningTitle": "Direct database access",
"warningBody": "Changes here write to the cloud database immediately. Invalid JSON or deleted records can affect your Life OS data. Export a backup before making major changes.",
"acknowledge": "I understand I am directly editing my database records.",
"login": "Enter database",
"connected": "Connected to your account's records.",
"sessionExpired": "The database session expired. Sign in again.",
"requestFailed": "Database request failed.",
"ownData": "CURRENT ACCOUNT ONLY",
"directMode": "Direct record editor · changes are saved to D1",
"logout": "Log out",
"tables": "Tables",
"memories": "Memories",
"goals": "Goals",
"tasks": "Tasks",
"museum": "Favorites",
"profile": "Profile",
"settings": "Settings",
"system": "System",
"refresh": "Refresh",
"newRecord": "New record",
"newRevision": "new",
"count": "{count} records",
"empty": "No records in this table.",
"selectRow": "Select a row to inspect its JSON.",
"recordId": "Record ID",
"json": "Record JSON",
"editorHint": "Keep the ID in the JSON identical to the record ID. A conflict means this row changed since you opened it.",
"create": "Create",
"save": "Save",
"delete": "Delete",
"cancel": "Cancel",
"previous": "Previous",
"next": "Next",
"invalidJson": "The JSON is invalid.",
"idMismatch": "The JSON object and record ID do not match.",
"saveConfirm": "Write record {id} directly to the database?",
"deleteConfirm": "Delete record {id} from the database? This cannot be undone here.",
"saved": "Record saved.",
"deleted": "Record deleted.",
"reloadHint": "The desktop keeps a local cache. Reload after database changes to refresh other apps.",
"reloadDesktop": "Reload desktop"
},
"common": {
"save": "SAVE",
+50 -1
View File
@@ -9,7 +9,56 @@
"calendar": "日历",
"system": "系统",
"browser": "浏览器",
"terminal": "终端"
"terminal": "终端",
"database": "数据库"
},
"db": {
"title": "数据库管理器",
"loginBody": "查看和编辑当前账号保存在云端的记录。",
"server": "服务器",
"username": "用户名",
"password": "密码",
"warningTitle": "正在直接接触数据库",
"warningBody": "此处的修改会立即写入云端数据库。无效 JSON 或误删记录可能影响 Life OS 数据。大幅修改前请先导出备份。",
"acknowledge": "我了解自己正在直接修改数据库记录。",
"login": "进入数据库",
"connected": "已连接当前账号的记录。",
"sessionExpired": "数据库会话已过期,请重新登录。",
"requestFailed": "数据库请求失败。",
"ownData": "仅当前账号",
"directMode": "直接编辑记录 · 修改写入 D1",
"logout": "退出登录",
"tables": "数据表",
"memories": "记忆",
"goals": "目标",
"tasks": "待办",
"museum": "收藏",
"profile": "档案",
"settings": "设置",
"system": "系统",
"refresh": "刷新",
"newRecord": "新增记录",
"newRevision": "新建",
"count": "{count} 条记录",
"empty": "此表没有记录。",
"selectRow": "选择一条记录查看 JSON。",
"recordId": "记录 ID",
"json": "记录 JSON",
"editorHint": "JSON 中的 ID 必须与记录 ID 一致。冲突表示打开后这条记录又被修改。",
"create": "创建",
"save": "保存",
"delete": "删除",
"cancel": "取消",
"previous": "上一页",
"next": "下一页",
"invalidJson": "JSON 格式无效。",
"idMismatch": "JSON 对象与记录 ID 不匹配。",
"saveConfirm": "直接将记录 {id} 写入数据库吗?",
"deleteConfirm": "从数据库删除记录 {id}?此处无法撤销。",
"saved": "记录已保存。",
"deleted": "记录已删除。",
"reloadHint": "桌面保留本地缓存。修改数据库后,请刷新页面以更新其他 App。",
"reloadDesktop": "刷新桌面"
},
"common": {
"save": "保存",