From f76833dcf14fc50c8a2ce731e8bb1c9bdaf06d5e Mon Sep 17 00:00:00 2001 From: Kang Date: Sun, 31 May 2026 11:03:26 +0800 Subject: [PATCH] fix(docs): update backup file extension from `.dgfy` to `.nya` across documentation and codebase --- README.md | 4 ++-- README.zh-CN.md | 4 ++-- docs-site/docs/development/backend.md | 2 +- docs-site/docs/faq.md | 2 +- docs-site/docs/getting-started/installation.md | 8 ++++---- docs-site/docs/getting-started/quick-start.md | 8 ++++---- docs-site/docs/guide/security.md | 12 ++++++------ docs-site/docs/intro.md | 2 +- docs-site/i18n/en/code.json | 4 ++-- docs-site/src/pages/index.tsx | 2 +- src/components/dialog/connections/ImportDialog.tsx | 4 ++-- src/hooks/useConfigTransfer.tsx | 4 ++-- 12 files changed, 28 insertions(+), 28 deletions(-) diff --git a/README.md b/README.md index 475a32d2..a6383a66 100644 --- a/README.md +++ b/README.md @@ -79,7 +79,7 @@ NyaTerm is built for people who move between servers, local commands, devices, a - **Workspace-first** — keep related terminals together with tabs, split panes, side panels, and child windows - **Remote operations in context** — browse SFTP files, follow terminal paths, run transfers, and edit remote files without leaving the session - **Security-aware workflows** — manage credentials, keys, known hosts, OTP, lock screen, and master-password protected storage -- **Portable configuration** — import from existing tools, export encrypted `.dgfy` backups, and sync encrypted snapshots through WebDAV or S3-compatible storage +- **Portable configuration** — import from existing tools, export encrypted `.nya` backups, and sync encrypted snapshots through WebDAV or S3-compatible storage - **AI where it is useful** — generate commands, inspect output, and run approved multi-step actions from the active terminal context --- @@ -134,7 +134,7 @@ NyaTerm is built for people who move between servers, local commands, devices, a - Startup sync checks, debounced auto-push after supported local changes, and scheduled backup retention - Manual test / push / pull / backup actions, remote backup restore, and snapshot-level conflict resolution - Session import from Xshell, MobaXterm, and WindTerm -- Full-app encrypted `.dgfy` import/export for portable NyaTerm configuration +- Full-app encrypted `.nya` import/export for portable NyaTerm configuration --- diff --git a/README.zh-CN.md b/README.zh-CN.md index 9433e3e3..417c6d65 100644 --- a/README.zh-CN.md +++ b/README.zh-CN.md @@ -80,7 +80,7 @@ NyaTerm 适合每天在服务器、本地命令、设备调试和配置文件之 - **工作区优先**:用标签页、分屏、侧边面板和子窗口组织相关任务 - **远程操作不脱离上下文**:在会话旁浏览 SFTP 文件、跟随终端路径、管理传输、编辑远程文件 - **面向安全的工作流**:管理凭据、私钥、known hosts、OTP、锁屏和主密码保护的本地存储 -- **可迁移配置**:从已有工具导入会话,导出加密 `.dgfy` 备份,并通过 WebDAV 或 S3 兼容存储同步加密快照 +- **可迁移配置**:从已有工具导入会话,导出加密 `.nya` 备份,并通过 WebDAV 或 S3 兼容存储同步加密快照 - **恰到好处的 AI**:从当前终端上下文生成命令、检查输出,并在审批后执行多步操作 --- @@ -135,7 +135,7 @@ NyaTerm 适合每天在服务器、本地命令、设备调试和配置文件之 - 支持启动同步检查、本地变更后的防抖自动推送和定时备份保留策略 - 支持手动测试、推送、拉取、备份、远程备份恢复和快照级冲突处理 - 支持从 Xshell、MobaXterm 和 WindTerm 导入会话 -- 支持完整 NyaTerm 配置的加密 `.dgfy` 导入导出 +- 支持完整 NyaTerm 配置的加密 `.nya` 导入导出 --- diff --git a/docs-site/docs/development/backend.md b/docs-site/docs/development/backend.md index 3629be95..c9d364af 100644 --- a/docs-site/docs/development/backend.md +++ b/docs-site/docs/development/backend.md @@ -190,7 +190,7 @@ src-tauri/src/cmd/ 除了运行时会话能力,后端还负责几类数据管理命令: - `cmd::importer` — 导入 Xshell / MobaXterm / WindTerm 会话 -- `cmd::backup` — 导出 / 导入 NyaTerm 的加密 `.dgfy` 配置备份 +- `cmd::backup` — 导出 / 导入 NyaTerm 的加密 `.nya` 配置备份 - `cmd::log` — 收集前端日志并导出诊断包 - `cmd::app` — 应用级退出等控制命令 diff --git a/docs-site/docs/faq.md b/docs-site/docs/faq.md index 1dbd0852..5401729c 100644 --- a/docs-site/docs/faq.md +++ b/docs-site/docs/faq.md @@ -125,7 +125,7 @@ sidebar_position: 100 - 锁屏后的解锁 - 同步与备份相关操作 -- `.dgfy` 配置导入 / 导出 +- `.nya` 配置导入 / 导出 在手动处理前,建议先备份 `~/.nyaterm/` 目录,再决定如何重建本地配置。 diff --git a/docs-site/docs/getting-started/installation.md b/docs-site/docs/getting-started/installation.md index 7a20f815..f41826a9 100644 --- a/docs-site/docs/getting-started/installation.md +++ b/docs-site/docs/getting-started/installation.md @@ -68,14 +68,14 @@ Windows 便携版解压后运行 `NyaTerm.exe` 即可。便携版不会使用自 - **Xshell**(`.xts`) - **MobaXterm**(`.mxtsessions`) - **WindTerm**(`.sessions`) -- **NyaTerm** 的 `.dgfy` 加密配置备份 +- **NyaTerm** 的 `.nya` 加密配置备份 -如果你的目标是完整恢复 NyaTerm 配置,优先使用 `.dgfy`;它会恢复的不只是连接,还包括更多本地配置数据。 +如果你的目标是完整恢复 NyaTerm 配置,优先使用 `.nya`;它会恢复的不只是连接,还包括更多本地配置数据。 需要注意: -- `.dgfy` 导入 / 导出需要先设置主密码 -- 导入 `.dgfy` 后通常需要重启应用 +- `.nya` 导入 / 导出需要先设置主密码 +- 导入 `.nya` 后通常需要重启应用 - 普通会话导入更适合迁移连接列表,不会替代完整配置恢复 ## 第一次体验建议 diff --git a/docs-site/docs/getting-started/quick-start.md b/docs-site/docs/getting-started/quick-start.md index d36ca04e..2028da23 100644 --- a/docs-site/docs/getting-started/quick-start.md +++ b/docs-site/docs/getting-started/quick-start.md @@ -44,15 +44,15 @@ NyaTerm 支持从以下来源导入: - **Xshell**(`.xts`) - **MobaXterm**(`.mxtsessions`) - **WindTerm**(`.sessions`) -- **NyaTerm** 自己的加密备份文件(`.dgfy`) +- **NyaTerm** 自己的加密备份文件(`.nya`) 其中: - 会话导入适合迁移连接清单 -- `.dgfy` 导入适合恢复完整本地配置 -- `.dgfy` 导入 / 导出需要先设置 **主密码** +- `.nya` 导入适合恢复完整本地配置 +- `.nya` 导入 / 导出需要先设置 **主密码** -如果你只是想迁移 SSH 主机,通常从 **已保存连接** 面板的导入入口开始更快;如果你要恢复完整 NyaTerm 环境,再使用 `.dgfy` 更合适。 +如果你只是想迁移 SSH 主机,通常从 **已保存连接** 面板的导入入口开始更快;如果你要恢复完整 NyaTerm 环境,再使用 `.nya` 更合适。 ## 第四步:启动并理解工作区 diff --git a/docs-site/docs/guide/security.md b/docs-site/docs/guide/security.md index db477fc6..3acee147 100644 --- a/docs-site/docs/guide/security.md +++ b/docs-site/docs/guide/security.md @@ -105,7 +105,7 @@ OTP 管理支持: - 本地敏感配置的保护会围绕它展开 - 锁屏界面会要求输入这个密码才能解锁 - **同步与备份** 相关操作才允许被启用 -- NyaTerm 的加密 `.dgfy` 配置导入 / 导出也会以它作为前提条件 +- NyaTerm 的加密 `.nya` 配置导入 / 导出也会以它作为前提条件 如果你没有设置主密码,后续锁屏就只是一层界面遮罩,而不是严格意义上的密码保护。 @@ -118,8 +118,8 @@ OTP 管理支持: - 没有主密码时,不能启用同步与备份相关操作 - 云端 provider 凭据会作为受保护的本地敏感数据处理 - 上传到云端的是**加密后的可移植快照**,而不是明文配置文件 -- `.dgfy` 导入 / 导出同样依赖主密码 -- 导入 `.dgfy` 后通常需要重启应用 +- `.nya` 导入 / 导出同样依赖主密码 +- 导入 `.nya` 后通常需要重启应用 - 远程恢复会覆盖快照中包含的可移植本地数据,但不会把所有设备本地 UI 状态都无差别漫游到另一台设备上 这意味着它更适合被理解为: @@ -180,12 +180,12 @@ NyaTerm 当前把主要用户数据保存在 `~/.nyaterm/nyaterm.redb` 中,而 除了连接与凭据管理,NyaTerm 还提供两类常见的数据操作: -- **导出配置**:把全部配置压缩并加密为 `.dgfy` +- **导出配置**:把全部配置压缩并加密为 `.nya` - **导出诊断包**:用于打包近期日志、运行时摘要等排障信息 需要注意: -- `.dgfy` 导入 / 导出依赖主密码 +- `.nya` 导入 / 导出依赖主密码 - 导出诊断包主要服务于排查 Bug、收集问题上下文和请求支持 - 诊断日志相关设置、打开日志目录、导出诊断包入口位于 **设置 → 常规** @@ -195,4 +195,4 @@ NyaTerm 当前把主要用户数据保存在 `~/.nyaterm/nyaterm.redb` 中,而 - 对共享电脑或演示机,开启 **主密码** 与 **屏幕锁定** - 对需要经常穿过堡垒机的环境,把 **跳板机** 和 **代理** 做成明确的已保存配置 - 对首次连接的新主机,核对主机密钥来源后再信任 -- 对 AI provider 凭据、同步 provider 凭据和 `.dgfy` 备份文件,按和 SSH 凭据相同的敏感级别管理 +- 对 AI provider 凭据、同步 provider 凭据和 `.nya` 备份文件,按和 SSH 凭据相同的敏感级别管理 diff --git a/docs-site/docs/intro.md b/docs-site/docs/intro.md index 676f80ad..2b51f6b9 100644 --- a/docs-site/docs/intro.md +++ b/docs-site/docs/intro.md @@ -79,7 +79,7 @@ NyaTerm 不只支持 SSH,还支持: - 代理配置、跳板机、本地 / 远程 / 动态隧道 - 锁屏与主密码能力 - 支持导入 **Xshell / MobaXterm / WindTerm** 会话 -- 支持导入 / 导出 NyaTerm 自身的加密 `.dgfy` 配置备份 +- 支持导入 / 导出 NyaTerm 自身的加密 `.nya` 配置备份 - 可打开日志目录并导出诊断包,便于问题排查与支持协作 ### 云同步与加密备份 diff --git a/docs-site/i18n/en/code.json b/docs-site/i18n/en/code.json index 56b4a7ed..56d2ebe1 100644 --- a/docs-site/i18n/en/code.json +++ b/docs-site/i18n/en/code.json @@ -260,8 +260,8 @@ "使用主密码保护同步和备份数据": { "message": "Protect sync and backup data with a master password" }, - "支持 `.dgfy` 导入导出,并处理远端与本地版本冲突": { - "message": "Supports `.dgfy` import/export and handles version conflicts between remote and local data" + "支持 `.nya` 导入导出,并处理远端与本地版本冲突": { + "message": "Supports `.nya` import/export and handles version conflicts between remote and local data" }, "加载预览中": { "message": "Loading preview" diff --git a/docs-site/src/pages/index.tsx b/docs-site/src/pages/index.tsx index 699807bb..57f795c9 100644 --- a/docs-site/src/pages/index.tsx +++ b/docs-site/src/pages/index.tsx @@ -810,7 +810,7 @@ export default function Home(): React.ReactElement { bullets: [ translate({message: '支持 WebDAV 和 S3 兼容存储'}), translate({message: '使用主密码保护同步和备份数据'}), - translate({message: '支持 `.dgfy` 导入导出,并处理远端与本地版本冲突'}), + translate({message: '支持 `.nya` 导入导出,并处理远端与本地版本冲突'}), ], lightImage: '/img/home/sync-light.png', darkImage: '/img/home/sync-dark.png', diff --git a/src/components/dialog/connections/ImportDialog.tsx b/src/components/dialog/connections/ImportDialog.tsx index 9ede24eb..3aaa4f8e 100644 --- a/src/components/dialog/connections/ImportDialog.tsx +++ b/src/components/dialog/connections/ImportDialog.tsx @@ -32,8 +32,8 @@ const IMPORT_SOURCES: ImportSource[] = [ id: "nyaterm", name: "NyaTerm", icon: "/nyaterm.svg", - extensions: ["dgfy"], - hint: ".dgfy", + extensions: ["nya"], + hint: ".nya", type: "backup", }, { diff --git a/src/hooks/useConfigTransfer.tsx b/src/hooks/useConfigTransfer.tsx index dac8a627..8365ce77 100644 --- a/src/hooks/useConfigTransfer.tsx +++ b/src/hooks/useConfigTransfer.tsx @@ -34,7 +34,7 @@ export function useConfigTransfer() { if (!ensureMasterPassword()) return; const path = await saveFileDialog({ - filters: [{ name: "NyaTerm Backup", extensions: ["dgfy"] }], + filters: [{ name: "NyaTerm Backup", extensions: ["nya"] }], }); if (!path) return; @@ -58,7 +58,7 @@ export function useConfigTransfer() { const path = await openFileDialog({ multiple: false, - filters: [{ name: "NyaTerm Backup", extensions: ["dgfy"] }], + filters: [{ name: "NyaTerm Backup", extensions: ["nya"] }], }); if (!path) return;