mirror of
https://github.com/binaricat/Netcatty.git
synced 2026-11-25 01:40:45 +00:00
Compare commits
81
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
20b0ad946b | ||
|
|
462c2adb2a | ||
|
|
610da46a6f | ||
|
|
30e9609b1b | ||
|
|
6527d5596f | ||
|
|
a791d0b8c4 | ||
|
|
bcce829294 | ||
|
|
6cdf6b836b | ||
|
|
182531d7a7 | ||
|
|
abd074fe95 | ||
|
|
fedab5ec3b | ||
|
|
ad612aeb0c | ||
|
|
2ddb6f2bee | ||
|
|
2ca3ae0e28 | ||
|
|
d4a39ad2c6 | ||
|
|
41c193c594 | ||
|
|
27a55f8b40 | ||
|
|
f56249879c | ||
|
|
574c683d72 | ||
|
|
06a42f623e | ||
|
|
1f95fc01a0 | ||
|
|
2da20e6b2a | ||
|
|
9afe0e29af | ||
|
|
065dccca1d | ||
|
|
10b91f607e | ||
|
|
b24b458faf | ||
|
|
d979d8e272 | ||
|
|
bbdb946989 | ||
|
|
76041cc5e8 | ||
|
|
abd2557356 | ||
|
|
ad3d0cfeda | ||
|
|
f2c71874cf | ||
|
|
13eb477ba5 | ||
|
|
00e63be4f1 | ||
|
|
3a19f750a1 | ||
|
|
9d4e90b3aa | ||
|
|
a23868ee88 | ||
|
|
6829f9b082 | ||
|
|
519c463048 | ||
|
|
14767f6a48 | ||
|
|
e185306e50 | ||
|
|
b864bf55b6 | ||
|
|
9c49a07e16 | ||
|
|
c5a855d885 | ||
|
|
a2e04556b7 | ||
|
|
0fbf1cdc14 | ||
|
|
7bbff7ce6e | ||
|
|
57227dfe1b | ||
|
|
470628b1a3 | ||
|
|
ef99e0daf7 | ||
|
|
18a9000278 | ||
|
|
8e862798e4 | ||
|
|
5b9d5351d7 | ||
|
|
112bab7292 | ||
|
|
ed9da31034 | ||
|
|
3d302e2456 | ||
|
|
f987341bf2 | ||
|
|
5e4195bf7f | ||
|
|
9c292460e3 | ||
|
|
5e1bdd85d8 | ||
|
|
450d1df2e7 | ||
|
|
3ed22954db | ||
|
|
3260bf4206 | ||
|
|
8b3832feef | ||
|
|
83d0d5f949 | ||
|
|
0a4ff8875f | ||
|
|
8433302959 | ||
|
|
51cb14955c | ||
|
|
1d5cef09ec | ||
|
|
17d53152ec | ||
|
|
cf7f998689 | ||
|
|
db3a9e88e2 | ||
|
|
65435c06f5 | ||
|
|
3096f86889 | ||
|
|
94f8bd9bc7 | ||
|
|
5cd42cb518 | ||
|
|
f05ea0c9b7 | ||
|
|
9ccb62ea07 | ||
|
|
d0fffac598 | ||
|
|
106e39a797 | ||
|
|
3bf4c9df1a |
No files matched your search
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"install": "if command -v apt-get >/dev/null 2>&1 && { ! command -v fish >/dev/null 2>&1 || ! command -v xvfb-run >/dev/null 2>&1; }; then sudo env DEBIAN_FRONTEND=noninteractive apt-get update -qq && sudo env DEBIAN_FRONTEND=noninteractive apt-get install -y -qq fish xvfb; fi && npm ci && npm run build:plugin-runtime-deps"
|
||||
}
|
||||
@@ -44,7 +44,7 @@ jobs:
|
||||
- name: Verify generated Catty tool specs
|
||||
run: |
|
||||
npm run generate:capability-tools
|
||||
git diff --exit-code infrastructure/ai/harness/generated/cattyToolSpecs.json
|
||||
git diff --exit-code infrastructure/ai/harness/generated/cattyToolSpecs.json infrastructure/ai/harness/generated/globalAgentToolSpecs.json
|
||||
|
||||
- name: Verify Codex App Server schema
|
||||
run: npm run check:codex-app-server-schema
|
||||
@@ -54,7 +54,6 @@ jobs:
|
||||
npm run check:plugin-contract
|
||||
npm run test:plugin-runtime
|
||||
npm run test:plugin-examples
|
||||
node --test --import tsx components/settings/tabs/Plugin*.test.tsx
|
||||
|
||||
- name: Test
|
||||
run: npm test
|
||||
@@ -155,5 +154,12 @@ jobs:
|
||||
NETCATTY_SSH_TEST_RUNTIME: electron
|
||||
run: node --test electron/bridges/sshChaChaTransport.test.cjs
|
||||
|
||||
- name: Exercise native PowerShell directory navigation in ConPTY
|
||||
env:
|
||||
NETCATTY_DIRECTORY_WINDOWS_LIVE: "1"
|
||||
run: |
|
||||
$env:NETCATTY_TEST_PWSH = (Get-Command pwsh -ErrorAction Stop).Source
|
||||
node --test --test-force-exit --import tsx infrastructure/services/terminalDirectory.windows.test.ts
|
||||
|
||||
- name: Exercise two SSH password prompts in the desktop app
|
||||
run: node scripts/terminal-broadcast-ssh.live.cjs
|
||||
+3
-2
@@ -23,7 +23,6 @@
|
||||
!CODE_OF_CONDUCT.md
|
||||
!CODE_SIGNING_POLICY.md
|
||||
!CONTRIBUTING.md
|
||||
!ET_INTEGRATION_CHECKLIST.md
|
||||
!LICENSE
|
||||
!PRIVACY.md
|
||||
!README.ja-JP.md
|
||||
@@ -38,7 +37,6 @@
|
||||
!index.css
|
||||
!index.html
|
||||
!index.tsx
|
||||
!metadata.json
|
||||
!package-lock.json
|
||||
!package.json
|
||||
!tsconfig.json
|
||||
@@ -48,6 +46,9 @@
|
||||
# --- Layer 2: allowlist root directories ---
|
||||
# Un-ignore the directory entry, then everything under it. Git does not
|
||||
# traverse ignored directories, so both steps are required.
|
||||
!.agents/
|
||||
/.agents/*
|
||||
!/.agents/environment.json
|
||||
!.github/
|
||||
!.github/**
|
||||
!application/
|
||||
|
||||
@@ -40,7 +40,7 @@ Netcatty is an Electron + React desktop app (SSH manager, terminal, SFTP browser
|
||||
### Electron Main Process (`electron/`)
|
||||
- **`main.cjs`** — entry point; wires crash logging, process error guards, and delegates to `main/registerBridges.cjs`
|
||||
- **`bridges/`** — one `.cjs` file per capability domain (sshBridge, sftpBridge, terminalBridge, portForwardingBridge, aiBridge, etc.). Each bridge exposes IPC handlers via `ipcMain`. Tests live alongside the bridge file (`*.test.cjs`).
|
||||
- **`preload.cjs`** — exposes a typed `window.electron` API to the renderer via `contextBridge`. Uses `preload/api.cjs` for the generated API surface.
|
||||
- **`preload.cjs`** — exposes a typed `window.netcatty` API to the renderer via `contextBridge`. Uses `preload/api.cjs` for the generated API surface.
|
||||
- **`cli/`** — `netcatty-tool-cli.cjs` is a separate internal binary for tool/MCP integration; treat as internal surface only.
|
||||
|
||||
### Renderer Process (React + Vite)
|
||||
@@ -52,7 +52,7 @@ Three-layer architecture (see `AGENTS.md` for full detail):
|
||||
- **`components/`** — presentation only. `App.tsx` wires hooks to components; no business logic in components.
|
||||
|
||||
### IPC Pattern
|
||||
UI calls `window.electron.*` (preload API) → IPC → bridge handler in main process. Never call `ipcRenderer` directly from components.
|
||||
UI calls `window.netcatty.*` (via `infrastructure/services/netcattyBridge.ts`) → IPC → bridge handler in main process. Never call `ipcRenderer` directly from components.
|
||||
|
||||
### Key Conventions
|
||||
- All storage reads/writes go through `localStorageAdapter`; storage keys are in `infrastructure/config/storageKeys.ts`.
|
||||
|
||||
@@ -1,219 +0,0 @@
|
||||
# EternalTerminal (ET) 集成清单 — 按 Mosh 方式重做
|
||||
|
||||
> 目标:在上游最新架构(分支 `feat/et-history-reapply`,基于 `031bf0ee`)上,
|
||||
> **完全照搬 Mosh 的方式**重新集成 EternalTerminal:
|
||||
> 1. **打包客户端** —— 像 `mosh-client` 那样,把 `et` 客户端二进制构建 + 下载 +
|
||||
> 捆绑进安装包,运行时只用捆绑的二进制(不依赖系统安装的 et)。
|
||||
> 2. **接入协议** —— 把旧分支 `feat/eternal-terminal`(tip `67e81616`)里的 ET
|
||||
> 后端 + UI 重新落到上游重构后的目录结构上,并让它启动**捆绑的** `et`。
|
||||
>
|
||||
> 旧实现参考:`git show 67e81616`(共 7 个 ET 提交,见 `feat/eternal-terminal`)。
|
||||
> Mosh 模板参考(**仅 MoshCatty 纯二进制路径**):`resources/mosh/README.md`、
|
||||
> `scripts/fetch-mosh-binaries.cjs`、`scripts/resolve-mosh-bin-release.cjs`、
|
||||
> `scripts/mosh-extra-resources.cjs`、`electron/bridges/terminalBridge/moshSession.cjs`。
|
||||
> 客户端本体在独立仓库 [binaricat/MoshCatty](https://github.com/binaricat/MoshCatty)
|
||||
> (`moshcatty-*` releases);Netcatty 内已无 Cygwin 构建流水线 / FluentTerminal 回退。
|
||||
|
||||
## 关键设计差异(ET vs Mosh)
|
||||
|
||||
- **协议**:Mosh 需要 Node 做 SSH bootstrap + 抓 `MOSH CONNECT` + 换 PTY
|
||||
(`moshHandshake` + `moshSession`)。**ET 不需要** —— `et` 客户端自己完成 SSH
|
||||
引导 + 协议握手,我们只要把 `et` 当作普通 PTY 进程 `pty.spawn` 即可。所以**没有**
|
||||
`etHandshake.cjs`。
|
||||
- **凭证注入**:Mosh 自己驱动 ssh、直接往 PTY 里敲密码;ET 内部驱动 ssh,需用
|
||||
**SSH_ASKPASS + 临时 ~/.ssh 环境**把保存的密码/密钥/跳板/算法喂给 et 内部的 ssh
|
||||
(旧实现 `prepareEtSshEnvironment` 已完整实现,直接搬运)。
|
||||
- **纯二进制**:MoshCatty 与理想 ET 打包都是「每平台一个客户端文件」。Mosh 侧已
|
||||
无 terminfo / Cygwin DLL 袋;`et` 同样本地不渲染终端。Windows 若动态链 CRT
|
||||
才考虑可选 DLL 目录,否则只放 `et[.exe]`。
|
||||
- **构建系统**:Mosh 客户端在 **MoshCatty** 仓库用 Rust 构建并发布;Netcatty 只
|
||||
`fetch`。**ET** 用 CMake + Ninja + vcpkg
|
||||
(`cmake -DDISABLE_TELEMETRY=ON -GNinja -DCMAKE_BUILD_TYPE=RelWithDebInfo`),
|
||||
产物是单个 `et`(Windows `et.exe`),由 `scripts/build-et/` + `build-et-binaries.yml` 发布。
|
||||
|
||||
## 命名约定(镜像 Mosh / MoshCatty)
|
||||
|
||||
| Mosh (MoshCatty) | ET |
|
||||
|------|----|
|
||||
| `resources/mosh/<plat-arch>/mosh-client[.exe]` | `resources/et/<plat-arch>/et[.exe]` |
|
||||
| 打包后 `<Resources>/mosh/mosh-client` | 打包后 `<Resources>/et/et` |
|
||||
| 上游构建:`binaricat/MoshCatty` CI releases | `scripts/build-et/` + `build-et-binaries.yml` |
|
||||
| `scripts/fetch-mosh-binaries.cjs` | `scripts/fetch-et-binaries.cjs` |
|
||||
| `scripts/resolve-mosh-bin-release.cjs` | `scripts/resolve-et-bin-release.cjs` |
|
||||
| `scripts/mosh-extra-resources.cjs` | `scripts/et-extra-resources.cjs` |
|
||||
| env `MOSH_BIN_RELEASE` / 仓库 `MoshCatty` / tag `moshcatty-*` | env `ET_BIN_RELEASE` / 仓库 `Netcatty-et-bin` / tag `et-bin-*` |
|
||||
| `npm run fetch:mosh[:dev]` | `npm run fetch:et[:dev]` |
|
||||
| `bundledMoshClient()` / `resolveBareMoshClient()` | `bundledEtClient()` / `resolveBareEtClient()` |
|
||||
|
||||
---
|
||||
|
||||
## Phase 1 — 打包基础设施(构建/下载/捆绑)
|
||||
|
||||
- [x] **1.1** `resources/et/README.md` —— 镜像 `resources/mosh/README.md`:说明
|
||||
二进制来源、`Netcatty-et-bin` 发布仓库、`et-bin-*` tag、许可证(ET 为
|
||||
Apache-2.0,与 GPL-3.0 兼容)、可复现构建命令。
|
||||
- [x] **1.2** `.gitignore` —— 追加 ET 段(镜像 mosh 段):
|
||||
`/resources/et/*/et`、`/resources/et/*/et.exe`、`/resources/et/*/*.dll`、
|
||||
`/resources/et/*/et-win32-*-dlls/`。保留 `resources/et/README.md`。
|
||||
- [x] **1.3** `scripts/build-et/build-linux.sh` —— manylinux2014 + vcpkg 静态三元组
|
||||
构建 `et`(x64/arm64),产物 `et-linux-<arch>.tar.gz`(+.sha256),内含单个 `et`。
|
||||
校验非系统动态库(ldd 白名单)。
|
||||
- [x] **1.4** `scripts/build-et/build-macos.sh` —— arm64 + x86_64 分别构建后 `lipo`
|
||||
成 universal,`MACOSX_DEPLOYMENT_TARGET=11.0`,产物 `et-darwin-universal.tar.gz`。
|
||||
- [x] **1.5** `scripts/build-et/build-windows.ps1`(或 `.sh`)—— MSVC + vcpkg
|
||||
`x64-windows-static`,产物 `et-win32-x64.tar.gz`(含 `et.exe`;若动态链接 CRT
|
||||
则随附 DLL 目录 `et-win32-x64-dlls/`,否则纯静态无 DLL)。
|
||||
- [x] **1.6** `scripts/et-extra-resources.cjs` —— 镜像 `mosh-extra-resources.cjs`:
|
||||
按平台/arch 仅当 `resources/et/<plat-arch>/et[.exe]` 存在时才产出 extraResources
|
||||
指令(`to: "et/"`);Windows 额外处理可选 DLL 目录。纯客户端文件为主。
|
||||
- [x] **1.7** `scripts/resolve-et-bin-release.cjs` —— 镜像 `resolve-mosh-bin-release.cjs`:
|
||||
`TAG_RE=/^et-bin-.../`,默认仓库 `Netcatty-et-bin`,env `ET_BIN_RELEASE` 优先。
|
||||
- [x] **1.8** `scripts/fetch-et-binaries.cjs` —— 镜像 `fetch-mosh-binaries.cjs`:
|
||||
`TARGETS` 四项(linux-x64/arm64、darwin-universal、win32-x64),全部 tar.gz;
|
||||
SHA256SUMS 校验;解包到 `resources/et/<plat-arch>/`。**Windows 用自建产物**。
|
||||
- [x] **1.9** 单元测试:`scripts/fetch-et-binaries.test.cjs`、
|
||||
`scripts/resolve-et-bin-release.test.cjs`、`scripts/et-extra-resources.test.cjs`
|
||||
(镜像对应 mosh 测试,改名/改路径)。
|
||||
- [x] **1.10** `package.json` scripts:新增
|
||||
`"fetch:et": "node scripts/fetch-et-binaries.cjs"`、
|
||||
`"fetch:et:dev": "node scripts/fetch-et-binaries.cjs --host --resolve-release"`;
|
||||
把 `dev` 脚本改成先 `fetch:mosh:dev && fetch:et:dev`;`test` glob 已覆盖
|
||||
`scripts/*.test.cjs`(确认即可)。
|
||||
- [x] **1.11** `electron-builder.config.cjs`:引入 `etExtraResources`,在 darwin/win32/
|
||||
linux 三处把 `etExtraResources(plat)` 合并进 `extraResources`(与 mosh 数组拼接)。
|
||||
- [x] **1.12** `.github/workflows/build-et-binaries.yml` —— 四个构建 job + 一个
|
||||
`release` job(dispatch 且 `release_tag` 非空时发布到 `Netcatty-et-bin`,附
|
||||
`SHA256SUMS`)。`paths` 过滤指向 `scripts/build-et/**`、`scripts/fetch-et-binaries.cjs`、
|
||||
`scripts/et-extra-resources.cjs`。env 用 `ET_REF`(默认 ET release tag,如 `et-v6.2.x`)。
|
||||
> 注:实际二进制由用户手动 `workflow_dispatch` 触发产出;本地/CI 未设
|
||||
> `ET_BIN_RELEASE` 时 fetch 步骤安静跳过(同 mosh 的 `MOSH_BIN_RELEASE`)。
|
||||
|
||||
## Phase 2 — 运行时定位捆绑客户端
|
||||
|
||||
- [x] **2.1** `electron/bridges/terminalBridge.cjs` 新增 `bundledEtClient(opts)`
|
||||
—— 镜像 `bundledMoshClient`:打包路径 `<Resources>/et/et[.exe]`;dev 回退
|
||||
`<projectRoot>/resources/et/<plat-arch>/et[.exe]`;导出到 module.exports。
|
||||
|
||||
## Phase 3 — ET 协议后端(搬运旧实现到新架构)
|
||||
|
||||
- [x] **3.1** 新建 `electron/bridges/terminalBridge/etSession.cjs` —— 用上游
|
||||
`moshSession.cjs` 的 `createXxxSessionApi(ctx)` + `with(ctx)` 工厂模式,封装:
|
||||
`ET_ASKPASS_SCRIPT`、`writeSecureFile`、`prepareEtSshEnvironment`、
|
||||
`createEtAskpassArtifacts`、`cleanupStaleEtTempDirs`、
|
||||
`cleanupSessionExternalAuthArtifacts`、`execOnEtSession`、`startEtSession`。
|
||||
**改动点**:`etCmd` 由 `findExecutable('et')` 改为 `resolveBareEtClient()`
|
||||
(取捆绑二进制);找不到时抛错(同 mosh:提示跑 `npm run fetch:et:dev`)。
|
||||
Windows 若有动态链接 DLL 目录,可把该目录加进 PATH(MoshCatty 路径已无此需求)。
|
||||
- [x] **3.2** `terminalBridge.cjs` 接线 `createEtSessionApi(ctx)`(镜像 moshSessionApi
|
||||
的 ctx),传入 `bundledEtClient`、`tempDirBridge`、`execFile/execFileSync` 等;
|
||||
解构出 `startEtSession`、`execOnEtSession`、`cleanupStaleEtTempDirs`、
|
||||
`cleanupSessionExternalAuthArtifacts`、`resolveBareEtClient`。
|
||||
- [x] **3.3** `init()` 调 `cleanupStaleEtTempDirs()`;`registerHandlers` 加
|
||||
`ipcMain.handle("netcatty:et:start", startEtSession)`;`closeSession` 与
|
||||
`cleanupAllSessions` 调 `cleanupSessionExternalAuthArtifacts(session)`;
|
||||
`module.exports` 导出 `startEtSession`、`execOnEtSession`、`bundledEtClient`。
|
||||
- [x] **3.4** 测试:`terminalBridge.bundledEt.test.cjs`(路径解析)+
|
||||
`terminalBridge/etSession.test.cjs`(prepareEtSshEnvironment 的端口/密钥/
|
||||
askpass/跳板/legacy 算法分支)。可参考旧分支是否已有 ET 测试并搬运。
|
||||
|
||||
## Phase 4 — domain / 类型 / preload 接口面
|
||||
|
||||
- [x] **4.1** `domain/models.ts`:`HostProtocol` 加 `'et'`;`ProtocolConfig.etPort?`;
|
||||
`Host`/`GroupConfig` 加 `etEnabled?`/`etPort?`/`etTerminalPath?`;
|
||||
`TerminalSession.etEnabled?`;`ConnectionLog.protocol` 加 `'et'`。
|
||||
(照搬 `git show 794eecdf -- domain/models.ts`)
|
||||
- [x] **4.2** `domain/groupConfig.ts`:加 `etEnabled` 默认项(照搬旧 diff)。
|
||||
- [x] **4.3** `global.d.ts`:`NetcattyBridge` 加 `startEtSession?(options): Promise<...>`
|
||||
及相关 options 类型(照搬 `git show 794eecdf -- global.d.ts`,并补齐后续 ET 提交
|
||||
新增的 etPort/terminalPath/jumpHosts/legacyAlgorithms 字段)。
|
||||
- [x] **4.4** `electron/preload/api.cjs`:加 `startEtSession`(镜像第 26 行的
|
||||
`startMoshSession`)→ `ipcRenderer.invoke("netcatty:et:start", options)`。
|
||||
**注意**:上游已把 preload 重构成 `createPreloadApi`,落点在 `preload/api.cjs`,
|
||||
不是旧的 `preload.cjs` 内联对象。
|
||||
|
||||
## Phase 5 — 渲染层 + UI + i18n
|
||||
|
||||
- [x] **5.1** `application/state/useTerminalBackend.ts`:加 `etAvailable`(查
|
||||
`bridge?.startEtSession`)+ `startEtSession`,并在返回对象/依赖数组里登记
|
||||
(镜像 mosh 的第 10/42/198/205 行处)。
|
||||
- [x] **5.2** `application/state/useSessionState.ts`:路由 ET 会话(照搬旧 diff,+6 行)。
|
||||
- [x] **5.3** `components/terminal/runtime/createTerminalSessionStarters.ts`:加
|
||||
`startEt(term)`(镜像 `startMosh`,组装 options:etPort/terminalPath/
|
||||
jumpHosts/legacyAlgorithms/凭证/identityFilePaths)。
|
||||
**注意**:上游把它从旧的 `infrastructure/runtime/` 移到了
|
||||
`components/terminal/runtime/` —— 落点以上游为准。
|
||||
- [x] **5.4** UI 组件(照搬 `git show b1a306f8 6c0d5bf3 55caa268` 的相应文件,
|
||||
映射到上游同名组件):
|
||||
- [ ] `components/ProtocolSelectDialog.tsx` —— 新增 ET 选项
|
||||
- [ ] `components/QuickConnectWizard.tsx`
|
||||
- [ ] `components/HostDetailsPanel.tsx` —— ET 设置(启用、ET 端口、etterminal 路径)
|
||||
- [ ] `components/GroupDetailsPanel.tsx`
|
||||
- [ ] `components/VaultView.tsx`
|
||||
- [ ] `components/Terminal.tsx` / `components/TerminalLayer.tsx`
|
||||
- [ ] `components/terminal/TerminalConnectionDialog.tsx` / `TerminalToolbar.tsx`
|
||||
- [ ] `App.tsx`
|
||||
- [x] **5.5** i18n:`application/i18n/locales/en.ts` 与 `zh-CN.ts` 加 ET 文案
|
||||
(照搬旧 diff,键名对齐上游现有 mosh 文案结构)。
|
||||
|
||||
## Phase 6 — 校验
|
||||
|
||||
- [x] **6.1** `npm run lint`(确保新 .cjs 在 scripts/ 下不受 ESLint 限制,
|
||||
或按需加 eslint-disable,与 mosh 脚本一致)。
|
||||
- [x] **6.2** `npm test`(新增的 fetch/resolve/extra-resources/etSession 测试全绿)。
|
||||
- [x] **6.3** `npm run build`(渲染层 TS 编译通过,无类型错误)。
|
||||
- [ ] **6.4** 手动冒烟(需先有发布的二进制):
|
||||
`ET_BIN_RELEASE=et-bin-... npm run fetch:et` → `npm run start` →
|
||||
新建 ET 会话连一台装了 etserver 的主机,验证连接/输入/退出/凭证注入。
|
||||
|
||||
---
|
||||
|
||||
## 进度记录
|
||||
|
||||
- 状态:**Phase 1–5 已完成并通过校验**(仅余 1 个可选项 + CI 产二进制)
|
||||
- 验证结果:
|
||||
- `npx eslint <所有改动文件>` → 干净(0 错 0 警)
|
||||
- `npx tsc --noEmit` → 我的改动 **0 个新增类型错误**
|
||||
(`TerminalConnectionDialog` 里 `case 'mosh'` 的 TS2678 是既有问题,行号因我插入 ET 早返回从 60→64,非新增)
|
||||
- `node --test`(ET 相关)→ etSession/bundledEt/3 个脚本测试 **全绿**
|
||||
- `npm test` → 1383 通过 / 16 失败,**16 个全是既有的 Windows 环境失败**
|
||||
(mosh 打包测试的 GNU-tar `C:` 问题、`isExecutableFile` 无 x 位、ACP execPath、SKILL.md 权限、Comware DH 等;均在我未改动的文件里)
|
||||
- `npm run build`(Vite)→ **构建成功**(8.55s),渲染层打包通过
|
||||
|
||||
### 已完成
|
||||
- **Phase 1**:`scripts/et-extra-resources.cjs` / `resolve-et-bin-release.cjs` /
|
||||
`fetch-et-binaries.cjs`(+3 测试,27 通过)、`scripts/build-et/{build-linux.sh,
|
||||
build-macos.sh,build-windows.ps1}`、`.github/workflows/build-et-binaries.yml`、
|
||||
`resources/et/README.md`、`.gitignore`、`package.json`、`electron-builder.config.cjs`。
|
||||
- **Phase 2**:`terminalBridge.cjs` 新增并导出 `bundledEtClient`。
|
||||
- **Phase 3**:`terminalBridge/etSession.cjs`(startEtSession + prepareEtSshEnvironment +
|
||||
SSH_ASKPASS 机制 + execOnEtSession + 清理),接线进 terminalBridge.cjs(ctx/IPC
|
||||
`netcatty:et:start`/init 清理/close/quit 清理/导出),+2 测试(13 通过)。
|
||||
**et 指向捆绑二进制**(resolveBareEtClient→bundledEtClient),找不到则报错。
|
||||
- **Phase 4**:domain `connection.ts`/`history.ts`/`terminal.ts`、`groupConfig.ts`、
|
||||
`types/global/netcatty-bridge-session.d.ts`(startEtSession + NetcattyJumpHost[])、
|
||||
`electron/preload/api.cjs`、`domain/vaultImport.ts`(排除 'et' 导入协议)。
|
||||
- **Phase 5**:
|
||||
- 启动派发:`useTerminalEffects.ts`、`Terminal.tsx`(×3) → `startEt`
|
||||
- 运行时 starter:`createTerminalSessionStarters.ts` 新增 `startEt`(含单跳板/凭证/
|
||||
legacy 算法/askpass 路径),`.types.ts` 加 `etAvailable`/`startEtSession`
|
||||
- 后端 hook:`useTerminalBackend.ts`(etAvailable + startEtSession)
|
||||
- 会话透传 etEnabled:`sessionFactories.ts`、`useSessionState.ts`(×6)、
|
||||
`TerminalLayer.tsx`(×3)、`TerminalLayerSupport.tsx`、`AppHandlers.ts`(协议解析/日志/选择)
|
||||
- UI:`HostDetailsAdvancedSections.tsx`(ET 开关+端口+etterminal 路径,与 Mosh 互斥)、
|
||||
`HostDetailsPanel.tsx`、`ProtocolSelectDialog.tsx`(ET 选项)、
|
||||
`TerminalConnectionDialog.tsx`(ET 标签)、`TerminalToolbar.tsx`(编码菜单门控)、
|
||||
`GroupSshSettingsSection.tsx` + `GroupDetailsPanel.tsx`(组级 ET)、`VaultView.tsx`
|
||||
- i18n:en/zh-CN 的 `hostDetails.section.et`、`hostDetails.et.*`、
|
||||
`terminal.connection.protocol.et`、`terminal.et.*`
|
||||
|
||||
### 剩余(可选 / 非阻塞)
|
||||
- [ ] **QuickConnectWizard.tsx**:把 ET 加为“快速连接”协议按钮(type/端口/建主机映射 +
|
||||
UI 按钮)。当前快速连接未列 ET;保存主机后开启 ET 再连即可,故仅为便利项。
|
||||
- [ ] **产出二进制**:手动 `workflow_dispatch` 跑 `build-et-binaries.yml`(带
|
||||
`release_tag=et-bin-<ver>-1`)发布到 `Netcatty-et-bin`,并配 `ET_BIN_RELEASE_TOKEN`
|
||||
secret。之后 `ET_BIN_RELEASE=... npm run fetch:et` 即可本地/打包捆绑 `et`。
|
||||
build-et 脚本本机无法编译 C++,需在 CI 验证。
|
||||
- [ ] **端到端冒烟**:有二进制后 `npm run dev`,对装有 etserver 的主机建 ET 会话验证。
|
||||
|
||||
- 当前分支:`feat/et-history-reapply`(基于上游 `031bf0ee`)
|
||||
- 旧 ET 实现参考分支:`feat/eternal-terminal`(tip `67e81616`,7 个 ET 提交)
|
||||
@@ -145,6 +145,7 @@ If you regularly work with a fleet of servers, Netcatty is built for speed and f
|
||||
- **File workflows** — drag & drop uploads/downloads
|
||||
- **Edit in place** — built-in editor for quick changes
|
||||
- **Create remote archives** — select files or folders, right-click **Compress...**, and create a named `.tar.gz` or `.zip` archive in the displayed destination directory; the server needs `tar`/`gzip` or `zip` for the chosen format.
|
||||
- **Packed downloads** — download folders or multiple items in one stream, then automatically restore their original layout locally without leaving an archive on the server. Enabled by default in SFTP settings; unsupported connections use regular downloads. [Details and compatibility](docs/features/sftp-packed-download.md).
|
||||
|
||||
### 🎨 Personalization
|
||||
- **Custom themes** — tune the app appearance to your taste
|
||||
|
||||
@@ -142,6 +142,7 @@
|
||||
- **文件工作流** —— 拖拽上传/下载更直观
|
||||
- **就地编辑** —— 内置编辑器快速修改文件
|
||||
- **远程压缩** —— 单选或多选文件、文件夹,右键选择“压缩…”,在对话框显示的保存目录生成指定名称的 `.tar.gz` 或 `.zip` 压缩包;服务器需安装对应的 `tar`/`gzip` 或 `zip`。
|
||||
- **打包下载** —— 下载文件夹或多个项目时,将所选内容一次传回并在本地自动还原原有目录结构,服务器不留压缩包。SFTP 设置中默认开启;不支持时使用普通下载。[使用说明与兼容性](docs/features/sftp-packed-download.md)。
|
||||
|
||||
### 🎨 个性化
|
||||
- **自定义主题** —— 按喜好调整应用外观
|
||||
|
||||
@@ -0,0 +1,138 @@
|
||||
import assert from 'node:assert/strict';
|
||||
import test from 'node:test';
|
||||
import React, { act } from 'react';
|
||||
import { createRoot } from 'react-dom/client';
|
||||
import { JSDOM } from 'jsdom';
|
||||
|
||||
import { createLocalShellHost } from '../domain/localShellHost';
|
||||
import { collectSessionIds } from '../domain/workspace';
|
||||
import { executeHotkeyActionImpl, handleGlobalHotkeyKeyDownImpl } from './app/AppHandlers';
|
||||
import { DEFAULT_KEY_BINDINGS, matchesKeyBinding } from '../domain/models/keyBindings';
|
||||
import { activeTabStore } from './state/activeTabStore';
|
||||
import { resolveCloseIntent } from './state/resolveCloseIntent';
|
||||
import { useSessionState } from './state/useSessionState';
|
||||
|
||||
async function setup(t: test.TestContext, paneCount: number | 'standalone', terminalFocus = true) {
|
||||
const dom = new JSDOM(
|
||||
'<div id="root"></div><div data-session-id="focused"><textarea class="xterm-helper-textarea"></textarea></div><button>Outside terminal</button>',
|
||||
{ url: 'http://localhost' },
|
||||
);
|
||||
const previous = new Map<string, PropertyDescriptor | undefined>();
|
||||
for (const [key, value] of Object.entries({
|
||||
window: dom.window,
|
||||
document: dom.window.document,
|
||||
HTMLElement: dom.window.HTMLElement,
|
||||
localStorage: dom.window.localStorage,
|
||||
CustomEvent: dom.window.CustomEvent,
|
||||
Event: dom.window.Event,
|
||||
IS_REACT_ACT_ENVIRONMENT: true,
|
||||
})) {
|
||||
previous.set(key, Object.getOwnPropertyDescriptor(globalThis, key));
|
||||
Object.defineProperty(globalThis, key, { configurable: true, value });
|
||||
}
|
||||
activeTabStore.setActiveTabId('vault');
|
||||
const root = createRoot(document.getElementById('root')!);
|
||||
t.after(async () => {
|
||||
await act(async () => root.unmount());
|
||||
activeTabStore.setActiveTabId('vault');
|
||||
dom.window.close();
|
||||
for (const [key, descriptor] of previous) {
|
||||
if (descriptor) Object.defineProperty(globalThis, key, descriptor);
|
||||
else Reflect.deleteProperty(globalThis, key);
|
||||
}
|
||||
});
|
||||
let state: ReturnType<typeof useSessionState>;
|
||||
function Probe() {
|
||||
state = useSessionState({ persistSessionRestore: false });
|
||||
return null;
|
||||
}
|
||||
await act(async () => root.render(React.createElement(Probe)));
|
||||
await act(async () => {
|
||||
if (paneCount === 'standalone') state.createLocalTerminal();
|
||||
else state.createWorkspaceWithHosts('Split tab', Array.from({ length: paneCount }, (_, index) => (
|
||||
createLocalShellHost({ id: `local-${index}` })
|
||||
)));
|
||||
});
|
||||
// Choose the second pane so closing an arbitrary first pane cannot pass.
|
||||
if (paneCount !== 'standalone' && paneCount > 1) {
|
||||
await act(async () => state.setWorkspaceFocusedSession(state.workspaces[0].id, state.sessions[1].id));
|
||||
}
|
||||
document.querySelector<HTMLElement>(terminalFocus ? 'textarea' : 'button')!.focus();
|
||||
const confirmations: string[][] = [];
|
||||
const closeTabInFlightRef = { current: false };
|
||||
const execute = (action: string, event: KeyboardEvent) => executeHotkeyActionImpl(() => ({
|
||||
activeTabStore,
|
||||
closeSession: state.closeSession,
|
||||
closeWorkspace: state.closeWorkspace,
|
||||
closeTabInFlightRef,
|
||||
collectSessionIds,
|
||||
confirmIfBusyLocalTerminal: async (ids: string[]) => { confirmations.push(ids); return true; },
|
||||
editorTabs: [],
|
||||
isEditorTabId: () => false,
|
||||
orderedTabs: [],
|
||||
resolveCloseIntent,
|
||||
sessions: state.sessions,
|
||||
settings: {},
|
||||
workspaces: state.workspaces,
|
||||
}), action, event);
|
||||
return {
|
||||
get state() { return state!; },
|
||||
confirmations,
|
||||
async press(shiftKey = false, scheme: 'mac' | 'pc' = 'mac') {
|
||||
const event = new dom.window.KeyboardEvent('keydown', {
|
||||
key: 'w', code: 'KeyW', metaKey: scheme === 'mac', ctrlKey: scheme === 'pc', shiftKey,
|
||||
bubbles: true, cancelable: true,
|
||||
});
|
||||
document.activeElement!.addEventListener('keydown', (e) => handleGlobalHotkeyKeyDownImpl(() => ({
|
||||
HOTKEY_DEBUG: false,
|
||||
closeTabKeyStr: scheme === 'mac' ? '\u2318 + W' : 'Ctrl + W',
|
||||
executeHotkeyAction: execute,
|
||||
hotkeyScheme: scheme,
|
||||
keyBindings: DEFAULT_KEY_BINDINGS,
|
||||
matchesKeyBinding,
|
||||
}), e as KeyboardEvent), { once: true });
|
||||
await act(async () => { document.activeElement!.dispatchEvent(event); });
|
||||
assert.equal(event.defaultPrevented, true);
|
||||
assert.equal(closeTabInFlightRef.current, false);
|
||||
},
|
||||
};
|
||||
}
|
||||
|
||||
for (const scheme of ['mac', 'pc'] as const) {
|
||||
for (const terminalFocus of [true, false]) {
|
||||
test(`${scheme} close-tab closes every pane and the tab with terminal focus ${terminalFocus}`, async (t) => {
|
||||
const harness = await setup(t, 2, terminalFocus);
|
||||
const ids = harness.state.sessions.map((session) => session.id);
|
||||
await harness.press(false, scheme);
|
||||
assert.deepEqual(harness.state.sessions, []);
|
||||
assert.deepEqual(harness.state.workspaces, []);
|
||||
assert.equal(activeTabStore.getActiveTabId(), 'vault');
|
||||
assert.deepEqual(harness.confirmations, [ids]);
|
||||
});
|
||||
}
|
||||
|
||||
test(`${scheme} close-pane closes only the focused pane in a split tab`, async (t) => {
|
||||
const harness = await setup(t, 2);
|
||||
const workspace = harness.state.workspaces[0];
|
||||
const focusedId = workspace.focusedSessionId;
|
||||
const survivorId = harness.state.sessions[0].id;
|
||||
await harness.press(true, scheme);
|
||||
assert.deepEqual(harness.state.sessions.map((session) => session.id), [survivorId]);
|
||||
assert.equal(harness.state.workspaces.length, 1);
|
||||
assert.deepEqual(collectSessionIds(harness.state.workspaces[0].root), [survivorId]);
|
||||
assert.equal(activeTabStore.getActiveTabId(), workspace.id);
|
||||
assert.deepEqual(harness.confirmations, [[focusedId]]);
|
||||
});
|
||||
|
||||
for (const paneCount of [1, 'standalone'] as const) {
|
||||
test(`${scheme} close-pane closes a ${paneCount} pane tab`, async (t) => {
|
||||
const harness = await setup(t, paneCount);
|
||||
const id = harness.state.sessions[0].id;
|
||||
await harness.press(true, scheme);
|
||||
assert.deepEqual(harness.state.sessions, []);
|
||||
assert.deepEqual(harness.state.workspaces, []);
|
||||
assert.equal(activeTabStore.getActiveTabId(), 'vault');
|
||||
assert.deepEqual(harness.confirmations, [[id]]);
|
||||
});
|
||||
}
|
||||
}
|
||||
@@ -2,7 +2,7 @@ import test from "node:test";
|
||||
import assert from "node:assert/strict";
|
||||
|
||||
import type { TerminalSession } from "../domain/models";
|
||||
import { copySessionToNewWindowWithCurrentShellImpl } from "./app/AppHandlers";
|
||||
import { copySessionToNewWindowWithCurrentShellImpl, moveSessionToNewWindowImpl } from "./app/AppHandlers";
|
||||
|
||||
const sourceSession = (overrides: Partial<TerminalSession> = {}): TerminalSession => ({
|
||||
id: "session-1",
|
||||
@@ -187,3 +187,164 @@ test("copySessionToNewWindowWithCurrentShellImpl shows an error when the bridge
|
||||
assert.equal(result, false);
|
||||
assert.deepEqual(errors, ["Could not open"]);
|
||||
});
|
||||
|
||||
const moveCtx = (openTerminalPopup: ((payload: Record<string, unknown>) => Promise<unknown>) | undefined) => {
|
||||
const calls: unknown[][] = [];
|
||||
const errors: string[] = [];
|
||||
const getCtx = () => ({
|
||||
netcattyBridge: { get: () => (openTerminalPopup ? { openTerminalPopup } : {}) },
|
||||
sessions: [sourceSession({ id: "other" }), sourceSession()],
|
||||
setActiveTabId: (id: string) => calls.push(["active", id]),
|
||||
setSessionPoppedOut: (id: string, poppedOut: boolean) => calls.push(["poppedOut", id, poppedOut]),
|
||||
t: (key: string) => key,
|
||||
toast: { error: (message: string) => errors.push(message) },
|
||||
});
|
||||
return { calls, errors, getCtx };
|
||||
};
|
||||
|
||||
test("moveSessionToNewWindowImpl hides the tab and attaches a popup to the same live session", async () => {
|
||||
const payloads: Record<string, unknown>[] = [];
|
||||
const { calls, errors, getCtx } = moveCtx(async (payload) => {
|
||||
payloads.push(payload);
|
||||
return { success: true };
|
||||
});
|
||||
|
||||
assert.equal(await moveSessionToNewWindowImpl(getCtx, "session-1"), true);
|
||||
assert.deepEqual(calls, [["poppedOut", "session-1", true], ["active", "other"]]);
|
||||
assert.equal(payloads[0].attachSessionId, "session-1");
|
||||
assert.equal(payloads[0].moveSession, true);
|
||||
assert.deepEqual(errors, []);
|
||||
});
|
||||
|
||||
test("moveSessionToNewWindowImpl leaves the tab untouched when the popup fails to attach", async () => {
|
||||
const { calls, errors, getCtx } = moveCtx(async () => ({ success: false, error: "boom" }));
|
||||
|
||||
assert.equal(await moveSessionToNewWindowImpl(getCtx, "session-1"), false);
|
||||
assert.deepEqual(calls, []);
|
||||
assert.deepEqual(errors, ["boom"]);
|
||||
});
|
||||
|
||||
test("moveSessionToNewWindowImpl waits for popup attachment before hiding the tab", async () => {
|
||||
let resolveOpen: ((value: unknown) => void) | null = null;
|
||||
const { calls, getCtx } = moveCtx(
|
||||
() => new Promise((resolve) => { resolveOpen = resolve; }),
|
||||
);
|
||||
|
||||
const pending = moveSessionToNewWindowImpl(getCtx, "session-1");
|
||||
await Promise.resolve();
|
||||
assert.deepEqual(calls, []);
|
||||
|
||||
resolveOpen?.({ success: true });
|
||||
assert.equal(await pending, true);
|
||||
assert.deepEqual(calls, [["poppedOut", "session-1", true], ["active", "other"]]);
|
||||
});
|
||||
|
||||
test("moveSessionToNewWindowImpl ignores tabs without a live backend", async () => {
|
||||
const { calls, getCtx } = moveCtx(async () => ({ success: true }));
|
||||
const ctx = getCtx();
|
||||
const result = await moveSessionToNewWindowImpl(
|
||||
() => ({ ...ctx, sessions: [sourceSession({ status: "disconnected" })] }),
|
||||
"session-1",
|
||||
);
|
||||
assert.equal(result, false);
|
||||
assert.deepEqual(calls, []);
|
||||
});
|
||||
|
||||
test("moveSessionToNewWindowImpl ignores plugin-backed sessions", async () => {
|
||||
const { calls, getCtx } = moveCtx(async () => ({ success: true }));
|
||||
const ctx = getCtx();
|
||||
const result = await moveSessionToNewWindowImpl(
|
||||
() => ({ ...ctx, sessions: [sourceSession({ protocol: "plugin:com.acme.db" })] }),
|
||||
"session-1",
|
||||
);
|
||||
assert.equal(result, false);
|
||||
assert.deepEqual(calls, []);
|
||||
});
|
||||
|
||||
test("moveSessionToNewWindowImpl ignores workspace panes", async () => {
|
||||
const { calls, getCtx } = moveCtx(async () => ({ success: true }));
|
||||
const ctx = getCtx();
|
||||
const result = await moveSessionToNewWindowImpl(
|
||||
() => ({ ...ctx, sessions: [sourceSession({ workspaceId: "ws-1" })] }),
|
||||
"session-1",
|
||||
);
|
||||
assert.equal(result, false);
|
||||
assert.deepEqual(calls, []);
|
||||
});
|
||||
|
||||
test("moveSessionToNewWindowImpl preserves active tab focus when moving an inactive tab", async () => {
|
||||
const { calls, errors, getCtx } = moveCtx(async () => ({ success: true }));
|
||||
const ctx = getCtx();
|
||||
const result = await moveSessionToNewWindowImpl(
|
||||
() => ({
|
||||
...ctx,
|
||||
getActiveTabId: () => "ws-1",
|
||||
getOrderedTabs: () => ["ws-1", "session-1"],
|
||||
}),
|
||||
"session-1",
|
||||
);
|
||||
assert.equal(result, true);
|
||||
assert.deepEqual(calls, [["poppedOut", "session-1", true]]);
|
||||
assert.deepEqual(errors, []);
|
||||
});
|
||||
|
||||
test("moveSessionToNewWindowImpl does not steal focus when moving an inactive tab fails", async () => {
|
||||
const { calls, errors, getCtx } = moveCtx(async () => ({ success: false, error: "nope" }));
|
||||
const ctx = getCtx();
|
||||
const result = await moveSessionToNewWindowImpl(
|
||||
() => ({
|
||||
...ctx,
|
||||
getActiveTabId: () => "editor:1",
|
||||
getOrderedTabs: () => ["editor:1", "session-1"],
|
||||
}),
|
||||
"session-1",
|
||||
);
|
||||
assert.equal(result, false);
|
||||
assert.deepEqual(calls, []);
|
||||
assert.deepEqual(errors, ["nope"]);
|
||||
});
|
||||
|
||||
test("moveSessionToNewWindowImpl selects the adjacent ordered visible tab when moving the active tab", async () => {
|
||||
const { calls, getCtx } = moveCtx(async () => ({ success: true }));
|
||||
const ctx = getCtx();
|
||||
const result = await moveSessionToNewWindowImpl(
|
||||
() => ({
|
||||
...ctx,
|
||||
sessions: [sourceSession()],
|
||||
getActiveTabId: () => "session-1",
|
||||
getOrderedTabs: () => ["ws-1", "session-1", "editor:1"],
|
||||
}),
|
||||
"session-1",
|
||||
);
|
||||
assert.equal(result, true);
|
||||
assert.deepEqual(calls, [["poppedOut", "session-1", true], ["active", "ws-1"]]);
|
||||
});
|
||||
|
||||
test("moveSessionToNewWindowImpl closes the popup if the tab moved into a workspace during startup", async () => {
|
||||
const closedPopups: string[] = [];
|
||||
let sessions: TerminalSession[] = [sourceSession()];
|
||||
const calls: unknown[][] = [];
|
||||
const getCtx = () => ({
|
||||
netcattyBridge: {
|
||||
get: () => ({
|
||||
openTerminalPopup: async () => {
|
||||
sessions = [sourceSession({ workspaceId: "ws-late" })];
|
||||
return { success: true, popupId: "popup-late" };
|
||||
},
|
||||
closeTerminalPopup: async (popupId: string) => {
|
||||
closedPopups.push(popupId);
|
||||
return { success: true };
|
||||
},
|
||||
}),
|
||||
},
|
||||
sessions,
|
||||
setActiveTabId: (id: string) => calls.push(["active", id]),
|
||||
setSessionPoppedOut: (id: string, poppedOut: boolean) => calls.push(["poppedOut", id, poppedOut]),
|
||||
t: (key: string) => key,
|
||||
toast: { error: () => {} },
|
||||
});
|
||||
|
||||
assert.equal(await moveSessionToNewWindowImpl(getCtx, "session-1"), false);
|
||||
assert.deepEqual(closedPopups, ["popup-late"]);
|
||||
assert.deepEqual(calls, []);
|
||||
});
|
||||
@@ -63,6 +63,34 @@ test("handleTrayJumpToSessionImpl opens a terminal popup for AI silent sessions"
|
||||
assert.deepEqual(opened[0], buildAiSilentSessionPopupPayload(session({ hiddenFromTabs: true })));
|
||||
});
|
||||
|
||||
test("handleTrayJumpToSessionImpl reasserts poppedOut after reopening a moved tab", async () => {
|
||||
const poppedCalls: Array<[string, boolean]> = [];
|
||||
const opened: unknown[] = [];
|
||||
await handleTrayJumpToSessionImpl(
|
||||
() => ({
|
||||
sessions: [session({ hiddenFromTabs: true, poppedOut: true })],
|
||||
setActiveTabId: () => {},
|
||||
setSessionPoppedOut: (id: string, poppedOut: boolean) => poppedCalls.push([id, poppedOut]),
|
||||
setWorkspaceFocusedSession: () => {},
|
||||
getActiveTabId: () => "vault",
|
||||
netcattyBridge: {
|
||||
get: () => ({
|
||||
openTerminalPopup: async (payload: unknown) => {
|
||||
opened.push(payload);
|
||||
return { success: true, popupId: "popup-reopen" };
|
||||
},
|
||||
}),
|
||||
},
|
||||
toast: { error: () => {} },
|
||||
t: (k: string) => k,
|
||||
}),
|
||||
"session-1",
|
||||
);
|
||||
|
||||
assert.equal((opened[0] as { moveSession?: boolean }).moveSession, true);
|
||||
assert.deepEqual(poppedCalls, [["session-1", true]]);
|
||||
});
|
||||
|
||||
test("handleTrayJumpToSessionImpl still activates normal solo sessions in the main window", async () => {
|
||||
let activeTabId = "vault";
|
||||
let openedMain = 0;
|
||||
|
||||
@@ -1,57 +0,0 @@
|
||||
import assert from "node:assert/strict";
|
||||
import { readFileSync } from "node:fs";
|
||||
import test from "node:test";
|
||||
|
||||
const appSideEffectsSource = readFileSync(new URL("./AppSideEffects.tsx", import.meta.url), "utf8");
|
||||
const terminalHostSource = readFileSync(new URL("./hosts/TerminalHost.tsx", import.meta.url), "utf8");
|
||||
const appViewSource = readFileSync(new URL("./AppView.tsx", import.meta.url), "utf8");
|
||||
const runtimeSource = readFileSync(new URL("../state/useThemeRuntime.ts", import.meta.url), "utf8");
|
||||
const settingsSource = readFileSync(new URL("../state/useSettingsState.ts", import.meta.url), "utf8");
|
||||
|
||||
test("follow-app terminal theme selection updates the matching UI theme via ThemeRuntime", () => {
|
||||
assert.match(runtimeSource, /getFollowAppTerminalThemeSelectionUpdate\(themeId\)/);
|
||||
assert.match(runtimeSource, /setDarkUiThemeId\(update\.uiThemeId\)/);
|
||||
assert.match(runtimeSource, /setLightUiThemeId\(update\.uiThemeId\)/);
|
||||
assert.match(runtimeSource, /setTheme\(update\.appTheme\)/);
|
||||
assert.doesNotMatch(runtimeSource, /isFollowAppIntentSettled\(userIntent\.themeId/);
|
||||
assert.match(terminalHostSource, /useThemeRuntime\(/);
|
||||
assert.match(terminalHostSource, /pickTerminalTheme\(themeId\)/);
|
||||
assert.match(terminalHostSource, /pickTheme: pickTerminalTheme/);
|
||||
// Theme members are listed field-by-field on the TerminalHost bag (not themeRuntime bag).
|
||||
assert.match(terminalHostSource, /clearThemeIntent,/);
|
||||
assert.match(terminalHostSource, /settleManualThemeIntent,/);
|
||||
assert.match(terminalHostSource, /pickTerminalTheme,/);
|
||||
assert.match(terminalHostSource, /resolveSessionAppearance: resolveFocusedAppearance/);
|
||||
assert.doesNotMatch(
|
||||
terminalHostSource,
|
||||
/followAppTerminalTheme, themeRuntime, handleConnectSerial/,
|
||||
);
|
||||
// Terminal domain must not thrash on whole settings bag identity.
|
||||
assert.match(terminalHostSource, /sshDebugLogsEnabled:/);
|
||||
assert.doesNotMatch(
|
||||
terminalHostSource,
|
||||
/splitSessionWithCurrentShell, settings, terminalFontFamilyId/,
|
||||
);
|
||||
// Hotkey path must not depend on whole settings/sessions for callback identity.
|
||||
assert.match(appSideEffectsSource, /showSftpTab: showSftpTabRef\.current/);
|
||||
assert.match(appSideEffectsSource, /sessions: sessionsRef\.current/);
|
||||
assert.match(appSideEffectsSource, /connectionLogs: connectionLogsRef\.current/);
|
||||
assert.match(terminalHostSource, /useTerminalAppearanceInjection/);
|
||||
assert.match(terminalHostSource, /includeChromeSurfaces: followAppTerminalTheme/);
|
||||
assert.match(terminalHostSource, /useTerminalAppearanceInjection\(accentedGlobalAppearance/);
|
||||
assert.match(terminalHostSource, /clearThemeIntent\(\)/);
|
||||
assert.match(runtimeSource, /injectTerminalAppearanceVars\(appearance\.theme, \{ includeChromeSurfaces \}\)/);
|
||||
assert.doesNotMatch(settingsSource, /pendingFollowAppTerminalThemeId/);
|
||||
assert.doesNotMatch(settingsSource, /applyFollowAppTerminalThemePick/);
|
||||
assert.match(settingsSource, /appearanceTransitionModeRef\.current = 'instant'/);
|
||||
assert.match(appViewSource, /data-terminal-appearance-root/);
|
||||
assert.match(appViewSource, /pickTerminalTheme=\{ctx\.pickTerminalTheme\}/);
|
||||
});
|
||||
|
||||
test("default terminal theme selection persists via TerminalHost", () => {
|
||||
// Product path lives on TerminalHost; AppSideEffects no longer owns this handler.
|
||||
assert.match(terminalHostSource, /const handleDefaultTerminalThemeChange = useCallback\(\(themeId: string\) => \{/);
|
||||
assert.match(terminalHostSource, /setTerminalThemeId\(themeId\)/);
|
||||
assert.match(terminalHostSource, /TERMINAL_THEME_AUTO/);
|
||||
assert.match(appViewSource, /onUpdateTerminalThemeId=\{handleDefaultTerminalThemeChange\}/);
|
||||
});
|
||||
@@ -8,6 +8,7 @@ import { resolveHostDefaultLocalShell } from '../../domain/localShellHost';
|
||||
import { getAvailablePaneMagnificationController } from '../../domain/paneMagnification';
|
||||
import { sanitizeHostIconFields } from '../../domain/hostIcon';
|
||||
import { resolveEffectiveTerminalProtocol } from '../../domain/terminalProtocol';
|
||||
import { isPluginHostProtocol } from '../../domain/pluginConnection';
|
||||
import { getTerminalPassthroughActions } from '../state/useGlobalHotkeys';
|
||||
import { getSettingsChromeSnapshot } from '../state/settingsChromeStore';
|
||||
import { isHostTreeWorkTabSurface } from './workTabSurface';
|
||||
@@ -73,7 +74,7 @@ export const getLogHostVisualSnapshot = (host: Host) => {
|
||||
* spawning a new shell via connection reuse.
|
||||
*/
|
||||
export function buildAiSilentSessionPopupPayload(session: TerminalSession): TerminalPopupPayload {
|
||||
const { hiddenFromTabs: _hiddenFromTabs, ...sourceSession } = session;
|
||||
const { hiddenFromTabs: _hiddenFromTabs, poppedOut: _poppedOut, ...sourceSession } = session;
|
||||
return {
|
||||
title: session.hostLabel || 'Terminal',
|
||||
parentSessionId: session.id,
|
||||
@@ -89,6 +90,7 @@ export async function handleTrayJumpToSessionImpl(getCtx: AppContextGetter, sess
|
||||
const {
|
||||
sessions,
|
||||
setActiveTabId,
|
||||
setSessionPoppedOut,
|
||||
setWorkspaceFocusedSession,
|
||||
netcattyBridge,
|
||||
toast,
|
||||
@@ -111,13 +113,20 @@ export async function handleTrayJumpToSessionImpl(getCtx: AppContextGetter, sess
|
||||
return;
|
||||
}
|
||||
try {
|
||||
const result = await bridge.openTerminalPopup(buildAiSilentSessionPopupPayload(session));
|
||||
const payload = session.poppedOut
|
||||
? { ...buildAiSilentSessionPopupPayload(session), moveSession: true }
|
||||
: buildAiSilentSessionPopupPayload(session);
|
||||
const result = await bridge.openTerminalPopup(payload);
|
||||
if (!result?.success) {
|
||||
toast?.error?.(
|
||||
result?.error
|
||||
|| t?.('tabs.copyTabToNewWindowFailed')
|
||||
|| 'Failed to open tab in a new window',
|
||||
);
|
||||
} else if (session.poppedOut) {
|
||||
// Reassert popped-out state in case a stale attach-closed event from a
|
||||
// prior crashed popup arrived while the replacement popup was attaching.
|
||||
setSessionPoppedOut?.(sessionId, true);
|
||||
}
|
||||
} catch (err) {
|
||||
toast?.error?.(
|
||||
@@ -695,6 +704,96 @@ export async function copySessionToNewWindowWithCurrentShellImpl(getCtx: AppCont
|
||||
}
|
||||
}
|
||||
|
||||
const inFlightMoveSessions = new Set<string>();
|
||||
|
||||
/**
|
||||
* Move a solo tab into its own window without reconnecting: an attach popup
|
||||
* takes over the same live PTY (no second login, e.g. on a bastion with seat
|
||||
* limits). The tab is hidden only after the popup actually attaches, and
|
||||
* closing the popup brings it back via onTerminalPopupAttachClosed.
|
||||
*/
|
||||
export async function moveSessionToNewWindowImpl(getCtx: AppContextGetter, sessionId: string) {
|
||||
if (inFlightMoveSessions.has(sessionId)) return false;
|
||||
const {
|
||||
getActiveTabId,
|
||||
getOrderedTabs,
|
||||
netcattyBridge,
|
||||
sessions,
|
||||
setActiveTabId,
|
||||
setSessionPoppedOut,
|
||||
t,
|
||||
toast,
|
||||
} = getCtx();
|
||||
const session = sessions.find((item: TerminalSession) => item.id === sessionId);
|
||||
// Attach mode only takes over a live non-plugin backend; plugin connections
|
||||
// remain owned by their source renderer until plugin lifetime transfer exists.
|
||||
if (
|
||||
!session
|
||||
|| session.workspaceId
|
||||
|| session.hiddenFromTabs
|
||||
|| session.status !== 'connected'
|
||||
|| isPluginHostProtocol(session.protocol)
|
||||
|| (typeof session.protocol === 'string' && session.protocol.startsWith('plugin:'))
|
||||
) {
|
||||
return false;
|
||||
}
|
||||
|
||||
const fail = (error?: string) => {
|
||||
toast?.error?.(error || (t?.('tabs.moveTabToNewWindowFailed') ?? 'Failed to move tab to a new window'));
|
||||
return false;
|
||||
};
|
||||
const bridge = netcattyBridge?.get?.();
|
||||
if (!bridge?.openTerminalPopup) return fail();
|
||||
|
||||
inFlightMoveSessions.add(sessionId);
|
||||
try {
|
||||
const result = await bridge.openTerminalPopup({ ...buildAiSilentSessionPopupPayload(session), moveSession: true });
|
||||
if (!result?.success) return fail(result?.error);
|
||||
|
||||
const latestCtx = getCtx();
|
||||
const latestSessions: TerminalSession[] = latestCtx.sessions ?? sessions;
|
||||
const stillPresent = latestSessions.find((item: TerminalSession) => item.id === sessionId);
|
||||
if (!stillPresent || stillPresent.workspaceId || stillPresent.hiddenFromTabs) {
|
||||
if (typeof result.popupId === 'string' && result.popupId) {
|
||||
void bridge.closeTerminalPopup?.(result.popupId);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
const latestGetActiveTabId = latestCtx.getActiveTabId ?? getActiveTabId;
|
||||
const latestGetOrderedTabs = latestCtx.getOrderedTabs ?? getOrderedTabs;
|
||||
const latestSetActiveTabId = latestCtx.setActiveTabId ?? setActiveTabId;
|
||||
const latestSetSessionPoppedOut = latestCtx.setSessionPoppedOut ?? setSessionPoppedOut;
|
||||
const isActive = typeof latestGetActiveTabId === 'function' ? latestGetActiveTabId() === sessionId : true;
|
||||
|
||||
latestSetSessionPoppedOut(sessionId, true);
|
||||
if (isActive) {
|
||||
const orderedTabs = typeof latestGetOrderedTabs === 'function' ? latestGetOrderedTabs() : null;
|
||||
let fallbackTab: string | undefined;
|
||||
if (Array.isArray(orderedTabs) && orderedTabs.length > 0) {
|
||||
const index = orderedTabs.indexOf(sessionId);
|
||||
const candidate = index >= 0
|
||||
? (orderedTabs[index - 1] ?? orderedTabs[index + 1])
|
||||
: orderedTabs.filter((id: string) => id !== sessionId).slice(-1)[0];
|
||||
if (candidate && candidate !== sessionId) {
|
||||
fallbackTab = candidate;
|
||||
}
|
||||
}
|
||||
if (!fallbackTab) {
|
||||
fallbackTab = latestSessions
|
||||
.filter((item: TerminalSession) => item.id !== sessionId && !item.workspaceId && !item.hiddenFromTabs)
|
||||
.slice(-1)[0]?.id ?? 'vault';
|
||||
}
|
||||
latestSetActiveTabId(fallbackTab);
|
||||
}
|
||||
return true;
|
||||
} catch (err) {
|
||||
return fail(err instanceof Error ? err.message : undefined);
|
||||
} finally {
|
||||
inFlightMoveSessions.delete(sessionId);
|
||||
}
|
||||
}
|
||||
|
||||
export async function confirmIfBusyLocalTerminalImpl(getCtx: AppContextGetter, sessionIds: string[]) {
|
||||
const { netcattyBridge, sessions, t } = getCtx();
|
||||
{
|
||||
@@ -875,20 +974,16 @@ export function executeHotkeyActionImpl(getCtx: AppContextGetter, action: string
|
||||
const session = sessions.find((s) => s.id === currentId) ?? null;
|
||||
const workspace = workspaces.find((w) => w.id === currentId) ?? null;
|
||||
|
||||
const focusIsInsideTerminal = !!document.activeElement?.closest('[data-session-id]');
|
||||
|
||||
const intent = resolveCloseIntent({
|
||||
activeTabId: currentId,
|
||||
workspace: workspace ? { id: workspace.id, focusedSessionId: workspace.focusedSessionId } : null,
|
||||
sessionForTab: session,
|
||||
focusIsInsideTerminal,
|
||||
});
|
||||
|
||||
closeTabInFlightRef.current = true;
|
||||
(async () => {
|
||||
try {
|
||||
switch (intent.kind) {
|
||||
case 'closeTerminal':
|
||||
case 'closeSingleTab': {
|
||||
const ok = await confirmIfBusyLocalTerminal([intent.sessionId]);
|
||||
if (ok) closeSession(intent.sessionId);
|
||||
@@ -932,7 +1027,11 @@ export function executeHotkeyActionImpl(getCtx: AppContextGetter, action: string
|
||||
: aliveIds[0];
|
||||
if (focusedId) {
|
||||
const ok = await confirmIfBusyLocalTerminal([focusedId]);
|
||||
if (ok) closeSession(focusedId);
|
||||
if (ok) {
|
||||
// The pane shortcut closes the tab when only one pane remains.
|
||||
if (aliveIds.length === 1) closeWorkspace(workspace.id);
|
||||
else closeSession(focusedId);
|
||||
}
|
||||
}
|
||||
} else if (session) {
|
||||
// Standalone session tab — close the session
|
||||
@@ -1220,6 +1319,23 @@ export function handleConnectToHostImpl(getCtx: AppContextGetter, host: Host, hi
|
||||
}
|
||||
}
|
||||
|
||||
export function startRestoredSessionConnectionLogImpl(getCtx: AppContextGetter, session: TerminalSession) {
|
||||
const { addConnectionLog, systemInfoRef } = getCtx();
|
||||
const { username, hostname } = systemInfoRef.current;
|
||||
addConnectionLog({
|
||||
sessionId: session.id,
|
||||
hostId: session.hostId,
|
||||
hostLabel: session.hostLabel,
|
||||
hostname: session.hostname,
|
||||
username: session.username,
|
||||
protocol: session.protocol || 'ssh',
|
||||
startTime: Date.now(),
|
||||
localUsername: username,
|
||||
localHostname: hostname,
|
||||
saved: false,
|
||||
});
|
||||
}
|
||||
|
||||
export async function handleTerminalDataCaptureImpl(getCtx: AppContextGetter, sessionId: string, data: string) {
|
||||
const { IS_DEV, connectionLogs, selectConnectionLogForTerminalDataCapture, sessions, updateConnectionLog } = getCtx();
|
||||
{
|
||||
|
||||
@@ -1,28 +0,0 @@
|
||||
import assert from "node:assert/strict";
|
||||
import { readFileSync } from "node:fs";
|
||||
import test from "node:test";
|
||||
|
||||
const source = readFileSync(new URL("./AppSideEffects.tsx", import.meta.url), "utf8");
|
||||
|
||||
test("open-terminal requests wait behind App Lock and resume after unlock", () => {
|
||||
const handlerStart = source.indexOf("const _handleOpenTerminalPath");
|
||||
const handlerEnd = source.indexOf("useEffect(() =>", handlerStart);
|
||||
const handlerSource = source.slice(handlerStart, handlerEnd);
|
||||
const drainStart = source.indexOf("const pending = pendingDeepLinksWhileLockedRef.current.splice(0)");
|
||||
const drainEnd = source.indexOf("}, [appLockLocked]);", drainStart);
|
||||
const drainSource = source.slice(drainStart, drainEnd);
|
||||
|
||||
assert.match(handlerSource, /shouldDeferExternalActionWhileAppLocked/);
|
||||
assert.match(handlerSource, /kind: 'open-terminal-path'/);
|
||||
assert.match(drainSource, /_processOpenTerminalPath\(item\.payload\)/);
|
||||
|
||||
const processStart = source.indexOf("const _processOpenTerminalPath");
|
||||
const processSource = source.slice(processStart, handlerStart);
|
||||
assert.match(processSource, /handleCreateLocalTerminal\(undefined, \{ localStartDir \}\)/);
|
||||
assert.match(processSource, /resolveShellSetting\(shellSetting, shells\)/);
|
||||
assert.match(source, /const openTerminalQueueRef = useRef\(createOpenTerminalQueue\(\)\)/);
|
||||
const enqueueAt = processSource.indexOf("openTerminalQueueRef.current.enqueue(() => {");
|
||||
const createAt = processSource.indexOf("handleCreateLocalTerminal");
|
||||
assert.ok(enqueueAt >= 0 && createAt > enqueueAt);
|
||||
assert.match(processSource, /await ensureDiscoveredShells\(\)/);
|
||||
});
|
||||
@@ -1,21 +0,0 @@
|
||||
import assert from "node:assert/strict";
|
||||
import { readFileSync } from "node:fs";
|
||||
import test from "node:test";
|
||||
|
||||
const source = readFileSync(new URL("./AppSideEffects.tsx", import.meta.url), "utf8");
|
||||
|
||||
test("deep-link tab names are applied to terminal sessions", () => {
|
||||
assert.match(source, /type DeepLinkPayload = \{[\s\S]*tabName\?: string/);
|
||||
assert.match(source, /const handleConnectToHostWithTabName = useCallback/);
|
||||
assert.match(source, /renameSessionInline\(sessionId, tabName\)/);
|
||||
assert.match(source, /handleConnectToHostWithTabName\(ephemeralHost, tabName\)/);
|
||||
assert.match(
|
||||
source,
|
||||
/handleConnectToHostWithTabName\(buildSshDeepLinkConnectionHost\(originalHost\), tabName\)/,
|
||||
);
|
||||
assert.match(
|
||||
source,
|
||||
/handleConnectToHostWithTabName\(buildTelnetDeepLinkConnectionHost\(matchedEffectiveHost\), tabName\)/,
|
||||
);
|
||||
assert.match(source, /label: tabName/);
|
||||
});
|
||||
@@ -1,16 +0,0 @@
|
||||
import assert from 'node:assert/strict';
|
||||
import { readFileSync } from 'node:fs';
|
||||
import test from 'node:test';
|
||||
|
||||
const source = readFileSync(new URL('./AppSideEffects.tsx', import.meta.url), 'utf8');
|
||||
|
||||
test('quick-switcher Escape handling stays in the bubble phase', () => {
|
||||
const effectStart = source.indexOf('const onKeyDown = (e: KeyboardEvent) => {\n _handleEscapeKeyDown(e);');
|
||||
const effectEnd = source.indexOf('}, [appLockLocked]);', effectStart);
|
||||
const effectSource = source.slice(effectStart, effectEnd);
|
||||
|
||||
assert.notEqual(effectStart, -1);
|
||||
assert.match(effectSource, /window\.addEventListener\('keydown', onKeyDown\)/);
|
||||
assert.match(effectSource, /window\.removeEventListener\('keydown', onKeyDown\)/);
|
||||
assert.doesNotMatch(source, /onCaptureKeyDown/);
|
||||
});
|
||||
@@ -1,30 +0,0 @@
|
||||
import assert from "node:assert/strict";
|
||||
import test from "node:test";
|
||||
import { readFileSync } from "node:fs";
|
||||
|
||||
const source = readFileSync(new URL("./AppSideEffects.tsx", import.meta.url), "utf8");
|
||||
|
||||
test("snippets delete handler cleans host bindings via deleteSelectedSnippets", () => {
|
||||
assert.match(source, /collectSnippetDeleteIds/);
|
||||
assert.match(source, /deleteSelectedSnippets/);
|
||||
assert.match(
|
||||
source,
|
||||
/netcatty:snippets:delete[\s\S]*void deleteSelectedSnippets\(ids\)/,
|
||||
);
|
||||
assert.doesNotMatch(
|
||||
source,
|
||||
/updateSnippets\(snippets\.filter\(\(s\) => !ids\.has\(s\.id\)\)\)/,
|
||||
);
|
||||
});
|
||||
|
||||
test("snippets delete handler uses vault live snapshot instead of component refs", () => {
|
||||
// Component-level snippetsRef/hostsRef lag concurrent vault mutations that
|
||||
// already advanced useVaultState refs before React re-renders AppSideEffects.
|
||||
// Deletion must go through the vault hook's atomic live-snapshot path.
|
||||
assert.match(source, /deleteSelectedSnippets,/);
|
||||
assert.doesNotMatch(source, /snippetsRef\.current\s*=\s*snippets/);
|
||||
assert.doesNotMatch(
|
||||
source,
|
||||
/deleteSelectedSnippetsFromVault\(\s*snippetsRef\.current/,
|
||||
);
|
||||
});
|
||||
@@ -1,21 +0,0 @@
|
||||
import assert from "node:assert/strict";
|
||||
import { readFileSync } from "node:fs";
|
||||
import test from "node:test";
|
||||
|
||||
const source = readFileSync(new URL("./AppSideEffects.tsx", import.meta.url), "utf8");
|
||||
|
||||
test("handleConnectToHost reads temporary connection settings at call time", () => {
|
||||
assert.match(source, /const temporaryConnectionSettingsRef = useRef\(terminalSettings\)/);
|
||||
assert.match(source, /temporaryConnectionSettingsRef\.current = terminalSettings/);
|
||||
|
||||
const handlerStart = source.indexOf("const handleConnectToHost = useCallback");
|
||||
const handlerEnd = source.indexOf("const handleConnectToHostWithTabName");
|
||||
assert.ok(handlerStart >= 0 && handlerEnd > handlerStart);
|
||||
const handler = source.slice(handlerStart, handlerEnd);
|
||||
|
||||
assert.match(handler, /temporaryConnectionSettingsRef\.current/);
|
||||
assert.match(handler, /temporaryConnectionPrepareOptions\(liveTerminalSettings\)/);
|
||||
assert.match(handler, /terminalSettings: liveTerminalSettings/);
|
||||
assert.doesNotMatch(handler, /terminalSettings\.temporaryConnections/);
|
||||
assert.doesNotMatch(handler, /\[addConnectionLog, connectToHost, resolveEffectiveHost, identities, keys, discoveredShells, terminalSettings\]/);
|
||||
});
|
||||
@@ -1,28 +0,0 @@
|
||||
import assert from 'node:assert/strict';
|
||||
import { readFileSync } from 'node:fs';
|
||||
import { dirname, join } from 'node:path';
|
||||
import { fileURLToPath } from 'node:url';
|
||||
import test from 'node:test';
|
||||
|
||||
const here = dirname(fileURLToPath(import.meta.url));
|
||||
const appSideEffectsSource = readFileSync(join(here, 'AppSideEffects.tsx'), 'utf8');
|
||||
|
||||
test('terminal keyboard focus tracking is always published to the main process', () => {
|
||||
assert.match(
|
||||
appSideEffectsSource,
|
||||
/useTerminalKeyboardFocus\(\s*\)/,
|
||||
'the terminal keyboard focus signal must be unconditional',
|
||||
);
|
||||
});
|
||||
|
||||
test('terminal keyboard focus is not gated on hotkey scheme or font zoom settings', () => {
|
||||
// When the signal is turned off, the main process falls back to window zoom
|
||||
// for Ctrl+= / Ctrl+- / Ctrl+0 while the user is typing in a terminal, so
|
||||
// "disable terminal zoom" and per-binding overrides stop having any effect
|
||||
// on those chords (#3327).
|
||||
assert.doesNotMatch(appSideEffectsSource, /useTerminalKeyboardFocus\(\s*hotkeyScheme/);
|
||||
assert.doesNotMatch(
|
||||
appSideEffectsSource,
|
||||
/useTerminalKeyboardFocus\(\s*[^)\s][^)]*disableTerminalFontZoom/,
|
||||
);
|
||||
});
|
||||
@@ -47,7 +47,7 @@ import { materializeHostProxyProfile } from '../../domain/proxyProfiles';
|
||||
import { useVaultHostDeletion } from '../state/useVaultHostDeletion';
|
||||
import { buildSshDeepLinkConnectionHost, buildSshDeepLinkEphemeralHost, buildSshDeepLinkEphemeralHostFromSaved, buildSshDeepLinkHostDraft, findSshDeepLinkHost, parseSshDeepLink } from '../../domain/sshDeepLink';
|
||||
import { buildTelnetDeepLinkConnectionHost, buildTelnetDeepLinkEphemeralHostFromSaved, buildTelnetDeepLinkOpenHost, findTelnetDeepLinkHost, materializeTelnetDeepLinkMatchHost, parseTelnetDeepLink } from '../../domain/telnetDeepLink';
|
||||
import { buildJmsDeepLinkEphemeralHost, isSupportedJmsProtocol, parseJmsDeepLink } from '../../domain/jmsDeepLink';
|
||||
import { buildJmsDeepLinkEphemeralHost, parseJmsDeepLinkResult } from '../../domain/jmsDeepLink';
|
||||
import { applyEphemeralHostDistroUpdate, applyEphemeralHostsUpdate, splitHostsUpdateByEphemeral } from '../../domain/ephemeralHosts';
|
||||
import { prepareConnectionHost, temporaryConnectionPrepareOptions } from '../../domain/legacyAlgorithms';
|
||||
import { resolveHostAuth } from '../../domain/sshAuth';
|
||||
@@ -104,7 +104,7 @@ import { collectSnippetDeleteIds } from '../../domain/snippetSelection.ts';
|
||||
import { shouldOpenLocalTerminalOnStartup, resolveStartupLandingSetting } from '../../domain/startupLanding';
|
||||
import { createOpenTerminalQueue } from './openTerminalQueue';
|
||||
import { useAppStartupEffects } from './useAppStartupEffects';
|
||||
import { handleTrayJumpToSessionImpl, handleTrayTogglePortForwardImpl, handleTrayPanelConnectImpl, handleTrayPanelConnectRequestImpl, flushQueuedTrayPanelConnectHostsImpl, handleGlobalHotkeyKeyDownImpl, handleEscapeKeyDownImpl, handleKeyboardInteractiveSubmitImpl, handleKeyboardInteractiveCancelImpl, handlePassphraseSubmitImpl, handlePassphraseCancelImpl, handlePassphraseSkipImpl, handleFidoPromptSubmitImpl, handleFidoPromptCancelImpl, createLocalTerminalWithCurrentShellImpl, splitSessionWithCurrentShellImpl, copySessionWithCurrentShellImpl, duplicateSessionWithCurrentShellImpl, copyWorkspaceWithCurrentShellImpl, copySessionToNewWindowWithCurrentShellImpl, confirmIfBusyLocalTerminalImpl, closeTabsBatchImpl, executeHotkeyActionImpl, handleCreateLocalTerminalImpl, handleConnectToHostImpl, handleTerminalDataCaptureImpl, hasMultipleProtocolsImpl, handleHostConnectWithProtocolCheckImpl, handleProtocolSelectImpl, handleRootContextMenuImpl, markForwardedNativeShortcutEvent } from './AppHandlers';
|
||||
import { handleTrayJumpToSessionImpl, handleTrayTogglePortForwardImpl, handleTrayPanelConnectImpl, handleTrayPanelConnectRequestImpl, flushQueuedTrayPanelConnectHostsImpl, handleGlobalHotkeyKeyDownImpl, handleEscapeKeyDownImpl, handleKeyboardInteractiveSubmitImpl, handleKeyboardInteractiveCancelImpl, handlePassphraseSubmitImpl, handlePassphraseCancelImpl, handlePassphraseSkipImpl, handleFidoPromptSubmitImpl, handleFidoPromptCancelImpl, createLocalTerminalWithCurrentShellImpl, splitSessionWithCurrentShellImpl, copySessionWithCurrentShellImpl, duplicateSessionWithCurrentShellImpl, copyWorkspaceWithCurrentShellImpl, copySessionToNewWindowWithCurrentShellImpl, moveSessionToNewWindowImpl, confirmIfBusyLocalTerminalImpl, closeTabsBatchImpl, executeHotkeyActionImpl, handleCreateLocalTerminalImpl, handleConnectToHostImpl, handleTerminalDataCaptureImpl, startRestoredSessionConnectionLogImpl, hasMultipleProtocolsImpl, handleHostConnectWithProtocolCheckImpl, handleProtocolSelectImpl, handleRootContextMenuImpl, markForwardedNativeShortcutEvent } from './AppHandlers';
|
||||
|
||||
type OpenSessionInNewWindowPayload = {
|
||||
title?: string;
|
||||
@@ -283,6 +283,7 @@ export function AppSideEffects() {
|
||||
createSessionFromCloneSource,
|
||||
getSessionRestoreCwd,
|
||||
renameSessionInline,
|
||||
setSessionPoppedOut,
|
||||
} = sessionState;
|
||||
|
||||
// Presence-only list: keystrokes must not rebuild App domains / TopTabs structure.
|
||||
@@ -604,6 +605,7 @@ export function AppSideEffects() {
|
||||
sessionId,
|
||||
sessions,
|
||||
setActiveTabId,
|
||||
setSessionPoppedOut,
|
||||
setWorkspaceFocusedSession,
|
||||
getActiveTabId: () => activeTabStore.getActiveTabId(),
|
||||
netcattyBridge,
|
||||
@@ -1027,6 +1029,24 @@ export function AppSideEffects() {
|
||||
|
||||
const copySessionToNewWindowWithCurrentShell = useCallback((sessionId: string) => { return copySessionToNewWindowWithCurrentShellImpl(() => ({ classifyLocalShellType, discoveredShells, netcattyBridge, resolveShellSetting, sessions, terminalSettings, t, toast }), sessionId); }, [sessions, terminalSettings, discoveredShells, t]);
|
||||
|
||||
const moveSessionToNewWindow = useCallback((sessionId: string) => {
|
||||
return moveSessionToNewWindowImpl(() => ({
|
||||
getActiveTabId: () => activeTabStore.getActiveTabId(),
|
||||
getOrderedTabs: () => orderedTabsRef.current,
|
||||
netcattyBridge,
|
||||
sessions: Array.from(sessionByIdRef.current.values()),
|
||||
setActiveTabId,
|
||||
setSessionPoppedOut,
|
||||
t,
|
||||
toast,
|
||||
}), sessionId);
|
||||
}, [setActiveTabId, setSessionPoppedOut, t]);
|
||||
|
||||
// A tab moved to its own window returns to the tab bar when that window closes.
|
||||
useEffect(() => netcattyBridge.get()?.onTerminalPopupAttachClosed?.(({ sessionId }) => {
|
||||
setSessionPoppedOut(sessionId, false);
|
||||
}), [setSessionPoppedOut]);
|
||||
|
||||
const closeTabKeyStr = useMemo(() => {
|
||||
if (hotkeyScheme === 'disabled') return null;
|
||||
const closeTabBinding = keyBindings.find((binding) => binding.action === 'closeTab');
|
||||
@@ -1734,16 +1754,16 @@ export function AppSideEffects() {
|
||||
const _processJmsDeepLink = useEffectEvent((payload: { url?: string }) => {
|
||||
startupLaunchIntentReceivedRef.current = true;
|
||||
const rawUrl = payload?.url || '';
|
||||
const target = parseJmsDeepLink(rawUrl);
|
||||
if (!target) {
|
||||
toast.warning(t('deepLink.jms.invalid'));
|
||||
const result = parseJmsDeepLinkResult(rawUrl);
|
||||
if (result.ok === false) {
|
||||
if (result.reason === 'unsupported_protocol') {
|
||||
toast.warning(t('deepLink.jms.unsupported', { protocol: result.protocol }));
|
||||
} else {
|
||||
toast.warning(t('deepLink.jms.invalid'));
|
||||
}
|
||||
return;
|
||||
}
|
||||
if (!isSupportedJmsProtocol(target.protocol)) {
|
||||
toast.warning(t('deepLink.jms.unsupported', { protocol: target.protocol }));
|
||||
return;
|
||||
}
|
||||
const ephemeralHost = buildJmsDeepLinkEphemeralHost(target, {
|
||||
const ephemeralHost = buildJmsDeepLinkEphemeralHost(result.target, {
|
||||
id: crypto.randomUUID(),
|
||||
now: Date.now(),
|
||||
});
|
||||
@@ -1895,8 +1915,18 @@ export function AppSideEffects() {
|
||||
setActiveTabId('vault');
|
||||
}, [setActiveTabId]);
|
||||
|
||||
const restoredSessionLogsStartedRef = useRef(new Set<string>());
|
||||
// A restored tab retains its session ID, but its previous ConnectionLog is closed.
|
||||
// Start the new incarnation's log before updateSessionStatus clears restoreState.
|
||||
// Wrap updateSessionStatus to track lastConnectedAt on successful connection
|
||||
const handleSessionStatusChange = useCallback((sessionId: string, status: TerminalSession['status']) => {
|
||||
const session = sessionByIdRef.current.get(sessionId);
|
||||
if (session?.restoreState === 'restored-disconnected'
|
||||
&& (status === 'connecting' || status === 'connected')
|
||||
&& !restoredSessionLogsStartedRef.current.has(sessionId)) {
|
||||
restoredSessionLogsStartedRef.current.add(sessionId);
|
||||
startRestoredSessionConnectionLogImpl(() => ({ addConnectionLog, systemInfoRef }), session);
|
||||
}
|
||||
updateSessionStatus(sessionId, status);
|
||||
if (status === 'connected') {
|
||||
const session = sessionByIdRef.current.get(sessionId);
|
||||
@@ -1904,7 +1934,7 @@ export function AppSideEffects() {
|
||||
updateHostLastConnected(session.hostId);
|
||||
}
|
||||
}
|
||||
}, [updateSessionStatus, updateHostLastConnected]);
|
||||
}, [addConnectionLog, updateSessionStatus, updateHostLastConnected]);
|
||||
|
||||
const handleUpdateHostFromTerminal = useCallback((host: TerminalHostUpdate) => {
|
||||
// Functional update + identity-preserving updateHosts: only the patched
|
||||
@@ -2061,6 +2091,7 @@ export function AppSideEffects() {
|
||||
duplicateSessionWithCurrentShell,
|
||||
copyWorkspaceWithCurrentShell,
|
||||
copySessionToNewWindowWithCurrentShell,
|
||||
moveSessionToNewWindow,
|
||||
createWorkspaceFromTargets: createWorkspaceFromEffectiveTargets,
|
||||
createWorkspaceWithHosts: createWorkspaceWithEffectiveHosts,
|
||||
handleConnectSerial,
|
||||
@@ -2139,6 +2170,7 @@ export function AppSideEffects() {
|
||||
duplicateSessionWithCurrentShell,
|
||||
copyWorkspaceWithCurrentShell,
|
||||
copySessionToNewWindowWithCurrentShell,
|
||||
moveSessionToNewWindow,
|
||||
createWorkspaceFromEffectiveTargets,
|
||||
createWorkspaceWithEffectiveHosts,
|
||||
handleConnectSerial,
|
||||
|
||||
@@ -1,23 +0,0 @@
|
||||
import test from "node:test";
|
||||
import assert from "node:assert/strict";
|
||||
import { readFileSync } from "node:fs";
|
||||
|
||||
const appViewSource = readFileSync(new URL("./AppView.tsx", import.meta.url), "utf8");
|
||||
const pluginHostSource = readFileSync(new URL("./AppPluginKeybindingHost.tsx", import.meta.url), "utf8");
|
||||
const editorSurfaceSource = readFileSync(new URL("./AppHostEditorSurface.tsx", import.meta.url), "utf8");
|
||||
|
||||
test("AppView shell does not subscribe to useActiveTabId", () => {
|
||||
// Top-tab switches must not rebuild the AppView shell. Leaves own the subscription.
|
||||
assert.doesNotMatch(appViewSource, /useActiveTabId\s*\(/);
|
||||
assert.doesNotMatch(appViewSource, /useActiveTabId/);
|
||||
// Still uses activeTabStore for imperative tab close / neighbor activation.
|
||||
assert.match(appViewSource, /activeTabStore/);
|
||||
});
|
||||
|
||||
test("plugin keybindings and host-editor surface subscribe as leaves", () => {
|
||||
assert.match(pluginHostSource, /useActiveTabId/);
|
||||
assert.match(pluginHostSource, /resolveActivePluginKeybindingContext/);
|
||||
assert.match(editorSurfaceSource, /useWorkSurfaceVisible/);
|
||||
assert.match(editorSurfaceSource, /useActiveTabId/);
|
||||
assert.match(appViewSource, /AppPluginKeybindingHost/);
|
||||
});
|
||||
@@ -265,7 +265,7 @@ function AppViewInner({ domains }: AppViewProps) {
|
||||
|
||||
const {
|
||||
addShellHistoryEntry, clearAllCommandHistory, removeShellHistoryEntry, addSessionToWorkspace, addToWorkspaceDialog, appendHostToWorkspace, appendLocalTerminalToWorkspace, moveWorkspacePane,
|
||||
clearAndRemoveSource, clearAndRemoveSources, closeLogView, closeSession, closeTabsBatch, closeWorkspace, commitPluginImporterData, commitVaultImportTransaction, commitVaultGroupMutation, copySessionToNewWindowWithCurrentShell, copySessionWithCurrentShell, duplicateSessionWithCurrentShell, copyWorkspaceWithCurrentShell,
|
||||
clearAndRemoveSource, clearAndRemoveSources, closeLogView, closeSession, closeTabsBatch, closeWorkspace, commitPluginImporterData, commitVaultImportTransaction, commitVaultGroupMutation, copySessionToNewWindowWithCurrentShell, moveSessionToNewWindow, copySessionWithCurrentShell, duplicateSessionWithCurrentShell, copyWorkspaceWithCurrentShell,
|
||||
convertKnownHostToHost, createWorkspaceFromSessions, createWorkspaceFromTargets, createWorkspaceWithHosts,
|
||||
customGroups, currentTerminalTheme, deepLinkHostDraft, draggingSessionId, effectiveKnownHosts, editorTabs, editorWordWrap, emptyVaultConflict,
|
||||
followAppTerminalTheme,
|
||||
@@ -278,7 +278,7 @@ function AppViewInner({ domains }: AppViewProps) {
|
||||
passphraseQueue, fidoPromptQueue, protocolSelectHost, proxyProfiles, portForwardingRules, removeSessionFromWorkspace, reorderWorkTabs, reorderWorkspaceSessions,
|
||||
resolveEmptyVaultConflict, resolveSessionAppearance, runSnippet, sessionLogsDir, sessionLogsEnabled, sessionLogsFormat, sessionLogsTimestampsEnabled, sessionRenameTarget, sshDebugLogsEnabled,
|
||||
sessions, setActiveTabId, setDeepLinkHostDraft, setDraggingSessionId, setEditorWordWrap,
|
||||
setNavigateToSection, setTerminalFontFamilyId, setTerminalFontSize, setVaultFocusRequest, updateSessionFontSize, updateSessionRestoreCwd, updateSessionDynamicTitle, updateSessionCodingCliProvider, clearSessionFontSizeOverride,
|
||||
setNavigateToSection, setTerminalFontFamilyId, setTerminalFontSize, setVaultFocusRequest, updateSessionFontSize, updateSessionRestoreCwd, updateSessionDynamicTitle, updateSessionPromptHost, updateSessionCodingCliProvider, clearSessionFontSizeOverride,
|
||||
setWorkspaceFocusedSession, setWorkspaceAnchorChat, sftpAutoOpenSidebar, sftpFollowTerminalCwd, setSftpFollowTerminalCwd, sftpAutoSync, sftpDefaultViewMode, sftpDoubleClickBehavior,
|
||||
sftpShowHiddenFiles, sftpUseCompressedUpload, snippetPackages, snippets, splitSessionWithCurrentShell, startSessionRename,
|
||||
startWorkspaceRename, submitSessionRename, submitWorkspaceRename, t, terminalFontFamilyId, terminalFontSize, terminalSettings, terminalThemeId, themeById,
|
||||
@@ -560,6 +560,7 @@ function AppViewInner({ domains }: AppViewProps) {
|
||||
onDuplicateSession={duplicateSessionWithCurrentShell}
|
||||
tabDoubleClickBehavior={terminalSettings.tabDoubleClickBehavior}
|
||||
onCopySessionToNewWindow={copySessionToNewWindowWithCurrentShell}
|
||||
onMoveSessionToNewWindow={moveSessionToNewWindow}
|
||||
onEditHost={handleEditHostFromOverlay}
|
||||
onRenameWorkspace={startWorkspaceRename}
|
||||
onCopyWorkspace={copyWorkspaceWithCurrentShell}
|
||||
@@ -652,7 +653,7 @@ function AppViewInner({ domains }: AppViewProps) {
|
||||
customGroups={customGroups}
|
||||
knownHosts={effectiveKnownHosts}
|
||||
managedSources={managedSources}
|
||||
sessionCount={sessions.filter((s) => !s.hiddenFromTabs).length}
|
||||
sessionCount={sessions.filter((s) => !s.hiddenFromTabs || s.poppedOut).length}
|
||||
hotkeyScheme={hotkeyScheme}
|
||||
keyBindings={keyBindings}
|
||||
terminalThemeId={terminalThemeId}
|
||||
@@ -760,6 +761,7 @@ function AppViewInner({ domains }: AppViewProps) {
|
||||
onUpdateSessionFontSize={updateSessionFontSize}
|
||||
onUpdateSessionRestoreCwd={updateSessionRestoreCwd}
|
||||
onUpdateSessionDynamicTitle={updateSessionDynamicTitle}
|
||||
onUpdateSessionPromptHost={updateSessionPromptHost}
|
||||
onUpdateSessionCodingCliProvider={updateSessionCodingCliProvider}
|
||||
onClearSessionFontSizeOverride={clearSessionFontSizeOverride}
|
||||
onUpdateTerminalFontWeight={handleUpdateTerminalFontWeight}
|
||||
|
||||
@@ -1,19 +0,0 @@
|
||||
import assert from 'node:assert/strict';
|
||||
import { readFileSync } from 'node:fs';
|
||||
import test from 'node:test';
|
||||
|
||||
const source = readFileSync(new URL('./AppView.tsx', import.meta.url), 'utf8');
|
||||
|
||||
test('workspace append resolves group defaults before creating host sessions', () => {
|
||||
assert.match(source, /resolveEffectiveTerminalHost\(\{/);
|
||||
assert.match(source, /groupConfigs,/);
|
||||
assert.match(source, /proxyProfiles,/);
|
||||
assert.match(
|
||||
source,
|
||||
/appendHostToWorkspace\(workspaceId, resolveWorkspaceAppendHost\(host\), rootDir\)/,
|
||||
);
|
||||
assert.match(
|
||||
source,
|
||||
/appendHostToWorkspace\([\s\S]*?resolveWorkspaceAppendHost\(target\.host\),[\s\S]*?rootDir/,
|
||||
);
|
||||
});
|
||||
@@ -2,7 +2,7 @@ import React, { Suspense, lazy, useMemo, useState } from 'react';
|
||||
|
||||
import type { QuickSwitcherProps } from '../../components/QuickSwitcher';
|
||||
import { LazyLoadBoundary } from '../../components/ui/lazy-load-boundary';
|
||||
import { getHostSearchMatch } from '../../lib/searchMatcher';
|
||||
import { getHostSearchMatch } from '../../domain/searchMatcher';
|
||||
import type { Host } from '../../types';
|
||||
|
||||
const LazyQuickSwitcher = lazy(() =>
|
||||
|
||||
@@ -84,10 +84,6 @@ class AppShellPropsStore {
|
||||
|
||||
export const appShellPropsStore = new AppShellPropsStore();
|
||||
|
||||
export function publishAppShellDomains(domains: AppViewDomains): void {
|
||||
appShellPropsStore.setDomains(domains);
|
||||
}
|
||||
|
||||
export function publishAppShellDomainSlice<K extends keyof AppViewDomains>(
|
||||
key: K,
|
||||
slice: AppViewDomains[K],
|
||||
|
||||
@@ -179,6 +179,7 @@ export function TerminalHost() {
|
||||
copySessionWithCurrentShell: handlers.copySessionWithCurrentShell,
|
||||
copyWorkspaceWithCurrentShell: handlers.copyWorkspaceWithCurrentShell,
|
||||
copySessionToNewWindowWithCurrentShell: handlers.copySessionToNewWindowWithCurrentShell,
|
||||
moveSessionToNewWindow: handlers.moveSessionToNewWindow,
|
||||
duplicateSessionWithCurrentShell: handlers.duplicateSessionWithCurrentShell,
|
||||
closeWorkspace: sessionActions?.closeWorkspace,
|
||||
createWorkspaceFromSessions: sessionActions?.createWorkspaceFromSessions,
|
||||
@@ -256,6 +257,7 @@ export function TerminalHost() {
|
||||
updateSessionFontSize: sessionActions?.updateSessionFontSize,
|
||||
updateSessionRestoreCwd: sessionActions?.updateSessionRestoreCwd,
|
||||
updateSessionDynamicTitle: sessionActions?.updateSessionDynamicTitle,
|
||||
updateSessionPromptHost: sessionActions?.updateSessionPromptHost,
|
||||
updateSessionCodingCliProvider: sessionActions?.updateSessionCodingCliProvider,
|
||||
updateTerminalSetting: terminalSettingsActions?.updateTerminalSetting,
|
||||
workspaces: session.workspaces,
|
||||
|
||||
@@ -86,6 +86,7 @@ export function SessionPublisher({ persistSessionRestore, children }: SessionPub
|
||||
updateSessionRestoreCwd,
|
||||
getSessionRestoreCwd,
|
||||
updateSessionDynamicTitle,
|
||||
updateSessionPromptHost,
|
||||
updateSessionCodingCliProvider,
|
||||
} = session;
|
||||
|
||||
@@ -173,6 +174,7 @@ export function SessionPublisher({ persistSessionRestore, children }: SessionPub
|
||||
updateSessionRestoreCwd,
|
||||
getSessionRestoreCwd,
|
||||
updateSessionDynamicTitle,
|
||||
updateSessionPromptHost,
|
||||
updateSessionCodingCliProvider,
|
||||
}), [
|
||||
addSessionToWorkspace,
|
||||
@@ -226,6 +228,7 @@ export function SessionPublisher({ persistSessionRestore, children }: SessionPub
|
||||
toggleWorkspaceViewMode,
|
||||
updateSessionCodingCliProvider,
|
||||
updateSessionDynamicTitle,
|
||||
updateSessionPromptHost,
|
||||
updateSessionFontSize,
|
||||
updateSessionRestoreCwd,
|
||||
updateSessionStatus,
|
||||
|
||||
@@ -0,0 +1,206 @@
|
||||
import assert from 'node:assert/strict';
|
||||
import test from 'node:test';
|
||||
import { readFileSync } from 'node:fs';
|
||||
import React, { useEffect, useRef } from 'react';
|
||||
import { act, create, type ReactTestRenderer } from 'react-test-renderer';
|
||||
import { JSDOM } from 'jsdom';
|
||||
import { installBrowserLockFixture } from '../testSupport/browserLockFixture';
|
||||
import { useSessionState } from '../state/useSessionState';
|
||||
import { captureClosingTerminalSessions, useTerminalSessionCloseCapture } from '../state/terminalSessionCloseCapture';
|
||||
import { selectConnectionLogForTerminalDataCapture } from '../../domain/connectionLog';
|
||||
import { createConnectionLogBuffer } from '../../components/terminal/connectionLogBuffer';
|
||||
import { TerminalConnectionProgress } from '../../components/terminal/TerminalConnectionProgress';
|
||||
import { I18nProvider } from '../i18n/I18nProvider';
|
||||
import { handleTerminalDataCaptureImpl } from './AppHandlers';
|
||||
|
||||
const tick = () => new Promise<void>((resolve) => setImmediate(resolve));
|
||||
|
||||
test('explicit close persists never-connected logs; runtime remounts leave them open', async (t) => {
|
||||
const dom = new JSDOM('', { url: 'http://localhost' });
|
||||
const globals = ['window', 'localStorage', 'CustomEvent', 'navigator', 'IS_REACT_ACT_ENVIRONMENT'];
|
||||
const previous = new Map(globals.map((key) => [key, Object.getOwnPropertyDescriptor(globalThis, key)]));
|
||||
Object.defineProperties(globalThis, {
|
||||
window: { value: dom.window, configurable: true },
|
||||
localStorage: { value: dom.window.localStorage, configurable: true },
|
||||
CustomEvent: { value: dom.window.CustomEvent, configurable: true },
|
||||
IS_REACT_ACT_ENVIRONMENT: { value: true, configurable: true },
|
||||
});
|
||||
installBrowserLockFixture();
|
||||
const { useVaultState } = await import('../state/useVaultState');
|
||||
try {
|
||||
for (const scenario of [
|
||||
{ name: 'tab X before connected, empty buffer', status: 'connecting', data: '' },
|
||||
{ name: 'failed-dialog close, empty buffer', status: 'disconnected', data: '' },
|
||||
{ name: 'failed-dialog close preserves buffered diagnostics', status: 'disconnected', data: 'SSH diagnostic\r\n' },
|
||||
{ name: 'batch close before connected', status: 'connecting', data: '', closeMode: 'batch' },
|
||||
{ name: 'workspace close before connected', status: 'connecting', data: '', closeMode: 'workspace' },
|
||||
] as const) {
|
||||
await t.test(scenario.name, async () => {
|
||||
let vault!: ReturnType<typeof useVaultState>;
|
||||
let state!: ReturnType<typeof useSessionState>;
|
||||
let root: ReactTestRenderer | undefined;
|
||||
let sessionId!: string;
|
||||
let logId!: string;
|
||||
const captures: Promise<void>[] = [];
|
||||
const capturedData: string[] = [];
|
||||
function TerminalProbe() {
|
||||
const hasConnectedRef = useRef(false);
|
||||
const terminalDataCapturedRef = useRef(false);
|
||||
const buffer = useRef(createConnectionLogBuffer(10000));
|
||||
useEffect(() => {
|
||||
buffer.current.append(scenario.data);
|
||||
return () => { buffer.current.reset(); };
|
||||
}, []);
|
||||
useTerminalSessionCloseCapture({
|
||||
sessionId, enabled: true, hasConnectedRef, terminalDataCapturedRef,
|
||||
finalizeTerminalLogData: () => buffer.current.toString(),
|
||||
onTerminalDataCapture: (id, data, options) => {
|
||||
assert.equal(options.finalized, true);
|
||||
assert.ok(state.sessions.some((session) => session.id === id), 'capture starts before removal');
|
||||
terminalDataCapturedRef.current = true;
|
||||
capturedData.push(data);
|
||||
const pending = handleTerminalDataCaptureImpl(() => ({
|
||||
IS_DEV: false, connectionLogs: vault.connectionLogs, sessions: state.sessions,
|
||||
selectConnectionLogForTerminalDataCapture, updateConnectionLog: vault.updateConnectionLog,
|
||||
}), id, data);
|
||||
captures.push(pending);
|
||||
return pending;
|
||||
},
|
||||
});
|
||||
return scenario.status === 'disconnected' ? React.createElement(
|
||||
I18nProvider, { locale: 'en' }, React.createElement(TerminalConnectionProgress, {
|
||||
status: 'disconnected', error: 'Connection refused', timeLeft: 0,
|
||||
isCancelling: false, showLogs: false, progressLogs: [],
|
||||
onCancelConnect: () => {}, onCloseSession: () => state.closeSession(sessionId),
|
||||
}),
|
||||
) : null;
|
||||
}
|
||||
function Probe({ showTerminal = true }) {
|
||||
vault = useVaultState();
|
||||
state = useSessionState({ persistSessionRestore: false });
|
||||
return showTerminal && state.sessions.some((session) => session.id === sessionId)
|
||||
? React.createElement(TerminalProbe) : null;
|
||||
}
|
||||
const mount = async () => {
|
||||
await act(async () => { root = create(React.createElement(Probe)); });
|
||||
for (let attempt = 0; !vault.isInitialized && attempt < 50; attempt++) {
|
||||
await act(async () => { await tick(); });
|
||||
}
|
||||
assert.equal(vault.isInitialized, true);
|
||||
};
|
||||
try {
|
||||
await mount();
|
||||
await act(async () => { sessionId = state.createLocalTerminal(); });
|
||||
await act(async () => {
|
||||
state.updateSessionStatus(sessionId, scenario.status);
|
||||
const session = state.sessions.find((candidate) => candidate.id === sessionId)!;
|
||||
logId = vault.addConnectionLog({
|
||||
sessionId, hostId: session.hostId, hostLabel: session.hostLabel,
|
||||
hostname: session.hostname, username: session.username,
|
||||
protocol: session.protocol, startTime: Date.now(),
|
||||
localUsername: 'local-user', localHostname: 'local-host', saved: false,
|
||||
});
|
||||
await vault.updateConnectionLog(logId, {});
|
||||
});
|
||||
if ('closeMode' in scenario && scenario.closeMode === 'workspace') {
|
||||
let otherId!: string;
|
||||
await act(async () => { otherId = state.createLocalTerminal(); });
|
||||
await act(async () => { state.createWorkspaceFromSessions(sessionId, otherId, 'right'); });
|
||||
}
|
||||
// Recycle the renderer while retaining the session, as with a pane
|
||||
// remount. Neither disposal nor the replacement runtime may end its log.
|
||||
await act(async () => { root!.update(React.createElement(Probe, { showTerminal: false })); });
|
||||
await act(async () => { root!.update(React.createElement(Probe)); });
|
||||
assert.equal(captures.length, 0);
|
||||
assert.equal(vault.connectionLogs.find((log) => log.id === logId)?.endTime, undefined);
|
||||
|
||||
// Both UI actions converge here. This exercises the actual state
|
||||
// removal, owning-terminal hook, capture handler and vault persistence.
|
||||
await act(async () => {
|
||||
if ('closeMode' in scenario && scenario.closeMode === 'workspace') {
|
||||
state.closeWorkspace(state.workspaces[0].id);
|
||||
} else if ('closeMode' in scenario && scenario.closeMode === 'batch') {
|
||||
state.closeSessions([sessionId]);
|
||||
} else if (scenario.status === 'disconnected') {
|
||||
// Click the actual Close button rendered inside the failed dialog.
|
||||
root!.root.findByType('button').props.onClick();
|
||||
} else {
|
||||
state.closeSession(sessionId);
|
||||
}
|
||||
await Promise.all(captures);
|
||||
});
|
||||
assert.equal(state.sessions.some((session) => session.id === sessionId), false);
|
||||
assert.deepEqual(capturedData, [scenario.data]);
|
||||
await act(async () => { state.closeSession(sessionId); });
|
||||
assert.equal(captures.length, 1, 'removed runtimes must unregister their capture');
|
||||
await act(async () => { root!.unmount(); });
|
||||
root = undefined;
|
||||
await mount();
|
||||
const persisted = vault.connectionLogs.find((log) => log.id === logId)!;
|
||||
assert.ok(persisted.endTime, 'a durable endTime must exist even without terminal output');
|
||||
assert.equal(persisted.terminalData || '', scenario.data);
|
||||
} finally {
|
||||
await act(async () => { root?.unmount(); });
|
||||
}
|
||||
});
|
||||
}
|
||||
} finally {
|
||||
dom.window.close();
|
||||
for (const key of globals) {
|
||||
const descriptor = previous.get(key);
|
||||
if (descriptor) Object.defineProperty(globalThis, key, descriptor);
|
||||
else Reflect.deleteProperty(globalThis, key);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
test('close capture skips non-owning, already connected and already captured runtimes', async (t) => {
|
||||
const previous = Object.getOwnPropertyDescriptor(globalThis, 'IS_REACT_ACT_ENVIRONMENT');
|
||||
Object.defineProperty(globalThis, 'IS_REACT_ACT_ENVIRONMENT', { value: true, configurable: true });
|
||||
try {
|
||||
for (const scenario of [
|
||||
{ name: 'attached popup / inactive restored placeholder', enabled: false, connected: false, captured: false },
|
||||
{ name: 'connected terminal uses existing drain path', enabled: true, connected: true, captured: false },
|
||||
{ name: 'quit already captured the log', enabled: true, connected: false, captured: true },
|
||||
]) {
|
||||
await t.test(scenario.name, async () => {
|
||||
let calls = 0;
|
||||
let root!: ReactTestRenderer;
|
||||
function Probe() {
|
||||
useTerminalSessionCloseCapture({
|
||||
sessionId: 'guarded', enabled: scenario.enabled,
|
||||
hasConnectedRef: useRef(scenario.connected),
|
||||
terminalDataCapturedRef: useRef(scenario.captured),
|
||||
finalizeTerminalLogData: () => { calls++; return ''; },
|
||||
onTerminalDataCapture: () => { calls++; },
|
||||
});
|
||||
return null;
|
||||
}
|
||||
await act(async () => { root = create(React.createElement(Probe)); });
|
||||
try {
|
||||
await act(async () => { captureClosingTerminalSessions(['guarded']); });
|
||||
assert.equal(calls, 0);
|
||||
} finally {
|
||||
await act(async () => { root.unmount(); });
|
||||
}
|
||||
});
|
||||
}
|
||||
} finally {
|
||||
if (previous) Object.defineProperty(globalThis, 'IS_REACT_ACT_ENVIRONMENT', previous);
|
||||
else Reflect.deleteProperty(globalThis, 'IS_REACT_ACT_ENVIRONMENT');
|
||||
}
|
||||
});
|
||||
|
||||
test('both UI close paths reach session removal and Terminal registers the owning capture', () => {
|
||||
const read = (path: string) => readFileSync(new URL(path, import.meta.url), 'utf8');
|
||||
const app = read('./AppView.tsx');
|
||||
assert.match(app, /onCloseSession=\{closeSession\}/);
|
||||
assert.match(read('../../components/top-tabs/TopTabItems.tsx'), /onClick=\{\(e\) => onCloseSession\(session\.id, e\)\}/);
|
||||
const terminal = read('../../components/Terminal.tsx');
|
||||
assert.match(terminal, /useTerminalSessionCloseCapture\(\{\s*sessionId,\s*enabled: !attachExistingSession && restoreState !== "restored-disconnected",\s*hasConnectedRef,\s*terminalDataCapturedRef,\s*finalizeTerminalLogData,\s*onTerminalDataCapture: handleTerminalDataCaptureOnce,/);
|
||||
const handler = terminal.slice(terminal.indexOf('const handleCloseDisconnectedSession ='), terminal.indexOf('const handleHostKeyClose ='));
|
||||
assert.match(handler, /onCloseSession\?\.\(sessionId\)/);
|
||||
assert.match(read('../../components/TerminalLayer.tsx'), /onCloseSession\(sessionId\)/);
|
||||
assert.match(read('../../components/terminal/TerminalView.tsx'), /onCloseSession: handleCloseDisconnectedSession/);
|
||||
assert.match(read('../../components/terminal/TerminalConnectionProgress.tsx'), /onClick=\{onCloseSession\}/);
|
||||
});
|
||||
@@ -0,0 +1,132 @@
|
||||
import assert from 'node:assert/strict';
|
||||
import test from 'node:test';
|
||||
import { readFileSync } from 'node:fs';
|
||||
import { EventEmitter } from 'node:events';
|
||||
import React from 'react';
|
||||
import { act, create, type ReactTestRenderer } from 'react-test-renderer';
|
||||
import { JSDOM } from 'jsdom';
|
||||
import { installBrowserLockFixture } from '../testSupport/browserLockFixture';
|
||||
import { withVaultImportLock } from '../state/vaultManagedImportLock';
|
||||
import { selectConnectionLogForTerminalDataCapture } from '../../domain/connectionLog';
|
||||
import type { TerminalSession } from '../../domain/models';
|
||||
import { createConnectionLogBuffer } from '../../components/terminal/connectionLogBuffer';
|
||||
import { handleTerminalDataCaptureImpl, startRestoredSessionConnectionLogImpl } from './AppHandlers';
|
||||
import { createPreloadApi } from '../../electron/preload/api.cjs';
|
||||
import { finalizeSessionLogs } from '../../electron/bridges/sessionLogShutdown.cjs';
|
||||
|
||||
const tick = () => new Promise<void>((resolve) => setImmediate(resolve));
|
||||
|
||||
test('quit persists replay before acknowledgment; restored reconnect keeps the old log and starts a new one', async () => {
|
||||
const dom = new JSDOM('', { url: 'http://localhost' });
|
||||
const globals = ['window', 'localStorage', 'CustomEvent', 'navigator', 'IS_REACT_ACT_ENVIRONMENT'];
|
||||
const previous = new Map(globals.map((key) => [key, Object.getOwnPropertyDescriptor(globalThis, key)]));
|
||||
Object.defineProperties(globalThis, {
|
||||
window: { value: dom.window, configurable: true },
|
||||
localStorage: { value: dom.window.localStorage, configurable: true },
|
||||
CustomEvent: { value: dom.window.CustomEvent, configurable: true },
|
||||
IS_REACT_ACT_ENVIRONMENT: { value: true, configurable: true },
|
||||
});
|
||||
installBrowserLockFixture();
|
||||
const { useVaultState } = await import('../state/useVaultState');
|
||||
let vault!: ReturnType<typeof useVaultState>;
|
||||
let root: ReactTestRenderer | undefined;
|
||||
const Probe = () => { vault = useVaultState(); return null; };
|
||||
const mount = async () => {
|
||||
await act(async () => { root = create(React.createElement(Probe)); });
|
||||
for (let attempt = 0; !vault.isInitialized && attempt < 50; attempt++) {
|
||||
await act(async () => { await tick(); });
|
||||
}
|
||||
assert.equal(vault.isInitialized, true);
|
||||
};
|
||||
const session: TerminalSession = {
|
||||
id: 'restorable-tab', hostId: 'host', hostLabel: 'Host', hostname: 'host.test',
|
||||
username: 'user', protocol: 'ssh', status: 'connected',
|
||||
};
|
||||
const systemInfoRef = { current: { username: 'local-user', hostname: 'local-host' } };
|
||||
const capture = (data: string) => handleTerminalDataCaptureImpl(() => ({
|
||||
IS_DEV: false, connectionLogs: vault.connectionLogs, sessions: [session],
|
||||
selectConnectionLogForTerminalDataCapture, updateConnectionLog: vault.updateConnectionLog,
|
||||
}), session.id, data);
|
||||
try {
|
||||
await mount();
|
||||
let oldId!: string;
|
||||
await act(async () => {
|
||||
oldId = vault.addConnectionLog({
|
||||
sessionId: session.id, hostId: session.hostId, hostLabel: session.hostLabel,
|
||||
hostname: session.hostname, username: session.username, protocol: 'ssh', startTime: 1,
|
||||
localUsername: 'local-user', localHostname: 'local-host', saved: false,
|
||||
});
|
||||
// Wait for the initial catalog write before blocking the capture write.
|
||||
await vault.updateConnectionLog(oldId, {});
|
||||
});
|
||||
const buffer = createConnectionLogBuffer(10000);
|
||||
buffer.append('output before quitting\r\n');
|
||||
const ipcMain = new EventEmitter();
|
||||
const ipcRenderer = new EventEmitter() as EventEmitter & { send: (channel: string, payload: unknown) => void };
|
||||
const webContents = { send: (channel: string, payload: unknown) => ipcRenderer.emit(channel, {}, payload) };
|
||||
ipcRenderer.send = (channel, payload) => ipcMain.emit(channel, { sender: webContents }, payload);
|
||||
const api = createPreloadApi({ ipcRenderer });
|
||||
const off = api.onFinalizeSessionLogs(() => capture(buffer.toString()));
|
||||
let release!: () => void;
|
||||
const blockedWrite = withVaultImportLock('connection-logs', () => new Promise<void>((resolve) => { release = resolve; }));
|
||||
await tick();
|
||||
let acknowledged = false;
|
||||
await act(async () => {
|
||||
const quit = finalizeSessionLogs(webContents, { ipcMain }).then((success: boolean) => {
|
||||
acknowledged = true;
|
||||
assert.equal(success, true);
|
||||
});
|
||||
await tick();
|
||||
assert.equal(acknowledged, false, 'main must wait for the persistence queue');
|
||||
release();
|
||||
await blockedWrite;
|
||||
await quit;
|
||||
});
|
||||
off();
|
||||
// Remounting reads durable storage. Node has no IndexedDB, so this also
|
||||
// exercises the existing localStorage replay fallback.
|
||||
await act(async () => { root?.unmount(); });
|
||||
await mount();
|
||||
const oldLog = vault.connectionLogs.find((log) => log.id === oldId)!;
|
||||
assert.ok(oldLog.endTime);
|
||||
assert.equal(oldLog.terminalData, 'output before quitting\r\n');
|
||||
await act(async () => {
|
||||
startRestoredSessionConnectionLogImpl(() => ({ addConnectionLog: vault.addConnectionLog, systemInfoRef }), {
|
||||
...session, status: 'disconnected', restoreState: 'restored-disconnected',
|
||||
});
|
||||
});
|
||||
const newLog = vault.connectionLogs.find((log) => log.id !== oldId)!;
|
||||
assert.equal(newLog.sessionId, session.id);
|
||||
assert.equal(newLog.endTime, undefined);
|
||||
assert.equal(newLog.terminalData, undefined);
|
||||
await act(async () => { await capture('output after reconnect\r\n'); });
|
||||
await act(async () => { root?.unmount(); });
|
||||
await mount();
|
||||
assert.equal(vault.connectionLogs.find((log) => log.id === oldId)?.terminalData, oldLog.terminalData);
|
||||
assert.equal(vault.connectionLogs.find((log) => log.id === oldId)?.endTime, oldLog.endTime);
|
||||
assert.equal(vault.connectionLogs.find((log) => log.id === newLog.id)?.terminalData, 'output after reconnect\r\n');
|
||||
assert.ok(vault.connectionLogs.find((log) => log.id === newLog.id)?.endTime);
|
||||
} finally {
|
||||
await act(async () => { root?.unmount(); });
|
||||
dom.window.close();
|
||||
for (const key of globals) {
|
||||
const descriptor = previous.get(key);
|
||||
if (descriptor) Object.defineProperty(globalThis, key, descriptor);
|
||||
else Reflect.deleteProperty(globalThis, key);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
test('terminal quit listener drains output and awaits capture without tearing down tabs', () => {
|
||||
const source = readFileSync(new URL('../../components/Terminal.tsx', import.meta.url), 'utf8');
|
||||
const start = source.indexOf('onFinalizeSessionLogs?.(async () => {');
|
||||
assert.ok(start > 0);
|
||||
const listener = source.slice(start, source.indexOf('const attachHomeWebContentsIdRef', start));
|
||||
assert.match(listener, /await flushPendingTerminalWritesBeforeHibernate\(term\)/);
|
||||
assert.match(listener, /await handleTerminalDataCaptureOnce\(sessionId, finalizeTerminalLogData\(\), \{ finalized: true \}\)/);
|
||||
assert.doesNotMatch(listener, /closeSession|teardown/);
|
||||
const effects = readFileSync(new URL('./AppSideEffects.tsx', import.meta.url), 'utf8');
|
||||
const handler = effects.slice(effects.indexOf('const handleSessionStatusChange ='), effects.indexOf('const handleUpdateHostFromTerminal ='));
|
||||
assert.ok(handler.indexOf('startRestoredSessionConnectionLogImpl(') < handler.indexOf('updateSessionStatus(sessionId, status)'));
|
||||
assert.match(handler, /restoredSessionLogsStartedRef\.current\.has\(sessionId\)/);
|
||||
});
|
||||
@@ -1,279 +0,0 @@
|
||||
import assert from 'node:assert/strict';
|
||||
import { readFileSync } from 'node:fs';
|
||||
import test from 'node:test';
|
||||
|
||||
const appSource = readFileSync(new URL('../../App.tsx', import.meta.url), 'utf8');
|
||||
const appSideEffectsSource = readFileSync(
|
||||
new URL('./AppSideEffects.tsx', import.meta.url),
|
||||
'utf8',
|
||||
);
|
||||
const indexSource = readFileSync(new URL('../../index.tsx', import.meta.url), 'utf8');
|
||||
const startupEffectsSource = readFileSync(
|
||||
new URL('./useAppStartupEffects.ts', import.meta.url),
|
||||
'utf8',
|
||||
);
|
||||
const updateCheckSource = readFileSync(
|
||||
new URL('../state/useUpdateCheck.ts', import.meta.url),
|
||||
'utf8',
|
||||
);
|
||||
const portForwardingAutoStartSource = readFileSync(
|
||||
new URL('../state/usePortForwardingAutoStart.ts', import.meta.url),
|
||||
'utf8',
|
||||
);
|
||||
const appLockBridgeSource = readFileSync(
|
||||
new URL('../state/useAppLockBridge.ts', import.meta.url),
|
||||
'utf8',
|
||||
);
|
||||
|
||||
test('every renderer root mounts under StrictMode', () => {
|
||||
assert.match(indexSource, /import \{ StrictMode, Suspense, lazy \} from 'react'/);
|
||||
|
||||
const renderCalls = indexSource.match(/root\.render\(/g) ?? [];
|
||||
assert.equal(renderCalls.length, 5, 'main, settings, tray, terminal-popup and editor-window roots');
|
||||
|
||||
let cursor = 0;
|
||||
for (let index = 0; index < renderCalls.length; index += 1) {
|
||||
const renderAt = indexSource.indexOf('root.render(', cursor);
|
||||
assert.notEqual(renderAt, -1);
|
||||
const opener = indexSource.slice(renderAt, renderAt + 60);
|
||||
assert.match(opener, /root\.render\(\s*<StrictMode>/, `root.render #${index + 1} lacks StrictMode`);
|
||||
cursor = renderAt + 'root.render('.length;
|
||||
}
|
||||
});
|
||||
|
||||
test('clone-session payload is consumed once even if the effect re-runs', () => {
|
||||
const effectStart = appSideEffectsSource.indexOf('consumedNewWindowSessionRef');
|
||||
assert.notEqual(effectStart, -1, 'clone-session effect must latch on payload identity');
|
||||
const effectEnd = appSideEffectsSource.indexOf(
|
||||
'}, [createSessionFromCloneSource, isVaultInitialized, pendingNewWindowSession]);',
|
||||
effectStart,
|
||||
);
|
||||
assert.notEqual(effectEnd, -1);
|
||||
const body = appSideEffectsSource.slice(effectStart, effectEnd);
|
||||
|
||||
// A ref comparison is required: clearing the state only lands on the next
|
||||
// render, so a re-invoked effect still closes over the same payload.
|
||||
assert.match(body, /if \(consumedNewWindowSessionRef\.current === pendingNewWindowSession\) return;/);
|
||||
assert.ok(
|
||||
body.indexOf('consumedNewWindowSessionRef.current = pending')
|
||||
< body.indexOf('createSessionFromCloneSource(pending.sourceSession'),
|
||||
'payload must be marked consumed before the clone is created',
|
||||
);
|
||||
});
|
||||
|
||||
test('rendererReady is notified once per renderer process', () => {
|
||||
assert.match(appLockBridgeSource, /^let rendererReadySent = false;$/m);
|
||||
const guardAt = appLockBridgeSource.indexOf('if (rendererReadySent) return;');
|
||||
assert.notEqual(guardAt, -1);
|
||||
const guarded = appLockBridgeSource.slice(guardAt, guardAt + 200);
|
||||
assert.match(guarded, /rendererReadySent = true;/);
|
||||
assert.match(guarded, /netcattyBridge\.get\(\)\?\.rendererReady\?\.\(\)/);
|
||||
assert.ok(
|
||||
guarded.indexOf('rendererReadySent = true;')
|
||||
< guarded.indexOf('netcattyBridge.get()?.rendererReady?.()'),
|
||||
'the latch must be set before the IPC call so a re-entrant effect is blocked',
|
||||
);
|
||||
});
|
||||
|
||||
test('update-available toast latches on the release version', () => {
|
||||
const latchAt = startupEffectsSource.indexOf('toastedUpdateVersionRef');
|
||||
assert.notEqual(latchAt, -1);
|
||||
assert.match(startupEffectsSource, /const toastedUpdateVersionRef = useRef<string \| null>\(null\)/);
|
||||
assert.match(startupEffectsSource, /if \(toastedUpdateVersionRef\.current === version\) return;/);
|
||||
|
||||
const guardAt = startupEffectsSource.indexOf('if (toastedUpdateVersionRef.current === version) return;');
|
||||
const toastAt = startupEffectsSource.indexOf('toast.info(', guardAt);
|
||||
assert.notEqual(toastAt, -1);
|
||||
assert.ok(guardAt < toastAt, 'the version latch must gate the toast call');
|
||||
});
|
||||
|
||||
test('port-forward auto-start runs once across a StrictMode double effect', () => {
|
||||
assert.match(
|
||||
portForwardingAutoStartSource,
|
||||
/const autoStartExecutedRef = useRef\(false\);/,
|
||||
'the launch auto-start needs a module-render latch, not just an effect dep list',
|
||||
);
|
||||
|
||||
const effectStart = portForwardingAutoStartSource.indexOf('if (autoStartExecutedRef.current) return;');
|
||||
assert.notEqual(effectStart, -1, 'the effect must bail out when the latch is already set');
|
||||
const effectEnd = portForwardingAutoStartSource.indexOf(
|
||||
'}, [\n enabled,\n isVaultInitialized,\n runAutoStart,\n ]);',
|
||||
effectStart,
|
||||
);
|
||||
assert.notEqual(effectEnd, -1, 'auto-start effect dep list moved; update this contract');
|
||||
const body = portForwardingAutoStartSource.slice(effectStart, effectEnd);
|
||||
|
||||
// StrictMode invokes the effect twice with the same render's closure, so the
|
||||
// latch has to be written before the async run is kicked off — awaiting or
|
||||
// deferring the write would let the second invoke start a duplicate tunnel.
|
||||
const latchAt = body.indexOf('autoStartExecutedRef.current = true;');
|
||||
const runAt = body.indexOf('void runAutoStart();');
|
||||
assert.notEqual(latchAt, -1);
|
||||
assert.notEqual(runAt, -1);
|
||||
assert.ok(latchAt < runAt, 'the latch must be set before runAutoStart() is called');
|
||||
|
||||
// The vault gate must also sit before the latch: latching on a pre-hydration
|
||||
// invoke would permanently suppress the real auto-start.
|
||||
assert.ok(
|
||||
body.indexOf('if (!isVaultInitialized) return;') < latchAt,
|
||||
'the vault gate must precede the latch write',
|
||||
);
|
||||
});
|
||||
|
||||
test('cancelled startup update check resets its latch instead of skipping forever', () => {
|
||||
const scheduleAt = updateCheckSource.indexOf('let checkArmed = true;');
|
||||
assert.notEqual(scheduleAt, -1);
|
||||
const tail = updateCheckSource.slice(scheduleAt);
|
||||
|
||||
// The latch is only meaningful once the timer actually fires; a cleanup that
|
||||
// cancels it beforehand must let the next effect schedule again.
|
||||
assert.match(tail, /startupCheckTimeoutRef\.current = setTimeout\(async \(\) => \{\s*\n\s*checkArmed = false;/);
|
||||
assert.match(tail, /if \(checkArmed\) \{\s*\n\s*hasCheckedOnStartupRef\.current = false;\s*\n\s*\}/);
|
||||
});
|
||||
|
||||
test('terminal popup config survives StrictMode unsubscribe/resubscribe', () => {
|
||||
const preloadSource = readFileSync(new URL('../../electron/preload.cjs', import.meta.url), 'utf8');
|
||||
const apiSource = readFileSync(new URL('../../electron/preload/api.cjs', import.meta.url), 'utf8');
|
||||
|
||||
assert.match(preloadSource, /lastPayload:\s*null/);
|
||||
assert.match(
|
||||
preloadSource,
|
||||
/terminalPopupConfigState\.lastPayload = payload/,
|
||||
'incoming popup config must be retained beyond the one-shot pending slot',
|
||||
);
|
||||
|
||||
const subscribeAt = apiSource.indexOf('onTerminalPopupConfig:');
|
||||
assert.notEqual(subscribeAt, -1);
|
||||
const subscribe = apiSource.slice(subscribeAt, subscribeAt + 700);
|
||||
assert.match(
|
||||
subscribe,
|
||||
/terminalPopupConfigState\.pending \?\? terminalPopupConfigState\.lastPayload/,
|
||||
'resubscribe must replay lastPayload after pending was drained',
|
||||
);
|
||||
assert.match(subscribe, /terminalPopupConfigState\.pending = null/);
|
||||
assert.doesNotMatch(
|
||||
subscribe,
|
||||
/terminalPopupConfigState\.lastPayload = null/,
|
||||
'StrictMode remount must not clear lastPayload on subscribe',
|
||||
);
|
||||
});
|
||||
|
||||
test('vault init cancels the superseded StrictMode effect before publishing ready', () => {
|
||||
const vaultSource = readFileSync(
|
||||
new URL('../state/useVaultState.ts', import.meta.url),
|
||||
'utf8',
|
||||
);
|
||||
const initAt = vaultSource.indexOf('let cancelled = false;');
|
||||
assert.notEqual(initAt, -1, 'vault init must track cancellation');
|
||||
const initSlice = vaultSource.slice(initAt, initAt + 20000);
|
||||
assert.match(
|
||||
initSlice,
|
||||
/return \(\) => \{\s*\n\s*cancelled = true;\s*\n\s*resolveTerminalDataReady\(\);\s*\n\s*\};/,
|
||||
'StrictMode cleanup cancels init and unblocks the terminal-data ready promise',
|
||||
);
|
||||
assert.match(
|
||||
initSlice,
|
||||
/if \(!cancelled\) \{\s*\n\s*setIsInitialized\(true\);\s*\n\s*setVaultInitialized\(true\);\s*\n\s*\}/,
|
||||
'only the surviving init may mark the vault ready',
|
||||
);
|
||||
assert.match(initSlice, /if \(cancelled\) return;/);
|
||||
});
|
||||
|
||||
test('global hotkey registration cleans up across StrictMode remount', () => {
|
||||
const systemEffectsSource = readFileSync(
|
||||
new URL('../state/systemSettingsEffects.ts', import.meta.url),
|
||||
'utf8',
|
||||
);
|
||||
const hotkeyAt = systemEffectsSource.indexOf('Persist and sync toggle window hotkey setting');
|
||||
assert.notEqual(hotkeyAt, -1);
|
||||
const hotkeyEffect = systemEffectsSource.slice(hotkeyAt, hotkeyAt + 2200);
|
||||
assert.match(hotkeyEffect, /let cancelled = false;/);
|
||||
assert.match(hotkeyEffect, /if \(cancelled\) return;/);
|
||||
assert.match(
|
||||
hotkeyEffect,
|
||||
/if \(didRegister\) \{\s*\n\s*bridge\?\.unregisterGlobalHotkey/,
|
||||
'cleanup must unregister a registration started by this effect',
|
||||
);
|
||||
// Early return before notify must not skip returning the cleanup function.
|
||||
assert.doesNotMatch(
|
||||
hotkeyEffect,
|
||||
/if \(!persistMountedRef\.current\) return;\s*\n\s*notifySettingsChanged/,
|
||||
);
|
||||
});
|
||||
|
||||
test('settings persistMountedRef resets on StrictMode cleanup', () => {
|
||||
const settingsSource = readFileSync(
|
||||
new URL('../state/useSettingsState.ts', import.meta.url),
|
||||
'utf8',
|
||||
);
|
||||
const markAt = settingsSource.indexOf('Mark persist effects mounted AFTER all persist useEffects');
|
||||
assert.notEqual(markAt, -1);
|
||||
const markEffect = settingsSource.slice(markAt, markAt + 500);
|
||||
assert.match(markEffect, /persistMountedRef\.current = true;/);
|
||||
assert.match(
|
||||
markEffect,
|
||||
/return \(\) => \{\s*\n\s*persistMountedRef\.current = false;\s*\n\s*\};/,
|
||||
'remount must treat boot as a fresh mount, not a settings change',
|
||||
);
|
||||
});
|
||||
|
||||
test('tray panel connect flush latches against StrictMode double invoke', () => {
|
||||
const sideEffectsSource = readFileSync(
|
||||
new URL('./AppSideEffects.tsx', import.meta.url),
|
||||
'utf8',
|
||||
);
|
||||
assert.match(sideEffectsSource, /pendingTrayConnectFlushKeyRef/);
|
||||
assert.match(
|
||||
sideEffectsSource,
|
||||
/if \(pendingTrayConnectFlushKeyRef\.current === flushKey\) return;/,
|
||||
);
|
||||
});
|
||||
|
||||
test('ssh transport idle TTL notify latches against StrictMode double invoke', () => {
|
||||
const settingsSource = readFileSync(
|
||||
new URL('../state/useSettingsState.ts', import.meta.url),
|
||||
'utf8',
|
||||
);
|
||||
assert.match(settingsSource, /lastPushedSshTransportIdleTtlRef/);
|
||||
assert.match(
|
||||
settingsSource,
|
||||
/if \(lastPushedSshTransportIdleTtlRef\.current === sshTransportIdleTtlMs\) return;/,
|
||||
);
|
||||
assert.match(
|
||||
settingsSource,
|
||||
/lastPushedSshTransportIdleTtlRef\.current = sshTransportIdleTtlMs;/,
|
||||
);
|
||||
});
|
||||
|
||||
test('terminal selection Ask-AI payload is consumed once under StrictMode', () => {
|
||||
const hostSource = readFileSync(
|
||||
new URL('../../components/terminalLayer/TerminalLayerSupport.tsx', import.meta.url),
|
||||
'utf8',
|
||||
);
|
||||
assert.match(hostSource, /consumedTerminalSelectionRequestIds/);
|
||||
assert.doesNotMatch(
|
||||
hostSource,
|
||||
/consumedTerminalSelectionRequestIdRef/,
|
||||
'component refs reset on StrictMode remount; use a module Set',
|
||||
);
|
||||
assert.match(
|
||||
hostSource,
|
||||
/if \(consumedTerminalSelectionRequestIds\.has\(pendingTerminalSelection\.requestId\)\)/,
|
||||
);
|
||||
const latchAt = hostSource.indexOf('markTerminalSelectionRequestConsumed(pendingTerminalSelection.requestId)');
|
||||
const draftAt = hostSource.indexOf('updateDraft(scopeKey, defaultAgentId');
|
||||
assert.ok(latchAt > 0 && draftAt > latchAt, 'must latch before mutating the draft');
|
||||
});
|
||||
|
||||
test('Codex App Server interaction bridge is app-singleton like MCP approvals', () => {
|
||||
assert.match(appSource, /setupCodexAppServerInteractionBridge/);
|
||||
const panelSource = readFileSync(
|
||||
new URL('../../components/AIChatSidePanel.tsx', import.meta.url),
|
||||
'utf8',
|
||||
);
|
||||
assert.doesNotMatch(
|
||||
panelSource,
|
||||
/setupCodexAppServerInteractionBridge/,
|
||||
'per-panel Codex IPC listeners fan out approvals under retained multi-tab mounts',
|
||||
);
|
||||
});
|
||||
@@ -1,30 +0,0 @@
|
||||
import assert from "node:assert/strict";
|
||||
import test from "node:test";
|
||||
|
||||
import { readFileSync } from "node:fs";
|
||||
|
||||
test("active chrome theme applies top tab vars and clears them before vault restore transition", () => {
|
||||
const chromeThemeSource = readFileSync(new URL("../state/useActiveChromeTheme.ts", import.meta.url), "utf8");
|
||||
const syncSource = readFileSync(new URL("../state/activeChromeThemeSync.ts", import.meta.url), "utf8");
|
||||
const effectsSource = readFileSync(new URL("../../components/terminalLayer/useTerminalLayerEffects.ts", import.meta.url), "utf8");
|
||||
|
||||
assert.match(chromeThemeSource, /applyTopTabsChromeThemeVars\(theme\)/);
|
||||
assert.match(chromeThemeSource, /resolveReadableForegroundForHsl\(cursor\)/);
|
||||
const restoreBlock = chromeThemeSource.match(
|
||||
/clearTopTabsChromeThemeVars\(\);\s*runThemeTransition\(\(\) => \{\s*removeActiveChromeTheme\(\);/,
|
||||
)?.[0] ?? "";
|
||||
assert.notEqual(restoreBlock, "", "top tab vars must clear before the vault restore transition starts");
|
||||
assert.match(syncSource, /activeTabId === 'vault' \|\| activeTabId === 'sftp'\)[\s\S]*clearTopTabsChromeThemeVars\(\)/);
|
||||
assert.match(effectsSource, /if \(!isTerminalLayerVisible\) \{[\s\S]*clearTopTabsPreviewVars\(\)/);
|
||||
});
|
||||
|
||||
test("top tabs chrome theme keeps accent foreground in sync", () => {
|
||||
const source = readFileSync(new URL("./topTabsChromeTheme.ts", import.meta.url), "utf8");
|
||||
const supportSource = readFileSync(new URL("../../components/terminalLayer/TerminalLayerSupport.tsx", import.meta.url), "utf8");
|
||||
|
||||
assert.match(source, /--primary-foreground/);
|
||||
assert.match(source, /--accent-foreground/);
|
||||
assert.match(source, /resolveReadableForegroundForHsl\(accent\)/);
|
||||
assert.match(supportSource, /removeStylePropertyIfSet\(tabsRoot, '--primary-foreground'\)/);
|
||||
assert.match(supportSource, /removeStylePropertyIfSet\(tabsRoot, '--accent-foreground'\)/);
|
||||
});
|
||||
@@ -53,6 +53,8 @@ for (const accept of [false, true]) {
|
||||
{ id: "already-paused", status: "paused" },
|
||||
{ id: "pausing", status: "pausing" },
|
||||
{ id: "interrupted", status: "interrupted" },
|
||||
{ id: "packed-running", status: "transferring", controlKind: "packed-download", resumable: false },
|
||||
{ id: "packed-queued", status: "queued", controlKind: "packed-download", resumable: false },
|
||||
{ id: "child", parentTaskId: "running", status: "transferring" },
|
||||
],
|
||||
}) as unknown as ReturnType<typeof sftpTransferCenterStore.getSnapshot>);
|
||||
@@ -110,6 +112,44 @@ for (const accept of [false, true]) {
|
||||
});
|
||||
}
|
||||
|
||||
for (const accept of [false, true]) {
|
||||
test(`packed-only quit still asks for confirmation without pausing or resuming (${accept ? "accept" : "cancel"})`, async (t) => {
|
||||
const previousWindow = Object.getOwnPropertyDescriptor(globalThis, "window");
|
||||
const previousAct = Object.getOwnPropertyDescriptor(globalThis, "IS_REACT_ACT_ENVIRONMENT");
|
||||
let renderer: ReactTestRenderer | undefined;
|
||||
let prompts = 0;
|
||||
let query!: () => Promise<void>;
|
||||
const reports: Array<[boolean, string | undefined]> = [];
|
||||
Object.defineProperty(globalThis, "IS_REACT_ACT_ENVIRONMENT", { configurable: true, value: true });
|
||||
Object.defineProperty(globalThis, "window", { configurable: true, value: {
|
||||
confirm() { prompts++; return accept; },
|
||||
} });
|
||||
t.after(async () => {
|
||||
await act(async () => renderer?.unmount());
|
||||
if (previousWindow) Object.defineProperty(globalThis, "window", previousWindow); else Reflect.deleteProperty(globalThis, "window");
|
||||
if (previousAct) Object.defineProperty(globalThis, "IS_REACT_ACT_ENVIRONMENT", previousAct); else Reflect.deleteProperty(globalThis, "IS_REACT_ACT_ENVIRONMENT");
|
||||
});
|
||||
t.mock.method(sftpTransferCenterStore, "getSnapshot", () => ({
|
||||
activeCount: 1, queuedCount: 0, attentionCount: 0,
|
||||
tasks: [{ ...makeTask("packed", "transferring"), controlKind: "packed-download", resumable: false }],
|
||||
}));
|
||||
t.mock.method(sftpTransferCenterStore, "pause", async () => { assert.fail("packed downloads cannot be paused"); });
|
||||
t.mock.method(sftpTransferCenterStore, "resume", async () => { assert.fail("packed selections cannot be replayed"); });
|
||||
t.mock.method(netcattyBridge, "get", () => ({
|
||||
onCheckDirtyEditors(callback: typeof query) { query = callback; return () => {}; },
|
||||
reportDirtyEditorsResult(dirty: boolean, reason?: string) { reports.push([dirty, reason]); },
|
||||
}));
|
||||
function Probe() {
|
||||
useAppStartupEffects({ enabled: false, updateState: {}, sessions: [], hosts: [], keys: [], identities: [], knownHosts: [], proxyProfiles: [], groupConfigs: [], workspaces: [], portForwardingRules: [], t: (key: string) => key });
|
||||
return null;
|
||||
}
|
||||
await act(async () => { renderer = create(React.createElement(Probe)); });
|
||||
await query();
|
||||
assert.equal(prompts, 1);
|
||||
assert.deepEqual(reports, [[true, "transfers"], accept ? [false, undefined] : [true, "transfers"]]);
|
||||
});
|
||||
}
|
||||
|
||||
for (const outcome of ["pause-rejected", "pause-expired", "prompt-expired"] as const) {
|
||||
test(`transfer quit refuses ${outcome} and resumes only the formerly active task`, async (t) => {
|
||||
const previousWindow = Object.getOwnPropertyDescriptor(globalThis, "window");
|
||||
@@ -250,3 +290,71 @@ test("retry Cancel preserves the expired attempt auto-resume ownership", async (
|
||||
assert.equal(resumes, 1, "Cancel must restore work running before the first attempt");
|
||||
assert.deepEqual(replies.at(-1), { dirty: true, requestId: "retry" });
|
||||
});
|
||||
|
||||
test("stale listActivePackedDownloads snapshot cannot resurrect a packed transfer settled while in flight", async (t) => {
|
||||
const previousAct = Object.getOwnPropertyDescriptor(globalThis, "IS_REACT_ACT_ENVIRONMENT");
|
||||
Object.defineProperty(globalThis, "IS_REACT_ACT_ENVIRONMENT", { configurable: true, value: true });
|
||||
let renderer: ReactTestRenderer | undefined;
|
||||
const raceId = "packed-snapshot-race-settled";
|
||||
const liveId = "packed-snapshot-race-live";
|
||||
let emitGlobal!: (event: Record<string, unknown>) => void;
|
||||
let resolveActive!: (events: Array<Record<string, unknown>>) => void;
|
||||
const activePromise = new Promise<Array<Record<string, unknown>>>((resolve) => {
|
||||
resolveActive = resolve;
|
||||
});
|
||||
t.after(async () => {
|
||||
await act(async () => renderer?.unmount());
|
||||
sftpTransferCenterStore.dismiss(raceId);
|
||||
sftpTransferCenterStore.dismiss(liveId);
|
||||
if (previousAct) Object.defineProperty(globalThis, "IS_REACT_ACT_ENVIRONMENT", previousAct);
|
||||
else Reflect.deleteProperty(globalThis, "IS_REACT_ACT_ENVIRONMENT");
|
||||
});
|
||||
t.mock.method(netcattyBridge, "get", () => ({
|
||||
onGlobalSftpTransferEvent: (cb: typeof emitGlobal) => { emitGlobal = cb; return () => {}; },
|
||||
listActivePackedDownloads: () => activePromise,
|
||||
}));
|
||||
function Probe() {
|
||||
useAppStartupEffects({
|
||||
enabled: false, updateState: {}, sessions: [], hosts: [], keys: [], identities: [],
|
||||
knownHosts: [], proxyProfiles: [], groupConfigs: [], workspaces: [], portForwardingRules: [],
|
||||
t: (key: string) => key,
|
||||
});
|
||||
return null;
|
||||
}
|
||||
await act(async () => { renderer = create(React.createElement(Probe)); });
|
||||
|
||||
// Transfer completes before the active snapshot promise resolves; this window
|
||||
// had no prior row for raceId so the completion event alone creates nothing.
|
||||
emitGlobal({
|
||||
type: "completed",
|
||||
transferId: raceId,
|
||||
controlKind: "packed-download",
|
||||
transferred: 256,
|
||||
totalBytes: 256,
|
||||
endedAt: Date.now(),
|
||||
});
|
||||
assert.equal(sftpTransferCenterStore.getTask(raceId), undefined);
|
||||
|
||||
// Now the stale snapshot arrives containing both the settled raceId and a genuinely live transfer.
|
||||
await act(async () => {
|
||||
resolveActive([
|
||||
{
|
||||
type: "progress", transferId: raceId, direction: "download", fileName: "compose",
|
||||
sourcePath: "/srv/compose", targetPath: "/tmp/compose", isDirectory: true,
|
||||
controlKind: "packed-download", origin: "manual", retryable: false, resumable: false,
|
||||
transferred: 128, phase: "transferring",
|
||||
},
|
||||
{
|
||||
type: "progress", transferId: liveId, direction: "download", fileName: "still-running",
|
||||
sourcePath: "/srv/still-running", targetPath: "/tmp/still-running", isDirectory: true,
|
||||
controlKind: "packed-download", origin: "manual", retryable: false, resumable: false,
|
||||
transferred: 64, phase: "extracting",
|
||||
},
|
||||
]);
|
||||
await activePromise;
|
||||
});
|
||||
|
||||
assert.equal(sftpTransferCenterStore.getTask(raceId), undefined, "settled transfer must not be recreated as stuck transferring");
|
||||
assert.equal(sftpTransferCenterStore.getTask(liveId)?.status, "transferring");
|
||||
assert.equal(sftpTransferCenterStore.getTask(liveId)?.phase, "extracting");
|
||||
});
|
||||
@@ -315,7 +315,8 @@ export function useAppStartupEffects(ctx: StartupEffectsContext) {
|
||||
status: s.status,
|
||||
workspaceId: s.workspaceId,
|
||||
workspaceTitle: ws?.title,
|
||||
aiHidden: s.hiddenFromTabs === true,
|
||||
aiHidden: s.hiddenFromTabs === true && !s.poppedOut,
|
||||
poppedOut: s.poppedOut === true,
|
||||
};
|
||||
});
|
||||
|
||||
@@ -393,7 +394,10 @@ export function useAppStartupEffects(ctx: StartupEffectsContext) {
|
||||
!task.parentTaskId && !["completed", "failed", "cancelled"].includes(task.status)
|
||||
));
|
||||
if (unfinishedTasks.length > 0) {
|
||||
const resumable = unfinishedTasks.filter((task) => (
|
||||
// Packed streams cannot pause or resume. Keep them in the quit
|
||||
// confirmation, but let them run until the owner actually closes.
|
||||
const pausableTasks = unfinishedTasks.filter((task) => task.controlKind !== "packed-download");
|
||||
const resumable = pausableTasks.filter((task) => (
|
||||
task.status === "transferring" || task.status === "queued"
|
||||
|| previousAttempt?.resumeTaskIds.has(task.id)
|
||||
));
|
||||
@@ -410,7 +414,7 @@ export function useAppStartupEffects(ctx: StartupEffectsContext) {
|
||||
};
|
||||
transferQuitPendingRef.current = attempt;
|
||||
bridge.reportDirtyEditorsResult?.(true, reason, { ...response, pending: true });
|
||||
const paused = await Promise.allSettled(unfinishedTasks.map((task) => sftpTransferCenterStore.pause(task.id)));
|
||||
const paused = await Promise.allSettled(pausableTasks.map((task) => sftpTransferCenterStore.pause(task.id)));
|
||||
if (transferQuitPendingRef.current !== attempt) return;
|
||||
const expired = () => request && Date.now() >= request.deadline;
|
||||
if (!expired() && paused.every((result) => result.status === "fulfilled")) {
|
||||
@@ -451,10 +455,34 @@ export function useAppStartupEffects(ctx: StartupEffectsContext) {
|
||||
}, [enabled, t]);
|
||||
|
||||
useEffect(() => {
|
||||
let active = true;
|
||||
let pendingActivePackedSync = true;
|
||||
// Any global event observed while the initial active-packed snapshot is in
|
||||
// flight is strictly newer than (or equal to) the snapshot; skip replaying
|
||||
// those IDs so a settled transfer cannot be recreated as stuck "transferring".
|
||||
const observedPackedEventIds = new Set<string>();
|
||||
const bridge = netcattyBridge.get();
|
||||
const unsubscribeEvents = bridge?.onGlobalSftpTransferEvent?.((event) => {
|
||||
if (pendingActivePackedSync && event?.transferId) {
|
||||
observedPackedEventIds.add(event.transferId);
|
||||
}
|
||||
sftpTransferCenterStore.ingestBackgroundEvent(event);
|
||||
});
|
||||
void bridge?.listActivePackedDownloads?.().then((activePacked) => {
|
||||
pendingActivePackedSync = false;
|
||||
if (!active || !Array.isArray(activePacked)) {
|
||||
observedPackedEventIds.clear();
|
||||
return;
|
||||
}
|
||||
for (const event of activePacked) {
|
||||
if (observedPackedEventIds.has(event.transferId)) continue;
|
||||
sftpTransferCenterStore.ingestBackgroundEvent(event);
|
||||
}
|
||||
observedPackedEventIds.clear();
|
||||
}).catch(() => {
|
||||
pendingActivePackedSync = false;
|
||||
observedPackedEventIds.clear();
|
||||
});
|
||||
const restartBackgroundTransfer = async (taskId: string, fromBeginning: boolean) => {
|
||||
const task = sftpTransferCenterStore.getSnapshot().tasks.find((candidate) => candidate.id === taskId);
|
||||
if (!task || !bridge?.openSftpForSession || !bridge.startStreamTransfer) return;
|
||||
@@ -591,6 +619,9 @@ export function useAppStartupEffects(ctx: StartupEffectsContext) {
|
||||
},
|
||||
});
|
||||
return () => {
|
||||
active = false;
|
||||
pendingActivePackedSync = false;
|
||||
observedPackedEventIds.clear();
|
||||
unsubscribeEvents?.();
|
||||
unregisterOwner();
|
||||
};
|
||||
|
||||
@@ -7,7 +7,6 @@ import type {
|
||||
import {
|
||||
cloudSyncPayloadsEqual,
|
||||
convergentConflictAddressKey,
|
||||
materializeSyncPayloadFromConvergentState,
|
||||
planConvergentSyncMigration,
|
||||
refreshConvergentSyncMigrationPlan,
|
||||
resolveConvergentFieldConflict,
|
||||
@@ -238,12 +237,3 @@ export async function initializePreparedConvergentMigration(options: {
|
||||
});
|
||||
return prepared.plan.preview;
|
||||
}
|
||||
|
||||
export async function prepareConvergentSyncDowngrade(
|
||||
manager: CloudSyncManager = getCloudSyncManager(),
|
||||
now = Date.now(),
|
||||
): Promise<SyncPayload> {
|
||||
const replica = await manager.loadConvergentReplica();
|
||||
if (!replica) throw new Error('No convergent sync replica is available to downgrade');
|
||||
return materializeSyncPayloadFromConvergentState(replica.state, { syncedAt: now });
|
||||
}
|
||||
@@ -1,49 +0,0 @@
|
||||
import test from 'node:test';
|
||||
import assert from 'node:assert/strict';
|
||||
|
||||
import en from '../locales/en.ts';
|
||||
import ru from '../locales/ru.ts';
|
||||
import es from '../locales/es.ts';
|
||||
import zhCN from '../locales/zh-CN.ts';
|
||||
import zhTW from '../locales/zh-TW.ts';
|
||||
|
||||
const keys = [
|
||||
'cloudSync.convergent.title',
|
||||
'cloudSync.convergent.experimental',
|
||||
'cloudSync.convergent.desc',
|
||||
'cloudSync.convergent.active',
|
||||
'cloudSync.convergent.paused',
|
||||
'cloudSync.convergent.enabled',
|
||||
'cloudSync.convergent.preview.title',
|
||||
'cloudSync.convergent.preview.entities',
|
||||
'cloudSync.convergent.preview.providers',
|
||||
'cloudSync.convergent.preview.conflicts',
|
||||
'cloudSync.convergent.preview.compatibility',
|
||||
'cloudSync.convergent.preview.confirm',
|
||||
'cloudSync.convergent.preview.status.ready',
|
||||
'cloudSync.convergent.preview.status.empty',
|
||||
'cloudSync.convergent.preview.status.unavailable',
|
||||
'cloudSync.convergent.preview.status.blocked',
|
||||
'cloudSync.convergent.preview.schema',
|
||||
'cloudSync.convergent.field.presence',
|
||||
'cloudSync.convergent.field.position',
|
||||
'cloudSync.convergent.conflicts.title',
|
||||
'cloudSync.convergent.conflict.empty',
|
||||
'cloudSync.convergent.conflict.secretSet',
|
||||
'cloudSync.convergent.conflict.current',
|
||||
'cloudSync.convergent.conflict.choose',
|
||||
'cloudSync.convergent.conflict.resolved',
|
||||
'cloudSync.convergent.downgrade.desc',
|
||||
'cloudSync.convergent.downgrade.button',
|
||||
'cloudSync.convergent.downgrade.confirm',
|
||||
'cloudSync.convergent.downgrade.done',
|
||||
] as const;
|
||||
|
||||
test('convergent sync copy exists in every bundled locale', () => {
|
||||
for (const [locale, messages] of Object.entries({ en, ru, es, zhCN, zhTW })) {
|
||||
for (const key of keys) {
|
||||
assert.equal(typeof messages[key], 'string', `${locale} is missing ${key}`);
|
||||
assert.notEqual(messages[key], '', `${locale} has empty ${key}`);
|
||||
}
|
||||
}
|
||||
});
|
||||
@@ -1,64 +0,0 @@
|
||||
import test from 'node:test';
|
||||
import assert from 'node:assert/strict';
|
||||
|
||||
import en from '../locales/en.ts';
|
||||
import ru from '../locales/ru.ts';
|
||||
import es from '../locales/es.ts';
|
||||
import zhCN from '../locales/zh-CN.ts';
|
||||
import zhTW from '../locales/zh-TW.ts';
|
||||
|
||||
const keys = [
|
||||
'cloudSync.provider.disconnect',
|
||||
'cloudSync.provider.disconnect.confirmTitle',
|
||||
'cloudSync.provider.disconnect.confirmMessage',
|
||||
'cloudSync.provider.disconnect.confirmAction',
|
||||
'cloudSync.provider.disconnect.toastTitle',
|
||||
'cloudSync.provider.disconnect.cloudRemains',
|
||||
'cloudSync.provider.disconnect.failed',
|
||||
] as const;
|
||||
|
||||
test('disconnect copy exists in every bundled locale', () => {
|
||||
for (const [locale, messages] of Object.entries({ en, ru, es, zhCN, zhTW })) {
|
||||
for (const key of keys) {
|
||||
assert.equal(typeof messages[key], 'string', `${locale} is missing ${key}`);
|
||||
assert.notEqual(messages[key], '', `${locale} has empty ${key}`);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
test('disconnect confirm copy states that saved provider credentials are removed', () => {
|
||||
// The confirm dialog must explain the data consequence of disconnecting:
|
||||
// locally saved endpoint + credentials removal, not just "stops syncing".
|
||||
const expected = [
|
||||
[en, 'will be removed'],
|
||||
[es, 'eliminarán'],
|
||||
[ru, 'будут удалены'],
|
||||
[zhCN, '删除'],
|
||||
[zhTW, '刪除'],
|
||||
] as const;
|
||||
for (const [messages, fragment] of expected) {
|
||||
assert.ok(
|
||||
(messages['cloudSync.provider.disconnect.confirmMessage'] as string).includes(fragment),
|
||||
`confirmMessage should mention credential removal: ${fragment}`,
|
||||
);
|
||||
}
|
||||
});
|
||||
|
||||
test('disconnect toast copy explains the cloud copy is retained', () => {
|
||||
for (const [locale, messages] of Object.entries({ en, ru, es, zhCN, zhTW })) {
|
||||
assert.ok(
|
||||
(messages['cloudSync.provider.disconnect.cloudRemains'] as string).includes(
|
||||
'{name}',
|
||||
),
|
||||
`${locale} cloudRemains hint should reference the provider name`,
|
||||
);
|
||||
}
|
||||
});
|
||||
|
||||
test('disconnect copy distinguishes login cleanup from retained local data', () => {
|
||||
assert.match(en['cloudSync.provider.disconnect.confirmMessage'], /backup history and sync encryption password stay here/);
|
||||
assert.doesNotMatch(en['cloudSync.provider.disconnect.cloudRemains'], /change.*password/);
|
||||
for (const messages of [en, ru, es, zhCN, zhTW]) {
|
||||
assert.ok(messages['cloudSync.provider.disconnect.failed'].includes('{name}'));
|
||||
}
|
||||
});
|
||||
@@ -1,37 +0,0 @@
|
||||
import test from "node:test";
|
||||
import assert from "node:assert/strict";
|
||||
|
||||
import en from "../locales/en.ts";
|
||||
import ru from "../locales/ru.ts";
|
||||
import es from "../locales/es.ts";
|
||||
import zhCN from "../locales/zh-CN.ts";
|
||||
|
||||
const strategyKeys = [
|
||||
"cloudSync.strategy.title",
|
||||
"cloudSync.strategy.desc",
|
||||
"cloudSync.strategy.smartMerge",
|
||||
"cloudSync.strategy.smartMergeDesc",
|
||||
"cloudSync.strategy.smartMergePreserve",
|
||||
"cloudSync.strategy.smartMergePreserveDesc",
|
||||
"cloudSync.strategy.preferCloud",
|
||||
"cloudSync.strategy.preferCloudDesc",
|
||||
"cloudSync.strategy.preferLocal",
|
||||
"cloudSync.strategy.preferLocalDesc",
|
||||
"cloudSync.aiSessions.title",
|
||||
"cloudSync.aiSessions.desc",
|
||||
"cloudSync.aiSessions.compatibility",
|
||||
"cloudSync.aiSessions.enableFailed",
|
||||
] as const;
|
||||
|
||||
test("cloud sync strategy copy exists in every bundled locale", () => {
|
||||
for (const [locale, messages] of Object.entries({ en, ru, es, zhCN })) {
|
||||
for (const key of strategyKeys) {
|
||||
assert.equal(
|
||||
typeof messages[key],
|
||||
"string",
|
||||
`${locale} is missing ${key}`,
|
||||
);
|
||||
assert.notEqual(messages[key], "", `${locale} has empty ${key}`);
|
||||
}
|
||||
}
|
||||
});
|
||||
@@ -1,27 +0,0 @@
|
||||
import assert from 'node:assert/strict';
|
||||
import test from 'node:test';
|
||||
|
||||
import en from './en.ts';
|
||||
import ru from './ru.ts';
|
||||
import es from './es.ts';
|
||||
import zhCN from './zh-CN.ts';
|
||||
import zhTW from './zh-TW.ts';
|
||||
|
||||
const STEER_KEYS = [
|
||||
'ai.codex.steer.addInstruction',
|
||||
'ai.codex.steer.sending',
|
||||
'ai.codex.steer.placeholder',
|
||||
'ai.codex.steer.notSteerableReview',
|
||||
'ai.codex.steer.notSteerableCompact',
|
||||
'ai.codex.steer.busy',
|
||||
'ai.codex.steer.inactive',
|
||||
'ai.codex.steer.unsupported',
|
||||
'ai.codex.steer.failed',
|
||||
] as const;
|
||||
|
||||
test('Codex steering UI is localized in every supported locale', () => {
|
||||
for (const [name, messages] of Object.entries({ en, es, 'zh-CN': zhCN, 'zh-TW': zhTW, ru })) {
|
||||
const missing = STEER_KEYS.filter(key => !messages[key]);
|
||||
assert.deepEqual(missing, [], `${name} is missing Codex steering labels`);
|
||||
}
|
||||
});
|
||||
@@ -1,6 +1,8 @@
|
||||
import type { Messages } from '../types';
|
||||
|
||||
export const enAiMessages: Messages = {
|
||||
'ai.chat.iterationLimitReached': 'Tool-loop limit ({limit} iterations) reached. You can continue in this chat. Running terminal jobs are not stopped.',
|
||||
'ai.chat.continue': 'Continue',
|
||||
'ai.chat.attachmentContentUnavailable': 'Content not available on this device',
|
||||
// AI Settings
|
||||
'ai.agentSettings': 'Agent Settings',
|
||||
@@ -69,6 +71,9 @@ export const enAiMessages: Messages = {
|
||||
'ai.providers.apiKey': 'API Key',
|
||||
'ai.providers.apiKey.placeholder': 'Enter API key',
|
||||
'ai.providers.apiKey.decrypting': 'Decrypting...',
|
||||
'ai.providers.opencodeGo.help': 'Paste an OpenCode API key to use OpenCode Go. The base URL and model list are configured automatically.',
|
||||
'ai.providers.opencodeGo.getKey': 'Get an API key',
|
||||
'ai.providers.fixedBaseUrl.help': 'Fixed by the provider. Netcatty chooses the endpoint path for each model automatically.',
|
||||
'ai.providers.baseUrl': 'Base URL',
|
||||
'ai.providers.baseUrl.anthropicHelp': 'Anthropic-compatible: host with or without /v1 (for example https://gateway.example or https://gateway.example/v1). Detection and chat both use /v1/models and /v1/messages.',
|
||||
'ai.providers.baseUrl.ollamaHelp': 'Local Ollama: http://localhost:11434/v1 (no API key). Ollama Cloud: https://ollama.com/v1 plus your cloud API key.',
|
||||
@@ -333,6 +338,7 @@ export const enAiMessages: Messages = {
|
||||
'ai.defaultAgent': 'Default Agent',
|
||||
'ai.defaultAgent.description': 'Agent to use when starting a new AI session',
|
||||
'ai.defaultAgent.catty': 'Catty (Built-in)',
|
||||
'ai.defaultAgent.unavailable': 'Unavailable',
|
||||
'ai.toolAccess.title': 'Tool Access',
|
||||
'ai.toolAccess.mode': 'Netcatty Access Mode',
|
||||
'ai.toolAccess.description': 'Choose how external agents access Netcatty sessions. MCP exposes the built-in server, while Skills + CLI points agents to the local Netcatty skill and CLI commands.',
|
||||
@@ -612,6 +618,23 @@ export const enAiMessages: Messages = {
|
||||
'ai.chat.rebindUsage': 'Usage: /rebind <number from /chats>',
|
||||
'ai.chat.rebindDone': 'Chat "{title}" rebound to this panel.',
|
||||
'ai.chat.rebindUnavailable': 'No rebind target in this panel scope.',
|
||||
'ai.chat.managerScopeTab': 'Current',
|
||||
'ai.chat.managerAllChatsTab': 'All',
|
||||
'ai.chat.managerSearchPlaceholder': 'Search chat titles…',
|
||||
'ai.chat.managerFilterAllAgents': 'All agents',
|
||||
'ai.chat.managerMoreActions': 'More actions',
|
||||
'ai.chat.managerOpen': 'Open in this panel',
|
||||
'ai.chat.managerOpenDisabled': 'Bound to another workspace or terminal — use move to transfer it',
|
||||
'ai.chat.managerRebind': 'Move to…',
|
||||
'ai.chat.managerRebindPick': 'Choose a terminal or workspace…',
|
||||
'ai.chat.managerRebindHere': 'Current panel',
|
||||
'ai.chat.managerRebindDone': 'Moved "{title}" to {target}.',
|
||||
'ai.chat.managerExportOne': 'Export this chat',
|
||||
'ai.chat.managerBadgeActive': 'Active',
|
||||
'ai.chat.managerBadgeIdle': 'Idle',
|
||||
'ai.chat.managerMessagesCount': '{n} messages',
|
||||
'ai.chat.managerDeleteTitle': 'Delete this chat?',
|
||||
'ai.chat.managerDeleteMessage': '"{title}" and its messages will be removed from every panel. This cannot be undone.',
|
||||
'ai.chat.justNow': 'Just now',
|
||||
'ai.chat.minutesAgo': '{n}m ago',
|
||||
'ai.chat.hoursAgo': '{n}h ago',
|
||||
@@ -729,9 +752,6 @@ export const enAiMessages: Messages = {
|
||||
'terminal.layer.theme': 'Theme',
|
||||
'terminal.layer.notes': 'Notes',
|
||||
'terminal.layer.aiChat': 'AI Chat',
|
||||
'terminal.layer.movePanelLeft': 'Move panel to left',
|
||||
'terminal.layer.movePanelRight': 'Move panel to right',
|
||||
'terminal.layer.movePanelBottom': 'Move panel to bottom',
|
||||
'terminal.layer.choosePanelPosition': 'Change position',
|
||||
'terminal.layer.dockLeft': 'Left',
|
||||
'terminal.layer.dockRight': 'Right',
|
||||
@@ -765,19 +785,15 @@ export const enAiMessages: Messages = {
|
||||
'terminal.layer.hostTree.details.protocol': 'Protocol',
|
||||
'terminal.layer.hostTree.details.group': 'Group',
|
||||
'terminal.layer.hostTree.details.tags': 'Tags',
|
||||
'terminal.layer.hostTree.details.lastConnected': 'Last connected',
|
||||
'topTabs.openQuickSwitcher': 'Open quick switcher',
|
||||
'topTabs.moreTabs': 'More tabs',
|
||||
'topTabs.aiAssistant': 'AI Assistant',
|
||||
'topTabs.newLocalTerminal': 'New Local Terminal',
|
||||
'topTabs.controlPanel': 'Quick controls',
|
||||
'topTabs.controlPanel.externalMcp': 'External MCP',
|
||||
'topTabs.controlPanel.theme': 'Theme',
|
||||
'topTabs.controlPanel.theme.light': 'Light',
|
||||
'topTabs.controlPanel.theme.dark': 'Dark',
|
||||
'topTabs.controlPanel.theme.system': 'System',
|
||||
'topTabs.externalMcp.enable': 'Enable External MCP',
|
||||
'topTabs.externalMcp.disable': 'Disable External MCP',
|
||||
'topTabs.windowOpacity': 'Window opacity',
|
||||
'topTabs.openSettings': 'Open Settings',
|
||||
'ai.chat.sessionHistory': 'Session history',
|
||||
|
||||
@@ -84,7 +84,6 @@ export const enCoreMessages: Messages = {
|
||||
'common.edit': 'Edit',
|
||||
'common.clear': 'Clear',
|
||||
'common.optional': 'Optional',
|
||||
'common.selectPlaceholder': 'Select...',
|
||||
'common.add': 'Add',
|
||||
'common.rename': 'Rename',
|
||||
'common.refresh': 'Refresh',
|
||||
@@ -124,11 +123,9 @@ export const enCoreMessages: Messages = {
|
||||
'field.label': 'Label',
|
||||
'field.type': 'Type',
|
||||
'auth.keyType': 'Type {type}',
|
||||
'auth.showAllKeys': 'Show all keys',
|
||||
|
||||
// Dialogs / prompts
|
||||
'confirm.deleteHost': 'Delete Host "{name}"?',
|
||||
'confirm.deleteIdentity': 'Delete Identity "{name}"?',
|
||||
'confirm.removeProvider': 'Remove provider "{name}"?',
|
||||
'confirm.closeBusyTerminal.title': 'Confirm close',
|
||||
'confirm.closeBusyTerminal.message': 'Process "{command}" is still running and will be terminated.',
|
||||
@@ -401,7 +398,6 @@ export const enCoreMessages: Messages = {
|
||||
'tray.status.inactive': 'Inactive',
|
||||
'tray.status.error': 'Error',
|
||||
'tray.status.unknown': 'Unknown',
|
||||
'tray.recentHosts': 'Recent Hosts',
|
||||
'tray.empty.title': 'Nothing here yet',
|
||||
'tray.empty.subtitle': 'Go connect to a server, they miss you 🚀',
|
||||
'tray.quit': 'Quit Netcatty',
|
||||
@@ -460,9 +456,6 @@ export const enCoreMessages: Messages = {
|
||||
'update.downloadFailed.message': 'Failed to download update. You can download it manually.',
|
||||
'update.needsSave.title': 'Unsaved Changes',
|
||||
'update.needsSave.message': 'Save your open editors first, then click Restart Now again to install the update.',
|
||||
'update.openReleases': 'Open Releases',
|
||||
'update.remindLater': 'Remind Later',
|
||||
'update.skipVersion': 'Skip This Version',
|
||||
|
||||
// Settings > Appearance
|
||||
'settings.appearance.uiTheme': 'UI Theme',
|
||||
@@ -912,7 +905,9 @@ Highlight the focused split pane:
|
||||
'settings.terminal.connection.temporaryNetworkDeviceMode': 'Network device mode for temporary connections',
|
||||
'settings.terminal.connection.temporaryNetworkDeviceMode.desc': 'SSH connections with no saved host, including external launches and quick connect, start in network device mode. Saved hosts and groups keep their own device type. Off by default.',
|
||||
'settings.terminal.connection.sshAutoReconnectEnabled': 'Automatically reconnect SSH sessions',
|
||||
'settings.terminal.connection.sshAutoReconnectEnabled.desc': 'When turned on, established SSH sessions that drop unexpectedly try to reconnect every 5 seconds until the tab is closed or the connection succeeds.',
|
||||
'settings.terminal.connection.sshAutoReconnectEnabled.desc': 'Retry unexpectedly disconnected SSH sessions at the configured interval until the tab is closed or the connection succeeds.',
|
||||
'settings.terminal.connection.sshAutoReconnectInterval': 'SSH reconnect interval (seconds)',
|
||||
'settings.terminal.connection.sshAutoReconnectInterval.desc': 'Wait between automatic reconnect attempts: 5–3600 seconds (default 5). Changes apply to the next scheduled attempt; an existing wait is unchanged.',
|
||||
'settings.terminal.connection.keepaliveInterval': 'Keepalive Interval',
|
||||
'settings.terminal.connection.keepaliveInterval.desc': 'How often (in seconds) to send SSH-level keepalive packets. Set to 0 to disable globally — note that individual hosts can override this in their own settings.',
|
||||
'settings.terminal.connection.keepaliveCountMax': 'Max unanswered keepalives',
|
||||
@@ -1083,8 +1078,6 @@ Highlight the focused split pane:
|
||||
'settings.shortcuts.binding.sftp-navigate-to': 'Navigate to Selected Directory',
|
||||
|
||||
// Context menus / common actions
|
||||
'action.newHost': 'New Host',
|
||||
'action.newSubfolder': 'New Subfolder',
|
||||
'action.copyPublicKey': 'Copy Public Key',
|
||||
'action.keyExport': 'Key Export',
|
||||
'action.edit': 'Edit',
|
||||
@@ -1319,12 +1312,9 @@ Highlight the focused split pane:
|
||||
"settings.plugins.manager.remove": "Uninstall",
|
||||
"settings.plugins.manager.removeNote": "Uninstall removes package code and local KV data. User-owned settings, secrets and sync sidecars are retained.",
|
||||
"settings.plugins.permissions.statusUnknown": "Status unknown",
|
||||
"plugins.sidebar.extensions": "Extension pages",
|
||||
"plugins.sidebar.selectTerminal": "Select an open terminal first.",
|
||||
"plugins.sidebar.loading": "Loading extension page…",
|
||||
"plugins.vault.loading": "Loading plugin page…",
|
||||
"plugins.vault.extensions": "Extensions",
|
||||
"plugins.vault.back": "Back to hosts",
|
||||
"plugins.interaction.title": "Plugin request",
|
||||
"plugins.interaction.sharing": "Text you share becomes available to this plugin and its granted capabilities, including network access. Reading does not approve a new network destination.",
|
||||
"plugins.interaction.input": "Input text",
|
||||
@@ -1473,6 +1463,7 @@ Highlight the focused split pane:
|
||||
'plugins.hostActions.selectionNote': 'Only the selected hosts\' saved labels, addresses, usernames, protocols, groups and tags are shared. Group selection includes only the hosts selected now. Later edit or connection requests follow this plugin\'s permission settings.',
|
||||
'plugins.hostActions.create': 'Review host draft',
|
||||
'plugins.hostActions.edit': 'Review host changes',
|
||||
'plugins.hostActions.streamNote': 'Allow this plugin to send and receive data at this destination through the selected SSH server. Addresses are resolved on that server. This may read or change database data. No terminal or startup scripts will run. SSH passwords and keys stay in the app. Select an SSH server to continue.',
|
||||
'plugins.hostActions.connect': 'Confirm connection',
|
||||
'plugins.hostActions.fieldDiff': 'Changes to save',
|
||||
'plugins.hostActions.defaultsWarning': 'Saved connection defaults apply. Changing a group can change inherited authentication, proxy settings and scripts.',
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
export const enScriptsMessages = {
|
||||
'scripts.meta.name': 'Name',
|
||||
'scripts.meta.language': 'Language',
|
||||
'scripts.meta.description': 'Description',
|
||||
'scripts.meta.descriptionPlaceholder': 'Optional notes about this script',
|
||||
'scripts.meta.trigger': 'Trigger',
|
||||
@@ -15,7 +14,6 @@ export const enScriptsMessages = {
|
||||
'scripts.actions.openEditor': 'Open editor',
|
||||
'scripts.actions.openEditorHint': 'Edit script in a larger window',
|
||||
'scripts.editor.modalTitle': 'Script editor',
|
||||
'scripts.editor.modalSubtitle': 'Edit metadata and script code in a larger workspace.',
|
||||
'scripts.editor.lineCount': '{count} lines',
|
||||
'scripts.editor.resize': 'Resize editor',
|
||||
'scripts.targets.hint': 'Selected groups are resolved dynamically, so hosts added later are included automatically.',
|
||||
@@ -86,17 +84,13 @@ export const enScriptsMessages = {
|
||||
'scripts.dialog.retry': 'Retry',
|
||||
'scripts.dialog.skip': 'Skip',
|
||||
'scripts.dialog.abort': 'Abort',
|
||||
'scripts.running.stepProgress': 'Step {current} / {total}',
|
||||
'scripts.running.determinateProgress': '{label} {current}/{total}',
|
||||
'scripts.running.progressFallback': 'Progress',
|
||||
'scripts.running.operationsCount': '{count} operations',
|
||||
'scripts.running.opsPrefix': '',
|
||||
'scripts.running.opsSuffix': ' operations',
|
||||
'scripts.running.elapsedLabel': 'Elapsed',
|
||||
'scripts.running.lastSentLabel': 'Sent:',
|
||||
'scripts.running.elapsed': '{elapsed}',
|
||||
'scripts.running.completedSummary': 'Completed · {count} operations · {elapsed}',
|
||||
'scripts.running.dismissHint': 'Tap close to dismiss',
|
||||
'scripts.running.dismiss': 'Close',
|
||||
'scripts.running.viewLogs': 'View logs',
|
||||
'scripts.running.logTitle': '{name} · Run log',
|
||||
@@ -111,26 +105,12 @@ export const enScriptsMessages = {
|
||||
'vault.nav.scripts': 'Scripts',
|
||||
'snippets.action.newScript': 'New automation script',
|
||||
'hostDetails.section.automation': 'Automation',
|
||||
'hostDetails.automation.loginScript': 'Login script',
|
||||
'hostDetails.automation.loginScriptPlaceholder': 'Select a script',
|
||||
'hostDetails.automation.none': 'None',
|
||||
'hostDetails.automation.outputTriggers': 'Output triggers',
|
||||
'hostDetails.automation.addTrigger': 'Add trigger',
|
||||
'hostDetails.automation.triggerPatternPlaceholder': 'Regex pattern',
|
||||
'hostDetails.automation.linkedScripts': 'Linked scripts',
|
||||
'hostDetails.automation.linkedScriptsEmpty': 'No scripts linked to this host yet.',
|
||||
'hostDetails.automation.linkScriptPlaceholder': 'Link existing script…',
|
||||
'hostDetails.automation.unlink': 'Unlink',
|
||||
'hostDetails.automation.equivalenceHint': 'Links add this host to the script\'s target list in Scripts. Both views stay in sync.',
|
||||
'hostDetails.automation.queueHint': 'Scripts run in order when this host connects. Global scripts run first, then this queue.',
|
||||
'hostDetails.automation.globalScripts': 'Global connect scripts',
|
||||
'hostDetails.automation.globalScriptsHint': 'Runs first on every connect. Reorder in Scripts library sort order.',
|
||||
'hostDetails.automation.connectQueue': 'This host\'s run queue',
|
||||
'hostDetails.automation.connectQueueEmpty': 'No connect scripts queued for this host yet.',
|
||||
'hostDetails.automation.addToQueuePlaceholder': 'Add script to queue…',
|
||||
'hostDetails.automation.moveUp': 'Move up',
|
||||
'hostDetails.automation.moveDown': 'Move down',
|
||||
'hostDetails.automation.removeFromQueue': 'Remove from queue',
|
||||
'hostDetails.automation.dragHandle': 'Drag to reorder',
|
||||
'hostDetails.automation.queueDragHint': 'Drag items to reorder the connect queue.',
|
||||
};
|
||||
@@ -14,13 +14,11 @@ export const enSystemManagerMessages: Messages = {
|
||||
'systemManager.tabs.docker': 'Docker',
|
||||
'systemManager.tabs.gpu': 'GPU',
|
||||
'systemManager.tabs.ariaLabel': 'System manager sections',
|
||||
'systemManager.popup.loading': 'Opening terminal…',
|
||||
'systemManager.popup.startupFailed': 'The startup command did not complete successfully. Check that the target is still available and try again.',
|
||||
|
||||
'systemManager.errors.loadProcesses': 'Failed to load processes',
|
||||
'systemManager.errors.loadTmux': 'Failed to load tmux sessions',
|
||||
'systemManager.errors.loadTmuxWindows': 'Failed to load tmux windows',
|
||||
'systemManager.errors.loadTmuxPanes': 'Failed to load tmux panes',
|
||||
'systemManager.errors.loadTmuxClients': 'Failed to load tmux clients',
|
||||
'systemManager.errors.actionFailed': 'Action failed',
|
||||
'systemManager.errors.loadDocker': 'Failed to load containers',
|
||||
@@ -31,7 +29,6 @@ export const enSystemManagerMessages: Messages = {
|
||||
'systemManager.errors.nerdctlUnreachable': "nerdctl can't reach containerd",
|
||||
'systemManager.errors.clusterUnreachable': "Can't reach the cluster for context {{context}}",
|
||||
'systemManager.errors.clusterUnreachableGeneric': "Can't reach the cluster",
|
||||
'systemManager.errors.loadOverview': 'Failed to load system overview',
|
||||
'systemManager.errors.loadGpu': 'Failed to load GPU / NPU stats',
|
||||
'systemManager.errors.loadPorts': 'Failed to load listening ports',
|
||||
'systemManager.errors.loadServices': 'Failed to load systemd services',
|
||||
@@ -65,13 +62,10 @@ export const enSystemManagerMessages: Messages = {
|
||||
'systemManager.overview.noTopProcesses': 'No process data',
|
||||
|
||||
'systemManager.processes.search': 'Search processes…',
|
||||
'systemManager.processes.command': 'Command',
|
||||
'systemManager.processes.user': 'User',
|
||||
'systemManager.processes.term': 'Terminate',
|
||||
'systemManager.processes.kill': 'Kill',
|
||||
'systemManager.processes.stop': 'Stop (SIGSTOP)',
|
||||
'systemManager.processes.cont': 'Continue (SIGCONT)',
|
||||
'systemManager.processes.hup': 'Hang up (SIGHUP)',
|
||||
'systemManager.processes.renice': 'Renice',
|
||||
'systemManager.processes.renicePrompt': 'Nice value (-20 to 19)',
|
||||
'systemManager.processes.reniceInvalid': 'Nice value must be between -20 and 19',
|
||||
@@ -86,7 +80,6 @@ export const enSystemManagerMessages: Messages = {
|
||||
'systemManager.processes.stat': 'State',
|
||||
'systemManager.processes.meta': '{{count}} process(es)',
|
||||
'systemManager.processes.loading': 'Loading processes…',
|
||||
'systemManager.processes.loadingMore': 'Loading more processes…',
|
||||
'systemManager.processes.state.running': 'Running',
|
||||
'systemManager.processes.state.sleeping': 'Sleeping',
|
||||
'systemManager.processes.state.stopped': 'Stopped',
|
||||
@@ -124,12 +117,9 @@ export const enSystemManagerMessages: Messages = {
|
||||
'systemManager.tmux.attached': 'Attached',
|
||||
'systemManager.tmux.detached': 'Detached',
|
||||
'systemManager.tmux.windows': '{{count}} window(s)',
|
||||
'systemManager.tmux.created': 'Created',
|
||||
'systemManager.tmux.activity': 'Activity',
|
||||
'systemManager.tmux.rename': 'Rename',
|
||||
'systemManager.tmux.detach': 'Detach all',
|
||||
'systemManager.tmux.killSession': 'Kill session',
|
||||
'systemManager.tmux.killServer': 'Kill server',
|
||||
'systemManager.tmux.loadingDetails': 'Loading details…',
|
||||
'systemManager.tmux.clients': 'Attached clients',
|
||||
'systemManager.tmux.windowList': 'Windows',
|
||||
@@ -140,31 +130,17 @@ export const enSystemManagerMessages: Messages = {
|
||||
'systemManager.docker.unavailable': 'No container runtime (Docker, Podman, nerdctl, or kubectl) was detected on this host',
|
||||
'systemManager.tmux.windowsMismatch': 'Session reports {{count}} window(s) but list-windows returned none',
|
||||
'systemManager.tmux.lastCommand': 'last command: {{command}}',
|
||||
'systemManager.tmux.noPanes': 'No panes',
|
||||
'systemManager.tmux.panes': '{{count}} pane(s)',
|
||||
'systemManager.tmux.active': 'active',
|
||||
'systemManager.tmux.unnamedWindow': 'Unnamed window',
|
||||
'systemManager.tmux.unnamedPane': 'Unnamed pane',
|
||||
'systemManager.tmux.attachWindow': 'Attach to window',
|
||||
'systemManager.tmux.selectWindow': 'Select window',
|
||||
'systemManager.tmux.killWindow': 'Kill window',
|
||||
'systemManager.tmux.killPane': 'Kill pane',
|
||||
'systemManager.tmux.splitHorizontal': 'Split horizontal',
|
||||
'systemManager.tmux.splitVertical': 'Split vertical',
|
||||
'systemManager.tmux.sendKeys': 'Send keys',
|
||||
'systemManager.tmux.sendKeysTo': 'Send keys to window {{window}} pane {{pane}}',
|
||||
'systemManager.tmux.sendKeysPlaceholder': 'Command or text…',
|
||||
'systemManager.tmux.renameSessionPrompt': 'Rename session',
|
||||
'systemManager.tmux.renameWindowPrompt': 'Rename window',
|
||||
'systemManager.tmux.windowName': 'Window name',
|
||||
'systemManager.tmux.confirmKillSession': 'Kill tmux session "{{name}}"?',
|
||||
'systemManager.tmux.confirmDetachSession': 'Detach all clients from "{{name}}"?',
|
||||
'systemManager.tmux.confirmKillWindow': 'Kill window "{{name}}"?',
|
||||
'systemManager.tmux.confirmKillPane': 'Kill pane #{{index}}?',
|
||||
'systemManager.tmux.confirmKillServer': 'Kill tmux server? All sessions will be terminated.',
|
||||
'systemManager.tmux.meta': '{{count}} session(s)',
|
||||
|
||||
'systemManager.docker.title': 'Containers',
|
||||
'systemManager.docker.subTabs.containers': 'Containers',
|
||||
'systemManager.docker.subTabs.images': 'Images',
|
||||
'systemManager.docker.empty': 'No containers found',
|
||||
@@ -177,7 +153,6 @@ export const enSystemManagerMessages: Messages = {
|
||||
'systemManager.docker.filter.paused': 'Paused',
|
||||
'systemManager.docker.shell': 'Shell',
|
||||
'systemManager.docker.logs': 'Logs',
|
||||
'systemManager.docker.details': 'Details',
|
||||
'systemManager.docker.inspect': 'Inspect',
|
||||
'systemManager.docker.imageInspect': 'Image inspect',
|
||||
'systemManager.docker.confirmRemove': 'Remove this container?',
|
||||
|
||||
@@ -12,6 +12,8 @@ export const enTerminalMessages: Messages = {
|
||||
'terminal.directory.hidden': 'Show hidden directories',
|
||||
'terminal.directory.refresh': 'Refresh',
|
||||
'terminal.directory.unavailable': 'Directory navigation is unavailable for this session.',
|
||||
'terminal.directory.integrationUnavailable': 'PowerShell directory integration is not ready. Startup arguments or execution policy may prevent it.',
|
||||
'terminal.directory.nonFilesystem': 'The current PowerShell location is not a filesystem directory.',
|
||||
'terminal.directory.busy': 'Wait for an empty shell prompt.',
|
||||
'terminal.directory.readFailed': 'Could not read this directory. Try refreshing.',
|
||||
'terminal.directory.changeFailed': 'Could not confirm the directory change. Refresh before retrying.',
|
||||
@@ -53,7 +55,6 @@ export const enTerminalMessages: Messages = {
|
||||
'terminal.toolbar.availableAfterConnect': 'Available after connect',
|
||||
'terminal.toolbar.sendYmodem': 'Send with YMODEM',
|
||||
'terminal.toolbar.receiveYmodem': 'Receive with YMODEM',
|
||||
'terminal.toolbar.sftp': 'SFTP',
|
||||
'terminal.toolbar.more': 'More actions',
|
||||
'terminal.toolbar.scripts': 'Scripts',
|
||||
'terminal.toolbar.history': 'Command history',
|
||||
@@ -101,7 +102,6 @@ export const enTerminalMessages: Messages = {
|
||||
'terminal.composeBar.resize': 'Resize compose bar height',
|
||||
'terminal.composeBar.manageSnippets': 'Manage quick snippets',
|
||||
'terminal.composeBar.searchSnippets': 'Search snippets...',
|
||||
'terminal.composeBar.noPinnedSnippets': 'Pin snippets with + for quick access',
|
||||
'terminal.composeBar.noMatchingSnippets': 'No matching snippets',
|
||||
'terminal.composeBar.pinnedCount': '{count} pinned',
|
||||
'terminal.composeBar.unpinSnippet': 'Remove {label} from quick bar',
|
||||
@@ -195,7 +195,6 @@ export const enTerminalMessages: Messages = {
|
||||
'terminal.osc7Setup.title': 'Configure directory tracking',
|
||||
'terminal.osc7Setup.desc': 'Netcatty will add OSC 7 prompt hooks for the current remote user. This helps SFTP follow the terminal directory after sudo or su.',
|
||||
'terminal.osc7Setup.targets': 'Possible files to update',
|
||||
'terminal.osc7Setup.command': 'Command to run',
|
||||
'terminal.osc7Setup.run': 'Run setup',
|
||||
'terminal.osc7Setup.running': 'Configuring...',
|
||||
'terminal.osc7Setup.configured': 'Directory tracking configured',
|
||||
@@ -279,9 +278,6 @@ export const enTerminalMessages: Messages = {
|
||||
'terminal.themeModal.themeType': '{type} theme',
|
||||
'terminal.hiddenTheme.title': 'Current hidden theme',
|
||||
'terminal.hiddenTheme.desc': 'This theme is hidden from manual picks and will be replaced when you choose another theme.',
|
||||
'topTabs.toggleTheme.systemExitTitle': 'System theme is active',
|
||||
'topTabs.toggleTheme.systemExitMessage': 'Open Settings to choose a fixed Light or Dark theme.',
|
||||
'topTabs.toggleTheme.openSettings': 'Open Settings',
|
||||
|
||||
// Custom Themes
|
||||
'terminal.customTheme.section': 'Custom Themes',
|
||||
@@ -294,7 +290,6 @@ export const enTerminalMessages: Messages = {
|
||||
'terminal.customTheme.importDesc': 'Import from iTerm2 color scheme file',
|
||||
'terminal.customTheme.importError': 'Failed to parse the selected file. Please ensure it is a valid .itermcolors XML file.',
|
||||
'terminal.customTheme.delete': 'Delete Theme',
|
||||
'terminal.customTheme.confirmDelete': 'Confirm Delete',
|
||||
'terminal.customTheme.name': 'Name',
|
||||
'terminal.customTheme.namePlaceholder': 'My Custom Theme',
|
||||
'terminal.customTheme.type': 'Type',
|
||||
@@ -354,10 +349,7 @@ export const enTerminalMessages: Messages = {
|
||||
'cloudSync.provider.disconnect.cloudRemains': 'Encrypted sync copies may still exist in your {name} storage. To remove them, delete the sync files there. Disconnecting does not clear this device for handover.',
|
||||
'cloudSync.provider.disconnect.failed': 'Could not finish disconnecting from {name}. Saved connection details may remain. Please try again.',
|
||||
'cloudSync.provider.webdav': 'WebDAV',
|
||||
'cloudSync.provider.webdav.desc': 'Connect to a self-hosted WebDAV endpoint',
|
||||
'cloudSync.provider.s3': 'S3 Compatible',
|
||||
'cloudSync.provider.s3.desc': 'Connect to S3-compatible object storage',
|
||||
'cloudSync.provider.comingSoon': 'Coming soon',
|
||||
'cloudSync.webdav.title': 'WebDAV Settings',
|
||||
'cloudSync.webdav.desc': 'Configure a WebDAV endpoint for encrypted sync.',
|
||||
'cloudSync.webdav.endpoint': 'Endpoint URL',
|
||||
@@ -386,20 +378,6 @@ export const enTerminalMessages: Messages = {
|
||||
'cloudSync.s3.allowInsecure': 'Allow insecure connection (ignore certificate errors)',
|
||||
'cloudSync.s3.showSecret': 'Show secrets',
|
||||
'cloudSync.s3.validation.required': 'Endpoint, region, bucket, access key, and secret are required.',
|
||||
'cloudSync.smb.title': 'SMB Settings',
|
||||
'cloudSync.smb.desc': 'Connect to an SMB/CIFS file share for encrypted sync.',
|
||||
'cloudSync.smb.share': 'Share Path',
|
||||
'cloudSync.smb.username': 'Username',
|
||||
'cloudSync.smb.password': 'Password',
|
||||
'cloudSync.smb.domain': 'Domain (optional)',
|
||||
'cloudSync.smb.domainPlaceholder': 'e.g., WORKGROUP',
|
||||
'cloudSync.smb.port': 'Port (optional)',
|
||||
'cloudSync.smb.showSecret': 'Show password',
|
||||
'cloudSync.smb.validation.share': 'Share path is required.',
|
||||
'cloudSync.smb.validation.port': 'Port must be a number between 1 and 65535.',
|
||||
'cloudSync.connect.smb.success': 'SMB connected successfully',
|
||||
'cloudSync.connect.smb.failedTitle': 'SMB connection failed',
|
||||
'cloudSync.provider.smb': 'SMB Share',
|
||||
'cloudSync.connect.webdav.success': 'WebDAV connected successfully',
|
||||
'cloudSync.connect.webdav.failedTitle': 'WebDAV connection failed',
|
||||
'cloudSync.connect.s3.success': 'S3 connected successfully',
|
||||
@@ -416,7 +394,6 @@ export const enTerminalMessages: Messages = {
|
||||
'cloudSync.lastSync.minutesAgo': '{minutes} min ago',
|
||||
'cloudSync.changeKey': 'Change Key',
|
||||
'cloudSync.providers.title': 'Cloud Providers',
|
||||
'cloudSync.syncAll': 'Sync All Connected Providers',
|
||||
'cloudSync.autoSync.title': 'Auto-sync',
|
||||
'cloudSync.autoSync.desc': 'Automatically sync when changes are made',
|
||||
'cloudSync.strategy.title': 'Sync strategy',
|
||||
@@ -481,7 +458,6 @@ export const enTerminalMessages: Messages = {
|
||||
'cloudSync.localBackups.folderWarning': 'This folder alone is not a complete, portable backup. Deleting or wiping the app profile (userData) may make these restore points unreadable.',
|
||||
'cloudSync.localBackups.retentionTitle': 'Backup Retention',
|
||||
'cloudSync.localBackups.retentionDesc': 'Choose how many local backups Netcatty should keep.',
|
||||
'cloudSync.localBackups.maxCount': 'Max backups',
|
||||
'cloudSync.localBackups.maxSaved': 'Saved backup retention: {count}',
|
||||
'cloudSync.localBackups.maxInvalid': 'Please enter a number between 1 and 100.',
|
||||
'cloudSync.localBackups.empty': 'No local backups yet.',
|
||||
@@ -604,10 +580,7 @@ export const enTerminalMessages: Messages = {
|
||||
'cloudSync.clearLocal.toast.desc': 'Local version reset to 0. Sync to download from cloud.',
|
||||
|
||||
// Keychain
|
||||
'keychain.filter.key': 'KEY',
|
||||
'keychain.filter.certificate': 'CERTIFICATE',
|
||||
'keychain.action.generateKey': 'Generate Key',
|
||||
'keychain.action.importKey': 'Import Key',
|
||||
'keychain.action.newIdentity': 'New Identity',
|
||||
'keychain.action.importCertificate': 'Import Certificate',
|
||||
'keychain.view.grid': 'Grid',
|
||||
@@ -651,20 +624,8 @@ export const enTerminalMessages: Messages = {
|
||||
'keychain.export.exporting': 'Exporting...',
|
||||
'keychain.export.exportAndAttach': 'Export and Attach',
|
||||
'keychain.export.title': 'Key export',
|
||||
'keychain.export.exportToRequired': 'Export to *',
|
||||
'keychain.export.selectHostPlaceholder': 'Select a host...',
|
||||
'keychain.export.locationLabel': 'Location ~ $1 *',
|
||||
'keychain.export.filenameLabel': 'Filename ~ $2 *',
|
||||
'keychain.export.advanced': 'Advanced',
|
||||
'keychain.export.note.supportsOnly': 'Key export currently supports only',
|
||||
'keychain.export.note.systems': 'systems.',
|
||||
'keychain.export.note.use': 'Use',
|
||||
'keychain.export.note.customize': 'section to customize the export script.',
|
||||
'keychain.export.scriptRequired': 'Script *',
|
||||
'keychain.export.exportToHost': 'Export to host',
|
||||
'keychain.export.failedGeneric': 'Export failed: {message}',
|
||||
'keychain.field.label': 'Label',
|
||||
'keychain.field.labelRequired': 'Label *',
|
||||
'keychain.field.labelPlaceholder': 'Key label',
|
||||
'keychain.field.privateKeyRequired': 'Private key *',
|
||||
'keychain.field.publicKey': 'Public key',
|
||||
@@ -700,13 +661,9 @@ export const enTerminalMessages: Messages = {
|
||||
"fido.recovery.usePassword": "Use configured password",
|
||||
"fido.recovery.passwordFallback": "Trying the password configured for this host",
|
||||
"fido.prompt.cancelled": "Security key authentication cancelled.",
|
||||
'fido.prompt.touchDone': 'I touched it',
|
||||
'fido.prompt.timeout': 'FIDO prompt timed out. Try connecting again.',
|
||||
'fido.error.opensshMissing': 'OpenSSH with FIDO/libfido2 is required. On macOS: brew install openssh libfido2.',
|
||||
'fido.error.agentUnavailable': 'Could not start a FIDO-capable SSH agent.',
|
||||
'keychain.generate.resident': 'Store credentials on the key',
|
||||
'keychain.generate.verifyRequired': 'Verify PIN each time',
|
||||
'keychain.action.loadResident': 'Load resident keys from security key',
|
||||
'keychain.generate.keySize': 'Key size',
|
||||
'keychain.generate.labelPlaceholder': 'Key label',
|
||||
'keychain.generate.passphrasePlaceholder': 'Passphrase (optional)',
|
||||
@@ -716,7 +673,6 @@ export const enTerminalMessages: Messages = {
|
||||
'keychain.import.dropHint': 'Drop a key file here',
|
||||
'keychain.import.importFromFile': 'Import from file',
|
||||
'keychain.import.saveKey': 'Save Key',
|
||||
'keychain.import.importedKeyLabel': 'Imported Key',
|
||||
'keychain.identity.usernameRequired': 'Username *',
|
||||
'keychain.identity.method.passwordOnly': 'Password',
|
||||
'keychain.identity.summary.password': 'Auth password',
|
||||
@@ -725,14 +681,8 @@ export const enTerminalMessages: Messages = {
|
||||
'keychain.identity.summary.passwordAndKey': 'Auth password and key',
|
||||
'keychain.identity.summary.passwordAndCertificate': 'Auth password and certificate',
|
||||
'keychain.identity.summary.none': 'No credentials',
|
||||
'keychain.identity.selectCredential': 'Select {kind}',
|
||||
'keychain.identity.save': 'Save',
|
||||
'keychain.identity.update': 'Update',
|
||||
'keychain.keyDialog.newTitle': 'New Key',
|
||||
'keychain.keyDialog.newDesc': 'Add a new SSH key',
|
||||
'keychain.keyDialog.editTitle': 'Edit Key',
|
||||
'keychain.keyDialog.editDesc': 'Update this SSH key',
|
||||
'keychain.keyDialog.updateKey': 'Update Key',
|
||||
|
||||
// Tabs
|
||||
'tabs.closeSessionAria': 'Close session',
|
||||
@@ -744,6 +694,8 @@ export const enTerminalMessages: Messages = {
|
||||
'tabs.duplicateSession': 'Duplicate Session',
|
||||
'tabs.copyTabToNewWindow': 'Copy Tab to New Window',
|
||||
'tabs.copyTabToNewWindowFailed': 'Failed to open tab in a new window',
|
||||
'tabs.moveTabToNewWindow': 'Move Tab to New Window',
|
||||
'tabs.moveTabToNewWindowFailed': 'Failed to move tab to a new window',
|
||||
'tabs.closeOthers': 'Close Others',
|
||||
'tabs.closeToLeft': 'Close Tabs to the Left',
|
||||
'tabs.closeToRight': 'Close Tabs to the Right',
|
||||
@@ -807,8 +759,6 @@ export const enTerminalMessages: Messages = {
|
||||
'snippets.search.noResults.desc': 'No scripts or script packages match "{query}". Try a different search term or clear the search to browse.',
|
||||
'snippets.section.packages': 'Script Packages',
|
||||
'snippets.section.snippets': 'Scripts',
|
||||
'snippets.kind.codeSnippet': 'Code snippet',
|
||||
'snippets.kind.automationScript': 'Automation script',
|
||||
'snippets.package.count': '{count} script(s)',
|
||||
'snippets.commandFallback': 'Command',
|
||||
'snippets.view.grid': 'Grid',
|
||||
@@ -840,9 +790,6 @@ export const enTerminalMessages: Messages = {
|
||||
'snippets.import.modal.multipleFiles': '{count} files selected',
|
||||
'snippets.import.modal.parsedSummary': '{files} file(s), {total} script(s), {packages} script package(s), {conflicts} duplicate command(s). Host bindings are ignored.',
|
||||
'snippets.import.modal.confirm': 'Confirm import',
|
||||
'snippets.import.conflict.title': 'Import snippets?',
|
||||
'snippets.import.conflict.desc': '{file} contains {total} snippet(s). {conflicts} duplicate command(s) already exist.',
|
||||
'snippets.import.conflict.hostBindingsNote': 'Host bindings are not imported or exported with snippets.',
|
||||
'snippets.import.conflict.skip': 'Skip duplicates',
|
||||
'snippets.import.conflict.overwrite': 'Overwrite duplicates',
|
||||
'snippets.packageDialog.title': 'New Script Package',
|
||||
@@ -901,9 +848,6 @@ export const enTerminalMessages: Messages = {
|
||||
'serial.field.customPort': 'Custom Port Path',
|
||||
'serial.field.namedPipeHint': 'Windows VM console: enter \\\\.\\pipe\\name. The VM must create the pipe as a server. Baud rate and framing are ignored.',
|
||||
'serial.field.customPortPlaceholder': 'e.g. /dev/ttys001 or COM1',
|
||||
'serial.type.hardware': 'Hardware',
|
||||
'serial.type.pseudo': 'Pseudo Terminal',
|
||||
'serial.type.custom': 'Custom',
|
||||
'serial.parity.none': 'None',
|
||||
'serial.parity.even': 'Even',
|
||||
'serial.parity.odd': 'Odd',
|
||||
@@ -924,7 +868,6 @@ export const enTerminalMessages: Messages = {
|
||||
'serial.backspace.default': 'Default (DEL, 0x7F)',
|
||||
'serial.backspace.ctrlH': 'Ctrl+H (BS, 0x08)',
|
||||
'serial.field.charset': 'Charset',
|
||||
'serial.connectionError': 'Failed to connect to serial port',
|
||||
'serial.field.baudRatePlaceholder': 'Select or enter baud rate...',
|
||||
'serial.field.baudRateEmpty': 'Enter a custom baud rate',
|
||||
'serial.field.customBaudRate': 'Using custom baud rate',
|
||||
@@ -943,10 +886,7 @@ export const enTerminalMessages: Messages = {
|
||||
'keyboard.interactive.title': 'Authentication Required',
|
||||
'keyboard.interactive.desc': 'The server requires additional authentication.',
|
||||
'keyboard.interactive.descWithHost': 'The server {hostname} requires additional authentication.',
|
||||
'keyboard.interactive.response': 'Response',
|
||||
'keyboard.interactive.verificationCode': 'Verification code',
|
||||
'keyboard.interactive.enterCode': 'Enter verification code',
|
||||
'keyboard.interactive.enterResponse': 'Enter response',
|
||||
'keyboard.interactive.submit': 'Submit',
|
||||
'keyboard.interactive.verifying': 'Verifying...',
|
||||
'keyboard.interactive.savePassword': 'Save password',
|
||||
|
||||
@@ -19,14 +19,6 @@ export const enVaultMessages: Messages = {
|
||||
'notes.export.toast.failed': 'Failed to export notes.',
|
||||
'notes.codeBlock.copied': 'Copied',
|
||||
'notes.codeBlock.copyFailed': 'Failed to copy code block.',
|
||||
'notes.group.prompt': 'Folder path',
|
||||
'notes.group.all': 'Notebook',
|
||||
'notes.group.ungrouped': 'Ungrouped',
|
||||
'notes.section.notebooks': 'Notebook',
|
||||
'notes.section.notes': 'Notes',
|
||||
'notes.mode.edit': 'Edit',
|
||||
'notes.mode.split': 'Split',
|
||||
'notes.mode.preview': 'Preview',
|
||||
'notes.title.placeholder': 'Note title',
|
||||
'notes.editor.placeholder': 'Write Markdown notes here...',
|
||||
'notes.editor.unrenderableMarkdown': 'This note contains Markdown the rich editor cannot display (for example unbalanced <tag> text). Showing the raw Markdown source instead — the content is intact.',
|
||||
@@ -72,25 +64,18 @@ export const enVaultMessages: Messages = {
|
||||
'notes.toolbar.divider': 'Divider',
|
||||
'notes.toolbar.link': 'Insert Link',
|
||||
'notes.toolbar.image': 'Insert Image',
|
||||
'notes.action.pin': 'Pin Note',
|
||||
'notes.action.unpin': 'Unpin Note',
|
||||
'notes.tag.remove': 'Remove tag',
|
||||
'notes.tag.placeholder': 'Tag name...',
|
||||
'notes.tag.add': 'Add tag',
|
||||
'notes.outline.title': 'Table of Contents',
|
||||
'notes.outline.titleWithCount': 'Table of Contents ({count})',
|
||||
'notes.outline.empty': 'No outline headings',
|
||||
'notes.outline.emptyHint': 'Use # and ## in Markdown to create headings',
|
||||
'notes.export.share': 'Export & Share',
|
||||
'notes.export.currentNote': 'Current Note',
|
||||
'notes.export.exportMarkdown': 'Export as Markdown (.md)',
|
||||
'notes.export.exportHtml': 'Export as HTML (.html)',
|
||||
'notes.export.copyMarkdown': 'Copy Markdown Source',
|
||||
'notes.export.allNotes': 'All Notes',
|
||||
'notes.export.exportAllZip': 'Export All as ZIP Archive',
|
||||
'notes.export.toast.markdownSuccess': 'Markdown file exported',
|
||||
'notes.export.toast.htmlSuccess': 'HTML file exported',
|
||||
'notes.export.toast.zipSuccess': 'All notes exported as ZIP backup',
|
||||
|
||||
// Vault import
|
||||
'vault.import.title': 'Add data to your vault',
|
||||
@@ -261,7 +246,6 @@ export const enVaultMessages: Messages = {
|
||||
'pf.tooltip.localDesc': 'Local port forwarding: Access remote services through SSH tunnel',
|
||||
'pf.tooltip.remoteDesc': 'Remote port forwarding: Expose local services to remote host',
|
||||
'pf.tooltip.dynamicDesc': 'Dynamic SOCKS proxy: Route traffic through SSH tunnel',
|
||||
'pf.deleteActive.title': 'Delete Active Port Forwarding?',
|
||||
'pf.deleteActive.desc': 'This port forwarding rule "{label}" is currently active. Deleting it will stop the tunnel first.',
|
||||
'pf.deleteActive.confirm': 'Stop and Delete',
|
||||
'pf.form.autoStart': 'Auto Start',
|
||||
@@ -295,13 +279,9 @@ export const enVaultMessages: Messages = {
|
||||
'sftp.columns.actions': 'Actions',
|
||||
'sftp.sort.directoriesFirst': 'Folders first',
|
||||
'sftp.emptyDirectory': 'Empty directory',
|
||||
'sftp.nav.up': 'Go up',
|
||||
'sftp.nav.home': 'Go to home',
|
||||
'sftp.nav.refresh': 'Refresh',
|
||||
'sftp.upload': 'Upload',
|
||||
'sftp.uploadFiles': 'Upload files',
|
||||
'sftp.uploadFolder': 'Upload folder',
|
||||
'sftp.dragDropToUpload': 'Drag and drop files here to upload',
|
||||
'sftp.retry': 'Retry',
|
||||
'sftp.context.open': 'Open',
|
||||
'sftp.context.navigateTo': 'Navigate to',
|
||||
@@ -316,6 +296,12 @@ export const enVaultMessages: Messages = {
|
||||
'sftp.extract.extracting': 'Extracting {fileName}...',
|
||||
'sftp.extract.success': 'Extracted {fileName}',
|
||||
'sftp.extract.error': 'Failed to extract {fileName}: {error}',
|
||||
'sftp.packedDownload.receiving': 'Receiving packed download…',
|
||||
'sftp.packedDownload.extracting': 'Restoring files…',
|
||||
'sftp.packedDownload.fallback': 'Packed download is unavailable. Downloading files individually.',
|
||||
'sftp.packedDownload.selection': '{count} selected items',
|
||||
'sftp.packedDownload.conflict': 'An item with the same name already exists. Choose a different destination folder?',
|
||||
|
||||
'sftp.archive.action': 'Compress...',
|
||||
'sftp.archive.title': 'Compress files',
|
||||
'sftp.archive.description': 'Create an archive on the server from {count} selected items.',
|
||||
@@ -340,28 +326,21 @@ export const enVaultMessages: Messages = {
|
||||
'sftp.copyCurrentPath': 'Copy current path',
|
||||
'sftp.copyCurrentPath.success': 'Current path copied',
|
||||
'sftp.copyCurrentPath.error': 'Could not copy current path',
|
||||
'sftp.viewMode.label': 'View mode',
|
||||
'sftp.viewMode.list': 'List view',
|
||||
'sftp.viewMode.tree': 'Tree view',
|
||||
'sftp.viewMode.switchToList': 'Switch to list view',
|
||||
'sftp.viewMode.switchToTree': 'Switch to tree view',
|
||||
'sftp.listDensity.compact': 'Compact list',
|
||||
'sftp.listDensity.comfortable': 'Comfortable list',
|
||||
'sftp.listDensity.switchToCompact': 'Switch to compact list',
|
||||
'sftp.listDensity.switchToComfortable': 'Switch to comfortable list',
|
||||
'sftp.tree.loadError': 'Failed to load directory',
|
||||
'sftp.tree.loading': 'Loading...',
|
||||
'sftp.kind.folder': 'Folder',
|
||||
'sftp.context.rename': 'Rename',
|
||||
'sftp.context.permissions': 'Permissions',
|
||||
'sftp.context.delete': 'Delete',
|
||||
'sftp.context.refresh': 'Refresh',
|
||||
'sftp.context.uploadFiles': 'Upload File(s)...',
|
||||
'sftp.context.uploadFilesHere': 'Upload File(s) Here...',
|
||||
'sftp.context.uploadFolder': 'Upload Folder...',
|
||||
'sftp.context.uploadFolderHere': 'Upload Folder Here...',
|
||||
'sftp.context.downloadSelected': 'Download selected ({count})',
|
||||
'sftp.context.deleteSelected': 'Delete selected ({count})',
|
||||
'sftp.dropFilesHere': 'Drop files here',
|
||||
'sftp.itemsCount': '{count} items',
|
||||
'sftp.selectedCount': '{count} selected',
|
||||
@@ -370,8 +349,6 @@ export const enVaultMessages: Messages = {
|
||||
'sftp.task.waiting': 'Waiting...',
|
||||
'sftp.transfer.preparing': 'preparing...',
|
||||
'sftp.status.loading': 'Loading...',
|
||||
'sftp.status.uploading': 'Uploading...',
|
||||
'sftp.status.ready': 'Ready',
|
||||
'sftp.transfers': 'Transfers',
|
||||
'sftp.transfers.active': '{count} active',
|
||||
'sftp.transfers.clearCompleted': 'Clear completed',
|
||||
@@ -435,7 +412,6 @@ export const enVaultMessages: Messages = {
|
||||
'sftp.transferCenter.applyAll': 'Apply to all',
|
||||
'sftp.transfers.resizeNameColumn': 'Resize file name column',
|
||||
'sftp.transfers.dragToResize': 'Drag to resize',
|
||||
'sftp.goUp': 'Go up',
|
||||
'sftp.goToTerminalCwd': 'Go to terminal directory',
|
||||
'sftp.locatePathInTerminal': 'Open path in terminal',
|
||||
'sftp.followTerminalCwd': 'Follow terminal directory',
|
||||
@@ -451,29 +427,22 @@ export const enVaultMessages: Messages = {
|
||||
'sftp.folderName.placeholder': 'Enter folder name',
|
||||
'sftp.fileName': 'File name',
|
||||
'sftp.fileName.placeholder': 'Enter file name',
|
||||
'sftp.prompt.newFolderName': 'New folder name?',
|
||||
'sftp.rename.title': 'Rename',
|
||||
'sftp.rename.newName': 'New name',
|
||||
'sftp.rename.placeholder': 'Enter new name',
|
||||
'sftp.confirm.deleteOne': 'Delete "{name}"?',
|
||||
'sftp.deleteConfirm.single': 'Delete "{name}"?',
|
||||
'sftp.deleteConfirm.title': 'Delete {count} item(s)?',
|
||||
'sftp.deleteConfirm.desc': 'This action cannot be undone. The following will be deleted:',
|
||||
'sftp.deleteConfirm.descSingle': 'This action cannot be undone.',
|
||||
'sftp.deleteConfirm.host': 'Host',
|
||||
'sftp.deleteConfirm.path': 'Path',
|
||||
'sftp.error.loadFailed': 'Failed to load directory',
|
||||
'sftp.error.downloadFailed': 'Download failed',
|
||||
'sftp.error.uploadFailed': 'Upload failed',
|
||||
'sftp.error.deleteFailed': 'Delete failed',
|
||||
'sftp.error.createFolderFailed': 'Failed to create folder',
|
||||
'sftp.error.createFileFailed': 'Failed to create file',
|
||||
'sftp.error.invalidFileName': 'Filename contains invalid characters: {chars}',
|
||||
'sftp.error.reservedName': 'This filename is reserved by the system',
|
||||
'sftp.overwrite.title': 'File Already Exists',
|
||||
'sftp.overwrite.desc': 'A file named "{name}" already exists. Do you want to replace it?',
|
||||
'sftp.overwrite.confirm': 'Replace',
|
||||
'sftp.error.renameFailed': 'Failed to rename',
|
||||
'sftp.picker.title': 'Select Host',
|
||||
'sftp.picker.desc': 'Pick a host for the {side} pane',
|
||||
'sftp.picker.searchPlaceholder': 'Search hosts...',
|
||||
@@ -481,8 +450,6 @@ export const enVaultMessages: Messages = {
|
||||
'sftp.picker.local.desc': 'Browse local files',
|
||||
'sftp.picker.local.badge': 'Local',
|
||||
'sftp.picker.connected.section': 'Connected',
|
||||
'sftp.picker.connected.badge': 'Live',
|
||||
'sftp.picker.connected.connecting': 'Connecting',
|
||||
'sftp.picker.noMatch': 'No matching hosts',
|
||||
'sftp.permissions.title': 'Edit Permissions',
|
||||
'sftp.permissions.owner': 'Owner',
|
||||
@@ -490,16 +457,12 @@ export const enVaultMessages: Messages = {
|
||||
'sftp.permissions.others': 'Others',
|
||||
'sftp.permissions.octal': 'Octal',
|
||||
'sftp.permissions.symbolic': 'Symbolic',
|
||||
'sftp.permissions.success': 'Permissions updated successfully',
|
||||
'sftp.permissions.failed': 'Failed to update permissions',
|
||||
'sftp.pane.local': 'Local',
|
||||
'sftp.pane.remote': 'Remote',
|
||||
'sftp.pane.selectHost': 'Select host',
|
||||
'sftp.pane.selectHostToStart': 'Select a host to start',
|
||||
'sftp.pane.chooseFilesystem': 'Choose a local or remote filesystem to browse',
|
||||
'sftp.tabs.addTab': 'Add new tab',
|
||||
'sftp.tabs.closeTab': 'Close tab',
|
||||
'sftp.tabs.newTab': 'New Tab',
|
||||
'sftp.tabs.copyDefaultPath': 'Copy tab (default path)',
|
||||
'sftp.tabs.copyCurrentPath': 'Copy and go to current path',
|
||||
'sftp.conflict.title': 'File Conflict',
|
||||
@@ -525,47 +488,24 @@ export const enVaultMessages: Messages = {
|
||||
'sftp.conflict.action.replace': 'Replace',
|
||||
|
||||
// SFTP Upload Phases
|
||||
'sftp.upload.phase.compressing': 'Compressing',
|
||||
'sftp.upload.phase.uploading': 'Uploading',
|
||||
'sftp.upload.phase.extracting': 'Extracting',
|
||||
'sftp.upload.phase.compressed': 'Compressed',
|
||||
|
||||
// SFTP File Opener
|
||||
'sftp.context.copyPath': 'Copy file path',
|
||||
'sftp.context.openWithDefault': 'Open with system default',
|
||||
'sftp.context.openWith': 'Open with...',
|
||||
'sftp.context.edit': 'Edit',
|
||||
'sftp.context.preview': 'Preview',
|
||||
'sftp.opener.title': 'Open with',
|
||||
'sftp.opener.desc': 'Choose an application to open this file',
|
||||
'sftp.opener.builtInEditor': 'Built-in Editor',
|
||||
'sftp.opener.editDescription': 'Edit text files',
|
||||
'sftp.opener.builtInImageViewer': 'Built-in Image Viewer',
|
||||
'sftp.opener.previewDescription': 'Preview images',
|
||||
'sftp.opener.systemApp': 'Choose Application...',
|
||||
'sftp.opener.systemAppDescription': 'Select an application from your computer',
|
||||
'sftp.opener.onlySystemApp': 'This file can only be opened with an external application',
|
||||
'sftp.opener.noAppsAvailable': 'No applications available',
|
||||
'sftp.opener.noExtension': 'files without extension',
|
||||
'sftp.opener.setDefault': 'Always use this for {ext} files',
|
||||
'sftp.opener.confirmTitle': 'Set as Default?',
|
||||
'sftp.opener.confirmDescription': 'Do you want to always use {app} for {ext} files?',
|
||||
'sftp.opener.yesRemember': 'Yes, remember this choice',
|
||||
'sftp.opener.justOnce': 'Just this once',
|
||||
'sftp.opener.confirm.title': 'Set Default Application',
|
||||
'sftp.opener.confirm.desc': 'Do you want to always open .{ext} files with this application?',
|
||||
'sftp.editor.title': 'Text Editor',
|
||||
'sftp.editor.save': 'Save to Remote',
|
||||
'sftp.editor.saving': 'Saving...',
|
||||
'sftp.editor.saved': 'Saved successfully',
|
||||
'sftp.editor.saveFailed': 'Failed to save file',
|
||||
'sftp.editor.unsavedChanges': 'You have unsaved changes. Close anyway?',
|
||||
'sftp.editor.syntaxHighlight': 'Syntax Highlighting',
|
||||
'sftp.preview.title': 'Image Preview',
|
||||
'sftp.preview.zoomIn': 'Zoom In',
|
||||
'sftp.preview.zoomOut': 'Zoom Out',
|
||||
'sftp.preview.resetZoom': 'Reset Zoom',
|
||||
'sftp.preview.fitToWindow': 'Fit to Window',
|
||||
|
||||
// Settings > SFTP File Associations
|
||||
'settings.tab.sftpFileAssociations': 'SFTP',
|
||||
@@ -644,28 +584,16 @@ export const enVaultMessages: Messages = {
|
||||
'sftp.autoSync.error': 'Failed to sync file: {error}',
|
||||
|
||||
// SFTP Folder Upload Progress
|
||||
'sftp.upload.progress': 'Uploading {current} of {total} files...',
|
||||
'sftp.upload.uploading': 'Uploading...',
|
||||
'sftp.upload.compressing': 'Compressing...',
|
||||
'sftp.upload.extracting': 'Extracting...',
|
||||
'sftp.upload.scanning': 'Scanning files...',
|
||||
'sftp.upload.completed': 'Completed',
|
||||
'sftp.upload.compressed': 'Compressed Transfer',
|
||||
'sftp.upload.currentFile': 'Current: {fileName}',
|
||||
'sftp.upload.cancelled': 'Upload cancelled',
|
||||
'sftp.upload.noFiles': 'No files to upload',
|
||||
'sftp.upload.partialSuccess': 'Uploaded {success} file(s); {failed} failed',
|
||||
'sftp.upload.cancel': 'Cancel',
|
||||
'sftp.upload.completedToPath': 'Uploaded to {path}',
|
||||
|
||||
// SFTP Download
|
||||
'sftp.download.completed': 'Downloaded',
|
||||
'sftp.download.cancelled': 'Download cancelled',
|
||||
|
||||
// SFTP Reconnecting
|
||||
'sftp.reconnecting.title': 'Reconnecting...',
|
||||
'sftp.reconnecting.desc': 'Connection lost, attempting to reconnect',
|
||||
'sftp.reconnected': 'Connection restored',
|
||||
'sftp.error.reconnectFailed': 'Failed to reconnect. Please try again.',
|
||||
'sftp.error.connectionLostManual': 'Connection lost. Please reconnect manually.',
|
||||
'sftp.error.connectionLostReconnecting': 'Connection lost. Reconnecting...',
|
||||
@@ -683,6 +611,10 @@ export const enVaultMessages: Messages = {
|
||||
'settings.sftp.compressedUpload.enable': 'Enable folder compression',
|
||||
'settings.sftp.compressedUpload.enableDesc': 'Automatically compress folders using tar before transfer. Requires tar support on the server. Falls back to regular transfer if not available.',
|
||||
|
||||
'settings.sftp.packedDownload': 'Packed downloads',
|
||||
'settings.sftp.packedDownload.enable': 'Pack folders and multiple items for download',
|
||||
'settings.sftp.packedDownload.enableDesc': 'Download the selection in one stream and restore its original layout on this device. If the server cannot pack it, download files individually.',
|
||||
|
||||
'settings.sftp.skipUnchanged.enable': 'Skip unchanged files',
|
||||
'settings.sftp.skipUnchanged.enableDesc': 'Skip files whose size and modification time already match the destination (rsync-style). Disabled when replacing a folder into a staging path.',
|
||||
|
||||
@@ -741,12 +673,6 @@ export const enVaultMessages: Messages = {
|
||||
'hostDetails.saveAria': 'Save',
|
||||
// Host connection test
|
||||
'hostConnectionTest.title': 'Test Connection',
|
||||
'hostConnectionTest.test': 'Test',
|
||||
'hostConnectionTest.chainOf': 'Chain {current} of {total}',
|
||||
'hostConnectionTest.success': 'Connection successful',
|
||||
'hostConnectionTest.successHint': 'The host accepted your credentials. You can close this window.',
|
||||
'hostConnectionTest.connecting': 'Connecting… timeout in {seconds}s',
|
||||
'hostConnectionTest.failed': 'Connection failed.',
|
||||
'hostConnectionTest.retry': 'Retry',
|
||||
'hostConnectionTest.credentialsUnavailable': 'Saved credentials cannot be decrypted on this device. Re-enter them below.',
|
||||
'hostDetails.section.address': 'Address',
|
||||
@@ -783,11 +709,8 @@ export const enVaultMessages: Messages = {
|
||||
'hostDetails.notes.toggle.show': 'Show notes editor',
|
||||
'hostDetails.notes.toggle.hide': 'Hide notes editor',
|
||||
'hostDetails.group.placeholder': 'Parent Group',
|
||||
'hostDetails.section.credentials': 'Credentials',
|
||||
'hostDetails.section.portCredentials': 'Port & Credentials',
|
||||
'hostDetails.section.appearance': 'Appearance',
|
||||
'hostDetails.distro.title': 'Linux Distribution',
|
||||
'hostDetails.distro.desc': 'Auto-detect on connect, or override the distro icon manually.',
|
||||
'hostDetails.icon.title': 'Host Icon',
|
||||
'hostDetails.icon.sectionTitle': 'Color & Icon',
|
||||
'hostDetails.icon.desc': 'Choose the icon source and color for this host.',
|
||||
@@ -799,7 +722,6 @@ export const enVaultMessages: Messages = {
|
||||
'hostDetails.icon.mode.custom': 'Custom',
|
||||
'hostDetails.icon.reset': 'Reset host icon',
|
||||
'hostDetails.icon.colorLabel': 'Icon color',
|
||||
'hostDetails.icon.colorDefault': 'Default',
|
||||
'hostDetails.icon.colorAuto': 'Automatic',
|
||||
'hostDetails.icon.colorManual': 'Manual',
|
||||
'hostDetails.icon.colorChoice': 'Color',
|
||||
@@ -850,7 +772,6 @@ export const enVaultMessages: Messages = {
|
||||
'hostDetails.distro.mode.auto': 'Auto-detect',
|
||||
'hostDetails.distro.mode.manual': 'Manual override',
|
||||
'hostDetails.distro.detectedLabel': 'Current',
|
||||
'hostDetails.distro.manualLabel': 'Override',
|
||||
'hostDetails.distro.pending': 'Detect after first connection',
|
||||
'hostDetails.distro.unknown': 'Unknown',
|
||||
'hostDetails.distro.option.linux': 'Generic Linux',
|
||||
@@ -901,7 +822,6 @@ export const enVaultMessages: Messages = {
|
||||
'hostDetails.auth.mfaFirst': 'Prefer interactive auth',
|
||||
'hostDetails.auth.mfaFirst.desc': 'For servers that require password and MFA through keyboard-interactive.',
|
||||
'hostDetails.totp.title': 'Authenticator (TOTP)',
|
||||
'hostDetails.totp.enable': 'Save a TOTP secret for this host',
|
||||
'hostDetails.totp.setup': 'Set up…',
|
||||
'hostDetails.totp.edit': 'Edit',
|
||||
'hostDetails.totp.modalTitle': 'Set up authenticator',
|
||||
@@ -1004,10 +924,8 @@ export const enVaultMessages: Messages = {
|
||||
'hostDetails.jumpHosts.direct': 'Direct',
|
||||
'hostDetails.jumpHosts.configure': 'Configure Proxy Hosts',
|
||||
'hostDetails.proxy': 'Proxy via HTTP/SOCKS5/Command',
|
||||
'hostDetails.proxy.none': 'None',
|
||||
'hostDetails.proxy.direct': 'Direct (no proxy)',
|
||||
'hostDetails.proxy.directHint': 'Does not use a group or global default proxy',
|
||||
'hostDetails.proxy.edit': 'Edit Proxy',
|
||||
'hostDetails.proxy.configure': 'Configure Proxy',
|
||||
'hostDetails.proxyPanel.title': 'Proxy via HTTP/SOCKS5/Command',
|
||||
'hostDetails.proxyPanel.hostPlaceholder': 'Proxy host',
|
||||
@@ -1017,7 +935,6 @@ export const enVaultMessages: Messages = {
|
||||
'hostDetails.proxyPanel.credentials': 'Credentials',
|
||||
'hostDetails.proxyPanel.usernamePlaceholder': 'Username',
|
||||
'hostDetails.proxyPanel.passwordPlaceholder': 'Password',
|
||||
'hostDetails.proxyPanel.identities': 'Identities',
|
||||
'hostDetails.proxyPanel.keychainIdentity': 'Keychain identity',
|
||||
'hostDetails.proxyPanel.manualCredentials': 'Manual credentials',
|
||||
'hostDetails.proxyPanel.remove': 'Remove Proxy',
|
||||
@@ -1041,8 +958,6 @@ export const enVaultMessages: Messages = {
|
||||
'hostDetails.envVars.newVariable': 'New Variable',
|
||||
'hostDetails.envVars.variableName': 'Variable name',
|
||||
'hostDetails.chain.title': 'Edit Chain',
|
||||
'hostDetails.chain.desc': 'Adding another host will create a connection to {host}.',
|
||||
'hostDetails.chain.addHost': 'Add a Host',
|
||||
'hostDetails.chain.target': 'Target',
|
||||
'hostDetails.chain.availableHosts': 'Available Hosts',
|
||||
'hostDetails.chain.clear': 'Clear',
|
||||
@@ -1108,28 +1023,14 @@ export const enVaultMessages: Messages = {
|
||||
'hostDetails.plugin.useSsh': 'Use SSH instead',
|
||||
|
||||
// Host form (legacy modal)
|
||||
'hostForm.title.edit': 'Edit Host',
|
||||
'hostForm.title.new': 'New Host',
|
||||
'hostForm.desc.edit': 'Update connection details for this host',
|
||||
'hostForm.desc.new': 'Create a new SSH host entry',
|
||||
'hostForm.field.label': 'Label',
|
||||
'hostForm.placeholder.label': 'My Production Server',
|
||||
'hostForm.field.hostname': 'Hostname / IP',
|
||||
'hostForm.placeholder.hostname': '192.168.1.1',
|
||||
'hostForm.field.port': 'Port',
|
||||
'hostForm.field.username': 'Username',
|
||||
'hostForm.field.osType': 'OS Type',
|
||||
'hostForm.placeholder.selectOs': 'Select OS',
|
||||
'hostForm.field.group': 'Group',
|
||||
'hostForm.placeholder.group': 'e.g. AWS, DigitalOcean',
|
||||
'hostForm.field.tags': 'Tags',
|
||||
'hostForm.placeholder.addTag': 'Add a tag...',
|
||||
'hostForm.auth.method': 'Authentication Method',
|
||||
'hostForm.auth.password': 'Password',
|
||||
'hostForm.auth.sshKey': 'SSH Key',
|
||||
'hostForm.auth.selectKey': 'Select an SSH Key',
|
||||
'hostForm.auth.noKeys': 'No keys available',
|
||||
'hostForm.auth.noKeysHint': 'No SSH keys found in Keychain. Please create one first.',
|
||||
'hostForm.saveHost': 'Save Host',
|
||||
|
||||
// Connection logs
|
||||
@@ -1148,7 +1049,6 @@ export const enVaultMessages: Messages = {
|
||||
'logs.action.delete': 'Delete',
|
||||
|
||||
// Log view
|
||||
'logView.customizeAppearance': 'Customize appearance',
|
||||
'logView.appearance': 'Appearance',
|
||||
'logView.readOnly': 'Read-only',
|
||||
'logView.export': 'Export',
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
import type { Messages } from '../types';
|
||||
|
||||
export const esAiMessages: Messages = {
|
||||
'ai.chat.iterationLimitReached': 'Se alcanzó el límite del bucle de herramientas ({limit} iteraciones). Puedes continuar en este chat. Las tareas de terminal en ejecución no se detienen.',
|
||||
'ai.chat.continue': 'Continuar',
|
||||
'ai.chat.attachmentContentUnavailable': 'Contenido no disponible en este dispositivo',
|
||||
// AI Settings
|
||||
'ai.agentSettings': 'Configuración del agente',
|
||||
@@ -60,6 +62,9 @@ export const esAiMessages: Messages = {
|
||||
'ai.providers.apiKey': 'Clave de API',
|
||||
'ai.providers.apiKey.placeholder': 'Ingresa la clave de API',
|
||||
'ai.providers.apiKey.decrypting': 'Descifrando...',
|
||||
'ai.providers.opencodeGo.help': 'Pega una clave de API de OpenCode para usar OpenCode Go. La URL base y la lista de modelos se configuran automáticamente.',
|
||||
'ai.providers.opencodeGo.getKey': 'Obtener una clave de API',
|
||||
'ai.providers.fixedBaseUrl.help': 'Fijada por el proveedor. Netcatty elige automáticamente la ruta del endpoint para cada modelo.',
|
||||
'ai.providers.baseUrl': 'URL base',
|
||||
'ai.providers.baseUrl.anthropicHelp': 'Compatible con Anthropic: host con o sin /v1 (por ejemplo https://gateway.example o https://gateway.example/v1). La detección y el chat usan /v1/models y /v1/messages.',
|
||||
'ai.providers.baseUrl.ollamaHelp': 'Ollama local: http://localhost:11434/v1 (sin API key). Ollama Cloud: https://ollama.com/v1 y tu clave de Cloud.',
|
||||
@@ -333,6 +338,7 @@ export const esAiMessages: Messages = {
|
||||
'ai.defaultAgent': 'Agente predeterminado',
|
||||
'ai.defaultAgent.description': 'Agente que se usará al iniciar una nueva sesión de IA',
|
||||
'ai.defaultAgent.catty': 'Catty (Integrado)',
|
||||
'ai.defaultAgent.unavailable': 'No disponible',
|
||||
'ai.toolAccess.title': 'Acceso a herramientas',
|
||||
'ai.toolAccess.mode': 'Modo de acceso de Netcatty',
|
||||
'ai.toolAccess.description': 'Elige cómo acceden los agentes externos a las sesiones de Netcatty. MCP expone el servidor integrado, mientras que Habilidades + CLI apunta a los agentes hacia las habilidades locales de Netcatty y los comandos de CLI.',
|
||||
@@ -612,6 +618,23 @@ export const esAiMessages: Messages = {
|
||||
'ai.chat.rebindUsage': 'Uso: /rebind <número de /chats>',
|
||||
'ai.chat.rebindDone': 'Chat «{title}» reasociado a este panel.',
|
||||
'ai.chat.rebindUnavailable': 'No hay destino de reasociación en el ámbito de este panel.',
|
||||
'ai.chat.managerScopeTab': 'Actual',
|
||||
'ai.chat.managerAllChatsTab': 'Todos',
|
||||
'ai.chat.managerSearchPlaceholder': 'Buscar títulos de chats…',
|
||||
'ai.chat.managerFilterAllAgents': 'Todos los agentes',
|
||||
'ai.chat.managerMoreActions': 'Más acciones',
|
||||
'ai.chat.managerOpen': 'Abrir en este panel',
|
||||
'ai.chat.managerOpenDisabled': 'Vinculado a otro espacio de trabajo o terminal',
|
||||
'ai.chat.managerRebind': 'Mover a…',
|
||||
'ai.chat.managerRebindPick': 'Elegir terminal o espacio de trabajo…',
|
||||
'ai.chat.managerRebindHere': 'Panel actual',
|
||||
'ai.chat.managerRebindDone': 'Se movió «{title}» a {target}.',
|
||||
'ai.chat.managerExportOne': 'Exportar este chat',
|
||||
'ai.chat.managerBadgeActive': 'Activo',
|
||||
'ai.chat.managerBadgeIdle': 'Inactivo',
|
||||
'ai.chat.managerMessagesCount': '{n} mensajes',
|
||||
'ai.chat.managerDeleteTitle': '¿Eliminar este chat?',
|
||||
'ai.chat.managerDeleteMessage': '«{title}» y sus mensajes se eliminarán de todos los paneles. Esta acción no se puede deshacer.',
|
||||
'ai.chat.justNow': 'Ahora mismo',
|
||||
'ai.chat.minutesAgo': 'hace {n} min',
|
||||
'ai.chat.hoursAgo': 'hace {n} h',
|
||||
@@ -729,9 +752,6 @@ export const esAiMessages: Messages = {
|
||||
'terminal.layer.theme': 'Tema',
|
||||
'terminal.layer.notes': 'Notas',
|
||||
'terminal.layer.aiChat': 'Chat de IA',
|
||||
'terminal.layer.movePanelLeft': 'Mover panel a la izquierda',
|
||||
'terminal.layer.movePanelRight': 'Mover panel a la derecha',
|
||||
'terminal.layer.movePanelBottom': 'Mover panel a la parte inferior',
|
||||
'terminal.layer.choosePanelPosition': 'Cambiar posición',
|
||||
'terminal.layer.dockLeft': 'Izquierda',
|
||||
'terminal.layer.dockRight': 'Derecha',
|
||||
@@ -765,19 +785,15 @@ export const esAiMessages: Messages = {
|
||||
'terminal.layer.hostTree.details.protocol': 'Protocolo',
|
||||
'terminal.layer.hostTree.details.group': 'Grupo',
|
||||
'terminal.layer.hostTree.details.tags': 'Etiquetas',
|
||||
'terminal.layer.hostTree.details.lastConnected': 'Última conexión',
|
||||
'topTabs.openQuickSwitcher': 'Abrir selector rápido',
|
||||
'topTabs.moreTabs': 'Más pestañas',
|
||||
'topTabs.aiAssistant': 'Asistente de IA',
|
||||
'topTabs.newLocalTerminal': 'Nueva terminal local',
|
||||
'topTabs.controlPanel': 'Controles rápidos',
|
||||
'topTabs.controlPanel.externalMcp': 'MCP externo',
|
||||
'topTabs.controlPanel.theme': 'Tema',
|
||||
'topTabs.controlPanel.theme.light': 'Claro',
|
||||
'topTabs.controlPanel.theme.dark': 'Oscuro',
|
||||
'topTabs.controlPanel.theme.system': 'Sistema',
|
||||
'topTabs.externalMcp.enable': 'Habilitar MCP externo',
|
||||
'topTabs.externalMcp.disable': 'Desactivar MCP externo',
|
||||
'topTabs.windowOpacity': 'Opacidad de la ventana',
|
||||
'topTabs.openSettings': 'Abrir Configuración',
|
||||
'ai.chat.sessionHistory': 'Historial de sesiones',
|
||||
|
||||
@@ -84,7 +84,6 @@ export const esCoreMessages: Messages = {
|
||||
'common.edit': 'Editar',
|
||||
'common.clear': 'Limpiar',
|
||||
'common.optional': 'Opcional',
|
||||
'common.selectPlaceholder': 'Seleccionar...',
|
||||
'common.add': 'Agregar',
|
||||
'common.rename': 'Renombrar',
|
||||
'common.refresh': 'Actualizar',
|
||||
@@ -124,11 +123,9 @@ export const esCoreMessages: Messages = {
|
||||
'field.label': 'Etiqueta',
|
||||
'field.type': 'Tipo',
|
||||
'auth.keyType': 'Tipo {type}',
|
||||
'auth.showAllKeys': 'Mostrar todas las claves',
|
||||
|
||||
// Dialogs / prompts
|
||||
'confirm.deleteHost': '¿Eliminar el host "{name}"?',
|
||||
'confirm.deleteIdentity': '¿Eliminar la identidad "{name}"?',
|
||||
'confirm.removeProvider': '¿Quitar el proveedor "{name}"?',
|
||||
'confirm.closeBusyTerminal.title': 'Confirmar cierre',
|
||||
'confirm.closeBusyTerminal.message': 'El proceso "{command}" aún se está ejecutando y se terminará.',
|
||||
@@ -401,7 +398,6 @@ export const esCoreMessages: Messages = {
|
||||
'tray.status.inactive': 'Inactivo',
|
||||
'tray.status.error': 'Error',
|
||||
'tray.status.unknown': 'Desconocido',
|
||||
'tray.recentHosts': 'Hosts recientes',
|
||||
'tray.empty.title': 'Nada por aquí todavía',
|
||||
'tray.empty.subtitle': 'Ve a conectarte a un servidor, te extrañan 🚀',
|
||||
'tray.quit': 'Salir de Netcatty',
|
||||
@@ -460,9 +456,6 @@ export const esCoreMessages: Messages = {
|
||||
'update.downloadFailed.message': 'No se pudo descargar la actualización. Puedes descargarla manualmente.',
|
||||
'update.needsSave.title': 'Cambios sin guardar',
|
||||
'update.needsSave.message': 'Primero guarda los editores abiertos y luego haz clic en Reiniciar ahora de nuevo para instalar la actualización.',
|
||||
'update.openReleases': 'Abrir versiones',
|
||||
'update.remindLater': 'Recordarme después',
|
||||
'update.skipVersion': 'Omitir esta versión',
|
||||
|
||||
// Settings > Appearance
|
||||
'settings.appearance.uiTheme': 'Tema de la interfaz',
|
||||
@@ -912,7 +905,9 @@ Resalta el panel dividido enfocado:
|
||||
'settings.terminal.connection.temporaryNetworkDeviceMode': 'Modo de dispositivo de red para conexiones temporales',
|
||||
'settings.terminal.connection.temporaryNetworkDeviceMode.desc': 'Las conexiones SSH sin un host guardado, incluidos los inicios externos y la conexión rápida, se inician en modo de dispositivo de red. Los hosts y grupos guardados conservan su propio tipo de dispositivo. Desactivado de forma predeterminada.',
|
||||
'settings.terminal.connection.sshAutoReconnectEnabled': 'Reconectar sesiones SSH automáticamente',
|
||||
'settings.terminal.connection.sshAutoReconnectEnabled.desc': 'Cuando está activado, las sesiones SSH establecidas que se caen inesperadamente intentan reconectarse cada 5 segundos hasta que la pestaña se cierra o la conexión se establece.',
|
||||
'settings.terminal.connection.sshAutoReconnectEnabled.desc': 'Reintenta las sesiones SSH desconectadas inesperadamente con el intervalo configurado hasta cerrar la pestaña o restablecer la conexión.',
|
||||
'settings.terminal.connection.sshAutoReconnectInterval': 'Intervalo de reconexión SSH (segundos)',
|
||||
'settings.terminal.connection.sshAutoReconnectInterval.desc': 'Espera entre intentos: 5–3600 segundos (predeterminado 5). Los cambios se aplican al siguiente intento programado, sin alterar una espera en curso.',
|
||||
'settings.terminal.connection.keepaliveInterval': 'Intervalo de keepalive',
|
||||
'settings.terminal.connection.keepaliveInterval.desc': 'Con qué frecuencia (en segundos) enviar paquetes keepalive a nivel de SSH. Pon 0 para desactivarlo globalmente; ten en cuenta que los hosts individuales pueden anular esto en su propia configuración.',
|
||||
'settings.terminal.connection.keepaliveCountMax': 'Máximo de keepalives sin respuesta',
|
||||
@@ -1083,8 +1078,6 @@ Resalta el panel dividido enfocado:
|
||||
'settings.shortcuts.binding.sftp-navigate-to': 'Ir al directorio seleccionado',
|
||||
|
||||
// Context menus / common actions
|
||||
'action.newHost': 'Nuevo host',
|
||||
'action.newSubfolder': 'Nueva subcarpeta',
|
||||
'action.copyPublicKey': 'Copiar clave pública',
|
||||
'action.keyExport': 'Exportar clave',
|
||||
'action.edit': 'Editar',
|
||||
@@ -1319,12 +1312,9 @@ Resalta el panel dividido enfocado:
|
||||
"settings.plugins.manager.remove": "Desinstalar",
|
||||
"settings.plugins.manager.removeNote": "La desinstalación elimina el código y los datos KV locales. Se conservan los ajustes del usuario, los secretos y los datos auxiliares de sincronización.",
|
||||
"settings.plugins.permissions.statusUnknown": "Estado desconocido",
|
||||
"plugins.sidebar.extensions": "Páginas de extensiones",
|
||||
"plugins.sidebar.selectTerminal": "Selecciona primero un terminal abierto.",
|
||||
"plugins.sidebar.loading": "Cargando página de extensión…",
|
||||
"plugins.vault.loading": "Cargando página del plugin…",
|
||||
"plugins.vault.extensions": "Extensiones",
|
||||
"plugins.vault.back": "Volver a hosts",
|
||||
"plugins.interaction.title": "Solicitud de complemento",
|
||||
"plugins.interaction.sharing": "El texto compartido estará disponible para este complemento y sus capacidades autorizadas, incluida la red. Leer no autoriza un nuevo destino de red.",
|
||||
"plugins.interaction.input": "Introducir texto",
|
||||
@@ -1473,6 +1463,7 @@ Resalta el panel dividido enfocado:
|
||||
'plugins.hostActions.selectionNote': 'Solo se comparten los nombres, direcciones, usuarios, protocolos, grupos y etiquetas guardados de los equipos seleccionados. Los grupos solo incluyen los equipos seleccionados ahora. Las solicitudes posteriores de edición o conexión siguen los permisos de este complemento.',
|
||||
'plugins.hostActions.create': 'Revisar borrador de equipo',
|
||||
'plugins.hostActions.edit': 'Revisar cambios del equipo',
|
||||
'plugins.hostActions.streamNote': 'Permite que este complemento envíe y reciba datos en este destino a través del servidor SSH seleccionado. Las direcciones se resuelven en ese servidor. Esto puede leer o modificar datos de bases de datos. No se abrirá ninguna terminal ni se ejecutarán scripts de inicio. Las contraseñas y claves SSH permanecen en la aplicación. Selecciona un servidor SSH para continuar.',
|
||||
'plugins.hostActions.connect': 'Confirmar conexión',
|
||||
'plugins.hostActions.fieldDiff': 'Cambios que se guardarán',
|
||||
'plugins.hostActions.defaultsWarning': 'Se aplican los ajustes de conexión guardados. Cambiar el grupo puede cambiar la autenticación, el proxy y los scripts heredados.',
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
export const esScriptsMessages = {
|
||||
'scripts.meta.name': 'Nombre',
|
||||
'scripts.meta.language': 'Lenguaje',
|
||||
'scripts.meta.description': 'Descripción',
|
||||
'scripts.meta.descriptionPlaceholder': 'Notas opcionales sobre este script',
|
||||
'scripts.meta.trigger': 'Disparador',
|
||||
@@ -15,7 +14,6 @@ export const esScriptsMessages = {
|
||||
'scripts.actions.openEditor': 'Abrir editor',
|
||||
'scripts.actions.openEditorHint': 'Editar el script en una ventana más grande',
|
||||
'scripts.editor.modalTitle': 'Editor de scripts',
|
||||
'scripts.editor.modalSubtitle': 'Edita los metadatos y el código del script en un espacio de trabajo más amplio.',
|
||||
'scripts.editor.lineCount': '{count} líneas',
|
||||
'scripts.editor.resize': 'Redimensionar el editor',
|
||||
'scripts.targets.hint': 'Los grupos seleccionados se resuelven dinámicamente, por lo que los hosts agregados después se incluyen automáticamente.',
|
||||
@@ -86,17 +84,13 @@ export const esScriptsMessages = {
|
||||
'scripts.dialog.retry': 'Reintentar',
|
||||
'scripts.dialog.skip': 'Omitir',
|
||||
'scripts.dialog.abort': 'Abortar',
|
||||
'scripts.running.stepProgress': 'Paso {current} / {total}',
|
||||
'scripts.running.determinateProgress': '{label} {current}/{total}',
|
||||
'scripts.running.progressFallback': 'Progreso',
|
||||
'scripts.running.operationsCount': '{count} operaciones',
|
||||
'scripts.running.opsPrefix': '',
|
||||
'scripts.running.opsSuffix': ' operaciones',
|
||||
'scripts.running.elapsedLabel': 'Transcurrido',
|
||||
'scripts.running.lastSentLabel': 'Enviado:',
|
||||
'scripts.running.elapsed': '{elapsed}',
|
||||
'scripts.running.completedSummary': 'Completado · {count} operaciones · {elapsed}',
|
||||
'scripts.running.dismissHint': 'Toca cerrar para descartar',
|
||||
'scripts.running.dismiss': 'Cerrar',
|
||||
'scripts.running.viewLogs': 'Ver registros',
|
||||
'scripts.running.logTitle': '{name} · Registro de ejecución',
|
||||
@@ -111,26 +105,12 @@ export const esScriptsMessages = {
|
||||
'vault.nav.scripts': 'Scripts',
|
||||
'snippets.action.newScript': 'Nuevo script de automatización',
|
||||
'hostDetails.section.automation': 'Automatización',
|
||||
'hostDetails.automation.loginScript': 'Script de inicio de sesión',
|
||||
'hostDetails.automation.loginScriptPlaceholder': 'Selecciona un script',
|
||||
'hostDetails.automation.none': 'Ninguno',
|
||||
'hostDetails.automation.outputTriggers': 'Disparadores de salida',
|
||||
'hostDetails.automation.addTrigger': 'Agregar disparador',
|
||||
'hostDetails.automation.triggerPatternPlaceholder': 'Patrón de regex',
|
||||
'hostDetails.automation.linkedScripts': 'Scripts vinculados',
|
||||
'hostDetails.automation.linkedScriptsEmpty': 'Aún no hay scripts vinculados a este host.',
|
||||
'hostDetails.automation.linkScriptPlaceholder': 'Vincular script existente…',
|
||||
'hostDetails.automation.unlink': 'Desvincular',
|
||||
'hostDetails.automation.equivalenceHint': 'Los vínculos agregan este host a la lista de destinos del script en Scripts. Ambas vistas se mantienen sincronizadas.',
|
||||
'hostDetails.automation.queueHint': 'Los scripts se ejecutan en orden cuando este host se conecta. Los scripts globales se ejecutan primero, luego esta cola.',
|
||||
'hostDetails.automation.globalScripts': 'Scripts de conexión globales',
|
||||
'hostDetails.automation.globalScriptsHint': 'Se ejecutan primero en cada conexión. Reordena según el orden de clasificación de la biblioteca de Scripts.',
|
||||
'hostDetails.automation.connectQueue': 'Cola de ejecución de este host',
|
||||
'hostDetails.automation.connectQueueEmpty': 'Aún no hay scripts de conexión en cola para este host.',
|
||||
'hostDetails.automation.addToQueuePlaceholder': 'Agregar script a la cola…',
|
||||
'hostDetails.automation.moveUp': 'Subir',
|
||||
'hostDetails.automation.moveDown': 'Bajar',
|
||||
'hostDetails.automation.removeFromQueue': 'Quitar de la cola',
|
||||
'hostDetails.automation.dragHandle': 'Arrastra para reordenar',
|
||||
'hostDetails.automation.queueDragHint': 'Arrastra los elementos para reordenar la cola de conexión.',
|
||||
};
|
||||
@@ -14,13 +14,11 @@ export const esSystemManagerMessages: Messages = {
|
||||
'systemManager.tabs.docker': 'Docker',
|
||||
'systemManager.tabs.gpu': 'GPU',
|
||||
'systemManager.tabs.ariaLabel': 'Secciones del administrador del sistema',
|
||||
'systemManager.popup.loading': 'Abriendo terminal…',
|
||||
'systemManager.popup.startupFailed': 'El comando de inicio no se completó correctamente. Verifica que el destino siga disponible e inténtalo de nuevo.',
|
||||
|
||||
'systemManager.errors.loadProcesses': 'No se pudieron cargar los procesos',
|
||||
'systemManager.errors.loadTmux': 'No se pudieron cargar las sesiones de tmux',
|
||||
'systemManager.errors.loadTmuxWindows': 'No se pudieron cargar las ventanas de tmux',
|
||||
'systemManager.errors.loadTmuxPanes': 'No se pudieron cargar los paneles de tmux',
|
||||
'systemManager.errors.loadTmuxClients': 'No se pudieron cargar los clientes de tmux',
|
||||
'systemManager.errors.actionFailed': 'La acción falló',
|
||||
'systemManager.errors.loadDocker': 'No se pudieron cargar los contenedores',
|
||||
@@ -28,7 +26,6 @@ export const esSystemManagerMessages: Messages = {
|
||||
'systemManager.errors.loadDockerImages': 'No se pudieron cargar las imágenes',
|
||||
'systemManager.errors.loadKubernetes': 'No se pudieron cargar los recursos de Kubernetes',
|
||||
'systemManager.errors.loadPods': 'No se pudieron cargar los pods',
|
||||
'systemManager.errors.loadOverview': 'No se pudo cargar el resumen del sistema',
|
||||
'systemManager.errors.loadGpu': 'No se pudieron cargar las estadísticas de GPU / NPU',
|
||||
'systemManager.errors.loadPorts': 'No se pudieron cargar los puertos en escucha',
|
||||
'systemManager.errors.loadServices': 'No se pudieron cargar los servicios de systemd',
|
||||
@@ -65,13 +62,10 @@ export const esSystemManagerMessages: Messages = {
|
||||
'systemManager.overview.noTopProcesses': 'Sin datos de procesos',
|
||||
|
||||
'systemManager.processes.search': 'Buscar procesos…',
|
||||
'systemManager.processes.command': 'Comando',
|
||||
'systemManager.processes.user': 'Usuario',
|
||||
'systemManager.processes.term': 'Terminar',
|
||||
'systemManager.processes.kill': 'Forzar cierre',
|
||||
'systemManager.processes.stop': 'Detener (SIGSTOP)',
|
||||
'systemManager.processes.cont': 'Continuar (SIGCONT)',
|
||||
'systemManager.processes.hup': 'Colgar (SIGHUP)',
|
||||
'systemManager.processes.renice': 'Renice',
|
||||
'systemManager.processes.renicePrompt': 'Valor de nice (-20 a 19)',
|
||||
'systemManager.processes.reniceInvalid': 'El valor de nice debe estar entre -20 y 19',
|
||||
@@ -86,7 +80,6 @@ export const esSystemManagerMessages: Messages = {
|
||||
'systemManager.processes.stat': 'Estado',
|
||||
'systemManager.processes.meta': '{{count}} proceso(s)',
|
||||
'systemManager.processes.loading': 'Cargando procesos…',
|
||||
'systemManager.processes.loadingMore': 'Cargando más procesos…',
|
||||
'systemManager.processes.state.running': 'En ejecución',
|
||||
'systemManager.processes.state.sleeping': 'En reposo',
|
||||
'systemManager.processes.state.stopped': 'Detenido',
|
||||
@@ -124,12 +117,9 @@ export const esSystemManagerMessages: Messages = {
|
||||
'systemManager.tmux.attached': 'Conectada',
|
||||
'systemManager.tmux.detached': 'Desacoplada',
|
||||
'systemManager.tmux.windows': '{{count}} ventana(s)',
|
||||
'systemManager.tmux.created': 'Creada',
|
||||
'systemManager.tmux.activity': 'Actividad',
|
||||
'systemManager.tmux.rename': 'Renombrar',
|
||||
'systemManager.tmux.detach': 'Desacoplar todo',
|
||||
'systemManager.tmux.killSession': 'Terminar sesión',
|
||||
'systemManager.tmux.killServer': 'Terminar servidor',
|
||||
'systemManager.tmux.loadingDetails': 'Cargando detalles…',
|
||||
'systemManager.tmux.clients': 'Clientes conectados',
|
||||
'systemManager.tmux.windowList': 'Ventanas',
|
||||
@@ -140,31 +130,17 @@ export const esSystemManagerMessages: Messages = {
|
||||
'systemManager.docker.unavailable': 'No se detectó ningún runtime de contenedores (Docker, Podman, nerdctl o kubectl) en este host',
|
||||
'systemManager.tmux.windowsMismatch': 'La sesión reporta {{count}} ventana(s), pero list-windows no devolvió ninguna',
|
||||
'systemManager.tmux.lastCommand': 'último comando: {{command}}',
|
||||
'systemManager.tmux.noPanes': 'No hay paneles',
|
||||
'systemManager.tmux.panes': '{{count}} panel(es)',
|
||||
'systemManager.tmux.active': 'activo',
|
||||
'systemManager.tmux.unnamedWindow': 'Ventana sin nombre',
|
||||
'systemManager.tmux.unnamedPane': 'Panel sin nombre',
|
||||
'systemManager.tmux.attachWindow': 'Conectar a la ventana',
|
||||
'systemManager.tmux.selectWindow': 'Seleccionar ventana',
|
||||
'systemManager.tmux.killWindow': 'Terminar ventana',
|
||||
'systemManager.tmux.killPane': 'Terminar panel',
|
||||
'systemManager.tmux.splitHorizontal': 'Dividir horizontal',
|
||||
'systemManager.tmux.splitVertical': 'Dividir vertical',
|
||||
'systemManager.tmux.sendKeys': 'Enviar teclas',
|
||||
'systemManager.tmux.sendKeysTo': 'Enviar teclas a la ventana {{window}} panel {{pane}}',
|
||||
'systemManager.tmux.sendKeysPlaceholder': 'Comando o texto…',
|
||||
'systemManager.tmux.renameSessionPrompt': 'Renombrar sesión',
|
||||
'systemManager.tmux.renameWindowPrompt': 'Renombrar ventana',
|
||||
'systemManager.tmux.windowName': 'Nombre de la ventana',
|
||||
'systemManager.tmux.confirmKillSession': '¿Terminar la sesión de tmux "{{name}}"?',
|
||||
'systemManager.tmux.confirmDetachSession': '¿Desacoplar todos los clientes de "{{name}}"?',
|
||||
'systemManager.tmux.confirmKillWindow': '¿Terminar la ventana "{{name}}"?',
|
||||
'systemManager.tmux.confirmKillPane': '¿Terminar el panel #{{index}}?',
|
||||
'systemManager.tmux.confirmKillServer': '¿Terminar el servidor de tmux? Se terminarán todas las sesiones.',
|
||||
'systemManager.tmux.meta': '{{count}} sesión(es)',
|
||||
|
||||
'systemManager.docker.title': 'Contenedores',
|
||||
'systemManager.docker.subTabs.containers': 'Contenedores',
|
||||
'systemManager.docker.subTabs.images': 'Imágenes',
|
||||
'systemManager.docker.empty': 'No se encontraron contenedores',
|
||||
@@ -177,7 +153,6 @@ export const esSystemManagerMessages: Messages = {
|
||||
'systemManager.docker.filter.paused': 'En pausa',
|
||||
'systemManager.docker.shell': 'Shell',
|
||||
'systemManager.docker.logs': 'Registros',
|
||||
'systemManager.docker.details': 'Detalles',
|
||||
'systemManager.docker.inspect': 'Inspeccionar',
|
||||
'systemManager.docker.imageInspect': 'Inspección de imagen',
|
||||
'systemManager.docker.confirmRemove': '¿Eliminar este contenedor?',
|
||||
|
||||
@@ -12,6 +12,8 @@ export const esTerminalMessages: Messages = {
|
||||
'terminal.directory.hidden': 'Mostrar directorios ocultos',
|
||||
'terminal.directory.refresh': 'Actualizar',
|
||||
'terminal.directory.unavailable': 'La navegación de directorios no está disponible para esta sesión.',
|
||||
'terminal.directory.integrationUnavailable': 'La integración de directorios de PowerShell no está lista. Los argumentos de inicio o la política de ejecución pueden impedirla.',
|
||||
'terminal.directory.nonFilesystem': 'La ubicación actual de PowerShell no es un directorio del sistema de archivos.',
|
||||
'terminal.directory.busy': 'Espera a que el prompt esté vacío.',
|
||||
'terminal.directory.readFailed': 'No se pudo leer el directorio. Actualiza e inténtalo de nuevo.',
|
||||
'terminal.directory.changeFailed': 'No se pudo confirmar el cambio. Actualiza antes de reintentar.',
|
||||
@@ -53,7 +55,6 @@ export const esTerminalMessages: Messages = {
|
||||
'terminal.toolbar.availableAfterConnect': 'Disponible después de conectar',
|
||||
'terminal.toolbar.sendYmodem': 'Enviar con YMODEM',
|
||||
'terminal.toolbar.receiveYmodem': 'Recibir con YMODEM',
|
||||
'terminal.toolbar.sftp': 'SFTP',
|
||||
'terminal.toolbar.more': 'Más acciones',
|
||||
'terminal.toolbar.scripts': 'Scripts',
|
||||
'terminal.toolbar.history': 'Historial de comandos',
|
||||
@@ -101,7 +102,6 @@ export const esTerminalMessages: Messages = {
|
||||
'terminal.composeBar.resize': 'Cambiar la altura de la barra de redacción',
|
||||
'terminal.composeBar.manageSnippets': 'Administrar snippets rápidos',
|
||||
'terminal.composeBar.searchSnippets': 'Buscar snippets...',
|
||||
'terminal.composeBar.noPinnedSnippets': 'Fija snippets con + para acceso rápido',
|
||||
'terminal.composeBar.noMatchingSnippets': 'No hay snippets que coincidan',
|
||||
'terminal.composeBar.pinnedCount': '{count} fijados',
|
||||
'terminal.composeBar.unpinSnippet': 'Quitar {label} de la barra rápida',
|
||||
@@ -195,7 +195,6 @@ export const esTerminalMessages: Messages = {
|
||||
'terminal.osc7Setup.title': 'Configurar seguimiento de directorio',
|
||||
'terminal.osc7Setup.desc': 'Netcatty agregará hooks de prompt OSC 7 para el usuario remoto actual. Esto ayuda a que SFTP siga el directorio de la terminal después de sudo o su.',
|
||||
'terminal.osc7Setup.targets': 'Posibles archivos a actualizar',
|
||||
'terminal.osc7Setup.command': 'Comando a ejecutar',
|
||||
'terminal.osc7Setup.run': 'Ejecutar configuración',
|
||||
'terminal.osc7Setup.running': 'Configurando...',
|
||||
'terminal.osc7Setup.configured': 'Seguimiento de directorio configurado',
|
||||
@@ -279,9 +278,6 @@ export const esTerminalMessages: Messages = {
|
||||
'terminal.themeModal.themeType': 'Tema {type}',
|
||||
'terminal.hiddenTheme.title': 'Tema oculto actual',
|
||||
'terminal.hiddenTheme.desc': 'Este tema está oculto de la selección manual y se reemplazará cuando elijas otro tema.',
|
||||
'topTabs.toggleTheme.systemExitTitle': 'El tema del sistema está activo',
|
||||
'topTabs.toggleTheme.systemExitMessage': 'Abre Configuración para elegir un tema fijo de Claro u Oscuro.',
|
||||
'topTabs.toggleTheme.openSettings': 'Abrir Configuración',
|
||||
|
||||
// Custom Themes
|
||||
'terminal.customTheme.section': 'Temas personalizados',
|
||||
@@ -294,7 +290,6 @@ export const esTerminalMessages: Messages = {
|
||||
'terminal.customTheme.importDesc': 'Importar desde archivo de esquema de color de iTerm2',
|
||||
'terminal.customTheme.importError': 'No se pudo analizar el archivo seleccionado. Asegúrate de que sea un archivo XML .itermcolors válido.',
|
||||
'terminal.customTheme.delete': 'Eliminar tema',
|
||||
'terminal.customTheme.confirmDelete': 'Confirmar eliminación',
|
||||
'terminal.customTheme.name': 'Nombre',
|
||||
'terminal.customTheme.namePlaceholder': 'Mi tema personalizado',
|
||||
'terminal.customTheme.type': 'Tipo',
|
||||
@@ -354,10 +349,7 @@ export const esTerminalMessages: Messages = {
|
||||
'cloudSync.provider.disconnect.cloudRemains': 'Las copias de sincronización cifradas pueden seguir en tu almacenamiento de {name}. Para eliminarlas, borra los archivos de sincronización allí. Desconectar no prepara este dispositivo para entregarlo a otra persona.',
|
||||
'cloudSync.provider.disconnect.failed': 'No se pudo completar la desconexión de {name}. Los datos de conexión guardados podrían permanecer. Inténtalo de nuevo.',
|
||||
'cloudSync.provider.webdav': 'WebDAV',
|
||||
'cloudSync.provider.webdav.desc': 'Conectar a un endpoint WebDAV autoalojado',
|
||||
'cloudSync.provider.s3': 'Compatible con S3',
|
||||
'cloudSync.provider.s3.desc': 'Conectar a almacenamiento de objetos compatible con S3',
|
||||
'cloudSync.provider.comingSoon': 'Próximamente',
|
||||
'cloudSync.webdav.title': 'Configuración de WebDAV',
|
||||
'cloudSync.webdav.desc': 'Configura un endpoint WebDAV para la sincronización cifrada.',
|
||||
'cloudSync.webdav.endpoint': 'URL del endpoint',
|
||||
@@ -386,20 +378,6 @@ export const esTerminalMessages: Messages = {
|
||||
'cloudSync.s3.allowInsecure': 'Permitir conexión insegura (ignorar errores de certificado)',
|
||||
'cloudSync.s3.showSecret': 'Mostrar secretos',
|
||||
'cloudSync.s3.validation.required': 'Endpoint, región, bucket, clave de acceso y secreto son obligatorios.',
|
||||
'cloudSync.smb.title': 'Configuración de SMB',
|
||||
'cloudSync.smb.desc': 'Conéctate a un recurso compartido de archivos SMB/CIFS para la sincronización cifrada.',
|
||||
'cloudSync.smb.share': 'Ruta del recurso compartido',
|
||||
'cloudSync.smb.username': 'Nombre de usuario',
|
||||
'cloudSync.smb.password': 'Contraseña',
|
||||
'cloudSync.smb.domain': 'Dominio (opcional)',
|
||||
'cloudSync.smb.domainPlaceholder': 'p. ej., WORKGROUP',
|
||||
'cloudSync.smb.port': 'Puerto (opcional)',
|
||||
'cloudSync.smb.showSecret': 'Mostrar contraseña',
|
||||
'cloudSync.smb.validation.share': 'La ruta del recurso compartido es obligatoria.',
|
||||
'cloudSync.smb.validation.port': 'El puerto debe ser un número entre 1 y 65535.',
|
||||
'cloudSync.connect.smb.success': 'SMB se conectó correctamente',
|
||||
'cloudSync.connect.smb.failedTitle': 'Falló la conexión a SMB',
|
||||
'cloudSync.provider.smb': 'Recurso compartido SMB',
|
||||
'cloudSync.connect.webdav.success': 'WebDAV se conectó correctamente',
|
||||
'cloudSync.connect.webdav.failedTitle': 'Falló la conexión a WebDAV',
|
||||
'cloudSync.connect.s3.success': 'S3 se conectó correctamente',
|
||||
@@ -416,7 +394,6 @@ export const esTerminalMessages: Messages = {
|
||||
'cloudSync.lastSync.minutesAgo': 'Hace {minutes} min',
|
||||
'cloudSync.changeKey': 'Cambiar clave',
|
||||
'cloudSync.providers.title': 'Proveedores de nube',
|
||||
'cloudSync.syncAll': 'Sincronizar todos los proveedores conectados',
|
||||
'cloudSync.autoSync.title': 'Sincronización automática',
|
||||
'cloudSync.autoSync.desc': 'Sincronizar automáticamente cuando se realicen cambios',
|
||||
'cloudSync.strategy.title': 'Estrategia de sincronización',
|
||||
@@ -481,7 +458,6 @@ export const esTerminalMessages: Messages = {
|
||||
'cloudSync.localBackups.folderWarning': 'Esta carpeta por sí sola no es una copia de seguridad completa y portátil. Eliminar o vaciar el perfil de la aplicación (userData) puede impedir la lectura de estos puntos de restauración.',
|
||||
'cloudSync.localBackups.retentionTitle': 'Retención de copias de seguridad',
|
||||
'cloudSync.localBackups.retentionDesc': 'Elige cuántas copias de seguridad locales debe conservar Netcatty.',
|
||||
'cloudSync.localBackups.maxCount': 'Copias máximas',
|
||||
'cloudSync.localBackups.maxSaved': 'Retención de copia guardada: {count}',
|
||||
'cloudSync.localBackups.maxInvalid': 'Ingresa un número entre 1 y 100.',
|
||||
'cloudSync.localBackups.empty': 'Aún no hay copias de seguridad locales.',
|
||||
@@ -604,10 +580,7 @@ export const esTerminalMessages: Messages = {
|
||||
'cloudSync.clearLocal.toast.desc': 'Versión local restablecida a 0. Sincroniza para descargar desde la nube.',
|
||||
|
||||
// Keychain
|
||||
'keychain.filter.key': 'CLAVE',
|
||||
'keychain.filter.certificate': 'CERTIFICADO',
|
||||
'keychain.action.generateKey': 'Generar clave',
|
||||
'keychain.action.importKey': 'Importar clave',
|
||||
'keychain.action.newIdentity': 'Nueva identidad',
|
||||
'keychain.action.importCertificate': 'Importar certificado',
|
||||
'keychain.view.grid': 'Cuadrícula',
|
||||
@@ -651,20 +624,8 @@ export const esTerminalMessages: Messages = {
|
||||
'keychain.export.exporting': 'Exportando...',
|
||||
'keychain.export.exportAndAttach': 'Exportar y adjuntar',
|
||||
'keychain.export.title': 'Exportación de clave',
|
||||
'keychain.export.exportToRequired': 'Exportar a *',
|
||||
'keychain.export.selectHostPlaceholder': 'Selecciona un host...',
|
||||
'keychain.export.locationLabel': 'Ubicación ~ $1 *',
|
||||
'keychain.export.filenameLabel': 'Nombre de archivo ~ $2 *',
|
||||
'keychain.export.advanced': 'Avanzado',
|
||||
'keychain.export.note.supportsOnly': 'La exportación de claves actualmente solo admite',
|
||||
'keychain.export.note.systems': 'sistemas.',
|
||||
'keychain.export.note.use': 'Usa la',
|
||||
'keychain.export.note.customize': 'sección para personalizar el script de exportación.',
|
||||
'keychain.export.scriptRequired': 'Script *',
|
||||
'keychain.export.exportToHost': 'Exportar al host',
|
||||
'keychain.export.failedGeneric': 'Falló la exportación: {message}',
|
||||
'keychain.field.label': 'Etiqueta',
|
||||
'keychain.field.labelRequired': 'Etiqueta *',
|
||||
'keychain.field.labelPlaceholder': 'Etiqueta de la clave',
|
||||
'keychain.field.privateKeyRequired': 'Clave privada *',
|
||||
'keychain.field.publicKey': 'Clave pública',
|
||||
@@ -679,7 +640,6 @@ export const esTerminalMessages: Messages = {
|
||||
'keychain.import.dropHint': 'Suelta un archivo de clave aquí',
|
||||
'keychain.import.importFromFile': 'Importar desde archivo',
|
||||
'keychain.import.saveKey': 'Guardar clave',
|
||||
'keychain.import.importedKeyLabel': 'Clave importada',
|
||||
'keychain.identity.usernameRequired': 'Nombre de usuario *',
|
||||
'keychain.identity.method.passwordOnly': 'Contraseña',
|
||||
'keychain.identity.summary.password': 'Contraseña de autenticación',
|
||||
@@ -688,14 +648,8 @@ export const esTerminalMessages: Messages = {
|
||||
'keychain.identity.summary.passwordAndKey': 'Contraseña y clave de autenticación',
|
||||
'keychain.identity.summary.passwordAndCertificate': 'Contraseña y certificado de autenticación',
|
||||
'keychain.identity.summary.none': 'Sin credenciales',
|
||||
'keychain.identity.selectCredential': 'Seleccionar {kind}',
|
||||
'keychain.identity.save': 'Guardar',
|
||||
'keychain.identity.update': 'Actualizar',
|
||||
'keychain.keyDialog.newTitle': 'Nueva clave',
|
||||
'keychain.keyDialog.newDesc': 'Agregar una nueva clave SSH',
|
||||
'keychain.keyDialog.editTitle': 'Editar clave',
|
||||
'keychain.keyDialog.editDesc': 'Actualizar esta clave SSH',
|
||||
'keychain.keyDialog.updateKey': 'Actualizar clave',
|
||||
'keychain.generate.standardKeys': 'Claves estándar',
|
||||
'keychain.generate.securityKeys': 'Llaves de seguridad · FIDO2',
|
||||
'keychain.generate.residentDesc': 'Permite recuperar las credenciales desde esta llave de seguridad.',
|
||||
@@ -704,7 +658,6 @@ export const esTerminalMessages: Messages = {
|
||||
'keychain.generate.fidoHint': 'Conecta una llave de seguridad FIDO2. Es posible que se te solicite su PIN o un toque.',
|
||||
'keychain.generate.resident': 'Guardar las credenciales en la llave',
|
||||
'keychain.generate.verifyRequired': 'Verificar el PIN cada vez',
|
||||
'keychain.action.loadResident': 'Cargar claves residentes desde la llave de seguridad',
|
||||
|
||||
// FIDO2 security key prompts and recovery states
|
||||
'fido.prompt.pinTouchDesc': 'Ingresa tu PIN y luego toca la llave para confirmar.',
|
||||
@@ -720,7 +673,6 @@ export const esTerminalMessages: Messages = {
|
||||
'fido.prompt.touchWaiting': 'Esperando tu llave…',
|
||||
'fido.prompt.touchAutomatic': 'Continúa automáticamente después de que la toques',
|
||||
'fido.prompt.cancelled': 'Se canceló la autenticación con llave de seguridad.',
|
||||
'fido.prompt.touchDone': 'Ya la toqué',
|
||||
'fido.prompt.timeout': 'El aviso de FIDO agotó el tiempo de espera. Intenta conectarte de nuevo.',
|
||||
'fido.recovery.device-unavailable.title': 'Conecta la llave de seguridad correspondiente',
|
||||
'fido.recovery.device-unavailable.desc': 'Conecta el dispositivo que contiene la credencial de esta llave y vuelve a intentarlo.',
|
||||
@@ -733,8 +685,6 @@ export const esTerminalMessages: Messages = {
|
||||
'fido.recovery.retry': 'Reintentar verificación',
|
||||
'fido.recovery.usePassword': 'Usar la contraseña configurada',
|
||||
'fido.recovery.passwordFallback': 'Probando la contraseña configurada para este host',
|
||||
'fido.error.opensshMissing': 'Se requiere OpenSSH con FIDO/libfido2. En macOS: brew install openssh libfido2.',
|
||||
'fido.error.agentUnavailable': 'No se pudo iniciar un agente SSH compatible con FIDO.',
|
||||
|
||||
// Tabs
|
||||
'tabs.closeSessionAria': 'Cerrar sesión',
|
||||
@@ -746,6 +696,8 @@ export const esTerminalMessages: Messages = {
|
||||
'tabs.duplicateSession': 'Duplicar sesión',
|
||||
'tabs.copyTabToNewWindow': 'Copiar pestaña a una nueva ventana',
|
||||
'tabs.copyTabToNewWindowFailed': 'No se pudo abrir la pestaña en una nueva ventana',
|
||||
'tabs.moveTabToNewWindow': 'Mover pestaña a una nueva ventana',
|
||||
'tabs.moveTabToNewWindowFailed': 'No se pudo mover la pestaña a una nueva ventana',
|
||||
'tabs.closeOthers': 'Cerrar las demás',
|
||||
'tabs.closeToLeft': 'Cerrar pestañas a la izquierda',
|
||||
'tabs.closeToRight': 'Cerrar pestañas a la derecha',
|
||||
@@ -809,8 +761,6 @@ export const esTerminalMessages: Messages = {
|
||||
'snippets.search.noResults.desc': 'Ningún script o paquete de scripts coincide con "{query}". Prueba con otro término de búsqueda o limpia la búsqueda para explorar.',
|
||||
'snippets.section.packages': 'Paquetes de scripts',
|
||||
'snippets.section.snippets': 'Scripts',
|
||||
'snippets.kind.codeSnippet': 'Snippet de código',
|
||||
'snippets.kind.automationScript': 'Script de automatización',
|
||||
'snippets.package.count': '{count} script(s)',
|
||||
'snippets.commandFallback': 'Comando',
|
||||
'snippets.view.grid': 'Cuadrícula',
|
||||
@@ -842,9 +792,6 @@ export const esTerminalMessages: Messages = {
|
||||
'snippets.import.modal.multipleFiles': '{count} archivos seleccionados',
|
||||
'snippets.import.modal.parsedSummary': '{files} archivo(s), {total} script(s), {packages} paquete(s) de scripts, {conflicts} comando(s) duplicado(s). Las vinculaciones de host se ignoran.',
|
||||
'snippets.import.modal.confirm': 'Confirmar importación',
|
||||
'snippets.import.conflict.title': '¿Importar snippets?',
|
||||
'snippets.import.conflict.desc': '{file} contiene {total} snippet(s). Ya existen {conflicts} comando(s) duplicado(s).',
|
||||
'snippets.import.conflict.hostBindingsNote': 'Las vinculaciones de host no se importan ni se exportan con los snippets.',
|
||||
'snippets.import.conflict.skip': 'Omitir duplicados',
|
||||
'snippets.import.conflict.overwrite': 'Sobrescribir duplicados',
|
||||
'snippets.packageDialog.title': 'Nuevo paquete de scripts',
|
||||
@@ -903,9 +850,6 @@ export const esTerminalMessages: Messages = {
|
||||
'serial.field.customPort': 'Ruta de puerto personalizada',
|
||||
'serial.field.namedPipeHint': 'Consola de VM en Windows: introduce \\\\.\\pipe\\name. La VM debe crear la canalización como servidor. Se ignoran la velocidad y la trama.',
|
||||
'serial.field.customPortPlaceholder': 'p. ej., /dev/ttys001 o COM1',
|
||||
'serial.type.hardware': 'Hardware',
|
||||
'serial.type.pseudo': 'Pseudoterminal',
|
||||
'serial.type.custom': 'Personalizado',
|
||||
'serial.parity.none': 'Ninguna',
|
||||
'serial.parity.even': 'Par',
|
||||
'serial.parity.odd': 'Impar',
|
||||
@@ -926,7 +870,6 @@ export const esTerminalMessages: Messages = {
|
||||
'serial.backspace.default': 'Predeterminado (DEL, 0x7F)',
|
||||
'serial.backspace.ctrlH': 'Ctrl+H (BS, 0x08)',
|
||||
'serial.field.charset': 'Codificación de caracteres',
|
||||
'serial.connectionError': 'No se pudo conectar al puerto serial',
|
||||
'serial.field.baudRatePlaceholder': 'Selecciona o ingresa la velocidad de baudios...',
|
||||
'serial.field.baudRateEmpty': 'Ingresa una velocidad de baudios personalizada',
|
||||
'serial.field.customBaudRate': 'Usando velocidad de baudios personalizada',
|
||||
@@ -945,10 +888,7 @@ export const esTerminalMessages: Messages = {
|
||||
'keyboard.interactive.title': 'Se requiere autenticación',
|
||||
'keyboard.interactive.desc': 'El servidor requiere autenticación adicional.',
|
||||
'keyboard.interactive.descWithHost': 'El servidor {hostname} requiere autenticación adicional.',
|
||||
'keyboard.interactive.response': 'Respuesta',
|
||||
'keyboard.interactive.verificationCode': 'Código de verificación',
|
||||
'keyboard.interactive.enterCode': 'Ingresa el código de verificación',
|
||||
'keyboard.interactive.enterResponse': 'Ingresa la respuesta',
|
||||
'keyboard.interactive.submit': 'Enviar',
|
||||
'keyboard.interactive.verifying': 'Verificando...',
|
||||
'keyboard.interactive.savePassword': 'Guardar contraseña',
|
||||
|
||||
@@ -19,14 +19,6 @@ export const esVaultMessages: Messages = {
|
||||
'notes.export.toast.failed': 'No se pudieron exportar las notas.',
|
||||
'notes.codeBlock.copied': 'Copiado',
|
||||
'notes.codeBlock.copyFailed': 'No se pudo copiar el bloque de código.',
|
||||
'notes.group.prompt': 'Ruta de la carpeta',
|
||||
'notes.group.all': 'Cuaderno',
|
||||
'notes.group.ungrouped': 'Sin grupo',
|
||||
'notes.section.notebooks': 'Cuaderno',
|
||||
'notes.section.notes': 'Notas',
|
||||
'notes.mode.edit': 'Editar',
|
||||
'notes.mode.split': 'Dividir',
|
||||
'notes.mode.preview': 'Vista previa',
|
||||
'notes.title.placeholder': 'Título de la nota',
|
||||
'notes.editor.placeholder': 'Escribe notas Markdown aquí...',
|
||||
'notes.editor.unrenderableMarkdown': 'Esta nota contiene Markdown que el editor enriquecido no puede mostrar (por ejemplo, etiquetas sin cerrar como <tag>). Se muestra el origen Markdown sin cambios: el contenido está intacto.',
|
||||
@@ -72,25 +64,18 @@ export const esVaultMessages: Messages = {
|
||||
'notes.toolbar.divider': 'Línea divisoria',
|
||||
'notes.toolbar.link': 'Insertar enlace',
|
||||
'notes.toolbar.image': 'Insertar imagen',
|
||||
'notes.action.pin': 'Fijar nota',
|
||||
'notes.action.unpin': 'Desfijar nota',
|
||||
'notes.tag.remove': 'Eliminar etiqueta',
|
||||
'notes.tag.placeholder': 'Nombre de etiqueta...',
|
||||
'notes.tag.add': 'Añadir etiqueta',
|
||||
'notes.outline.title': 'Índice de contenido',
|
||||
'notes.outline.titleWithCount': 'Índice de contenido ({count})',
|
||||
'notes.outline.empty': 'Sin encabezados de esquema',
|
||||
'notes.outline.emptyHint': 'Use # y ## en Markdown para crear encabezados',
|
||||
'notes.export.share': 'Exportar y compartir',
|
||||
'notes.export.currentNote': 'Nota actual',
|
||||
'notes.export.exportMarkdown': 'Exportar como Markdown (.md)',
|
||||
'notes.export.exportHtml': 'Exportar como HTML (.html)',
|
||||
'notes.export.copyMarkdown': 'Copiar código Markdown',
|
||||
'notes.export.allNotes': 'Todas las notas',
|
||||
'notes.export.exportAllZip': 'Exportar todo como archivo ZIP',
|
||||
'notes.export.toast.markdownSuccess': 'Archivo Markdown exportado',
|
||||
'notes.export.toast.htmlSuccess': 'Archivo HTML exportado',
|
||||
'notes.export.toast.zipSuccess': 'Todas las notas exportadas como copia de seguridad ZIP',
|
||||
|
||||
// Vault import
|
||||
'vault.import.title': 'Agrega datos a tu Vault',
|
||||
@@ -261,7 +246,6 @@ export const esVaultMessages: Messages = {
|
||||
'pf.tooltip.localDesc': 'Reenvío de puerto local: accede a servicios remotos a través del túnel SSH',
|
||||
'pf.tooltip.remoteDesc': 'Reenvío de puerto remoto: expone servicios locales al host remoto',
|
||||
'pf.tooltip.dynamicDesc': 'Proxy SOCKS dinámico: enruta el tráfico a través del túnel SSH',
|
||||
'pf.deleteActive.title': '¿Eliminar el reenvío de puertos activo?',
|
||||
'pf.deleteActive.desc': 'Esta regla de reenvío de puertos "{label}" está activa actualmente. Eliminarla primero detendrá el túnel.',
|
||||
'pf.deleteActive.confirm': 'Detener y eliminar',
|
||||
'pf.form.autoStart': 'Inicio automático',
|
||||
@@ -295,13 +279,9 @@ export const esVaultMessages: Messages = {
|
||||
'sftp.columns.actions': 'Acciones',
|
||||
'sftp.sort.directoriesFirst': 'Carpetas primero',
|
||||
'sftp.emptyDirectory': 'Directorio vacío',
|
||||
'sftp.nav.up': 'Subir un nivel',
|
||||
'sftp.nav.home': 'Ir al inicio',
|
||||
'sftp.nav.refresh': 'Actualizar',
|
||||
'sftp.upload': 'Subir',
|
||||
'sftp.uploadFiles': 'Subir archivos',
|
||||
'sftp.uploadFolder': 'Subir carpeta',
|
||||
'sftp.dragDropToUpload': 'Arrastra y suelta archivos aquí para subirlos',
|
||||
'sftp.retry': 'Reintentar',
|
||||
'sftp.context.open': 'Abrir',
|
||||
'sftp.context.navigateTo': 'Navegar a',
|
||||
@@ -316,6 +296,12 @@ export const esVaultMessages: Messages = {
|
||||
'sftp.extract.extracting': 'Extrayendo {fileName}...',
|
||||
'sftp.extract.success': 'Se extrajo {fileName}',
|
||||
'sftp.extract.error': 'No se pudo extraer {fileName}: {error}',
|
||||
'sftp.packedDownload.receiving': 'Recibiendo la descarga empaquetada…',
|
||||
'sftp.packedDownload.extracting': 'Restaurando archivos…',
|
||||
'sftp.packedDownload.fallback': 'La descarga empaquetada no está disponible. Se descargarán los archivos por separado.',
|
||||
'sftp.packedDownload.selection': '{count} elementos seleccionados',
|
||||
'sftp.packedDownload.conflict': 'Ya existe un elemento con el mismo nombre. ¿Quieres elegir otra carpeta de destino?',
|
||||
|
||||
'sftp.archive.action': 'Comprimir...',
|
||||
'sftp.archive.title': 'Comprimir archivos',
|
||||
'sftp.archive.description': 'Crea un archivo comprimido en el servidor con los {count} elementos seleccionados.',
|
||||
@@ -340,28 +326,21 @@ export const esVaultMessages: Messages = {
|
||||
'sftp.copyCurrentPath': 'Copiar ruta actual',
|
||||
'sftp.copyCurrentPath.success': 'Ruta actual copiada',
|
||||
'sftp.copyCurrentPath.error': 'No se pudo copiar la ruta actual',
|
||||
'sftp.viewMode.label': 'Modo de vista',
|
||||
'sftp.viewMode.list': 'Vista de lista',
|
||||
'sftp.viewMode.tree': 'Vista de árbol',
|
||||
'sftp.viewMode.switchToList': 'Cambiar a vista de lista',
|
||||
'sftp.viewMode.switchToTree': 'Cambiar a vista de árbol',
|
||||
'sftp.listDensity.compact': 'Lista compacta',
|
||||
'sftp.listDensity.comfortable': 'Lista cómoda',
|
||||
'sftp.listDensity.switchToCompact': 'Cambiar a lista compacta',
|
||||
'sftp.listDensity.switchToComfortable': 'Cambiar a lista cómoda',
|
||||
'sftp.tree.loadError': 'No se pudo cargar el directorio',
|
||||
'sftp.tree.loading': 'Cargando...',
|
||||
'sftp.kind.folder': 'Carpeta',
|
||||
'sftp.context.rename': 'Renombrar',
|
||||
'sftp.context.permissions': 'Permisos',
|
||||
'sftp.context.delete': 'Eliminar',
|
||||
'sftp.context.refresh': 'Actualizar',
|
||||
'sftp.context.uploadFiles': 'Subir archivo(s)...',
|
||||
'sftp.context.uploadFilesHere': 'Subir archivo(s) aquí...',
|
||||
'sftp.context.uploadFolder': 'Subir carpeta...',
|
||||
'sftp.context.uploadFolderHere': 'Subir carpeta aquí...',
|
||||
'sftp.context.downloadSelected': 'Descargar seleccionados ({count})',
|
||||
'sftp.context.deleteSelected': 'Eliminar seleccionados ({count})',
|
||||
'sftp.dropFilesHere': 'Suelta los archivos aquí',
|
||||
'sftp.itemsCount': '{count} elementos',
|
||||
'sftp.selectedCount': '{count} seleccionados',
|
||||
@@ -370,8 +349,6 @@ export const esVaultMessages: Messages = {
|
||||
'sftp.task.waiting': 'Esperando...',
|
||||
'sftp.transfer.preparing': 'preparando...',
|
||||
'sftp.status.loading': 'Cargando...',
|
||||
'sftp.status.uploading': 'Subiendo...',
|
||||
'sftp.status.ready': 'Listo',
|
||||
'sftp.transfers': 'Transferencias',
|
||||
'sftp.transfers.active': '{count} activas',
|
||||
'sftp.transfers.clearCompleted': 'Limpiar completadas',
|
||||
@@ -435,7 +412,6 @@ export const esVaultMessages: Messages = {
|
||||
'sftp.transferCenter.applyAll': 'Aplicar a todas',
|
||||
'sftp.transfers.resizeNameColumn': 'Redimensionar la columna de nombre de archivo',
|
||||
'sftp.transfers.dragToResize': 'Arrastra para redimensionar',
|
||||
'sftp.goUp': 'Subir un nivel',
|
||||
'sftp.goToTerminalCwd': 'Ir al directorio de la terminal',
|
||||
'sftp.locatePathInTerminal': 'Abrir ruta en la terminal',
|
||||
'sftp.followTerminalCwd': 'Seguir el directorio de la terminal',
|
||||
@@ -451,29 +427,22 @@ export const esVaultMessages: Messages = {
|
||||
'sftp.folderName.placeholder': 'Ingresa el nombre de la carpeta',
|
||||
'sftp.fileName': 'Nombre del archivo',
|
||||
'sftp.fileName.placeholder': 'Ingresa el nombre del archivo',
|
||||
'sftp.prompt.newFolderName': '¿Nombre de la carpeta nueva?',
|
||||
'sftp.rename.title': 'Renombrar',
|
||||
'sftp.rename.newName': 'Nombre nuevo',
|
||||
'sftp.rename.placeholder': 'Ingresa el nombre nuevo',
|
||||
'sftp.confirm.deleteOne': '¿Eliminar "{name}"?',
|
||||
'sftp.deleteConfirm.single': '¿Eliminar "{name}"?',
|
||||
'sftp.deleteConfirm.title': '¿Eliminar {count} elemento(s)?',
|
||||
'sftp.deleteConfirm.desc': 'Esta acción no se puede deshacer. Se eliminará lo siguiente:',
|
||||
'sftp.deleteConfirm.descSingle': 'Esta acción no se puede deshacer.',
|
||||
'sftp.deleteConfirm.host': 'Host',
|
||||
'sftp.deleteConfirm.path': 'Ruta',
|
||||
'sftp.error.loadFailed': 'No se pudo cargar el directorio',
|
||||
'sftp.error.downloadFailed': 'No se pudo descargar',
|
||||
'sftp.error.uploadFailed': 'No se pudo subir',
|
||||
'sftp.error.deleteFailed': 'No se pudo eliminar',
|
||||
'sftp.error.createFolderFailed': 'No se pudo crear la carpeta',
|
||||
'sftp.error.createFileFailed': 'No se pudo crear el archivo',
|
||||
'sftp.error.invalidFileName': 'El nombre de archivo contiene caracteres no válidos: {chars}',
|
||||
'sftp.error.reservedName': 'Este nombre de archivo está reservado por el sistema',
|
||||
'sftp.overwrite.title': 'El archivo ya existe',
|
||||
'sftp.overwrite.desc': 'Ya existe un archivo llamado "{name}". ¿Quieres reemplazarlo?',
|
||||
'sftp.overwrite.confirm': 'Reemplazar',
|
||||
'sftp.error.renameFailed': 'No se pudo renombrar',
|
||||
'sftp.picker.title': 'Seleccionar host',
|
||||
'sftp.picker.desc': 'Elige un host para el panel {side}',
|
||||
'sftp.picker.searchPlaceholder': 'Buscar hosts...',
|
||||
@@ -481,8 +450,6 @@ export const esVaultMessages: Messages = {
|
||||
'sftp.picker.local.desc': 'Explorar archivos locales',
|
||||
'sftp.picker.local.badge': 'Local',
|
||||
'sftp.picker.connected.section': 'Conectados',
|
||||
'sftp.picker.connected.badge': 'En vivo',
|
||||
'sftp.picker.connected.connecting': 'Conectando',
|
||||
'sftp.picker.noMatch': 'No hay hosts que coincidan',
|
||||
'sftp.permissions.title': 'Editar permisos',
|
||||
'sftp.permissions.owner': 'Propietario',
|
||||
@@ -490,16 +457,12 @@ export const esVaultMessages: Messages = {
|
||||
'sftp.permissions.others': 'Otros',
|
||||
'sftp.permissions.octal': 'Octal',
|
||||
'sftp.permissions.symbolic': 'Simbólico',
|
||||
'sftp.permissions.success': 'Permisos actualizados correctamente',
|
||||
'sftp.permissions.failed': 'No se pudieron actualizar los permisos',
|
||||
'sftp.pane.local': 'Local',
|
||||
'sftp.pane.remote': 'Remoto',
|
||||
'sftp.pane.selectHost': 'Seleccionar host',
|
||||
'sftp.pane.selectHostToStart': 'Selecciona un host para comenzar',
|
||||
'sftp.pane.chooseFilesystem': 'Elige un sistema de archivos local o remoto para explorar',
|
||||
'sftp.tabs.addTab': 'Agregar pestaña nueva',
|
||||
'sftp.tabs.closeTab': 'Cerrar pestaña',
|
||||
'sftp.tabs.newTab': 'Pestaña nueva',
|
||||
'sftp.tabs.copyDefaultPath': 'Copiar pestaña (ruta predeterminada)',
|
||||
'sftp.tabs.copyCurrentPath': 'Copiar e ir a la ruta actual',
|
||||
'sftp.conflict.title': 'Conflicto de archivos',
|
||||
@@ -525,47 +488,24 @@ export const esVaultMessages: Messages = {
|
||||
'sftp.conflict.action.replace': 'Reemplazar',
|
||||
|
||||
// SFTP Upload Phases
|
||||
'sftp.upload.phase.compressing': 'Comprimiendo',
|
||||
'sftp.upload.phase.uploading': 'Subiendo',
|
||||
'sftp.upload.phase.extracting': 'Extrayendo',
|
||||
'sftp.upload.phase.compressed': 'Comprimido',
|
||||
|
||||
// SFTP File Opener
|
||||
'sftp.context.copyPath': 'Copiar ruta del archivo',
|
||||
'sftp.context.openWithDefault': 'Abrir con la aplicación predeterminada del sistema',
|
||||
'sftp.context.openWith': 'Abrir con...',
|
||||
'sftp.context.edit': 'Editar',
|
||||
'sftp.context.preview': 'Vista previa',
|
||||
'sftp.opener.title': 'Abrir con',
|
||||
'sftp.opener.desc': 'Elige una aplicación para abrir este archivo',
|
||||
'sftp.opener.builtInEditor': 'Editor integrado',
|
||||
'sftp.opener.editDescription': 'Editar archivos de texto',
|
||||
'sftp.opener.builtInImageViewer': 'Visor de imágenes integrado',
|
||||
'sftp.opener.previewDescription': 'Previsualizar imágenes',
|
||||
'sftp.opener.systemApp': 'Elegir aplicación...',
|
||||
'sftp.opener.systemAppDescription': 'Selecciona una aplicación de tu computadora',
|
||||
'sftp.opener.onlySystemApp': 'Este archivo solo se puede abrir con una aplicación externa',
|
||||
'sftp.opener.noAppsAvailable': 'No hay aplicaciones disponibles',
|
||||
'sftp.opener.noExtension': 'archivos sin extensión',
|
||||
'sftp.opener.setDefault': 'Usar siempre esto para archivos {ext}',
|
||||
'sftp.opener.confirmTitle': '¿Establecer como predeterminado?',
|
||||
'sftp.opener.confirmDescription': '¿Quieres usar siempre {app} para archivos {ext}?',
|
||||
'sftp.opener.yesRemember': 'Sí, recordar esta elección',
|
||||
'sftp.opener.justOnce': 'Solo esta vez',
|
||||
'sftp.opener.confirm.title': 'Establecer aplicación predeterminada',
|
||||
'sftp.opener.confirm.desc': '¿Quieres abrir siempre los archivos .{ext} con esta aplicación?',
|
||||
'sftp.editor.title': 'Editor de texto',
|
||||
'sftp.editor.save': 'Guardar en remoto',
|
||||
'sftp.editor.saving': 'Guardando...',
|
||||
'sftp.editor.saved': 'Guardado correctamente',
|
||||
'sftp.editor.saveFailed': 'No se pudo guardar el archivo',
|
||||
'sftp.editor.unsavedChanges': 'Tienes cambios sin guardar. ¿Cerrar de todos modos?',
|
||||
'sftp.editor.syntaxHighlight': 'Resaltado de sintaxis',
|
||||
'sftp.preview.title': 'Vista previa de imagen',
|
||||
'sftp.preview.zoomIn': 'Acercar',
|
||||
'sftp.preview.zoomOut': 'Alejar',
|
||||
'sftp.preview.resetZoom': 'Restablecer zoom',
|
||||
'sftp.preview.fitToWindow': 'Ajustar a la ventana',
|
||||
|
||||
// Settings > SFTP File Associations
|
||||
'settings.tab.sftpFileAssociations': 'SFTP',
|
||||
@@ -644,28 +584,16 @@ export const esVaultMessages: Messages = {
|
||||
'sftp.autoSync.error': 'No se pudo sincronizar el archivo: {error}',
|
||||
|
||||
// SFTP Folder Upload Progress
|
||||
'sftp.upload.progress': 'Subiendo {current} de {total} archivos...',
|
||||
'sftp.upload.uploading': 'Subiendo...',
|
||||
'sftp.upload.compressing': 'Comprimiendo...',
|
||||
'sftp.upload.extracting': 'Extrayendo...',
|
||||
'sftp.upload.scanning': 'Escaneando archivos...',
|
||||
'sftp.upload.completed': 'Completado',
|
||||
'sftp.upload.compressed': 'Transferencia comprimida',
|
||||
'sftp.upload.currentFile': 'Actual: {fileName}',
|
||||
'sftp.upload.cancelled': 'Subida cancelada',
|
||||
'sftp.upload.noFiles': 'No hay archivos para subir',
|
||||
'sftp.upload.partialSuccess': 'Se subieron {success} archivo(s); {failed} fallaron',
|
||||
'sftp.upload.cancel': 'Cancelar',
|
||||
'sftp.upload.completedToPath': 'Subido a {path}',
|
||||
|
||||
// SFTP Download
|
||||
'sftp.download.completed': 'Descargado',
|
||||
'sftp.download.cancelled': 'Descarga cancelada',
|
||||
|
||||
// SFTP Reconnecting
|
||||
'sftp.reconnecting.title': 'Reconectando...',
|
||||
'sftp.reconnecting.desc': 'Se perdió la conexión, intentando reconectar',
|
||||
'sftp.reconnected': 'Conexión restablecida',
|
||||
'sftp.error.reconnectFailed': 'No se pudo reconectar. Inténtalo de nuevo.',
|
||||
'sftp.error.connectionLostManual': 'Se perdió la conexión. Vuelve a conectar manualmente.',
|
||||
'sftp.error.connectionLostReconnecting': 'Se perdió la conexión. Reconectando...',
|
||||
@@ -683,6 +611,10 @@ export const esVaultMessages: Messages = {
|
||||
'settings.sftp.compressedUpload.enable': 'Habilitar la compresión de carpetas',
|
||||
'settings.sftp.compressedUpload.enableDesc': 'Comprime automáticamente las carpetas con tar antes de la transferencia. Requiere soporte de tar en el servidor. Si no está disponible, se recurre a una transferencia normal.',
|
||||
|
||||
'settings.sftp.packedDownload': 'Descargas empaquetadas',
|
||||
'settings.sftp.packedDownload.enable': 'Empaquetar carpetas y selecciones múltiples para descargar',
|
||||
'settings.sftp.packedDownload.enableDesc': 'Descarga la selección en una sola transferencia y restaura su estructura original en este dispositivo. Si el servidor no puede empaquetarla, los archivos se descargan por separado.',
|
||||
|
||||
'settings.sftp.skipUnchanged.enable': 'Omitir archivos sin cambios',
|
||||
'settings.sftp.skipUnchanged.enableDesc': 'Omite los archivos cuyo tamaño y hora de modificación ya coinciden con el destino (estilo rsync). Deshabilitado al reemplazar una carpeta en una ruta de staging.',
|
||||
|
||||
@@ -773,11 +705,8 @@ export const esVaultMessages: Messages = {
|
||||
'hostDetails.notes.toggle.show': 'Mostrar el editor de notas',
|
||||
'hostDetails.notes.toggle.hide': 'Ocultar el editor de notas',
|
||||
'hostDetails.group.placeholder': 'Grupo padre',
|
||||
'hostDetails.section.credentials': 'Credenciales',
|
||||
'hostDetails.section.portCredentials': 'Puerto y credenciales',
|
||||
'hostDetails.section.appearance': 'Apariencia',
|
||||
'hostDetails.distro.title': 'Distribución de Linux',
|
||||
'hostDetails.distro.desc': 'Detecta automáticamente al conectar, o anula el ícono de la distro manualmente.',
|
||||
'hostDetails.icon.title': 'Ícono del host',
|
||||
'hostDetails.icon.sectionTitle': 'Color e ícono',
|
||||
'hostDetails.icon.desc': 'Elige la fuente y el color del ícono para este host.',
|
||||
@@ -789,7 +718,6 @@ export const esVaultMessages: Messages = {
|
||||
'hostDetails.icon.mode.custom': 'Personalizado',
|
||||
'hostDetails.icon.reset': 'Restablecer el ícono del host',
|
||||
'hostDetails.icon.colorLabel': 'Color del ícono',
|
||||
'hostDetails.icon.colorDefault': 'Predeterminado',
|
||||
'hostDetails.icon.colorAuto': 'Automático',
|
||||
'hostDetails.icon.colorManual': 'Manual',
|
||||
'hostDetails.icon.colorChoice': 'Color',
|
||||
@@ -840,7 +768,6 @@ export const esVaultMessages: Messages = {
|
||||
'hostDetails.distro.mode.auto': 'Detección automática',
|
||||
'hostDetails.distro.mode.manual': 'Anulación manual',
|
||||
'hostDetails.distro.detectedLabel': 'Actual',
|
||||
'hostDetails.distro.manualLabel': 'Anulación',
|
||||
'hostDetails.distro.pending': 'Detectar después de la primera conexión',
|
||||
'hostDetails.distro.unknown': 'Desconocido',
|
||||
'hostDetails.distro.option.linux': 'Linux genérico',
|
||||
@@ -891,7 +818,6 @@ export const esVaultMessages: Messages = {
|
||||
'hostDetails.auth.mfaFirst': 'Preferir autenticación interactiva',
|
||||
'hostDetails.auth.mfaFirst.desc': 'Para servidores que requieren contraseña y MFA a través de keyboard-interactive.',
|
||||
'hostDetails.totp.title': 'Autenticador (TOTP)',
|
||||
'hostDetails.totp.enable': 'Guardar un secreto TOTP para este host',
|
||||
'hostDetails.totp.setup': 'Configurar…',
|
||||
'hostDetails.totp.edit': 'Editar',
|
||||
'hostDetails.totp.modalTitle': 'Configurar autenticador',
|
||||
@@ -994,10 +920,8 @@ export const esVaultMessages: Messages = {
|
||||
'hostDetails.jumpHosts.direct': 'Directo',
|
||||
'hostDetails.jumpHosts.configure': 'Configurar hosts proxy',
|
||||
'hostDetails.proxy': 'Proxy mediante HTTP/SOCKS5/Comando',
|
||||
'hostDetails.proxy.none': 'Ninguno',
|
||||
'hostDetails.proxy.direct': 'Directo (sin proxy)',
|
||||
'hostDetails.proxy.directHint': 'No usa el proxy del grupo ni el predeterminado global',
|
||||
'hostDetails.proxy.edit': 'Editar proxy',
|
||||
'hostDetails.proxy.configure': 'Configurar proxy',
|
||||
'hostDetails.proxyPanel.title': 'Proxy mediante HTTP/SOCKS5/Comando',
|
||||
'hostDetails.proxyPanel.hostPlaceholder': 'Host del proxy',
|
||||
@@ -1007,7 +931,6 @@ export const esVaultMessages: Messages = {
|
||||
'hostDetails.proxyPanel.credentials': 'Credenciales',
|
||||
'hostDetails.proxyPanel.usernamePlaceholder': 'Nombre de usuario',
|
||||
'hostDetails.proxyPanel.passwordPlaceholder': 'Contraseña',
|
||||
'hostDetails.proxyPanel.identities': 'Identidades',
|
||||
'hostDetails.proxyPanel.keychainIdentity': 'Identidad del llavero',
|
||||
'hostDetails.proxyPanel.manualCredentials': 'Credenciales manuales',
|
||||
'hostDetails.proxyPanel.remove': 'Quitar proxy',
|
||||
@@ -1031,8 +954,6 @@ export const esVaultMessages: Messages = {
|
||||
'hostDetails.envVars.newVariable': 'Variable nueva',
|
||||
'hostDetails.envVars.variableName': 'Nombre de la variable',
|
||||
'hostDetails.chain.title': 'Editar cadena',
|
||||
'hostDetails.chain.desc': 'Agregar otro host creará una conexión a {host}.',
|
||||
'hostDetails.chain.addHost': 'Agregar un host',
|
||||
'hostDetails.chain.target': 'Destino',
|
||||
'hostDetails.chain.availableHosts': 'Hosts disponibles',
|
||||
'hostDetails.chain.clear': 'Limpiar',
|
||||
@@ -1069,12 +990,6 @@ export const esVaultMessages: Messages = {
|
||||
|
||||
// Host connection test
|
||||
'hostConnectionTest.title': 'Probar conexión',
|
||||
'hostConnectionTest.test': 'Probar',
|
||||
'hostConnectionTest.chainOf': 'Cadena {current} de {total}',
|
||||
'hostConnectionTest.success': 'Conexión correcta',
|
||||
'hostConnectionTest.successHint': 'El host aceptó tus credenciales. Puedes cerrar esta ventana.',
|
||||
'hostConnectionTest.connecting': 'Conectando… tiempo de espera en {seconds}s',
|
||||
'hostConnectionTest.failed': 'No se pudo conectar.',
|
||||
'hostConnectionTest.retry': 'Reintentar',
|
||||
'hostConnectionTest.credentialsUnavailable': 'Las credenciales guardadas no se pueden descifrar en este dispositivo. Vuelve a ingresarlas abajo.',
|
||||
|
||||
@@ -1110,28 +1025,14 @@ export const esVaultMessages: Messages = {
|
||||
'hostDetails.plugin.useSsh': 'Usar SSH en su lugar',
|
||||
|
||||
// Host form (legacy modal)
|
||||
'hostForm.title.edit': 'Editar host',
|
||||
'hostForm.title.new': 'Host nuevo',
|
||||
'hostForm.desc.edit': 'Actualiza los detalles de conexión de este host',
|
||||
'hostForm.desc.new': 'Crea una nueva entrada de host SSH',
|
||||
'hostForm.field.label': 'Etiqueta',
|
||||
'hostForm.placeholder.label': 'Mi servidor de producción',
|
||||
'hostForm.field.hostname': 'Nombre de host / IP',
|
||||
'hostForm.placeholder.hostname': '192.168.1.1',
|
||||
'hostForm.field.port': 'Puerto',
|
||||
'hostForm.field.username': 'Nombre de usuario',
|
||||
'hostForm.field.osType': 'Tipo de SO',
|
||||
'hostForm.placeholder.selectOs': 'Seleccionar SO',
|
||||
'hostForm.field.group': 'Grupo',
|
||||
'hostForm.placeholder.group': 'p. ej., AWS, DigitalOcean',
|
||||
'hostForm.field.tags': 'Etiquetas',
|
||||
'hostForm.placeholder.addTag': 'Agregar una etiqueta...',
|
||||
'hostForm.auth.method': 'Método de autenticación',
|
||||
'hostForm.auth.password': 'Contraseña',
|
||||
'hostForm.auth.sshKey': 'Clave SSH',
|
||||
'hostForm.auth.selectKey': 'Seleccionar una clave SSH',
|
||||
'hostForm.auth.noKeys': 'No hay claves disponibles',
|
||||
'hostForm.auth.noKeysHint': 'No se encontraron claves SSH en el llavero. Crea una primero.',
|
||||
'hostForm.saveHost': 'Guardar host',
|
||||
|
||||
// Connection logs
|
||||
@@ -1150,7 +1051,6 @@ export const esVaultMessages: Messages = {
|
||||
'logs.action.delete': 'Eliminar',
|
||||
|
||||
// Log view
|
||||
'logView.customizeAppearance': 'Personalizar la apariencia',
|
||||
'logView.appearance': 'Apariencia',
|
||||
'logView.readOnly': 'Solo lectura',
|
||||
'logView.export': 'Exportar',
|
||||
|
||||
@@ -1,29 +0,0 @@
|
||||
import assert from 'node:assert/strict';
|
||||
import test from 'node:test';
|
||||
|
||||
import en from './en.ts';
|
||||
import ru from './ru.ts';
|
||||
import es from './es.ts';
|
||||
import zhCN from './zh-CN.ts';
|
||||
import zhTW from './zh-TW.ts';
|
||||
|
||||
const KEYS = [
|
||||
'ai.externalMcp.approvalAlert',
|
||||
'ai.externalMcp.approvalAlert.description',
|
||||
'ai.externalMcp.approvalAlert.off',
|
||||
'ai.externalMcp.approvalAlert.unfocused',
|
||||
'ai.externalMcp.approvalAlert.always',
|
||||
'ai.externalMcp.approvalAlert.notificationTitle',
|
||||
'ai.externalMcp.approvalAlert.notificationBody',
|
||||
'ai.externalMcp.approvalAlert.notificationBodyOnHost',
|
||||
] as const;
|
||||
|
||||
test('External MCP approval alerts are localized in every supported locale', () => {
|
||||
for (const [name, messages] of Object.entries({ en, es, 'zh-CN': zhCN, 'zh-TW': zhTW, ru })) {
|
||||
const missing = KEYS.filter((key) => !messages[key]);
|
||||
assert.deepEqual(missing, [], `${name} is missing approval alert labels`);
|
||||
assert.match(messages['ai.externalMcp.approvalAlert.notificationBody'], /\{tool\}/);
|
||||
assert.match(messages['ai.externalMcp.approvalAlert.notificationBodyOnHost'], /\{tool\}/);
|
||||
assert.match(messages['ai.externalMcp.approvalAlert.notificationBodyOnHost'], /\{host\}/);
|
||||
}
|
||||
});
|
||||
@@ -1,58 +0,0 @@
|
||||
import assert from "node:assert/strict";
|
||||
import test from "node:test";
|
||||
|
||||
import en from "./en.ts";
|
||||
import ru from "./ru.ts";
|
||||
import es from "./es.ts";
|
||||
import zhCN from "./zh-CN.ts";
|
||||
import zhTW from "./zh-TW.ts";
|
||||
|
||||
const KEYS = [
|
||||
"ai.externalMcp.http.title",
|
||||
"ai.externalMcp.http.description",
|
||||
"ai.externalMcp.http.enable",
|
||||
"ai.externalMcp.http.port",
|
||||
"ai.externalMcp.http.portHint",
|
||||
"ai.externalMcp.http.allowCustomBind",
|
||||
"ai.externalMcp.http.allowCustomBind.description",
|
||||
"ai.externalMcp.http.listenAddress",
|
||||
"ai.externalMcp.http.listenAddress.placeholder",
|
||||
"ai.externalMcp.http.clientHost",
|
||||
"ai.externalMcp.http.clientHost.description",
|
||||
"ai.externalMcp.http.clientHost.placeholder",
|
||||
"ai.externalMcp.http.clientHostRequired",
|
||||
"ai.externalMcp.http.invalidClientHost",
|
||||
"ai.externalMcp.http.warning",
|
||||
"ai.externalMcp.http.url",
|
||||
"ai.externalMcp.http.token",
|
||||
"ai.externalMcp.http.regenerate",
|
||||
"ai.externalMcp.http.regenerateHint",
|
||||
"ai.externalMcp.http.wslHint",
|
||||
"ai.externalMcp.http.codexSnippet",
|
||||
"ai.externalMcp.http.claudeCommand",
|
||||
"ai.externalMcp.http.genericSnippet",
|
||||
"ai.externalMcp.http.envLine",
|
||||
"ai.externalMcp.http.notListening",
|
||||
"ai.externalMcp.http.listening",
|
||||
"ai.externalMcp.http.portInUse",
|
||||
"ai.externalMcp.http.requiresExternalMcp",
|
||||
"ai.externalMcp.http.invalidPort",
|
||||
"ai.externalMcp.http.invalidAddress",
|
||||
"ai.externalMcp.http.listenFailed",
|
||||
"ai.externalMcp.http.legacySseNote",
|
||||
] as const;
|
||||
|
||||
test("External MCP HTTP strings exist in every locale", () => {
|
||||
for (const [name, messages] of Object.entries({ en, es, "zh-CN": zhCN, "zh-TW": zhTW, ru })) {
|
||||
const missing = KEYS.filter((key) => !messages[key]);
|
||||
assert.deepEqual(missing, [], `${name} is missing HTTP MCP labels`);
|
||||
assert.match(messages["ai.externalMcp.http.portInUse"], /\{port\}/);
|
||||
}
|
||||
assert.match(zhTW["ai.externalMcp.http.port"], /連接埠/);
|
||||
assert.match(zhTW["ai.externalMcp.http.listenAddress"], /位址/);
|
||||
assert.match(zhTW["ai.externalMcp.http.clientHost"], /位址/);
|
||||
assert.doesNotMatch(zhTW["ai.externalMcp.http.clientHost"], /地址/);
|
||||
assert.doesNotMatch(zhTW["ai.externalMcp.http.port"], /端口/);
|
||||
assert.doesNotMatch(zhTW["ai.externalMcp.http.listenAddress"], /地址/);
|
||||
assert.match(zhTW["ai.externalMcp.http.wslHint"], /鏡像網路/);
|
||||
});
|
||||
@@ -1,23 +0,0 @@
|
||||
import assert from 'node:assert/strict';
|
||||
import test from 'node:test';
|
||||
import en from './en.ts';
|
||||
import es from './es.ts';
|
||||
import ru from './ru.ts';
|
||||
import zhCN from './zh-CN.ts';
|
||||
import zhTW from './zh-TW.ts';
|
||||
|
||||
const KEYS = [
|
||||
'title', 'description', 'boundary', 'enable', 'privateIps', 'privateIps.description',
|
||||
'cidrs', 'cidrs.description', 'patterns', 'patterns.description',
|
||||
'connectionScope', 'reconnect', 'apply', 'applying', 'applied', 'failed',
|
||||
];
|
||||
|
||||
test('Shared AI privacy settings are localized in every supported locale', () => {
|
||||
for (const [name, messages] of Object.entries({ en, es, ru, 'zh-CN': zhCN, 'zh-TW': zhTW })) {
|
||||
assert.deepEqual(
|
||||
KEYS.filter((key) => !messages[`ai.privacy.${key}`]),
|
||||
[],
|
||||
`${name} is missing privacy settings labels`,
|
||||
);
|
||||
}
|
||||
});
|
||||
@@ -0,0 +1,212 @@
|
||||
import assert from "node:assert/strict";
|
||||
import { readFileSync } from "node:fs";
|
||||
import test from "node:test";
|
||||
|
||||
import { describePluginGitHubInstallError } from "../../../domain/pluginGitHubInstallError.ts";
|
||||
import { SUPPORTED_UI_LOCALES } from "../../../infrastructure/config/i18n.ts";
|
||||
import { getLoadedLocaleMessages, loadLocaleMessages } from "../messages.ts";
|
||||
import en from "./en.ts";
|
||||
import { enMonitorMessages } from "./en/monitor.ts";
|
||||
import { enSystemManagerMessages } from "./en/systemManager.ts";
|
||||
import { enTerminalMessages } from "./en/terminal.ts";
|
||||
import es from "./es.ts";
|
||||
import { esMonitorMessages } from "./es/monitor.ts";
|
||||
import { esSystemManagerMessages } from "./es/systemManager.ts";
|
||||
import { esTerminalMessages } from "./es/terminal.ts";
|
||||
import ru from "./ru.ts";
|
||||
import { ruMonitorMessages } from "./ru/monitor.ts";
|
||||
import { ruSystemManagerMessages } from "./ru/systemManager.ts";
|
||||
import { ruTerminalMessages } from "./ru/terminal.ts";
|
||||
import zhCN from "./zh-CN.ts";
|
||||
import { zhCNMonitorMessages } from "./zh-CN/monitor.ts";
|
||||
import { zhCnSystemManagerMessages } from "./zh-CN/systemManager.ts";
|
||||
import { zhCNVaultMessages } from "./zh-CN/vault.ts";
|
||||
import zhTW from "./zh-TW.ts";
|
||||
import { zhTWMonitorMessages } from "./zh-TW/monitor.ts";
|
||||
import { zhTwSystemManagerMessages } from "./zh-TW/systemManager.ts";
|
||||
import { zhTWVaultMessages } from "./zh-TW/vault.ts";
|
||||
|
||||
const ALL_LOCALES = {
|
||||
en,
|
||||
es,
|
||||
ru,
|
||||
"zh-CN": zhCN,
|
||||
"zh-TW": zhTW,
|
||||
} as const;
|
||||
|
||||
test("disconnect confirm copy states that saved provider credentials are removed and local data stays", () => {
|
||||
const expected = [
|
||||
[en, "will be removed"],
|
||||
[es, "eliminarán"],
|
||||
[ru, "будут удалены"],
|
||||
[zhCN, "删除"],
|
||||
[zhTW, "刪除"],
|
||||
] as const;
|
||||
for (const [messages, fragment] of expected) {
|
||||
assert.ok(
|
||||
messages["cloudSync.provider.disconnect.confirmMessage"]?.includes(fragment),
|
||||
`confirmMessage should mention credential removal: ${fragment}`,
|
||||
);
|
||||
}
|
||||
assert.match(
|
||||
en["cloudSync.provider.disconnect.confirmMessage"],
|
||||
/backup history and sync encryption password stay here/,
|
||||
);
|
||||
assert.doesNotMatch(en["cloudSync.provider.disconnect.cloudRemains"], /change.*password/);
|
||||
});
|
||||
|
||||
test("Taiwan Traditional Chinese copy uses Taiwan terminology for HTTP MCP and OpenCode 2", () => {
|
||||
assert.match(zhTW["ai.externalMcp.http.port"], /連接埠/);
|
||||
assert.match(zhTW["ai.externalMcp.http.listenAddress"], /位址/);
|
||||
assert.match(zhTW["ai.externalMcp.http.clientHost"], /位址/);
|
||||
assert.doesNotMatch(zhTW["ai.externalMcp.http.clientHost"], /地址/);
|
||||
assert.doesNotMatch(zhTW["ai.externalMcp.http.port"], /端口/);
|
||||
assert.doesNotMatch(zhTW["ai.externalMcp.http.listenAddress"], /地址/);
|
||||
assert.match(zhTW["ai.externalMcp.http.wslHint"], /鏡像網路/);
|
||||
|
||||
const opencodeKeys = [
|
||||
"ai.opencode.v2.startupTimeout",
|
||||
"ai.opencode.v2.exited",
|
||||
"ai.opencode.v2.unauthorized",
|
||||
"ai.opencode.v2.unavailable",
|
||||
"ai.opencode.v2.sessionFailed",
|
||||
"ai.opencode.v2.empty",
|
||||
"ai.opencode.v2.contextSkipped",
|
||||
"ai.opencode.v2.mcpSkipped",
|
||||
];
|
||||
for (const key of opencodeKeys) {
|
||||
assert.notEqual(en[key], zhCN[key]);
|
||||
assert.notEqual(en[key], zhTW[key]);
|
||||
assert.notEqual(zhCN[key], zhTW[key]);
|
||||
}
|
||||
const text = opencodeKeys.map((key) => zhTW[key]).join("\n");
|
||||
assert.match(text, /終端機/);
|
||||
assert.match(text, /連線/);
|
||||
assert.match(text, /設定/);
|
||||
assert.match(text, /傳回/);
|
||||
assert.equal(text.includes("终端"), false);
|
||||
assert.equal(text.includes("连接"), false);
|
||||
assert.equal(text.includes("设置"), false);
|
||||
assert.equal(text.includes("返回"), false);
|
||||
});
|
||||
|
||||
test("monitoring UI literal message keys exist and all monitor locales stay at parity", () => {
|
||||
for (const name of ["MonitorPanels", "MonitorNavButton", "MonitorDiskUsage"]) {
|
||||
const source = readFileSync(new URL(`../../../components/vault/${name}.tsx`, import.meta.url), "utf8");
|
||||
const keys = [...source.matchAll(/\bt\("(monitor\.[^"]+)"/g)].map((match) => match[1]);
|
||||
for (const key of keys) {
|
||||
assert.ok(Object.hasOwn(enMonitorMessages, key), `${name}: ${key}`);
|
||||
}
|
||||
}
|
||||
for (const [locale, messages] of Object.entries({
|
||||
es: esMonitorMessages,
|
||||
ru: ruMonitorMessages,
|
||||
"zh-CN": zhCNMonitorMessages,
|
||||
"zh-TW": zhTWMonitorMessages,
|
||||
})) {
|
||||
assert.deepEqual(Object.keys(messages).sort(), Object.keys(enMonitorMessages).sort(), locale);
|
||||
}
|
||||
});
|
||||
|
||||
test("GitHub plugin install copy is complete in every supported locale and error presentation maps statuses", async () => {
|
||||
const keys = Object.keys(en).filter((key) => key.startsWith("settings.plugins.github."));
|
||||
assert.ok(keys.length > 30);
|
||||
for (const { id } of SUPPORTED_UI_LOCALES) {
|
||||
await loadLocaleMessages(id);
|
||||
const messages = getLoadedLocaleMessages(id)!;
|
||||
for (const key of keys) {
|
||||
assert.ok(messages[key]?.trim(), `${id}: ${key}`);
|
||||
}
|
||||
}
|
||||
|
||||
const expired = describePluginGitHubInstallError(
|
||||
"Error invoking remote method 'plugins:github:install': Error: GitHub package preview expired. Download and review it again",
|
||||
);
|
||||
assert.equal(expired.key, "settings.plugins.github.error.expired");
|
||||
assert.equal(expired.details, null);
|
||||
assert.deepEqual(describePluginGitHubInstallError("GitHub download failed (HTTP 503)").values, { status: "503" });
|
||||
const validator = "manifest version must be a semantic version";
|
||||
assert.equal(describePluginGitHubInstallError(validator).details, validator);
|
||||
assert.equal(describePluginGitHubInstallError(validator).key, "settings.plugins.github.error.failed");
|
||||
assert.equal(
|
||||
describePluginGitHubInstallError("Plugin is incompatible: engine version").key,
|
||||
"settings.plugins.github.error.incompatible",
|
||||
);
|
||||
});
|
||||
|
||||
test("SSH network latency wording stays aligned between terminal and system manager surfaces", () => {
|
||||
const surfaces = [
|
||||
[enTerminalMessages, enSystemManagerMessages],
|
||||
[ruTerminalMessages, ruSystemManagerMessages],
|
||||
[esTerminalMessages, esSystemManagerMessages],
|
||||
[zhCNVaultMessages, zhCnSystemManagerMessages],
|
||||
[zhTWVaultMessages, zhTwSystemManagerMessages],
|
||||
] as const;
|
||||
|
||||
for (const [terminalMessages, systemManagerMessages] of surfaces) {
|
||||
assert.ok(terminalMessages["terminal.serverStats.latency"]);
|
||||
assert.equal(
|
||||
terminalMessages["terminal.serverStats.latency"],
|
||||
systemManagerMessages["systemManager.overview.latency"],
|
||||
);
|
||||
}
|
||||
});
|
||||
|
||||
test("English snippet bulk-delete copy stays entity-neutral and grammatical for one item", () => {
|
||||
assert.equal(
|
||||
en["snippets.selection.deleteConfirmTitle"].replace("{count}", "1"),
|
||||
"Delete selected items (1)?",
|
||||
);
|
||||
assert.equal(
|
||||
en["snippets.selection.deleteSuccess"].replace("{count}", "1"),
|
||||
"Deleted selected items: 1.",
|
||||
);
|
||||
});
|
||||
|
||||
test("inline image settings copy is translated rather than left in English", () => {
|
||||
const translatedKeys = [
|
||||
"settings.terminal.section.inlineImages",
|
||||
"settings.terminal.inlineImages.enabled",
|
||||
"settings.terminal.inlineImages.enabled.desc",
|
||||
"settings.terminal.inlineImages.kitty",
|
||||
"settings.terminal.inlineImages.kitty.desc",
|
||||
"settings.terminal.inlineImages.sixel.desc",
|
||||
"settings.terminal.inlineImages.iip",
|
||||
"settings.terminal.inlineImages.iip.desc",
|
||||
"settings.terminal.inlineImages.storageLimit",
|
||||
"settings.terminal.inlineImages.storageLimit.desc",
|
||||
"settings.terminal.inlineImages.maxMegapixels",
|
||||
"settings.terminal.inlineImages.maxMegapixels.desc",
|
||||
"settings.terminal.inlineImages.sequenceLimit",
|
||||
"settings.terminal.inlineImages.sequenceLimit.desc",
|
||||
"settings.terminal.inlineImages.hibernateNote",
|
||||
];
|
||||
|
||||
for (const [locale, messages] of Object.entries(ALL_LOCALES)) {
|
||||
if (locale === "en") continue;
|
||||
const untranslated = translatedKeys.filter((key) => messages[key] === en[key]);
|
||||
assert.deepEqual(untranslated, [], `${locale} still uses the English string`);
|
||||
}
|
||||
});
|
||||
|
||||
test("removed session log rememberApplication key stays absent across locales", () => {
|
||||
for (const [locale, messages] of Object.entries(ALL_LOCALES)) {
|
||||
assert.equal(
|
||||
messages["terminal.toolbar.sessionLog.rememberApplication"],
|
||||
undefined,
|
||||
`${locale} should not reintroduce removed rememberApplication key`,
|
||||
);
|
||||
}
|
||||
});
|
||||
|
||||
test("managed group delete warning mentions SSH config backup in every locale", () => {
|
||||
const backupMarkers = ["备份", "備份", "copia de seguridad", "резервную копию", "Back up"];
|
||||
for (const [locale, messages] of Object.entries(ALL_LOCALES)) {
|
||||
const text = messages["vault.groups.deleteDialog.managedWarning"] ?? "";
|
||||
assert.match(text, /SSH/, `${locale} warning should reference the SSH config file`);
|
||||
assert.ok(
|
||||
backupMarkers.some((marker) => text.includes(marker)),
|
||||
`${locale} warning should tell the user to back up the file`,
|
||||
);
|
||||
}
|
||||
});
|
||||
@@ -12,16 +12,23 @@ import zhTW from "./zh-TW.ts";
|
||||
// so the remaining debt stays visible instead of silently rendering in English
|
||||
// through the `DEFAULT_UI_LOCALE` fallback in `I18nProvider.resolveMessage`.
|
||||
// Move a locale out of this list once it covers every `en` key.
|
||||
const LOCALES_PENDING_PARITY = ["ru", "zh-CN", "zh-TW"] as const;
|
||||
const LOCALES_PENDING_PARITY = ["ru"] as const;
|
||||
|
||||
const hasKey = (messages: Record<string, string>, key: string) =>
|
||||
Object.hasOwn(messages, key);
|
||||
|
||||
const interpolationTokens = (value: string) =>
|
||||
[...value.matchAll(/\{\{\s*\w+\s*\}\}|\{\s*\w+\s*\}/g)]
|
||||
[...value.matchAll(/\{\{\s*[^}]+\s*\}\}|\{\s*\w+\s*\}/g)]
|
||||
.map((match) => match[0].replace(/[{}]/g, "").trim())
|
||||
.sort();
|
||||
|
||||
test("interpolationTokens reads the :default placeholder form", () => {
|
||||
assert.deepEqual(interpolationTokens("{{name}} or {{name:default}}"), [
|
||||
"name",
|
||||
"name:default",
|
||||
]);
|
||||
});
|
||||
|
||||
test("es defines every message key that en defines", () => {
|
||||
const missing = Object.keys(en).filter((key) => !hasKey(es, key));
|
||||
|
||||
@@ -42,22 +49,31 @@ test("es defines no message keys that en does not define", () => {
|
||||
);
|
||||
});
|
||||
|
||||
test("es keeps the same interpolation placeholders as en", () => {
|
||||
const mismatched: string[] = [];
|
||||
test("every translated locale keeps the same interpolation placeholders as en", () => {
|
||||
const locales = [
|
||||
{ name: "es", messages: es },
|
||||
{ name: "ru", messages: ru },
|
||||
{ name: "zh-CN", messages: zhCN },
|
||||
{ name: "zh-TW", messages: zhTW },
|
||||
];
|
||||
|
||||
for (const key of Object.keys(es)) {
|
||||
if (!hasKey(en, key)) continue;
|
||||
for (const locale of locales) {
|
||||
const mismatched: string[] = [];
|
||||
|
||||
const expected = interpolationTokens(en[key] ?? "").join(",");
|
||||
const actual = interpolationTokens(es[key] ?? "").join(",");
|
||||
if (expected !== actual) mismatched.push(key);
|
||||
for (const key of Object.keys(locale.messages)) {
|
||||
if (!hasKey(en, key)) continue;
|
||||
|
||||
const expected = interpolationTokens(en[key] ?? "").join(",");
|
||||
const actual = interpolationTokens(locale.messages[key] ?? "").join(",");
|
||||
if (expected !== actual) mismatched.push(key);
|
||||
}
|
||||
|
||||
assert.deepEqual(
|
||||
mismatched,
|
||||
[],
|
||||
`${locale.name} changes interpolation placeholders for ${mismatched.length} keys`,
|
||||
);
|
||||
}
|
||||
|
||||
assert.deepEqual(
|
||||
mismatched,
|
||||
[],
|
||||
`es changes interpolation placeholders for ${mismatched.length} keys`,
|
||||
);
|
||||
});
|
||||
|
||||
test("every default shortcut has a label in en and es", () => {
|
||||
|
||||
@@ -1,40 +0,0 @@
|
||||
import { test } from "node:test";
|
||||
import assert from "node:assert/strict";
|
||||
import { readFileSync } from "node:fs";
|
||||
import { enMonitorMessages } from "./en/monitor";
|
||||
import { esMonitorMessages } from "./es/monitor";
|
||||
import { ruMonitorMessages } from "./ru/monitor";
|
||||
import { zhCNMonitorMessages } from "./zh-CN/monitor";
|
||||
import { zhTWMonitorMessages } from "./zh-TW/monitor";
|
||||
|
||||
test("monitoring UI literal message keys exist, including editor-only controls", () => {
|
||||
for (const name of ["MonitorPanels", "MonitorNavButton", "MonitorDiskUsage"]) {
|
||||
const source = readFileSync(new URL(`../../../components/vault/${name}.tsx`, import.meta.url), "utf8");
|
||||
const keys = [...source.matchAll(/\bt\("(monitor\.[^"]+)"/g)].map((match) => match[1]);
|
||||
for (const key of keys)
|
||||
assert.ok(Object.hasOwn(enMonitorMessages, key), `${name}: ${key}`);
|
||||
}
|
||||
});
|
||||
for (const [locale, messages] of Object.entries({
|
||||
es: esMonitorMessages,
|
||||
ru: ruMonitorMessages,
|
||||
"zh-CN": zhCNMonitorMessages,
|
||||
"zh-TW": zhTWMonitorMessages,
|
||||
})) {
|
||||
test(`monitoring has translated actions, states and matching placeholders in ${locale}`, () => {
|
||||
assert.deepEqual(
|
||||
Object.keys(messages).sort(),
|
||||
Object.keys(enMonitorMessages).sort(),
|
||||
);
|
||||
for (const key of Object.keys(enMonitorMessages)) {
|
||||
const english = enMonitorMessages[key as keyof typeof enMonitorMessages];
|
||||
const translated = messages[key as keyof typeof messages];
|
||||
assert.ok(translated.trim(), key);
|
||||
assert.deepEqual(
|
||||
(translated.match(/\{\w+\}/g) ?? []).sort(),
|
||||
(english.match(/\{\w+\}/g) ?? []).sort(),
|
||||
key,
|
||||
);
|
||||
}
|
||||
});
|
||||
}
|
||||
@@ -1,39 +0,0 @@
|
||||
import test from 'node:test';
|
||||
import assert from 'node:assert/strict';
|
||||
import en from './en';
|
||||
import zhCN from './zh-CN';
|
||||
import zhTW from './zh-TW';
|
||||
|
||||
const KEYS = [
|
||||
'ai.opencode.v2.startupTimeout',
|
||||
'ai.opencode.v2.exited',
|
||||
'ai.opencode.v2.unauthorized',
|
||||
'ai.opencode.v2.unavailable',
|
||||
'ai.opencode.v2.sessionFailed',
|
||||
'ai.opencode.v2.empty',
|
||||
'ai.opencode.v2.contextSkipped',
|
||||
'ai.opencode.v2.mcpSkipped',
|
||||
];
|
||||
|
||||
test('OpenCode 2 strings exist in English, Simplified Chinese, and Taiwan Chinese', () => {
|
||||
for (const key of KEYS) {
|
||||
assert.equal(typeof en[key], 'string', `en missing ${key}`);
|
||||
assert.equal(typeof zhCN[key], 'string', `zh-CN missing ${key}`);
|
||||
assert.equal(typeof zhTW[key], 'string', `zh-TW missing ${key}`);
|
||||
assert.notEqual(en[key], zhCN[key]);
|
||||
assert.notEqual(en[key], zhTW[key]);
|
||||
assert.notEqual(zhCN[key], zhTW[key]);
|
||||
}
|
||||
});
|
||||
|
||||
test('Taiwan OpenCode 2 wording uses Taiwan terms', () => {
|
||||
const text = KEYS.map((key) => zhTW[key]).join('\n');
|
||||
assert.match(text, /終端機/);
|
||||
assert.match(text, /連線/);
|
||||
assert.match(text, /設定/);
|
||||
assert.match(text, /傳回/);
|
||||
assert.equal(text.includes('终端'), false);
|
||||
assert.equal(text.includes('连接'), false);
|
||||
assert.equal(text.includes('设置'), false);
|
||||
assert.equal(text.includes('返回'), false);
|
||||
});
|
||||
@@ -1,30 +0,0 @@
|
||||
import assert from 'node:assert/strict';
|
||||
import test from 'node:test';
|
||||
import { SUPPORTED_UI_LOCALES } from '../../../infrastructure/config/i18n';
|
||||
import { getLoadedLocaleMessages, loadLocaleMessages } from '../messages';
|
||||
import en from './en';
|
||||
import { describePluginGitHubInstallError } from '../../../domain/pluginGitHubInstallError';
|
||||
|
||||
test('GitHub install copy and error interpolation are complete in every supported UI locale', async () => {
|
||||
const keys = Object.keys(en).filter(key => key.startsWith('settings.plugins.github.'));
|
||||
assert.ok(keys.length > 30);
|
||||
for (const { id } of SUPPORTED_UI_LOCALES) {
|
||||
await loadLocaleMessages(id);
|
||||
const messages = getLoadedLocaleMessages(id)!;
|
||||
for (const key of keys) {
|
||||
assert.ok(messages[key]?.trim(), `${id}: ${key}`);
|
||||
assert.deepEqual(messages[key].match(/\{\w+\}/g) ?? [], en[key].match(/\{\w+\}/g) ?? [], `${id}: ${key}`);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
test('GitHub error presentation handles Electron wrappers, HTTP status and diagnostic fallback', () => {
|
||||
const expired = describePluginGitHubInstallError("Error invoking remote method 'plugins:github:install': Error: GitHub package preview expired. Download and review it again");
|
||||
assert.equal(expired.key, 'settings.plugins.github.error.expired');
|
||||
assert.equal(expired.details, null);
|
||||
assert.deepEqual(describePluginGitHubInstallError('GitHub download failed (HTTP 503)').values, { status: '503' });
|
||||
const validator = 'manifest version must be a semantic version';
|
||||
assert.equal(describePluginGitHubInstallError(validator).details, validator);
|
||||
assert.equal(describePluginGitHubInstallError(validator).key, 'settings.plugins.github.error.failed');
|
||||
assert.equal(describePluginGitHubInstallError('Plugin is incompatible: engine version').key, 'settings.plugins.github.error.incompatible');
|
||||
});
|
||||
@@ -1,6 +1,8 @@
|
||||
import type { Messages } from '../types';
|
||||
|
||||
export const ruAiMessages: Messages = {
|
||||
'ai.chat.iterationLimitReached': 'Достигнут лимит цикла инструментов ({limit} итераций). Можно продолжить в этом чате. Запущенные задачи терминала не останавливаются.',
|
||||
'ai.chat.continue': 'Продолжить',
|
||||
'ai.chat.attachmentContentUnavailable': 'Содержимое недоступно на этом устройстве',
|
||||
'ai.chat.contextUsage': 'Контекст: {used} / {max} токенов',
|
||||
// AI Settings
|
||||
@@ -41,6 +43,9 @@ export const ruAiMessages: Messages = {
|
||||
'ai.providers.apiKey': 'API-ключ',
|
||||
'ai.providers.apiKey.placeholder': 'Введите API-ключ',
|
||||
'ai.providers.apiKey.decrypting': 'Расшифровка...',
|
||||
'ai.providers.opencodeGo.help': 'Вставьте API-ключ OpenCode, чтобы использовать OpenCode Go. Базовый URL и список моделей настроятся автоматически.',
|
||||
'ai.providers.opencodeGo.getKey': 'Получить API-ключ',
|
||||
'ai.providers.fixedBaseUrl.help': 'Задаётся провайдером. Netcatty автоматически выбирает путь эндпоинта для каждой модели.',
|
||||
'ai.providers.baseUrl': 'Базовый URL',
|
||||
'ai.providers.baseUrl.anthropicHelp': 'Anthropic-совместимый: хост с /v1 или без (например https://gateway.example или https://gateway.example/v1). Проверка и чат используют /v1/models и /v1/messages.',
|
||||
'ai.providers.baseUrl.ollamaHelp': 'Локальный Ollama: http://localhost:11434/v1 (без API-ключа). Ollama Cloud: https://ollama.com/v1 и ключ Cloud.',
|
||||
@@ -273,6 +278,7 @@ export const ruAiMessages: Messages = {
|
||||
'ai.defaultAgent': 'Агент по умолчанию',
|
||||
'ai.defaultAgent.description': 'Агент, который будет использоваться при запуске новой AI-сессии',
|
||||
'ai.defaultAgent.catty': 'Catty (встроенный)',
|
||||
'ai.defaultAgent.unavailable': 'Недоступен',
|
||||
'ai.toolAccess.title': 'Доступ к инструментам',
|
||||
'ai.toolAccess.mode': 'Режим доступа Netcatty',
|
||||
'ai.toolAccess.description': 'Выберите, как внешние агенты получают доступ к сессиям Netcatty. MCP предоставляет встроенный сервер, а Skills + CLI указывает агентам на локальный skill Netcatty и команды CLI.',
|
||||
@@ -551,6 +557,23 @@ export const ruAiMessages: Messages = {
|
||||
'ai.chat.rebindUsage': 'Использование: /rebind <номер из /chats>',
|
||||
'ai.chat.rebindDone': 'Чат «{title}» привязан к этой панели.',
|
||||
'ai.chat.rebindUnavailable': 'В области этой панели нет цели для привязки.',
|
||||
'ai.chat.managerScopeTab': 'Текущие',
|
||||
'ai.chat.managerAllChatsTab': 'Все',
|
||||
'ai.chat.managerSearchPlaceholder': 'Поиск по названиям чатов…',
|
||||
'ai.chat.managerFilterAllAgents': 'Все агенты',
|
||||
'ai.chat.managerMoreActions': 'Ещё действия',
|
||||
'ai.chat.managerOpen': 'Открыть в этой панели',
|
||||
'ai.chat.managerOpenDisabled': 'Открыт в другом рабочем пространстве или терминале',
|
||||
'ai.chat.managerRebind': 'Переместить в…',
|
||||
'ai.chat.managerRebindPick': 'Выберите терминал или рабочее пространство…',
|
||||
'ai.chat.managerRebindHere': 'Текущая панель',
|
||||
'ai.chat.managerRebindDone': 'Чат «{title}» перемещён в {target}.',
|
||||
'ai.chat.managerExportOne': 'Экспортировать этот чат',
|
||||
'ai.chat.managerBadgeActive': 'Активен',
|
||||
'ai.chat.managerBadgeIdle': 'Простой',
|
||||
'ai.chat.managerMessagesCount': '{n} сообщений',
|
||||
'ai.chat.managerDeleteTitle': 'Удалить этот чат?',
|
||||
'ai.chat.managerDeleteMessage': '«{title}» и его сообщения будут удалены из всех панелей. Это действие нельзя отменить.',
|
||||
'ai.chat.justNow': 'Только что',
|
||||
'ai.chat.minutesAgo': '{n}м назад',
|
||||
'ai.chat.hoursAgo': '{n}ч назад',
|
||||
@@ -668,9 +691,6 @@ export const ruAiMessages: Messages = {
|
||||
'terminal.layer.theme': 'Тема',
|
||||
'terminal.layer.notes': 'Заметки',
|
||||
'terminal.layer.aiChat': 'AI-чат',
|
||||
'terminal.layer.movePanelLeft': 'Переместить панель влево',
|
||||
'terminal.layer.movePanelRight': 'Переместить панель вправо',
|
||||
'terminal.layer.movePanelBottom': 'Переместить панель вниз',
|
||||
'terminal.layer.choosePanelPosition': 'Изменить положение',
|
||||
'terminal.layer.dockLeft': 'Слева',
|
||||
'terminal.layer.dockRight': 'Справа',
|
||||
@@ -698,15 +718,12 @@ export const ruAiMessages: Messages = {
|
||||
'topTabs.openQuickSwitcher': 'Открыть быстрый переключатель',
|
||||
'topTabs.moreTabs': 'Больше вкладок',
|
||||
'topTabs.aiAssistant': 'AI-помощник',
|
||||
'topTabs.newLocalTerminal': 'Новый локальный терминал',
|
||||
'topTabs.controlPanel': 'Быстрые настройки',
|
||||
'topTabs.controlPanel.externalMcp': 'Внешний MCP',
|
||||
'topTabs.controlPanel.theme': 'Тема',
|
||||
'topTabs.controlPanel.theme.light': 'Светлая',
|
||||
'topTabs.controlPanel.theme.dark': 'Тёмная',
|
||||
'topTabs.controlPanel.theme.system': 'Системная',
|
||||
'topTabs.externalMcp.enable': 'Включить внешний MCP',
|
||||
'topTabs.externalMcp.disable': 'Отключить внешний MCP',
|
||||
'topTabs.windowOpacity': 'Прозрачность окна',
|
||||
'topTabs.openSettings': 'Открыть настройки',
|
||||
'ai.chat.sessionHistory': 'История сессий',
|
||||
|
||||
@@ -38,7 +38,6 @@ export const ruCoreMessages: Messages = {
|
||||
"settings.plugins.github.error.failed": "Не удалось проверить или установить плагин. Изучите технические подробности перед повторной попыткой.",
|
||||
"settings.plugins.github.error.details": "Технические подробности",
|
||||
|
||||
|
||||
// Common
|
||||
'common.save': 'Сохранить',
|
||||
'common.cancel': 'Отмена',
|
||||
@@ -58,7 +57,6 @@ export const ruCoreMessages: Messages = {
|
||||
'common.edit': 'Редактировать',
|
||||
'common.clear': 'Очистить',
|
||||
'common.optional': 'Необязательно',
|
||||
'common.selectPlaceholder': 'Выбрать...',
|
||||
'common.add': 'Добавить',
|
||||
'common.rename': 'Переименовать',
|
||||
'common.refresh': 'Обновить',
|
||||
@@ -97,11 +95,9 @@ export const ruCoreMessages: Messages = {
|
||||
'field.label': 'Метка',
|
||||
'field.type': 'Тип',
|
||||
'auth.keyType': 'Тип {type}',
|
||||
'auth.showAllKeys': 'Показать все ключи',
|
||||
|
||||
// Dialogs / prompts
|
||||
'confirm.deleteHost': 'Удалить хост "{name}"?',
|
||||
'confirm.deleteIdentity': 'Удалить идентификатор "{name}"?',
|
||||
'confirm.removeProvider': 'Удалить провайдера "{name}"?',
|
||||
'confirm.closeBusyTerminal.title': 'Подтвердите закрытие',
|
||||
'confirm.closeBusyTerminal.message': 'Процесс "{command}" всё ещё выполняется и будет завершён.',
|
||||
@@ -359,7 +355,6 @@ export const ruCoreMessages: Messages = {
|
||||
'tray.status.inactive': 'Неактивно',
|
||||
'tray.status.error': 'Ошибка',
|
||||
'tray.status.unknown': 'Неизвестно',
|
||||
'tray.recentHosts': 'Недавние хосты',
|
||||
'tray.empty.title': 'Пока здесь ничего нет',
|
||||
'tray.empty.subtitle': 'Подключитесь к серверу, они по вам скучают 🚀',
|
||||
'tray.quit': 'Выйти из Netcatty',
|
||||
@@ -418,9 +413,6 @@ export const ruCoreMessages: Messages = {
|
||||
'update.downloadFailed.message': 'Не удалось скачать обновление. Вы можете скачать его вручную.',
|
||||
'update.needsSave.title': 'Несохранённые изменения',
|
||||
'update.needsSave.message': 'Сначала сохраните открытые редакторы, затем снова нажмите «Перезапустить сейчас», чтобы установить обновление.',
|
||||
'update.openReleases': 'Открыть релизы',
|
||||
'update.remindLater': 'Напомнить позже',
|
||||
'update.skipVersion': 'Пропустить эту версию',
|
||||
|
||||
// Settings > Appearance
|
||||
'settings.appearance.uiTheme': 'Тема интерфейса',
|
||||
@@ -840,6 +832,8 @@ export const ruCoreMessages: Messages = {
|
||||
'settings.terminal.connection.temporaryLegacyAlgorithms.desc': 'SSH-подключения без сохранённого хоста, включая запуск в стиле PuTTY и быстрое подключение, предлагают те же устаревшие алгоритмы, что и настройка хоста. Сохранённые хосты используют свою настройку. По умолчанию выключено: у этих алгоритмов есть известные слабости.',
|
||||
'settings.terminal.connection.temporaryNetworkDeviceMode': 'Режим сетевого устройства для временных подключений',
|
||||
'settings.terminal.connection.temporaryNetworkDeviceMode.desc': 'SSH-подключения без сохранённого хоста, включая внешний запуск и быстрое подключение, открываются в режиме сетевого устройства. Сохранённые хосты и группы сохраняют свой тип устройства. По умолчанию выключено.',
|
||||
'settings.terminal.connection.sshAutoReconnectInterval': 'Интервал переподключения SSH (секунды)',
|
||||
'settings.terminal.connection.sshAutoReconnectInterval.desc': 'Ожидание между попытками: 5–3600 секунд (по умолчанию 5). Изменение применяется к следующему ожиданию; уже запущенный таймер не меняется.',
|
||||
'settings.terminal.connection.keepaliveInterval': 'Интервал keepalive',
|
||||
'settings.terminal.connection.keepaliveInterval.desc': 'Как часто (в секундах) отправлять keepalive-пакеты на уровне SSH. Установите 0, чтобы отключить глобально. Учтите, что отдельные хосты могут переопределять это значение в своих настройках.',
|
||||
'settings.terminal.connection.keepaliveCountMax': 'Макс. число пропущенных keepalive',
|
||||
@@ -997,8 +991,6 @@ export const ruCoreMessages: Messages = {
|
||||
'settings.shortcuts.binding.sftp-navigate-to': 'Перейти в выбранную директорию',
|
||||
|
||||
// Context menus / common actions
|
||||
'action.newHost': 'Новый хост',
|
||||
'action.newSubfolder': 'Новая подпапка',
|
||||
'action.copyPublicKey': 'Копировать публичный ключ',
|
||||
'action.keyExport': 'Экспорт ключа',
|
||||
'action.edit': 'Редактировать',
|
||||
@@ -1188,12 +1180,9 @@ export const ruCoreMessages: Messages = {
|
||||
"settings.plugins.manager.remove": "Удалить",
|
||||
"settings.plugins.manager.removeNote": "Удаление очищает код пакета и локальные данные KV. Настройки пользователя, секреты и данные синхронизации сохраняются.",
|
||||
"settings.plugins.permissions.statusUnknown": "Состояние неизвестно",
|
||||
"plugins.sidebar.extensions": "Страницы расширений",
|
||||
"plugins.sidebar.selectTerminal": "Сначала выберите открытый терминал.",
|
||||
"plugins.sidebar.loading": "Загрузка страницы расширения…",
|
||||
"plugins.vault.loading": "Загрузка страницы плагина…",
|
||||
"plugins.vault.extensions": "Расширения",
|
||||
"plugins.vault.back": "К хостам",
|
||||
"plugins.interaction.title": "Запрос плагина",
|
||||
"plugins.interaction.sharing": "Переданный текст доступен плагину и его разрешённым возможностям, включая сеть. Чтение не разрешает новый сетевой адрес.",
|
||||
"plugins.interaction.input": "Ввести текст",
|
||||
@@ -1338,6 +1327,7 @@ export const ruCoreMessages: Messages = {
|
||||
'plugins.hostActions.selectionNote': 'Передаются только метаданные выбранных хостов: сохранённые имена, адреса, пользователи, протоколы, группы и теги. Группа включает только выбранные сейчас хосты. Дальнейшие запросы изменения или подключения зависят от настроек разрешений плагина.',
|
||||
'plugins.hostActions.create': 'Проверить черновик хоста',
|
||||
'plugins.hostActions.edit': 'Проверить изменения хоста',
|
||||
'plugins.hostActions.streamNote': 'Разрешить этому плагину отправлять и получать данные по указанному адресу через выбранный SSH-сервер. Адреса разрешаются на этом сервере. Это может читать или изменять данные базы данных. Терминал и стартовые скрипты не запускаются. Пароли и ключи SSH остаются в приложении. Выберите SSH-сервер для продолжения.',
|
||||
'plugins.hostActions.connect': 'Подтвердить подключение',
|
||||
'plugins.hostActions.fieldDiff': 'Изменения для сохранения',
|
||||
'plugins.hostActions.defaultsWarning': 'Применяются сохранённые настройки подключения. Смена группы может изменить унаследованные настройки входа, прокси и скрипты.',
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
export const ruScriptsMessages = {
|
||||
'scripts.meta.name': 'Название',
|
||||
'scripts.meta.language': 'Язык',
|
||||
'scripts.meta.description': 'Описание',
|
||||
'scripts.meta.descriptionPlaceholder': 'Необязательные заметки об этом скрипте',
|
||||
'scripts.meta.trigger': 'Триггер',
|
||||
@@ -15,7 +14,6 @@ export const ruScriptsMessages = {
|
||||
'scripts.actions.openEditor': 'Открыть редактор',
|
||||
'scripts.actions.openEditorHint': 'Редактировать скрипт в большом окне',
|
||||
'scripts.editor.modalTitle': 'Редактор скриптов',
|
||||
'scripts.editor.modalSubtitle': 'Редактируйте метаданные и код скрипта в большом рабочем пространстве.',
|
||||
'scripts.editor.lineCount': '{count} строк',
|
||||
'scripts.editor.resize': 'Изменить размер редактора',
|
||||
'scripts.targets.hint': 'Выбранные группы разрешаются динамически, поэтому новые хосты включаются автоматически.',
|
||||
@@ -86,17 +84,13 @@ export const ruScriptsMessages = {
|
||||
'scripts.dialog.retry': 'Повторить',
|
||||
'scripts.dialog.skip': 'Пропустить',
|
||||
'scripts.dialog.abort': 'Прервать',
|
||||
'scripts.running.stepProgress': 'Шаг {current} / {total}',
|
||||
'scripts.running.determinateProgress': '{label} {current}/{total}',
|
||||
'scripts.running.progressFallback': 'Выполнение',
|
||||
'scripts.running.operationsCount': 'Операций: {count}',
|
||||
'scripts.running.opsPrefix': '',
|
||||
'scripts.running.opsSuffix': ' операций',
|
||||
'scripts.running.elapsedLabel': 'Прошло времени',
|
||||
'scripts.running.lastSentLabel': 'Отправлено:',
|
||||
'scripts.running.elapsed': '{elapsed}',
|
||||
'scripts.running.completedSummary': 'Завершено · операций: {count} · {elapsed}',
|
||||
'scripts.running.dismissHint': 'Нажмите закрытие, чтобы скрыть',
|
||||
'scripts.running.dismiss': 'Закрыть',
|
||||
'scripts.running.viewLogs': 'Просмотреть журнал',
|
||||
'scripts.running.logTitle': '{name} · Журнал запуска',
|
||||
@@ -111,26 +105,12 @@ export const ruScriptsMessages = {
|
||||
'vault.nav.scripts': 'Скрипты',
|
||||
'snippets.action.newScript': 'Новый сценарий автоматизации',
|
||||
'hostDetails.section.automation': 'Автоматизация',
|
||||
'hostDetails.automation.loginScript': 'Скрипт входа',
|
||||
'hostDetails.automation.loginScriptPlaceholder': 'Выберите скрипт',
|
||||
'hostDetails.automation.none': 'Нет',
|
||||
'hostDetails.automation.outputTriggers': 'Триггеры вывода',
|
||||
'hostDetails.automation.addTrigger': 'Добавить триггер',
|
||||
'hostDetails.automation.triggerPatternPlaceholder': 'Регулярное выражение',
|
||||
'hostDetails.automation.linkedScripts': 'Связанные скрипты',
|
||||
'hostDetails.automation.linkedScriptsEmpty': 'С этим хостом пока не связано ни одного скрипта.',
|
||||
'hostDetails.automation.linkScriptPlaceholder': 'Связать существующий скрипт…',
|
||||
'hostDetails.automation.unlink': 'Отвязать',
|
||||
'hostDetails.automation.equivalenceHint': 'Связь добавляет этот хост в список целей скрипта в разделе «Скрипты». Оба представления синхронизированы.',
|
||||
'hostDetails.automation.queueHint': 'Скрипты запускаются по порядку при подключении этого хоста. Сначала выполняются глобальные скрипты, затем эта очередь.',
|
||||
'hostDetails.automation.globalScripts': 'Глобальные скрипты подключения',
|
||||
'hostDetails.automation.globalScriptsHint': 'Выполняются первыми при каждом подключении. Порядок можно изменить в библиотеке скриптов.',
|
||||
'hostDetails.automation.connectQueue': 'Очередь запуска этого хоста',
|
||||
'hostDetails.automation.connectQueueEmpty': 'В очереди этого хоста пока нет скриптов подключения.',
|
||||
'hostDetails.automation.addToQueuePlaceholder': 'Добавить скрипт в очередь…',
|
||||
'hostDetails.automation.moveUp': 'Переместить вверх',
|
||||
'hostDetails.automation.moveDown': 'Переместить вниз',
|
||||
'hostDetails.automation.removeFromQueue': 'Удалить из очереди',
|
||||
'hostDetails.automation.dragHandle': 'Перетащите для изменения порядка',
|
||||
'hostDetails.automation.queueDragHint': 'Перетаскивайте элементы, чтобы изменить порядок очереди подключения.',
|
||||
};
|
||||
@@ -14,13 +14,11 @@ export const ruSystemManagerMessages: Messages = {
|
||||
'systemManager.tabs.docker': 'Docker',
|
||||
'systemManager.tabs.gpu': 'GPU',
|
||||
'systemManager.tabs.ariaLabel': 'Разделы системного менеджера',
|
||||
'systemManager.popup.loading': 'Открытие терминала…',
|
||||
'systemManager.popup.startupFailed': 'Команда запуска не была выполнена успешно. Проверьте, что цель доступна, и повторите попытку.',
|
||||
|
||||
'systemManager.errors.loadProcesses': 'Не удалось загрузить процессы',
|
||||
'systemManager.errors.loadTmux': 'Не удалось загрузить сессии tmux',
|
||||
'systemManager.errors.loadTmuxWindows': 'Не удалось загрузить окна tmux',
|
||||
'systemManager.errors.loadTmuxPanes': 'Не удалось загрузить панели tmux',
|
||||
'systemManager.errors.loadTmuxClients': 'Не удалось загрузить клиентов tmux',
|
||||
'systemManager.errors.actionFailed': 'Не удалось выполнить действие',
|
||||
'systemManager.errors.loadDocker': 'Не удалось загрузить контейнеры',
|
||||
@@ -28,7 +26,6 @@ export const ruSystemManagerMessages: Messages = {
|
||||
'systemManager.errors.loadDockerImages': 'Не удалось загрузить образы',
|
||||
'systemManager.errors.loadKubernetes': 'Не удалось загрузить ресурсы Kubernetes',
|
||||
'systemManager.errors.loadPods': 'Не удалось загрузить поды',
|
||||
'systemManager.errors.loadOverview': 'Не удалось загрузить обзор системы',
|
||||
'systemManager.errors.loadGpu': 'Не удалось загрузить статистику GPU / NPU',
|
||||
'systemManager.errors.loadPorts': 'Не удалось загрузить слушающие порты',
|
||||
'systemManager.errors.loadServices': 'Не удалось загрузить службы systemd',
|
||||
@@ -62,13 +59,10 @@ export const ruSystemManagerMessages: Messages = {
|
||||
'systemManager.overview.noTopProcesses': 'Нет данных процессов',
|
||||
|
||||
'systemManager.processes.search': 'Поиск процессов…',
|
||||
'systemManager.processes.command': 'Команда',
|
||||
'systemManager.processes.user': 'Пользователь',
|
||||
'systemManager.processes.term': 'Завершить',
|
||||
'systemManager.processes.kill': 'Убить',
|
||||
'systemManager.processes.stop': 'Остановить (SIGSTOP)',
|
||||
'systemManager.processes.cont': 'Продолжить (SIGCONT)',
|
||||
'systemManager.processes.hup': 'Сигнал SIGHUP',
|
||||
'systemManager.processes.renice': 'Изменить приоритет',
|
||||
'systemManager.processes.renicePrompt': 'Значение nice (-20 до 19)',
|
||||
'systemManager.processes.reniceInvalid': 'Nice должно быть от -20 до 19',
|
||||
@@ -83,7 +77,6 @@ export const ruSystemManagerMessages: Messages = {
|
||||
'systemManager.processes.stat': 'Состояние',
|
||||
'systemManager.processes.meta': '{{count}} проц.',
|
||||
'systemManager.processes.loading': 'Загрузка процессов…',
|
||||
'systemManager.processes.loadingMore': 'Загрузка следующих процессов…',
|
||||
'systemManager.processes.state.running': 'Активен',
|
||||
'systemManager.processes.state.sleeping': 'Спящий',
|
||||
'systemManager.processes.state.stopped': 'Остановлен',
|
||||
@@ -121,12 +114,9 @@ export const ruSystemManagerMessages: Messages = {
|
||||
'systemManager.tmux.attached': 'Подключена',
|
||||
'systemManager.tmux.detached': 'Отключена',
|
||||
'systemManager.tmux.windows': '{{count}} окон',
|
||||
'systemManager.tmux.created': 'Создана',
|
||||
'systemManager.tmux.activity': 'Активность',
|
||||
'systemManager.tmux.rename': 'Переименовать',
|
||||
'systemManager.tmux.detach': 'Отключить всех',
|
||||
'systemManager.tmux.killSession': 'Завершить сессию',
|
||||
'systemManager.tmux.killServer': 'Остановить сервер',
|
||||
'systemManager.tmux.loadingDetails': 'Загрузка деталей…',
|
||||
'systemManager.tmux.clients': 'Подключённые клиенты',
|
||||
'systemManager.tmux.windowList': 'Окна',
|
||||
@@ -137,31 +127,17 @@ export const ruSystemManagerMessages: Messages = {
|
||||
'systemManager.docker.unavailable': 'На этом хосте не обнаружена среда контейнеров (Docker, Podman, nerdctl или kubectl)',
|
||||
'systemManager.tmux.windowsMismatch': 'В сессии указано {{count}} окон, но list-windows ничего не вернул',
|
||||
'systemManager.tmux.lastCommand': 'последняя команда: {{command}}',
|
||||
'systemManager.tmux.noPanes': 'Нет панелей',
|
||||
'systemManager.tmux.panes': '{{count}} пан.',
|
||||
'systemManager.tmux.active': 'активно',
|
||||
'systemManager.tmux.unnamedWindow': 'Безымянное окно',
|
||||
'systemManager.tmux.unnamedPane': 'Безымянная панель',
|
||||
'systemManager.tmux.attachWindow': 'Подключить к окну',
|
||||
'systemManager.tmux.selectWindow': 'Выбрать окно',
|
||||
'systemManager.tmux.killWindow': 'Закрыть окно',
|
||||
'systemManager.tmux.killPane': 'Закрыть панель',
|
||||
'systemManager.tmux.splitHorizontal': 'Разделить горизонтально',
|
||||
'systemManager.tmux.splitVertical': 'Разделить вертикально',
|
||||
'systemManager.tmux.sendKeys': 'Отправить клавиши',
|
||||
'systemManager.tmux.sendKeysTo': 'Отправить клавиши в окно {{window}} панель {{pane}}',
|
||||
'systemManager.tmux.sendKeysPlaceholder': 'Команда или текст…',
|
||||
'systemManager.tmux.renameSessionPrompt': 'Переименовать сессию',
|
||||
'systemManager.tmux.renameWindowPrompt': 'Переименовать окно',
|
||||
'systemManager.tmux.windowName': 'Имя окна',
|
||||
'systemManager.tmux.confirmKillSession': 'Завершить сессию tmux «{{name}}»?',
|
||||
'systemManager.tmux.confirmDetachSession': 'Отключить всех клиентов от «{{name}}»?',
|
||||
'systemManager.tmux.confirmKillWindow': 'Закрыть окно «{{name}}»?',
|
||||
'systemManager.tmux.confirmKillPane': 'Закрыть панель #{{index}}?',
|
||||
'systemManager.tmux.confirmKillServer': 'Остановить сервер tmux? Все сессии будут завершены.',
|
||||
'systemManager.tmux.meta': '{{count}} сессий',
|
||||
|
||||
'systemManager.docker.title': 'Контейнеры',
|
||||
'systemManager.docker.subTabs.containers': 'Контейнеры',
|
||||
'systemManager.docker.subTabs.images': 'Образы',
|
||||
'systemManager.docker.empty': 'Контейнеры не найдены',
|
||||
@@ -174,7 +150,6 @@ export const ruSystemManagerMessages: Messages = {
|
||||
'systemManager.docker.filter.paused': 'На паузе',
|
||||
'systemManager.docker.shell': 'Оболочка',
|
||||
'systemManager.docker.logs': 'Логи',
|
||||
'systemManager.docker.details': 'Детали',
|
||||
'systemManager.docker.inspect': 'Проверить',
|
||||
'systemManager.docker.imageInspect': 'Проверить образ',
|
||||
'systemManager.docker.confirmRemove': 'Удалить этот контейнер?',
|
||||
|
||||
@@ -12,6 +12,8 @@ export const ruTerminalMessages: Messages = {
|
||||
'terminal.directory.hidden': 'Показывать скрытые каталоги',
|
||||
'terminal.directory.refresh': 'Обновить',
|
||||
'terminal.directory.unavailable': 'Навигация по каталогам недоступна для этого сеанса.',
|
||||
'terminal.directory.integrationUnavailable': 'Интеграция каталогов PowerShell не готова. Проверьте параметры запуска и политику выполнения.',
|
||||
'terminal.directory.nonFilesystem': 'Текущее расположение PowerShell не является каталогом файловой системы.',
|
||||
'terminal.directory.busy': 'Дождитесь пустой командной строки.',
|
||||
'terminal.directory.readFailed': 'Не удалось прочитать каталог. Попробуйте обновить.',
|
||||
'terminal.directory.changeFailed': 'Не удалось подтвердить смену каталога. Обновите перед повтором.',
|
||||
@@ -61,7 +63,6 @@ export const ruTerminalMessages: Messages = {
|
||||
'logs.action.delete': 'Удалить',
|
||||
|
||||
// Log view
|
||||
'logView.customizeAppearance': 'Настроить внешний вид',
|
||||
'logView.appearance': 'Внешний вид',
|
||||
'logView.readOnly': 'Только чтение',
|
||||
'logView.export': 'Экспорт',
|
||||
@@ -74,7 +75,6 @@ export const ruTerminalMessages: Messages = {
|
||||
'terminal.toolbar.availableAfterConnect': 'Доступно после подключения',
|
||||
'terminal.toolbar.sendYmodem': 'Отправить через YMODEM',
|
||||
'terminal.toolbar.receiveYmodem': 'Получить через YMODEM',
|
||||
'terminal.toolbar.sftp': 'SFTP',
|
||||
'terminal.toolbar.more': 'Другие действия',
|
||||
'terminal.toolbar.scripts': 'Скрипты',
|
||||
'terminal.toolbar.history': 'История команд',
|
||||
@@ -122,7 +122,6 @@ export const ruTerminalMessages: Messages = {
|
||||
'terminal.composeBar.resize': 'Изменить высоту строки ввода',
|
||||
'terminal.composeBar.manageSnippets': 'Управление быстрыми сниппетами',
|
||||
'terminal.composeBar.searchSnippets': 'Поиск сниппетов...',
|
||||
'terminal.composeBar.noPinnedSnippets': 'Закрепите сниппеты через + для быстрого доступа',
|
||||
'terminal.composeBar.noMatchingSnippets': 'Сниппеты не найдены',
|
||||
'terminal.composeBar.pinnedCount': 'Закреплено: {count}',
|
||||
'terminal.composeBar.unpinSnippet': 'Убрать {label} из панели',
|
||||
@@ -214,7 +213,6 @@ export const ruTerminalMessages: Messages = {
|
||||
'terminal.osc7Setup.title': 'Настроить отслеживание каталога',
|
||||
'terminal.osc7Setup.desc': 'Netcatty добавит хуки OSC 7 для текущего удалённого пользователя. Это помогает SFTP следовать за каталогом терминала после sudo или su.',
|
||||
'terminal.osc7Setup.targets': 'Возможные файлы для обновления',
|
||||
'terminal.osc7Setup.command': 'Команда для запуска',
|
||||
'terminal.osc7Setup.run': 'Запустить настройку',
|
||||
'terminal.osc7Setup.running': 'Настройка...',
|
||||
'terminal.osc7Setup.configured': 'Отслеживание каталога настроено',
|
||||
@@ -297,9 +295,6 @@ export const ruTerminalMessages: Messages = {
|
||||
'terminal.themeModal.themeType': 'Тема {type}',
|
||||
'terminal.hiddenTheme.title': 'Текущая скрытая тема',
|
||||
'terminal.hiddenTheme.desc': 'Эта тема скрыта из ручного выбора и будет заменена, когда вы выберете другую тему.',
|
||||
'topTabs.toggleTheme.systemExitTitle': 'Активна системная тема',
|
||||
'topTabs.toggleTheme.systemExitMessage': 'Откройте настройки, чтобы выбрать фиксированную светлую или тёмную тему.',
|
||||
'topTabs.toggleTheme.openSettings': 'Открыть настройки',
|
||||
|
||||
// Custom Themes
|
||||
'terminal.customTheme.section': 'Пользовательские темы',
|
||||
@@ -312,7 +307,6 @@ export const ruTerminalMessages: Messages = {
|
||||
'terminal.customTheme.importDesc': 'Импорт из файла цветовой схемы iTerm2',
|
||||
'terminal.customTheme.importError': 'Не удалось разобрать выбранный файл. Убедитесь, что это корректный XML-файл .itermcolors.',
|
||||
'terminal.customTheme.delete': 'Удалить тему',
|
||||
'terminal.customTheme.confirmDelete': 'Подтвердить удаление',
|
||||
'terminal.customTheme.name': 'Название',
|
||||
'terminal.customTheme.namePlaceholder': 'Моя пользовательская тема',
|
||||
'terminal.customTheme.type': 'Тип',
|
||||
@@ -372,10 +366,7 @@ export const ruTerminalMessages: Messages = {
|
||||
'cloudSync.provider.disconnect.cloudRemains': 'Зашифрованные копии синхронизации могут остаться в хранилище {name}. Чтобы удалить их, удалите там файлы синхронизации. Отключение не очищает устройство для передачи другому человеку.',
|
||||
'cloudSync.provider.disconnect.failed': 'Не удалось завершить отключение от {name}. Сохранённые данные подключения могут остаться. Повторите попытку.',
|
||||
'cloudSync.provider.webdav': 'WebDAV',
|
||||
'cloudSync.provider.webdav.desc': 'Подключение к самостоятельно размещённому WebDAV endpoint',
|
||||
'cloudSync.provider.s3': 'Совместимое с S3',
|
||||
'cloudSync.provider.s3.desc': 'Подключение к объектному хранилищу, совместимому с S3',
|
||||
'cloudSync.provider.comingSoon': 'Скоро',
|
||||
'cloudSync.webdav.title': 'Настройки WebDAV',
|
||||
'cloudSync.webdav.desc': 'Настройка WebDAV endpoint для зашифрованной синхронизации.',
|
||||
'cloudSync.webdav.endpoint': 'Конечная точка URL',
|
||||
@@ -404,20 +395,6 @@ export const ruTerminalMessages: Messages = {
|
||||
'cloudSync.s3.allowInsecure': 'Разрешить небезопасное соединение (игнорировать ошибки сертификата)',
|
||||
'cloudSync.s3.showSecret': 'Показать секреты',
|
||||
'cloudSync.s3.validation.required': 'Endpoint, регион, бакет, access key и secret обязательны.',
|
||||
'cloudSync.smb.title': 'Настройки SMB',
|
||||
'cloudSync.smb.desc': 'Подключение к файловой SMB/CIFS-шаре для зашифрованной синхронизации.',
|
||||
'cloudSync.smb.share': 'Путь к шаре',
|
||||
'cloudSync.smb.username': 'Имя пользователя',
|
||||
'cloudSync.smb.password': 'Пароль',
|
||||
'cloudSync.smb.domain': 'Домен (необязательно)',
|
||||
'cloudSync.smb.domainPlaceholder': 'например, WORKGROUP',
|
||||
'cloudSync.smb.port': 'Порт (необязательно)',
|
||||
'cloudSync.smb.showSecret': 'Показать пароль',
|
||||
'cloudSync.smb.validation.share': 'Путь к шаре обязателен.',
|
||||
'cloudSync.smb.validation.port': 'Порт должен быть числом от 1 до 65535.',
|
||||
'cloudSync.connect.smb.success': 'SMB успешно подключён',
|
||||
'cloudSync.connect.smb.failedTitle': 'Ошибка подключения SMB',
|
||||
'cloudSync.provider.smb': 'SMB-шара',
|
||||
'cloudSync.connect.webdav.success': 'WebDAV успешно подключён',
|
||||
'cloudSync.connect.webdav.failedTitle': 'Ошибка подключения WebDAV',
|
||||
'cloudSync.connect.s3.success': 'S3 успешно подключён',
|
||||
@@ -434,7 +411,6 @@ export const ruTerminalMessages: Messages = {
|
||||
'cloudSync.lastSync.minutesAgo': '{minutes} мин назад',
|
||||
'cloudSync.changeKey': 'Изменить ключ',
|
||||
'cloudSync.providers.title': 'Облачные провайдеры',
|
||||
'cloudSync.syncAll': 'Синхронизировать всех подключённых провайдеров',
|
||||
'cloudSync.autoSync.title': 'Автосинхронизация',
|
||||
'cloudSync.autoSync.desc': 'Автоматически синхронизировать при внесении изменений',
|
||||
'cloudSync.strategy.title': 'Стратегия синхронизации',
|
||||
@@ -499,7 +475,6 @@ export const ruTerminalMessages: Messages = {
|
||||
'cloudSync.localBackups.folderWarning': 'Эта папка сама по себе не является полной переносимой резервной копией. Удаление или очистка профиля приложения (userData) может сделать эти точки восстановления нечитаемыми.',
|
||||
'cloudSync.localBackups.retentionTitle': 'Хранение резервных копий',
|
||||
'cloudSync.localBackups.retentionDesc': 'Выберите, сколько локальных резервных копий должен хранить Netcatty.',
|
||||
'cloudSync.localBackups.maxCount': 'Макс. число копий',
|
||||
'cloudSync.localBackups.maxSaved': 'Хранение резервных копий: {count}',
|
||||
'cloudSync.localBackups.maxInvalid': 'Введите число от 1 до 100.',
|
||||
'cloudSync.localBackups.empty': 'Локальных резервных копий пока нет.',
|
||||
@@ -622,10 +597,7 @@ export const ruTerminalMessages: Messages = {
|
||||
'cloudSync.clearLocal.toast.desc': 'Локальная версия сброшена до 0. Выполните синхронизацию для загрузки из облака.',
|
||||
|
||||
// Keychain
|
||||
'keychain.filter.key': 'Ключ',
|
||||
'keychain.filter.certificate': 'Сертификат',
|
||||
'keychain.action.generateKey': 'Создать ключ',
|
||||
'keychain.action.importKey': 'Импорт. ключ',
|
||||
'keychain.action.newIdentity': 'Новый ид-катор',
|
||||
'keychain.action.importCertificate': 'Импорт. сертификат',
|
||||
'keychain.view.grid': 'Сетка',
|
||||
@@ -666,20 +638,8 @@ export const ruTerminalMessages: Messages = {
|
||||
'keychain.export.exporting': 'Экспорт...',
|
||||
'keychain.export.exportAndAttach': 'Экспортировать и привязать',
|
||||
'keychain.export.title': 'Экспорт ключа',
|
||||
'keychain.export.exportToRequired': 'Экспортировать в *',
|
||||
'keychain.export.selectHostPlaceholder': 'Выберите хост...',
|
||||
'keychain.export.locationLabel': 'Расположение ~ $1 *',
|
||||
'keychain.export.filenameLabel': 'Имя файла ~ $2 *',
|
||||
'keychain.export.advanced': 'Дополнительно',
|
||||
'keychain.export.note.supportsOnly': 'Экспорт ключей сейчас поддерживается только в',
|
||||
'keychain.export.note.systems': 'системах.',
|
||||
'keychain.export.note.use': 'Используйте',
|
||||
'keychain.export.note.customize': 'раздел для настройки скрипта экспорта.',
|
||||
'keychain.export.scriptRequired': 'Скрипт *',
|
||||
'keychain.export.exportToHost': 'Экспортировать на хост',
|
||||
'keychain.export.failedGeneric': 'Ошибка экспорта: {message}',
|
||||
'keychain.field.label': 'Метка',
|
||||
'keychain.field.labelRequired': 'Метка *',
|
||||
'keychain.field.labelPlaceholder': 'Метка ключа',
|
||||
'keychain.field.privateKeyRequired': 'Приватный ключ *',
|
||||
'keychain.field.publicKey': 'Публичный ключ',
|
||||
@@ -715,13 +675,9 @@ export const ruTerminalMessages: Messages = {
|
||||
"fido.recovery.usePassword": "Использовать сохранённый пароль",
|
||||
"fido.recovery.passwordFallback": "Вход с паролем, настроенным для этого хоста",
|
||||
"fido.prompt.cancelled": "Проверка ключа безопасности отменена.",
|
||||
'fido.prompt.touchDone': 'Я коснулся',
|
||||
'fido.prompt.timeout': 'Время ожидания FIDO истекло. Попробуйте снова.',
|
||||
'fido.error.opensshMissing': 'Нужен OpenSSH с FIDO/libfido2. macOS: brew install openssh libfido2.',
|
||||
'fido.error.agentUnavailable': 'Не удалось запустить SSH agent с FIDO.',
|
||||
'keychain.generate.resident': 'Хранить учётные данные на ключе',
|
||||
'keychain.generate.verifyRequired': 'Проверять PIN каждый раз',
|
||||
'keychain.action.loadResident': 'Загрузить resident-ключи с устройства',
|
||||
'keychain.generate.keySize': 'Размер ключа',
|
||||
'keychain.generate.labelPlaceholder': 'Метка ключа',
|
||||
'keychain.generate.passphrasePlaceholder': 'Парольная фраза (необязательно)',
|
||||
@@ -731,7 +687,6 @@ export const ruTerminalMessages: Messages = {
|
||||
'keychain.import.dropHint': 'Перетащите сюда файл ключа',
|
||||
'keychain.import.importFromFile': 'Импортировать из файла',
|
||||
'keychain.import.saveKey': 'Сохранить ключ',
|
||||
'keychain.import.importedKeyLabel': 'Импортированный ключ',
|
||||
'keychain.identity.usernameRequired': 'Имя пользователя *',
|
||||
'keychain.identity.method.passwordOnly': 'Пароль',
|
||||
'keychain.identity.summary.password': 'Пароль аутентификации',
|
||||
@@ -740,14 +695,8 @@ export const ruTerminalMessages: Messages = {
|
||||
'keychain.identity.summary.passwordAndKey': 'Пароль и ключ аутентификации',
|
||||
'keychain.identity.summary.passwordAndCertificate': 'Пароль и сертификат аутентификации',
|
||||
'keychain.identity.summary.none': 'Нет учётных данных',
|
||||
'keychain.identity.selectCredential': 'Выберите {kind}',
|
||||
'keychain.identity.save': 'Сохранить',
|
||||
'keychain.identity.update': 'Обновить',
|
||||
'keychain.keyDialog.newTitle': 'Новый ключ',
|
||||
'keychain.keyDialog.newDesc': 'Добавить новый SSH-ключ',
|
||||
'keychain.keyDialog.editTitle': 'Редактировать ключ',
|
||||
'keychain.keyDialog.editDesc': 'Обновить этот SSH-ключ',
|
||||
'keychain.keyDialog.updateKey': 'Обновить ключ',
|
||||
|
||||
// Tabs
|
||||
'tabs.closeSessionAria': 'Закрыть сессию',
|
||||
@@ -759,6 +708,8 @@ export const ruTerminalMessages: Messages = {
|
||||
'tabs.duplicateSession': 'Дублировать сессию',
|
||||
'tabs.copyTabToNewWindow': 'Копировать вкладку в новое окно',
|
||||
'tabs.copyTabToNewWindowFailed': 'Не удалось открыть вкладку в новом окне',
|
||||
'tabs.moveTabToNewWindow': 'Переместить вкладку в новое окно',
|
||||
'tabs.moveTabToNewWindowFailed': 'Не удалось переместить вкладку в новое окно',
|
||||
'tabs.closeOthers': 'Закрыть остальные',
|
||||
'tabs.closeToLeft': 'Закрыть вкладки слева',
|
||||
'tabs.closeToRight': 'Закрыть вкладки справа',
|
||||
@@ -859,9 +810,6 @@ export const ruTerminalMessages: Messages = {
|
||||
'snippets.import.modal.multipleFiles': 'Выбрано файлов: {count}',
|
||||
'snippets.import.modal.parsedSummary': '{files} файл(ов), {total} сниппет(ов), {packages} пакет(ов), повторяющихся команд: {conflicts}. Привязки к хостам игнорируются.',
|
||||
'snippets.import.modal.confirm': 'Подтвердить импорт',
|
||||
'snippets.import.conflict.title': 'Импортировать сниппеты?',
|
||||
'snippets.import.conflict.desc': 'Файл «{file}» содержит {total} сниппет(ов), из них повторяющихся команд: {conflicts}.',
|
||||
'snippets.import.conflict.hostBindingsNote': 'Привязки сниппетов к хостам не импортируются и не экспортируются.',
|
||||
'snippets.import.conflict.skip': 'Пропустить повторы',
|
||||
'snippets.import.conflict.overwrite': 'Перезаписать повторы',
|
||||
'snippets.packageDialog.title': 'Новый пакет',
|
||||
@@ -908,9 +856,6 @@ export const ruTerminalMessages: Messages = {
|
||||
'serial.field.customPort': 'Путь к пользовательскому порту',
|
||||
'serial.field.namedPipeHint': 'Консоль ВМ Windows: введите \\\\.\\pipe\\name. ВМ должна создать канал как сервер. Скорость и параметры кадра игнорируются.',
|
||||
'serial.field.customPortPlaceholder': 'например, /dev/ttys001 или COM1',
|
||||
'serial.type.hardware': 'Аппаратный',
|
||||
'serial.type.pseudo': 'Псевдотерминал',
|
||||
'serial.type.custom': 'Пользовательский',
|
||||
'serial.parity.none': 'Нет',
|
||||
'serial.parity.even': 'Чётная',
|
||||
'serial.parity.odd': 'Нечётная',
|
||||
@@ -931,7 +876,6 @@ export const ruTerminalMessages: Messages = {
|
||||
'serial.backspace.default': 'По умолчанию (DEL, 0x7F)',
|
||||
'serial.backspace.ctrlH': 'Ctrl+H (BS, 0x08)',
|
||||
'serial.field.charset': 'Кодировка',
|
||||
'serial.connectionError': 'Не удалось подключиться к последовательному порту',
|
||||
'serial.field.baudRatePlaceholder': 'Выберите или введите скорость...',
|
||||
'serial.field.baudRateEmpty': 'Введите пользовательскую скорость передачи',
|
||||
'serial.field.customBaudRate': 'Используется пользовательская скорость передачи',
|
||||
@@ -950,10 +894,7 @@ export const ruTerminalMessages: Messages = {
|
||||
'keyboard.interactive.title': 'Требуется аутентификация',
|
||||
'keyboard.interactive.desc': 'Сервер требует дополнительную аутентификацию.',
|
||||
'keyboard.interactive.descWithHost': 'Сервер {hostname} требует дополнительную аутентификацию.',
|
||||
'keyboard.interactive.response': 'Ответ',
|
||||
'keyboard.interactive.verificationCode': 'Код подтверждения',
|
||||
'keyboard.interactive.enterCode': 'Введите код подтверждения',
|
||||
'keyboard.interactive.enterResponse': 'Введите ответ',
|
||||
'keyboard.interactive.submit': 'Отправить',
|
||||
'keyboard.interactive.verifying': 'Проверка...',
|
||||
'keyboard.interactive.savePassword': 'Сохранить пароль',
|
||||
|
||||
@@ -19,14 +19,6 @@ export const ruVaultMessages: Messages = {
|
||||
'notes.export.toast.failed': 'Не удалось экспортировать заметки.',
|
||||
'notes.codeBlock.copied': 'Скопировано',
|
||||
'notes.codeBlock.copyFailed': 'Не удалось скопировать блок кода.',
|
||||
'notes.group.prompt': 'Путь папки',
|
||||
'notes.group.all': 'Блокнот',
|
||||
'notes.group.ungrouped': 'Без группы',
|
||||
'notes.section.notebooks': 'Блокнот',
|
||||
'notes.section.notes': 'Заметки',
|
||||
'notes.mode.edit': 'Правка',
|
||||
'notes.mode.split': 'Разделить',
|
||||
'notes.mode.preview': 'Просмотр',
|
||||
'notes.title.placeholder': 'Заголовок заметки',
|
||||
'notes.editor.placeholder': 'Пишите Markdown-заметки здесь...',
|
||||
'notes.editor.unrenderableMarkdown': 'Эта заметка содержит Markdown, который не может отобразить визуальный редактор (например, незакрытые теги вида <tag>). Показан исходный Markdown — содержимое не потеряно.',
|
||||
@@ -72,25 +64,18 @@ export const ruVaultMessages: Messages = {
|
||||
'notes.toolbar.divider': 'Разделитель',
|
||||
'notes.toolbar.link': 'Вставить ссылку',
|
||||
'notes.toolbar.image': 'Вставить изображение',
|
||||
'notes.action.pin': 'Закрепить заметку',
|
||||
'notes.action.unpin': 'Открепить заметку',
|
||||
'notes.tag.remove': 'Удалить тег',
|
||||
'notes.tag.placeholder': 'Имя тега...',
|
||||
'notes.tag.add': 'Добавить тег',
|
||||
'notes.outline.title': 'Оглавление',
|
||||
'notes.outline.titleWithCount': 'Оглавление ({count})',
|
||||
'notes.outline.empty': 'Нет заголовков',
|
||||
'notes.outline.emptyHint': 'Используйте # и ## в Markdown для создания заголовков',
|
||||
'notes.export.share': 'Экспорт и общий доступ',
|
||||
'notes.export.currentNote': 'Текущая заметка',
|
||||
'notes.export.exportMarkdown': 'Экспорт в Markdown (.md)',
|
||||
'notes.export.exportHtml': 'Экспорт в HTML (.html)',
|
||||
'notes.export.copyMarkdown': 'Копировать исходный Markdown',
|
||||
'notes.export.allNotes': 'Все заметки',
|
||||
'notes.export.exportAllZip': 'Экспортировать все в ZIP-архив',
|
||||
'notes.export.toast.markdownSuccess': 'Markdown-файл экспортирован',
|
||||
'notes.export.toast.htmlSuccess': 'HTML-файл экспортирован',
|
||||
'notes.export.toast.zipSuccess': 'Все заметки экспортированы в архив ZIP',
|
||||
|
||||
// Vault hosts header/actions
|
||||
'vault.hosts.search.placeholder': 'Найти хост или ssh user@hostname / ssh -p 2222 user@hostname...',
|
||||
@@ -305,7 +290,6 @@ export const ruVaultMessages: Messages = {
|
||||
'pf.tooltip.localDesc': 'Локальный проброс портов: доступ к удалённым сервисам через SSH-туннель',
|
||||
'pf.tooltip.remoteDesc': 'Удалённый проброс портов: публикация локальных сервисов на удалённом хосте',
|
||||
'pf.tooltip.dynamicDesc': 'Динамический SOCKS-прокси: маршрутизация трафика через SSH-туннель',
|
||||
'pf.deleteActive.title': 'Удалить активное правило проброса портов?',
|
||||
'pf.deleteActive.desc': 'Правило проброса портов "{label}" сейчас активно. При удалении туннель будет сначала остановлен.',
|
||||
'pf.deleteActive.confirm': 'Остановить и удалить',
|
||||
'pf.form.autoStart': 'Автозапуск',
|
||||
@@ -339,13 +323,9 @@ export const ruVaultMessages: Messages = {
|
||||
'sftp.columns.actions': 'Действия',
|
||||
'sftp.sort.directoriesFirst': 'Папки сверху',
|
||||
'sftp.emptyDirectory': 'Пустой каталог',
|
||||
'sftp.nav.up': 'Наверх',
|
||||
'sftp.nav.home': 'Перейти в домашний каталог',
|
||||
'sftp.nav.refresh': 'Обновить',
|
||||
'sftp.upload': 'Загрузить',
|
||||
'sftp.uploadFiles': 'Загрузить файлы',
|
||||
'sftp.uploadFolder': 'Загрузить папку',
|
||||
'sftp.dragDropToUpload': 'Перетащите сюда файлы для загрузки',
|
||||
'sftp.retry': 'Повторить',
|
||||
'sftp.context.open': 'Открыть',
|
||||
'sftp.context.navigateTo': 'Перейти к',
|
||||
@@ -360,6 +340,12 @@ export const ruVaultMessages: Messages = {
|
||||
'sftp.extract.extracting': 'Распаковка {fileName}...',
|
||||
'sftp.extract.success': 'Распакован {fileName}',
|
||||
'sftp.extract.error': 'Не удалось распаковать {fileName}: {error}',
|
||||
'sftp.packedDownload.receiving': 'Получение архива…',
|
||||
'sftp.packedDownload.extracting': 'Распаковка файлов…',
|
||||
'sftp.packedDownload.fallback': 'Упаковка недоступна. Файлы будут скачаны по отдельности.',
|
||||
'sftp.packedDownload.selection': 'Выбрано элементов: {count}',
|
||||
'sftp.packedDownload.conflict': 'Элемент с таким именем уже существует. Выбрать другую папку назначения?',
|
||||
|
||||
'sftp.archive.action': 'Сжать...',
|
||||
'sftp.archive.title': 'Сжать файлы',
|
||||
'sftp.archive.description': 'Создать архив на сервере из выбранных объектов: {count}.',
|
||||
@@ -384,28 +370,21 @@ export const ruVaultMessages: Messages = {
|
||||
'sftp.copyCurrentPath': 'Копировать текущий путь',
|
||||
'sftp.copyCurrentPath.success': 'Текущий путь скопирован',
|
||||
'sftp.copyCurrentPath.error': 'Не удалось скопировать текущий путь',
|
||||
'sftp.viewMode.label': 'Режим просмотра',
|
||||
'sftp.viewMode.list': 'Список',
|
||||
'sftp.viewMode.tree': 'Дерево',
|
||||
'sftp.viewMode.switchToList': 'Переключиться на список',
|
||||
'sftp.viewMode.switchToTree': 'Переключиться на дерево',
|
||||
'sftp.listDensity.compact': 'Компактный список',
|
||||
'sftp.listDensity.comfortable': 'Обычный список',
|
||||
'sftp.listDensity.switchToCompact': 'Переключиться на компактный список',
|
||||
'sftp.listDensity.switchToComfortable': 'Переключиться на обычный список',
|
||||
'sftp.tree.loadError': 'Не удалось загрузить каталог',
|
||||
'sftp.tree.loading': 'Загрузка...',
|
||||
'sftp.kind.folder': 'Папка',
|
||||
'sftp.context.rename': 'Переименовать',
|
||||
'sftp.context.permissions': 'Права доступа',
|
||||
'sftp.context.delete': 'Удалить',
|
||||
'sftp.context.refresh': 'Обновить',
|
||||
'sftp.context.uploadFiles': 'Загрузить файл(ы)...',
|
||||
'sftp.context.uploadFilesHere': 'Загрузить файлы сюда...',
|
||||
'sftp.context.uploadFolder': 'Загрузить папку...',
|
||||
'sftp.context.uploadFolderHere': 'Загрузить папку сюда...',
|
||||
'sftp.context.downloadSelected': 'Скачать выбранное ({count})',
|
||||
'sftp.context.deleteSelected': 'Удалить выбранное ({count})',
|
||||
'sftp.dropFilesHere': 'Перетащите сюда файлы',
|
||||
'sftp.itemsCount': '{count} записей',
|
||||
'sftp.selectedCount': '{count} выбрано',
|
||||
@@ -414,8 +393,6 @@ export const ruVaultMessages: Messages = {
|
||||
'sftp.task.waiting': 'Ожидание...',
|
||||
'sftp.transfer.preparing': 'подготовка...',
|
||||
'sftp.status.loading': 'Загрузка...',
|
||||
'sftp.status.uploading': 'Загрузка...',
|
||||
'sftp.status.ready': 'Готово',
|
||||
'sftp.transfers': 'Передачи',
|
||||
'sftp.transfers.active': '{count} активн(ый/ых)',
|
||||
'sftp.transfers.clearCompleted': 'Очистить завершённые',
|
||||
@@ -478,7 +455,6 @@ export const ruVaultMessages: Messages = {
|
||||
'sftp.transferCenter.applyAll': 'Применить ко всем',
|
||||
'sftp.transfers.resizeNameColumn': 'Изменить ширину столбца имени файла',
|
||||
'sftp.transfers.dragToResize': 'Перетащите для изменения размера',
|
||||
'sftp.goUp': 'Наверх',
|
||||
'sftp.goToTerminalCwd': 'Перейти в каталог терминала',
|
||||
'sftp.locatePathInTerminal': 'Открыть путь в терминале',
|
||||
'sftp.followTerminalCwd': 'Следовать за каталогом терминала',
|
||||
@@ -494,29 +470,22 @@ export const ruVaultMessages: Messages = {
|
||||
'sftp.folderName.placeholder': 'Введите имя папки',
|
||||
'sftp.fileName': 'Имя файла',
|
||||
'sftp.fileName.placeholder': 'Введите имя файла',
|
||||
'sftp.prompt.newFolderName': 'Имя новой папки?',
|
||||
'sftp.rename.title': 'Переименовать',
|
||||
'sftp.rename.newName': 'Новое имя',
|
||||
'sftp.rename.placeholder': 'Введите новое имя',
|
||||
'sftp.confirm.deleteOne': 'Удалить "{name}"?',
|
||||
'sftp.deleteConfirm.single': 'Удалить "{name}"?',
|
||||
'sftp.deleteConfirm.title': 'Удалить {count} элемент(ов)?',
|
||||
'sftp.deleteConfirm.desc': 'Это действие нельзя отменить. Будет удалено следующее:',
|
||||
'sftp.deleteConfirm.descSingle': 'Это действие нельзя отменить.',
|
||||
'sftp.deleteConfirm.host': 'Хост',
|
||||
'sftp.deleteConfirm.path': 'Путь',
|
||||
'sftp.error.loadFailed': 'Не удалось загрузить каталог',
|
||||
'sftp.error.downloadFailed': 'Ошибка скачивания',
|
||||
'sftp.error.uploadFailed': 'Ошибка загрузки',
|
||||
'sftp.error.deleteFailed': 'Ошибка удаления',
|
||||
'sftp.error.createFolderFailed': 'Не удалось создать папку',
|
||||
'sftp.error.createFileFailed': 'Не удалось создать файл',
|
||||
'sftp.error.invalidFileName': 'Имя файла содержит недопустимые символы: {chars}',
|
||||
'sftp.error.reservedName': 'Это имя файла зарезервировано системой',
|
||||
'sftp.overwrite.title': 'Файл уже существует',
|
||||
'sftp.overwrite.desc': 'Файл с именем "{name}" уже существует. Хотите заменить его?',
|
||||
'sftp.overwrite.confirm': 'Заменить',
|
||||
'sftp.error.renameFailed': 'Не удалось переименовать',
|
||||
'sftp.picker.title': 'Выберите хост',
|
||||
'sftp.picker.desc': 'Выберите хост для панели {side}',
|
||||
'sftp.picker.searchPlaceholder': 'Поиск хостов...',
|
||||
@@ -524,8 +493,6 @@ export const ruVaultMessages: Messages = {
|
||||
'sftp.picker.local.desc': 'Просмотр локальных файлов',
|
||||
'sftp.picker.local.badge': 'Локально',
|
||||
'sftp.picker.connected.section': 'Подключённые',
|
||||
'sftp.picker.connected.badge': 'Онлайн',
|
||||
'sftp.picker.connected.connecting': 'Подключение',
|
||||
'sftp.picker.noMatch': 'Подходящие хосты не найдены',
|
||||
'sftp.permissions.title': 'Изменить права доступа',
|
||||
'sftp.permissions.owner': 'Владелец',
|
||||
@@ -533,16 +500,12 @@ export const ruVaultMessages: Messages = {
|
||||
'sftp.permissions.others': 'Остальные',
|
||||
'sftp.permissions.octal': 'Восьмеричный',
|
||||
'sftp.permissions.symbolic': 'Символьный',
|
||||
'sftp.permissions.success': 'Права доступа успешно обновлены',
|
||||
'sftp.permissions.failed': 'Не удалось обновить права доступа',
|
||||
'sftp.pane.local': 'Локально',
|
||||
'sftp.pane.remote': 'Удалённо',
|
||||
'sftp.pane.selectHost': 'Выберите хост',
|
||||
'sftp.pane.selectHostToStart': 'Выберите хост для начала',
|
||||
'sftp.pane.chooseFilesystem': 'Выберите локальную или удалённую файловую систему для просмотра',
|
||||
'sftp.tabs.addTab': 'Добавить новую вкладку',
|
||||
'sftp.tabs.closeTab': 'Закрыть вкладку',
|
||||
'sftp.tabs.newTab': 'Новая вкладка',
|
||||
'sftp.tabs.copyDefaultPath': 'Копировать вкладку (путь по умолчанию)',
|
||||
'sftp.tabs.copyCurrentPath': 'Копировать и перейти к текущему пути',
|
||||
'sftp.conflict.title': 'Конфликт файлов',
|
||||
@@ -568,47 +531,24 @@ export const ruVaultMessages: Messages = {
|
||||
'sftp.conflict.action.replace': 'Заменить',
|
||||
|
||||
// SFTP Upload Phases
|
||||
'sftp.upload.phase.compressing': 'Сжатие',
|
||||
'sftp.upload.phase.uploading': 'Загрузка',
|
||||
'sftp.upload.phase.extracting': 'Распаковка',
|
||||
'sftp.upload.phase.compressed': 'Сжато',
|
||||
|
||||
// SFTP File Opener
|
||||
'sftp.context.copyPath': 'Копировать путь к файлу',
|
||||
'sftp.context.openWithDefault': 'Открыть в системном приложении',
|
||||
'sftp.context.openWith': 'Открыть с помощью...',
|
||||
'sftp.context.edit': 'Редактировать',
|
||||
'sftp.context.preview': 'Предпросмотр',
|
||||
'sftp.opener.title': 'Открыть с помощью',
|
||||
'sftp.opener.desc': 'Выберите приложение для открытия этого файла',
|
||||
'sftp.opener.builtInEditor': 'Встроенный редактор',
|
||||
'sftp.opener.editDescription': 'Редактировать текстовые файлы',
|
||||
'sftp.opener.builtInImageViewer': 'Встроенный просмотрщик изображений',
|
||||
'sftp.opener.previewDescription': 'Просмотр изображений',
|
||||
'sftp.opener.systemApp': 'Выбрать приложение...',
|
||||
'sftp.opener.systemAppDescription': 'Выберите приложение на вашем компьютере',
|
||||
'sftp.opener.onlySystemApp': 'Этот файл можно открыть только во внешнем приложении',
|
||||
'sftp.opener.noAppsAvailable': 'Нет доступных приложений',
|
||||
'sftp.opener.noExtension': 'файлы без расширения',
|
||||
'sftp.opener.setDefault': 'Всегда использовать это для файлов {ext}',
|
||||
'sftp.opener.confirmTitle': 'Установить по умолчанию?',
|
||||
'sftp.opener.confirmDescription': 'Хотите всегда использовать {app} для файлов {ext}?',
|
||||
'sftp.opener.yesRemember': 'Да, запомнить выбор',
|
||||
'sftp.opener.justOnce': 'Только один раз',
|
||||
'sftp.opener.confirm.title': 'Установить приложение по умолчанию',
|
||||
'sftp.opener.confirm.desc': 'Хотите всегда открывать файлы .{ext} этим приложением?',
|
||||
'sftp.editor.title': 'Текстовый редактор',
|
||||
'sftp.editor.save': 'Сохранить на удалённый сервер',
|
||||
'sftp.editor.saving': 'Сохранение...',
|
||||
'sftp.editor.saved': 'Успешно сохранено',
|
||||
'sftp.editor.saveFailed': 'Не удалось сохранить файл',
|
||||
'sftp.editor.unsavedChanges': 'У вас есть несохранённые изменения. Всё равно закрыть?',
|
||||
'sftp.editor.syntaxHighlight': 'Подсветка синтаксиса',
|
||||
'sftp.preview.title': 'Просмотр изображения',
|
||||
'sftp.preview.zoomIn': 'Увеличить',
|
||||
'sftp.preview.zoomOut': 'Уменьшить',
|
||||
'sftp.preview.resetZoom': 'Сбросить масштаб',
|
||||
'sftp.preview.fitToWindow': 'Подогнать по окну',
|
||||
|
||||
// Settings > SFTP File Associations
|
||||
'settings.tab.sftpFileAssociations': 'SFTP',
|
||||
@@ -687,28 +627,16 @@ export const ruVaultMessages: Messages = {
|
||||
'sftp.autoSync.error': 'Не удалось синхронизировать файл: {error}',
|
||||
|
||||
// SFTP Folder Upload Progress
|
||||
'sftp.upload.progress': 'Загрузка файлов {current} из {total}...',
|
||||
'sftp.upload.uploading': 'Загрузка...',
|
||||
'sftp.upload.compressing': 'Сжатие...',
|
||||
'sftp.upload.extracting': 'Распаковка...',
|
||||
'sftp.upload.scanning': 'Сканирование файлов...',
|
||||
'sftp.upload.completed': 'Завершено',
|
||||
'sftp.upload.compressed': 'Сжатая передача',
|
||||
'sftp.upload.currentFile': 'Текущий: {fileName}',
|
||||
'sftp.upload.cancelled': 'Загрузка отменена',
|
||||
'sftp.upload.noFiles': 'Нет файлов для загрузки',
|
||||
'sftp.upload.partialSuccess': 'Загружено: {success}; ошибок: {failed}',
|
||||
'sftp.upload.cancel': 'Отмена',
|
||||
'sftp.upload.completedToPath': 'Загружено в {path}',
|
||||
|
||||
// SFTP Download
|
||||
'sftp.download.completed': 'Скачано',
|
||||
'sftp.download.cancelled': 'Скачивание отменено',
|
||||
|
||||
// SFTP Reconnecting
|
||||
'sftp.reconnecting.title': 'Переподключение...',
|
||||
'sftp.reconnecting.desc': 'Соединение потеряно, выполняется попытка переподключения',
|
||||
'sftp.reconnected': 'Соединение восстановлено',
|
||||
'sftp.error.reconnectFailed': 'Не удалось переподключиться. Попробуйте ещё раз.',
|
||||
'sftp.error.connectionLostManual': 'Соединение потеряно. Пожалуйста, переподключитесь вручную.',
|
||||
'sftp.error.connectionLostReconnecting': 'Соединение потеряно. Переподключение...',
|
||||
@@ -726,6 +654,10 @@ export const ruVaultMessages: Messages = {
|
||||
'settings.sftp.compressedUpload.enable': 'Включить сжатие папок',
|
||||
'settings.sftp.compressedUpload.enableDesc': 'Автоматически сжимать папки с помощью tar перед передачей. Требует поддержки tar на сервере. Если она недоступна, будет использована обычная передача.',
|
||||
|
||||
'settings.sftp.packedDownload': 'Скачивание архивом',
|
||||
'settings.sftp.packedDownload.enable': 'Упаковывать папки и выбранные вместе файлы перед скачиванием',
|
||||
'settings.sftp.packedDownload.enableDesc': 'Выбранные файлы передаются одним потоком и распаковываются с сохранением структуры папок. Если сервер не поддерживает упаковку, файлы скачиваются по отдельности.',
|
||||
|
||||
'settings.sftp.skipUnchanged.enable': 'Пропускать неизменённые файлы',
|
||||
'settings.sftp.skipUnchanged.enableDesc': 'Пропускать файлы, у которых размер и время изменения уже совпадают с назначением (в стиле rsync). Отключается при замене папки во временный путь.',
|
||||
|
||||
@@ -783,12 +715,6 @@ export const ruVaultMessages: Messages = {
|
||||
'vault.panel.resizeWidth': 'Изменить ширину панели',
|
||||
'hostDetails.saveAria': 'Сохранить',
|
||||
'hostConnectionTest.title': 'Проверка подключения',
|
||||
'hostConnectionTest.test': 'Проверить',
|
||||
'hostConnectionTest.chainOf': 'Цепочка {current} из {total}',
|
||||
'hostConnectionTest.success': 'Подключение успешно',
|
||||
'hostConnectionTest.successHint': 'Хост принял ваши учётные данные. Можно закрыть окно.',
|
||||
'hostConnectionTest.connecting': 'Подключение… таймаут через {seconds} с',
|
||||
'hostConnectionTest.failed': 'Не удалось подключиться.',
|
||||
'hostConnectionTest.retry': 'Повторить',
|
||||
'hostConnectionTest.credentialsUnavailable': 'Сохранённые учётные данные не удаётся расшифровать на этом устройстве. Введите их заново ниже.',
|
||||
'hostDetails.section.address': 'Адрес',
|
||||
@@ -825,11 +751,8 @@ export const ruVaultMessages: Messages = {
|
||||
'hostDetails.notes.toggle.show': 'Показать редактор заметок',
|
||||
'hostDetails.notes.toggle.hide': 'Скрыть редактор заметок',
|
||||
'hostDetails.group.placeholder': 'Родительская группа',
|
||||
'hostDetails.section.credentials': 'Учётные данные',
|
||||
'hostDetails.section.portCredentials': 'Порт и учётные данные',
|
||||
'hostDetails.section.appearance': 'Внешний вид',
|
||||
'hostDetails.distro.title': 'Дистрибутив Linux',
|
||||
'hostDetails.distro.desc': 'Автоопределение при подключении или ручная замена значка дистрибутива.',
|
||||
'hostDetails.icon.title': 'Значок хоста',
|
||||
'hostDetails.icon.sectionTitle': 'Цвет и значок',
|
||||
'hostDetails.icon.desc': 'Выберите источник значка и цвет для этого хоста.',
|
||||
@@ -841,7 +764,6 @@ export const ruVaultMessages: Messages = {
|
||||
'hostDetails.icon.mode.custom': 'Свой',
|
||||
'hostDetails.icon.reset': 'Сбросить значок',
|
||||
'hostDetails.icon.colorLabel': 'Цвет значка',
|
||||
'hostDetails.icon.colorDefault': 'По умолчанию',
|
||||
'hostDetails.icon.colorAuto': 'Авто',
|
||||
'hostDetails.icon.colorManual': 'Вручную',
|
||||
'hostDetails.icon.colorChoice': 'Цвет',
|
||||
@@ -892,7 +814,6 @@ export const ruVaultMessages: Messages = {
|
||||
'hostDetails.distro.mode.auto': 'Автоопределение',
|
||||
'hostDetails.distro.mode.manual': 'Ручное переопределение',
|
||||
'hostDetails.distro.detectedLabel': 'Текущий',
|
||||
'hostDetails.distro.manualLabel': 'Переопределить',
|
||||
'hostDetails.distro.pending': 'Определится после первого подключения',
|
||||
'hostDetails.distro.unknown': 'Неизвестно',
|
||||
'hostDetails.distro.option.linux': 'Обычный Linux',
|
||||
@@ -940,7 +861,6 @@ export const ruVaultMessages: Messages = {
|
||||
'hostDetails.auth.mfaFirst': 'Сначала интерактивная аутентификация',
|
||||
'hostDetails.auth.mfaFirst.desc': 'Для серверов, которым нужны пароль и MFA через keyboard-interactive.',
|
||||
'hostDetails.totp.title': 'Аутентификатор (TOTP)',
|
||||
'hostDetails.totp.enable': 'Сохранить секрет TOTP для этого хоста',
|
||||
'hostDetails.totp.setup': 'Настроить…',
|
||||
'hostDetails.totp.edit': 'Изменить',
|
||||
'hostDetails.totp.modalTitle': 'Настройка аутентификатора',
|
||||
@@ -1043,10 +963,8 @@ export const ruVaultMessages: Messages = {
|
||||
'hostDetails.jumpHosts.direct': 'Напрямую',
|
||||
'hostDetails.jumpHosts.configure': 'Настроить прокси-хосты',
|
||||
'hostDetails.proxy': 'Прокси через HTTP/SOCKS5/Command',
|
||||
'hostDetails.proxy.none': 'Нет',
|
||||
'hostDetails.proxy.direct': 'Напрямую (без прокси)',
|
||||
'hostDetails.proxy.directHint': 'Не использует прокси группы или глобальный прокси по умолчанию',
|
||||
'hostDetails.proxy.edit': 'Редактировать прокси',
|
||||
'hostDetails.proxy.configure': 'Настроить прокси',
|
||||
'hostDetails.proxyPanel.title': 'Прокси через HTTP/SOCKS5/Command',
|
||||
'hostDetails.proxyPanel.hostPlaceholder': 'Прокси-хост',
|
||||
@@ -1056,7 +974,6 @@ export const ruVaultMessages: Messages = {
|
||||
'hostDetails.proxyPanel.credentials': 'Учётные данные',
|
||||
'hostDetails.proxyPanel.usernamePlaceholder': 'Имя пользователя',
|
||||
'hostDetails.proxyPanel.passwordPlaceholder': 'Пароль',
|
||||
'hostDetails.proxyPanel.identities': 'Идентификаторы',
|
||||
'hostDetails.proxyPanel.keychainIdentity': 'Идентификатор из связки ключей',
|
||||
'hostDetails.proxyPanel.manualCredentials': 'Ввести вручную',
|
||||
'hostDetails.proxyPanel.remove': 'Удалить прокси',
|
||||
@@ -1079,8 +996,6 @@ export const ruVaultMessages: Messages = {
|
||||
'hostDetails.envVars.newVariable': 'Новая переменная',
|
||||
'hostDetails.envVars.variableName': 'Имя переменной',
|
||||
'hostDetails.chain.title': 'Редактировать цепочку',
|
||||
'hostDetails.chain.desc': 'Добавление ещё одного хоста создаст подключение к {host}.',
|
||||
'hostDetails.chain.addHost': 'Добавить хост',
|
||||
'hostDetails.chain.target': 'Цель',
|
||||
'hostDetails.chain.availableHosts': 'Доступные хосты',
|
||||
'hostDetails.chain.clear': 'Очистить',
|
||||
@@ -1146,28 +1061,14 @@ export const ruVaultMessages: Messages = {
|
||||
'hostDetails.plugin.useSsh': 'Использовать SSH',
|
||||
|
||||
// Host form (legacy modal)
|
||||
'hostForm.title.edit': 'Редактировать хост',
|
||||
'hostForm.title.new': 'Новый хост',
|
||||
'hostForm.desc.edit': 'Обновите параметры подключения для этого хоста',
|
||||
'hostForm.desc.new': 'Создайте новую запись SSH-хоста',
|
||||
'hostForm.field.label': 'Метка',
|
||||
'hostForm.placeholder.label': 'Мой production-сервер',
|
||||
'hostForm.field.hostname': 'Имя хоста / IP',
|
||||
'hostForm.placeholder.hostname': '192.168.1.1',
|
||||
'hostForm.field.port': 'Порт',
|
||||
'hostForm.field.username': 'Имя пользователя',
|
||||
'hostForm.field.osType': 'Тип ОС',
|
||||
'hostForm.placeholder.selectOs': 'Выберите ОС',
|
||||
'hostForm.field.group': 'Группа',
|
||||
'hostForm.placeholder.group': 'например, AWS, DigitalOcean',
|
||||
'hostForm.field.tags': 'Теги',
|
||||
'hostForm.placeholder.addTag': 'Добавить тег...',
|
||||
'hostForm.auth.method': 'Метод аутентификации',
|
||||
'hostForm.auth.password': 'Пароль',
|
||||
'hostForm.auth.sshKey': 'SSH-ключ',
|
||||
'hostForm.auth.selectKey': 'Выберите SSH-ключ',
|
||||
'hostForm.auth.noKeys': 'Нет доступных ключей',
|
||||
'hostForm.auth.noKeysHint': 'В связке ключей не найдено SSH-ключей. Сначала создайте один.',
|
||||
'hostForm.saveHost': 'Сохранить хост',
|
||||
'vault.import.plugins.title': 'Импортёры плагинов',
|
||||
'vault.import.plugins.loading': 'Создание безопасного предварительного просмотра…',
|
||||
|
||||
@@ -1,23 +0,0 @@
|
||||
import test from "node:test";
|
||||
import assert from "node:assert/strict";
|
||||
|
||||
import { enTerminalMessages } from "./en/terminal";
|
||||
import { esTerminalMessages } from "./es/terminal";
|
||||
import { ruTerminalMessages } from "./ru/terminal";
|
||||
import { zhCNVaultMessages } from "./zh-CN/vault";
|
||||
import { zhTWVaultMessages } from "./zh-TW/vault";
|
||||
|
||||
test("per-GPU stats strings exist in every locale", () => {
|
||||
const labels = [
|
||||
[enTerminalMessages, "GPU Device Usage", "GPU {{index}}"],
|
||||
[esTerminalMessages, "Uso de cada GPU", "GPU {{index}}"],
|
||||
[ruTerminalMessages, "Использование видеокарт", "GPU {{index}}"],
|
||||
[zhCNVaultMessages, "GPU 设备使用率", "GPU {{index}}"],
|
||||
[zhTWVaultMessages, "GPU 裝置使用率", "GPU {{index}}"],
|
||||
] as const;
|
||||
|
||||
for (const [messages, devices, indexLabel] of labels) {
|
||||
assert.equal(messages["terminal.serverStats.gpuDevices"], devices);
|
||||
assert.equal(messages["terminal.serverStats.gpuIndex"], indexLabel);
|
||||
}
|
||||
});
|
||||
@@ -1,28 +0,0 @@
|
||||
import test from "node:test";
|
||||
import assert from "node:assert/strict";
|
||||
|
||||
import { enSystemManagerMessages } from "./en/systemManager";
|
||||
import { enTerminalMessages } from "./en/terminal";
|
||||
import { ruSystemManagerMessages } from "./ru/systemManager";
|
||||
import { ruTerminalMessages } from "./ru/terminal";
|
||||
import { esSystemManagerMessages } from "./es/systemManager";
|
||||
import { esTerminalMessages } from "./es/terminal";
|
||||
import { zhCnSystemManagerMessages } from "./zh-CN/systemManager";
|
||||
import { zhCNVaultMessages } from "./zh-CN/vault";
|
||||
import { zhTwSystemManagerMessages } from "./zh-TW/systemManager";
|
||||
import { zhTWVaultMessages } from "./zh-TW/vault";
|
||||
|
||||
test("SSH network latency is explicit in every locale and UI surface", () => {
|
||||
const labels = [
|
||||
[enTerminalMessages, enSystemManagerMessages, "SSH network latency"],
|
||||
[ruTerminalMessages, ruSystemManagerMessages, "Сетевая задержка SSH"],
|
||||
[esTerminalMessages, esSystemManagerMessages, "Latencia de red SSH"],
|
||||
[zhCNVaultMessages, zhCnSystemManagerMessages, "SSH 网络延迟"],
|
||||
[zhTWVaultMessages, zhTwSystemManagerMessages, "SSH 網路延遲"],
|
||||
] as const;
|
||||
|
||||
for (const [terminalMessages, systemManagerMessages, expected] of labels) {
|
||||
assert.equal(terminalMessages["terminal.serverStats.latency"], expected);
|
||||
assert.equal(systemManagerMessages["systemManager.overview.latency"], expected);
|
||||
}
|
||||
});
|
||||
@@ -1,13 +0,0 @@
|
||||
import assert from "node:assert/strict";
|
||||
import test from "node:test";
|
||||
import en from "./en";
|
||||
import es from "./es";
|
||||
import ru from "./ru";
|
||||
import zhCN from "./zh-CN";
|
||||
import zhTW from "./zh-TW";
|
||||
|
||||
test("folder cleanup-warning counts are localized in every supported locale", () => {
|
||||
for (const [locale, messages] of Object.entries({ en, es, ru, zhCN, zhTW })) {
|
||||
assert.match(messages["sftp.transfers.cleanupWarnings"] ?? "", /\{count\}/, locale);
|
||||
}
|
||||
});
|
||||
@@ -1,35 +0,0 @@
|
||||
import test from 'node:test';
|
||||
import assert from 'node:assert/strict';
|
||||
|
||||
import { enVaultMessages } from './en/vault.ts';
|
||||
import { esVaultMessages } from './es/vault.ts';
|
||||
import { ruVaultMessages } from './ru/vault.ts';
|
||||
import { zhCNVaultMessages } from './zh-CN/vault.ts';
|
||||
import { zhTWVaultMessages } from './zh-TW/vault.ts';
|
||||
|
||||
const FOLDER_CONFLICT_KEYS = [
|
||||
'sftp.conflict.folderTitle',
|
||||
'sftp.conflict.folderDesc',
|
||||
'sftp.conflict.folderFileDesc',
|
||||
'sftp.conflict.folderSymlinkDesc',
|
||||
'sftp.conflict.folderUnknownDesc',
|
||||
'sftp.conflict.folderMergeHint',
|
||||
'sftp.conflict.folderReplaceWarning',
|
||||
] as const;
|
||||
|
||||
test('folder conflict safety copy exists in every supported locale', () => {
|
||||
const locales = {
|
||||
en: enVaultMessages,
|
||||
es: esVaultMessages,
|
||||
ru: ruVaultMessages,
|
||||
'zh-CN': zhCNVaultMessages,
|
||||
'zh-TW': zhTWVaultMessages,
|
||||
};
|
||||
|
||||
for (const [locale, messages] of Object.entries(locales)) {
|
||||
for (const key of FOLDER_CONFLICT_KEYS) {
|
||||
assert.equal(typeof messages[key], 'string', `${locale} is missing ${key}`);
|
||||
assert.notEqual(messages[key]?.trim(), '', `${locale} has an empty ${key}`);
|
||||
}
|
||||
}
|
||||
});
|
||||
@@ -1,44 +0,0 @@
|
||||
import assert from 'node:assert/strict';
|
||||
import test from 'node:test';
|
||||
|
||||
import en from './en.ts';
|
||||
import ru from './ru.ts';
|
||||
import es from './es.ts';
|
||||
import zhCN from './zh-CN.ts';
|
||||
import zhTW from './zh-TW.ts';
|
||||
|
||||
const KEYS = [
|
||||
'snippets.selection.deleteSelected',
|
||||
'snippets.selection.deleteConfirmTitle',
|
||||
'snippets.selection.deleteConfirmDesc',
|
||||
'snippets.selection.deleteSuccess',
|
||||
] as const;
|
||||
|
||||
test('snippet bulk-delete copy exists in every locale', () => {
|
||||
for (const [locale, messages] of Object.entries({ en, ru, es, zhCN, zhTW })) {
|
||||
const missing = KEYS.filter((key) => !messages[key]);
|
||||
assert.deepEqual(missing, [], `${locale} is missing snippet bulk-delete copy`);
|
||||
}
|
||||
});
|
||||
|
||||
test('snippet shortkey system-conflict copy names the conflicting action', () => {
|
||||
for (const [locale, messages] of Object.entries({ en, ru, es, zhCN, zhTW })) {
|
||||
const text = messages['snippets.shortkey.error.systemConflict'];
|
||||
assert.match(
|
||||
text ?? '',
|
||||
/\{name\}/,
|
||||
`${locale} system-conflict copy should include {name}`,
|
||||
);
|
||||
}
|
||||
});
|
||||
|
||||
test('English bulk-delete copy is entity-neutral and grammatical for one item', () => {
|
||||
assert.equal(
|
||||
en['snippets.selection.deleteConfirmTitle'].replace('{count}', '1'),
|
||||
'Delete selected items (1)?',
|
||||
);
|
||||
assert.equal(
|
||||
en['snippets.selection.deleteSuccess'].replace('{count}', '1'),
|
||||
'Deleted selected items: 1.',
|
||||
);
|
||||
});
|
||||
@@ -1,24 +0,0 @@
|
||||
import assert from 'node:assert/strict';
|
||||
import test from 'node:test';
|
||||
|
||||
import en from './en';
|
||||
import ru from './ru';
|
||||
import es from './es';
|
||||
import zhCN from './zh-CN';
|
||||
import zhTW from './zh-TW';
|
||||
|
||||
const keys = [
|
||||
'terminal.layer.hostTree.newHost',
|
||||
'terminal.layer.hostTree.newHostInGroup',
|
||||
'terminal.layer.hostTree.editHost',
|
||||
'terminal.layer.hostTree.hostSavedNextConnection',
|
||||
] as const;
|
||||
|
||||
test('terminal host management strings exist in every shipped locale', () => {
|
||||
for (const [locale, messages] of Object.entries({ en, es, 'zh-CN': zhCN, 'zh-TW': zhTW, ru })) {
|
||||
for (const key of keys) {
|
||||
assert.equal(typeof messages[key], 'string', `${locale} is missing ${key}`);
|
||||
assert.notEqual(messages[key], '', `${locale} has an empty ${key}`);
|
||||
}
|
||||
}
|
||||
});
|
||||
@@ -1,57 +0,0 @@
|
||||
import assert from "node:assert/strict";
|
||||
import test from "node:test";
|
||||
|
||||
import en from "./en.ts";
|
||||
import ru from "./ru.ts";
|
||||
import es from "./es.ts";
|
||||
import zhCN from "./zh-CN.ts";
|
||||
import zhTW from "./zh-TW.ts";
|
||||
|
||||
const INLINE_IMAGE_KEYS = [
|
||||
"settings.terminal.section.inlineImages",
|
||||
"settings.terminal.inlineImages.enabled",
|
||||
"settings.terminal.inlineImages.enabled.desc",
|
||||
"settings.terminal.inlineImages.kitty",
|
||||
"settings.terminal.inlineImages.kitty.desc",
|
||||
"settings.terminal.inlineImages.sixel",
|
||||
"settings.terminal.inlineImages.sixel.desc",
|
||||
"settings.terminal.inlineImages.iip",
|
||||
"settings.terminal.inlineImages.iip.desc",
|
||||
"settings.terminal.inlineImages.storageLimit",
|
||||
"settings.terminal.inlineImages.storageLimit.desc",
|
||||
"settings.terminal.inlineImages.maxMegapixels",
|
||||
"settings.terminal.inlineImages.maxMegapixels.desc",
|
||||
"settings.terminal.inlineImages.sequenceLimit",
|
||||
"settings.terminal.inlineImages.sequenceLimit.desc",
|
||||
"settings.terminal.inlineImages.unit.mb",
|
||||
"settings.terminal.inlineImages.unit.megapixels",
|
||||
"settings.terminal.inlineImages.hibernateNote",
|
||||
];
|
||||
|
||||
const LOCALES = [
|
||||
{ name: "en", messages: en },
|
||||
{ name: "es", messages: es },
|
||||
{ name: "zh-CN", messages: zhCN },
|
||||
{ name: "zh-TW", messages: zhTW },
|
||||
{ name: "ru", messages: ru },
|
||||
];
|
||||
|
||||
test("every locale ships the inline image settings strings", () => {
|
||||
for (const locale of LOCALES) {
|
||||
const missing = INLINE_IMAGE_KEYS.filter((key) => !locale.messages[key]);
|
||||
assert.deepEqual(missing, [], `${locale.name} is missing inline image settings labels`);
|
||||
}
|
||||
});
|
||||
|
||||
test("inline image strings are actually translated, not copied from English", () => {
|
||||
const translatedKeys = INLINE_IMAGE_KEYS.filter(
|
||||
(key) => !key.startsWith("settings.terminal.inlineImages.unit.")
|
||||
&& key !== "settings.terminal.inlineImages.sixel",
|
||||
);
|
||||
|
||||
for (const locale of LOCALES) {
|
||||
if (locale.name === "en") continue;
|
||||
const untranslated = translatedKeys.filter((key) => locale.messages[key] === en[key]);
|
||||
assert.deepEqual(untranslated, [], `${locale.name} still uses the English string`);
|
||||
}
|
||||
});
|
||||
@@ -1,29 +0,0 @@
|
||||
import test from "node:test";
|
||||
import assert from "node:assert/strict";
|
||||
|
||||
import en from "./en.ts";
|
||||
import ru from "./ru.ts";
|
||||
import es from "./es.ts";
|
||||
import zhCN from "./zh-CN.ts";
|
||||
|
||||
const osc7Keys = [
|
||||
"terminal.toolbar.configureOsc7",
|
||||
"terminal.osc7Setup.title",
|
||||
"terminal.osc7Setup.desc",
|
||||
"terminal.osc7Setup.targets",
|
||||
"terminal.osc7Setup.command",
|
||||
"terminal.osc7Setup.run",
|
||||
"terminal.osc7Setup.running",
|
||||
"terminal.osc7Setup.configured",
|
||||
"terminal.osc7Setup.failed",
|
||||
"terminal.osc7Setup.sent",
|
||||
] as const;
|
||||
|
||||
test("OSC 7 setup copy exists in every bundled locale", () => {
|
||||
for (const [locale, messages] of Object.entries({ en, ru, es, zhCN })) {
|
||||
for (const key of osc7Keys) {
|
||||
assert.equal(typeof messages[key], "string", `${locale} is missing ${key}`);
|
||||
assert.notEqual(messages[key], "", `${locale} has empty ${key}`);
|
||||
}
|
||||
}
|
||||
});
|
||||
@@ -1,31 +0,0 @@
|
||||
import test from "node:test";
|
||||
import assert from "node:assert/strict";
|
||||
|
||||
import { enTerminalMessages } from "./en/terminal";
|
||||
import { esTerminalMessages } from "./es/terminal";
|
||||
import { ruTerminalMessages } from "./ru/terminal";
|
||||
import { zhCNTerminalMessages } from "./zh-CN/terminal";
|
||||
import { zhTWTerminalMessages } from "./zh-TW/terminal";
|
||||
|
||||
test("terminal reconnect notices are localized in every bundled language", () => {
|
||||
const messages = [
|
||||
enTerminalMessages,
|
||||
esTerminalMessages,
|
||||
ruTerminalMessages,
|
||||
zhCNTerminalMessages,
|
||||
zhTWTerminalMessages,
|
||||
];
|
||||
const keys = [
|
||||
"terminal.progress.enterReconnectHint",
|
||||
"terminal.progress.reconnecting",
|
||||
"terminal.progress.autoReconnectScheduled",
|
||||
"terminal.progress.autoReconnectAttempt",
|
||||
];
|
||||
|
||||
for (const locale of messages) {
|
||||
for (const key of keys) {
|
||||
assert.equal(typeof locale[key], "string", `missing ${key}`);
|
||||
assert.notEqual(locale[key]?.trim(), "", `empty ${key}`);
|
||||
}
|
||||
}
|
||||
});
|
||||
@@ -1,32 +0,0 @@
|
||||
import assert from 'node:assert/strict';
|
||||
import test from 'node:test';
|
||||
import en from './en';
|
||||
import es from './es';
|
||||
import ru from './ru';
|
||||
import zhCN from './zh-CN';
|
||||
import zhTW from './zh-TW';
|
||||
|
||||
const keys = [
|
||||
'terminal.toolbar.openSessionLog',
|
||||
'terminal.toolbar.sessionLogActions',
|
||||
'terminal.toolbar.sessionLog.menu',
|
||||
'terminal.toolbar.sessionLog.open',
|
||||
'terminal.toolbar.sessionLog.reveal',
|
||||
'terminal.toolbar.sessionLog.chooseApplication',
|
||||
'terminal.toolbar.sessionLog.systemDefault',
|
||||
'terminal.toolbar.openSessionLogFailed',
|
||||
] as const;
|
||||
|
||||
test('saved session log actions are translated in every shipped locale', () => {
|
||||
for (const [locale, messages] of Object.entries({ en, es, ru, 'zh-CN': zhCN, 'zh-TW': zhTW })) {
|
||||
for (const key of keys) assert.ok(messages[key], `${locale} is missing ${key}`);
|
||||
assert.equal(messages['terminal.toolbar.sessionLog.rememberApplication'], undefined);
|
||||
}
|
||||
assert.equal(en['terminal.toolbar.sessionLog.menu'], 'Session log');
|
||||
assert.equal(en['terminal.toolbar.sessionLog.open'], 'Open');
|
||||
assert.equal(en['terminal.toolbar.sessionLog.reveal'], 'Show in folder');
|
||||
assert.equal(en['terminal.toolbar.sessionLog.chooseApplication'], 'Open with…');
|
||||
assert.equal(en['terminal.toolbar.sessionLog.systemDefault'], 'Open with system default');
|
||||
assert.equal(zhCN['terminal.toolbar.sessionLog.menu'], '会话日志');
|
||||
assert.equal(zhTW['terminal.toolbar.sessionLog.menu'], '工作階段日誌');
|
||||
});
|
||||
@@ -1,20 +0,0 @@
|
||||
import assert from 'node:assert/strict';
|
||||
import test from 'node:test';
|
||||
|
||||
import en from './en.ts';
|
||||
import ru from './ru.ts';
|
||||
import es from './es.ts';
|
||||
import zhCN from './zh-CN.ts';
|
||||
import zhTW from './zh-TW.ts';
|
||||
|
||||
const UNDO_KEYS = [
|
||||
'ai.chat.undoLastTurn',
|
||||
'ai.chat.undoLastTurnNotice',
|
||||
] as const;
|
||||
|
||||
test('Undo-last-turn UI is localized in every supported locale', () => {
|
||||
for (const [name, messages] of Object.entries({ en, es, 'zh-CN': zhCN, 'zh-TW': zhTW, ru })) {
|
||||
const missing = UNDO_KEYS.filter(key => !messages[key]);
|
||||
assert.deepEqual(missing, [], `${name} is missing undo-last-turn labels`);
|
||||
}
|
||||
});
|
||||
@@ -1,37 +0,0 @@
|
||||
import assert from "node:assert/strict";
|
||||
import test from "node:test";
|
||||
|
||||
import en from "./en.ts";
|
||||
import ru from "./ru.ts";
|
||||
import es from "./es.ts";
|
||||
import zhCN from "./zh-CN.ts";
|
||||
import zhTW from "./zh-TW.ts";
|
||||
|
||||
const KEYS = [
|
||||
"vault.hosts.selectedSummary",
|
||||
"vault.groups.selectedCount",
|
||||
"vault.groups.deleteMultiple.success",
|
||||
"vault.groups.deleteDialog.bulkTitle",
|
||||
"vault.groups.deleteDialog.bulkDesc",
|
||||
"vault.groups.deleteDialog.bulkDeleteHosts",
|
||||
"vault.import.destination.title",
|
||||
"vault.import.destination.settings",
|
||||
"vault.import.destination.done",
|
||||
"vault.import.securecrt.folder",
|
||||
"vault.import.securecrt.promptTitle",
|
||||
"vault.import.securecrt.promptDesc",
|
||||
"vault.import.progress.fileCount",
|
||||
"vault.import.progress.persistFailed",
|
||||
"vault.import.progress.rollbackFailed",
|
||||
"vault.import.sshConfig.managedDestinationHint",
|
||||
"vault.import.mobaxterm.masterPassword",
|
||||
"vault.import.mobaxterm.masterPasswordPlaceholder",
|
||||
"vault.import.mobaxterm.masterPasswordHint",
|
||||
] as const;
|
||||
|
||||
test("bulk vault import and group-selection copy exists in every locale", () => {
|
||||
for (const [locale, messages] of Object.entries({ en, ru, es, zhCN, zhTW })) {
|
||||
const missing = KEYS.filter((key) => !messages[key]);
|
||||
assert.deepEqual(missing, [], `${locale} is missing bulk vault labels`);
|
||||
}
|
||||
});
|
||||
@@ -1,48 +0,0 @@
|
||||
import assert from 'node:assert/strict';
|
||||
import test from 'node:test';
|
||||
|
||||
import en from './en.ts';
|
||||
import ru from './ru.ts';
|
||||
import es from './es.ts';
|
||||
import zhCN from './zh-CN.ts';
|
||||
import zhTW from './zh-TW.ts';
|
||||
|
||||
const KEYS = [
|
||||
'vault.groups.deleteDialog.managedDesc',
|
||||
'vault.groups.deleteDialog.mixedDesc',
|
||||
'vault.groups.deleteDialog.managedWarning',
|
||||
'vault.groups.deleteDialog.managedFile',
|
||||
] as const;
|
||||
|
||||
test('managed group delete warning copy exists in every locale', () => {
|
||||
for (const [locale, messages] of Object.entries({ en, ru, es, zhCN, zhTW })) {
|
||||
const missing = KEYS.filter((key) => !messages[key]);
|
||||
assert.deepEqual(missing, [], `${locale} is missing managed group delete copy`);
|
||||
}
|
||||
});
|
||||
|
||||
test('managed group delete warning mentions data loss in every locale', () => {
|
||||
const MARKERS = ['备份', '備份', 'copia de seguridad', 'резервную копию', 'Back up'];
|
||||
for (const [locale, messages] of Object.entries({ en, ru, es, zhCN, zhTW })) {
|
||||
const text = messages['vault.groups.deleteDialog.managedWarning'];
|
||||
assert.match(
|
||||
text ?? '',
|
||||
/SSH/,
|
||||
`${locale} warning should reference the SSH config file`,
|
||||
);
|
||||
assert.ok(
|
||||
MARKERS.some((marker) => text?.includes(marker)),
|
||||
`${locale} warning should tell the user to back up the file`,
|
||||
);
|
||||
}
|
||||
});
|
||||
|
||||
test('linked file line interpolates the file path', () => {
|
||||
for (const messages of [en, ru, es, zhCN, zhTW]) {
|
||||
assert.match(
|
||||
messages['vault.groups.deleteDialog.managedFile'] ?? '',
|
||||
/\{file\}/,
|
||||
'managedFile copy should include the {file} placeholder',
|
||||
);
|
||||
}
|
||||
});
|
||||
@@ -1,6 +1,8 @@
|
||||
import type { Messages } from '../types';
|
||||
|
||||
export const zhCNAiMessages: Messages = {
|
||||
'ai.chat.iterationLimitReached': '已达到工具循环上限({limit} 次迭代)。你可以在此对话中继续,正在运行的终端任务不会停止。',
|
||||
'ai.chat.continue': '继续',
|
||||
'ai.chat.attachmentContentUnavailable': '附件内容未保留在此设备',
|
||||
// AI Settings
|
||||
'ai.agentSettings': 'Agent 设置',
|
||||
@@ -69,6 +71,9 @@ export const zhCNAiMessages: Messages = {
|
||||
'ai.providers.apiKey': 'API Key',
|
||||
'ai.providers.apiKey.placeholder': '输入 API Key',
|
||||
'ai.providers.apiKey.decrypting': '解密中...',
|
||||
'ai.providers.opencodeGo.help': '粘贴 OpenCode API Key 即可使用 OpenCode Go,Base URL 与模型列表会自动配置。',
|
||||
'ai.providers.opencodeGo.getKey': '获取 API Key',
|
||||
'ai.providers.fixedBaseUrl.help': '由提供商固定,Netcatty 会按模型自动选择对应的接口路径。',
|
||||
'ai.providers.baseUrl': 'Base URL',
|
||||
'ai.providers.baseUrl.anthropicHelp': 'Anthropic 兼容:可填不带或带 /v1 的主机(例如 https://gateway.example 或 https://gateway.example/v1)。检测与聊天都会请求 /v1/models、/v1/messages。',
|
||||
'ai.providers.baseUrl.ollamaHelp': '本地 Ollama:http://localhost:11434/v1(无需 API Key)。Ollama Cloud:https://ollama.com/v1,并填写 Cloud API Key。',
|
||||
@@ -333,6 +338,7 @@ export const zhCNAiMessages: Messages = {
|
||||
'ai.defaultAgent': '默认 Agent',
|
||||
'ai.defaultAgent.description': '创建新 AI 会话时使用的 Agent',
|
||||
'ai.defaultAgent.catty': 'Catty(内置)',
|
||||
'ai.defaultAgent.unavailable': '暂不可用',
|
||||
'ai.toolAccess.title': '工具接入',
|
||||
'ai.toolAccess.mode': 'Netcatty 接入模式',
|
||||
'ai.toolAccess.description': '选择外部 Agent 访问 Netcatty 会话的方式。MCP 会暴露内置服务器,Skills + CLI 会引导 Agent 读取本地 Skill 并调用 Netcatty CLI。',
|
||||
@@ -612,6 +618,23 @@ export const zhCNAiMessages: Messages = {
|
||||
'ai.chat.rebindUsage': '用法:/rebind <序号>',
|
||||
'ai.chat.rebindDone': '聊天“{title}”已重绑到此面板。',
|
||||
'ai.chat.rebindUnavailable': '当前面板范围内没有可用的重绑目标。',
|
||||
'ai.chat.managerScopeTab': '当前',
|
||||
'ai.chat.managerAllChatsTab': '全部',
|
||||
'ai.chat.managerSearchPlaceholder': '搜索会话标题…',
|
||||
'ai.chat.managerFilterAllAgents': '全部 Agent',
|
||||
'ai.chat.managerMoreActions': '更多操作',
|
||||
'ai.chat.managerOpen': '在本面板打开',
|
||||
'ai.chat.managerOpenDisabled': '正在其他工作区或终端中使用',
|
||||
'ai.chat.managerRebind': '移动到…',
|
||||
'ai.chat.managerRebindPick': '选择目标终端或工作区…',
|
||||
'ai.chat.managerRebindHere': '当前面板',
|
||||
'ai.chat.managerRebindDone': '已将“{title}”移动到 {target}。',
|
||||
'ai.chat.managerExportOne': '导出此会话',
|
||||
'ai.chat.managerBadgeActive': '使用中',
|
||||
'ai.chat.managerBadgeIdle': '空闲',
|
||||
'ai.chat.managerMessagesCount': '{n} 条消息',
|
||||
'ai.chat.managerDeleteTitle': '删除此会话?',
|
||||
'ai.chat.managerDeleteMessage': '“{title}”及其消息将从所有面板中移除,且无法撤销。',
|
||||
'ai.chat.justNow': '刚刚',
|
||||
'ai.chat.minutesAgo': '{n}分钟前',
|
||||
'ai.chat.hoursAgo': '{n}小时前',
|
||||
@@ -729,9 +752,6 @@ export const zhCNAiMessages: Messages = {
|
||||
'terminal.layer.theme': '主题',
|
||||
'terminal.layer.notes': '笔记',
|
||||
'terminal.layer.aiChat': 'AI 助手',
|
||||
'terminal.layer.movePanelLeft': '面板移至左侧',
|
||||
'terminal.layer.movePanelRight': '面板移至右侧',
|
||||
'terminal.layer.movePanelBottom': '面板移至底部',
|
||||
'terminal.layer.choosePanelPosition': '改变位置',
|
||||
'terminal.layer.dockLeft': '左侧',
|
||||
'terminal.layer.dockRight': '右侧',
|
||||
@@ -765,19 +785,15 @@ export const zhCNAiMessages: Messages = {
|
||||
'terminal.layer.hostTree.details.protocol': '协议',
|
||||
'terminal.layer.hostTree.details.group': '分组',
|
||||
'terminal.layer.hostTree.details.tags': '标签',
|
||||
'terminal.layer.hostTree.details.lastConnected': '最近连接',
|
||||
'topTabs.openQuickSwitcher': '打开快速切换',
|
||||
'topTabs.moreTabs': '更多标签页',
|
||||
'topTabs.aiAssistant': 'AI 助手',
|
||||
'topTabs.newLocalTerminal': '新建本地终端',
|
||||
'topTabs.controlPanel': '快捷控制',
|
||||
'topTabs.controlPanel.externalMcp': '对外 MCP',
|
||||
'topTabs.controlPanel.theme': '主题',
|
||||
'topTabs.controlPanel.theme.light': '浅色',
|
||||
'topTabs.controlPanel.theme.dark': '深色',
|
||||
'topTabs.controlPanel.theme.system': '系统',
|
||||
'topTabs.externalMcp.enable': '启用对外 MCP',
|
||||
'topTabs.externalMcp.disable': '停用对外 MCP',
|
||||
'topTabs.windowOpacity': '窗口透明度',
|
||||
'topTabs.openSettings': '打开设置',
|
||||
'ai.chat.sessionHistory': '会话历史',
|
||||
|
||||
@@ -110,20 +110,20 @@ export const zhCNCoreMessages: Messages = {
|
||||
'field.label': 'Label',
|
||||
'field.type': '类型',
|
||||
'auth.keyType': '类型 {type}',
|
||||
'auth.showAllKeys': '显示全部 keys',
|
||||
|
||||
// Dialogs / prompts
|
||||
'confirm.deleteHost': '删除主机 "{name}"?',
|
||||
'confirm.deleteIdentity': '删除身份 "{name}"?',
|
||||
'confirm.removeProvider': '移除提供商 "{name}"?',
|
||||
'confirm.closeBusyTerminal.title': '确认关闭',
|
||||
'confirm.closeBusyTerminal.message': '进程 "{command}" 仍在运行,关闭后会被终止。',
|
||||
'confirm.closeBusyTerminal.messageWithMore': '进程 "{command}" 及其他 {count} 个正在运行的进程将被终止。',
|
||||
'confirm.closeBusyTerminal.cancel': '取消',
|
||||
'confirm.closeBusyTerminal.close': '关闭',
|
||||
'dialog.createWorkspace.title': '创建工作区',
|
||||
'dialog.renameWorkspace.title': '重命名工作区',
|
||||
'dialog.renameSession.title': '重命名会话',
|
||||
'field.name': '名称',
|
||||
'field.selectHosts': '选择主机',
|
||||
'placeholder.workspaceName': '工作区名称',
|
||||
'placeholder.sessionName': '会话名称',
|
||||
'placeholder.searchHosts': '搜索主机或标签...',
|
||||
@@ -405,7 +405,6 @@ export const zhCNCoreMessages: Messages = {
|
||||
'tray.status.inactive': '未启用',
|
||||
'tray.status.error': '错误',
|
||||
'tray.status.unknown': '未知',
|
||||
'tray.recentHosts': '最近连接的主机',
|
||||
'tray.empty.title': '一切都很安静',
|
||||
'tray.empty.subtitle': '去连接个服务器吧,它们想念你了 🚀',
|
||||
'tray.quit': '退出 Netcatty',
|
||||
@@ -464,9 +463,6 @@ export const zhCNCoreMessages: Messages = {
|
||||
'update.downloadFailed.message': '下载更新失败,可前往 GitHub 手动下载。',
|
||||
'update.needsSave.title': '有未保存内容',
|
||||
'update.needsSave.message': '请先保存已打开的编辑器,然后再次点击「立即重启」以安装更新。',
|
||||
'update.openReleases': '打开 Releases',
|
||||
'update.remindLater': '稍后提醒',
|
||||
'update.skipVersion': '跳过此版本',
|
||||
|
||||
// Settings > Appearance
|
||||
'settings.appearance.uiTheme': '界面主题',
|
||||
@@ -649,8 +645,6 @@ Vaults 标签保持扁平,不使用这块背景。
|
||||
'settings.appearance.appIcon.whiteViolet': '白底 · 紫罗兰猫',
|
||||
'settings.appearance.appIcon.rainbow': '彩虹猫',
|
||||
// Context menus / common actions
|
||||
'action.newHost': '新建主机',
|
||||
'action.newSubfolder': '新建文件夹',
|
||||
'action.copyPublicKey': '复制公钥',
|
||||
'action.keyExport': '导出密钥',
|
||||
'action.edit': '编辑',
|
||||
@@ -1032,13 +1026,9 @@ Vaults 标签保持扁平,不使用这块背景。
|
||||
'sftp.columns.actions': '操作',
|
||||
'sftp.sort.directoriesFirst': '目录置顶',
|
||||
'sftp.emptyDirectory': '空目录',
|
||||
'sftp.nav.up': '返回上层',
|
||||
'sftp.nav.home': '返回主目录',
|
||||
'sftp.nav.refresh': '刷新',
|
||||
'sftp.upload': '上传',
|
||||
'sftp.uploadFiles': '上传文件',
|
||||
'sftp.uploadFolder': '上传文件夹',
|
||||
'sftp.dragDropToUpload': '拖拽文件到这里上传',
|
||||
'sftp.retry': '重试',
|
||||
'sftp.context.open': '打开',
|
||||
'sftp.context.navigateTo': '跳转到这里',
|
||||
@@ -1053,6 +1043,12 @@ Vaults 标签保持扁平,不使用这块背景。
|
||||
'sftp.extract.extracting': '正在解压 {fileName}...',
|
||||
'sftp.extract.success': '已解压 {fileName}',
|
||||
'sftp.extract.error': '解压 {fileName} 失败:{error}',
|
||||
'sftp.packedDownload.receiving': '正在接收打包数据…',
|
||||
'sftp.packedDownload.extracting': '正在还原文件…',
|
||||
'sftp.packedDownload.fallback': '当前无法打包下载,已改为逐文件下载。',
|
||||
'sftp.packedDownload.selection': '已选 {count} 项',
|
||||
'sftp.packedDownload.conflict': '目标位置已有同名项目,要选择其他保存文件夹吗?',
|
||||
|
||||
'sftp.archive.action': '压缩…',
|
||||
'sftp.archive.title': '压缩文件',
|
||||
'sftp.archive.description': '将 {count} 个选中项目打包到服务器上的压缩包。',
|
||||
@@ -1077,28 +1073,21 @@ Vaults 标签保持扁平,不使用这块背景。
|
||||
'sftp.copyCurrentPath': '复制当前路径',
|
||||
'sftp.copyCurrentPath.success': '已复制当前路径',
|
||||
'sftp.copyCurrentPath.error': '无法复制当前路径',
|
||||
'sftp.viewMode.label': '视图模式',
|
||||
'sftp.viewMode.list': '列表视图',
|
||||
'sftp.viewMode.tree': '树形视图',
|
||||
'sftp.viewMode.switchToList': '切换到列表视图',
|
||||
'sftp.viewMode.switchToTree': '切换到树形视图',
|
||||
'sftp.listDensity.compact': '紧凑列表',
|
||||
'sftp.listDensity.comfortable': '宽松列表',
|
||||
'sftp.listDensity.switchToCompact': '切换到紧凑列表',
|
||||
'sftp.listDensity.switchToComfortable': '切换到宽松列表',
|
||||
'sftp.tree.loadError': '加载目录失败',
|
||||
'sftp.tree.loading': '加载中...',
|
||||
'sftp.kind.folder': '文件夹',
|
||||
'sftp.context.rename': '重命名',
|
||||
'sftp.context.permissions': '权限',
|
||||
'sftp.context.delete': '删除',
|
||||
'sftp.context.refresh': '刷新',
|
||||
'sftp.context.uploadFiles': '上传文件...',
|
||||
'sftp.context.uploadFilesHere': '上传文件到这里...',
|
||||
'sftp.context.uploadFolder': '上传文件夹...',
|
||||
'sftp.context.uploadFolderHere': '上传文件夹到这里...',
|
||||
'sftp.context.downloadSelected': '下载选中项({count})',
|
||||
'sftp.context.deleteSelected': '删除选中项({count})',
|
||||
'sftp.dropFilesHere': '拖拽文件到这里',
|
||||
'sftp.itemsCount': '{count} 个项目',
|
||||
'sftp.selectedCount': '已选 {count} 个',
|
||||
@@ -1107,8 +1096,6 @@ Vaults 标签保持扁平,不使用这块背景。
|
||||
'sftp.task.waiting': '等待中...',
|
||||
'sftp.transfer.preparing': '准备中...',
|
||||
'sftp.status.loading': '加载中...',
|
||||
'sftp.status.uploading': '上传中...',
|
||||
'sftp.status.ready': '就绪',
|
||||
'sftp.transfers': '传输',
|
||||
'sftp.transfers.active': '{count} 个进行中',
|
||||
'sftp.transfers.clearCompleted': '清除已完成',
|
||||
@@ -1171,7 +1158,6 @@ Vaults 标签保持扁平,不使用这块背景。
|
||||
'sftp.transferCenter.applyAll': '应用到全部',
|
||||
'sftp.transfers.resizeNameColumn': '调整文件名列宽',
|
||||
'sftp.transfers.dragToResize': '拖拽调整高度',
|
||||
'sftp.goUp': '上一级',
|
||||
'sftp.goToTerminalCwd': '定位到终端当前目录',
|
||||
'sftp.locatePathInTerminal': '定位路径到终端',
|
||||
'sftp.followTerminalCwd': '追随终端目录',
|
||||
@@ -1187,29 +1173,22 @@ Vaults 标签保持扁平,不使用这块背景。
|
||||
'sftp.folderName.placeholder': '输入文件夹名称',
|
||||
'sftp.fileName': '文件名称',
|
||||
'sftp.fileName.placeholder': '输入文件名称',
|
||||
'sftp.prompt.newFolderName': '新建文件夹名称?',
|
||||
'sftp.rename.title': '重命名',
|
||||
'sftp.rename.newName': '新名称',
|
||||
'sftp.rename.placeholder': '输入新名称',
|
||||
'sftp.confirm.deleteOne': '删除 "{name}"?',
|
||||
'sftp.deleteConfirm.single': '删除 "{name}"?',
|
||||
'sftp.deleteConfirm.title': '删除 {count} 个项目?',
|
||||
'sftp.deleteConfirm.desc': '此操作不可撤销,将删除以下内容:',
|
||||
'sftp.deleteConfirm.descSingle': '此操作不可撤销。',
|
||||
'sftp.deleteConfirm.host': '主机',
|
||||
'sftp.deleteConfirm.path': '路径',
|
||||
'sftp.error.loadFailed': '加载目录失败',
|
||||
'sftp.error.downloadFailed': '下载失败',
|
||||
'sftp.error.uploadFailed': '上传失败',
|
||||
'sftp.error.deleteFailed': '删除失败',
|
||||
'sftp.error.createFolderFailed': '创建文件夹失败',
|
||||
'sftp.error.createFileFailed': '创建文件失败',
|
||||
'sftp.error.invalidFileName': '文件名包含非法字符:{chars}',
|
||||
'sftp.error.reservedName': '此文件名是系统保留名称',
|
||||
'sftp.overwrite.title': '文件已存在',
|
||||
'sftp.overwrite.desc': '名为"{name}"的文件已存在。是否要替换它?',
|
||||
'sftp.overwrite.confirm': '替换',
|
||||
'sftp.error.renameFailed': '重命名失败',
|
||||
'sftp.picker.title': '选择主机',
|
||||
'sftp.picker.desc': '为{side}窗格选择主机',
|
||||
'sftp.picker.searchPlaceholder': '搜索主机...',
|
||||
@@ -1217,8 +1196,6 @@ Vaults 标签保持扁平,不使用这块背景。
|
||||
'sftp.picker.local.desc': '浏览本地文件',
|
||||
'sftp.picker.local.badge': '本地',
|
||||
'sftp.picker.connected.section': '已连接',
|
||||
'sftp.picker.connected.badge': '已连接',
|
||||
'sftp.picker.connected.connecting': '连接中',
|
||||
'sftp.picker.noMatch': '没有匹配的主机',
|
||||
'sftp.permissions.title': '编辑权限',
|
||||
'sftp.permissions.owner': '所有者',
|
||||
@@ -1226,8 +1203,6 @@ Vaults 标签保持扁平,不使用这块背景。
|
||||
'sftp.permissions.others': '其他',
|
||||
'sftp.permissions.octal': '八进制',
|
||||
'sftp.permissions.symbolic': '符号',
|
||||
'sftp.permissions.success': '权限已更新',
|
||||
'sftp.permissions.failed': '权限更新失败',
|
||||
|
||||
// Quick Switcher
|
||||
'qs.search.placeholder': '搜索主机或标签页',
|
||||
@@ -1253,12 +1228,9 @@ Vaults 标签保持扁平,不使用这块背景。
|
||||
"settings.plugins.manager.remove": "卸载",
|
||||
"settings.plugins.manager.removeNote": "卸载会移除插件代码和本地 KV 数据,保留用户设置、秘密存储和同步 sidecar。",
|
||||
"settings.plugins.permissions.statusUnknown": "状态未知",
|
||||
"plugins.sidebar.extensions": "扩展页面",
|
||||
"plugins.sidebar.selectTerminal": "请先选择已打开的终端。",
|
||||
"plugins.sidebar.loading": "正在加载扩展页面…",
|
||||
"plugins.vault.loading": "正在加载插件页面…",
|
||||
"plugins.vault.extensions": "扩展",
|
||||
"plugins.vault.back": "返回主机",
|
||||
"plugins.interaction.title": "插件请求",
|
||||
"plugins.interaction.sharing": "分享的文本将交给此插件及其已授权的能力(包括网络访问)。读取文本不代表批准新的网络目标。",
|
||||
"plugins.interaction.input": "输入文本",
|
||||
@@ -1407,6 +1379,7 @@ Vaults 标签保持扁平,不使用这块背景。
|
||||
'plugins.hostActions.selectionNote': '仅向此插件共享所选主机的元数据:名称、地址、用户名、协议、分组和标签。选择分组仅包含本次选中的成员。后续编辑或连接请求遵循此插件的权限设置。',
|
||||
'plugins.hostActions.create': '预览主机草稿',
|
||||
'plugins.hostActions.edit': '预览主机修改',
|
||||
'plugins.hostActions.streamNote': '允许此插件通过选定的 SSH 服务器向以上地址和端口收发数据。地址由该服务器解析,可能读取或修改数据库数据。不打开终端、不运行启动脚本,SSH 密码和私钥不会交给插件。请选择 SSH 服务器。',
|
||||
'plugins.hostActions.connect': '确认连接',
|
||||
'plugins.hostActions.fieldDiff': '即将保存的修改',
|
||||
'plugins.hostActions.defaultsWarning': '将应用已保存的连接默认设置。修改分组可能改变继承的认证、代理和脚本设置。',
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
export const zhCNScriptsMessages = {
|
||||
'scripts.meta.name': '名称',
|
||||
'scripts.meta.language': '语言',
|
||||
'scripts.meta.description': '描述',
|
||||
'scripts.meta.descriptionPlaceholder': '可选,脚本的简要说明',
|
||||
'scripts.meta.trigger': '触发方式',
|
||||
@@ -15,7 +14,6 @@ export const zhCNScriptsMessages = {
|
||||
'scripts.actions.openEditor': '弹窗编辑',
|
||||
'scripts.actions.openEditorHint': '在更大的窗口中编辑脚本',
|
||||
'scripts.editor.modalTitle': '脚本编辑器',
|
||||
'scripts.editor.modalSubtitle': '在更大的工作区中编辑脚本元数据和代码。',
|
||||
'scripts.editor.lineCount': '{count} 行',
|
||||
'scripts.editor.resize': '调整编辑器高度',
|
||||
'scripts.targets.hint': '所选分组会动态匹配,之后加入分组的主机也会自动生效。',
|
||||
@@ -86,17 +84,13 @@ export const zhCNScriptsMessages = {
|
||||
'scripts.dialog.retry': '重试',
|
||||
'scripts.dialog.skip': '跳过',
|
||||
'scripts.dialog.abort': '终止',
|
||||
'scripts.running.stepProgress': '步骤 {current} / {total}',
|
||||
'scripts.running.determinateProgress': '{label} {current}/{total}',
|
||||
'scripts.running.progressFallback': '进度',
|
||||
'scripts.running.operationsCount': '已执行 {count} 个操作',
|
||||
'scripts.running.opsPrefix': '已执行 ',
|
||||
'scripts.running.opsSuffix': ' 个操作',
|
||||
'scripts.running.elapsedLabel': '耗时',
|
||||
'scripts.running.lastSentLabel': '已发送:',
|
||||
'scripts.running.elapsed': '耗时 {elapsed}',
|
||||
'scripts.running.completedSummary': '已完成 · 共 {count} 个操作 · {elapsed}',
|
||||
'scripts.running.dismissHint': '点击关闭',
|
||||
'scripts.running.dismiss': '关闭',
|
||||
'scripts.running.viewLogs': '查看日志',
|
||||
'scripts.running.logTitle': '{name} · 运行日志',
|
||||
@@ -111,26 +105,12 @@ export const zhCNScriptsMessages = {
|
||||
'vault.nav.scripts': '脚本',
|
||||
'snippets.action.newScript': '新建自动化脚本',
|
||||
'hostDetails.section.automation': '自动化',
|
||||
'hostDetails.automation.loginScript': '登录脚本',
|
||||
'hostDetails.automation.loginScriptPlaceholder': '选择脚本',
|
||||
'hostDetails.automation.none': '无',
|
||||
'hostDetails.automation.outputTriggers': '输出触发器',
|
||||
'hostDetails.automation.addTrigger': '添加触发器',
|
||||
'hostDetails.automation.triggerPatternPlaceholder': '正则表达式',
|
||||
'hostDetails.automation.linkedScripts': '已关联脚本',
|
||||
'hostDetails.automation.linkedScriptsEmpty': '尚未关联任何脚本。',
|
||||
'hostDetails.automation.linkScriptPlaceholder': '关联已有脚本…',
|
||||
'hostDetails.automation.unlink': '取消关联',
|
||||
'hostDetails.automation.equivalenceHint': '此处关联会将本主机加入 Scripts 中该脚本的目标列表,两侧视图同步。',
|
||||
'hostDetails.automation.queueHint': '连接本主机时按顺序运行脚本。全局脚本最先执行,再执行下方队列。',
|
||||
'hostDetails.automation.globalScripts': '全局连接脚本',
|
||||
'hostDetails.automation.globalScriptsHint': '每次连接时最先运行。顺序在脚本库排序中调整。',
|
||||
'hostDetails.automation.connectQueue': '本主机运行队列',
|
||||
'hostDetails.automation.connectQueueEmpty': '尚未为本主机配置连接脚本队列。',
|
||||
'hostDetails.automation.addToQueuePlaceholder': '添加脚本到队列…',
|
||||
'hostDetails.automation.moveUp': '上移',
|
||||
'hostDetails.automation.moveDown': '下移',
|
||||
'hostDetails.automation.removeFromQueue': '从队列移除',
|
||||
'hostDetails.automation.dragHandle': '拖拽排序',
|
||||
'hostDetails.automation.queueDragHint': '拖动条目即可调整连接时的运行顺序。',
|
||||
};
|
||||
@@ -14,13 +14,11 @@ export const zhCnSystemManagerMessages: Messages = {
|
||||
'systemManager.tabs.docker': 'Docker',
|
||||
'systemManager.tabs.gpu': 'GPU',
|
||||
'systemManager.tabs.ariaLabel': '系统管理分区',
|
||||
'systemManager.popup.loading': '正在打开终端…',
|
||||
'systemManager.popup.startupFailed': '启动命令未成功。请确认目标仍然可用后重试。',
|
||||
|
||||
'systemManager.errors.loadProcesses': '加载进程列表失败',
|
||||
'systemManager.errors.loadTmux': '加载 tmux 会话失败',
|
||||
'systemManager.errors.loadTmuxWindows': '加载 tmux 窗口失败',
|
||||
'systemManager.errors.loadTmuxPanes': '加载 tmux 面板失败',
|
||||
'systemManager.errors.loadTmuxClients': '加载 tmux 客户端失败',
|
||||
'systemManager.errors.actionFailed': '操作失败',
|
||||
'systemManager.errors.loadDocker': '加载容器列表失败',
|
||||
@@ -31,7 +29,6 @@ export const zhCnSystemManagerMessages: Messages = {
|
||||
'systemManager.errors.nerdctlUnreachable': 'nerdctl 无法连接 containerd',
|
||||
'systemManager.errors.clusterUnreachable': '无法连接到上下文 {{context}} 的集群',
|
||||
'systemManager.errors.clusterUnreachableGeneric': '无法连接到集群',
|
||||
'systemManager.errors.loadOverview': '加载系统概览失败',
|
||||
'systemManager.errors.loadGpu': '加载 GPU / NPU 状态失败',
|
||||
'systemManager.errors.loadPorts': '加载监听端口失败',
|
||||
'systemManager.errors.loadServices': '加载 systemd 服务失败',
|
||||
@@ -65,13 +62,10 @@ export const zhCnSystemManagerMessages: Messages = {
|
||||
'systemManager.overview.noTopProcesses': '暂无进程数据',
|
||||
|
||||
'systemManager.processes.search': '搜索进程…',
|
||||
'systemManager.processes.command': '命令',
|
||||
'systemManager.processes.user': '用户',
|
||||
'systemManager.processes.term': '终止',
|
||||
'systemManager.processes.kill': '强杀',
|
||||
'systemManager.processes.stop': '暂停 (SIGSTOP)',
|
||||
'systemManager.processes.cont': '继续 (SIGCONT)',
|
||||
'systemManager.processes.hup': '挂断 (SIGHUP)',
|
||||
'systemManager.processes.renice': '调整优先级',
|
||||
'systemManager.processes.renicePrompt': 'Nice 值 (-20 到 19)',
|
||||
'systemManager.processes.reniceInvalid': 'Nice 值必须在 -20 到 19 之间',
|
||||
@@ -86,7 +80,6 @@ export const zhCnSystemManagerMessages: Messages = {
|
||||
'systemManager.processes.stat': '状态',
|
||||
'systemManager.processes.meta': '{{count}} 个进程',
|
||||
'systemManager.processes.loading': '正在加载进程…',
|
||||
'systemManager.processes.loadingMore': '正在显示更多进程…',
|
||||
'systemManager.processes.state.running': '运行中',
|
||||
'systemManager.processes.state.sleeping': '睡眠',
|
||||
'systemManager.processes.state.stopped': '已暂停',
|
||||
@@ -124,12 +117,9 @@ export const zhCnSystemManagerMessages: Messages = {
|
||||
'systemManager.tmux.attached': '已附加',
|
||||
'systemManager.tmux.detached': '未附加',
|
||||
'systemManager.tmux.windows': '{{count}} 个窗口',
|
||||
'systemManager.tmux.created': '创建时间',
|
||||
'systemManager.tmux.activity': '活动时间',
|
||||
'systemManager.tmux.rename': '重命名',
|
||||
'systemManager.tmux.detach': '全部分离',
|
||||
'systemManager.tmux.killSession': '结束会话',
|
||||
'systemManager.tmux.killServer': '结束 tmux 服务',
|
||||
'systemManager.tmux.loadingDetails': '正在加载详情…',
|
||||
'systemManager.tmux.clients': '已附加客户端',
|
||||
'systemManager.tmux.windowList': '窗口',
|
||||
@@ -140,31 +130,17 @@ export const zhCnSystemManagerMessages: Messages = {
|
||||
'systemManager.docker.unavailable': '此主机未检测到容器运行时(Docker、Podman、nerdctl 或 kubectl)',
|
||||
'systemManager.tmux.windowsMismatch': '会话显示有 {{count}} 个窗口,但 list-windows 未返回任何窗口',
|
||||
'systemManager.tmux.lastCommand': '最后执行的命令:{{command}}',
|
||||
'systemManager.tmux.noPanes': '没有面板',
|
||||
'systemManager.tmux.panes': '{{count}} 个面板',
|
||||
'systemManager.tmux.active': '当前',
|
||||
'systemManager.tmux.unnamedWindow': '未命名窗口',
|
||||
'systemManager.tmux.unnamedPane': '未命名面板',
|
||||
'systemManager.tmux.attachWindow': '附加到窗口',
|
||||
'systemManager.tmux.selectWindow': '选中窗口',
|
||||
'systemManager.tmux.killWindow': '关闭窗口',
|
||||
'systemManager.tmux.killPane': '关闭面板',
|
||||
'systemManager.tmux.splitHorizontal': '水平分屏',
|
||||
'systemManager.tmux.splitVertical': '垂直分屏',
|
||||
'systemManager.tmux.sendKeys': '发送按键',
|
||||
'systemManager.tmux.sendKeysTo': '向窗口 {{window}} 面板 {{pane}} 发送按键',
|
||||
'systemManager.tmux.sendKeysPlaceholder': '命令或文本…',
|
||||
'systemManager.tmux.renameSessionPrompt': '重命名会话',
|
||||
'systemManager.tmux.renameWindowPrompt': '重命名窗口',
|
||||
'systemManager.tmux.windowName': '窗口名称',
|
||||
'systemManager.tmux.confirmKillSession': '确定结束 tmux 会话「{{name}}」?',
|
||||
'systemManager.tmux.confirmDetachSession': '确定将所有客户端从「{{name}}」分离?',
|
||||
'systemManager.tmux.confirmKillWindow': '确定关闭窗口「{{name}}」?',
|
||||
'systemManager.tmux.confirmKillPane': '确定关闭面板 #{{index}}?',
|
||||
'systemManager.tmux.confirmKillServer': '确定结束 tmux 服务?所有会话将被终止。',
|
||||
'systemManager.tmux.meta': '{{count}} 个会话',
|
||||
|
||||
'systemManager.docker.title': '容器',
|
||||
'systemManager.docker.subTabs.containers': '容器',
|
||||
'systemManager.docker.subTabs.images': '镜像',
|
||||
'systemManager.docker.empty': '未找到容器',
|
||||
@@ -177,7 +153,6 @@ export const zhCnSystemManagerMessages: Messages = {
|
||||
'systemManager.docker.filter.paused': '已暂停',
|
||||
'systemManager.docker.shell': 'Shell',
|
||||
'systemManager.docker.logs': '日志',
|
||||
'systemManager.docker.details': '详情',
|
||||
'systemManager.docker.inspect': 'Inspect',
|
||||
'systemManager.docker.imageInspect': '镜像 Inspect',
|
||||
'systemManager.docker.confirmRemove': '确定删除此容器?',
|
||||
|
||||
@@ -12,6 +12,8 @@ export const zhCNTerminalMessages: Messages = {
|
||||
'terminal.directory.hidden': '显示隐藏目录',
|
||||
'terminal.directory.refresh': '刷新',
|
||||
'terminal.directory.unavailable': '此会话暂不支持目录导航。',
|
||||
'terminal.directory.integrationUnavailable': 'PowerShell 目录集成未就绪,启动参数或执行策略可能阻止了加载。',
|
||||
'terminal.directory.nonFilesystem': '当前 PowerShell 位置不是文件系统目录。',
|
||||
'terminal.directory.busy': '请等待终端回到空命令提示符。',
|
||||
'terminal.directory.readFailed': '无法读取此目录,请刷新重试。',
|
||||
'terminal.directory.changeFailed': '未能确认目录切换,请刷新后重试。',
|
||||
@@ -57,7 +59,6 @@ export const zhCNTerminalMessages: Messages = {
|
||||
'terminal.osc7Setup.title': '配置目录追踪',
|
||||
'terminal.osc7Setup.desc': 'Netcatty 会为当前远端用户添加 OSC 7 提示符配置。这样在 sudo 或 su 之后,SFTP 也能继续跟随终端目录。',
|
||||
'terminal.osc7Setup.targets': '可能写入的文件',
|
||||
'terminal.osc7Setup.command': '将执行的命令',
|
||||
'terminal.osc7Setup.run': '执行配置',
|
||||
'terminal.osc7Setup.running': '正在配置...',
|
||||
'terminal.osc7Setup.configured': '目录追踪已配置',
|
||||
@@ -98,37 +99,18 @@ export const zhCNTerminalMessages: Messages = {
|
||||
'sftp.context.copyPath': '复制文件路径',
|
||||
'sftp.context.openWith': '打开方式...',
|
||||
'sftp.context.edit': '编辑',
|
||||
'sftp.context.preview': '预览',
|
||||
'sftp.opener.title': '打开方式',
|
||||
'sftp.opener.desc': '选择一个应用程序来打开此文件',
|
||||
'sftp.opener.builtInEditor': '内置编辑器',
|
||||
'sftp.opener.editDescription': '编辑文本文件',
|
||||
'sftp.opener.builtInImageViewer': '内置图片预览',
|
||||
'sftp.opener.previewDescription': '预览图片',
|
||||
'sftp.opener.systemApp': '选择应用程序...',
|
||||
'sftp.opener.systemAppDescription': '从本地选择一个应用程序',
|
||||
'sftp.opener.onlySystemApp': '此文件只能用外部应用程序打开',
|
||||
'sftp.opener.noAppsAvailable': '无可用应用程序',
|
||||
'sftp.opener.noExtension': '无扩展名文件',
|
||||
'sftp.opener.setDefault': '始终使用此方式打开 {ext} 文件',
|
||||
'sftp.opener.confirmTitle': '设为默认?',
|
||||
'sftp.opener.confirmDescription': '是否始终使用 {app} 打开 {ext} 文件?',
|
||||
'sftp.opener.yesRemember': '是,记住此选择',
|
||||
'sftp.opener.justOnce': '仅此一次',
|
||||
'sftp.opener.confirm.title': '设置默认应用程序',
|
||||
'sftp.opener.confirm.desc': '是否始终使用此应用程序打开 .{ext} 文件?',
|
||||
'sftp.editor.title': '文本编辑器',
|
||||
'sftp.editor.save': '保存到远程',
|
||||
'sftp.editor.saving': '保存中...',
|
||||
'sftp.editor.saved': '保存成功',
|
||||
'sftp.editor.saveFailed': '保存文件失败',
|
||||
'sftp.editor.unsavedChanges': '您有未保存的更改。确定要关闭吗?',
|
||||
'sftp.editor.syntaxHighlight': '语法高亮',
|
||||
'sftp.preview.title': '图片预览',
|
||||
'sftp.preview.zoomIn': '放大',
|
||||
'sftp.preview.zoomOut': '缩小',
|
||||
'sftp.preview.resetZoom': '重置缩放',
|
||||
'sftp.preview.fitToWindow': '适应窗口',
|
||||
|
||||
// Settings > SFTP File Associations
|
||||
'settings.tab.sftpFileAssociations': 'SFTP',
|
||||
@@ -208,28 +190,16 @@ export const zhCNTerminalMessages: Messages = {
|
||||
'sftp.autoSync.error': '同步文件失败:{error}',
|
||||
|
||||
// SFTP Folder Upload Progress
|
||||
'sftp.upload.progress': '正在上传 {current}/{total} 个文件...',
|
||||
'sftp.upload.uploading': '正在上传...',
|
||||
'sftp.upload.compressing': '正在压缩...',
|
||||
'sftp.upload.extracting': '正在解压...',
|
||||
'sftp.upload.scanning': '正在扫描文件...',
|
||||
'sftp.upload.completed': '已完成',
|
||||
'sftp.upload.compressed': '压缩传输',
|
||||
'sftp.upload.currentFile': '当前: {fileName}',
|
||||
'sftp.upload.cancelled': '上传已取消',
|
||||
'sftp.upload.noFiles': '没有可上传的文件',
|
||||
'sftp.upload.partialSuccess': '已上传 {success} 个文件,{failed} 个失败',
|
||||
'sftp.upload.cancel': '取消',
|
||||
'sftp.upload.completedToPath': '已上传至 {path}',
|
||||
|
||||
// SFTP Download
|
||||
'sftp.download.completed': '已下载',
|
||||
'sftp.download.cancelled': '下载已取消',
|
||||
|
||||
// SFTP Reconnecting
|
||||
'sftp.reconnecting.title': '正在重连...',
|
||||
'sftp.reconnecting.desc': '连接已断开,正在尝试重新连接',
|
||||
'sftp.reconnected': '连接已恢复',
|
||||
'sftp.error.reconnectFailed': '重连失败,请重试。',
|
||||
'sftp.error.connectionLostManual': '连接已断开,请手动重新连接。',
|
||||
'sftp.error.connectionLostReconnecting': '连接已断开,正在重连...',
|
||||
@@ -247,6 +217,10 @@ export const zhCNTerminalMessages: Messages = {
|
||||
'settings.sftp.compressedUpload.enable': '启用文件夹压缩',
|
||||
'settings.sftp.compressedUpload.enableDesc': '自动使用 tar 压缩文件夹后再传输。需要服务器支持 tar 命令,不支持时自动回退到普通传输。',
|
||||
|
||||
'settings.sftp.packedDownload': '打包下载',
|
||||
'settings.sftp.packedDownload.enable': '下载文件夹或多选项目时打包',
|
||||
'settings.sftp.packedDownload.enableDesc': '将所选内容一次传回,在本地自动还原原有目录结构。服务器不支持打包时,自动逐文件下载。',
|
||||
|
||||
'settings.sftp.skipUnchanged.enable': '跳过未改文件',
|
||||
'settings.sftp.skipUnchanged.enableDesc': '当目标文件的大小与修改时间已与源一致时跳过传输(类似 rsync)。替换到暂存路径时自动禁用。',
|
||||
|
||||
@@ -489,7 +463,9 @@ export const zhCNTerminalMessages: Messages = {
|
||||
'settings.terminal.connection.defaultProxy.desc': '主机没有单独设置、也没有从分组继承代理时使用的已保存代理。选择“无”则直接连接。',
|
||||
'settings.terminal.connection.defaultProxy.none': '无',
|
||||
'settings.terminal.connection.sshAutoReconnectEnabled': 'SSH 断线后自动重连',
|
||||
'settings.terminal.connection.sshAutoReconnectEnabled.desc': '打开后,已连上的 SSH 会话意外断开时会每 5 秒尝试重新连接,直到关闭标签页或连接恢复。',
|
||||
'settings.terminal.connection.sshAutoReconnectEnabled.desc': '打开后,SSH 会话意外断开时会按设定间隔尝试重新连接,直到关闭标签页或连接恢复。',
|
||||
'settings.terminal.connection.sshAutoReconnectInterval': 'SSH 重连间隔(秒)',
|
||||
'settings.terminal.connection.sshAutoReconnectInterval.desc': '自动重连尝试之间的等待时间:5–3600 秒,默认 5 秒。修改从下次安排重试时生效,不改变已开始的等待。',
|
||||
'settings.terminal.connection.keepaliveInterval': '会话保持间隔',
|
||||
'settings.terminal.connection.keepaliveInterval.desc': '向服务器发送 SSH 保活数据包的频率(秒)。设为 0 表示全局禁用——单个主机可在自己的设置里覆盖此值。',
|
||||
'settings.terminal.connection.keepaliveCountMax': '最大无响应保活次数',
|
||||
@@ -661,7 +637,6 @@ export const zhCNTerminalMessages: Messages = {
|
||||
'hostDetails.proxyPanel.credentials': '凭据',
|
||||
'hostDetails.proxyPanel.usernamePlaceholder': '用户名',
|
||||
'hostDetails.proxyPanel.passwordPlaceholder': '密码',
|
||||
'hostDetails.proxyPanel.identities': '身份',
|
||||
'hostDetails.proxyPanel.keychainIdentity': '钥匙串身份',
|
||||
'hostDetails.proxyPanel.manualCredentials': '手动凭据',
|
||||
'hostDetails.proxyPanel.remove': '移除代理',
|
||||
@@ -682,8 +657,6 @@ export const zhCNTerminalMessages: Messages = {
|
||||
'hostDetails.envVars.newVariable': '新变量',
|
||||
'hostDetails.envVars.variableName': '变量名',
|
||||
'hostDetails.chain.title': '编辑链路',
|
||||
'hostDetails.chain.desc': '添加另一台主机将创建到 {host} 的连接。',
|
||||
'hostDetails.chain.addHost': '添加主机',
|
||||
'hostDetails.chain.target': '目标',
|
||||
'hostDetails.chain.availableHosts': '可用主机',
|
||||
'hostDetails.chain.clear': '清空',
|
||||
@@ -695,10 +668,7 @@ export const zhCNTerminalMessages: Messages = {
|
||||
'hostDetails.group.addProtocol': '添加协议',
|
||||
|
||||
// Keychain
|
||||
'keychain.filter.key': '密钥',
|
||||
'keychain.filter.certificate': '证书',
|
||||
'keychain.action.generateKey': '生成密钥',
|
||||
'keychain.action.importKey': '导入密钥',
|
||||
'keychain.action.newIdentity': '新建身份',
|
||||
'keychain.action.importCertificate': '导入证书',
|
||||
'keychain.view.grid': '网格',
|
||||
@@ -739,20 +709,8 @@ export const zhCNTerminalMessages: Messages = {
|
||||
'keychain.export.exporting': '导出中...',
|
||||
'keychain.export.exportAndAttach': '导出并绑定',
|
||||
'keychain.export.title': '密钥导出',
|
||||
'keychain.export.exportToRequired': '导出到 *',
|
||||
'keychain.export.selectHostPlaceholder': '选择主机...',
|
||||
'keychain.export.locationLabel': '位置 ~ $1 *',
|
||||
'keychain.export.filenameLabel': '文件名 ~ $2 *',
|
||||
'keychain.export.advanced': '高级',
|
||||
'keychain.export.note.supportsOnly': '密钥导出目前仅支持',
|
||||
'keychain.export.note.systems': '系统。',
|
||||
'keychain.export.note.use': '请使用',
|
||||
'keychain.export.note.customize': '部分自定义导出脚本。',
|
||||
'keychain.export.scriptRequired': '脚本 *',
|
||||
'keychain.export.exportToHost': '导出到主机',
|
||||
'keychain.export.failedGeneric': '导出失败:{message}',
|
||||
'keychain.field.label': '名称',
|
||||
'keychain.field.labelRequired': '名称 *',
|
||||
'keychain.field.labelPlaceholder': '密钥 Label',
|
||||
'keychain.field.privateKeyRequired': '私钥 *',
|
||||
'keychain.field.publicKey': '公钥',
|
||||
@@ -788,13 +746,9 @@ export const zhCNTerminalMessages: Messages = {
|
||||
"fido.recovery.usePassword": "改用已配置的密码",
|
||||
"fido.recovery.passwordFallback": "正在使用此主机已配置的密码登录",
|
||||
"fido.prompt.cancelled": "已取消安全密钥验证。",
|
||||
'fido.prompt.touchDone': '已触摸',
|
||||
'fido.prompt.timeout': 'FIDO 提示已超时,请重新连接。',
|
||||
'fido.error.opensshMissing': '需要带 FIDO/libfido2 的 OpenSSH。macOS:brew install openssh libfido2。',
|
||||
'fido.error.agentUnavailable': '无法启动支持 FIDO 的 SSH agent。',
|
||||
'keychain.generate.resident': '在设备上保存凭据',
|
||||
'keychain.generate.verifyRequired': '每次验证 PIN',
|
||||
'keychain.action.loadResident': '从安全密钥加载驻留密钥',
|
||||
'keychain.generate.keySize': '密钥长度',
|
||||
'keychain.generate.labelPlaceholder': '密钥 Label',
|
||||
'keychain.generate.passphrasePlaceholder': 'Passphrase(可选)',
|
||||
@@ -804,7 +758,6 @@ export const zhCNTerminalMessages: Messages = {
|
||||
'keychain.import.dropHint': '将密钥文件拖到这里',
|
||||
'keychain.import.importFromFile': '从文件导入',
|
||||
'keychain.import.saveKey': '保存密钥',
|
||||
'keychain.import.importedKeyLabel': '已导入密钥',
|
||||
'keychain.identity.usernameRequired': '用户名 *',
|
||||
'keychain.identity.method.passwordOnly': '密码',
|
||||
'keychain.identity.summary.password': '认证密码',
|
||||
@@ -813,14 +766,8 @@ export const zhCNTerminalMessages: Messages = {
|
||||
'keychain.identity.summary.passwordAndKey': '认证密码与密钥',
|
||||
'keychain.identity.summary.passwordAndCertificate': '认证密码与证书',
|
||||
'keychain.identity.summary.none': '无凭据',
|
||||
'keychain.identity.selectCredential': '选择{kind}',
|
||||
'keychain.identity.save': '保存',
|
||||
'keychain.identity.update': '更新',
|
||||
'keychain.keyDialog.newTitle': '新建密钥',
|
||||
'keychain.keyDialog.newDesc': '添加新的 SSH 密钥',
|
||||
'keychain.keyDialog.editTitle': '编辑密钥',
|
||||
'keychain.keyDialog.editDesc': '更新此 SSH 密钥',
|
||||
'keychain.keyDialog.updateKey': '更新密钥',
|
||||
|
||||
// Tabs
|
||||
'tabs.closeSessionAria': '关闭会话',
|
||||
@@ -832,6 +779,8 @@ export const zhCNTerminalMessages: Messages = {
|
||||
'tabs.duplicateSession': '复制会话',
|
||||
'tabs.copyTabToNewWindow': '复制标签页到新窗口',
|
||||
'tabs.copyTabToNewWindowFailed': '无法在新窗口打开标签页',
|
||||
'tabs.moveTabToNewWindow': '移动标签页到新窗口',
|
||||
'tabs.moveTabToNewWindowFailed': '无法将标签页移动到新窗口',
|
||||
'tabs.closeOthers': '关闭其他标签',
|
||||
'tabs.closeToLeft': '关闭左侧标签',
|
||||
'tabs.closeToRight': '关闭右侧标签',
|
||||
@@ -895,8 +844,6 @@ export const zhCNTerminalMessages: Messages = {
|
||||
'snippets.search.noResults.desc': '没有脚本或脚本包与"{query}"匹配。换一个关键字,或清除搜索进行浏览。',
|
||||
'snippets.section.packages': '脚本包',
|
||||
'snippets.section.snippets': '脚本',
|
||||
'snippets.kind.codeSnippet': '代码片段',
|
||||
'snippets.kind.automationScript': '自动化脚本',
|
||||
'snippets.package.count': '{count} 个脚本',
|
||||
'snippets.commandFallback': '命令',
|
||||
'snippets.view.grid': '网格',
|
||||
@@ -928,9 +875,6 @@ export const zhCNTerminalMessages: Messages = {
|
||||
'snippets.import.modal.multipleFiles': '已选择 {count} 个文件',
|
||||
'snippets.import.modal.parsedSummary': '{files} 个文件,{total} 个脚本,{packages} 个脚本包,{conflicts} 个重复命令。主机绑定会被忽略。',
|
||||
'snippets.import.modal.confirm': '确认导入',
|
||||
'snippets.import.conflict.title': '导入代码片段?',
|
||||
'snippets.import.conflict.desc': '“{file}”包含 {total} 个代码片段,其中 {conflicts} 个命令已存在。',
|
||||
'snippets.import.conflict.hostBindingsNote': '代码片段的主机绑定不会被导入或导出。',
|
||||
'snippets.import.conflict.skip': '跳过重复项',
|
||||
'snippets.import.conflict.overwrite': '覆盖重复项',
|
||||
'snippets.packageDialog.title': '新建脚本包',
|
||||
@@ -969,7 +913,7 @@ export const zhCNTerminalMessages: Messages = {
|
||||
'snippets.variables.placeholderDefault': '默认:{value}',
|
||||
'snippets.variables.required': '请填写此变量',
|
||||
'snippets.variables.run': '运行',
|
||||
'snippets.field.variablesHelp': '在脚本中使用 {{名称}} 或 {{名称:默认值}} 定义变量。',
|
||||
'snippets.field.variablesHelp': '在脚本中使用 {{name}} 或 {{name:default}} 作为占位符。',
|
||||
'snippets.field.variablesDetected': '变量',
|
||||
'snippets.field.variableDefault': '默认 {value}',
|
||||
|
||||
@@ -989,9 +933,6 @@ export const zhCNTerminalMessages: Messages = {
|
||||
'serial.field.customPort': '自定义串口路径',
|
||||
'serial.field.namedPipeHint': 'Windows 虚拟机控制台:输入 \\\\.\\pipe\\name。虚拟机需作为服务端创建管道,波特率和串口帧设置不生效。',
|
||||
'serial.field.customPortPlaceholder': '例如 /dev/ttys001 或 COM1',
|
||||
'serial.type.hardware': '硬件',
|
||||
'serial.type.pseudo': '虚拟终端',
|
||||
'serial.type.custom': '自定义',
|
||||
'serial.parity.none': '无',
|
||||
'serial.parity.even': '偶校验',
|
||||
'serial.parity.odd': '奇校验',
|
||||
@@ -1012,7 +953,6 @@ export const zhCNTerminalMessages: Messages = {
|
||||
'serial.backspace.default': '默认(DEL,0x7F)',
|
||||
'serial.backspace.ctrlH': 'Ctrl+H(BS,0x08)',
|
||||
'serial.field.charset': '字符编码',
|
||||
'serial.connectionError': '连接串口失败',
|
||||
'serial.field.baudRatePlaceholder': '选择或输入波特率...',
|
||||
'serial.field.baudRateEmpty': '输入自定义波特率',
|
||||
'serial.field.customBaudRate': '使用自定义波特率',
|
||||
@@ -1031,10 +971,7 @@ export const zhCNTerminalMessages: Messages = {
|
||||
'keyboard.interactive.title': '需要验证',
|
||||
'keyboard.interactive.desc': '服务器需要额外的身份验证。',
|
||||
'keyboard.interactive.descWithHost': '服务器 {hostname} 需要额外的身份验证。',
|
||||
'keyboard.interactive.response': '响应',
|
||||
'keyboard.interactive.verificationCode': '验证码',
|
||||
'keyboard.interactive.enterCode': '输入验证码',
|
||||
'keyboard.interactive.enterResponse': '输入响应',
|
||||
'keyboard.interactive.submit': '提交',
|
||||
'keyboard.interactive.verifying': '验证中...',
|
||||
'keyboard.interactive.savePassword': '保存密码',
|
||||
|
||||
@@ -19,14 +19,6 @@ export const zhCNVaultMessages: Messages = {
|
||||
'notes.export.toast.failed': '导出笔记失败。',
|
||||
'notes.codeBlock.copied': '已复制',
|
||||
'notes.codeBlock.copyFailed': '复制代码块失败。',
|
||||
'notes.group.prompt': '文件夹路径',
|
||||
'notes.group.all': '笔记本',
|
||||
'notes.group.ungrouped': '未分组',
|
||||
'notes.section.notebooks': '笔记本',
|
||||
'notes.section.notes': '笔记',
|
||||
'notes.mode.edit': '编辑',
|
||||
'notes.mode.split': '分屏',
|
||||
'notes.mode.preview': '预览',
|
||||
'notes.title.placeholder': '笔记标题',
|
||||
'notes.editor.placeholder': '在这里写 Markdown 笔记...',
|
||||
'notes.editor.unrenderableMarkdown': '这篇笔记包含富文本编辑器无法显示的 Markdown(例如未闭合的 <tag> 文本),已改为显示原始 Markdown 源码,内容并没有丢失。',
|
||||
@@ -72,25 +64,18 @@ export const zhCNVaultMessages: Messages = {
|
||||
'notes.toolbar.divider': '分割线',
|
||||
'notes.toolbar.link': '插入超链接',
|
||||
'notes.toolbar.image': '插入图片',
|
||||
'notes.action.pin': '置顶笔记',
|
||||
'notes.action.unpin': '取消置顶',
|
||||
'notes.tag.remove': '移除标签',
|
||||
'notes.tag.placeholder': '标签名...',
|
||||
'notes.tag.add': '添加标签',
|
||||
'notes.outline.title': '大纲目录',
|
||||
'notes.outline.titleWithCount': '大纲目录 ({count})',
|
||||
'notes.outline.empty': '暂无标题大纲',
|
||||
'notes.outline.emptyHint': '在 Markdown 中使用 #、## 编写各级标题',
|
||||
'notes.export.share': '导出与分享',
|
||||
'notes.export.currentNote': '当前笔记',
|
||||
'notes.export.exportMarkdown': '导出为 Markdown (.md)',
|
||||
'notes.export.exportHtml': '导出为 HTML (.html)',
|
||||
'notes.export.copyMarkdown': '复制 Markdown 源码',
|
||||
'notes.export.allNotes': '全部笔记',
|
||||
'notes.export.exportAllZip': '导出全部为 ZIP 压缩包',
|
||||
'notes.export.toast.markdownSuccess': '已导出 Markdown 文件',
|
||||
'notes.export.toast.htmlSuccess': '已导出 HTML 文件',
|
||||
'notes.export.toast.zipSuccess': '已导出全部笔记备份 ZIP',
|
||||
|
||||
// Select Host panel
|
||||
'selectHost.title': '选择主机',
|
||||
@@ -131,12 +116,6 @@ export const zhCNVaultMessages: Messages = {
|
||||
'vault.panel.resizeWidth': '调整面板宽度',
|
||||
'hostDetails.saveAria': '保存',
|
||||
'hostConnectionTest.title': '测试连接',
|
||||
'hostConnectionTest.test': '测试',
|
||||
'hostConnectionTest.chainOf': '第 {current}/{total} 跳',
|
||||
'hostConnectionTest.success': '连接成功',
|
||||
'hostConnectionTest.successHint': '主机已接受您的凭据。您可以关闭此窗口。',
|
||||
'hostConnectionTest.connecting': '正在连接… {seconds} 秒后超时',
|
||||
'hostConnectionTest.failed': '连接失败。',
|
||||
'hostConnectionTest.retry': '重试',
|
||||
'hostConnectionTest.credentialsUnavailable': '保存的凭据无法在此设备上解密。请在下方重新输入。',
|
||||
'hostDetails.section.address': '地址',
|
||||
@@ -173,11 +152,8 @@ export const zhCNVaultMessages: Messages = {
|
||||
'hostDetails.notes.toggle.show': '显示备注编辑框',
|
||||
'hostDetails.notes.toggle.hide': '隐藏备注编辑框',
|
||||
'hostDetails.group.placeholder': '父级 Group',
|
||||
'hostDetails.section.credentials': '凭据',
|
||||
'hostDetails.section.portCredentials': '端口与凭据',
|
||||
'hostDetails.section.appearance': '外观',
|
||||
'hostDetails.distro.title': 'Linux 发行版',
|
||||
'hostDetails.distro.desc': '可在连接后自动探测,也可以手动覆盖图标所用的发行版。',
|
||||
'hostDetails.icon.title': '主机图标',
|
||||
'hostDetails.icon.sectionTitle': '颜色与图标',
|
||||
'hostDetails.icon.desc': '选择此主机使用的图标来源和颜色。',
|
||||
@@ -189,7 +165,6 @@ export const zhCNVaultMessages: Messages = {
|
||||
'hostDetails.icon.mode.custom': '自定义',
|
||||
'hostDetails.icon.reset': '重置主机图标',
|
||||
'hostDetails.icon.colorLabel': '图标颜色',
|
||||
'hostDetails.icon.colorDefault': '默认',
|
||||
'hostDetails.icon.colorAuto': '自动',
|
||||
'hostDetails.icon.colorManual': '手动',
|
||||
'hostDetails.icon.colorChoice': '颜色',
|
||||
@@ -240,7 +215,6 @@ export const zhCNVaultMessages: Messages = {
|
||||
'hostDetails.distro.mode.auto': '自动探测',
|
||||
'hostDetails.distro.mode.manual': '手动覆盖',
|
||||
'hostDetails.distro.detectedLabel': '当前值',
|
||||
'hostDetails.distro.manualLabel': '手动指定',
|
||||
'hostDetails.distro.pending': '首次连接后自动探测',
|
||||
'hostDetails.distro.unknown': '未知',
|
||||
'hostDetails.distro.option.linux': '通用 Linux',
|
||||
@@ -291,7 +265,6 @@ export const zhCNVaultMessages: Messages = {
|
||||
'hostDetails.auth.mfaFirst': '优先交互式认证',
|
||||
'hostDetails.auth.mfaFirst.desc': '适用于必须通过 keyboard-interactive 输入密码和 MFA 的服务器。',
|
||||
'hostDetails.totp.title': '验证器 (TOTP)',
|
||||
'hostDetails.totp.enable': '为这台主机保存 TOTP 密钥',
|
||||
'hostDetails.totp.setup': '设置…',
|
||||
'hostDetails.totp.edit': '编辑',
|
||||
'hostDetails.totp.modalTitle': '设置验证器',
|
||||
@@ -394,10 +367,8 @@ export const zhCNVaultMessages: Messages = {
|
||||
'hostDetails.jumpHosts.direct': '直连',
|
||||
'hostDetails.jumpHosts.configure': '配置代理主机',
|
||||
'hostDetails.proxy': '通过 HTTP/SOCKS5/命令代理',
|
||||
'hostDetails.proxy.none': '无',
|
||||
'hostDetails.proxy.direct': '直连(不使用代理)',
|
||||
'hostDetails.proxy.directHint': '不使用分组或全局默认代理',
|
||||
'hostDetails.proxy.edit': '编辑代理',
|
||||
'hostDetails.proxy.configure': '配置代理',
|
||||
'hostDetails.envVars': '环境变量',
|
||||
'hostDetails.envVars.add': '添加环境变量',
|
||||
@@ -456,28 +427,14 @@ export const zhCNVaultMessages: Messages = {
|
||||
'hostDetails.plugin.useSsh': '改用 SSH',
|
||||
|
||||
// Host form (legacy modal)
|
||||
'hostForm.title.edit': '编辑主机',
|
||||
'hostForm.title.new': '新建主机',
|
||||
'hostForm.desc.edit': '更新该主机的连接信息',
|
||||
'hostForm.desc.new': '创建一个新的 SSH 主机条目',
|
||||
'hostForm.field.label': '名称',
|
||||
'hostForm.placeholder.label': 'My Production Server',
|
||||
'hostForm.field.hostname': 'Hostname / IP',
|
||||
'hostForm.placeholder.hostname': '192.168.1.1',
|
||||
'hostForm.field.port': '端口',
|
||||
'hostForm.field.username': '用户名',
|
||||
'hostForm.field.osType': '操作系统类型',
|
||||
'hostForm.placeholder.selectOs': '选择操作系统',
|
||||
'hostForm.field.group': '分组',
|
||||
'hostForm.placeholder.group': '例如:AWS、DigitalOcean',
|
||||
'hostForm.field.tags': '标签',
|
||||
'hostForm.placeholder.addTag': '添加标签…',
|
||||
'hostForm.auth.method': '认证方式',
|
||||
'hostForm.auth.password': '密码',
|
||||
'hostForm.auth.sshKey': 'SSH密钥',
|
||||
'hostForm.auth.selectKey': '选择 SSH密钥',
|
||||
'hostForm.auth.noKeys': '暂无密钥',
|
||||
'hostForm.auth.noKeysHint': '钥匙串中未找到 SSH密钥,请先创建一个。',
|
||||
'hostForm.saveHost': '保存主机',
|
||||
|
||||
// Connection logs
|
||||
@@ -495,7 +452,6 @@ export const zhCNVaultMessages: Messages = {
|
||||
'logs.action.delete': '删除',
|
||||
|
||||
// Log view
|
||||
'logView.customizeAppearance': '自定义外观',
|
||||
'logView.appearance': '外观',
|
||||
'logView.readOnly': '只读',
|
||||
'logView.export': '导出',
|
||||
@@ -508,7 +464,6 @@ export const zhCNVaultMessages: Messages = {
|
||||
'terminal.toolbar.availableAfterConnect': '连接后可用',
|
||||
'terminal.toolbar.sendYmodem': 'YMODEM 发送',
|
||||
'terminal.toolbar.receiveYmodem': 'YMODEM 接收',
|
||||
'terminal.toolbar.sftp': 'SFTP',
|
||||
'terminal.toolbar.more': '更多操作',
|
||||
'terminal.toolbar.scripts': '脚本',
|
||||
'terminal.toolbar.history': '命令历史',
|
||||
@@ -533,7 +488,6 @@ export const zhCNVaultMessages: Messages = {
|
||||
'terminal.composeBar.resize': '拖拽调整撰写栏高度',
|
||||
'terminal.composeBar.manageSnippets': '管理快捷代码片段',
|
||||
'terminal.composeBar.searchSnippets': '搜索代码片段...',
|
||||
'terminal.composeBar.noPinnedSnippets': '点击 + 固定常用代码片段',
|
||||
'terminal.composeBar.noMatchingSnippets': '没有匹配的代码片段',
|
||||
'terminal.composeBar.pinnedCount': '已固定 {count} 个',
|
||||
'terminal.composeBar.unpinSnippet': '从快捷栏移除 {label}',
|
||||
@@ -690,9 +644,6 @@ export const zhCNVaultMessages: Messages = {
|
||||
'terminal.themeModal.themeType': '{type} 主题',
|
||||
'terminal.hiddenTheme.title': '当前隐藏主题',
|
||||
'terminal.hiddenTheme.desc': '这个主题已从手动选择列表中隐藏;当你选择其他可见主题后,它会被替换。',
|
||||
'topTabs.toggleTheme.systemExitTitle': '当前正在跟随系统主题',
|
||||
'topTabs.toggleTheme.systemExitMessage': '请到设置里选择固定的浅色或深色主题。',
|
||||
'topTabs.toggleTheme.openSettings': '打开设置',
|
||||
|
||||
// Custom Themes
|
||||
'terminal.customTheme.section': '自定义主题',
|
||||
@@ -705,7 +656,6 @@ export const zhCNVaultMessages: Messages = {
|
||||
'terminal.customTheme.importDesc': '从 iTerm2 配色方案文件导入',
|
||||
'terminal.customTheme.importError': '无法解析所选文件,请确保它是有效的 .itermcolors XML 文件。',
|
||||
'terminal.customTheme.delete': '删除主题',
|
||||
'terminal.customTheme.confirmDelete': '确认删除',
|
||||
'terminal.customTheme.name': '名称',
|
||||
'terminal.customTheme.namePlaceholder': '我的自定义主题',
|
||||
'terminal.customTheme.type': '类型',
|
||||
@@ -764,10 +714,7 @@ export const zhCNVaultMessages: Messages = {
|
||||
'cloudSync.provider.disconnect.cloudRemains': '云端的加密同步副本可能仍保存在 {name} 存储中。如需清除,请到该服务商删除同步文件。断开连接不代表设备已完成交接清理。',
|
||||
'cloudSync.provider.disconnect.failed': '未能完成与 {name} 的断开连接,保存的连接资料可能仍在,请重试。',
|
||||
'cloudSync.provider.webdav': 'WebDAV',
|
||||
'cloudSync.provider.webdav.desc': '连接到自建 WebDAV 端点',
|
||||
'cloudSync.provider.s3': 'S3 兼容存储',
|
||||
'cloudSync.provider.s3.desc': '连接到 S3 兼容对象存储',
|
||||
'cloudSync.provider.comingSoon': '即将支持',
|
||||
'cloudSync.webdav.title': 'WebDAV 设置',
|
||||
'cloudSync.webdav.desc': '配置 WebDAV 端点用于加密同步。',
|
||||
'cloudSync.webdav.endpoint': '端点地址',
|
||||
@@ -796,20 +743,6 @@ export const zhCNVaultMessages: Messages = {
|
||||
'cloudSync.s3.allowInsecure': '允许不安全的连接(忽略证书错误)',
|
||||
'cloudSync.s3.showSecret': '显示密钥',
|
||||
'cloudSync.s3.validation.required': '端点、Region、Bucket、Access Key 与 Secret 必填。',
|
||||
'cloudSync.smb.title': 'SMB 设置',
|
||||
'cloudSync.smb.desc': '连接到 SMB/CIFS 文件共享以进行加密同步。',
|
||||
'cloudSync.smb.share': '共享路径',
|
||||
'cloudSync.smb.username': '用户名',
|
||||
'cloudSync.smb.password': '密码',
|
||||
'cloudSync.smb.domain': '域(可选)',
|
||||
'cloudSync.smb.domainPlaceholder': '例如:WORKGROUP',
|
||||
'cloudSync.smb.port': '端口(可选)',
|
||||
'cloudSync.smb.showSecret': '显示密码',
|
||||
'cloudSync.smb.validation.share': '共享路径必填。',
|
||||
'cloudSync.smb.validation.port': '端口必须是 1 到 65535 之间的数字。',
|
||||
'cloudSync.connect.smb.success': 'SMB 已连接',
|
||||
'cloudSync.connect.smb.failedTitle': 'SMB 连接失败',
|
||||
'cloudSync.provider.smb': 'SMB 共享',
|
||||
'cloudSync.connect.webdav.success': 'WebDAV 已连接',
|
||||
'cloudSync.connect.webdav.failedTitle': 'WebDAV 连接失败',
|
||||
'cloudSync.connect.s3.success': 'S3 已连接',
|
||||
@@ -826,7 +759,6 @@ export const zhCNVaultMessages: Messages = {
|
||||
'cloudSync.lastSync.minutesAgo': '{minutes} 分钟前',
|
||||
'cloudSync.changeKey': '更改 Key',
|
||||
'cloudSync.providers.title': '云服务',
|
||||
'cloudSync.syncAll': '同步所有已连接的服务',
|
||||
'cloudSync.autoSync.title': '自动同步',
|
||||
'cloudSync.autoSync.desc': '发生变更时自动同步',
|
||||
'cloudSync.strategy.title': '同步策略',
|
||||
@@ -891,7 +823,6 @@ export const zhCNVaultMessages: Messages = {
|
||||
'cloudSync.localBackups.folderWarning': '仅复制此文件夹并不构成完整、可迁移的备份。删除或清空应用配置目录(userData)可能导致这些恢复点无法读取。',
|
||||
'cloudSync.localBackups.retentionTitle': '备份保留数量',
|
||||
'cloudSync.localBackups.retentionDesc': '设置 Netcatty 最多保留多少份本地备份。',
|
||||
'cloudSync.localBackups.maxCount': '最多保留',
|
||||
'cloudSync.localBackups.maxSaved': '已保存保留数量:{count}',
|
||||
'cloudSync.localBackups.maxInvalid': '请输入 1 到 100 之间的数字。',
|
||||
'cloudSync.localBackups.empty': '还没有本地备份。',
|
||||
@@ -1021,7 +952,6 @@ export const zhCNVaultMessages: Messages = {
|
||||
'sftp.context.openWithDefault': '系统默认程序打开',
|
||||
'common.clear': '清除',
|
||||
'common.optional': '可选',
|
||||
'common.selectPlaceholder': '请选择...',
|
||||
'common.error': '错误',
|
||||
'common.validation': '验证',
|
||||
'common.saveChanges': '保存修改',
|
||||
@@ -1063,7 +993,6 @@ export const zhCNVaultMessages: Messages = {
|
||||
'pf.tooltip.localDesc': '本地端口转发:通过 SSH 隧道访问远程服务',
|
||||
'pf.tooltip.remoteDesc': '远程端口转发:将本地服务暴露给远程主机',
|
||||
'pf.tooltip.dynamicDesc': '动态 SOCKS 代理:通过 SSH 隧道转发流量',
|
||||
'pf.deleteActive.title': '删除正在运行的端口转发?',
|
||||
'pf.deleteActive.desc': '端口转发规则 "{label}" 当前正在运行。删除前将先关闭转发连接。',
|
||||
'pf.deleteActive.confirm': '关闭并删除',
|
||||
'pf.form.autoStart': '自动启动',
|
||||
@@ -1078,8 +1007,6 @@ export const zhCNVaultMessages: Messages = {
|
||||
'sftp.pane.selectHostToStart': '先选择一个主机',
|
||||
'sftp.pane.chooseFilesystem': '选择要浏览的本地或远端文件系统',
|
||||
'sftp.tabs.addTab': '新建标签页',
|
||||
'sftp.tabs.closeTab': '关闭标签页',
|
||||
'sftp.tabs.newTab': '新标签页',
|
||||
'sftp.tabs.copyDefaultPath': '复制标签页(默认路径)',
|
||||
'sftp.tabs.copyCurrentPath': '复制并跳转到当前路径',
|
||||
'sftp.conflict.title': '文件冲突',
|
||||
@@ -1105,10 +1032,6 @@ export const zhCNVaultMessages: Messages = {
|
||||
'sftp.conflict.action.replace': '替换',
|
||||
|
||||
// SFTP Upload Phases
|
||||
'sftp.upload.phase.compressing': '正在压缩',
|
||||
'sftp.upload.phase.uploading': '正在上传',
|
||||
'sftp.upload.phase.extracting': '正在解压',
|
||||
'sftp.upload.phase.compressed': '压缩传输',
|
||||
'vault.import.plugins.title': '插件导入器',
|
||||
'vault.import.plugins.loading': '正在生成安全导入预览…',
|
||||
'vault.import.plugins.progress': '已处理 {completed}/{total} {message}',
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
import type { Messages } from '../types';
|
||||
|
||||
export const zhTWAiMessages: Messages = {
|
||||
'ai.chat.iterationLimitReached': '已達到工具迴圈上限({limit} 次迭代)。你可以在此對話中繼續,正在執行的終端工作不會停止。',
|
||||
'ai.chat.continue': '繼續',
|
||||
'ai.chat.attachmentContentUnavailable': '附件內容未保留在此裝置',
|
||||
// AI Settings
|
||||
'ai.agentSettings': 'Agent 設定',
|
||||
@@ -39,6 +41,15 @@ export const zhTWAiMessages: Messages = {
|
||||
'ai.providers.noApiKey': '未設定 API Key',
|
||||
'ai.providers.configure': '設定',
|
||||
'ai.providers.remove': '移除',
|
||||
'ai.providers.headers': '自訂 HTTP 請求標頭',
|
||||
'ai.providers.headers.help': '為此服務新增選用請求標頭。內容會隱藏顯示,並在儲存時加密。',
|
||||
'ai.providers.headers.name': '請求標頭名稱',
|
||||
'ai.providers.headers.value': '請求標頭內容',
|
||||
'ai.providers.headers.add': '新增請求標頭',
|
||||
'ai.providers.headers.remove': '刪除請求標頭',
|
||||
'ai.providers.headers.invalid': '請填寫有效且不重複的請求標頭。Content-Length 和 Transfer-Encoding 由應用程式自動設定。',
|
||||
'ai.providers.headers.loadError': '無法解鎖已儲存的請求標頭。請取消編輯,解鎖系統鑰匙圈後重試。',
|
||||
'ai.providers.headers.saveError': '無法安全儲存。請確認系統鑰匙圈可用後重試。',
|
||||
'ai.providers.name': '顯示名稱',
|
||||
'ai.providers.name.placeholder': '例如 我的供應商',
|
||||
'ai.providers.style': '協定風格',
|
||||
@@ -60,6 +71,9 @@ export const zhTWAiMessages: Messages = {
|
||||
'ai.providers.apiKey': 'API Key',
|
||||
'ai.providers.apiKey.placeholder': '輸入 API Key',
|
||||
'ai.providers.apiKey.decrypting': '解密中...',
|
||||
'ai.providers.opencodeGo.help': '貼上 OpenCode API Key 即可使用 OpenCode Go,Base URL 與模型清單會自動設定。',
|
||||
'ai.providers.opencodeGo.getKey': '取得 API Key',
|
||||
'ai.providers.fixedBaseUrl.help': '由提供商固定,Netcatty 會依模型自動選擇對應的介面路徑。',
|
||||
'ai.providers.baseUrl': 'Base URL',
|
||||
'ai.providers.baseUrl.anthropicHelp': 'Anthropic 相容:可填不帶或帶 /v1 的主機(例如 https://gateway.example 或 https://gateway.example/v1)。偵測與聊天都會請求 /v1/models、/v1/messages。',
|
||||
'ai.providers.baseUrl.ollamaHelp': '本機 Ollama:http://localhost:11434/v1(不需 API Key)。Ollama Cloud:https://ollama.com/v1,並填寫 Cloud API Key。',
|
||||
@@ -324,6 +338,7 @@ export const zhTWAiMessages: Messages = {
|
||||
'ai.defaultAgent': '預設 Agent',
|
||||
'ai.defaultAgent.description': '建立新 AI 工作階段時使用的 Agent',
|
||||
'ai.defaultAgent.catty': 'Catty(內建)',
|
||||
'ai.defaultAgent.unavailable': '暫時無法使用',
|
||||
'ai.toolAccess.title': '工具介接',
|
||||
'ai.toolAccess.mode': 'Netcatty 介接模式',
|
||||
'ai.toolAccess.description': '選擇外部 Agent 存取 Netcatty 工作階段的方式。MCP 會公開內建伺服器,Skills + CLI 會引導 Agent 讀取本機 Skill 並呼叫 Netcatty CLI。',
|
||||
@@ -385,8 +400,8 @@ export const zhTWAiMessages: Messages = {
|
||||
"ai.privacy.cidrs.description": "每行一個 IPv4 或 IPv6 CIDR。留空則僅使用內建規則。",
|
||||
"ai.privacy.patterns": "自訂正規表示式",
|
||||
"ai.privacy.patterns.description": "每行一個相容 RE2 的模式,不含 / 分隔符號或旗標。不支援或不安全的模式會遭拒絕。",
|
||||
"ai.privacy.connectionScope": "預留位置在同一個受管對話或外部 MCP 連線內保持穩定。只有同一範圍內的 Netcatty 受管工具呼叫才能還原原始值。",
|
||||
"ai.privacy.reconnect": "套用變更後,請建立新的受管對話並重新連接外部 MCP 用戶端。現有對話和連線不得重複使用預留位置。",
|
||||
"ai.privacy.connectionScope": "佔位符在同一個受管對話或外部 MCP 連線內保持穩定。只有同一範圍內的 Netcatty 受管工具呼叫才能還原原始值。",
|
||||
"ai.privacy.reconnect": "套用變更後,請建立新的受管對話並重新連接外部 MCP 用戶端。現有對話和連線不得重複使用佔位符。",
|
||||
"ai.privacy.apply": "套用",
|
||||
"ai.privacy.applying": "正在套用...",
|
||||
"ai.privacy.applied": "AI 隱私設定已套用。請建立新的受管對話並重新連接外部 MCP 用戶端。",
|
||||
@@ -602,6 +617,23 @@ export const zhTWAiMessages: Messages = {
|
||||
'ai.chat.rebindUsage': '用法:/rebind <序號>',
|
||||
'ai.chat.rebindDone': '聊天「{title}」已重新綁定到此面板。',
|
||||
'ai.chat.rebindUnavailable': '目前面板範圍內沒有可用的重新綁定目標。',
|
||||
'ai.chat.managerScopeTab': '目前',
|
||||
'ai.chat.managerAllChatsTab': '全部',
|
||||
'ai.chat.managerSearchPlaceholder': '搜尋會話標題…',
|
||||
'ai.chat.managerFilterAllAgents': '全部 Agent',
|
||||
'ai.chat.managerMoreActions': '更多操作',
|
||||
'ai.chat.managerOpen': '在此面板開啟',
|
||||
'ai.chat.managerOpenDisabled': '正在其他工作區或終端中使用',
|
||||
'ai.chat.managerRebind': '移動到…',
|
||||
'ai.chat.managerRebindPick': '選擇目標終端或工作區…',
|
||||
'ai.chat.managerRebindHere': '目前面板',
|
||||
'ai.chat.managerRebindDone': '已將「{title}」移動到 {target}。',
|
||||
'ai.chat.managerExportOne': '匯出此會話',
|
||||
'ai.chat.managerBadgeActive': '使用中',
|
||||
'ai.chat.managerBadgeIdle': '閒置',
|
||||
'ai.chat.managerMessagesCount': '{n} 則訊息',
|
||||
'ai.chat.managerDeleteTitle': '刪除此會話?',
|
||||
'ai.chat.managerDeleteMessage': '「{title}」及其訊息將從所有面板中移除,且無法復原。',
|
||||
'ai.chat.justNow': '剛剛',
|
||||
'ai.chat.minutesAgo': '{n}分鐘前',
|
||||
'ai.chat.hoursAgo': '{n}小時前',
|
||||
@@ -657,7 +689,7 @@ export const zhTWAiMessages: Messages = {
|
||||
'ai.chatHistory.messageCap.unit': '則訊息',
|
||||
|
||||
// AI Error
|
||||
'ai.codex.bridgeError': 'Codex 主程序處理器尚未載入。請完全重新啟動 Netcatty 或重新啟動 Electron 開發程序,然後重試。',
|
||||
'ai.codex.bridgeError': 'Codex 主行程處理器尚未載入。請完全重新啟動 Netcatty 或重新啟動 Electron 開發行程,然後重試。',
|
||||
|
||||
// AI Web Search
|
||||
'ai.webSearch.title': '網路搜尋',
|
||||
@@ -719,9 +751,6 @@ export const zhTWAiMessages: Messages = {
|
||||
'terminal.layer.theme': '主題',
|
||||
'terminal.layer.notes': '筆記',
|
||||
'terminal.layer.aiChat': 'AI 助手',
|
||||
'terminal.layer.movePanelLeft': '面板移至左側',
|
||||
'terminal.layer.movePanelRight': '面板移至右側',
|
||||
'terminal.layer.movePanelBottom': '面板移至底部',
|
||||
'terminal.layer.choosePanelPosition': '變更位置',
|
||||
'terminal.layer.dockLeft': '左側',
|
||||
'terminal.layer.dockRight': '右側',
|
||||
@@ -755,19 +784,15 @@ export const zhTWAiMessages: Messages = {
|
||||
'terminal.layer.hostTree.details.protocol': '協定',
|
||||
'terminal.layer.hostTree.details.group': '群組',
|
||||
'terminal.layer.hostTree.details.tags': '標籤',
|
||||
'terminal.layer.hostTree.details.lastConnected': '最近連線',
|
||||
'topTabs.openQuickSwitcher': '開啟快速切換',
|
||||
'topTabs.moreTabs': '更多分頁',
|
||||
'topTabs.aiAssistant': 'AI 助手',
|
||||
'topTabs.newLocalTerminal': '新增本機終端',
|
||||
'topTabs.controlPanel': '快捷控制',
|
||||
'topTabs.controlPanel.externalMcp': '對外 MCP',
|
||||
'topTabs.controlPanel.theme': '主題',
|
||||
'topTabs.controlPanel.theme.light': '淺色',
|
||||
'topTabs.controlPanel.theme.dark': '深色',
|
||||
'topTabs.controlPanel.theme.system': '系統',
|
||||
'topTabs.externalMcp.enable': '啟用對外 MCP',
|
||||
'topTabs.externalMcp.disable': '停用對外 MCP',
|
||||
'topTabs.windowOpacity': '視窗透明度',
|
||||
'topTabs.openSettings': '開啟設定',
|
||||
'ai.chat.sessionHistory': '工作階段歷史',
|
||||
|
||||
@@ -6,7 +6,7 @@ export const zhTWCoreMessages: Messages = {
|
||||
"settings.plugins.github.repository": "GitHub 儲存庫",
|
||||
"settings.plugins.github.formats": "支援 https://github.com/owner/repo、github.com/owner/repo 或 owner/repo。",
|
||||
"settings.plugins.github.busy": "正在下載、驗證或安裝套件…",
|
||||
"settings.plugins.github.review": "確認儲存庫來源並通過完整性驗證,並不代表發布者值得信任。安裝過程不會執行建置腳本,外掛安裝後預設停用。啟用前,請確認來源可信並檢查各項權限的授權方式。",
|
||||
"settings.plugins.github.review": "確認儲存庫來源並通過完整性驗證,並不代表發布者值得信任。安裝過程不會執行建置指令碼,外掛安裝後預設停用。啟用前,請確認來源可信並檢查各項權限的授權方式。",
|
||||
"settings.plugins.github.accept": "已審查並信任此儲存庫,且已查看宣告的權限。",
|
||||
"settings.plugins.github.confirm": "安裝並保持停用",
|
||||
"settings.plugins.github.download": "下載並審查",
|
||||
@@ -110,15 +110,13 @@ export const zhTWCoreMessages: Messages = {
|
||||
'field.label': 'Label',
|
||||
'field.type': '型別',
|
||||
'auth.keyType': '型別 {type}',
|
||||
'auth.showAllKeys': '顯示全部 keys',
|
||||
|
||||
// Dialogs / prompts
|
||||
'confirm.deleteHost': '刪除主機 "{name}"?',
|
||||
'confirm.deleteIdentity': '刪除身分 "{name}"?',
|
||||
'confirm.removeProvider': '移除供應商 "{name}"?',
|
||||
'confirm.closeBusyTerminal.title': '確認關閉',
|
||||
'confirm.closeBusyTerminal.message': '程序 "{command}" 仍在執行,關閉後會被終止。',
|
||||
'confirm.closeBusyTerminal.messageWithMore': '程序 "{command}" 及其他 {count} 個正在執行的程序將被終止。',
|
||||
'confirm.closeBusyTerminal.message': '行程 "{command}" 仍在執行,關閉後會被終止。',
|
||||
'confirm.closeBusyTerminal.messageWithMore': '行程 "{command}" 及其他 {count} 個正在執行的行程將被終止。',
|
||||
'confirm.closeBusyTerminal.cancel': '取消',
|
||||
'confirm.closeBusyTerminal.close': '關閉',
|
||||
'dialog.createWorkspace.title': '建立工作區',
|
||||
@@ -296,7 +294,7 @@ export const zhTWCoreMessages: Messages = {
|
||||
|
||||
// Settings > System > Crash Logs
|
||||
'settings.system.crashLogs.title': '崩潰日誌',
|
||||
'settings.system.crashLogs.description': '檢視主程序錯誤日誌,協助診斷異常行為。',
|
||||
'settings.system.crashLogs.description': '檢視主行程錯誤日誌,協助診斷異常行為。',
|
||||
'settings.system.crashLogs.noLogs': '未找到崩潰日誌。',
|
||||
'settings.system.crashLogs.entries': '{count} 條記錄',
|
||||
'settings.system.crashLogs.clear': '清除所有日誌',
|
||||
@@ -407,7 +405,6 @@ export const zhTWCoreMessages: Messages = {
|
||||
'tray.status.inactive': '未啟用',
|
||||
'tray.status.error': '錯誤',
|
||||
'tray.status.unknown': '未知',
|
||||
'tray.recentHosts': '最近連線的主機',
|
||||
'tray.empty.title': '一切都很安靜',
|
||||
'tray.empty.subtitle': '去連線個伺服器吧,它們想念你了 🚀',
|
||||
'tray.quit': '結束 Netcatty',
|
||||
@@ -466,9 +463,6 @@ export const zhTWCoreMessages: Messages = {
|
||||
'update.downloadFailed.message': '下載更新失敗,可前往 GitHub 手動下載。',
|
||||
'update.needsSave.title': '有未儲存內容',
|
||||
'update.needsSave.message': '請先儲存已開啟的編輯器,然後再次點選「立即重新啟動」以安裝更新。',
|
||||
'update.openReleases': '開啟 Releases',
|
||||
'update.remindLater': '稍後提醒',
|
||||
'update.skipVersion': '跳過此版本',
|
||||
|
||||
// Settings > Appearance
|
||||
'settings.appearance.uiTheme': '介面主題',
|
||||
@@ -651,8 +645,6 @@ Vaults 分頁維持扁平,不使用這塊背景。
|
||||
'settings.appearance.appIcon.whiteViolet': '白底 · 紫羅蘭貓',
|
||||
'settings.appearance.appIcon.rainbow': '彩虹貓',
|
||||
// Context menus / common actions
|
||||
'action.newHost': '新增主機',
|
||||
'action.newSubfolder': '新增資料夾',
|
||||
'action.copyPublicKey': '複製公鑰',
|
||||
'action.keyExport': '匯出金鑰',
|
||||
'action.edit': '編輯',
|
||||
@@ -1034,13 +1026,9 @@ Vaults 分頁維持扁平,不使用這塊背景。
|
||||
'sftp.columns.actions': '操作',
|
||||
'sftp.sort.directoriesFirst': '資料夾置頂',
|
||||
'sftp.emptyDirectory': '空目錄',
|
||||
'sftp.nav.up': '返回上層',
|
||||
'sftp.nav.home': '返回主目錄',
|
||||
'sftp.nav.refresh': '重新整理',
|
||||
'sftp.upload': '上傳',
|
||||
'sftp.uploadFiles': '上傳檔案',
|
||||
'sftp.uploadFolder': '上傳資料夾',
|
||||
'sftp.dragDropToUpload': '拖曳檔案到這裡上傳',
|
||||
'sftp.retry': '重試',
|
||||
'sftp.context.open': '開啟',
|
||||
'sftp.context.navigateTo': '跳轉到這裡',
|
||||
@@ -1055,6 +1043,12 @@ Vaults 分頁維持扁平,不使用這塊背景。
|
||||
'sftp.extract.extracting': '正在解壓 {fileName}...',
|
||||
'sftp.extract.success': '已解壓 {fileName}',
|
||||
'sftp.extract.error': '解壓 {fileName} 失敗:{error}',
|
||||
'sftp.packedDownload.receiving': '正在接收封裝資料…',
|
||||
'sftp.packedDownload.extracting': '正在還原檔案…',
|
||||
'sftp.packedDownload.fallback': '目前無法打包下載,已改為逐檔下載。',
|
||||
'sftp.packedDownload.selection': '已選取 {count} 個項目',
|
||||
'sftp.packedDownload.conflict': '目的地已有同名項目,要選擇其他儲存位置嗎?',
|
||||
|
||||
'sftp.archive.action': '壓縮…',
|
||||
'sftp.archive.title': '壓縮檔案',
|
||||
'sftp.archive.description': '將 {count} 個選取項目打包成伺服器上的壓縮檔。',
|
||||
@@ -1079,28 +1073,21 @@ Vaults 分頁維持扁平,不使用這塊背景。
|
||||
'sftp.copyCurrentPath': '複製目前路徑',
|
||||
'sftp.copyCurrentPath.success': '已複製目前路徑',
|
||||
'sftp.copyCurrentPath.error': '無法複製目前路徑',
|
||||
'sftp.viewMode.label': '檢視模式',
|
||||
'sftp.viewMode.list': '列表檢視',
|
||||
'sftp.viewMode.tree': '樹形檢視',
|
||||
'sftp.viewMode.switchToList': '切換到列表檢視',
|
||||
'sftp.viewMode.switchToTree': '切換到樹形檢視',
|
||||
'sftp.listDensity.compact': '緊湊列表',
|
||||
'sftp.listDensity.comfortable': '寬鬆列表',
|
||||
'sftp.listDensity.switchToCompact': '切換到緊湊列表',
|
||||
'sftp.listDensity.switchToComfortable': '切換到寬鬆列表',
|
||||
'sftp.tree.loadError': '載入目錄失敗',
|
||||
'sftp.tree.loading': '載入中...',
|
||||
'sftp.kind.folder': '資料夾',
|
||||
'sftp.context.rename': '重新命名',
|
||||
'sftp.context.permissions': '權限',
|
||||
'sftp.context.delete': '刪除',
|
||||
'sftp.context.refresh': '重新整理',
|
||||
'sftp.context.uploadFiles': '上傳檔案...',
|
||||
'sftp.context.uploadFilesHere': '上傳檔案到這裡...',
|
||||
'sftp.context.uploadFolder': '上傳資料夾...',
|
||||
'sftp.context.uploadFolderHere': '上傳資料夾到這裡...',
|
||||
'sftp.context.downloadSelected': '下載選取項({count})',
|
||||
'sftp.context.deleteSelected': '刪除選取項({count})',
|
||||
'sftp.dropFilesHere': '拖曳檔案到這裡',
|
||||
'sftp.itemsCount': '{count} 個專案',
|
||||
'sftp.selectedCount': '已選 {count} 個',
|
||||
@@ -1109,8 +1096,6 @@ Vaults 分頁維持扁平,不使用這塊背景。
|
||||
'sftp.task.waiting': '等待中...',
|
||||
'sftp.transfer.preparing': '準備中...',
|
||||
'sftp.status.loading': '載入中...',
|
||||
'sftp.status.uploading': '上傳中...',
|
||||
'sftp.status.ready': '就緒',
|
||||
'sftp.transfers': '傳輸',
|
||||
'sftp.transfers.active': '{count} 個進行中',
|
||||
'sftp.transfers.clearCompleted': '清除已完成',
|
||||
@@ -1173,7 +1158,6 @@ Vaults 分頁維持扁平,不使用這塊背景。
|
||||
'sftp.transferCenter.applyAll': '套用到全部',
|
||||
'sftp.transfers.resizeNameColumn': '調整檔名列寬',
|
||||
'sftp.transfers.dragToResize': '拖曳調整高度',
|
||||
'sftp.goUp': '上一級',
|
||||
'sftp.goToTerminalCwd': '定位到終端目前目錄',
|
||||
'sftp.locatePathInTerminal': '定位路徑到終端',
|
||||
'sftp.followTerminalCwd': '追隨終端目錄',
|
||||
@@ -1189,29 +1173,22 @@ Vaults 分頁維持扁平,不使用這塊背景。
|
||||
'sftp.folderName.placeholder': '輸入資料夾名稱',
|
||||
'sftp.fileName': '檔案名稱',
|
||||
'sftp.fileName.placeholder': '輸入檔案名稱',
|
||||
'sftp.prompt.newFolderName': '新增資料夾名稱?',
|
||||
'sftp.rename.title': '重新命名',
|
||||
'sftp.rename.newName': '新名稱',
|
||||
'sftp.rename.placeholder': '輸入新名稱',
|
||||
'sftp.confirm.deleteOne': '刪除 "{name}"?',
|
||||
'sftp.deleteConfirm.single': '刪除 "{name}"?',
|
||||
'sftp.deleteConfirm.title': '刪除 {count} 個專案?',
|
||||
'sftp.deleteConfirm.desc': '此操作不可復原,將刪除以下內容:',
|
||||
'sftp.deleteConfirm.descSingle': '此操作不可復原。',
|
||||
'sftp.deleteConfirm.host': '主機',
|
||||
'sftp.deleteConfirm.path': '路徑',
|
||||
'sftp.error.loadFailed': '載入目錄失敗',
|
||||
'sftp.error.downloadFailed': '下載失敗',
|
||||
'sftp.error.uploadFailed': '上傳失敗',
|
||||
'sftp.error.deleteFailed': '刪除失敗',
|
||||
'sftp.error.createFolderFailed': '建立資料夾失敗',
|
||||
'sftp.error.createFileFailed': '建立檔案失敗',
|
||||
'sftp.error.invalidFileName': '檔名包含非法字元:{chars}',
|
||||
'sftp.error.reservedName': '此檔名是系統保留名稱',
|
||||
'sftp.overwrite.title': '檔案已存在',
|
||||
'sftp.overwrite.desc': '名為"{name}"的檔案已存在。是否要替換它?',
|
||||
'sftp.overwrite.confirm': '替換',
|
||||
'sftp.error.renameFailed': '重新命名失敗',
|
||||
'sftp.picker.title': '選擇主機',
|
||||
'sftp.picker.desc': '為{side}窗格選擇主機',
|
||||
'sftp.picker.searchPlaceholder': '搜尋主機...',
|
||||
@@ -1219,8 +1196,6 @@ Vaults 分頁維持扁平,不使用這塊背景。
|
||||
'sftp.picker.local.desc': '瀏覽本機檔案',
|
||||
'sftp.picker.local.badge': '本機',
|
||||
'sftp.picker.connected.section': '已連線',
|
||||
'sftp.picker.connected.badge': '已連線',
|
||||
'sftp.picker.connected.connecting': '連線中',
|
||||
'sftp.picker.noMatch': '沒有相符的主機',
|
||||
'sftp.permissions.title': '編輯權限',
|
||||
'sftp.permissions.owner': '擁有者',
|
||||
@@ -1228,8 +1203,6 @@ Vaults 分頁維持扁平,不使用這塊背景。
|
||||
'sftp.permissions.others': '其他',
|
||||
'sftp.permissions.octal': '八進位制',
|
||||
'sftp.permissions.symbolic': '符號',
|
||||
'sftp.permissions.success': '權限已更新',
|
||||
'sftp.permissions.failed': '權限更新失敗',
|
||||
|
||||
// Quick Switcher
|
||||
'qs.search.placeholder': '搜尋主機或分頁',
|
||||
@@ -1245,23 +1218,20 @@ Vaults 分頁維持扁平,不使用這塊背景。
|
||||
'settings.tab.plugins': '外掛程式',
|
||||
"settings.plugins.author.official": "官方維護",
|
||||
"settings.plugins.author.officialMeaning": "由 Netcatty 專案維護。這不是安全認證。",
|
||||
"settings.plugins.manager.installed": "已安裝插件",
|
||||
"settings.plugins.manager.import": "導入 .ncpkg",
|
||||
"settings.plugins.manager.preview": "導入的插件保持停用,請檢查後再啟用。",
|
||||
"settings.plugins.manager.empty": "導入本地插件包以開始使用。",
|
||||
"settings.plugins.manager.installed": "已安裝外掛",
|
||||
"settings.plugins.manager.import": "匯入 .ncpkg",
|
||||
"settings.plugins.manager.preview": "匯入的外掛保持停用,請檢查後再啟用。",
|
||||
"settings.plugins.manager.empty": "匯入本地外掛包以開始使用。",
|
||||
"settings.plugins.manager.enabled": "已啟用",
|
||||
"settings.plugins.manager.disabled": "已停用",
|
||||
"settings.plugins.manager.enable": "啟用",
|
||||
"settings.plugins.manager.disable": "停用",
|
||||
"settings.plugins.manager.remove": "卸載",
|
||||
"settings.plugins.manager.removeNote": "卸載會移除插件代碼和本地 KV 數據,保留用戶設置、秘密存儲和同步 sidecar。",
|
||||
"settings.plugins.manager.remove": "解除安裝",
|
||||
"settings.plugins.manager.removeNote": "解除安裝會移除外掛代碼和本地 KV 資料,保留使用者設定、秘密儲存和同步 sidecar。",
|
||||
"settings.plugins.permissions.statusUnknown": "狀態不明",
|
||||
"plugins.sidebar.extensions": "擴充功能頁面",
|
||||
"plugins.sidebar.selectTerminal": "請先選擇已開啟的終端。",
|
||||
"plugins.sidebar.loading": "正在載入擴充功能頁面…",
|
||||
"plugins.vault.loading": "正在載入擴充功能頁面…",
|
||||
"plugins.vault.extensions": "擴充功能",
|
||||
"plugins.vault.back": "返回主機",
|
||||
"plugins.interaction.title": "外掛請求",
|
||||
"plugins.interaction.sharing": "分享的文字會交給此外掛及其已授權能力(包括網路存取)。讀取文字不代表核准新的網路目的地。",
|
||||
"plugins.interaction.input": "輸入文字",
|
||||
@@ -1315,44 +1285,44 @@ Vaults 分頁維持扁平,不使用這塊背景。
|
||||
"settings.plugins.themes.invalid": "部分主題配色未通過驗證或無法使用。",
|
||||
"settings.plugins.themes.failed": "無法套用主題。",
|
||||
"settings.plugins.manager.dataTheme": "主題套件:已驗證配色,不啟動程式執行環境。",
|
||||
"settings.plugins.manager.browser": "瀏覽器運行時:特權訪問通過宿主權限代理。",
|
||||
"settings.plugins.manager.advanced": "高級運行時:擁有完整 Node 文件系統和網絡能力,代理權限無法限制這些訪問。僅供開發預覽。",
|
||||
"settings.plugins.manager.data": "本地 KV 僅保留在此設備。只有明確標記為同步的非秘密設置進入加密雲 sidecar。插件包和權限授權不參與同步。",
|
||||
"settings.plugins.manager.browser": "瀏覽器運行時:特權存取通過宿主權限代理。",
|
||||
"settings.plugins.manager.advanced": "高級運行時:擁有完整 Node 檔案系統和網路能力,代理權限無法限制這些存取。僅供開發預覽。",
|
||||
"settings.plugins.manager.data": "本地 KV 僅保留在此裝置。只有明確標記為同步的非秘密設置進入加密雲 sidecar。外掛包和權限授權不參與同步。",
|
||||
"settings.plugins.manager.unbounded": "未宣告更細的資源範圍,仍受應用程式驗證和所選權限模式約束。",
|
||||
"settings.plugins.openView": "開啟",
|
||||
"settings.plugins.openManager": "開啟插件管理",
|
||||
"settings.plugins.sources.conflict": "此 ID 已从其他来源安装。请先卸载并明确清理旧来源数据,再换源重装。原来源:",
|
||||
"settings.plugins.sources.clearPrivate": "同时清除本来源的私有数据、授权和秘密,以便显式换源重装。此操作不可撤销。",
|
||||
"settings.plugins.openManager": "開啟外掛管理",
|
||||
"settings.plugins.sources.conflict": "此 ID 已從其他來源安裝。請先解除安裝並明確清理舊來源資料,再換源重新安裝。原來源:",
|
||||
"settings.plugins.sources.clearPrivate": "同時清除本來源的私有資料、授權和秘密,以便明確換源重新安裝。此操作無法復原。",
|
||||
"settings.plugins.sources.short.official": "官方",
|
||||
"settings.plugins.sources.short.thirdparty": "第三方",
|
||||
"settings.plugins.sources.short.local": "本機",
|
||||
"settings.plugins.sources.official": "官方市场",
|
||||
"settings.plugins.sources.thirdparty": "第三方市场",
|
||||
"settings.plugins.sources.manage": "管理来源",
|
||||
"settings.plugins.sources.select": "选择来源",
|
||||
"settings.plugins.sources.empty": "选择或添加第三方来源。",
|
||||
"settings.plugins.sources.add": "添加来源",
|
||||
"settings.plugins.sources.remove": "移除来源",
|
||||
"settings.plugins.sources.name": "来源名称",
|
||||
"settings.plugins.sources.address": "HTTPS 来源地址",
|
||||
"settings.plugins.sources.risk": "第三方来源不代表 Netcatty 维护或认可。安装前请核对真实域名、插件权限与作者。",
|
||||
"settings.plugins.sources.accept": "我信任此域名提供插件目录和软件包。此操作不会授予插件权限。",
|
||||
"settings.plugins.sources.removeNote": "保留已安装插件及数据,停止此来源更新,不会自动切换到其他来源。",
|
||||
"settings.plugins.sources.disablePlugins": "同时停用来自该来源的插件",
|
||||
"settings.plugins.sources.installConfirm": "确认第三方安装",
|
||||
"settings.plugins.sources.source": "来源",
|
||||
"settings.plugins.sources.local": "本地导入",
|
||||
"settings.plugins.sources.all": "全部来源",
|
||||
"settings.plugins.title": "插件",
|
||||
"settings.plugins.configuration": "插件設定",
|
||||
"settings.plugins.description": "管理已安裝插件,瀏覽精選目錄。",
|
||||
"settings.plugins.sources.official": "官方市集",
|
||||
"settings.plugins.sources.thirdparty": "第三方市集",
|
||||
"settings.plugins.sources.manage": "管理來源",
|
||||
"settings.plugins.sources.select": "選擇來源",
|
||||
"settings.plugins.sources.empty": "選擇或新增第三方來源。",
|
||||
"settings.plugins.sources.add": "新增來源",
|
||||
"settings.plugins.sources.remove": "移除來源",
|
||||
"settings.plugins.sources.name": "來源名稱",
|
||||
"settings.plugins.sources.address": "HTTPS 來源位址",
|
||||
"settings.plugins.sources.risk": "第三方來源不代表 Netcatty 維護或認可。安裝前請核對真實網域、外掛權限與作者。",
|
||||
"settings.plugins.sources.accept": "我信任此網域提供外掛目錄和套件。此操作不會授予外掛權限。",
|
||||
"settings.plugins.sources.removeNote": "保留已安裝外掛及資料,停止此來源更新,不會自動切換到其他來源。",
|
||||
"settings.plugins.sources.disablePlugins": "同時停用來自該來源的外掛",
|
||||
"settings.plugins.sources.installConfirm": "確認第三方安裝",
|
||||
"settings.plugins.sources.source": "來源",
|
||||
"settings.plugins.sources.local": "本機匯入",
|
||||
"settings.plugins.sources.all": "全部來源",
|
||||
"settings.plugins.title": "外掛",
|
||||
"settings.plugins.configuration": "外掛設定",
|
||||
"settings.plugins.description": "管理已安裝外掛,瀏覽精選目錄。",
|
||||
'settings.plugins.loading': '正在載入外掛程式設定…',
|
||||
"settings.plugins.market.results": "{count} 個插件",
|
||||
"settings.plugins.market.results": "{count} 個外掛",
|
||||
"settings.plugins.manager.lastError": "上次記錄的錯誤",
|
||||
"settings.plugins.sources.offline": "來源暫不可用。如已快取此來源通過驗證的目錄,僅可繼續瀏覽;重新整理成功前無法安裝。",
|
||||
"settings.plugins.sources.note": "此目錄由所選第三方提供,不屬於 Netcatty 精選目錄。安裝前請核對來源網域和權限,更新需手動確認。",
|
||||
"settings.plugins.sources.sourceOnly": "此提供方僅提供原始碼項目,沒有可下載外掛套件;請查看作者的建置和匯入說明。",
|
||||
"settings.plugins.market.offline": "官方目錄暫時無法使用,正在顯示上次有效目錄或內建範例。重新整理成功前無法從市場安裝。",
|
||||
"settings.plugins.market.offline": "官方目錄暫時無法使用,正在顯示上次有效目錄或內建範例。重新整理成功前無法從市集安裝。",
|
||||
"settings.plugins.manager.details": "查看詳情",
|
||||
"settings.plugins.manager.noDescription": "作者尚未提供功能簡介。",
|
||||
"settings.plugins.status": "{count} 項提醒",
|
||||
@@ -1362,22 +1332,22 @@ Vaults 分頁維持扁平,不使用這塊背景。
|
||||
"settings.plugins.market.readmeInfo": "README 來源說明",
|
||||
"settings.plugins.market.installed": "已安裝",
|
||||
"settings.plugins.market.sourceBadge": "原始碼範例",
|
||||
"settings.plugins.market.title": "插件市場",
|
||||
"settings.plugins.market.note": "精選開源插件。審核不代表安全認證,更新由你手動確認。",
|
||||
"settings.plugins.market.back": "所有插件",
|
||||
"settings.plugins.market.title": "外掛市集",
|
||||
"settings.plugins.market.note": "精選開源外掛。審核不代表安全認證,更新由你手動確認。",
|
||||
"settings.plugins.market.back": "所有外掛",
|
||||
"settings.plugins.market.install": "安裝此版本(保持停用)",
|
||||
"settings.plugins.market.installNote": "這會替換並停止已安裝版本。請在已安裝列表檢查權限後再啟用。",
|
||||
"settings.plugins.market.sourceOnly": "第一方源碼示例。請用本地 CLI 構建並導入 .ncpkg;尚未發佈可下載發行包。",
|
||||
"settings.plugins.market.readmeNote": "固定到上面的提交。HTML 不執行,遠程圖片不加載。內容由插件作者提供。",
|
||||
"settings.plugins.manager.noVault": "系統密鑰存儲不可用。秘密和憑據操作被阻止;瀏覽市場和不使用秘密的插件仍可使用。",
|
||||
"settings.plugins.market.sourceOnly": "第一方源碼示例。請用本地 CLI 構建並匯入 .ncpkg;尚未發佈可下載發行包。",
|
||||
"settings.plugins.market.readmeNote": "固定到上面的提交。HTML 不執行,遠端圖片不載入。內容由外掛作者提供。",
|
||||
"settings.plugins.manager.noVault": "系統金鑰儲存不可用。秘密和憑據操作被阻止;瀏覽市集和不使用秘密的外掛仍可使用。",
|
||||
"settings.plugins.manager.sensitive": "敏感存取:此能力可能涉及私密資料,可在權限設定中調整其模式。",
|
||||
"settings.plugins.manager.dual": "默認使用瀏覽器運行時,但包中還包含擁有完整設備權限的 Node 入口;僅限開發者模式。",
|
||||
"settings.plugins.manager.advancedDeclaration": "瀏覽器入口聲明瞭高級權限。不適用於普通瀏覽器插件模式;請逐項檢查聲明權限。",
|
||||
"settings.plugins.manager.dual": "預設使用瀏覽器運行時,但包中還包含擁有完整裝置權限的 Node 入口;僅限開發者模式。",
|
||||
"settings.plugins.manager.advancedDeclaration": "瀏覽器入口聲明瞭高級權限。不適用於普通瀏覽器外掛模式;請逐項檢查聲明權限。",
|
||||
"settings.plugins.market.retry": "重試",
|
||||
"settings.plugins.market.empty": "目錄暫無插件,仍可導入本地瀏覽器插件。",
|
||||
"settings.plugins.market.empty": "目錄暫無外掛,仍可匯入本地瀏覽器外掛。",
|
||||
"settings.plugins.market.emptyReadme": "README 內容為空。",
|
||||
"settings.plugins.market.search": "搜索名稱、作者或描述",
|
||||
"settings.plugins.market.noResults": "沒有匹配插件,請嘗試其他關鍵詞。",
|
||||
"settings.plugins.market.noResults": "沒有匹配外掛,請嘗試其他關鍵詞。",
|
||||
"settings.plugins.market.manifest": "兼容性與權限",
|
||||
'settings.plugins.empty': '目前沒有已啟用外掛程式提供設定。',
|
||||
'settings.plugins.scopeContext': '請在對應的 {scope} 情境中開啟此設定。',
|
||||
@@ -1410,6 +1380,7 @@ Vaults 分頁維持扁平,不使用這塊背景。
|
||||
'plugins.hostActions.selectionNote': '僅向此外掛分享所選主機的中繼資料:名稱、位址、使用者名稱、協定、群組和標籤。選擇群組僅包含本次選取的成員。後續編輯或連線請求遵循此外掛的權限設定。',
|
||||
'plugins.hostActions.create': '預覽主機草稿',
|
||||
'plugins.hostActions.edit': '預覽主機修改',
|
||||
'plugins.hostActions.streamNote': '允許此外掛透過選定的 SSH 伺服器向以上位址與連接埠收發資料。位址由該伺服器解析,可能讀取或修改資料庫資料。不會開啟終端機或執行啟動腳本,SSH 密碼與私鑰不會交給外掛。請選擇 SSH 伺服器。',
|
||||
'plugins.hostActions.connect': '確認連線',
|
||||
'plugins.hostActions.fieldDiff': '即將儲存的修改',
|
||||
'plugins.hostActions.defaultsWarning': '將套用已儲存的連線預設設定。修改群組可能改變繼承的驗證、代理和指令碼設定。',
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
export const zhTWScriptsMessages = {
|
||||
'scripts.meta.name': '名稱',
|
||||
'scripts.meta.language': '語言',
|
||||
'scripts.meta.description': '描述',
|
||||
'scripts.meta.descriptionPlaceholder': '可選,指令碼的簡要說明',
|
||||
'scripts.meta.trigger': '觸發方式',
|
||||
@@ -15,7 +14,6 @@ export const zhTWScriptsMessages = {
|
||||
'scripts.actions.openEditor': '彈出視窗編輯',
|
||||
'scripts.actions.openEditorHint': '在更大的視窗中編輯指令碼',
|
||||
'scripts.editor.modalTitle': '指令碼編輯器',
|
||||
'scripts.editor.modalSubtitle': '在更大的工作區中編輯指令碼的中繼資料與程式碼。',
|
||||
'scripts.editor.lineCount': '{count} 行',
|
||||
'scripts.editor.resize': '調整編輯器高度',
|
||||
'scripts.targets.hint': '所選群組會動態比對,之後加入群組的主機也會自動生效。',
|
||||
@@ -86,17 +84,13 @@ export const zhTWScriptsMessages = {
|
||||
'scripts.dialog.retry': '重試',
|
||||
'scripts.dialog.skip': '跳過',
|
||||
'scripts.dialog.abort': '終止',
|
||||
'scripts.running.stepProgress': '步驟 {current} / {total}',
|
||||
'scripts.running.determinateProgress': '{label} {current}/{total}',
|
||||
'scripts.running.progressFallback': '進度',
|
||||
'scripts.running.operationsCount': '已執行 {count} 個操作',
|
||||
'scripts.running.opsPrefix': '已執行 ',
|
||||
'scripts.running.opsSuffix': ' 個操作',
|
||||
'scripts.running.elapsedLabel': '耗時',
|
||||
'scripts.running.lastSentLabel': '已傳送:',
|
||||
'scripts.running.elapsed': '耗時 {elapsed}',
|
||||
'scripts.running.completedSummary': '已完成 · 共 {count} 個操作 · {elapsed}',
|
||||
'scripts.running.dismissHint': '點選關閉',
|
||||
'scripts.running.dismiss': '關閉',
|
||||
'scripts.running.viewLogs': '檢視日誌',
|
||||
'scripts.running.logTitle': '{name} · 執行日誌',
|
||||
@@ -111,26 +105,12 @@ export const zhTWScriptsMessages = {
|
||||
'vault.nav.scripts': '指令碼',
|
||||
'snippets.action.newScript': '新增自動化指令碼',
|
||||
'hostDetails.section.automation': '自動化',
|
||||
'hostDetails.automation.loginScript': '登入指令碼',
|
||||
'hostDetails.automation.loginScriptPlaceholder': '選擇指令碼',
|
||||
'hostDetails.automation.none': '無',
|
||||
'hostDetails.automation.outputTriggers': '輸出觸發器',
|
||||
'hostDetails.automation.addTrigger': '新增觸發器',
|
||||
'hostDetails.automation.triggerPatternPlaceholder': '正規表示式',
|
||||
'hostDetails.automation.linkedScripts': '已關聯指令碼',
|
||||
'hostDetails.automation.linkedScriptsEmpty': '尚未關聯任何指令碼。',
|
||||
'hostDetails.automation.linkScriptPlaceholder': '關聯既有指令碼…',
|
||||
'hostDetails.automation.unlink': '取消關聯',
|
||||
'hostDetails.automation.equivalenceHint': '此處關聯會將本主機加入 Scripts 中該指令碼的目標列表,兩側檢視同步。',
|
||||
'hostDetails.automation.queueHint': '連線本主機時依序執行指令碼。全域指令碼最先執行,再執行下方佇列。',
|
||||
'hostDetails.automation.globalScripts': '全域連線指令碼',
|
||||
'hostDetails.automation.globalScriptsHint': '每次連線時最先執行。順序在指令碼庫排序中調整。',
|
||||
'hostDetails.automation.connectQueue': '本主機執行佇列',
|
||||
'hostDetails.automation.connectQueueEmpty': '尚未為本主機設定連線指令碼佇列。',
|
||||
'hostDetails.automation.addToQueuePlaceholder': '新增指令碼到佇列…',
|
||||
'hostDetails.automation.moveUp': '上移',
|
||||
'hostDetails.automation.moveDown': '下移',
|
||||
'hostDetails.automation.removeFromQueue': '從佇列移除',
|
||||
'hostDetails.automation.dragHandle': '拖曳排序',
|
||||
'hostDetails.automation.queueDragHint': '拖動項目即可調整連線時的執行順序。',
|
||||
};
|
||||
@@ -4,23 +4,21 @@ export const zhTwSystemManagerMessages: Messages = {
|
||||
'terminal.layer.system': '系統',
|
||||
|
||||
'systemManager.noSession': '沒有使用中的終端工作階段。',
|
||||
'systemManager.notConnected': '請先連線到主機以管理程序與服務。',
|
||||
'systemManager.notConnected': '請先連線到主機以管理行程與服務。',
|
||||
'systemManager.empty': '暫無資料。',
|
||||
'systemManager.tabs.overview': '概覽',
|
||||
'systemManager.tabs.processes': '程序',
|
||||
'systemManager.tabs.processes': '行程',
|
||||
'systemManager.tabs.ports': '連接埠',
|
||||
'systemManager.tabs.services': '服務',
|
||||
'systemManager.tabs.tmux': 'tmux',
|
||||
'systemManager.tabs.docker': 'Docker',
|
||||
'systemManager.tabs.gpu': 'GPU',
|
||||
'systemManager.tabs.ariaLabel': '系統管理分區',
|
||||
'systemManager.popup.loading': '正在開啟終端…',
|
||||
'systemManager.popup.startupFailed': '啟動指令未順利完成。請確認目標仍可使用後再試一次。',
|
||||
|
||||
'systemManager.errors.loadProcesses': '載入程序列表失敗',
|
||||
'systemManager.errors.loadProcesses': '載入行程列表失敗',
|
||||
'systemManager.errors.loadTmux': '載入 tmux 工作階段失敗',
|
||||
'systemManager.errors.loadTmuxWindows': '載入 tmux 視窗失敗',
|
||||
'systemManager.errors.loadTmuxPanes': '載入 tmux 窗格失敗',
|
||||
'systemManager.errors.loadTmuxClients': '載入 tmux 用戶端失敗',
|
||||
'systemManager.errors.actionFailed': '操作失敗',
|
||||
'systemManager.errors.loadDocker': '載入容器列表失敗',
|
||||
@@ -31,7 +29,6 @@ export const zhTwSystemManagerMessages: Messages = {
|
||||
'systemManager.errors.nerdctlUnreachable': 'nerdctl 無法連線到 containerd',
|
||||
'systemManager.errors.clusterUnreachable': '無法連到內容 {{context}} 的叢集',
|
||||
'systemManager.errors.clusterUnreachableGeneric': '無法連到叢集',
|
||||
'systemManager.errors.loadOverview': '載入系統概覽失敗',
|
||||
'systemManager.errors.loadGpu': '載入 GPU / NPU 狀態失敗',
|
||||
'systemManager.errors.loadPorts': '載入監聽連接埠失敗',
|
||||
'systemManager.errors.loadServices': '載入 systemd 服務失敗',
|
||||
@@ -58,35 +55,31 @@ export const zhTwSystemManagerMessages: Messages = {
|
||||
'systemManager.overview.cpuCores': 'CPU 核心',
|
||||
'systemManager.overview.disks': '磁碟',
|
||||
'systemManager.overview.interfaces': '網路介面',
|
||||
'systemManager.overview.topProcesses': '記憶體佔用最高程序',
|
||||
'systemManager.overview.topProcesses': '記憶體佔用最高行程',
|
||||
'systemManager.overview.noData': '暫無資料',
|
||||
'systemManager.overview.noDisks': '暫無磁碟資料',
|
||||
'systemManager.overview.noInterfaces': '暫無網路卡資料',
|
||||
'systemManager.overview.noTopProcesses': '暫無程序資料',
|
||||
'systemManager.overview.noTopProcesses': '暫無行程資料',
|
||||
|
||||
'systemManager.processes.search': '搜尋程序…',
|
||||
'systemManager.processes.command': '指令',
|
||||
'systemManager.processes.user': '使用者',
|
||||
'systemManager.processes.search': '搜尋行程…',
|
||||
'systemManager.processes.term': '終止',
|
||||
'systemManager.processes.kill': '強制終止',
|
||||
'systemManager.processes.stop': '暫停 (SIGSTOP)',
|
||||
'systemManager.processes.cont': '繼續 (SIGCONT)',
|
||||
'systemManager.processes.hup': '掛斷 (SIGHUP)',
|
||||
'systemManager.processes.renice': '調整優先順序',
|
||||
'systemManager.processes.renicePrompt': 'Nice 值 (-20 到 19)',
|
||||
'systemManager.processes.reniceInvalid': 'Nice 值必須在 -20 到 19 之間',
|
||||
'systemManager.processes.confirmKill': '向程序 {{pid}} 傳送 SIGKILL?',
|
||||
'systemManager.processes.confirmSignal': '向程序 {{pid}} 傳送 SIG{{signal}}?',
|
||||
'systemManager.processes.confirmKill': '向行程 {{pid}} 傳送 SIGKILL?',
|
||||
'systemManager.processes.confirmSignal': '向行程 {{pid}} 傳送 SIG{{signal}}?',
|
||||
'systemManager.processes.filter.all': '全部',
|
||||
'systemManager.processes.filter.running': '執行中',
|
||||
'systemManager.processes.ppid': '父程序 PID',
|
||||
'systemManager.processes.ppid': '父行程 PID',
|
||||
'systemManager.processes.rss': '實體記憶體',
|
||||
'systemManager.processes.vsz': '虛擬記憶體',
|
||||
'systemManager.processes.elapsed': '執行時長',
|
||||
'systemManager.processes.stat': '狀態',
|
||||
'systemManager.processes.meta': '{{count}} 個程序',
|
||||
'systemManager.processes.loading': '正在載入程序…',
|
||||
'systemManager.processes.loadingMore': '正在載入更多程序…',
|
||||
'systemManager.processes.meta': '{{count}} 個行程',
|
||||
'systemManager.processes.loading': '正在載入行程…',
|
||||
'systemManager.processes.state.running': '執行中',
|
||||
'systemManager.processes.state.sleeping': '睡眠',
|
||||
'systemManager.processes.state.stopped': '已暫停',
|
||||
@@ -124,12 +117,9 @@ export const zhTwSystemManagerMessages: Messages = {
|
||||
'systemManager.tmux.attached': '已附加',
|
||||
'systemManager.tmux.detached': '未附加',
|
||||
'systemManager.tmux.windows': '{{count}} 個視窗',
|
||||
'systemManager.tmux.created': '建立時間',
|
||||
'systemManager.tmux.activity': '活動時間',
|
||||
'systemManager.tmux.rename': '重新命名',
|
||||
'systemManager.tmux.detach': '全部分離',
|
||||
'systemManager.tmux.killSession': '結束工作階段',
|
||||
'systemManager.tmux.killServer': '結束 tmux 伺服器',
|
||||
'systemManager.tmux.loadingDetails': '正在載入詳情…',
|
||||
'systemManager.tmux.clients': '已附加用戶端',
|
||||
'systemManager.tmux.windowList': '視窗',
|
||||
@@ -140,31 +130,17 @@ export const zhTwSystemManagerMessages: Messages = {
|
||||
'systemManager.docker.unavailable': '此主機未偵測到容器執行環境(Docker、Podman、nerdctl 或 kubectl)',
|
||||
'systemManager.tmux.windowsMismatch': '工作階段顯示有 {{count}} 個視窗,但 list-windows 未傳回任何視窗',
|
||||
'systemManager.tmux.lastCommand': '最後執行的指令:{{command}}',
|
||||
'systemManager.tmux.noPanes': '沒有窗格',
|
||||
'systemManager.tmux.panes': '{{count}} 個窗格',
|
||||
'systemManager.tmux.active': '使用中',
|
||||
'systemManager.tmux.unnamedWindow': '未命名視窗',
|
||||
'systemManager.tmux.unnamedPane': '未命名窗格',
|
||||
'systemManager.tmux.attachWindow': '附加到視窗',
|
||||
'systemManager.tmux.selectWindow': '選擇視窗',
|
||||
'systemManager.tmux.killWindow': '關閉視窗',
|
||||
'systemManager.tmux.killPane': '關閉窗格',
|
||||
'systemManager.tmux.splitHorizontal': '水平分割',
|
||||
'systemManager.tmux.splitVertical': '垂直分割',
|
||||
'systemManager.tmux.sendKeys': '傳送按鍵',
|
||||
'systemManager.tmux.sendKeysTo': '向視窗 {{window}} 窗格 {{pane}} 傳送按鍵',
|
||||
'systemManager.tmux.sendKeysPlaceholder': '指令或文字…',
|
||||
'systemManager.tmux.renameSessionPrompt': '重新命名工作階段',
|
||||
'systemManager.tmux.renameWindowPrompt': '重新命名視窗',
|
||||
'systemManager.tmux.windowName': '視窗名稱',
|
||||
'systemManager.tmux.confirmKillSession': '確定結束 tmux 工作階段「{{name}}」?',
|
||||
'systemManager.tmux.confirmDetachSession': '確定將所有用戶端從「{{name}}」分離?',
|
||||
'systemManager.tmux.confirmKillWindow': '確定關閉視窗「{{name}}」?',
|
||||
'systemManager.tmux.confirmKillPane': '確定關閉窗格 #{{index}}?',
|
||||
'systemManager.tmux.confirmKillServer': '確定結束 tmux 伺服器?所有工作階段將被終止。',
|
||||
'systemManager.tmux.meta': '{{count}} 個工作階段',
|
||||
|
||||
'systemManager.docker.title': '容器',
|
||||
'systemManager.docker.subTabs.containers': '容器',
|
||||
'systemManager.docker.subTabs.images': '映像',
|
||||
'systemManager.docker.empty': '未找到容器',
|
||||
@@ -177,7 +153,6 @@ export const zhTwSystemManagerMessages: Messages = {
|
||||
'systemManager.docker.filter.paused': '已暫停',
|
||||
'systemManager.docker.shell': 'Shell',
|
||||
'systemManager.docker.logs': '日誌',
|
||||
'systemManager.docker.details': '詳情',
|
||||
'systemManager.docker.inspect': 'Inspect',
|
||||
'systemManager.docker.imageInspect': '映像 Inspect',
|
||||
'systemManager.docker.confirmRemove': '確定刪除此容器?',
|
||||
@@ -236,9 +211,9 @@ export const zhTwSystemManagerMessages: Messages = {
|
||||
'systemManager.ports.search': '搜尋連接埠…',
|
||||
'systemManager.ports.meta': '{{count}} 個監聽',
|
||||
'systemManager.ports.filter.all': '全部',
|
||||
'systemManager.ports.unknownProcess': '未知程序',
|
||||
'systemManager.ports.terminate': '結束程序',
|
||||
'systemManager.ports.confirmTerminate': '向佔用該連接埠的程序 {{pid}} 傳送 SIGTERM?',
|
||||
'systemManager.ports.unknownProcess': '未知行程',
|
||||
'systemManager.ports.terminate': '結束行程',
|
||||
'systemManager.ports.confirmTerminate': '向佔用該連接埠的行程 {{pid}} 傳送 SIGTERM?',
|
||||
|
||||
'systemManager.services.unavailable': '此主機未偵測到 systemctl。',
|
||||
'systemManager.services.loading': '正在載入 systemd 服務…',
|
||||
@@ -261,10 +236,10 @@ export const zhTwSystemManagerMessages: Messages = {
|
||||
'systemManager.gpu.unavailable': '此主機未偵測到 NVIDIA GPU 或昇騰 NPU 工具。',
|
||||
'systemManager.gpu.loading': '正在載入加速卡狀態…',
|
||||
'systemManager.gpu.empty': '已偵測到加速卡工具,但未回傳裝置資訊。',
|
||||
'systemManager.gpu.meta': '{{devices}} 張卡 · {{processes}} 個程序',
|
||||
'systemManager.gpu.meta': '{{devices}} 張卡 · {{processes}} 個行程',
|
||||
'systemManager.gpu.devices': '裝置',
|
||||
'systemManager.gpu.processes': '計算程序',
|
||||
'systemManager.gpu.noProcesses': '目前沒有計算程序。',
|
||||
'systemManager.gpu.processes': '計算行程',
|
||||
'systemManager.gpu.noProcesses': '目前沒有計算行程。',
|
||||
'systemManager.gpu.vendor.nvidia': 'NVIDIA',
|
||||
'systemManager.gpu.vendor.ascend': '昇騰',
|
||||
'systemManager.gpu.util': '使用率',
|
||||
|
||||
@@ -12,6 +12,8 @@ export const zhTWTerminalMessages: Messages = {
|
||||
'terminal.directory.hidden': '顯示隱藏目錄',
|
||||
'terminal.directory.refresh': '重新整理',
|
||||
'terminal.directory.unavailable': '此工作階段暫不支援目錄導覽。',
|
||||
'terminal.directory.integrationUnavailable': 'PowerShell 目錄整合尚未就緒,啟動參數或執行原則可能阻止載入。',
|
||||
'terminal.directory.nonFilesystem': '目前 PowerShell 位置不是檔案系統目錄。',
|
||||
'terminal.directory.busy': '請等待終端回到空白命令提示字元。',
|
||||
'terminal.directory.readFailed': '無法讀取此目錄,請重新整理後重試。',
|
||||
'terminal.directory.changeFailed': '未能確認目錄切換,請重新整理後重試。',
|
||||
@@ -57,7 +59,6 @@ export const zhTWTerminalMessages: Messages = {
|
||||
'terminal.osc7Setup.title': '設定目錄追蹤',
|
||||
'terminal.osc7Setup.desc': 'Netcatty 會為目前遠端使用者新增 OSC 7 提示字元設定。這樣在 sudo 或 su 之後,SFTP 也能繼續跟隨終端目錄。',
|
||||
'terminal.osc7Setup.targets': '可能寫入的檔案',
|
||||
'terminal.osc7Setup.command': '將執行的指令',
|
||||
'terminal.osc7Setup.run': '執行設定',
|
||||
'terminal.osc7Setup.running': '正在設定...',
|
||||
'terminal.osc7Setup.configured': '目錄追蹤已設定',
|
||||
@@ -98,37 +99,18 @@ export const zhTWTerminalMessages: Messages = {
|
||||
'sftp.context.copyPath': '複製檔案路徑',
|
||||
'sftp.context.openWith': '開啟方式...',
|
||||
'sftp.context.edit': '編輯',
|
||||
'sftp.context.preview': '預覽',
|
||||
'sftp.opener.title': '開啟方式',
|
||||
'sftp.opener.desc': '選擇一個應用程式來開啟此檔案',
|
||||
'sftp.opener.builtInEditor': '內建編輯器',
|
||||
'sftp.opener.editDescription': '編輯文字檔案',
|
||||
'sftp.opener.builtInImageViewer': '內建圖片預覽',
|
||||
'sftp.opener.previewDescription': '預覽圖片',
|
||||
'sftp.opener.systemApp': '選擇應用程式...',
|
||||
'sftp.opener.systemAppDescription': '從本機選擇一個應用程式',
|
||||
'sftp.opener.onlySystemApp': '此檔案只能用外部應用程式開啟',
|
||||
'sftp.opener.noAppsAvailable': '無可用應用程式',
|
||||
'sftp.opener.noExtension': '無副檔名檔案',
|
||||
'sftp.opener.setDefault': '始終使用此方式開啟 {ext} 檔案',
|
||||
'sftp.opener.confirmTitle': '設為預設?',
|
||||
'sftp.opener.confirmDescription': '是否始終使用 {app} 開啟 {ext} 檔案?',
|
||||
'sftp.opener.yesRemember': '是,記住此選擇',
|
||||
'sftp.opener.justOnce': '僅此一次',
|
||||
'sftp.opener.confirm.title': '設定預設應用程式',
|
||||
'sftp.opener.confirm.desc': '是否始終使用此應用程式開啟 .{ext} 檔案?',
|
||||
'sftp.editor.title': '文字編輯器',
|
||||
'sftp.editor.save': '儲存到遠端',
|
||||
'sftp.editor.saving': '儲存中...',
|
||||
'sftp.editor.saved': '儲存成功',
|
||||
'sftp.editor.saveFailed': '儲存檔案失敗',
|
||||
'sftp.editor.unsavedChanges': '你有未儲存的更改。確定要關閉嗎?',
|
||||
'sftp.editor.syntaxHighlight': '語法標示',
|
||||
'sftp.preview.title': '圖片預覽',
|
||||
'sftp.preview.zoomIn': '放大',
|
||||
'sftp.preview.zoomOut': '縮小',
|
||||
'sftp.preview.resetZoom': '重設縮放',
|
||||
'sftp.preview.fitToWindow': '適應視窗',
|
||||
|
||||
// Settings > SFTP File Associations
|
||||
'settings.tab.sftpFileAssociations': 'SFTP',
|
||||
@@ -208,28 +190,16 @@ export const zhTWTerminalMessages: Messages = {
|
||||
'sftp.autoSync.error': '同步檔案失敗:{error}',
|
||||
|
||||
// SFTP Folder Upload Progress
|
||||
'sftp.upload.progress': '正在上傳 {current}/{total} 個檔案...',
|
||||
'sftp.upload.uploading': '正在上傳...',
|
||||
'sftp.upload.compressing': '正在壓縮...',
|
||||
'sftp.upload.extracting': '正在解壓...',
|
||||
'sftp.upload.scanning': '正在掃描檔案...',
|
||||
'sftp.upload.completed': '已完成',
|
||||
'sftp.upload.compressed': '壓縮傳輸',
|
||||
'sftp.upload.currentFile': '目前: {fileName}',
|
||||
'sftp.upload.cancelled': '上傳已取消',
|
||||
'sftp.upload.noFiles': '沒有可上傳的檔案',
|
||||
'sftp.upload.partialSuccess': '已上傳 {success} 個檔案,{failed} 個失敗',
|
||||
'sftp.upload.cancel': '取消',
|
||||
'sftp.upload.completedToPath': '已上傳至 {path}',
|
||||
|
||||
// SFTP Download
|
||||
'sftp.download.completed': '已下載',
|
||||
'sftp.download.cancelled': '下載已取消',
|
||||
|
||||
// SFTP Reconnecting
|
||||
'sftp.reconnecting.title': '正在重連...',
|
||||
'sftp.reconnecting.desc': '連線已斷開,正在嘗試重新連線',
|
||||
'sftp.reconnected': '連線已恢復',
|
||||
'sftp.error.reconnectFailed': '重連失敗,請重試。',
|
||||
'sftp.error.connectionLostManual': '連線已斷開,請手動重新連線。',
|
||||
'sftp.error.connectionLostReconnecting': '連線已斷開,正在重連...',
|
||||
@@ -247,6 +217,10 @@ export const zhTWTerminalMessages: Messages = {
|
||||
'settings.sftp.compressedUpload.enable': '啟用資料夾壓縮',
|
||||
'settings.sftp.compressedUpload.enableDesc': '自動使用 tar 壓縮資料夾後再傳輸。需要伺服器支援 tar 指令,不支援時自動改用一般傳輸。',
|
||||
|
||||
'settings.sftp.packedDownload': '打包下載',
|
||||
'settings.sftp.packedDownload.enable': '下載資料夾或多個項目時打包',
|
||||
'settings.sftp.packedDownload.enableDesc': '一次傳回所選內容,並在本機自動還原原本的資料夾結構。若伺服器不支援打包,會自動逐檔下載。',
|
||||
|
||||
'settings.sftp.skipUnchanged.enable': '跳過未改檔案',
|
||||
'settings.sftp.skipUnchanged.enableDesc': '當目標檔案的大小與修改時間已與來源一致時跳過傳輸(類似 rsync)。替換到暫存路徑時自動停用。',
|
||||
|
||||
@@ -489,7 +463,9 @@ export const zhTWTerminalMessages: Messages = {
|
||||
'settings.terminal.connection.defaultProxy.desc': '主機沒有單獨設定、也沒有從群組繼承代理時使用的已儲存代理。選擇「無」則直接連線。',
|
||||
'settings.terminal.connection.defaultProxy.none': '無',
|
||||
'settings.terminal.connection.sshAutoReconnectEnabled': 'SSH 斷線後自動重連',
|
||||
'settings.terminal.connection.sshAutoReconnectEnabled.desc': '開啟後,已連上的 SSH 工作階段意外斷開時會每 5 秒嘗試重新連線,直到關閉分頁或連線恢復。',
|
||||
'settings.terminal.connection.sshAutoReconnectEnabled.desc': '開啟後,SSH 工作階段意外斷開時會按設定間隔嘗試重新連線,直到關閉分頁或連線恢復。',
|
||||
'settings.terminal.connection.sshAutoReconnectInterval': 'SSH 重連間隔(秒)',
|
||||
'settings.terminal.connection.sshAutoReconnectInterval.desc': '自動重連嘗試之間的等待時間:5–3600 秒,預設 5 秒。修改從下次安排重試時生效,不改變已開始的等待。',
|
||||
'settings.terminal.connection.keepaliveInterval': '工作階段保持間隔',
|
||||
'settings.terminal.connection.keepaliveInterval.desc': '向伺服器傳送 SSH 保活資料包的頻率(秒)。設為 0 表示全域停用——單個主機可在自己的設定裡覆蓋此值。',
|
||||
'settings.terminal.connection.keepaliveCountMax': '最大無回應保活次數',
|
||||
@@ -510,8 +486,8 @@ export const zhTWTerminalMessages: Messages = {
|
||||
'settings.terminal.serverStats.refreshInterval.desc': '伺服器狀態重新整理的頻率。',
|
||||
'settings.terminal.serverStats.seconds': '秒',
|
||||
'settings.terminal.section.systemManager': '系統管理',
|
||||
'settings.terminal.systemManager.processRefreshInterval': '程序列表重新整理間隔',
|
||||
'settings.terminal.systemManager.processRefreshInterval.desc': '系統管理側欄中程序列表的重新整理頻率。',
|
||||
'settings.terminal.systemManager.processRefreshInterval': '行程列表重新整理間隔',
|
||||
'settings.terminal.systemManager.processRefreshInterval.desc': '系統管理側欄中行程列表的重新整理頻率。',
|
||||
'settings.terminal.systemManager.tmuxRefreshInterval': 'tmux 工作階段重新整理間隔',
|
||||
'settings.terminal.systemManager.tmuxRefreshInterval.desc': 'tmux 工作階段列表的重新整理頻率。',
|
||||
'settings.terminal.systemManager.dockerListRefreshInterval': '容器列表重新整理間隔',
|
||||
@@ -661,7 +637,6 @@ export const zhTWTerminalMessages: Messages = {
|
||||
'hostDetails.proxyPanel.credentials': '憑證',
|
||||
'hostDetails.proxyPanel.usernamePlaceholder': '使用者名稱',
|
||||
'hostDetails.proxyPanel.passwordPlaceholder': '密碼',
|
||||
'hostDetails.proxyPanel.identities': '身分',
|
||||
'hostDetails.proxyPanel.keychainIdentity': '鑰匙串身分',
|
||||
'hostDetails.proxyPanel.manualCredentials': '手動憑證',
|
||||
'hostDetails.proxyPanel.remove': '移除代理',
|
||||
@@ -682,8 +657,6 @@ export const zhTWTerminalMessages: Messages = {
|
||||
'hostDetails.envVars.newVariable': '新變數',
|
||||
'hostDetails.envVars.variableName': '變數名',
|
||||
'hostDetails.chain.title': '編輯鏈路',
|
||||
'hostDetails.chain.desc': '新增另一台主機將建立到 {host} 的連線。',
|
||||
'hostDetails.chain.addHost': '新增主機',
|
||||
'hostDetails.chain.target': '目標',
|
||||
'hostDetails.chain.availableHosts': '可用主機',
|
||||
'hostDetails.chain.clear': '清空',
|
||||
@@ -695,10 +668,7 @@ export const zhTWTerminalMessages: Messages = {
|
||||
'hostDetails.group.addProtocol': '新增協定',
|
||||
|
||||
// Keychain
|
||||
'keychain.filter.key': '金鑰',
|
||||
'keychain.filter.certificate': '憑證',
|
||||
'keychain.action.generateKey': '產生金鑰',
|
||||
'keychain.action.importKey': '匯入金鑰',
|
||||
'keychain.action.newIdentity': '新增身分',
|
||||
'keychain.action.importCertificate': '匯入憑證',
|
||||
'keychain.view.grid': '網格',
|
||||
@@ -739,20 +709,8 @@ export const zhTWTerminalMessages: Messages = {
|
||||
'keychain.export.exporting': '匯出中...',
|
||||
'keychain.export.exportAndAttach': '匯出並繫結',
|
||||
'keychain.export.title': '金鑰匯出',
|
||||
'keychain.export.exportToRequired': '匯出到 *',
|
||||
'keychain.export.selectHostPlaceholder': '選擇主機...',
|
||||
'keychain.export.locationLabel': '位置 ~ $1 *',
|
||||
'keychain.export.filenameLabel': '檔名 ~ $2 *',
|
||||
'keychain.export.advanced': '高階',
|
||||
'keychain.export.note.supportsOnly': '金鑰匯出目前僅支援',
|
||||
'keychain.export.note.systems': '系統。',
|
||||
'keychain.export.note.use': '請使用',
|
||||
'keychain.export.note.customize': '部分自訂匯出指令碼。',
|
||||
'keychain.export.scriptRequired': '指令碼 *',
|
||||
'keychain.export.exportToHost': '匯出到主機',
|
||||
'keychain.export.failedGeneric': '匯出失敗:{message}',
|
||||
'keychain.field.label': '名稱',
|
||||
'keychain.field.labelRequired': '名稱 *',
|
||||
'keychain.field.labelPlaceholder': '金鑰 Label',
|
||||
'keychain.field.privateKeyRequired': '私鑰 *',
|
||||
'keychain.field.publicKey': '公鑰',
|
||||
@@ -788,13 +746,9 @@ export const zhTWTerminalMessages: Messages = {
|
||||
"fido.recovery.usePassword": "改用已設定的密碼",
|
||||
"fido.recovery.passwordFallback": "正在使用此主機已設定的密碼登入",
|
||||
"fido.prompt.cancelled": "已取消安全金鑰驗證。",
|
||||
'fido.prompt.touchDone': '已觸摸',
|
||||
'fido.prompt.timeout': 'FIDO 提示已逾時,請重新連線。',
|
||||
'fido.error.opensshMissing': '需要支援 FIDO/libfido2 的 OpenSSH。macOS:brew install openssh libfido2。',
|
||||
'fido.error.agentUnavailable': '無法啟動支援 FIDO 的 SSH agent。',
|
||||
'keychain.generate.resident': '在裝置上儲存憑證',
|
||||
'keychain.generate.verifyRequired': '每次驗證 PIN',
|
||||
'keychain.action.loadResident': '從安全金鑰載入駐留金鑰',
|
||||
'keychain.generate.keySize': '金鑰長度',
|
||||
'keychain.generate.labelPlaceholder': '金鑰 Label',
|
||||
'keychain.generate.passphrasePlaceholder': 'Passphrase(可選)',
|
||||
@@ -804,7 +758,6 @@ export const zhTWTerminalMessages: Messages = {
|
||||
'keychain.import.dropHint': '將金鑰檔案拖到這裡',
|
||||
'keychain.import.importFromFile': '從檔案匯入',
|
||||
'keychain.import.saveKey': '儲存金鑰',
|
||||
'keychain.import.importedKeyLabel': '已匯入金鑰',
|
||||
'keychain.identity.usernameRequired': '使用者名稱 *',
|
||||
'keychain.identity.method.passwordOnly': '密碼',
|
||||
'keychain.identity.summary.password': '認證密碼',
|
||||
@@ -813,14 +766,8 @@ export const zhTWTerminalMessages: Messages = {
|
||||
'keychain.identity.summary.passwordAndKey': '認證密碼與金鑰',
|
||||
'keychain.identity.summary.passwordAndCertificate': '認證密碼與憑證',
|
||||
'keychain.identity.summary.none': '無憑證',
|
||||
'keychain.identity.selectCredential': '選擇{kind}',
|
||||
'keychain.identity.save': '儲存',
|
||||
'keychain.identity.update': '更新',
|
||||
'keychain.keyDialog.newTitle': '新增金鑰',
|
||||
'keychain.keyDialog.newDesc': '新增新的 SSH 金鑰',
|
||||
'keychain.keyDialog.editTitle': '編輯金鑰',
|
||||
'keychain.keyDialog.editDesc': '更新此 SSH 金鑰',
|
||||
'keychain.keyDialog.updateKey': '更新金鑰',
|
||||
|
||||
// Tabs
|
||||
'tabs.closeSessionAria': '關閉工作階段',
|
||||
@@ -832,6 +779,8 @@ export const zhTWTerminalMessages: Messages = {
|
||||
'tabs.duplicateSession': '複製工作階段',
|
||||
'tabs.copyTabToNewWindow': '複製分頁到新視窗',
|
||||
'tabs.copyTabToNewWindowFailed': '無法在新視窗開啟分頁',
|
||||
'tabs.moveTabToNewWindow': '移動分頁到新視窗',
|
||||
'tabs.moveTabToNewWindowFailed': '無法將分頁移動到新視窗',
|
||||
'tabs.closeOthers': '關閉其他分頁',
|
||||
'tabs.closeToLeft': '關閉左側分頁',
|
||||
'tabs.closeToRight': '關閉右側分頁',
|
||||
@@ -891,8 +840,6 @@ export const zhTWTerminalMessages: Messages = {
|
||||
'snippets.targets.allHosts': '對所有主機生效',
|
||||
'snippets.targets.allHostsShort': '所有主機',
|
||||
'snippets.targets.allHostsActive': '將作用於所有可連線的主機。',
|
||||
'snippets.kind.codeSnippet': '程式碼片段',
|
||||
'snippets.kind.automationScript': '自動化指令碼',
|
||||
'snippets.search.noResults.title': '無相符結果',
|
||||
'snippets.search.noResults.desc': '沒有程式碼片段或程式碼包與"{query}"相符。換一個關鍵字,或清除搜尋進行瀏覽。',
|
||||
'snippets.section.packages': '程式碼包',
|
||||
@@ -928,9 +875,6 @@ export const zhTWTerminalMessages: Messages = {
|
||||
'snippets.import.modal.multipleFiles': '已選擇 {count} 個檔案',
|
||||
'snippets.import.modal.parsedSummary': '{files} 個檔案,{total} 個程式碼片段,{packages} 個程式碼包,{conflicts} 個重複指令。主機繫結會被忽略。',
|
||||
'snippets.import.modal.confirm': '確認匯入',
|
||||
'snippets.import.conflict.title': '匯入程式碼片段?',
|
||||
'snippets.import.conflict.desc': '“{file}”包含 {total} 個程式碼片段,其中 {conflicts} 個指令已存在。',
|
||||
'snippets.import.conflict.hostBindingsNote': '程式碼片段的主機繫結不會被匯入或匯出。',
|
||||
'snippets.import.conflict.skip': '跳過重複項',
|
||||
'snippets.import.conflict.overwrite': '覆蓋重複項',
|
||||
'snippets.packageDialog.title': '新增程式碼包',
|
||||
@@ -969,7 +913,7 @@ export const zhTWTerminalMessages: Messages = {
|
||||
'snippets.variables.placeholderDefault': '預設:{value}',
|
||||
'snippets.variables.required': '請填寫此變數',
|
||||
'snippets.variables.run': '執行',
|
||||
'snippets.field.variablesHelp': '在指令碼中使用 {{名稱}} 或 {{名稱:預設值}} 定義變數。',
|
||||
'snippets.field.variablesHelp': '在指令碼中使用 {{name}} 或 {{name:default}} 作為佔位符。',
|
||||
'snippets.field.variablesDetected': '變數',
|
||||
'snippets.field.variableDefault': '預設 {value}',
|
||||
|
||||
@@ -989,9 +933,6 @@ export const zhTWTerminalMessages: Messages = {
|
||||
'serial.field.customPort': '自訂序列埠路徑',
|
||||
'serial.field.namedPipeHint': 'Windows 虛擬機主控台:輸入 \\\\.\\pipe\\name。虛擬機需作為伺服器端建立管道,鮑率與串口框架設定不生效。',
|
||||
'serial.field.customPortPlaceholder': '例如 /dev/ttys001 或 COM1',
|
||||
'serial.type.hardware': '硬體',
|
||||
'serial.type.pseudo': '虛擬終端',
|
||||
'serial.type.custom': '自訂',
|
||||
'serial.parity.none': '無',
|
||||
'serial.parity.even': '偶同位',
|
||||
'serial.parity.odd': '奇同位',
|
||||
@@ -1012,7 +953,6 @@ export const zhTWTerminalMessages: Messages = {
|
||||
'serial.backspace.default': '預設(DEL,0x7F)',
|
||||
'serial.backspace.ctrlH': 'Ctrl+H(BS,0x08)',
|
||||
'serial.field.charset': '字元編碼',
|
||||
'serial.connectionError': '連線序列埠失敗',
|
||||
'serial.field.baudRatePlaceholder': '選擇或輸入鮑率...',
|
||||
'serial.field.baudRateEmpty': '輸入自訂鮑率',
|
||||
'serial.field.customBaudRate': '使用自訂鮑率',
|
||||
@@ -1031,10 +971,7 @@ export const zhTWTerminalMessages: Messages = {
|
||||
'keyboard.interactive.title': '需要驗證',
|
||||
'keyboard.interactive.desc': '伺服器需要額外的身分驗證。',
|
||||
'keyboard.interactive.descWithHost': '伺服器 {hostname} 需要額外的身分驗證。',
|
||||
'keyboard.interactive.response': '回應',
|
||||
'keyboard.interactive.verificationCode': '驗證碼',
|
||||
'keyboard.interactive.enterCode': '輸入驗證碼',
|
||||
'keyboard.interactive.enterResponse': '輸入回應',
|
||||
'keyboard.interactive.submit': '送出',
|
||||
'keyboard.interactive.verifying': '驗證中...',
|
||||
'keyboard.interactive.savePassword': '儲存密碼',
|
||||
|
||||
@@ -19,14 +19,6 @@ export const zhTWVaultMessages: Messages = {
|
||||
'notes.export.toast.failed': '匯出筆記失敗。',
|
||||
'notes.codeBlock.copied': '已複製',
|
||||
'notes.codeBlock.copyFailed': '複製程式碼塊失敗。',
|
||||
'notes.group.prompt': '資料夾路徑',
|
||||
'notes.group.all': '筆記本',
|
||||
'notes.group.ungrouped': '未群組',
|
||||
'notes.section.notebooks': '筆記本',
|
||||
'notes.section.notes': '筆記',
|
||||
'notes.mode.edit': '編輯',
|
||||
'notes.mode.split': '分割',
|
||||
'notes.mode.preview': '預覽',
|
||||
'notes.title.placeholder': '筆記標題',
|
||||
'notes.editor.placeholder': '在這裡寫 Markdown 筆記...',
|
||||
'notes.editor.unrenderableMarkdown': '這篇筆記包含富文本編輯器無法顯示的 Markdown(例如未閉合的 <tag> 文字),已改為顯示原始 Markdown 原始碼,內容並沒有遺失。',
|
||||
@@ -72,25 +64,18 @@ export const zhTWVaultMessages: Messages = {
|
||||
'notes.toolbar.divider': '分隔線',
|
||||
'notes.toolbar.link': '插入超連結',
|
||||
'notes.toolbar.image': '插入圖片',
|
||||
'notes.action.pin': '置頂筆記',
|
||||
'notes.action.unpin': '取消置頂',
|
||||
'notes.tag.remove': '移除標籤',
|
||||
'notes.tag.placeholder': '標籤名...',
|
||||
'notes.tag.add': '新增標籤',
|
||||
'notes.outline.title': '大綱目錄',
|
||||
'notes.outline.titleWithCount': '大綱目錄 ({count})',
|
||||
'notes.outline.empty': '暫無標題大綱',
|
||||
'notes.outline.emptyHint': '在 Markdown 中使用 #、## 編寫各級標題',
|
||||
'notes.export.share': '匯出與分享',
|
||||
'notes.export.currentNote': '目前筆記',
|
||||
'notes.export.exportMarkdown': '匯出為 Markdown (.md)',
|
||||
'notes.export.exportHtml': '匯出為 HTML (.html)',
|
||||
'notes.export.copyMarkdown': '複製 Markdown 源碼',
|
||||
'notes.export.allNotes': '全部筆記',
|
||||
'notes.export.exportAllZip': '匯出全部為 ZIP 壓縮包',
|
||||
'notes.export.toast.markdownSuccess': '已匯出 Markdown 檔案',
|
||||
'notes.export.toast.htmlSuccess': '已匯出 HTML 檔案',
|
||||
'notes.export.toast.zipSuccess': '已匯出全部筆記備份 ZIP',
|
||||
|
||||
// Select Host panel
|
||||
'selectHost.title': '選擇主機',
|
||||
@@ -130,12 +115,6 @@ export const zhTWVaultMessages: Messages = {
|
||||
'hostDetails.title.new': '新增主機',
|
||||
'hostDetails.saveAria': '儲存',
|
||||
'hostConnectionTest.title': '測試連線',
|
||||
'hostConnectionTest.test': '測試',
|
||||
'hostConnectionTest.chainOf': '第 {current}/{total} 跳',
|
||||
'hostConnectionTest.success': '連線成功',
|
||||
'hostConnectionTest.successHint': '主機已接受您的憑證。您可以關閉此視窗。',
|
||||
'hostConnectionTest.connecting': '正在連線… {seconds} 秒後逾時',
|
||||
'hostConnectionTest.failed': '連線失敗。',
|
||||
'hostConnectionTest.retry': '重試',
|
||||
'hostConnectionTest.credentialsUnavailable': '儲存的憑證無法在此裝置上解密。請在下方重新輸入。',
|
||||
'hostDetails.section.address': '位址',
|
||||
@@ -172,11 +151,8 @@ export const zhTWVaultMessages: Messages = {
|
||||
'hostDetails.notes.toggle.show': '顯示備註編輯框',
|
||||
'hostDetails.notes.toggle.hide': '隱藏備註編輯框',
|
||||
'hostDetails.group.placeholder': '父級 Group',
|
||||
'hostDetails.section.credentials': '憑證',
|
||||
'hostDetails.section.portCredentials': '埠與憑證',
|
||||
'hostDetails.section.appearance': '外觀',
|
||||
'hostDetails.distro.title': 'Linux 發行版',
|
||||
'hostDetails.distro.desc': '可在連線後自動探測,也可以手動覆蓋圖示所用的發行版。',
|
||||
'hostDetails.icon.title': '主機圖示',
|
||||
'hostDetails.icon.preview': '圖示預覽',
|
||||
'vault.panel.resizeWidth': '調整面板寬度',
|
||||
@@ -190,7 +166,6 @@ export const zhTWVaultMessages: Messages = {
|
||||
'hostDetails.icon.mode.custom': '自訂',
|
||||
'hostDetails.icon.reset': '重設主機圖示',
|
||||
'hostDetails.icon.colorLabel': '圖示顏色',
|
||||
'hostDetails.icon.colorDefault': '預設',
|
||||
'hostDetails.icon.colorAuto': '自動',
|
||||
'hostDetails.icon.colorManual': '手動',
|
||||
'hostDetails.icon.colorChoice': '顏色',
|
||||
@@ -240,7 +215,6 @@ export const zhTWVaultMessages: Messages = {
|
||||
'hostDetails.distro.mode.auto': '自動探測',
|
||||
'hostDetails.distro.mode.manual': '手動覆蓋',
|
||||
'hostDetails.distro.detectedLabel': '目前值',
|
||||
'hostDetails.distro.manualLabel': '手動指定',
|
||||
'hostDetails.distro.pending': '首次連線後自動探測',
|
||||
'hostDetails.distro.unknown': '未知',
|
||||
'hostDetails.distro.option.linux': '通用 Linux',
|
||||
@@ -291,7 +265,6 @@ export const zhTWVaultMessages: Messages = {
|
||||
'hostDetails.auth.mfaFirst': '優先互動式驗證',
|
||||
'hostDetails.auth.mfaFirst.desc': '適用於必須透過 keyboard-interactive 輸入密碼和 MFA 的伺服器。',
|
||||
'hostDetails.totp.title': '驗證器 (TOTP)',
|
||||
'hostDetails.totp.enable': '為這台主機儲存 TOTP 金鑰',
|
||||
'hostDetails.totp.setup': '設定…',
|
||||
'hostDetails.totp.edit': '編輯',
|
||||
'hostDetails.totp.modalTitle': '設定驗證器',
|
||||
@@ -394,10 +367,8 @@ export const zhTWVaultMessages: Messages = {
|
||||
'hostDetails.jumpHosts.direct': '直連',
|
||||
'hostDetails.jumpHosts.configure': '設定代理主機',
|
||||
'hostDetails.proxy': '透過 HTTP/SOCKS5/指令代理',
|
||||
'hostDetails.proxy.none': '無',
|
||||
'hostDetails.proxy.direct': '直連(不使用代理)',
|
||||
'hostDetails.proxy.directHint': '不使用群組或全域預設代理',
|
||||
'hostDetails.proxy.edit': '編輯代理',
|
||||
'hostDetails.proxy.configure': '設定代理',
|
||||
'hostDetails.envVars': '環境變數',
|
||||
'hostDetails.envVars.add': '新增環境變數',
|
||||
@@ -456,28 +427,14 @@ export const zhTWVaultMessages: Messages = {
|
||||
'hostDetails.plugin.useSsh': '改用 SSH',
|
||||
|
||||
// Host form (legacy modal)
|
||||
'hostForm.title.edit': '編輯主機',
|
||||
'hostForm.title.new': '新增主機',
|
||||
'hostForm.desc.edit': '更新該主機的連線資訊',
|
||||
'hostForm.desc.new': '建立一個新的 SSH 主機條目',
|
||||
'hostForm.field.label': '名稱',
|
||||
'hostForm.placeholder.label': 'My Production Server',
|
||||
'hostForm.field.hostname': 'Hostname / IP',
|
||||
'hostForm.placeholder.hostname': '192.168.1.1',
|
||||
'hostForm.field.port': '埠',
|
||||
'hostForm.field.username': '使用者名稱',
|
||||
'hostForm.field.osType': '作業系統型別',
|
||||
'hostForm.placeholder.selectOs': '選擇作業系統',
|
||||
'hostForm.field.group': '群組',
|
||||
'hostForm.placeholder.group': '例如:AWS、DigitalOcean',
|
||||
'hostForm.field.tags': '標籤',
|
||||
'hostForm.placeholder.addTag': '新增標籤…',
|
||||
'hostForm.auth.method': '認證方式',
|
||||
'hostForm.auth.password': '密碼',
|
||||
'hostForm.auth.sshKey': 'SSH金鑰',
|
||||
'hostForm.auth.selectKey': '選擇 SSH金鑰',
|
||||
'hostForm.auth.noKeys': '暫無金鑰',
|
||||
'hostForm.auth.noKeysHint': '鑰匙串中未找到 SSH金鑰,請先建立一個。',
|
||||
'hostForm.saveHost': '儲存主機',
|
||||
|
||||
// Connection logs
|
||||
@@ -495,7 +452,6 @@ export const zhTWVaultMessages: Messages = {
|
||||
'logs.action.delete': '刪除',
|
||||
|
||||
// Log view
|
||||
'logView.customizeAppearance': '自訂外觀',
|
||||
'logView.appearance': '外觀',
|
||||
'logView.readOnly': '只讀',
|
||||
'logView.export': '匯出',
|
||||
@@ -508,7 +464,6 @@ export const zhTWVaultMessages: Messages = {
|
||||
'terminal.toolbar.availableAfterConnect': '連線後可用',
|
||||
'terminal.toolbar.sendYmodem': 'YMODEM 傳送',
|
||||
'terminal.toolbar.receiveYmodem': 'YMODEM 接收',
|
||||
'terminal.toolbar.sftp': 'SFTP',
|
||||
'terminal.toolbar.more': '更多操作',
|
||||
'terminal.toolbar.scripts': '指令碼',
|
||||
'terminal.toolbar.history': '指令歷史',
|
||||
@@ -533,7 +488,6 @@ export const zhTWVaultMessages: Messages = {
|
||||
'terminal.composeBar.resize': '拖曳調整撰寫欄高度',
|
||||
'terminal.composeBar.manageSnippets': '管理快捷程式碼片段',
|
||||
'terminal.composeBar.searchSnippets': '搜尋程式碼片段...',
|
||||
'terminal.composeBar.noPinnedSnippets': '點選 + 固定常用程式碼片段',
|
||||
'terminal.composeBar.noMatchingSnippets': '沒有相符的程式碼片段',
|
||||
'terminal.composeBar.pinnedCount': '已固定 {count} 個',
|
||||
'terminal.composeBar.unpinSnippet': '從快捷欄移除 {label}',
|
||||
@@ -580,7 +534,7 @@ export const zhTWVaultMessages: Messages = {
|
||||
'terminal.serverStats.swapUsed': '已用交換',
|
||||
'terminal.serverStats.swapFree': '空閒交換',
|
||||
'terminal.serverStats.swapTotal': '總計',
|
||||
'terminal.serverStats.topProcesses': '記憶體佔用前十程序',
|
||||
'terminal.serverStats.topProcesses': '記憶體佔用前十行程',
|
||||
'terminal.serverStats.disk': '磁碟使用',
|
||||
'terminal.serverStats.diskDetails': '已掛載磁碟',
|
||||
'terminal.serverStats.network': '網路速度',
|
||||
@@ -690,9 +644,6 @@ export const zhTWVaultMessages: Messages = {
|
||||
'terminal.themeModal.themeType': '{type} 主題',
|
||||
'terminal.hiddenTheme.title': '目前隱藏主題',
|
||||
'terminal.hiddenTheme.desc': '這個主題已從手動選擇列表中隱藏;當你選擇其他可見主題後,它會被替換。',
|
||||
'topTabs.toggleTheme.systemExitTitle': '目前正在跟隨系統主題',
|
||||
'topTabs.toggleTheme.systemExitMessage': '請到設定裡選擇固定的淺色或深色主題。',
|
||||
'topTabs.toggleTheme.openSettings': '開啟設定',
|
||||
|
||||
// Custom Themes
|
||||
'terminal.customTheme.section': '自訂主題',
|
||||
@@ -705,7 +656,6 @@ export const zhTWVaultMessages: Messages = {
|
||||
'terminal.customTheme.importDesc': '從 iTerm2 配色方案檔案匯入',
|
||||
'terminal.customTheme.importError': '無法解析所選檔案,請確保它是有效的 .itermcolors XML 檔案。',
|
||||
'terminal.customTheme.delete': '刪除主題',
|
||||
'terminal.customTheme.confirmDelete': '確認刪除',
|
||||
'terminal.customTheme.name': '名稱',
|
||||
'terminal.customTheme.namePlaceholder': '我的自訂主題',
|
||||
'terminal.customTheme.type': '型別',
|
||||
@@ -764,10 +714,7 @@ export const zhTWVaultMessages: Messages = {
|
||||
'cloudSync.provider.disconnect.cloudRemains': '雲端的加密同步副本可能仍保存在 {name} 儲存空間中。如需清除,請到該服務商刪除同步檔案。中斷連線不代表裝置已完成交接清理。',
|
||||
'cloudSync.provider.disconnect.failed': '未能完成與 {name} 的中斷連線,保存的連線資料可能仍在,請重試。',
|
||||
'cloudSync.provider.webdav': 'WebDAV',
|
||||
'cloudSync.provider.webdav.desc': '連線到自建 WebDAV 端點',
|
||||
'cloudSync.provider.s3': 'S3 相容儲存',
|
||||
'cloudSync.provider.s3.desc': '連線到 S3 相容物件儲存',
|
||||
'cloudSync.provider.comingSoon': '即將支援',
|
||||
'cloudSync.webdav.title': 'WebDAV 設定',
|
||||
'cloudSync.webdav.desc': '設定 WebDAV 端點用於加密同步。',
|
||||
'cloudSync.webdav.endpoint': '端點位址',
|
||||
@@ -796,20 +743,6 @@ export const zhTWVaultMessages: Messages = {
|
||||
'cloudSync.s3.allowInsecure': '允許不安全的連線(忽略憑證錯誤)',
|
||||
'cloudSync.s3.showSecret': '顯示金鑰',
|
||||
'cloudSync.s3.validation.required': '端點、Region、Bucket、Access Key 與 Secret 必填。',
|
||||
'cloudSync.smb.title': 'SMB 設定',
|
||||
'cloudSync.smb.desc': '連線到 SMB/CIFS 檔案共享以進行加密同步。',
|
||||
'cloudSync.smb.share': '共享路徑',
|
||||
'cloudSync.smb.username': '使用者名稱',
|
||||
'cloudSync.smb.password': '密碼',
|
||||
'cloudSync.smb.domain': '域(可選)',
|
||||
'cloudSync.smb.domainPlaceholder': '例如:WORKGROUP',
|
||||
'cloudSync.smb.port': '埠(可選)',
|
||||
'cloudSync.smb.showSecret': '顯示密碼',
|
||||
'cloudSync.smb.validation.share': '共享路徑必填。',
|
||||
'cloudSync.smb.validation.port': '埠必須是 1 到 65535 之間的數字。',
|
||||
'cloudSync.connect.smb.success': 'SMB 已連線',
|
||||
'cloudSync.connect.smb.failedTitle': 'SMB 連線失敗',
|
||||
'cloudSync.provider.smb': 'SMB 共享',
|
||||
'cloudSync.connect.webdav.success': 'WebDAV 已連線',
|
||||
'cloudSync.connect.webdav.failedTitle': 'WebDAV 連線失敗',
|
||||
'cloudSync.connect.s3.success': 'S3 已連線',
|
||||
@@ -826,7 +759,6 @@ export const zhTWVaultMessages: Messages = {
|
||||
'cloudSync.lastSync.minutesAgo': '{minutes} 分鐘前',
|
||||
'cloudSync.changeKey': '更改 Key',
|
||||
'cloudSync.providers.title': '雲服務',
|
||||
'cloudSync.syncAll': '同步所有已連線的服務',
|
||||
'cloudSync.autoSync.title': '自動同步',
|
||||
'cloudSync.autoSync.desc': '發生變更時自動同步',
|
||||
'cloudSync.strategy.title': '同步策略',
|
||||
@@ -891,7 +823,6 @@ export const zhTWVaultMessages: Messages = {
|
||||
'cloudSync.localBackups.folderWarning': '僅複製此資料夾並不構成完整、可攜的備份。刪除或清空應用程式設定目錄(userData)可能導致這些還原點無法讀取。',
|
||||
'cloudSync.localBackups.retentionTitle': '備份保留數量',
|
||||
'cloudSync.localBackups.retentionDesc': '設定 Netcatty 最多保留多少份本機備份。',
|
||||
'cloudSync.localBackups.maxCount': '最多保留',
|
||||
'cloudSync.localBackups.maxSaved': '已儲存保留數量:{count}',
|
||||
'cloudSync.localBackups.maxInvalid': '請輸入 1 到 100 之間的數字。',
|
||||
'cloudSync.localBackups.empty': '還沒有本機備份。',
|
||||
@@ -1021,7 +952,6 @@ export const zhTWVaultMessages: Messages = {
|
||||
'sftp.context.openWithDefault': '系統預設程式開啟',
|
||||
'common.clear': '清除',
|
||||
'common.optional': '可選',
|
||||
'common.selectPlaceholder': '請選擇...',
|
||||
'common.error': '錯誤',
|
||||
'common.validation': '驗證',
|
||||
'common.saveChanges': '儲存修改',
|
||||
@@ -1063,7 +993,6 @@ export const zhTWVaultMessages: Messages = {
|
||||
'pf.tooltip.localDesc': '本機埠轉發:透過 SSH 隧道存取遠端服務',
|
||||
'pf.tooltip.remoteDesc': '遠端埠轉發:將本機服務公開給遠端主機',
|
||||
'pf.tooltip.dynamicDesc': '動態 SOCKS 代理:透過 SSH 隧道轉發流量',
|
||||
'pf.deleteActive.title': '刪除正在執行的埠轉發?',
|
||||
'pf.deleteActive.desc': '埠轉發規則 "{label}" 目前正在執行。刪除前將先關閉轉發連線。',
|
||||
'pf.deleteActive.confirm': '關閉並刪除',
|
||||
'pf.form.autoStart': '自動啟動',
|
||||
@@ -1078,8 +1007,6 @@ export const zhTWVaultMessages: Messages = {
|
||||
'sftp.pane.selectHostToStart': '先選擇一個主機',
|
||||
'sftp.pane.chooseFilesystem': '選擇要瀏覽的本機或遠端檔案系統',
|
||||
'sftp.tabs.addTab': '新增分頁',
|
||||
'sftp.tabs.closeTab': '關閉分頁',
|
||||
'sftp.tabs.newTab': '新分頁',
|
||||
'sftp.tabs.copyDefaultPath': '複製分頁(預設路徑)',
|
||||
'sftp.tabs.copyCurrentPath': '複製並跳轉到目前路徑',
|
||||
'sftp.conflict.title': '檔案衝突',
|
||||
@@ -1105,10 +1032,6 @@ export const zhTWVaultMessages: Messages = {
|
||||
'sftp.conflict.action.replace': '替換',
|
||||
|
||||
// SFTP Upload Phases
|
||||
'sftp.upload.phase.compressing': '正在壓縮',
|
||||
'sftp.upload.phase.uploading': '正在上傳',
|
||||
'sftp.upload.phase.extracting': '正在解壓',
|
||||
'sftp.upload.phase.compressed': '壓縮傳輸',
|
||||
'vault.import.plugins.title': '外掛程式匯入器',
|
||||
'vault.import.plugins.loading': '正在建立安全匯入預覽…',
|
||||
'vault.import.plugins.progress': '已處理 {completed}/{total} {message}',
|
||||
|
||||
@@ -1,34 +0,0 @@
|
||||
import assert from "node:assert/strict";
|
||||
import test from "node:test";
|
||||
import { readFileSync } from "node:fs";
|
||||
|
||||
const source = readFileSync(new URL("./activeChromeThemeSync.ts", import.meta.url), "utf8");
|
||||
const chromeThemeSource = readFileSync(new URL("./useActiveChromeTheme.ts", import.meta.url), "utf8");
|
||||
const storeSource = readFileSync(new URL("./activeTabStore.ts", import.meta.url), "utf8");
|
||||
|
||||
test("active tab changes notify chrome theme before react subscribers", () => {
|
||||
const setActiveTabIdBody = storeSource.match(/setActiveTabId = \(id: string(?:, options\?: \w+)?\) => \{[\s\S]*?\n {2}\};/)?.[0] ?? "";
|
||||
assert.match(setActiveTabIdBody, /this\.syncListeners\.forEach\(\(listener\) => listener\(id\)\)/);
|
||||
assert.match(setActiveTabIdBody, /this\.scheduleNotify\(\)/);
|
||||
assert.ok(
|
||||
setActiveTabIdBody.indexOf("syncListeners.forEach") < setActiveTabIdBody.indexOf("scheduleNotify"),
|
||||
"sync chrome theme listeners must run before deferred react notify",
|
||||
);
|
||||
assert.match(source, /activeTabStore\.subscribeSync\(notifyActiveChromeThemeForTab\)/);
|
||||
assert.match(source, /isActiveChromeThemeResolvable/);
|
||||
assert.match(source, /clearTopTabsChromeThemeVars/);
|
||||
});
|
||||
|
||||
test("tab chrome notify defers apply via rAF and short-circuits on fingerprint", () => {
|
||||
assert.match(source, /requestAnimationFrame/);
|
||||
assert.match(source, /themeFingerprint/);
|
||||
assert.match(source, /export function applyChromeThemeForTab/);
|
||||
assert.match(source, /export function notifyActiveChromeThemeForTab/);
|
||||
// Tab path must not use view transitions.
|
||||
assert.doesNotMatch(source, /mode:\s*['"]view['"]/);
|
||||
});
|
||||
|
||||
test("syncActiveChromeTheme applies terminal chrome with instant mode", () => {
|
||||
assert.match(chromeThemeSource, /mode:\s*['"]instant['"]/);
|
||||
assert.match(chromeThemeSource, /nextFingerprint === appliedFingerprint/);
|
||||
});
|
||||
@@ -6,6 +6,8 @@ import {
|
||||
bumpDraftMutationVersionState,
|
||||
bumpDraftUploadGenerationState,
|
||||
clearScopeDraftState,
|
||||
clearSessionViewsForSession,
|
||||
demoteImplicitSourceViewsForSession,
|
||||
createEmptyDraft,
|
||||
ensureDraftForScopeState,
|
||||
getDraftMutationVersionState,
|
||||
@@ -218,6 +220,139 @@ test("pruneStaleSessionPanelViews returns the original ref when nothing is stale
|
||||
assert.equal(next, panelViewByScope);
|
||||
});
|
||||
|
||||
test("clearSessionViewsForSession clears the rebound chat's source views and keeps the destination + unrelated scopes", () => {
|
||||
// Mirrors rebindSessionScope: source A shows chat-1, destination B is set to
|
||||
// chat-1, and unrelated scopes keep their own chats/drafts.
|
||||
const panelViewByScope = {
|
||||
"workspace:A": { mode: "session", sessionId: "chat-1" },
|
||||
"workspace:A-alias": { mode: "session", sessionId: "chat-1" },
|
||||
"workspace:B": { mode: "session", sessionId: "prev-b" },
|
||||
"workspace:C": { mode: "session", sessionId: "chat-2" },
|
||||
"workspace:D": { mode: "draft" },
|
||||
} satisfies Record<string, { mode: "draft" } | { mode: "session"; sessionId: string }>;
|
||||
|
||||
const next = setSessionView(
|
||||
clearSessionViewsForSession(panelViewByScope, "chat-1", "workspace:B"),
|
||||
"workspace:B",
|
||||
"chat-1",
|
||||
);
|
||||
|
||||
assert.deepEqual(next, {
|
||||
"workspace:A": { mode: "draft" },
|
||||
"workspace:A-alias": { mode: "draft" },
|
||||
"workspace:B": { mode: "session", sessionId: "chat-1" },
|
||||
"workspace:C": { mode: "session", sessionId: "chat-2" },
|
||||
"workspace:D": { mode: "draft" },
|
||||
});
|
||||
// The destination's prior view must not be cleared by the purge (setSessionView
|
||||
// overwrites it), and unrelated scopes must keep their exact view objects.
|
||||
assert.equal(next["workspace:C"], panelViewByScope["workspace:C"]);
|
||||
assert.equal(next["workspace:D"], panelViewByScope["workspace:D"]);
|
||||
});
|
||||
|
||||
test("clearSessionViewsForSession returns the original ref when no other scope points at the chat", () => {
|
||||
const panelViewByScope = {
|
||||
"workspace:B": { mode: "session", sessionId: "chat-2" },
|
||||
"workspace:C": { mode: "draft" },
|
||||
} satisfies Record<string, { mode: "draft" } | { mode: "session"; sessionId: string }>;
|
||||
|
||||
const next = clearSessionViewsForSession(panelViewByScope, "chat-1", "workspace:B");
|
||||
|
||||
assert.equal(next, panelViewByScope);
|
||||
});
|
||||
|
||||
// Mirrors rebindSessionScope's single setPanelViewByScope updater: explicit
|
||||
// source views are purged, implicit source scopes from the pre-rebind active
|
||||
// map are demoted to draft, and the destination view is (re)set to the chat.
|
||||
function applyRebindViewUpdates(
|
||||
panelViewByScope: Record<string, { mode: "draft" } | { mode: "session"; sessionId: string }>,
|
||||
activeSessionIdMap: Record<string, string | null>,
|
||||
sessionId: string,
|
||||
keepScopeKey: string,
|
||||
) {
|
||||
return setSessionView(
|
||||
demoteImplicitSourceViewsForSession(
|
||||
clearSessionViewsForSession(panelViewByScope, sessionId, keepScopeKey),
|
||||
activeSessionIdMap,
|
||||
sessionId,
|
||||
keepScopeKey,
|
||||
),
|
||||
keepScopeKey,
|
||||
sessionId,
|
||||
);
|
||||
}
|
||||
|
||||
test("round 4 RESTORED: rebind of a restored chat demotes implicit source scopes when panel views are empty", () => {
|
||||
// Post-restart (issue #4125): the active-session map is restored from the
|
||||
// IndexedDB meta store, but panelViewByScope is memory-only and starts EMPTY.
|
||||
// chat-1 is A's only session; rebinding it to B has no explicit source view
|
||||
// for the round-3 purge to demote. A's implicit view must be written to draft.
|
||||
const activeSessionIdMap = {
|
||||
"workspace:A": "chat-1",
|
||||
"workspace:C": "chat-2",
|
||||
};
|
||||
|
||||
const next = applyRebindViewUpdates({}, activeSessionIdMap, "chat-1", "workspace:B");
|
||||
|
||||
assert.deepEqual(next, {
|
||||
// A had no explicit view but was an implicit source via the restored map:
|
||||
// it now has an explicit draft view that blocks the sessions[0] fallback.
|
||||
"workspace:A": { mode: "draft" },
|
||||
// Destination still points at the rebound chat.
|
||||
"workspace:B": { mode: "session", sessionId: "chat-1" },
|
||||
});
|
||||
// Unrelated scope C (its active pointer named chat-2, not chat-1) is not a
|
||||
// source scope and must not gain any view.
|
||||
assert.equal(next["workspace:C"], undefined);
|
||||
});
|
||||
|
||||
test("round 4: rebind keeps explicit source views demoted and leaves unrelated + target scopes intact", () => {
|
||||
const activeSessionIdMap = {
|
||||
"workspace:A": "chat-1",
|
||||
"workspace:A-alias": "chat-1",
|
||||
"workspace:C": "chat-2",
|
||||
};
|
||||
const panelViewByScope = {
|
||||
"workspace:A": { mode: "session", sessionId: "chat-1" },
|
||||
"workspace:A-alias": { mode: "session", sessionId: "chat-1" },
|
||||
"workspace:B": { mode: "session", sessionId: "prev-b" },
|
||||
"workspace:C": { mode: "session", sessionId: "chat-2" },
|
||||
"workspace:D": { mode: "draft" },
|
||||
} satisfies Record<string, { mode: "draft" } | { mode: "session"; sessionId: string }>;
|
||||
|
||||
const next = applyRebindViewUpdates(panelViewByScope, activeSessionIdMap, "chat-1", "workspace:B");
|
||||
|
||||
assert.deepEqual(next, {
|
||||
"workspace:A": { mode: "draft" },
|
||||
"workspace:A-alias": { mode: "draft" },
|
||||
"workspace:B": { mode: "session", sessionId: "chat-1" },
|
||||
"workspace:C": { mode: "session", sessionId: "chat-2" },
|
||||
"workspace:D": { mode: "draft" },
|
||||
});
|
||||
// Unrelated scopes keep their exact objects; the destination is overwritten
|
||||
// by setSessionView, not by the purge.
|
||||
assert.equal(next["workspace:C"], panelViewByScope["workspace:C"]);
|
||||
assert.equal(next["workspace:D"], panelViewByScope["workspace:D"]);
|
||||
});
|
||||
|
||||
test("round 4: implicit source keys come from the PRE-rebind active map (post-clear would miss them)", () => {
|
||||
// rebindActiveSessionMap drops A's pointer to chat-1 before views are
|
||||
// written. Feeding the post-clear map to the demotion would miss A entirely,
|
||||
// so the source keys MUST be captured before rebindActiveSessionMap runs.
|
||||
const preRebind = { "workspace:A": "chat-1", "workspace:B": "chat-1" };
|
||||
const postClear = { "workspace:B": "chat-1" };
|
||||
|
||||
const fromPreRebind = demoteImplicitSourceViewsForSession(
|
||||
{}, preRebind, "chat-1", "workspace:B",
|
||||
);
|
||||
assert.deepEqual(fromPreRebind, { "workspace:A": { mode: "draft" } });
|
||||
|
||||
const fromPostClear = demoteImplicitSourceViewsForSession(
|
||||
{}, postClear, "chat-1", "workspace:B",
|
||||
);
|
||||
assert.deepEqual(fromPostClear, {});
|
||||
});
|
||||
|
||||
test("clearScopeDraftState removes both the draft and current panel view", () => {
|
||||
const draftsByScope = {
|
||||
"terminal:1": createEmptyDraft("agent-alpha"),
|
||||
|
||||
@@ -193,6 +193,68 @@ export function pruneStaleSessionPanelViews(
|
||||
return next;
|
||||
}
|
||||
|
||||
/**
|
||||
* PR #4159 review fix (round 3): when a chat is rebound to `keepScopeKey`,
|
||||
* drop every *other* scope's explicit session view that still points at it.
|
||||
* `getSessionScopeMatchRank` keeps other-workspace chats visible at rank 1, so
|
||||
* a surviving view would keep the moved chat as that panel's activeSession;
|
||||
* the active-session effect in AIChatSidePanel then recreates the pointer that
|
||||
* rebindActiveSessionMap just removed, and follow-up turns in the source
|
||||
* workspace keep executing against the moved chat. Demote to an explicit draft
|
||||
* (not delete) so resolveDisplayedPanelView cannot fall through to sessions[0]
|
||||
* and re-select it. The destination scope is left intact for setSessionView.
|
||||
*/
|
||||
export function clearSessionViewsForSession(
|
||||
panelViewByScope: PanelViewByScope,
|
||||
sessionId: string,
|
||||
keepScopeKey: string,
|
||||
): PanelViewByScope {
|
||||
let next = panelViewByScope;
|
||||
|
||||
for (const [scopeKey, panelView] of Object.entries(panelViewByScope)) {
|
||||
if (scopeKey === keepScopeKey) continue;
|
||||
if (panelView?.mode !== 'session' || panelView.sessionId !== sessionId) continue;
|
||||
const updated = setDraftView(next, scopeKey);
|
||||
if (updated !== next) {
|
||||
next = updated;
|
||||
}
|
||||
}
|
||||
|
||||
return next;
|
||||
}
|
||||
|
||||
/**
|
||||
* PR #4159 review fix (round 4): a restored chat has no explicit source view
|
||||
* to demote. After a restart the active-session map is restored (localStorage /
|
||||
* IndexedDB meta, issue #4125) but panelViewByScope is memory-only and starts
|
||||
* empty, so clearSessionViewsForSession finds nothing. getSessionScopeMatchRank
|
||||
* still lists the rebound chat at rank 1 in that scope, resolveDisplayedPanelView
|
||||
* falls through to sessions[0], and the active-session effect recreates the
|
||||
* pointer rebindActiveSessionMap removed — follow-up turns would run in the old
|
||||
* workspace. Write an explicit draft view for every source scope key captured
|
||||
* from the PRE-rebind active map (every key naming sessionId under a different
|
||||
* scope), even when no explicit panel view existed, so the draft short-circuits
|
||||
* that fallback. The destination scope is left for setSessionView.
|
||||
*/
|
||||
export function demoteImplicitSourceViewsForSession(
|
||||
panelViewByScope: PanelViewByScope,
|
||||
activeSessionIdMap: ActiveSessionIdMap,
|
||||
sessionId: string,
|
||||
keepScopeKey: string,
|
||||
): PanelViewByScope {
|
||||
let next = panelViewByScope;
|
||||
|
||||
for (const [scopeKey, id] of Object.entries(activeSessionIdMap)) {
|
||||
if (id !== sessionId || scopeKey === keepScopeKey) continue;
|
||||
const updated = setDraftView(next, scopeKey);
|
||||
if (updated !== next) {
|
||||
next = updated;
|
||||
}
|
||||
}
|
||||
|
||||
return next;
|
||||
}
|
||||
|
||||
export function updateDraftForScope(
|
||||
draftsByScope: DraftsByScope,
|
||||
scopeKey: string,
|
||||
|
||||
@@ -1,6 +1,4 @@
|
||||
import { useSyncExternalStore } from 'react';
|
||||
|
||||
type Listener = () => void;
|
||||
import { createExternalStore, type StoreListener } from './createExternalStore';
|
||||
|
||||
export type AppearanceChromeSnapshot = {
|
||||
accentMode: 'theme' | 'custom';
|
||||
@@ -16,53 +14,31 @@ const DEFAULT_SNAPSHOT: AppearanceChromeSnapshot = Object.freeze({
|
||||
* External store for app accent chrome so Terminal leaves can apply custom
|
||||
* accent without TerminalLayer rebuilding on every color-picker drag tick.
|
||||
*/
|
||||
class AppearanceChromeStore {
|
||||
private snapshot: AppearanceChromeSnapshot = DEFAULT_SNAPSHOT;
|
||||
private listeners = new Set<Listener>();
|
||||
const store = createExternalStore<AppearanceChromeSnapshot>(DEFAULT_SNAPSHOT, {
|
||||
isEqual: (prev, next) =>
|
||||
prev.accentMode === next.accentMode && prev.customAccent === next.customAccent,
|
||||
});
|
||||
|
||||
getSnapshot = (): AppearanceChromeSnapshot => this.snapshot;
|
||||
|
||||
subscribe = (listener: Listener): (() => void) => {
|
||||
this.listeners.add(listener);
|
||||
return () => {
|
||||
this.listeners.delete(listener);
|
||||
};
|
||||
};
|
||||
|
||||
setSnapshot(next: AppearanceChromeSnapshot): void {
|
||||
if (
|
||||
this.snapshot.accentMode === next.accentMode
|
||||
&& this.snapshot.customAccent === next.customAccent
|
||||
) {
|
||||
return;
|
||||
}
|
||||
this.snapshot = next;
|
||||
for (const listener of this.listeners) {
|
||||
listener();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
export const appearanceChromeStore = new AppearanceChromeStore();
|
||||
export const appearanceChromeStore = {
|
||||
getSnapshot: store.getSnapshot,
|
||||
subscribe: store.subscribe,
|
||||
setSnapshot: store.setSnapshot,
|
||||
};
|
||||
|
||||
export function publishAppearanceChromeSnapshot(
|
||||
snapshot: AppearanceChromeSnapshot,
|
||||
): void {
|
||||
appearanceChromeStore.setSnapshot(snapshot);
|
||||
store.setSnapshot(snapshot);
|
||||
}
|
||||
|
||||
export function getAppearanceChromeSnapshot(): AppearanceChromeSnapshot {
|
||||
return appearanceChromeStore.getSnapshot();
|
||||
return store.getSnapshot();
|
||||
}
|
||||
|
||||
export function subscribeAppearanceChrome(listener: Listener): () => void {
|
||||
return appearanceChromeStore.subscribe(listener);
|
||||
export function subscribeAppearanceChrome(listener: StoreListener): () => void {
|
||||
return store.subscribe(listener);
|
||||
}
|
||||
|
||||
export function useAppearanceChromeStore(): AppearanceChromeSnapshot {
|
||||
return useSyncExternalStore(
|
||||
subscribeAppearanceChrome,
|
||||
getAppearanceChromeSnapshot,
|
||||
getAppearanceChromeSnapshot,
|
||||
);
|
||||
return store.useStore();
|
||||
}
|
||||
@@ -0,0 +1,98 @@
|
||||
import { useSyncExternalStore } from 'react';
|
||||
|
||||
export type StoreListener = () => void;
|
||||
|
||||
export interface ListenerRegistry {
|
||||
subscribe: (listener: StoreListener) => () => void;
|
||||
notify: () => void;
|
||||
scheduleNotify: () => void;
|
||||
readonly size: number;
|
||||
}
|
||||
|
||||
const scheduleFrame = (cb: () => void): number =>
|
||||
typeof requestAnimationFrame === 'function'
|
||||
? requestAnimationFrame(cb)
|
||||
: (setTimeout(cb, 0) as unknown as number);
|
||||
|
||||
/**
|
||||
* Lightweight listener registry supporting both immediate and rAF-coalesced
|
||||
* notifications for `useSyncExternalStore` external stores.
|
||||
*/
|
||||
export function createListenerRegistry(): ListenerRegistry {
|
||||
const listeners = new Set<StoreListener>();
|
||||
let notifyRafId: number | null = null;
|
||||
|
||||
const notify = (): void => {
|
||||
for (const listener of listeners) {
|
||||
listener();
|
||||
}
|
||||
};
|
||||
|
||||
return {
|
||||
subscribe(listener: StoreListener): () => void {
|
||||
listeners.add(listener);
|
||||
return () => {
|
||||
listeners.delete(listener);
|
||||
};
|
||||
},
|
||||
notify,
|
||||
scheduleNotify(): void {
|
||||
if (notifyRafId !== null) return;
|
||||
notifyRafId = scheduleFrame(() => {
|
||||
notifyRafId = null;
|
||||
notify();
|
||||
});
|
||||
},
|
||||
get size(): number {
|
||||
return listeners.size;
|
||||
},
|
||||
};
|
||||
}
|
||||
|
||||
export interface ExternalStore<T> {
|
||||
getSnapshot: () => T;
|
||||
setSnapshot: (next: T) => void;
|
||||
update: (updater: (prev: T) => T) => void;
|
||||
subscribe: (listener: StoreListener) => () => void;
|
||||
useStore: () => T;
|
||||
}
|
||||
|
||||
export interface CreateExternalStoreOptions<T> {
|
||||
isEqual?: (prev: T, next: T) => boolean;
|
||||
}
|
||||
|
||||
/**
|
||||
* Factory for simple React `useSyncExternalStore` single-value stores.
|
||||
* Defaults to `Object.is` equality to avoid redundant notifications.
|
||||
*/
|
||||
export function createExternalStore<T>(
|
||||
initial: T,
|
||||
options?: CreateExternalStoreOptions<T>,
|
||||
): ExternalStore<T> {
|
||||
const isEqual = options?.isEqual ?? Object.is;
|
||||
const registry = createListenerRegistry();
|
||||
let snapshot = initial;
|
||||
|
||||
const getSnapshot = (): T => snapshot;
|
||||
|
||||
const setSnapshot = (next: T): void => {
|
||||
if (isEqual(snapshot, next)) return;
|
||||
snapshot = next;
|
||||
registry.notify();
|
||||
};
|
||||
|
||||
const update = (updater: (prev: T) => T): void => {
|
||||
setSnapshot(updater(snapshot));
|
||||
};
|
||||
|
||||
const useStore = (): T =>
|
||||
useSyncExternalStore(registry.subscribe, getSnapshot, getSnapshot);
|
||||
|
||||
return {
|
||||
getSnapshot,
|
||||
setSnapshot,
|
||||
update,
|
||||
subscribe: registry.subscribe,
|
||||
useStore,
|
||||
};
|
||||
}
|
||||
@@ -25,19 +25,6 @@ const writers = new Set<EditorSftpWrite>();
|
||||
|
||||
const NOT_MY_CONNECTION_RE = /SFTP connection is no longer available/i;
|
||||
|
||||
export const registerEditorSftpWriter = (fn: EditorSftpWrite | null) => {
|
||||
// Pass `null` on cleanup — but cleanup also needs to know WHICH writer to
|
||||
// remove. Callers who register once per mount should instead use
|
||||
// `registerEditorSftpWriterScoped` below, which returns an unregister fn.
|
||||
// This legacy signature is preserved for callers that prefer the
|
||||
// register/unregister-with-null pattern: we clear ALL writers on null.
|
||||
if (fn === null) {
|
||||
writers.clear();
|
||||
return;
|
||||
}
|
||||
writers.add(fn);
|
||||
};
|
||||
|
||||
export const registerEditorSftpWriterScoped = (fn: EditorSftpWrite): (() => void) => {
|
||||
writers.add(fn);
|
||||
return () => {
|
||||
|
||||
@@ -1,9 +0,0 @@
|
||||
import { readFileSync } from 'node:fs';
|
||||
import assert from 'node:assert/strict';
|
||||
import test from 'node:test';
|
||||
|
||||
const source = readFileSync(new URL('./fontStore.ts', import.meta.url), 'utf8');
|
||||
|
||||
test('refresh clears local font and availability detection caches', () => {
|
||||
assert.match(source, /clearLocalFontsCache\(\);\s*clearFontAvailabilityCache\(\);/);
|
||||
});
|
||||
@@ -1,36 +1,17 @@
|
||||
import { useSyncExternalStore } from 'react';
|
||||
import { createExternalStore } from './createExternalStore';
|
||||
|
||||
type Listener = () => void;
|
||||
const store = createExternalStore<string | null>(null, {
|
||||
isEqual: () => false,
|
||||
});
|
||||
|
||||
class HostTreeInlineGroupDeleteStore {
|
||||
private targetPath: string | null = null;
|
||||
private listeners = new Set<Listener>();
|
||||
|
||||
getTargetPath = () => this.targetPath;
|
||||
|
||||
open = (groupPath: string) => {
|
||||
this.targetPath = groupPath;
|
||||
this.listeners.forEach((listener) => listener());
|
||||
};
|
||||
|
||||
close = () => {
|
||||
if (!this.targetPath) return;
|
||||
this.targetPath = null;
|
||||
this.listeners.forEach((listener) => listener());
|
||||
};
|
||||
|
||||
subscribe = (listener: Listener) => {
|
||||
this.listeners.add(listener);
|
||||
return () => this.listeners.delete(listener);
|
||||
};
|
||||
}
|
||||
|
||||
export const hostTreeInlineGroupDeleteStore = new HostTreeInlineGroupDeleteStore();
|
||||
|
||||
export const useHostTreeInlineGroupDeleteTarget = () => {
|
||||
return useSyncExternalStore(
|
||||
hostTreeInlineGroupDeleteStore.subscribe,
|
||||
hostTreeInlineGroupDeleteStore.getTargetPath,
|
||||
hostTreeInlineGroupDeleteStore.getTargetPath,
|
||||
);
|
||||
export const hostTreeInlineGroupDeleteStore = {
|
||||
getTargetPath: store.getSnapshot,
|
||||
open: (groupPath: string) => store.setSnapshot(groupPath),
|
||||
close: () => {
|
||||
if (!store.getSnapshot()) return;
|
||||
store.setSnapshot(null);
|
||||
},
|
||||
subscribe: store.subscribe,
|
||||
};
|
||||
|
||||
export const useHostTreeInlineGroupDeleteTarget = () => store.useStore();
|
||||
@@ -1,4 +1,4 @@
|
||||
import { useSyncExternalStore } from 'react';
|
||||
import { createExternalStore } from './createExternalStore';
|
||||
|
||||
export type HostTreeInlineGroupEdit = {
|
||||
groupPath: string;
|
||||
@@ -7,46 +7,28 @@ export type HostTreeInlineGroupEdit = {
|
||||
shouldScrollIntoView?: boolean;
|
||||
};
|
||||
|
||||
type Listener = () => void;
|
||||
const store = createExternalStore<HostTreeInlineGroupEdit | null>(null, {
|
||||
isEqual: () => false,
|
||||
});
|
||||
|
||||
class HostTreeInlineGroupEditStore {
|
||||
private edit: HostTreeInlineGroupEdit | null = null;
|
||||
private listeners = new Set<Listener>();
|
||||
|
||||
getEdit = () => this.edit;
|
||||
|
||||
startEdit = (edit: HostTreeInlineGroupEdit) => {
|
||||
this.edit = {
|
||||
export const hostTreeInlineGroupEditStore = {
|
||||
getEdit: store.getSnapshot,
|
||||
startEdit: (edit: HostTreeInlineGroupEdit) => {
|
||||
store.setSnapshot({
|
||||
...edit,
|
||||
shouldScrollIntoView: edit.isNew ? true : edit.shouldScrollIntoView,
|
||||
};
|
||||
this.listeners.forEach((listener) => listener());
|
||||
};
|
||||
|
||||
markScrollHandled = () => {
|
||||
if (!this.edit?.shouldScrollIntoView) return;
|
||||
this.edit = { ...this.edit, shouldScrollIntoView: false };
|
||||
this.listeners.forEach((listener) => listener());
|
||||
};
|
||||
|
||||
clear = () => {
|
||||
if (!this.edit) return;
|
||||
this.edit = null;
|
||||
this.listeners.forEach((listener) => listener());
|
||||
};
|
||||
|
||||
subscribe = (listener: Listener) => {
|
||||
this.listeners.add(listener);
|
||||
return () => this.listeners.delete(listener);
|
||||
};
|
||||
}
|
||||
|
||||
export const hostTreeInlineGroupEditStore = new HostTreeInlineGroupEditStore();
|
||||
|
||||
export const useHostTreeInlineGroupEdit = () => {
|
||||
return useSyncExternalStore(
|
||||
hostTreeInlineGroupEditStore.subscribe,
|
||||
hostTreeInlineGroupEditStore.getEdit,
|
||||
hostTreeInlineGroupEditStore.getEdit,
|
||||
);
|
||||
});
|
||||
},
|
||||
markScrollHandled: () => {
|
||||
const current = store.getSnapshot();
|
||||
if (!current?.shouldScrollIntoView) return;
|
||||
store.setSnapshot({ ...current, shouldScrollIntoView: false });
|
||||
},
|
||||
clear: () => {
|
||||
if (!store.getSnapshot()) return;
|
||||
store.setSnapshot(null);
|
||||
},
|
||||
subscribe: store.subscribe,
|
||||
};
|
||||
|
||||
export const useHostTreeInlineGroupEdit = () => store.useStore();
|
||||
@@ -73,7 +73,7 @@ export async function executePluginHostAction(action: PluginHostAction, options:
|
||||
assertSelected();
|
||||
// The existing host connection handler owns authentication, saved scripts,
|
||||
// and sessions. Its return value never reaches the sandboxed plugin.
|
||||
options.connect(selected!);
|
||||
await options.connect(selected!);
|
||||
return 'requested';
|
||||
}
|
||||
const nextHost = action.kind === 'create'
|
||||
|
||||
@@ -1,18 +0,0 @@
|
||||
/** Native child views must yield to host dialogs and overlapping portals. */
|
||||
export function isPluginViewOccluded(mount: HTMLElement): boolean {
|
||||
const rect = mount.getBoundingClientRect();
|
||||
if (!mount.isConnected || mount.closest('[hidden], [inert], [aria-hidden="true"]')) return true;
|
||||
const overlays = mount.ownerDocument.querySelectorAll(
|
||||
'[data-app-lock-overlay], [role="dialog"], [role="alertdialog"], '
|
||||
+ '[role="menu"][data-state="open"], [data-radix-popper-content-wrapper] > *, [data-native-view-occluder]',
|
||||
);
|
||||
return [...overlays].some((overlay) => {
|
||||
if (mount.contains(overlay)) return false;
|
||||
const style = getComputedStyle(overlay);
|
||||
if (style.display === 'none' || style.visibility === 'hidden' || overlay.closest('[hidden], [inert]')) return false;
|
||||
if (overlay.matches('[data-app-lock-overlay], [role="dialog"][aria-modal="true"], [role="alertdialog"]')) return true;
|
||||
const other = overlay.getBoundingClientRect();
|
||||
return other.width > 0 && other.height > 0 && other.x < rect.right && other.right > rect.x
|
||||
&& other.y < rect.bottom && other.bottom > rect.y;
|
||||
});
|
||||
}
|
||||
@@ -0,0 +1,126 @@
|
||||
import assert from 'node:assert/strict';
|
||||
import test from 'node:test';
|
||||
|
||||
import { createPromptHostnameSessionSignalController } from './promptHostnameSessionSignalController.ts';
|
||||
|
||||
type Change = readonly [sessionId: string, hostname: string | null];
|
||||
|
||||
const getSession = (sessionId: string) => (
|
||||
sessionId === 'ssh-1'
|
||||
? { protocol: 'ssh' as const, hostname: 'jump.example.com' }
|
||||
: { protocol: 'local' as const, hostname: 'localhost' }
|
||||
);
|
||||
|
||||
function createHarness() {
|
||||
const changes: Change[] = [];
|
||||
const controller = createPromptHostnameSessionSignalController({
|
||||
getSession,
|
||||
onChange: (sessionId, hostname) => changes.push([sessionId, hostname]),
|
||||
});
|
||||
return { changes, controller };
|
||||
}
|
||||
|
||||
test('prompt host controller ignores the initial jumpserver prompt', () => {
|
||||
const { changes, controller } = createHarness();
|
||||
controller.handleTerminalOutput('ssh-1', 'Last login\r\n[root@jump.example.com ~]# ');
|
||||
assert.deepEqual(changes, []);
|
||||
});
|
||||
|
||||
test('prompt host controller publishes a nested target and de-duplicates it', () => {
|
||||
const { changes, controller } = createHarness();
|
||||
controller.handleTerminalOutput('ssh-1', '[root@jump.example.com ~]# ');
|
||||
controller.handleTerminalOutput('ssh-1', 'ssh root@10.1.64.1\r\n[root@10.1.64.1 ~]# ');
|
||||
controller.handleTerminalOutput('ssh-1', '\r\n[root@10.1.64.1 ~]# ');
|
||||
assert.deepEqual(changes, [['ssh-1', '10.1.64.1']]);
|
||||
});
|
||||
|
||||
test('prompt host controller clears the override when returning to the jumpserver', () => {
|
||||
const { changes, controller } = createHarness();
|
||||
controller.handleTerminalOutput('ssh-1', '[root@jump.example.com ~]# ');
|
||||
controller.handleTerminalOutput('ssh-1', '\r\n[root@10.1.64.1 ~]# ');
|
||||
controller.handleTerminalOutput('ssh-1', 'exit\r\n[root@jump.example.com ~]# ');
|
||||
assert.deepEqual(changes, [
|
||||
['ssh-1', '10.1.64.1'],
|
||||
['ssh-1', null],
|
||||
]);
|
||||
});
|
||||
|
||||
test('prompt host controller detects an identity split across output chunks', () => {
|
||||
const { changes, controller } = createHarness();
|
||||
controller.handleTerminalOutput('ssh-1', '[root@jump.example.com ~]# ');
|
||||
controller.handleTerminalOutput('ssh-1', 'ssh target\r\n[root@10.1.');
|
||||
controller.handleTerminalOutput('ssh-1', '64.1 ~]# ');
|
||||
assert.deepEqual(changes, [['ssh-1', '10.1.64.1']]);
|
||||
});
|
||||
|
||||
test('prompt host controller ignores ambiguous, sensitive, and local output', () => {
|
||||
const { changes, controller } = createHarness();
|
||||
controller.handleTerminalOutput('ssh-1', '[root@jump.example.com ~]# ');
|
||||
controller.handleTerminalOutput('ssh-1', 'Password:\n# ');
|
||||
controller.handleTerminalOutput('ssh-1', 'copied output\n# ');
|
||||
controller.handleTerminalOutput('local-1', '[root@10.1.64.1 ~]# ');
|
||||
assert.deepEqual(changes, []);
|
||||
});
|
||||
|
||||
test('prompt host controller ignores host-like text embedded in copied output', () => {
|
||||
const { changes, controller } = createHarness();
|
||||
controller.handleTerminalOutput('ssh-1', '[root@jump.example.com ~]# ');
|
||||
controller.handleTerminalOutput('ssh-1', 'see [root@prod] logs\n# ');
|
||||
controller.handleTerminalOutput('ssh-1', '[root@prod] copied output\n# ');
|
||||
controller.handleTerminalOutput('ssh-1', 'root@prod output\n# ');
|
||||
controller.handleTerminalOutput('ssh-1', '[root@prod] version = 1.2\n# ');
|
||||
assert.deepEqual(changes, []);
|
||||
});
|
||||
|
||||
test('prompt host controller publishes common zsh, Alpine, and macOS root prompt hosts', () => {
|
||||
for (const [prompt, hostname] of [
|
||||
['alice@target-a ~ % ', 'target-a'],
|
||||
['alice@target-b ~ # ', 'target-b'],
|
||||
['target-c:~# ', 'target-c'],
|
||||
['target-d:~ root# ', 'target-d'],
|
||||
]) {
|
||||
const { changes, controller } = createHarness();
|
||||
controller.handleTerminalOutput('ssh-1', prompt);
|
||||
assert.deepEqual(changes, [['ssh-1', hostname]]);
|
||||
}
|
||||
});
|
||||
|
||||
test('prompt host controller clears live target host when JumpServer returns to its menu', () => {
|
||||
for (const menuPrompt of ['Opt> ', '[Host]> ', '\x1b[32mOpt> \x1b[0m']) {
|
||||
const { changes, controller } = createHarness();
|
||||
// Initial menu before jumping emits nothing.
|
||||
controller.handleTerminalOutput('ssh-1', `Welcome to JumpServer\r\n${menuPrompt}`);
|
||||
// Jump into target host (including repeated CR+EL redraws).
|
||||
controller.handleTerminalOutput(
|
||||
'ssh-1',
|
||||
'11\r\nLast login: Mon Nov 23 16:01:46 2026\r\n[root@k8s-10-1-64-1 ~] br0 = 10.1.64.1\r\r\n# \r\x1b[K# ',
|
||||
);
|
||||
// Exiting back to JumpServer menu clears the published target hostname.
|
||||
controller.handleTerminalOutput('ssh-1', `exit\r\nlogout\r\nConnection closed.\r\n${menuPrompt}`);
|
||||
// Repeating menu prompt does not emit duplicate null updates.
|
||||
controller.handleTerminalOutput('ssh-1', `\r\n${menuPrompt}`);
|
||||
// Jumping to a second target publishes the new host.
|
||||
controller.handleTerminalOutput('ssh-1', '12\r\n[root@app-prod-02 ~]# ');
|
||||
|
||||
assert.deepEqual(
|
||||
changes,
|
||||
[
|
||||
['ssh-1', 'k8s-10-1-64-1'],
|
||||
['ssh-1', null],
|
||||
['ssh-1', 'app-prod-02'],
|
||||
],
|
||||
JSON.stringify(menuPrompt),
|
||||
);
|
||||
}
|
||||
});
|
||||
|
||||
test('prompt host controller forgets closed sessions when pruned', () => {
|
||||
const { changes, controller } = createHarness();
|
||||
controller.handleTerminalOutput('ssh-1', '[root@app-prod-01 ~]# ');
|
||||
controller.forgetSession('ssh-1');
|
||||
controller.handleTerminalOutput('ssh-1', '[root@app-prod-01 ~]# ');
|
||||
assert.deepEqual(changes, [
|
||||
['ssh-1', 'app-prod-01'],
|
||||
['ssh-1', 'app-prod-01'],
|
||||
]);
|
||||
});
|
||||
Loaded 100 of 851 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user