mirror of
https://github.com/Termix-SSH/Termix.git
synced 2026-10-28 14:15:24 +00:00
release-2.9.0 (#1532)
* fix(macos): skip single-instance lock in Mac App Store builds (#1454)
fix(macos): skip single-instance lock in Mac App Store builds
* Fix/backend optional sharp (#1455)
Fix/backend optional sharp
* feat: issue #1218 (#1218)
https://github.com/Termix-SSH/Support/issues/1218
* feat: Add option to use saved global custom theme under Connection Defaults (#1209)
https://github.com/Termix-SSH/Support/issues/1209
* feat: Add Fleet Sharing functionality to the UI (#1228)
https://github.com/Termix-SSH/Support/issues/1228
* feat: Add a list view to the Docker management page (#1237)
https://github.com/Termix-SSH/Support/issues/1237
* feat: issue #1264 (#1264)
https://github.com/Termix-SSH/Support/issues/1264
* feat: 2FA With FortiToken (#1288)
https://github.com/Termix-SSH/Support/issues/1288
* feat: Allow to disable showing paths to folders (#1274)
https://github.com/Termix-SSH/Support/issues/1274
* feat: Sync Network Graph between Desktop and Remote Server (#1245)
https://github.com/Termix-SSH/Support/issues/1245
* feat: Version Number on offline servers (#1291)
https://github.com/Termix-SSH/Support/issues/1291
* feat: Support OrbStack Docker socket path on macOS / Fix "Docker is not installed" on mac... (#1302)
https://github.com/Termix-SSH/Support/issues/1302
* feat: Sidebar host click should focus existing tab instead of opening a new connection (#1289)
https://github.com/Termix-SSH/Support/issues/1289
* fix: Search in side bar shows overlapping hosts when grouped by tags (#1303)
https://github.com/Termix-SSH/Support/issues/1303
* fix: I can't send a file on its own. (#1304)
https://github.com/Termix-SSH/Support/issues/1304
* fix: sudo password not autofilling (#1248)
https://github.com/Termix-SSH/Support/issues/1248
* fix: node-MainThread (#1300)
https://github.com/Termix-SSH/Support/issues/1300
* fix: Tunnel authentication with shared credentials (#1295)
https://github.com/Termix-SSH/Support/issues/1295
* fix: host key updates not syncing, metrics 404 race on first connect
Host key writes never bumped updatedAt so sync never picked them up.
Also retry the first metrics fetch briefly instead of failing right away.
* chore: increment ver
* feat: add category and icon fields to plugin manifest schema
* ci(deps): bump the github-actions group with 2 updates (#1458)
Bumps the github-actions group with 2 updates: [crowdin/github-action](https://github.com/crowdin/github-action) and [actions/github-script](https://github.com/actions/github-script).
Updates `crowdin/github-action` from 2 to 3
- [Release notes](https://github.com/crowdin/github-action/releases)
- [Commits](https://github.com/crowdin/github-action/compare/v2...v3)
Updates `actions/github-script` from 7 to 9
- [Release notes](https://github.com/actions/github-script/releases)
- [Commits](https://github.com/actions/github-script/compare/v7...v9)
---
updated-dependencies:
- dependency-name: crowdin/github-action
dependency-version: '3'
dependency-type: direct:production
update-type: version-update:semver-major
dependency-group: github-actions
- dependency-name: actions/github-script
dependency-version: '9'
dependency-type: direct:production
update-type: version-update:semver-major
dependency-group: github-actions
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps-dev): bump the dev-patch-updates group with 13 updates (#1459)
Bumps the dev-patch-updates group with 13 updates:
| Package | From | To |
| --- | --- | --- |
| [@codemirror/commands](https://github.com/codemirror/commands) | `6.11.0` | `6.11.1` |
| [@codemirror/search](https://github.com/codemirror/search) | `6.7.1` | `6.7.2` |
| [@codemirror/view](https://github.com/codemirror/view) | `6.43.9` | `6.43.12` |
| [@testing-library/dom](https://github.com/testing-library/dom-testing-library) | `10.4.1` | `10.4.2` |
| [@testing-library/react](https://github.com/testing-library/react-testing-library) | `16.3.2` | `16.3.3` |
| [@testing-library/user-event](https://github.com/testing-library/user-event) | `14.6.5` | `14.6.7` |
| [@types/ssh2](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/ssh2) | `1.15.5` | `1.15.6` |
| [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/tree/HEAD/packages/plugin-react) | `6.1.0` | `6.1.1` |
| [cytoscape](https://github.com/cytoscape/cytoscape.js) | `3.34.1` | `3.34.3` |
| [eslint-plugin-react-refresh](https://github.com/ArnaudBarre/eslint-plugin-react-refresh) | `0.5.4` | `0.5.7` |
| [i18next](https://github.com/i18next/i18next) | `26.4.0` | `26.4.2` |
| [prettier](https://github.com/prettier/prettier) | `3.9.6` | `3.9.8` |
| [react-i18next](https://github.com/i18next/react-i18next) | `17.0.12` | `17.0.14` |
Updates `@codemirror/commands` from 6.11.0 to 6.11.1
- [Changelog](https://github.com/codemirror/commands/blob/main/CHANGELOG.md)
- [Commits](https://github.com/codemirror/commands/commits)
Updates `@codemirror/search` from 6.7.1 to 6.7.2
- [Changelog](https://github.com/codemirror/search/blob/main/CHANGELOG.md)
- [Commits](https://github.com/codemirror/search/commits)
Updates `@codemirror/view` from 6.43.9 to 6.43.12
- [Changelog](https://github.com/codemirror/view/blob/main/CHANGELOG.md)
- [Commits](https://github.com/codemirror/view/commits)
Updates `@testing-library/dom` from 10.4.1 to 10.4.2
- [Release notes](https://github.com/testing-library/dom-testing-library/releases)
- [Changelog](https://github.com/testing-library/dom-testing-library/blob/main/CHANGELOG.md)
- [Commits](https://github.com/testing-library/dom-testing-library/compare/v10.4.1...v10.4.2)
Updates `@testing-library/react` from 16.3.2 to 16.3.3
- [Release notes](https://github.com/testing-library/react-testing-library/releases)
- [Changelog](https://github.com/testing-library/react-testing-library/blob/main/CHANGELOG.md)
- [Commits](https://github.com/testing-library/react-testing-library/compare/v16.3.2...v16.3.3)
Updates `@testing-library/user-event` from 14.6.5 to 14.6.7
- [Release notes](https://github.com/testing-library/user-event/releases)
- [Changelog](https://github.com/testing-library/user-event/blob/main/CHANGELOG.md)
- [Commits](https://github.com/testing-library/user-event/compare/v14.6.5...v14.6.7)
Updates `@types/ssh2` from 1.15.5 to 1.15.6
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/ssh2)
Updates `@vitejs/plugin-react` from 6.1.0 to 6.1.1
- [Release notes](https://github.com/vitejs/vite-plugin-react/releases)
- [Changelog](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react/CHANGELOG.md)
- [Commits](https://github.com/vitejs/vite-plugin-react/commits/plugin-react@6.1.1/packages/plugin-react)
Updates `cytoscape` from 3.34.1 to 3.34.3
- [Release notes](https://github.com/cytoscape/cytoscape.js/releases)
- [Commits](https://github.com/cytoscape/cytoscape.js/compare/v3.34.1...v3.34.3)
Updates `eslint-plugin-react-refresh` from 0.5.4 to 0.5.7
- [Release notes](https://github.com/ArnaudBarre/eslint-plugin-react-refresh/releases)
- [Changelog](https://github.com/ArnaudBarre/eslint-plugin-react-refresh/blob/main/CHANGELOG.md)
- [Commits](https://github.com/ArnaudBarre/eslint-plugin-react-refresh/compare/v0.5.4...v0.5.7)
Updates `i18next` from 26.4.0 to 26.4.2
- [Release notes](https://github.com/i18next/i18next/releases)
- [Changelog](https://github.com/i18next/i18next/blob/master/CHANGELOG.md)
- [Commits](https://github.com/i18next/i18next/compare/v26.4.0...v26.4.2)
Updates `prettier` from 3.9.6 to 3.9.8
- [Release notes](https://github.com/prettier/prettier/releases)
- [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prettier/prettier/compare/3.9.6...3.9.8)
Updates `react-i18next` from 17.0.12 to 17.0.14
- [Changelog](https://github.com/i18next/react-i18next/blob/master/CHANGELOG.md)
- [Commits](https://github.com/i18next/react-i18next/compare/v17.0.12...v17.0.14)
---
updated-dependencies:
- dependency-name: "@codemirror/commands"
dependency-version: 6.11.1
dependency-type: direct:development
update-type: version-update:semver-patch
dependency-group: dev-patch-updates
- dependency-name: "@codemirror/search"
dependency-version: 6.7.2
dependency-type: direct:development
update-type: version-update:semver-patch
dependency-group: dev-patch-updates
- dependency-name: "@codemirror/view"
dependency-version: 6.43.12
dependency-type: direct:development
update-type: version-update:semver-patch
dependency-group: dev-patch-updates
- dependency-name: "@testing-library/dom"
dependency-version: 10.4.2
dependency-type: direct:development
update-type: version-update:semver-patch
dependency-group: dev-patch-updates
- dependency-name: "@testing-library/react"
dependency-version: 16.3.3
dependency-type: direct:development
update-type: version-update:semver-patch
dependency-group: dev-patch-updates
- dependency-name: "@testing-library/user-event"
dependency-version: 14.6.7
dependency-type: direct:development
update-type: version-update:semver-patch
dependency-group: dev-patch-updates
- dependency-name: "@types/ssh2"
dependency-version: 1.15.6
dependency-type: direct:development
update-type: version-update:semver-patch
dependency-group: dev-patch-updates
- dependency-name: "@vitejs/plugin-react"
dependency-version: 6.1.1
dependency-type: direct:development
update-type: version-update:semver-patch
dependency-group: dev-patch-updates
- dependency-name: cytoscape
dependency-version: 3.34.3
dependency-type: direct:development
update-type: version-update:semver-patch
dependency-group: dev-patch-updates
- dependency-name: eslint-plugin-react-refresh
dependency-version: 0.5.7
dependency-type: direct:development
update-type: version-update:semver-patch
dependency-group: dev-patch-updates
- dependency-name: i18next
dependency-version: 26.4.2
dependency-type: direct:development
update-type: version-update:semver-patch
dependency-group: dev-patch-updates
- dependency-name: prettier
dependency-version: 3.9.8
dependency-type: direct:development
update-type: version-update:semver-patch
dependency-group: dev-patch-updates
- dependency-name: react-i18next
dependency-version: 17.0.14
dependency-type: direct:development
update-type: version-update:semver-patch
dependency-group: dev-patch-updates
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* chore(deps): bump the prod-patch-updates group with 6 updates (#1461)
Bumps the prod-patch-updates group with 6 updates:
| Package | From | To |
| --- | --- | --- |
| [@tanstack/react-virtual](https://github.com/TanStack/virtual/tree/HEAD/packages/react-virtual) | `3.14.10` | `3.14.13` |
| [compression](https://github.com/expressjs/compression) | `1.8.1` | `1.8.2` |
| [jose](https://github.com/panva/jose) | `6.2.9` | `6.2.12` |
| [jszip](https://github.com/Stuk/jszip) | `3.10.1` | `3.10.2` |
| [socks](https://github.com/JoshGlazebrook/socks) | `2.8.9` | `2.8.10` |
| [undici](https://github.com/nodejs/undici) | `8.10.0` | `8.10.2` |
Updates `@tanstack/react-virtual` from 3.14.10 to 3.14.13
- [Release notes](https://github.com/TanStack/virtual/releases)
- [Changelog](https://github.com/TanStack/virtual/blob/main/packages/react-virtual/CHANGELOG.md)
- [Commits](https://github.com/TanStack/virtual/commits/@tanstack/react-virtual@3.14.13/packages/react-virtual)
Updates `compression` from 1.8.1 to 1.8.2
- [Release notes](https://github.com/expressjs/compression/releases)
- [Changelog](https://github.com/expressjs/compression/blob/master/HISTORY.md)
- [Commits](https://github.com/expressjs/compression/compare/v1.8.1...v1.8.2)
Updates `jose` from 6.2.9 to 6.2.12
- [Release notes](https://github.com/panva/jose/releases)
- [Changelog](https://github.com/panva/jose/blob/main/CHANGELOG.md)
- [Commits](https://github.com/panva/jose/compare/v6.2.9...v6.2.12)
Updates `jszip` from 3.10.1 to 3.10.2
- [Changelog](https://github.com/Stuk/jszip/blob/main/CHANGES.md)
- [Commits](https://github.com/Stuk/jszip/compare/v3.10.1...v3.10.2)
Updates `socks` from 2.8.9 to 2.8.10
- [Release notes](https://github.com/JoshGlazebrook/socks/releases)
- [Commits](https://github.com/JoshGlazebrook/socks/compare/2.8.9...2.8.10)
Updates `undici` from 8.10.0 to 8.10.2
- [Release notes](https://github.com/nodejs/undici/releases)
- [Commits](https://github.com/nodejs/undici/compare/v8.10.0...v8.10.2)
---
updated-dependencies:
- dependency-name: "@tanstack/react-virtual"
dependency-version: 3.14.13
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: prod-patch-updates
- dependency-name: compression
dependency-version: 1.8.2
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: prod-patch-updates
- dependency-name: jose
dependency-version: 6.2.12
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: prod-patch-updates
- dependency-name: jszip
dependency-version: 3.10.2
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: prod-patch-updates
- dependency-name: socks
dependency-version: 2.8.10
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: prod-patch-updates
- dependency-name: undici
dependency-version: 8.10.2
dependency-type: direct:production
update-type: version-update:semver-patch
dependency-group: prod-patch-updates
...
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* feat: add plugin worker protocol, bootstrap and plugin_storage table
Worker-side ctx proxy plus the message envelope it talks over, and the
per-plugin key/value table behind ctx.storage with migrations for all
three dialects. Rows cascade with the plugin so uninstalling leaves
nothing behind.
* feat: add allowlisted host view for plugins
An allowlist rather than a list of fields to strip. A blocklist rots:
the moment a new secret-bearing column lands on SSHHost it starts
leaking silently. With an allowlist a new field stays invisible to
plugins until someone adds it here on purpose.
* feat: add plugin loader with manifest validation and crash restart
Validates an unpacked plugin, spawns a worker_threads worker and manages
activate/deactivate/crash-restart with backoff, disabling after three
tries.
The crash counter clears only after a plugin stays up past a stability
window, not on activation. Clearing it on activation let a plugin that
activates cleanly and then dies restart forever, because every attempt
looked like the first.
loader.ts documents what the worker boundary does and does not buy you.
Node's permission model is process-wide, not per-worker, so it cannot be
enabled for plugin workers alone and is not claimed here.
* feat: route internal events through a shared plugin event bus
Formalises three ad-hoc publish paths that already existed:
automation-events.ts, metrics/automation-bridge.ts and the
hostSessionStatus singleton, now the host.session.status topic.
Both invariants the old code relied on are preserved. Publishing stays
fire-and-forget, so a failing subscriber cannot disturb a metrics poll or
a host delete. The automations engine subscribes to the bus at scheduler
start instead of being imported ad hoc, which keeps the edge
one-directional: automations may import repositories, hosts modules must
not import automations.
* feat: add plugin ctx broker with permission gate and audit
Every ctx call a plugin makes is checked against its granted
capabilities, performed by the main thread, then audited. A capability
must be both declared in the manifest and granted in the database, so
widening a plugin's reach always needs a new manifest the user can see,
never just a database row.
Audit attribution is set by the broker, not the plugin. The plugin
supplies only the details, so it cannot forge the actor.
fix: stop plugin workers seeing plaintext credentials in error messages
A failing ctx.ssh.connect handed the worker the raw error from deep in
the SSH stack, which embeds the connect config. The worker received, in
full:
Authentication failed for root using password <SECRET>
where <SECRET> was the host's real plaintext password. Any plugin with
ssh.exec could read it by catching the error, defeating the whole point
of the handle-based ssh API.
Errors crossing the boundary are now sanitised. Only PluginFacingError
and PluginPermissionError, both authored here, reach a plugin verbatim;
anything else becomes a generic message and the real one goes to the
log. This uses a marker class rather than matching on message text,
because matching would start leaking again the moment an upstream error
happened to contain a familiar phrase.
Covered by credential-isolation.test.ts, which plants a sentinel in
every secret-bearing field and asserts it appears in no message the
worker ever receives.
* feat: dispatch plugin HTTP routes and wire the runtime into startup
ctx.http.route now registers a real router on the /plugin-api/:pluginId
dispatcher, replacing its stub 404. A plugin never touches the Express
req/res: it gets a plain summary and returns a plain object, so sockets
and session cookies stay on this side of the boundary. Authorization and
cookie headers are not forwarded.
Plugins load last in the start-up sequence, after the server is fully
wired, and are terminated before the database on shutdown so none can
outlive it. A plugin that fails to load cannot stop the backend.
fix: correct the nginx plugin-api location regex
The pattern was ^/plugin-api/(/.*)?$, which needs a double slash and so
never matched /plugin-api/<id>/<route>. Every other block in the file
uses ^/prefix(/.*)?$. Left alone, plugin routes would work in dev and
404 only behind Docker.
* fix: update stale SFTP transfer test for single file destination paths
The test still asserted transferToHost was called with the destination
directory "/srv". Commit 7727fa09 (#1304) deliberately changed a single
file transfer to send the full destination path including the filename,
so the correct expectation is "/srv/remote-1.txt". The code was right
and the test was left behind.
* feat: ship the ssh terminal as a first-party in-process plugin
Adds a hardcoded process:transport-owner tier so the terminal can own its
WebSocket server and ssh2 clients, which cannot cross the worker boundary.
* feat: ship docker as a first-party in-process plugin
Moves docker backend and frontend into plugins/docker/, alongside
ssh-terminal. Adds a host editor tab seam, a dashboard card registry,
and a build step to compile plugin backends into dist.
* feat: ship host metrics as a first-party in-process plugin
* fix: harden plugin auth and add per-request identity for ctx calls
Require auth on /plugin-api, gate plugin enable/grant/revoke routes
behind admin.plugins.manage, and thread the calling user through
worker ctx.hosts/ctx.ssh calls instead of always using the install
owner. Also adds the plugin permissions grant/revoke UI.
* feat: ship the AI assistant as a first-party in-process plugin
Moves src/backend/ai and its routes into plugins/ai, mounted through a
small /ai dispatcher instead of its own port. Moves the ai-enabled and
ai-private-endpoints settings routes out of user-settings-routes.ts
into the plugin too, so it has no leftover core dependents.
* fix: remove compiled plugin JS left behind in plugins/ after build
copy-bundled-plugins.cjs compiled and rewrote plugin backend TS in
place, copied it to dist/plugins, but never deleted the .js it had
just emitted next to the .ts sources. Those files shadowed the real
source for vitest/tsx and had import paths rewritten for the dist
layout, so tests failed with "Cannot find module" once a local build
had run. Affects docker, host-metrics and ai, not just this one.
* feat: add a permission-gated backend service registry for plugins
* feat: add a permission-gated UI action registry and action slots for plugins
Moves the terminal toolbar's hardwired AI button into a slot the ssh-terminal
plugin offers and the ai plugin fills, gated on ai.services.use.
* feat: add cross-plugin secret references gated by the provider's RBAC permission
* feat: move proxmox discovery/import/sync into a first-party plugin
* feat: move remote desktop (RDP/VNC/Telnet) into a first-party plugin
Relocates guacamole backend/frontend source and tests into
plugins/remote-desktop, following the ssh-terminal/docker pattern.
* feat: wire remote-desktop plugin into core and rename i18n keys
Repoints core consumers (dispatcher, collab, session-sharing, tab
utils) at the plugin, adds isTabTypeAvailable gating for rdp/vnc/
telnet, widens hostCapability to accept an array, and renames the
guacamole i18n namespace to remoteDesktop.
* feat: move fleets into a first-party plugin
* feat: move automations into a first-party plugin
* feat: remove legacy alert rules, superseded by automations
Alert rules already auto-migrate into automations on boot and the old
engine stands down after. Deletes the rule/firing tables, routes, UI,
and AI tools; keeps notification channels since automations still use
them. Also fixes automations' notify step, which still called the
deleted repository.
* feat: move network topology into a first-party plugin
* feat: move tailscale device discovery and settings into a plugin
Adds plugins/tailscale/ with a devices sidebar tab, admin settings
section, and re-auth dialog. Host Metrics tailscale manager card and
SSH re-auth banner parsing stay in core.
* feat: move workspaces into a first-party plugin
* feat: move web endpoint into a first-party plugin
* feat: collapse plugin runtime to one tier behind a plugin SDK
* feat: make each plugin an npm workspace built by a termix-plugin CLI
* feat: give plugins their own tables, migrations and sync entities
* feat: serve plugin http and websockets from one mount instead of ports
* feat: namespace plugin permissions and keep them valid when a plugin is off
* feat: give plugins their own settings and one settings screen
* feat: load plugin frontends at runtime and remove plugin ids from the shell
* fix: mock the ai status fetch in its activate test
* feat: add auth extension points and one ssh connect pipeline
* feat: rebuild workspaces as the reference plugin
* fix: gate second factors after SSO/LDAP behind an admin setting
* feat: convert network-topology to a full plugin (B1)
* feat: move snippets backend and tables into a plugin (B2)
* feat: point core frontend snippets pickers at the plugin (B2)
* feat: add the snippets plugin (B2)
* feat: wire ai, automations, fleets and ssh-terminal to snippets (B2)
* feat: finish the tailscale plugin, including SSH auth (B3)
* feat: finish the fleets plugin, add ctx.hosts and host-commands SDK (B4)
* chore: update proxmox and host-metrics locale files for B5
* chore: regenerate drizzle migration journals for B5
* feat: add ctx.hosts create/update to the SDK, host-metrics drops proxmox
* feat: move proxmox node stats and collectors into the proxmox plugin
* feat: drop proxmox host columns, use plugin settings instead
* feat: finish the fleets plugin, add ctx.hosts and host-commands SDK (B4)
* feat: convert file manager into a plugin
* feat: convert ssh tunnels into a plugin
* feat: finish the web-endpoint plugin, add ctx.desktop (B8)
* feat: move the terminal fully into the ssh-terminal plugin (B9)
* feat: convert tmux monitoring into a plugin (B10)
* feat: convert serial console into the serial plugin
* feat: move session sharing and collab rooms into a plugin (B12)
* feat: turn session recording into a plugin (B13)
* feat: finish the remote-desktop plugin (B14)
* feat: finish the host-metrics plugin, move host status into core (B16)
* feat: finish the docker plugin (B15)
* feat: finish the automations plugin (B17)
* feat: finish the ai plugin (B18)
* feat: finish the homepage plugin, move service links and canvas out of core (B19)
* feat: convert wake-on-lan into a plugin (B20)
* feat: convert secret-sources into a plugin (B20)
* feat: move totp and passkeys into plugins (C1)
* feat: move sso and ldap logins into plugins (C2)
* feat: move opkssh and warpgate into plugins (C3)
* feat: move step-ca into a plugin (C4)
* feat: move vault ssh signing into a plugin (C5)
* feat: move termix identity into a plugin (C6)
* feat: move acme certificate automation into a plugin (C7)
* fix: finish 2.9.0 plugin moves and get every check green
* chore: lock the plugin boundary and remove 2.9.0 leftovers
* fix: harden the plugin runtime after the 2.9.0 security review
* feat: add plugin packing, signing, pinned trust and tmxplug bundling
* test: prove 2.8 to 2.9.0 upgrade is lossless and fix what it caught
* fix: give bundled plugin backends a real require for CJS deps
* feat: improve UI loading time and jitter
* feat: show credential sharing inline in the sidebar like host sharing
* feat: tailscale add host and copy ip, fix outbound fetch hang and plugin ESM warning
* feat: unify alerts into one plugin, channels, rules and inbox
* feat: rebuild desktop sync as linked server accounts, fix packaged plugin bundles and UI scaling
* fix: set blacksmith builder cache-key to stop broken gha cache fallback
* fix: link plugin-sdk workspace before npm ci in docker deps stage
* fix: link every plugin workspace before npm ci in docker deps stage
* fix(host-metrics): exclude image and firmware filesystems (#1469)
* fix(host-metrics): exclude image and firmware filesystems
* fix(ci): build plugin SDK before dependent checks
* fix(mysql): keep plugin settings scope indexes within limits
* test(mysql): refresh reviewed plugin upgrade SQL
* fix(hosts): normalize imported jump host references (#1470)
* fix(hosts): normalize imported jump host references
* fix(ci): build plugin SDK before dependent checks
* fix(mysql): keep plugin settings scope indexes within limits
* test(mysql): refresh reviewed plugin upgrade SQL
* fix(ci): build plugin SDK and repair MySQL settings migration (#1471)
* fix(ci): build plugin SDK before dependent checks
* fix(mysql): keep plugin settings scope indexes within limits
* test(mysql): refresh reviewed plugin upgrade SQL
* fix(file-manager): keep inline rename consistent (#1476)
* fix(ci): build plugin SDK before dependent checks
* fix(mysql): keep plugin settings scope indexes within limits
* test(mysql): refresh reviewed plugin upgrade SQL
* fix(file-manager): keep inline rename consistent
* fix(dashboard): reuse translated host status labels (#1475)
* fix(ci): build plugin SDK before dependent checks
* fix(mysql): keep plugin settings scope indexes within limits
* test(mysql): refresh reviewed plugin upgrade SQL
* fix(dashboard): reuse translated host status labels
* docs(api): clarify local and remote version fields (#1474)
* fix(ci): build plugin SDK before dependent checks
* fix(mysql): keep plugin settings scope indexes within limits
* test(mysql): refresh reviewed plugin upgrade SQL
* docs(api): clarify local and remote version fields
* fix(file-manager): preserve selected backgrounds on hover (#1473)
* fix(ci): build plugin SDK before dependent checks
* fix(mysql): keep plugin settings scope indexes within limits
* test(mysql): refresh reviewed plugin upgrade SQL
* fix(file-manager): preserve selection feedback on hover
* test(ui): await dialog focus cleanup before teardown
* fix(file-manager): restore Ctrl/Cmd+F file search (#1472)
* fix(ci): build plugin SDK before dependent checks
* fix(mysql): keep plugin settings scope indexes within limits
* test(mysql): refresh reviewed plugin upgrade SQL
* fix(file-manager): focus file search with Ctrl or Cmd F
* fix: keep rounded-full circular in production builds
* fix(file-manager): cancel uploads and stop remote writes (#1477)
* fix(file-manager): cancel uploads and stop remote writes
* test(css): exercise the configured PostCSS plugin chain
* fix(file-manager): apply compact density to directory tree (#1478)
* fix(file-manager): apply compact density to directory tree
* test(css): exercise the configured PostCSS plugin chain
* fix(file-manager): preserve font sizes in compact mode (#1480)
* fix(file-manager): preserve font sizes in compact mode
* test(css): exercise the configured PostCSS plugin chain
* fix(file-manager): prioritize file names in narrow lists (#1483)
* fix(file-manager): prioritize file names in narrow lists
* test(css): exercise the configured PostCSS plugin chain
* test(identity): preserve full Ed25519 public keys in fixtures
* test(remote-desktop): always mutate ciphertext in tamper test
* fix(remote-desktop): probe the saved host guacd endpoint (#1481)
* fix(remote-desktop): probe the saved host guacd endpoint
* test(css): exercise the configured PostCSS plugin chain
* test(identity): preserve full Ed25519 public keys in fixtures
* fix(homepage): check allowlisted private service reachability (#1479)
* fix(homepage): check allowlisted private service reachability
* test(css): exercise the configured PostCSS plugin chain
* fix(remote-desktop): stop unsolicited clipboard read prompts (#1482)
* fix(remote-desktop): read clipboard only on explicit paste
* test(css): exercise the configured PostCSS plugin chain
* test(identity): preserve full Ed25519 public keys in fixtures
* test(remote-desktop): always mutate ciphertext in tamper test
* chore: simplify plugin readmes, changelogs and manifest descriptions
* fix: keep plugins loaded after signing in from the login screen
* fix(file-manager): accept OS file drops over existing rows (#1484)
* fix(file-manager): accept OS file drops over existing rows
* test(file-manager): target the file label in drop tests
* test(css): exercise the configured PostCSS plugin chain
* test(identity): preserve full Ed25519 public keys in fixtures
* test(remote-desktop): always mutate ciphertext in tamper test
* fix(file-manager): pipeline SFTP download reads (#1485)
* feat: add plugin sdk build to beta release
* fix: make link-store secret check immune to random base64 matches
* fix(ldap): preserve the directory-provided bind DN (#1486)
* fix: compute beta changes across dev branches and move the beta tag
* chore: untrack plugin sdk ARCHITECTURE.md
* chore: remove references to plugin sdk ARCHITECTURE.md
* feat: merge host editor terminal tabs into one owned by ssh-terminal
* feat: add descriptions to plugin host enable toggles
* fix(file-manager): show download progress in file viewers (#1487)
* fix(electron): signal backend readiness over IPC (#1488)
* fix(split-screen): allow layout creation without randomUUID (#1490)
* fix(split-screen): allow layout creation without randomUUID
* test(credentials): avoid flaky Ed25519 key generation
* fix(sidebar): remeasure visible rows after density changes (#1489)
* fix(sidebar): remeasure visible rows after density changes
* test(credentials): avoid flaky Ed25519 key generation
* feat(split-screen): redesign split screen with free-form panes and pane picker
* feat(sidebar): add host click behavior setting, default to always opening a new tab
* feat(snippets): redesign panel to match the host list
* fix(session-recording): stop session logs panel from refetching in a loop
* feat(snippets): bring back sharing, target hosts and drag reorder
* feat(ssh-terminal): add toolbar position, start state, display and fade host settings
* feat(ssh-terminal): add host setting to turn off password prompt auto-fill
* fix(ai): stop streams getting cut off and keep tool steps across messages
* feat: improve quick connect system using plugin api
* fix: proxmox guest sync, startup snippet sync, drop dead cloudflare ssh transport
* feat: move terminal settings, look and ssh tools into ssh-terminal plugin
* feat: move snippets, keybinding actions and macros out of core into plugins
* feat: store rdp, vnc and telnet logins in a generic per-protocol table
* feat: type the plugin host record, move plugin strings out of core and add lint checks
* feat: replace core homepage widget registry with generic extension points
* feat: plugins only see their own host settings in the browser
* feat: harden plugin api for separate repos, signed updates and generic external login
* fix: keep plugin css below core utilities and version plugin assets by their css
* fix: load and save plugin host settings in the editor and tighten settings row spacing
* feat: redesign user host defaults system
* fix(remote-desktop): release held keys on focus loss (#1498)
* fix(session-sharing): replace local presentation after takeover (#1500)
* fix(file-manager): refresh disk usage with directory listing (#1503)
* fix(ssh-terminal): preserve input order during local echo reconciliation (#1505)
* feat(remote-desktop): expose display zoom controls for RDP (#1514)
* fix(file-manager): restore text selection and copying in Markdown previews (#1518)
* fix(sidebar): keep compact host addresses visible (#1524)
* fix(hosts): preserve plugin settings when reopening the editor (#1499)
* fix(ssh-terminal): close owner sockets when presentations unmount (#1501)
* fix(session-sharing): synchronize shared SSH terminal dimensions (#1502)
* fix(session-sharing): show participant presence in member terminals (#1504)
* fix(ai): sync provider configuration and keys across linked devices (#1506)
* feat(ssh-terminal): add a duplicate tab action (#1510)
* feat(file-manager): allow disabling move-to-trash confirmation (#1511)
* feat(file-manager): default to the remote login directory (#1512)
* feat(homepage): synchronize canvas layouts across devices (#1515)
* fix(shortcuts): prevent accidental double-Shift palette activation (#1519)
* feat(tmux-monitor): add a unified multi-host view (#1520)
* fix(electron): allow explicit quit with active connections (#1522)
* feat: reconnect all disconnected terminal tabs (#1523)
* fix(hosts): preserve recording and sharing settings in the dev editor (#1509)
* fix(database): preserve RDP domain during startup backfill (#1497)
* feat(sidebar): add keyboard type-ahead search for hosts (#1516)
* feat(automations): add per-host maintenance mode and recurring schedules (#1521)
* feat(tmux): add a per-host mouse toggle and preserve remote configuration (#1513)
* fix(session-sharing): use the linked server for desktop meetings and links (#1507)
* fix(tunnels): support TOTP for client tunnels and jump hosts (#1508)
* fix: type errors and lint failures from merged plugin prs
* feat(installer): make the Windows desktop shortcut optional (#1517)
* fix: ship the plugin sdk and serialport in desktop builds
* fix: prefer ipv4 when resolving ssh host names (#1365)
* fix: readable terminal selection with the light theme (#1319)
* fix: build desktop session share links on the linked server (#1350)
* fix: show meeting guests to members and hide the roster from guests (#1353)
* fix: reliable file manager saves with sudo prompt and no base64 guessing (#1335)
* fix: show disk usage for the mount being browsed (#1347)
* fix: load the linux tray icon reliably and log tray failures (#1332)
* fix: cover the gnome close path in the desktop quit test (#1332)
* fix: prompt for jump host TOTP in terminal, file manager and metrics (#1312)
* feat: optional auto reconnect for dropped ssh sessions (#1321)
* feat: tighter compact host rows with inline tags (#1325)
* feat: bring back the alert feed homepage widget
* feat: pick target terminals for snippets again
* feat: share button on connection tabs again
* feat: recent servers list when linking the desktop app
* feat: list the fixed app shortcuts in keyboard shortcuts
* fix: translate hardcoded toasts and drop em dashes from ui text
* fix: translate leftover hardcoded ui text
* fix: toolbar files button opens at the shell directory again
* fix: show the remote desktop note under connection origin again
* chore: openapi docs for host metrics manager routes
* chore: openapi docs for undocumented routes and fix two broken doc blocks
* fix: declare terminal.listSessions use for snippet targets
* revert: drop the alert feed widget, the notification center replaces it
* feat: restore the alert feed homepage widget
* fix: quick connect fills the host address from plugin auth editors like tailscale
* fix: docker container logs use the base background color
* chore: fix dependabot alerts and apply safe npm upgrades
* fix: proxmox stats tab reads its switch from plugin host settings
* fix: count plugin ssh logins toward host status and stop showing reachable as a warning
* fix: hide the built-in source pill in the host editor
* fix: host status shows online when the port answers and only warns on a failed login
* fix: drop the top border on the split layout menu
* fix: host defaults tabs sit where the host editor puts them and skip plugins with nothing to default
* fix: remote desktop auth method labels and notes for vnc and telnet
* fix: add description to the web endpoint enable switch
* fix: crowdin sync and pretranslate for plugin locales, run plugin tests on release
* feat: move telemetry out of core into a usage statistics plugin
* fix: recent activity card no longer cuts off host names early
* fix: remove duplicate top border on split screen menu
* fix: redesign session log player controls, fix tooltip overlap and drop dot separators
* fix: file manager and sftp text showing raw i18n keys
* fix: onboarding rerunning for existing users after upgrading
* fix: fleet detail buttons overflowing the sidebar
* fix: session log player scrolling off screen horizontally
* fix: network graph lag when adding hosts and on every render
* fix: maintenance index name, shared host read only view and badge polling
* fix: meeting tabs, workspace tab merging, rail panels as tabs and general ui lag
* chore: update release notes
* fix: remote desktop tabs reconnecting on every tab switch
* fix: build plugin sdk before linting in release workflow
* chore: lint, format, and bump version to 2.9.0
* chore: skip crowdin pre-translate in release for now
* chore: sync Crowdin translations for 2.9.0
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: Koi <38512047+datlt4@users.noreply.github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: ZacharyZcR <zacharyzcr1984@gmail.com>
This commit is contained in:
4405 files changed
+1341026
-289722
No files matched your search
@@ -0,0 +1,7 @@
|
||||
# Changelog
|
||||
|
||||
## 1.0.0
|
||||
|
||||
First release, bundled with Termix 2.9.0.
|
||||
|
||||
Save your open tabs and split layouts as named workspaces and bring them back later. Workspaces sync between the desktop app and a server.
|
||||
@@ -0,0 +1,28 @@
|
||||
# Workspaces
|
||||
|
||||
Save and restore named tab and split layouts.
|
||||
|
||||
## Features
|
||||
|
||||
- Save your open tabs and split layouts as a named workspace.
|
||||
- Open a workspace later to bring every tab back.
|
||||
- Tabs from a feature that is turned off are kept as placeholders.
|
||||
- Saved workspaces sync between the desktop app and a server.
|
||||
|
||||
## Permissions
|
||||
|
||||
- `workspaces.use`: Use workspaces. Admins and users have it by default.
|
||||
|
||||
## Services
|
||||
|
||||
Provides to other plugins:
|
||||
|
||||
- `workspaces.saved`: list a user's saved workspaces.
|
||||
|
||||
## Development
|
||||
|
||||
```bash
|
||||
npm run build # build into dist/
|
||||
npm run test # run this plugin's tests
|
||||
npm run typecheck # type-check this plugin
|
||||
```
|
||||
@@ -0,0 +1,70 @@
|
||||
{
|
||||
"newUi": {
|
||||
"sidebar": {
|
||||
"workspaces": {
|
||||
"title": "Workspaces",
|
||||
"saveCurrent": "Save Current",
|
||||
"saveCurrentTitle": "Save Current Workspace",
|
||||
"saveCurrentDescription": "Save every open tab, split layout, and pane arrangement as a new named workspace.",
|
||||
"nameLabel": "Name",
|
||||
"namePlaceholder": "e.g., Prod Debugging",
|
||||
"nameRequired": "Workspace name is required",
|
||||
"colorLabel": "Color",
|
||||
"workspaceCreated": "Workspace saved",
|
||||
"workspaceUpdated": "Workspace updated",
|
||||
"workspaceDeleted": "Workspace deleted",
|
||||
"workspaceDuplicated": "Workspace duplicated",
|
||||
"saveFailed": "Failed to save workspace",
|
||||
"updateFailed": "Failed to update workspace",
|
||||
"deleteFailed": "Failed to delete workspace",
|
||||
"duplicateFailed": "Failed to duplicate workspace",
|
||||
"loadFailed": "Failed to load workspaces",
|
||||
"applyFailed": "Failed to apply workspace",
|
||||
"deleteWorkspaceTitle": "Delete Workspace",
|
||||
"deleteWorkspaceDescription": "Are you sure you want to delete \"{{name}}\"? This cannot be undone.",
|
||||
"noWorkspaces": "No saved workspaces yet. Save your current tab arrangement to get started.",
|
||||
"tabCount": "{{count}} tab",
|
||||
"tabCount_other": "{{count}} tabs",
|
||||
"apply": "Apply",
|
||||
"applyConfirmTitle": "Apply Workspace",
|
||||
"applyConfirmDescription": "Applying \"{{name}}\" will close your current tabs and replace them with this workspace's saved arrangement. Unsaved changes to your current layout will be lost.",
|
||||
"applyConfirmButton": "Apply Workspace",
|
||||
"updateWithCurrent": "Update with Current",
|
||||
"updateWithCurrentConfirm": "Overwrite \"{{name}}\" with your current tab arrangement?",
|
||||
"rename": "Rename",
|
||||
"duplicate": "Duplicate",
|
||||
"duplicateNameSuffix": "{{name}} (copy)",
|
||||
"setDefault": "Set as Default",
|
||||
"unsetDefault": "Remove as Default",
|
||||
"defaultBadge": "Default",
|
||||
"lastSession": "Last Session",
|
||||
"lastSessionDescription": "Automatically updated with your most recent tab arrangement. Apply it to recover what you had open.",
|
||||
"lastUsed": "Last used {{time}}",
|
||||
"neverUsed": "Never applied",
|
||||
"tabsSkipped": "Workspace applied, but {{count}} tab(s) were skipped because their host no longer exists: {{names}}",
|
||||
"timeAgo": {
|
||||
"seconds": "{{count}}s ago",
|
||||
"minutes": "{{count}}m ago",
|
||||
"hours": "{{count}}h ago",
|
||||
"days": "{{count}}d ago"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"nav": {
|
||||
"workspaces": "Workspaces"
|
||||
},
|
||||
"onboarding": {
|
||||
"workflow_workspaces": "Workspaces",
|
||||
"workflow_workspaces_desc": "Save a set of open tabs and reopen the whole layout later."
|
||||
},
|
||||
"permissions": {
|
||||
"use": {
|
||||
"title": "Use workspaces",
|
||||
"description": "Save, apply and manage saved tab layouts."
|
||||
}
|
||||
},
|
||||
"hosts": {
|
||||
"docsLink": "View docs"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,70 @@
|
||||
{
|
||||
"newUi": {
|
||||
"sidebar": {
|
||||
"workspaces": {
|
||||
"title": "Werkruimtes",
|
||||
"saveCurrent": "Stoor Huidige",
|
||||
"saveCurrentTitle": "Stoor huidige werkspasie",
|
||||
"saveCurrentDescription": "Stoor elke oop oortjie, gesplete uitleg en paneelrangskikking as 'n nuwe benoemde werkruimte.",
|
||||
"nameLabel": "Naam",
|
||||
"namePlaceholder": "bv. Produkontfouting",
|
||||
"nameRequired": "Werkruimtenaam word vereis",
|
||||
"colorLabel": "Kleur",
|
||||
"workspaceCreated": "Werkruimte gestoor",
|
||||
"workspaceUpdated": "Werkruimte opgedateer",
|
||||
"workspaceDeleted": "Werkruimte uitgevee",
|
||||
"workspaceDuplicated": "Werkruimte gedupliseer",
|
||||
"saveFailed": "Kon nie werkspasie stoor nie",
|
||||
"updateFailed": "Kon nie werkspasie opdateer nie",
|
||||
"deleteFailed": "Kon nie werkspasie uitvee nie",
|
||||
"duplicateFailed": "Kon nie werkruimte dupliseer nie",
|
||||
"loadFailed": "Kon nie werkruimtes laai nie",
|
||||
"applyFailed": "Kon nie werkspasie toepas nie",
|
||||
"deleteWorkspaceTitle": "Vee Werkspasie uit",
|
||||
"deleteWorkspaceDescription": "Is jy seker jy wil \"{{name}}\" verwyder? Dit kan nie ongedaan gemaak word nie.",
|
||||
"noWorkspaces": "Geen gestoorde werkruimtes nog nie. Stoor jou huidige oortjie-rangskikking om te begin.",
|
||||
"tabCount": "{{count}} oortjie",
|
||||
"tabCount_other": "{{count}} oortjies",
|
||||
"apply": "Dien toe",
|
||||
"applyConfirmTitle": "Pas Werkruimte toe",
|
||||
"applyConfirmDescription": "Deur \"{{name}}\" toe te pas, sal jou huidige oortjies toegemaak word en vervang word met hierdie werkspasie se gestoorde rangskikking. Ongestoorde veranderinge aan jou huidige uitleg sal verlore gaan.",
|
||||
"applyConfirmButton": "Pas Werkruimte toe",
|
||||
"updateWithCurrent": "Opdateer met Huidige",
|
||||
"updateWithCurrentConfirm": "Oorskryf \"{{name}}\" met jou huidige tabbladrangskikking?",
|
||||
"rename": "Hernoem",
|
||||
"duplicate": "Duplikaat",
|
||||
"duplicateNameSuffix": "{{name}} (kopieer)",
|
||||
"setDefault": "Stel as verstek",
|
||||
"unsetDefault": "Verwyder as verstek",
|
||||
"defaultBadge": "Standaard",
|
||||
"lastSession": "Laaste Sessie",
|
||||
"lastSessionDescription": "Outomaties opgedateer met jou mees onlangse oortjie-rangskikking. Pas dit toe om te herstel wat jy oop gehad het.",
|
||||
"lastUsed": "Laas gebruik {{time}}",
|
||||
"neverUsed": "Nooit toegepas nie",
|
||||
"tabsSkipped": "Werkruimte toegepas, maar {{count}} oortjie(s) is oorgeslaan omdat hul gasheer nie meer bestaan nie: {{names}}",
|
||||
"timeAgo": {
|
||||
"seconds": "{{count}}s gelede",
|
||||
"minutes": "{{count}}m gelede",
|
||||
"hours": "{{count}}uur gelede",
|
||||
"days": "{{count}}dae gelede"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"nav": {
|
||||
"workspaces": "Werkruimtes"
|
||||
},
|
||||
"onboarding": {
|
||||
"workflow_workspaces": "Werkruimtes",
|
||||
"workflow_workspaces_desc": "Stoor 'n stel oop oortjies en heropen die hele uitleg later."
|
||||
},
|
||||
"permissions": {
|
||||
"use": {
|
||||
"title": "Gebruik werkruimtes",
|
||||
"description": "Stoor, pas toe en bestuur gestoorde oortjie-uitlegte."
|
||||
}
|
||||
},
|
||||
"hosts": {
|
||||
"docsLink": "Bekyk dokumente"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,70 @@
|
||||
{
|
||||
"newUi": {
|
||||
"sidebar": {
|
||||
"workspaces": {
|
||||
"title": "مساحات العمل",
|
||||
"saveCurrent": "حفظ الوضع الحالي",
|
||||
"saveCurrentTitle": "حفظ مساحة العمل الحالية",
|
||||
"saveCurrentDescription": "احفظ كل علامة تبويب مفتوحة، وتخطيط مقسم، وترتيب أجزاء كمساحة عمل جديدة مسماة.",
|
||||
"nameLabel": "الاسم",
|
||||
"namePlaceholder": "مثال: تصحيح أخطاء الإنتاج",
|
||||
"nameRequired": "اسم مساحة العمل مطلوب",
|
||||
"colorLabel": "اللون",
|
||||
"workspaceCreated": "تم حفظ مساحة العمل",
|
||||
"workspaceUpdated": "تم تحديث مساحة العمل",
|
||||
"workspaceDeleted": "تم حذف مساحة العمل",
|
||||
"workspaceDuplicated": "تم تكرار مساحة العمل",
|
||||
"saveFailed": "فشل حفظ مساحة العمل",
|
||||
"updateFailed": "فشل تحديث مساحة العمل",
|
||||
"deleteFailed": "فشل حذف مساحة العمل",
|
||||
"duplicateFailed": "فشل تكرار مساحة العمل",
|
||||
"loadFailed": "فشل تحميل مساحات العمل",
|
||||
"applyFailed": "فشل تطبيق مساحة العمل",
|
||||
"deleteWorkspaceTitle": "حذف مساحة العمل",
|
||||
"deleteWorkspaceDescription": "هل أنت متأكد من رغبتك في حذف \"{{name}}\"؟ لا يمكن التراجع عن هذا.",
|
||||
"noWorkspaces": "لم يتم حفظ أي مساحات عمل حتى الآن. احفظ ترتيب علامات التبويب الحالي للبدء.",
|
||||
"tabCount": "{{count}} علامة تبويب",
|
||||
"tabCount_other": "علامات تبويب {{count}}",
|
||||
"apply": "تطبيق",
|
||||
"applyConfirmTitle": "تطبيق مساحة العمل",
|
||||
"applyConfirmDescription": "سيؤدي تطبيق \"{{name}}\" إلى إغلاق علامات التبويب الحالية واستبدالها بالترتيب المحفوظ لمساحة العمل هذه. ستفقد التغييرات غير المحفوظة على تخطيطك الحالي.",
|
||||
"applyConfirmButton": "تطبيق مساحة العمل",
|
||||
"updateWithCurrent": "تحديث بالبيانات الحالية",
|
||||
"updateWithCurrentConfirm": "هل تريد استبدال \"{{name}}\" بترتيب علامات التبويب الحالي؟",
|
||||
"rename": "إعادة تسمية",
|
||||
"duplicate": "ينسخ",
|
||||
"duplicateNameSuffix": "{{name}} (نسخة)",
|
||||
"setDefault": "تعيين كافتراضي",
|
||||
"unsetDefault": "إزالة كإعداد افتراضي",
|
||||
"defaultBadge": "تقصير",
|
||||
"lastSession": "الجلسة الأخيرة",
|
||||
"lastSessionDescription": "يتم تحديثها تلقائيًا بأحدث ترتيب لعلامات التبويب لديك. قم بتطبيقها لاستعادة ما كنت قد فتحته.",
|
||||
"lastUsed": "آخر استخدام {{time}}",
|
||||
"neverUsed": "لم يتم التقديم مطلقا",
|
||||
"tabsSkipped": "تم تطبيق مساحة العمل، ولكن تم تخطي علامات التبويب {{count}} لأن مضيفها لم يعد موجودًا: {{names}}",
|
||||
"timeAgo": {
|
||||
"seconds": "{{count}}منذ ثانية",
|
||||
"minutes": "قبل {{count}}m",
|
||||
"hours": "قبل {{count}}h",
|
||||
"days": "قبل {{count}}d"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"nav": {
|
||||
"workspaces": "مساحات العمل"
|
||||
},
|
||||
"onboarding": {
|
||||
"workflow_workspaces": "مساحات العمل",
|
||||
"workflow_workspaces_desc": "احفظ مجموعة من علامات التبويب المفتوحة وأعد فتح التخطيط بأكمله لاحقًا."
|
||||
},
|
||||
"permissions": {
|
||||
"use": {
|
||||
"title": "استخدم مساحات العمل",
|
||||
"description": "حفظ وتطبيق وإدارة تخطيطات علامات التبويب المحفوظة."
|
||||
}
|
||||
},
|
||||
"hosts": {
|
||||
"docsLink": "عرض المستندات"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,70 @@
|
||||
{
|
||||
"newUi": {
|
||||
"sidebar": {
|
||||
"workspaces": {
|
||||
"title": "Работни пространства",
|
||||
"saveCurrent": "Запазване на текущото",
|
||||
"saveCurrentTitle": "Запазване на текущото работно пространство",
|
||||
"saveCurrentDescription": "Запазете всеки отворен раздел, разделено оформление и подредба на панели като ново именувано работно пространство.",
|
||||
"nameLabel": "Име",
|
||||
"namePlaceholder": "напр. Отстраняване на грешки в продукта",
|
||||
"nameRequired": "Името на работното пространство е задължително",
|
||||
"colorLabel": "Цвят",
|
||||
"workspaceCreated": "Работното пространство е запазено",
|
||||
"workspaceUpdated": "Работното пространство е актуализирано",
|
||||
"workspaceDeleted": "Работното пространство е изтрито",
|
||||
"workspaceDuplicated": "Работното пространство е дублирано",
|
||||
"saveFailed": "Запазването на работното пространство не бе успешно",
|
||||
"updateFailed": "Актуализирането на работното пространство не бе успешно",
|
||||
"deleteFailed": "Изтриването на работното пространство не бе успешно",
|
||||
"duplicateFailed": "Дублирането на работното пространство не бе успешно",
|
||||
"loadFailed": "Зареждането на работните пространства не бе успешно",
|
||||
"applyFailed": "Прилагането на работното пространство не бе успешно",
|
||||
"deleteWorkspaceTitle": "Изтриване на работно пространство",
|
||||
"deleteWorkspaceDescription": "Сигурни ли сте, че искате да изтриете „{{name}}“? Това не може да бъде отменено.",
|
||||
"noWorkspaces": "Все още няма запазени работни пространства. Запазете текущото си разположение на раздели, за да започнете.",
|
||||
"tabCount": "раздел {{count}}",
|
||||
"tabCount_other": "{{count}} раздели",
|
||||
"apply": "Приложи",
|
||||
"applyConfirmTitle": "Прилагане на работно пространство",
|
||||
"applyConfirmDescription": "Прилагането на „{{name}}“ ще затвори текущите ви раздели и ще ги замени със запазената подредба на това работно пространство. Незапазените промени в текущото ви оформление ще бъдат загубени.",
|
||||
"applyConfirmButton": "Прилагане на работно пространство",
|
||||
"updateWithCurrent": "Актуализиране с текущото",
|
||||
"updateWithCurrentConfirm": "Да се презапише ли „{{name}}“ с текущата ви подредба на табулации?",
|
||||
"rename": "Преименуване",
|
||||
"duplicate": "Дубликат",
|
||||
"duplicateNameSuffix": "{{name}} (копие)",
|
||||
"setDefault": "Задай по подразбиране",
|
||||
"unsetDefault": "Премахване по подразбиране",
|
||||
"defaultBadge": "По подразбиране",
|
||||
"lastSession": "Последна сесия",
|
||||
"lastSessionDescription": "Автоматично се актуализира с най-скорошната ви подредба на раздели. Приложете я, за да възстановите това, което сте имали отворено.",
|
||||
"lastUsed": "Последно използвано {{time}}",
|
||||
"neverUsed": "Никога не е прилагано",
|
||||
"tabsSkipped": "Работното пространство е приложено, но {{count}} раздел(а) бяха пропуснати, защото техният хост вече не съществува: {{names}}",
|
||||
"timeAgo": {
|
||||
"seconds": "преди {{count}}сек",
|
||||
"minutes": "преди {{count}}мин.",
|
||||
"hours": "преди {{count}}ч",
|
||||
"days": "преди {{count}}дни"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"nav": {
|
||||
"workspaces": "Работни пространства"
|
||||
},
|
||||
"onboarding": {
|
||||
"workflow_workspaces": "Работни пространства",
|
||||
"workflow_workspaces_desc": "Запазете набор от отворени раздели и отворете отново цялото оформление по-късно."
|
||||
},
|
||||
"permissions": {
|
||||
"use": {
|
||||
"title": "Използвайте работни пространства",
|
||||
"description": "Запазване, прилагане и управление на запазени оформления на раздели."
|
||||
}
|
||||
},
|
||||
"hosts": {
|
||||
"docsLink": "Преглед на документи"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,70 @@
|
||||
{
|
||||
"newUi": {
|
||||
"sidebar": {
|
||||
"workspaces": {
|
||||
"title": "Workspaces",
|
||||
"saveCurrent": "Save Current",
|
||||
"saveCurrentTitle": "Save Current Workspace",
|
||||
"saveCurrentDescription": "Save every open tab, split layout, and pane arrangement as a new named workspace.",
|
||||
"nameLabel": "Name",
|
||||
"namePlaceholder": "e.g., Prod Debugging",
|
||||
"nameRequired": "Workspace name is required",
|
||||
"colorLabel": "Color",
|
||||
"workspaceCreated": "Workspace saved",
|
||||
"workspaceUpdated": "Workspace updated",
|
||||
"workspaceDeleted": "Workspace deleted",
|
||||
"workspaceDuplicated": "Workspace duplicated",
|
||||
"saveFailed": "Failed to save workspace",
|
||||
"updateFailed": "Failed to update workspace",
|
||||
"deleteFailed": "Failed to delete workspace",
|
||||
"duplicateFailed": "Failed to duplicate workspace",
|
||||
"loadFailed": "Failed to load workspaces",
|
||||
"applyFailed": "Failed to apply workspace",
|
||||
"deleteWorkspaceTitle": "Delete Workspace",
|
||||
"deleteWorkspaceDescription": "Are you sure you want to delete \"{{name}}\"? This cannot be undone.",
|
||||
"noWorkspaces": "No saved workspaces yet. Save your current tab arrangement to get started.",
|
||||
"tabCount": "{{count}} tab",
|
||||
"tabCount_other": "{{count}} tabs",
|
||||
"apply": "Apply",
|
||||
"applyConfirmTitle": "Apply Workspace",
|
||||
"applyConfirmDescription": "Applying \"{{name}}\" will close your current tabs and replace them with this workspace's saved arrangement. Unsaved changes to your current layout will be lost.",
|
||||
"applyConfirmButton": "Apply Workspace",
|
||||
"updateWithCurrent": "Update with Current",
|
||||
"updateWithCurrentConfirm": "Overwrite \"{{name}}\" with your current tab arrangement?",
|
||||
"rename": "Rename",
|
||||
"duplicate": "Duplicate",
|
||||
"duplicateNameSuffix": "{{name}} (copy)",
|
||||
"setDefault": "Set as Default",
|
||||
"unsetDefault": "Remove as Default",
|
||||
"defaultBadge": "Default",
|
||||
"lastSession": "Last Session",
|
||||
"lastSessionDescription": "Automatically updated with your most recent tab arrangement. Apply it to recover what you had open.",
|
||||
"lastUsed": "Last used {{time}}",
|
||||
"neverUsed": "Never applied",
|
||||
"tabsSkipped": "Workspace applied, but {{count}} tab(s) were skipped because their host no longer exists: {{names}}",
|
||||
"timeAgo": {
|
||||
"seconds": "{{count}}s ago",
|
||||
"minutes": "{{count}}m ago",
|
||||
"hours": "{{count}}h ago",
|
||||
"days": "{{count}}d ago"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"nav": {
|
||||
"workspaces": "Workspaces"
|
||||
},
|
||||
"onboarding": {
|
||||
"workflow_workspaces": "Workspaces",
|
||||
"workflow_workspaces_desc": "Save a set of open tabs and reopen the whole layout later."
|
||||
},
|
||||
"permissions": {
|
||||
"use": {
|
||||
"title": "Use workspaces",
|
||||
"description": "Save, apply and manage saved tab layouts."
|
||||
}
|
||||
},
|
||||
"hosts": {
|
||||
"docsLink": "View docs"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,70 @@
|
||||
{
|
||||
"newUi": {
|
||||
"sidebar": {
|
||||
"workspaces": {
|
||||
"title": "Espais de treball",
|
||||
"saveCurrent": "Desa l'actual",
|
||||
"saveCurrentTitle": "Desa l'espai de treball actual",
|
||||
"saveCurrentDescription": "Desa totes les pestanyes obertes, dissenys dividits i disposicions de panells com un espai de treball amb un nom nou.",
|
||||
"nameLabel": "Nom",
|
||||
"namePlaceholder": "p. ex., depuració de productes",
|
||||
"nameRequired": "El nom de l'espai de treball és obligatori",
|
||||
"colorLabel": "Color",
|
||||
"workspaceCreated": "L'espai de treball s'ha desat",
|
||||
"workspaceUpdated": "Espai de treball actualitzat",
|
||||
"workspaceDeleted": "L'espai de treball s'ha suprimit",
|
||||
"workspaceDuplicated": "Espai de treball duplicat",
|
||||
"saveFailed": "No s'ha pogut desar l'espai de treball",
|
||||
"updateFailed": "No s'ha pogut actualitzar l'espai de treball",
|
||||
"deleteFailed": "No s'ha pogut suprimir l'espai de treball",
|
||||
"duplicateFailed": "No s'ha pogut duplicar l'espai de treball",
|
||||
"loadFailed": "No s'han pogut carregar els espais de treball",
|
||||
"applyFailed": "No s'ha pogut aplicar l'espai de treball",
|
||||
"deleteWorkspaceTitle": "Suprimeix l'espai de treball",
|
||||
"deleteWorkspaceDescription": "Esteu segur que voleu suprimir \"{{name}}\"? Això no es pot desfer.",
|
||||
"noWorkspaces": "Encara no hi ha espais de treball desats. Deseu la disposició actual de les pestanyes per començar.",
|
||||
"tabCount": "Pestanya {{count}}",
|
||||
"tabCount_other": "pestanyes {{count}}",
|
||||
"apply": "Aplica",
|
||||
"applyConfirmTitle": "Aplica l'espai de treball",
|
||||
"applyConfirmDescription": "Si apliqueu \"{{name}}\", es tancaran les pestanyes actuals i les substituiran per la disposició desada d'aquest espai de treball. Els canvis no desats al disseny actual es perdran.",
|
||||
"applyConfirmButton": "Aplica l'espai de treball",
|
||||
"updateWithCurrent": "Actualitza amb l'actual",
|
||||
"updateWithCurrentConfirm": "Voleu sobreescriure \"{{name}}\" amb la disposició actual de les pestanyes?",
|
||||
"rename": "Canvia el nom",
|
||||
"duplicate": "Duplicat",
|
||||
"duplicateNameSuffix": "{{name}} (còpia)",
|
||||
"setDefault": "Estableix com a predeterminat",
|
||||
"unsetDefault": "Elimina com a predeterminat",
|
||||
"defaultBadge": "Per defecte",
|
||||
"lastSession": "Última sessió",
|
||||
"lastSessionDescription": "Actualitzat automàticament amb la disposició de pestanyes més recent. Aplica-ho per recuperar el que tenies obert.",
|
||||
"lastUsed": "Últim ús {{time}}",
|
||||
"neverUsed": "Mai aplicat",
|
||||
"tabsSkipped": "L'espai de treball s'ha aplicat, però s'han omès les pestanyes {{count}} perquè el seu amfitrió ja no existeix: {{names}}",
|
||||
"timeAgo": {
|
||||
"seconds": "Fa {{count}}segons",
|
||||
"minutes": "fa {{count}}minuts",
|
||||
"hours": "fa {{count}}h",
|
||||
"days": "fa {{count}}dies"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"nav": {
|
||||
"workspaces": "Espais de treball"
|
||||
},
|
||||
"onboarding": {
|
||||
"workflow_workspaces": "Espais de treball",
|
||||
"workflow_workspaces_desc": "Desa un conjunt de pestanyes obertes i torna a obrir tot el disseny més tard."
|
||||
},
|
||||
"permissions": {
|
||||
"use": {
|
||||
"title": "Utilitza els espais de treball",
|
||||
"description": "Desa, aplica i gestiona els dissenys de pestanyes desats."
|
||||
}
|
||||
},
|
||||
"hosts": {
|
||||
"docsLink": "Veure documents"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,70 @@
|
||||
{
|
||||
"newUi": {
|
||||
"sidebar": {
|
||||
"workspaces": {
|
||||
"title": "Pracovní prostory",
|
||||
"saveCurrent": "Uložit aktuální",
|
||||
"saveCurrentTitle": "Uložit aktuální pracovní prostor",
|
||||
"saveCurrentDescription": "Uložte každou otevřenou kartu, rozdělené rozvržení a uspořádání panelů jako nový pojmenovaný pracovní prostor.",
|
||||
"nameLabel": "Jméno",
|
||||
"namePlaceholder": "např. ladění produktu",
|
||||
"nameRequired": "Název pracovního prostoru je povinný",
|
||||
"colorLabel": "Barva",
|
||||
"workspaceCreated": "Pracovní prostor uložen",
|
||||
"workspaceUpdated": "Pracovní prostor aktualizován",
|
||||
"workspaceDeleted": "Pracovní prostor smazán",
|
||||
"workspaceDuplicated": "Pracovní prostor byl duplikován",
|
||||
"saveFailed": "Uložení pracovního prostoru se nezdařilo",
|
||||
"updateFailed": "Aktualizace pracovního prostoru se nezdařilo",
|
||||
"deleteFailed": "Nepodařilo se smazat pracovní prostor",
|
||||
"duplicateFailed": "Nepodařilo se duplikovat pracovní prostor",
|
||||
"loadFailed": "Nepodařilo se načíst pracovní prostory",
|
||||
"applyFailed": "Použití pracovního prostoru se nezdařilo",
|
||||
"deleteWorkspaceTitle": "Smazat pracovní prostor",
|
||||
"deleteWorkspaceDescription": "Opravdu chcete smazat „{{name}}“? Tuto akci nelze vrátit zpět.",
|
||||
"noWorkspaces": "Zatím nejsou uložené žádné pracovní prostory. Chcete-li začít, uložte si aktuální uspořádání karet.",
|
||||
"tabCount": "{{count}} záložka",
|
||||
"tabCount_other": "{{count}} záložek",
|
||||
"apply": "Použít",
|
||||
"applyConfirmTitle": "Použít pracovní prostor",
|
||||
"applyConfirmDescription": "Použitím „{{name}}“ zavřete aktuální karty a nahradí je uloženým uspořádáním tohoto pracovního prostoru. Neuložené změny aktuálního rozvržení budou ztraceny.",
|
||||
"applyConfirmButton": "Použít pracovní prostor",
|
||||
"updateWithCurrent": "Aktualizovat s aktuálním",
|
||||
"updateWithCurrentConfirm": "Přepsat „{{name}}“ aktuálním uspořádáním tabulací?",
|
||||
"rename": "Přejmenovat",
|
||||
"duplicate": "Duplikát",
|
||||
"duplicateNameSuffix": "{{name}} (kopie)",
|
||||
"setDefault": "Nastavit jako výchozí",
|
||||
"unsetDefault": "Odebrat jako výchozí",
|
||||
"defaultBadge": "Výchozí",
|
||||
"lastSession": "Poslední sezení",
|
||||
"lastSessionDescription": "Automaticky aktualizováno s vaším posledním uspořádáním karet. Použijte tuto funkci k obnovení toho, co jste měli otevřené.",
|
||||
"lastUsed": "Naposledy použité {{time}}",
|
||||
"neverUsed": "Nikdy nepoužíváno",
|
||||
"tabsSkipped": "Pracovní prostor byl použit, ale {{count}} karet bylo přeskočeno, protože jejich hostitel již neexistuje: {{names}}",
|
||||
"timeAgo": {
|
||||
"seconds": "Před {{count}}s",
|
||||
"minutes": "{{count}}před m",
|
||||
"hours": "{{count}}před hodinami",
|
||||
"days": "Před {{count}}dny"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"nav": {
|
||||
"workspaces": "Pracovní prostory"
|
||||
},
|
||||
"onboarding": {
|
||||
"workflow_workspaces": "Pracovní prostory",
|
||||
"workflow_workspaces_desc": "Uložte si sadu otevřených karet a celé rozvržení si znovu otevřete později."
|
||||
},
|
||||
"permissions": {
|
||||
"use": {
|
||||
"title": "Používejte pracovní prostory",
|
||||
"description": "Ukládat, používat a spravovat uložená rozvržení karet."
|
||||
}
|
||||
},
|
||||
"hosts": {
|
||||
"docsLink": "Zobrazit dokumenty"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,70 @@
|
||||
{
|
||||
"newUi": {
|
||||
"sidebar": {
|
||||
"workspaces": {
|
||||
"title": "Arbejdsområder",
|
||||
"saveCurrent": "Gem nuværende",
|
||||
"saveCurrentTitle": "Gem nuværende arbejdsområde",
|
||||
"saveCurrentDescription": "Gem alle åbne faner, opdelte layouts og rudearrangementer som et nyt navngivet arbejdsområde.",
|
||||
"nameLabel": "Navn",
|
||||
"namePlaceholder": "f.eks. produktfejlfinding",
|
||||
"nameRequired": "Arbejdsområdenavn er påkrævet",
|
||||
"colorLabel": "Farve",
|
||||
"workspaceCreated": "Arbejdsområdet er gemt",
|
||||
"workspaceUpdated": "Arbejdsområdet er opdateret",
|
||||
"workspaceDeleted": "Arbejdsområdet er slettet",
|
||||
"workspaceDuplicated": "Arbejdsområdet er duplikeret",
|
||||
"saveFailed": "Kunne ikke gemme arbejdsområdet",
|
||||
"updateFailed": "Kunne ikke opdatere arbejdsområdet",
|
||||
"deleteFailed": "Kunne ikke slette arbejdsområdet",
|
||||
"duplicateFailed": "Kunne ikke duplikere arbejdsområdet",
|
||||
"loadFailed": "Kunne ikke indlæse arbejdsområder",
|
||||
"applyFailed": "Kunne ikke anvende arbejdsområdet",
|
||||
"deleteWorkspaceTitle": "Slet arbejdsområde",
|
||||
"deleteWorkspaceDescription": "Er du sikker på, at du vil slette \"{{name}}\"? Dette kan ikke fortrydes.",
|
||||
"noWorkspaces": "Ingen gemte arbejdsområder endnu. Gem din nuværende faneopstilling for at komme i gang.",
|
||||
"tabCount": "{{count}} faneblad",
|
||||
"tabCount_other": "{{count}} faner",
|
||||
"apply": "Anvende",
|
||||
"applyConfirmTitle": "Anvend arbejdsområde",
|
||||
"applyConfirmDescription": "Hvis du anvender \"{{name}}\", lukkes dine nuværende faner og erstattes med dette arbejdsområdes gemte arrangement. Ændringer af dit nuværende layout, der ikke er gemt, vil gå tabt.",
|
||||
"applyConfirmButton": "Anvend arbejdsområde",
|
||||
"updateWithCurrent": "Opdater med aktuel",
|
||||
"updateWithCurrentConfirm": "Vil du overskrive \"{{name}}\" med din nuværende tabulatoropstilling?",
|
||||
"rename": "Omdøb",
|
||||
"duplicate": "Duplikere",
|
||||
"duplicateNameSuffix": "{{name}} (kopi)",
|
||||
"setDefault": "Angiv som standard",
|
||||
"unsetDefault": "Fjern som standard",
|
||||
"defaultBadge": "Misligholdelse",
|
||||
"lastSession": "Sidste session",
|
||||
"lastSessionDescription": "Opdateres automatisk med din seneste faneopsætning. Anvend den til at gendanne det, du havde åbent.",
|
||||
"lastUsed": "Sidst brugt {{time}}",
|
||||
"neverUsed": "Aldrig anvendt",
|
||||
"tabsSkipped": "Arbejdsområde anvendt, men {{count}} faneblad(er) blev sprunget over, fordi deres vært ikke længere findes: {{names}}",
|
||||
"timeAgo": {
|
||||
"seconds": "For {{count}}sekunder siden",
|
||||
"minutes": "For {{count}}minutter siden",
|
||||
"hours": "For {{count}}timer siden",
|
||||
"days": "for {{count}}dage siden"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"nav": {
|
||||
"workspaces": "Arbejdsområder"
|
||||
},
|
||||
"onboarding": {
|
||||
"workflow_workspaces": "Arbejdsområder",
|
||||
"workflow_workspaces_desc": "Gem et sæt åbne faner, og åbn hele layoutet igen senere."
|
||||
},
|
||||
"permissions": {
|
||||
"use": {
|
||||
"title": "Brug arbejdsområder",
|
||||
"description": "Gem, anvend og administrer gemte fanebladlayouts."
|
||||
}
|
||||
},
|
||||
"hosts": {
|
||||
"docsLink": "Se dokumenter"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,70 @@
|
||||
{
|
||||
"newUi": {
|
||||
"sidebar": {
|
||||
"workspaces": {
|
||||
"title": "Arbeitsbereiche",
|
||||
"saveCurrent": "Aktuellen Stand speichern",
|
||||
"saveCurrentTitle": "Aktuellen Arbeitsbereich speichern",
|
||||
"saveCurrentDescription": "Alle geöffneten Tabs, geteilten Layouts und Fensteranordnungen werden als neuer, benannter Arbeitsbereich gespeichert.",
|
||||
"nameLabel": "Name",
|
||||
"namePlaceholder": "z. B. Produktions-Debugging",
|
||||
"nameRequired": "Die Angabe eines Arbeitsbereichsnamens ist erforderlich.",
|
||||
"colorLabel": "Farbe",
|
||||
"workspaceCreated": "Arbeitsbereich gespeichert",
|
||||
"workspaceUpdated": "Arbeitsbereich aktualisiert",
|
||||
"workspaceDeleted": "Arbeitsbereich gelöscht",
|
||||
"workspaceDuplicated": "Arbeitsbereich dupliziert",
|
||||
"saveFailed": "Arbeitsbereich konnte nicht gespeichert werden",
|
||||
"updateFailed": "Aktualisierung des Arbeitsbereichs fehlgeschlagen",
|
||||
"deleteFailed": "Arbeitsbereich konnte nicht gelöscht werden",
|
||||
"duplicateFailed": "Arbeitsbereich konnte nicht dupliziert werden",
|
||||
"loadFailed": "Arbeitsbereiche konnten nicht geladen werden",
|
||||
"applyFailed": "Arbeitsbereich konnte nicht angewendet werden",
|
||||
"deleteWorkspaceTitle": "Arbeitsbereich löschen",
|
||||
"deleteWorkspaceDescription": "Möchten Sie \"{{name}}\" wirklich löschen? Dies kann nicht rückgängig gemacht werden.",
|
||||
"noWorkspaces": "Es sind noch keine Arbeitsbereiche gespeichert. Speichern Sie Ihre aktuelle Tab-Anordnung, um loszulegen.",
|
||||
"tabCount": "{{count}} Tab",
|
||||
"tabCount_other": "{{count}} Tabs",
|
||||
"apply": "Anwenden",
|
||||
"applyConfirmTitle": "Arbeitsbereich anwenden",
|
||||
"applyConfirmDescription": "Durch Anwenden von \"{{name}}\" werden Ihre aktuellen Tabs geschlossen und durch die gespeicherte Anordnung dieses Arbeitsbereichs ersetzt. Nicht gespeicherte Änderungen an Ihrem aktuellen Layout gehen dabei verloren.",
|
||||
"applyConfirmButton": "Arbeitsbereich anwenden",
|
||||
"updateWithCurrent": "Aktualisierung mit aktuellem Stand",
|
||||
"updateWithCurrentConfirm": "Soll \"{{name}}\" mit Ihrer aktuellen Tab-Anordnung überschrieben werden?",
|
||||
"rename": "Umbenennen",
|
||||
"duplicate": "Duplikat",
|
||||
"duplicateNameSuffix": "{{name}} (Kopie)",
|
||||
"setDefault": "Als Standard festlegen",
|
||||
"unsetDefault": "Als Standard entfernen",
|
||||
"defaultBadge": "Standard",
|
||||
"lastSession": "Letzte Sitzung",
|
||||
"lastSessionDescription": "Die Tab-Anordnung wird automatisch aktualisiert. Wenden Sie sie an, um Ihre geöffneten Tabs wiederherzustellen.",
|
||||
"lastUsed": "Zuletzt verwendet {{time}}",
|
||||
"neverUsed": "Nie angewendet",
|
||||
"tabsSkipped": "Arbeitsbereich angewendet, aber {{count}} Registerkarte(n) wurden übersprungen, da ihr Host nicht mehr existiert: {{names}}",
|
||||
"timeAgo": {
|
||||
"seconds": "{{count}}s ago",
|
||||
"minutes": "vor {{count}} Min.",
|
||||
"hours": "vor {{count}} Std.",
|
||||
"days": "vor {{count}} Tagen"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"nav": {
|
||||
"workspaces": "Arbeitsbereiche"
|
||||
},
|
||||
"onboarding": {
|
||||
"workflow_workspaces": "Arbeitsbereiche",
|
||||
"workflow_workspaces_desc": "Speichern Sie einen Satz geöffneter Tabs und öffnen Sie das gesamte Layout später wieder."
|
||||
},
|
||||
"permissions": {
|
||||
"use": {
|
||||
"title": "Arbeitsbereiche nutzen",
|
||||
"description": "Speichern, anwenden und verwalten Sie gespeicherte Tab-Layouts."
|
||||
}
|
||||
},
|
||||
"hosts": {
|
||||
"docsLink": "Dokumentation anzeigen"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,70 @@
|
||||
{
|
||||
"newUi": {
|
||||
"sidebar": {
|
||||
"workspaces": {
|
||||
"title": "Χώροι εργασίας",
|
||||
"saveCurrent": "Αποθήκευση τρέχοντος",
|
||||
"saveCurrentTitle": "Αποθήκευση τρέχοντος χώρου εργασίας",
|
||||
"saveCurrentDescription": "Αποθηκεύστε κάθε ανοιχτή καρτέλα, διαιρεμένη διάταξη και διάταξη παραθύρου ως νέο ονομασμένο χώρο εργασίας.",
|
||||
"nameLabel": "Ονομα",
|
||||
"namePlaceholder": "π.χ., εντοπισμός σφαλμάτων προϊόντος",
|
||||
"nameRequired": "Απαιτείται όνομα χώρου εργασίας",
|
||||
"colorLabel": "Χρώμα",
|
||||
"workspaceCreated": "Ο χώρος εργασίας αποθηκεύτηκε",
|
||||
"workspaceUpdated": "Ο χώρος εργασίας ενημερώθηκε",
|
||||
"workspaceDeleted": "Ο χώρος εργασίας διαγράφηκε",
|
||||
"workspaceDuplicated": "Ο χώρος εργασίας αντιγράφηκε",
|
||||
"saveFailed": "Η αποθήκευση του χώρου εργασίας απέτυχε",
|
||||
"updateFailed": "Η ενημέρωση του χώρου εργασίας απέτυχε",
|
||||
"deleteFailed": "Η διαγραφή του χώρου εργασίας απέτυχε",
|
||||
"duplicateFailed": "Αποτυχία αντιγραφής χώρου εργασίας",
|
||||
"loadFailed": "Αποτυχία φόρτωσης χώρων εργασίας",
|
||||
"applyFailed": "Αποτυχία εφαρμογής χώρου εργασίας",
|
||||
"deleteWorkspaceTitle": "Διαγραφή χώρου εργασίας",
|
||||
"deleteWorkspaceDescription": "Είστε σίγουροι ότι θέλετε να διαγράψετε το \"{{name}}\"; Αυτή η ενέργεια δεν μπορεί να αναιρεθεί.",
|
||||
"noWorkspaces": "Δεν υπάρχουν ακόμη αποθηκευμένοι χώροι εργασίας. Αποθηκεύστε την τρέχουσα διάταξη καρτελών για να ξεκινήσετε.",
|
||||
"tabCount": "{{count}} καρτέλα",
|
||||
"tabCount_other": "{{count}} καρτέλες",
|
||||
"apply": "Εφαρμόζω",
|
||||
"applyConfirmTitle": "Εφαρμογή χώρου εργασίας",
|
||||
"applyConfirmDescription": "Η εφαρμογή της συνάρτησης \"{{name}}\" θα κλείσει τις τρέχουσες καρτέλες σας και θα τις αντικαταστήσει με την αποθηκευμένη διάταξη αυτού του χώρου εργασίας. Οι μη αποθηκευμένες αλλαγές στην τρέχουσα διάταξή σας θα χαθούν.",
|
||||
"applyConfirmButton": "Εφαρμογή χώρου εργασίας",
|
||||
"updateWithCurrent": "Ενημέρωση με το Τρέχον",
|
||||
"updateWithCurrentConfirm": "Αντικατάσταση του \"{{name}}\" με την τρέχουσα διάταξη στηλοθετών;",
|
||||
"rename": "Μετονομάζω",
|
||||
"duplicate": "Αντίγραφο",
|
||||
"duplicateNameSuffix": "{{name}} (αντίγραφο)",
|
||||
"setDefault": "Ορισμός ως προεπιλογή",
|
||||
"unsetDefault": "Κατάργηση ως προεπιλογή",
|
||||
"defaultBadge": "Αθέτηση",
|
||||
"lastSession": "Τελευταία συνεδρία",
|
||||
"lastSessionDescription": "Ενημερώνεται αυτόματα με την πιο πρόσφατη διάταξη καρτελών. Εφαρμόστε την για να ανακτήσετε ό,τι είχατε ανοιχτό.",
|
||||
"lastUsed": "Τελευταία χρήση {{time}}",
|
||||
"neverUsed": "Δεν εφαρμόστηκε ποτέ",
|
||||
"tabsSkipped": "Εφαρμόστηκε χώρος εργασίας, αλλά οι καρτέλες {{count}} παραλείφθηκαν επειδή ο κεντρικός υπολογιστής τους δεν υπάρχει πλέον: {{names}}",
|
||||
"timeAgo": {
|
||||
"seconds": "{{count}}πριν από s",
|
||||
"minutes": "{{count}}πριν από λεπτά",
|
||||
"hours": "{{count}}πριν από ώρες",
|
||||
"days": "{{count}}πριν από ημέρες"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"nav": {
|
||||
"workspaces": "Χώροι εργασίας"
|
||||
},
|
||||
"onboarding": {
|
||||
"workflow_workspaces": "Χώροι εργασίας",
|
||||
"workflow_workspaces_desc": "Αποθηκεύστε ένα σύνολο ανοιχτών καρτελών και ανοίξτε ξανά ολόκληρη τη διάταξη αργότερα."
|
||||
},
|
||||
"permissions": {
|
||||
"use": {
|
||||
"title": "Χρήση χώρων εργασίας",
|
||||
"description": "Αποθήκευση, εφαρμογή και διαχείριση αποθηκευμένων διατάξεων καρτελών."
|
||||
}
|
||||
},
|
||||
"hosts": {
|
||||
"docsLink": "Προβολή εγγράφων"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,70 @@
|
||||
{
|
||||
"newUi": {
|
||||
"sidebar": {
|
||||
"workspaces": {
|
||||
"title": "Espacios de trabajo",
|
||||
"saveCurrent": "Guardar actual",
|
||||
"saveCurrentTitle": "Guardar espacio de trabajo actual",
|
||||
"saveCurrentDescription": "Guarda cada pestaña abierta, diseño dividido y disposición de paneles como un nuevo espacio de trabajo con nombre.",
|
||||
"nameLabel": "Nombre",
|
||||
"namePlaceholder": "p. ej., depuración de producción",
|
||||
"nameRequired": "Se requiere el nombre del espacio de trabajo.",
|
||||
"colorLabel": "Color",
|
||||
"workspaceCreated": "Espacio de trabajo guardado",
|
||||
"workspaceUpdated": "Espacio de trabajo actualizado",
|
||||
"workspaceDeleted": "Espacio de trabajo eliminado",
|
||||
"workspaceDuplicated": "Espacio de trabajo duplicado",
|
||||
"saveFailed": "No se pudo guardar el espacio de trabajo",
|
||||
"updateFailed": "No se pudo actualizar el espacio de trabajo",
|
||||
"deleteFailed": "No se pudo eliminar el espacio de trabajo",
|
||||
"duplicateFailed": "Error al duplicar el espacio de trabajo",
|
||||
"loadFailed": "No se pudieron cargar los espacios de trabajo.",
|
||||
"applyFailed": "No se pudo aplicar el espacio de trabajo",
|
||||
"deleteWorkspaceTitle": "Eliminar espacio de trabajo",
|
||||
"deleteWorkspaceDescription": "¿Estás seguro de que quieres eliminar \"{{name}}\"? Esto no se puede deshacer.",
|
||||
"noWorkspaces": "Aún no hay espacios de trabajo guardados. Guarda la disposición actual de tus pestañas para empezar.",
|
||||
"tabCount": "{{count}} pestaña",
|
||||
"tabCount_other": "{{count}} pestañas",
|
||||
"apply": "Aplicar",
|
||||
"applyConfirmTitle": "Aplicar espacio de trabajo",
|
||||
"applyConfirmDescription": "Al aplicar \"{{name}}\" se cerrarán las pestañas actuales y se reemplazarán con la disposición guardada de este espacio de trabajo. Los cambios no guardados en la disposición actual se perderán.",
|
||||
"applyConfirmButton": "Aplicar espacio de trabajo",
|
||||
"updateWithCurrent": "Actualizar con la versión actual",
|
||||
"updateWithCurrentConfirm": "¿Sobrescribir \"{{name}}\" con tu disposición de tabulación actual?",
|
||||
"rename": "Renombrar",
|
||||
"duplicate": "Duplicado",
|
||||
"duplicateNameSuffix": "{{name}} (copiar)",
|
||||
"setDefault": "Establecer como predeterminado",
|
||||
"unsetDefault": "Eliminar como predeterminado",
|
||||
"defaultBadge": "Por defecto",
|
||||
"lastSession": "Última sesión",
|
||||
"lastSessionDescription": "Se actualiza automáticamente con la configuración de pestañas más reciente. Aplícala para recuperar lo que tenías abierto.",
|
||||
"lastUsed": "Último uso {{time}}",
|
||||
"neverUsed": "Nunca se ha aplicado",
|
||||
"tabsSkipped": "Se aplicó el espacio de trabajo, pero se omitieron las pestañas {{count}} porque su host ya no existe: {{names}}",
|
||||
"timeAgo": {
|
||||
"seconds": "{{count}}hace s",
|
||||
"minutes": "hace {{count}}m",
|
||||
"hours": "hace {{count}}h",
|
||||
"days": "hace {{count}}d"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"nav": {
|
||||
"workspaces": "Espacios de trabajo"
|
||||
},
|
||||
"onboarding": {
|
||||
"workflow_workspaces": "Espacios de trabajo",
|
||||
"workflow_workspaces_desc": "Guarda un conjunto de pestañas abiertas y vuelve a abrir toda la interfaz más tarde."
|
||||
},
|
||||
"permissions": {
|
||||
"use": {
|
||||
"title": "Utilizar espacios de trabajo",
|
||||
"description": "Guarda, aplica y gestiona las configuraciones de pestañas guardadas."
|
||||
}
|
||||
},
|
||||
"hosts": {
|
||||
"docsLink": "Ver documentación"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,70 @@
|
||||
{
|
||||
"newUi": {
|
||||
"sidebar": {
|
||||
"workspaces": {
|
||||
"title": "Työtilat",
|
||||
"saveCurrent": "Tallenna nykyinen",
|
||||
"saveCurrentTitle": "Tallenna nykyinen työtila",
|
||||
"saveCurrentDescription": "Tallenna jokainen avoin välilehti, jaettu asettelu ja ruutujärjestely uutena nimettynä työtilana.",
|
||||
"nameLabel": "Nimi",
|
||||
"namePlaceholder": "esim. Tuotantovirheenkorjaus",
|
||||
"nameRequired": "Työtilan nimi on pakollinen",
|
||||
"colorLabel": "Väri",
|
||||
"workspaceCreated": "Työtila tallennettu",
|
||||
"workspaceUpdated": "Työtila päivitetty",
|
||||
"workspaceDeleted": "Työtila poistettu",
|
||||
"workspaceDuplicated": "Työtila kopioitu",
|
||||
"saveFailed": "Työtilan tallentaminen epäonnistui",
|
||||
"updateFailed": "Työtilan päivittäminen epäonnistui",
|
||||
"deleteFailed": "Työtilan poistaminen epäonnistui",
|
||||
"duplicateFailed": "Työtilan kopiointi epäonnistui",
|
||||
"loadFailed": "Työtilojen lataaminen epäonnistui",
|
||||
"applyFailed": "Työtilan käyttöönotto epäonnistui",
|
||||
"deleteWorkspaceTitle": "Poista työtila",
|
||||
"deleteWorkspaceDescription": "Oletko varma, että haluat poistaa \"{{name}}\"? Tätä ei voi perua.",
|
||||
"noWorkspaces": "Ei vielä tallennettuja työtiloja. Tallenna nykyinen välilehtijärjestys aloittaaksesi.",
|
||||
"tabCount": "{{count}} -välilehti",
|
||||
"tabCount_other": "{{count}} välilehdet",
|
||||
"apply": "Käytä",
|
||||
"applyConfirmTitle": "Käytä työtilaa",
|
||||
"applyConfirmDescription": "Komentosarjan \"{{name}}\" käyttäminen sulkee nykyiset välilehdet ja korvaa ne tämän työtilan tallennetulla asettelulla. Nykyiseen asetteluun tehdyt tallentamattomat muutokset menetetään.",
|
||||
"applyConfirmButton": "Käytä työtilaa",
|
||||
"updateWithCurrent": "Päivitä nykyisellä",
|
||||
"updateWithCurrentConfirm": "Korvataanko \"{{name}}\" nykyisellä sarkainjärjestykselläsi?",
|
||||
"rename": "Nimeä uudelleen",
|
||||
"duplicate": "Kopio",
|
||||
"duplicateNameSuffix": "{{name}} (kopio)",
|
||||
"setDefault": "Aseta oletukseksi",
|
||||
"unsetDefault": "Poista oletusarvoksi",
|
||||
"defaultBadge": "Oletus",
|
||||
"lastSession": "Viimeisin istunto",
|
||||
"lastSessionDescription": "Päivittyy automaattisesti viimeisimmän välilehtijärjestyksen mukaan. Käytä sitä palauttaaksesi avoimena olleen sisällön.",
|
||||
"lastUsed": "Viimeksi käytetty {{time}}",
|
||||
"neverUsed": "Ei koskaan sovellettu",
|
||||
"tabsSkipped": "Työtilaa käytettiin, mutta {{count}} välilehteä ohitettiin, koska niiden isäntää ei enää ole: {{names}}",
|
||||
"timeAgo": {
|
||||
"seconds": "{{count}}s sitten",
|
||||
"minutes": "{{count}}minuuttia sitten",
|
||||
"hours": "{{count}}tuntia sitten",
|
||||
"days": "{{count}}d sitten"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"nav": {
|
||||
"workspaces": "Työtilat"
|
||||
},
|
||||
"onboarding": {
|
||||
"workflow_workspaces": "Työtilat",
|
||||
"workflow_workspaces_desc": "Tallenna joukko avoimia välilehtiä ja avaa koko asettelu uudelleen myöhemmin."
|
||||
},
|
||||
"permissions": {
|
||||
"use": {
|
||||
"title": "Käytä työtiloja",
|
||||
"description": "Tallenna, käytä ja hallinnoi tallennettuja välilehtiasetteluja."
|
||||
}
|
||||
},
|
||||
"hosts": {
|
||||
"docsLink": "Näytä dokumentit"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,70 @@
|
||||
{
|
||||
"newUi": {
|
||||
"sidebar": {
|
||||
"workspaces": {
|
||||
"title": "Espaces de travail",
|
||||
"saveCurrent": "Économisez le courant",
|
||||
"saveCurrentTitle": "Enregistrer l'espace de travail actuel",
|
||||
"saveCurrentDescription": "Enregistrez chaque onglet ouvert, chaque disposition fractionnée et chaque agencement de volets comme un nouvel espace de travail nommé.",
|
||||
"nameLabel": "Nom",
|
||||
"namePlaceholder": "par exemple, le débogage en production",
|
||||
"nameRequired": "Le nom de l'espace de travail est requis.",
|
||||
"colorLabel": "Couleur",
|
||||
"workspaceCreated": "Espace de travail enregistré",
|
||||
"workspaceUpdated": "Espace de travail mis à jour",
|
||||
"workspaceDeleted": "Espace de travail supprimé",
|
||||
"workspaceDuplicated": "Espace de travail dupliqué",
|
||||
"saveFailed": "Impossible d'enregistrer l'espace de travail",
|
||||
"updateFailed": "Échec de la mise à jour de l'espace de travail",
|
||||
"deleteFailed": "Échec de la suppression de l'espace de travail",
|
||||
"duplicateFailed": "Échec de la duplication de l'espace de travail",
|
||||
"loadFailed": "Échec du chargement des espaces de travail",
|
||||
"applyFailed": "Échec de l'application de l'espace de travail",
|
||||
"deleteWorkspaceTitle": "Supprimer l'espace de travail",
|
||||
"deleteWorkspaceDescription": "Êtes-vous sûr de vouloir supprimer «{{name}}» ? Cette action est irréversible.",
|
||||
"noWorkspaces": "Aucun espace de travail enregistré pour le moment. Enregistrez votre disposition d'onglets actuelle pour commencer.",
|
||||
"tabCount": "{{count}} onglet",
|
||||
"tabCount_other": "Onglets {{count}}",
|
||||
"apply": "Appliquer",
|
||||
"applyConfirmTitle": "Espace de travail à appliquer",
|
||||
"applyConfirmDescription": "Appliquer «{{name}}» fermera vos onglets actuels et les remplacera par la disposition enregistrée de cet espace de travail. Les modifications non enregistrées de votre disposition actuelle seront perdues.",
|
||||
"applyConfirmButton": "Espace de travail à appliquer",
|
||||
"updateWithCurrent": "Mise à jour avec les données actuelles",
|
||||
"updateWithCurrentConfirm": "Remplacer «{{name}}» par votre disposition de tabulation actuelle ?",
|
||||
"rename": "Renommer",
|
||||
"duplicate": "Double",
|
||||
"duplicateNameSuffix": "{{name}} (copie)",
|
||||
"setDefault": "Définir comme valeur par défaut",
|
||||
"unsetDefault": "Supprimer par défaut",
|
||||
"defaultBadge": "Défaut",
|
||||
"lastSession": "Dernière session",
|
||||
"lastSessionDescription": "Mise à jour automatique avec votre dernière configuration d'onglets. Appliquez-la pour retrouver ce que vous aviez ouvert.",
|
||||
"lastUsed": "Dernière utilisation {{time}}",
|
||||
"neverUsed": "Jamais postulé",
|
||||
"tabsSkipped": "L'espace de travail a été appliqué, mais {{count}} onglets ont été ignorés car leur hôte n'existe plus : {{names}}",
|
||||
"timeAgo": {
|
||||
"seconds": "{{count}}il y a s",
|
||||
"minutes": "il y a {{count}} min",
|
||||
"hours": "il y a {{count}} h",
|
||||
"days": "il y a {{count}} j"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"nav": {
|
||||
"workspaces": "Espaces de travail"
|
||||
},
|
||||
"onboarding": {
|
||||
"workflow_workspaces": "Espaces de travail",
|
||||
"workflow_workspaces_desc": "Enregistrez une série d'onglets ouverts et rouvrez l'ensemble de la mise en page plus tard."
|
||||
},
|
||||
"permissions": {
|
||||
"use": {
|
||||
"title": "Utiliser les espaces de travail",
|
||||
"description": "Enregistrez, appliquez et gérez les mises en page d'onglets enregistrées."
|
||||
}
|
||||
},
|
||||
"hosts": {
|
||||
"docsLink": "Voir la documentation"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,70 @@
|
||||
{
|
||||
"newUi": {
|
||||
"sidebar": {
|
||||
"workspaces": {
|
||||
"title": "סביבות עבודה",
|
||||
"saveCurrent": "שמור את הנוכחי",
|
||||
"saveCurrentTitle": "שמור סביבת עבודה נוכחית",
|
||||
"saveCurrentDescription": "שמור כל כרטיסייה פתוחה, פריסה מפוצלת וסידור חלונות כסביבת עבודה חדשה בעלת שם.",
|
||||
"nameLabel": "שֵׁם",
|
||||
"namePlaceholder": "לדוגמה, ניפוי באגים בפרודוקציה",
|
||||
"nameRequired": "נדרש שם סביבת עבודה",
|
||||
"colorLabel": "צֶבַע",
|
||||
"workspaceCreated": "סביבת העבודה נשמרה",
|
||||
"workspaceUpdated": "סביבת העבודה עודכנה",
|
||||
"workspaceDeleted": "סביבת העבודה נמחקה",
|
||||
"workspaceDuplicated": "סביבת עבודה משוכפלת",
|
||||
"saveFailed": "שמירת סביבת העבודה נכשלה",
|
||||
"updateFailed": "נכשל עדכון סביבת העבודה",
|
||||
"deleteFailed": "מחיקת סביבת העבודה נכשלה",
|
||||
"duplicateFailed": "שכפול סביבת העבודה נכשל",
|
||||
"loadFailed": "טעינת סביבות עבודה נכשלה",
|
||||
"applyFailed": "נכשל בהחלת סביבת העבודה",
|
||||
"deleteWorkspaceTitle": "מחיקת סביבת עבודה",
|
||||
"deleteWorkspaceDescription": "האם אתה בטוח שברצונך למחוק את \"{{name}}\"? לא ניתן לבטל פעולה זו.",
|
||||
"noWorkspaces": "עדיין לא נשמרו סביבות עבודה. שמור את סידור הכרטיסיות הנוכחי שלך כדי להתחיל.",
|
||||
"tabCount": "טאב {{count}}",
|
||||
"tabCount_other": "טאבים {{count}}",
|
||||
"apply": "לִפְנוֹת",
|
||||
"applyConfirmTitle": "החלת סביבת עבודה",
|
||||
"applyConfirmDescription": "החלת \"{{name}}\" תסגור את הכרטיסיות הנוכחיות שלך ותחליף אותן בסידור השמור של סביבת עבודה זו. שינויים שלא נשמרו בפריסה הנוכחית שלך יאבדו.",
|
||||
"applyConfirmButton": "החלת סביבת עבודה",
|
||||
"updateWithCurrent": "עדכון עם הנוכחי",
|
||||
"updateWithCurrentConfirm": "להחליף את \"{{name}}\" עם סידור הטאבים הנוכחי שלך?",
|
||||
"rename": "שינוי שם",
|
||||
"duplicate": "לְשַׁכְפֵּל",
|
||||
"duplicateNameSuffix": "{{name}} (העתק)",
|
||||
"setDefault": "הגדר כברירת מחדל",
|
||||
"unsetDefault": "הסר כברירת מחדל",
|
||||
"defaultBadge": "בְּרִירַת מֶחדָל",
|
||||
"lastSession": "מושב אחרון",
|
||||
"lastSessionDescription": "מתעדכן אוטומטית עם סידור הכרטיסיות האחרון שלך. השתמש בו כדי לשחזר את מה שהיה פתוח.",
|
||||
"lastUsed": "בשימוש אחרון {{time}}",
|
||||
"neverUsed": "מעולם לא יושם",
|
||||
"tabsSkipped": "סביבת עבודה הוחלת, אך הכרטיסיות {{count}} דילגו עליהן מכיוון שהמארח שלהן כבר לא קיים: {{names}}",
|
||||
"timeAgo": {
|
||||
"seconds": "לפני {{count}}שניות",
|
||||
"minutes": "לפני {{count}}דקות",
|
||||
"hours": "{{count}}h ago",
|
||||
"days": "{{count}}d ago"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"nav": {
|
||||
"workspaces": "סביבות עבודה"
|
||||
},
|
||||
"onboarding": {
|
||||
"workflow_workspaces": "סביבות עבודה",
|
||||
"workflow_workspaces_desc": "שמור קבוצת כרטיסיות פתוחות ופתח מחדש את כל הפריסה מאוחר יותר."
|
||||
},
|
||||
"permissions": {
|
||||
"use": {
|
||||
"title": "השתמש בסביבות עבודה",
|
||||
"description": "שמור, החל ונהל פריסות של כרטיסיות שנשמרו."
|
||||
}
|
||||
},
|
||||
"hosts": {
|
||||
"docsLink": "הצג מסמכים"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,70 @@
|
||||
{
|
||||
"newUi": {
|
||||
"sidebar": {
|
||||
"workspaces": {
|
||||
"title": "Workspaces",
|
||||
"saveCurrent": "Save Current",
|
||||
"saveCurrentTitle": "Save Current Workspace",
|
||||
"saveCurrentDescription": "Save every open tab, split layout, and pane arrangement as a new named workspace.",
|
||||
"nameLabel": "नाम",
|
||||
"namePlaceholder": "e.g., Prod Debugging",
|
||||
"nameRequired": "Workspace name is required",
|
||||
"colorLabel": "रंग",
|
||||
"workspaceCreated": "Workspace saved",
|
||||
"workspaceUpdated": "Workspace updated",
|
||||
"workspaceDeleted": "Workspace deleted",
|
||||
"workspaceDuplicated": "Workspace duplicated",
|
||||
"saveFailed": "Failed to save workspace",
|
||||
"updateFailed": "Failed to update workspace",
|
||||
"deleteFailed": "Failed to delete workspace",
|
||||
"duplicateFailed": "Failed to duplicate workspace",
|
||||
"loadFailed": "Failed to load workspaces",
|
||||
"applyFailed": "Failed to apply workspace",
|
||||
"deleteWorkspaceTitle": "Delete Workspace",
|
||||
"deleteWorkspaceDescription": "Are you sure you want to delete \"{{name}}\"? This cannot be undone.",
|
||||
"noWorkspaces": "No saved workspaces yet. Save your current tab arrangement to get started.",
|
||||
"tabCount": "{{count}} tab",
|
||||
"tabCount_other": "{{count}} tabs",
|
||||
"apply": "लागू करें",
|
||||
"applyConfirmTitle": "Apply Workspace",
|
||||
"applyConfirmDescription": "Applying \"{{name}}\" will close your current tabs and replace them with this workspace's saved arrangement. Unsaved changes to your current layout will be lost.",
|
||||
"applyConfirmButton": "Apply Workspace",
|
||||
"updateWithCurrent": "Update with Current",
|
||||
"updateWithCurrentConfirm": "Overwrite \"{{name}}\" with your current tab arrangement?",
|
||||
"rename": "नाम बदलें",
|
||||
"duplicate": "Duplicate",
|
||||
"duplicateNameSuffix": "{{name}} (copy)",
|
||||
"setDefault": "Set as Default",
|
||||
"unsetDefault": "Remove as Default",
|
||||
"defaultBadge": "Default",
|
||||
"lastSession": "Last Session",
|
||||
"lastSessionDescription": "Automatically updated with your most recent tab arrangement. Apply it to recover what you had open.",
|
||||
"lastUsed": "Last used {{time}}",
|
||||
"neverUsed": "Never applied",
|
||||
"tabsSkipped": "Workspace applied, but {{count}} tab(s) were skipped because their host no longer exists: {{names}}",
|
||||
"timeAgo": {
|
||||
"seconds": "{{count}}s ago",
|
||||
"minutes": "{{count}}m पहले",
|
||||
"hours": "{{count}}h पहले",
|
||||
"days": "{{count}}d पहले"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"nav": {
|
||||
"workspaces": "Workspaces"
|
||||
},
|
||||
"onboarding": {
|
||||
"workflow_workspaces": "Workspaces",
|
||||
"workflow_workspaces_desc": "Save a set of open tabs and reopen the whole layout later."
|
||||
},
|
||||
"permissions": {
|
||||
"use": {
|
||||
"title": "Use workspaces",
|
||||
"description": "Save, apply and manage saved tab layouts."
|
||||
}
|
||||
},
|
||||
"hosts": {
|
||||
"docsLink": "दस्तावेज़ देखें"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,70 @@
|
||||
{
|
||||
"newUi": {
|
||||
"sidebar": {
|
||||
"workspaces": {
|
||||
"title": "Munkaterületek",
|
||||
"saveCurrent": "Aktuális mentése",
|
||||
"saveCurrentTitle": "Aktuális munkaterület mentése",
|
||||
"saveCurrentDescription": "Minden megnyitott lapot, osztott elrendezést és panelelrendezést mentsen el új, elnevezett munkaterületként.",
|
||||
"nameLabel": "Név",
|
||||
"namePlaceholder": "pl., Prod Debugging",
|
||||
"nameRequired": "Munkaterület neve kötelező",
|
||||
"colorLabel": "Szín",
|
||||
"workspaceCreated": "Munkaterület mentve",
|
||||
"workspaceUpdated": "Munkaterület frissítve",
|
||||
"workspaceDeleted": "Munkaterület törölve",
|
||||
"workspaceDuplicated": "Munkaterület duplikálva",
|
||||
"saveFailed": "Nem sikerült menteni a munkaterületet",
|
||||
"updateFailed": "Nem sikerült frissíteni a munkaterületet",
|
||||
"deleteFailed": "Nem sikerült törölni a munkaterületet",
|
||||
"duplicateFailed": "Nem sikerült a munkaterületet másolni",
|
||||
"loadFailed": "Nem sikerült betölteni a munkaterületeket",
|
||||
"applyFailed": "Nem sikerült alkalmazni a munkaterületet",
|
||||
"deleteWorkspaceTitle": "Munkaterület törlése",
|
||||
"deleteWorkspaceDescription": "Biztosan törölni szeretnéd a(z) \"{{name}}\" fájlt? Ez a művelet nem vonható vissza.",
|
||||
"noWorkspaces": "Még nincsenek mentett munkaterületek. A kezdéshez mentse el az aktuális tabulátorelrendezést.",
|
||||
"tabCount": "{{count}} fül",
|
||||
"tabCount_other": "{{count}} fülek",
|
||||
"apply": "Jelentkezés",
|
||||
"applyConfirmTitle": "Munkaterület alkalmazása",
|
||||
"applyConfirmDescription": "A(z) „{{name}}” parancs alkalmazása bezárja az aktuális lapokat, és lecseréli azokat a munkaterület mentett elrendezésére. Az aktuális elrendezés nem mentett módosításai elvesznek.",
|
||||
"applyConfirmButton": "Munkaterület alkalmazása",
|
||||
"updateWithCurrent": "Frissítés az aktuális programmal",
|
||||
"updateWithCurrentConfirm": "Felülírja a(z) \"{{name}}\" szöveget a jelenlegi tabulátorelrendezéssel?",
|
||||
"rename": "Átnevezés",
|
||||
"duplicate": "Másolat",
|
||||
"duplicateNameSuffix": "{{name}} (másolat)",
|
||||
"setDefault": "Beállítás alapértelmezettként",
|
||||
"unsetDefault": "Eltávolítás alapértelmezettként",
|
||||
"defaultBadge": "Alapértelmezett",
|
||||
"lastSession": "Utolsó munkamenet",
|
||||
"lastSessionDescription": "Automatikusan frissül a legutóbbi tabulátorelrendezéssel. Alkalmazd, hogy visszaállítsd a megnyitott tabulátorokat.",
|
||||
"lastUsed": "Utolsó használat {{time}}",
|
||||
"neverUsed": "Soha nem alkalmazták",
|
||||
"tabsSkipped": "Munkaterület alkalmazva, de {{count}} fül(ek) kimaradtak, mert a tárhelyük már nem létezik: {{names}}",
|
||||
"timeAgo": {
|
||||
"seconds": "{{count}}másodperccel ezelőtt",
|
||||
"minutes": "{{count}}perccel ezelőtt",
|
||||
"hours": "{{count}}órával ezelőtt",
|
||||
"days": "{{count}}nappal ezelőtt"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"nav": {
|
||||
"workspaces": "Munkaterületek"
|
||||
},
|
||||
"onboarding": {
|
||||
"workflow_workspaces": "Munkaterületek",
|
||||
"workflow_workspaces_desc": "Mentse el a megnyitott lapok egy készletét, és később nyissa meg újra a teljes elrendezést."
|
||||
},
|
||||
"permissions": {
|
||||
"use": {
|
||||
"title": "Munkaterületek használata",
|
||||
"description": "Mentett fülelrendezések mentése, alkalmazása és kezelése."
|
||||
}
|
||||
},
|
||||
"hosts": {
|
||||
"docsLink": "Dokumentumok megtekintése"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,70 @@
|
||||
{
|
||||
"newUi": {
|
||||
"sidebar": {
|
||||
"workspaces": {
|
||||
"title": "Workspaces",
|
||||
"saveCurrent": "Save Current",
|
||||
"saveCurrentTitle": "Save Current Workspace",
|
||||
"saveCurrentDescription": "Save every open tab, split layout, and pane arrangement as a new named workspace.",
|
||||
"nameLabel": "Name",
|
||||
"namePlaceholder": "e.g., Prod Debugging",
|
||||
"nameRequired": "Workspace name is required",
|
||||
"colorLabel": "Color",
|
||||
"workspaceCreated": "Workspace saved",
|
||||
"workspaceUpdated": "Workspace updated",
|
||||
"workspaceDeleted": "Workspace deleted",
|
||||
"workspaceDuplicated": "Workspace duplicated",
|
||||
"saveFailed": "Failed to save workspace",
|
||||
"updateFailed": "Failed to update workspace",
|
||||
"deleteFailed": "Failed to delete workspace",
|
||||
"duplicateFailed": "Failed to duplicate workspace",
|
||||
"loadFailed": "Failed to load workspaces",
|
||||
"applyFailed": "Failed to apply workspace",
|
||||
"deleteWorkspaceTitle": "Delete Workspace",
|
||||
"deleteWorkspaceDescription": "Are you sure you want to delete \"{{name}}\"? This cannot be undone.",
|
||||
"noWorkspaces": "No saved workspaces yet. Save your current tab arrangement to get started.",
|
||||
"tabCount": "{{count}} tab",
|
||||
"tabCount_other": "{{count}} tabs",
|
||||
"apply": "Apply",
|
||||
"applyConfirmTitle": "Apply Workspace",
|
||||
"applyConfirmDescription": "Applying \"{{name}}\" will close your current tabs and replace them with this workspace's saved arrangement. Unsaved changes to your current layout will be lost.",
|
||||
"applyConfirmButton": "Apply Workspace",
|
||||
"updateWithCurrent": "Update with Current",
|
||||
"updateWithCurrentConfirm": "Overwrite \"{{name}}\" with your current tab arrangement?",
|
||||
"rename": "Rename",
|
||||
"duplicate": "Duplicate",
|
||||
"duplicateNameSuffix": "{{name}} (copy)",
|
||||
"setDefault": "Set as Default",
|
||||
"unsetDefault": "Remove as Default",
|
||||
"defaultBadge": "Default",
|
||||
"lastSession": "Last Session",
|
||||
"lastSessionDescription": "Automatically updated with your most recent tab arrangement. Apply it to recover what you had open.",
|
||||
"lastUsed": "Last used {{time}}",
|
||||
"neverUsed": "Never applied",
|
||||
"tabsSkipped": "Workspace applied, but {{count}} tab(s) were skipped because their host no longer exists: {{names}}",
|
||||
"timeAgo": {
|
||||
"seconds": "{{count}}s ago",
|
||||
"minutes": "{{count}} menit lalu",
|
||||
"hours": "{{count}} jam lalu",
|
||||
"days": "{{count}} detik lalu"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"nav": {
|
||||
"workspaces": "Workspaces"
|
||||
},
|
||||
"onboarding": {
|
||||
"workflow_workspaces": "Workspaces",
|
||||
"workflow_workspaces_desc": "Save a set of open tabs and reopen the whole layout later."
|
||||
},
|
||||
"permissions": {
|
||||
"use": {
|
||||
"title": "Use workspaces",
|
||||
"description": "Save, apply and manage saved tab layouts."
|
||||
}
|
||||
},
|
||||
"hosts": {
|
||||
"docsLink": "View docs"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,70 @@
|
||||
{
|
||||
"newUi": {
|
||||
"sidebar": {
|
||||
"workspaces": {
|
||||
"title": "Spazi di lavoro",
|
||||
"saveCurrent": "Salva corrente",
|
||||
"saveCurrentTitle": "Salva l'area di lavoro corrente",
|
||||
"saveCurrentDescription": "Salva ogni scheda aperta, layout diviso e disposizione dei riquadri come nuova area di lavoro denominata.",
|
||||
"nameLabel": "Nome",
|
||||
"namePlaceholder": "ad esempio, Debugging di produzione",
|
||||
"nameRequired": "Il nome dell'area di lavoro è obbligatorio",
|
||||
"colorLabel": "Colore",
|
||||
"workspaceCreated": "Area di lavoro salvata",
|
||||
"workspaceUpdated": "Area di lavoro aggiornata",
|
||||
"workspaceDeleted": "Area di lavoro eliminata",
|
||||
"workspaceDuplicated": "Area di lavoro duplicata",
|
||||
"saveFailed": "Impossibile salvare l'area di lavoro",
|
||||
"updateFailed": "Impossibile aggiornare l'area di lavoro",
|
||||
"deleteFailed": "Impossibile eliminare l'area di lavoro",
|
||||
"duplicateFailed": "Impossibile duplicare l'area di lavoro",
|
||||
"loadFailed": "Impossibile caricare gli spazi di lavoro",
|
||||
"applyFailed": "Impossibile applicare l'area di lavoro",
|
||||
"deleteWorkspaceTitle": "Elimina l'area di lavoro",
|
||||
"deleteWorkspaceDescription": "Sei sicuro di voler eliminare \"{{name}}\"? Questa operazione non può essere annullata.",
|
||||
"noWorkspaces": "Nessun spazio di lavoro salvato al momento. Salva la disposizione attuale delle schede per iniziare.",
|
||||
"tabCount": "{{count}} tab",
|
||||
"tabCount_other": "{{count}} schede",
|
||||
"apply": "Applica",
|
||||
"applyConfirmTitle": "Applica l'area di lavoro",
|
||||
"applyConfirmDescription": "Applicando \"{{name}}\" chiuderai le schede correnti e le sostituirai con la disposizione salvata di quest'area di lavoro. Le modifiche non salvate al layout corrente andranno perse.",
|
||||
"applyConfirmButton": "Applica l'area di lavoro",
|
||||
"updateWithCurrent": "Aggiorna con la versione attuale",
|
||||
"updateWithCurrentConfirm": "Sovrascrivi \"{{name}}\" con la tua attuale disposizione delle schede?",
|
||||
"rename": "Rinomina",
|
||||
"duplicate": "Duplicato",
|
||||
"duplicateNameSuffix": "{{name}} (copia)",
|
||||
"setDefault": "Imposta come predefinito",
|
||||
"unsetDefault": "Rimuovi come predefinito",
|
||||
"defaultBadge": "Predefinito",
|
||||
"lastSession": "Ultima sessione",
|
||||
"lastSessionDescription": "Si aggiorna automaticamente con la disposizione delle schede più recente. Applicala per ripristinare quelle che avevi aperte.",
|
||||
"lastUsed": "Ultimo utilizzo {{time}}",
|
||||
"neverUsed": "mai applicato",
|
||||
"tabsSkipped": "Area di lavoro applicata, ma le schede {{count}} sono state ignorate perché il loro host non esiste più: {{names}}",
|
||||
"timeAgo": {
|
||||
"seconds": "{{count}}secondi fa",
|
||||
"minutes": "{{count}}m fa",
|
||||
"hours": "{{count}}h fa",
|
||||
"days": "{{count}}d fa"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"nav": {
|
||||
"workspaces": "Spazi di lavoro"
|
||||
},
|
||||
"onboarding": {
|
||||
"workflow_workspaces": "Spazi di lavoro",
|
||||
"workflow_workspaces_desc": "Salva le schede aperte e riapri l'intero layout in seguito."
|
||||
},
|
||||
"permissions": {
|
||||
"use": {
|
||||
"title": "Utilizzare gli spazi di lavoro",
|
||||
"description": "Salva, applica e gestisci i layout delle schede salvati."
|
||||
}
|
||||
},
|
||||
"hosts": {
|
||||
"docsLink": "Visualizza documentazione"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,70 @@
|
||||
{
|
||||
"newUi": {
|
||||
"sidebar": {
|
||||
"workspaces": {
|
||||
"title": "ワークスペース",
|
||||
"saveCurrent": "現在の状態を保存",
|
||||
"saveCurrentTitle": "現在のワークスペースを保存",
|
||||
"saveCurrentDescription": "開いているすべてのタブ、分割レイアウト、ペイン配置を、新しい名前付きワークスペースとして保存します。",
|
||||
"nameLabel": "名前",
|
||||
"namePlaceholder": "例:本番環境のデバッグ",
|
||||
"nameRequired": "ワークスペース名は必須です。",
|
||||
"colorLabel": "色",
|
||||
"workspaceCreated": "ワークスペースが保存されました",
|
||||
"workspaceUpdated": "ワークスペースが更新されました",
|
||||
"workspaceDeleted": "ワークスペースが削除されました",
|
||||
"workspaceDuplicated": "ワークスペースが複製されました",
|
||||
"saveFailed": "ワークスペースの保存に失敗しました",
|
||||
"updateFailed": "ワークスペースの更新に失敗しました",
|
||||
"deleteFailed": "ワークスペースの削除に失敗しました",
|
||||
"duplicateFailed": "ワークスペースの複製に失敗しました",
|
||||
"loadFailed": "ワークスペースの読み込みに失敗しました",
|
||||
"applyFailed": "ワークスペースの適用に失敗しました",
|
||||
"deleteWorkspaceTitle": "ワークスペースを削除",
|
||||
"deleteWorkspaceDescription": "「{{name}}」を削除してもよろしいですか?この操作は元に戻せません。",
|
||||
"noWorkspaces": "まだワークスペースが保存されていません。まずは現在のタブの配置を保存してください。",
|
||||
"tabCount": "{{count}} タブ",
|
||||
"tabCount_other": "{{count}} タブ",
|
||||
"apply": "適用",
|
||||
"applyConfirmTitle": "ワークスペースを適用する",
|
||||
"applyConfirmDescription": "\"{{name}}\" を適用すると、現在のタブが閉じられ、このワークスペースに保存されているレイアウトに置き換えられます。現在のレイアウトに対する未保存の変更は失われます。",
|
||||
"applyConfirmButton": "ワークスペースを適用する",
|
||||
"updateWithCurrent": "最新情報に更新",
|
||||
"updateWithCurrentConfirm": "「{{name}}」を現在のタブ配列で上書きしますか?",
|
||||
"rename": "名前変更",
|
||||
"duplicate": "重複",
|
||||
"duplicateNameSuffix": "{{name}} (コピー)",
|
||||
"setDefault": "デフォルトとして設定",
|
||||
"unsetDefault": "デフォルトから削除",
|
||||
"defaultBadge": "デフォルト",
|
||||
"lastSession": "最終セッション",
|
||||
"lastSessionDescription": "最新のタブ配置に合わせて自動的に更新されます。適用すると、以前開いていたウィンドウが復元されます。",
|
||||
"lastUsed": "最後に使用されたのは {{time}} です。",
|
||||
"neverUsed": "一度も応募したことがない",
|
||||
"tabsSkipped": "ワークスペースは適用されましたが、ホストが存在しなくなったため、 {{count}} 個のタブがスキップされました: {{names}}",
|
||||
"timeAgo": {
|
||||
"seconds": "{{count}}秒前",
|
||||
"minutes": "{{count}}分前",
|
||||
"hours": "{{count}}時間前",
|
||||
"days": "{{count}}日前"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"nav": {
|
||||
"workspaces": "ワークスペース"
|
||||
},
|
||||
"onboarding": {
|
||||
"workflow_workspaces": "ワークスペース",
|
||||
"workflow_workspaces_desc": "開いているタブのセットを保存し、後でレイアウト全体を再度開くことができます。"
|
||||
},
|
||||
"permissions": {
|
||||
"use": {
|
||||
"title": "ワークスペースを使用する",
|
||||
"description": "保存したタブレイアウトを保存、適用、管理できます。"
|
||||
}
|
||||
},
|
||||
"hosts": {
|
||||
"docsLink": "ドキュメントを表示"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,70 @@
|
||||
{
|
||||
"newUi": {
|
||||
"sidebar": {
|
||||
"workspaces": {
|
||||
"title": "작업 공간",
|
||||
"saveCurrent": "현재 저장",
|
||||
"saveCurrentTitle": "현재 작업 공간 저장",
|
||||
"saveCurrentDescription": "열려 있는 모든 탭, 분할 레이아웃 및 창 배열을 새 이름의 작업 공간으로 저장합니다.",
|
||||
"nameLabel": "이름",
|
||||
"namePlaceholder": "예: 프로덕션 디버깅",
|
||||
"nameRequired": "워크스페이스 이름은 필수 입력 사항입니다.",
|
||||
"colorLabel": "색상",
|
||||
"workspaceCreated": "작업 공간이 저장되었습니다",
|
||||
"workspaceUpdated": "작업 공간이 업데이트되었습니다.",
|
||||
"workspaceDeleted": "작업 공간이 삭제되었습니다",
|
||||
"workspaceDuplicated": "작업 공간이 복제되었습니다",
|
||||
"saveFailed": "작업 공간 저장에 실패했습니다",
|
||||
"updateFailed": "워크스페이스 업데이트에 실패했습니다.",
|
||||
"deleteFailed": "워크스페이스 삭제에 실패했습니다.",
|
||||
"duplicateFailed": "워크스페이스 복제에 실패했습니다.",
|
||||
"loadFailed": "워크스페이스를 불러오는 데 실패했습니다.",
|
||||
"applyFailed": "워크스페이스 적용에 실패했습니다",
|
||||
"deleteWorkspaceTitle": "작업 공간 삭제",
|
||||
"deleteWorkspaceDescription": "\"{{name}}\"을 삭제하시겠습니까? 이 작업은 되돌릴 수 없습니다.",
|
||||
"noWorkspaces": "아직 저장된 작업 공간이 없습니다. 시작하려면 현재 탭 구성을 저장하세요.",
|
||||
"tabCount": "{{count}} 탭",
|
||||
"tabCount_other": "{{count}} 탭",
|
||||
"apply": "적용",
|
||||
"applyConfirmTitle": "작업 공간 적용",
|
||||
"applyConfirmDescription": "\"{{name}}\"를 입력하면 현재 탭이 닫히고 이 작업 공간에 저장된 레이아웃으로 바뀝니다. 현재 레이아웃에 대한 저장되지 않은 변경 사항은 손실됩니다.",
|
||||
"applyConfirmButton": "작업 공간 적용",
|
||||
"updateWithCurrent": "현재 정보로 업데이트",
|
||||
"updateWithCurrentConfirm": "현재 탭 배열로 \"{{name}}\"를 덮어쓰시겠습니까?",
|
||||
"rename": "이름 바꾸기",
|
||||
"duplicate": "복제하다",
|
||||
"duplicateNameSuffix": "{{name}} (복사)",
|
||||
"setDefault": "기본값으로 설정",
|
||||
"unsetDefault": "기본값에서 제거",
|
||||
"defaultBadge": "기본",
|
||||
"lastSession": "지난 세션",
|
||||
"lastSessionDescription": "최근 탭 배열로 자동 업데이트됩니다. 적용하면 이전에 열려 있던 탭을 복구할 수 있습니다.",
|
||||
"lastUsed": "마지막으로 사용된 값 {{time}}",
|
||||
"neverUsed": "지원한 적 없음",
|
||||
"tabsSkipped": "워크스페이스가 적용되었지만 호스트가 더 이상 존재하지 않으므로 {{count}} 탭은 건너뛰었습니다: {{names}}",
|
||||
"timeAgo": {
|
||||
"seconds": "{{count}}초 전",
|
||||
"minutes": "{{count}}분 전",
|
||||
"hours": "{{count}}시간 전",
|
||||
"days": "{{count}}일 전"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"nav": {
|
||||
"workspaces": "작업 공간"
|
||||
},
|
||||
"onboarding": {
|
||||
"workflow_workspaces": "작업 공간",
|
||||
"workflow_workspaces_desc": "열려 있는 탭들을 저장해두었다가 나중에 전체 레이아웃을 다시 열어보세요."
|
||||
},
|
||||
"permissions": {
|
||||
"use": {
|
||||
"title": "워크스페이스를 활용하세요",
|
||||
"description": "저장된 탭 레이아웃을 저장, 적용 및 관리할 수 있습니다."
|
||||
}
|
||||
},
|
||||
"hosts": {
|
||||
"docsLink": "문서 보기"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,70 @@
|
||||
{
|
||||
"newUi": {
|
||||
"sidebar": {
|
||||
"workspaces": {
|
||||
"title": "Workspaces",
|
||||
"saveCurrent": "Save Current",
|
||||
"saveCurrentTitle": "Save Current Workspace",
|
||||
"saveCurrentDescription": "Save every open tab, split layout, and pane arrangement as a new named workspace.",
|
||||
"nameLabel": "Name",
|
||||
"namePlaceholder": "e.g., Prod Debugging",
|
||||
"nameRequired": "Workspace name is required",
|
||||
"colorLabel": "Color",
|
||||
"workspaceCreated": "Workspace saved",
|
||||
"workspaceUpdated": "Workspace updated",
|
||||
"workspaceDeleted": "Workspace deleted",
|
||||
"workspaceDuplicated": "Workspace duplicated",
|
||||
"saveFailed": "Failed to save workspace",
|
||||
"updateFailed": "Failed to update workspace",
|
||||
"deleteFailed": "Failed to delete workspace",
|
||||
"duplicateFailed": "Failed to duplicate workspace",
|
||||
"loadFailed": "Failed to load workspaces",
|
||||
"applyFailed": "Failed to apply workspace",
|
||||
"deleteWorkspaceTitle": "Delete Workspace",
|
||||
"deleteWorkspaceDescription": "Are you sure you want to delete \"{{name}}\"? This cannot be undone.",
|
||||
"noWorkspaces": "No saved workspaces yet. Save your current tab arrangement to get started.",
|
||||
"tabCount": "{{count}} tab",
|
||||
"tabCount_other": "{{count}} tabs",
|
||||
"apply": "Apply",
|
||||
"applyConfirmTitle": "Apply Workspace",
|
||||
"applyConfirmDescription": "Applying \"{{name}}\" will close your current tabs and replace them with this workspace's saved arrangement. Unsaved changes to your current layout will be lost.",
|
||||
"applyConfirmButton": "Apply Workspace",
|
||||
"updateWithCurrent": "Update with Current",
|
||||
"updateWithCurrentConfirm": "Overwrite \"{{name}}\" with your current tab arrangement?",
|
||||
"rename": "Rename",
|
||||
"duplicate": "Duplicate",
|
||||
"duplicateNameSuffix": "{{name}} (copy)",
|
||||
"setDefault": "Set as Default",
|
||||
"unsetDefault": "Remove as Default",
|
||||
"defaultBadge": "Default",
|
||||
"lastSession": "Last Session",
|
||||
"lastSessionDescription": "Automatically updated with your most recent tab arrangement. Apply it to recover what you had open.",
|
||||
"lastUsed": "Last used {{time}}",
|
||||
"neverUsed": "Never applied",
|
||||
"tabsSkipped": "Workspace applied, but {{count}} tab(s) were skipped because their host no longer exists: {{names}}",
|
||||
"timeAgo": {
|
||||
"seconds": "{{count}}s ago",
|
||||
"minutes": "{{count}}m ago",
|
||||
"hours": "{{count}}h ago",
|
||||
"days": "{{count}}d ago"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"nav": {
|
||||
"workspaces": "Workspaces"
|
||||
},
|
||||
"onboarding": {
|
||||
"workflow_workspaces": "Workspaces",
|
||||
"workflow_workspaces_desc": "Save a set of open tabs and reopen the whole layout later."
|
||||
},
|
||||
"permissions": {
|
||||
"use": {
|
||||
"title": "Use workspaces",
|
||||
"description": "Save, apply and manage saved tab layouts."
|
||||
}
|
||||
},
|
||||
"hosts": {
|
||||
"docsLink": "View docs"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,70 @@
|
||||
{
|
||||
"newUi": {
|
||||
"sidebar": {
|
||||
"workspaces": {
|
||||
"title": "Workspaces",
|
||||
"saveCurrent": "Save Current",
|
||||
"saveCurrentTitle": "Save Current Workspace",
|
||||
"saveCurrentDescription": "Save every open tab, split layout, and pane arrangement as a new named workspace.",
|
||||
"nameLabel": "Navn",
|
||||
"namePlaceholder": "e.g., Prod Debugging",
|
||||
"nameRequired": "Workspace name is required",
|
||||
"colorLabel": "Color",
|
||||
"workspaceCreated": "Workspace saved",
|
||||
"workspaceUpdated": "Workspace updated",
|
||||
"workspaceDeleted": "Workspace deleted",
|
||||
"workspaceDuplicated": "Workspace duplicated",
|
||||
"saveFailed": "Failed to save workspace",
|
||||
"updateFailed": "Failed to update workspace",
|
||||
"deleteFailed": "Failed to delete workspace",
|
||||
"duplicateFailed": "Failed to duplicate workspace",
|
||||
"loadFailed": "Failed to load workspaces",
|
||||
"applyFailed": "Failed to apply workspace",
|
||||
"deleteWorkspaceTitle": "Delete Workspace",
|
||||
"deleteWorkspaceDescription": "Are you sure you want to delete \"{{name}}\"? This cannot be undone.",
|
||||
"noWorkspaces": "No saved workspaces yet. Save your current tab arrangement to get started.",
|
||||
"tabCount": "{{count}} tab",
|
||||
"tabCount_other": "{{count}} tabs",
|
||||
"apply": "Apply",
|
||||
"applyConfirmTitle": "Apply Workspace",
|
||||
"applyConfirmDescription": "Applying \"{{name}}\" will close your current tabs and replace them with this workspace's saved arrangement. Unsaved changes to your current layout will be lost.",
|
||||
"applyConfirmButton": "Apply Workspace",
|
||||
"updateWithCurrent": "Update with Current",
|
||||
"updateWithCurrentConfirm": "Overwrite \"{{name}}\" with your current tab arrangement?",
|
||||
"rename": "Gi nytt navn",
|
||||
"duplicate": "Duplicate",
|
||||
"duplicateNameSuffix": "{{name}} (copy)",
|
||||
"setDefault": "Set as Default",
|
||||
"unsetDefault": "Remove as Default",
|
||||
"defaultBadge": "Default",
|
||||
"lastSession": "Last Session",
|
||||
"lastSessionDescription": "Automatically updated with your most recent tab arrangement. Apply it to recover what you had open.",
|
||||
"lastUsed": "Last used {{time}}",
|
||||
"neverUsed": "Never applied",
|
||||
"tabsSkipped": "Workspace applied, but {{count}} tab(s) were skipped because their host no longer exists: {{names}}",
|
||||
"timeAgo": {
|
||||
"seconds": "{{count}}s ago",
|
||||
"minutes": "{{count}}m ago",
|
||||
"hours": "{{count}}h ago",
|
||||
"days": "{{count}}d ago"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"nav": {
|
||||
"workspaces": "Workspaces"
|
||||
},
|
||||
"onboarding": {
|
||||
"workflow_workspaces": "Workspaces",
|
||||
"workflow_workspaces_desc": "Save a set of open tabs and reopen the whole layout later."
|
||||
},
|
||||
"permissions": {
|
||||
"use": {
|
||||
"title": "Use workspaces",
|
||||
"description": "Save, apply and manage saved tab layouts."
|
||||
}
|
||||
},
|
||||
"hosts": {
|
||||
"docsLink": "View docs"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,70 @@
|
||||
{
|
||||
"newUi": {
|
||||
"sidebar": {
|
||||
"workspaces": {
|
||||
"title": "Obszary robocze",
|
||||
"saveCurrent": "Zapisz bieżące",
|
||||
"saveCurrentTitle": "Zapisz bieżący obszar roboczy",
|
||||
"saveCurrentDescription": "Zapisz każdą otwartą kartę, podzielony układ i rozmieszczenie paneli jako nowy nazwany obszar roboczy.",
|
||||
"nameLabel": "Nazwa",
|
||||
"namePlaceholder": "np. Debugowanie produkcji",
|
||||
"nameRequired": "Nazwa obszaru roboczego jest wymagana",
|
||||
"colorLabel": "Kolor",
|
||||
"workspaceCreated": "Zapisano obszar roboczy",
|
||||
"workspaceUpdated": "Zaktualizowano obszar roboczy",
|
||||
"workspaceDeleted": "Usunięto obszar roboczy",
|
||||
"workspaceDuplicated": "Zduplikowano obszar roboczy",
|
||||
"saveFailed": "Nie udało się zapisać obszaru roboczego",
|
||||
"updateFailed": "Nie udało się zaktualizować obszaru roboczego",
|
||||
"deleteFailed": "Nie udało się usunąć obszaru roboczego",
|
||||
"duplicateFailed": "Nie udało się zduplikować obszaru roboczego",
|
||||
"loadFailed": "Nie udało się załadować obszarów roboczych",
|
||||
"applyFailed": "Nie udało się zastosować obszaru roboczego",
|
||||
"deleteWorkspaceTitle": "Usuń obszar roboczy",
|
||||
"deleteWorkspaceDescription": "Czy na pewno chcesz usunąć „{{name}}”? Tego nie można cofnąć.",
|
||||
"noWorkspaces": "Brak zapisanych obszarów roboczych. Zapisz aktualny układ kart, aby rozpocząć.",
|
||||
"tabCount": "{{count}} karta",
|
||||
"tabCount_other": "{{count}} karty",
|
||||
"apply": "Zastosuj",
|
||||
"applyConfirmTitle": "Zastosuj obszar roboczy",
|
||||
"applyConfirmDescription": "Zastosowanie „{{name}}” zamknie bieżące karty i zastąpi je układem zapisanym w tym obszarze roboczym. Niezapisane zmiany bieżącego układu zostaną utracone.",
|
||||
"applyConfirmButton": "Zastosuj obszar roboczy",
|
||||
"updateWithCurrent": "Zaktualizuj bieżącym",
|
||||
"updateWithCurrentConfirm": "Nadpisać „{{name}}” obecnym układem kart?",
|
||||
"rename": "Zmień nazwę",
|
||||
"duplicate": "Duplikuj",
|
||||
"duplicateNameSuffix": "{{name}} (kopia)",
|
||||
"setDefault": "Ustaw jako domyślne",
|
||||
"unsetDefault": "Usuń jako domyślne",
|
||||
"defaultBadge": "Domyślny",
|
||||
"lastSession": "Ostatnia sesja",
|
||||
"lastSessionDescription": "Automatycznie aktualizowany o najnowszy układ kart. Zastosuj go, aby przywrócić to, co było otwarte.",
|
||||
"lastUsed": "Ostatnio użyte {{time}}",
|
||||
"neverUsed": "Nigdy nie zastosowano",
|
||||
"tabsSkipped": "Workspace applied, but {{count}} tab(s) were skipped because their host no longer exists: {{names}}",
|
||||
"timeAgo": {
|
||||
"seconds": "{{count}}s ago",
|
||||
"minutes": "{{count}} min temu",
|
||||
"hours": "{{count}} godz. temu",
|
||||
"days": "{{count}} dni temu"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"nav": {
|
||||
"workspaces": "Obszary robocze"
|
||||
},
|
||||
"onboarding": {
|
||||
"workflow_workspaces": "Obszary robocze",
|
||||
"workflow_workspaces_desc": "Zapisz zestaw otwartych kart i otwórz cały układ później."
|
||||
},
|
||||
"permissions": {
|
||||
"use": {
|
||||
"title": "Use workspaces",
|
||||
"description": "Save, apply and manage saved tab layouts."
|
||||
}
|
||||
},
|
||||
"hosts": {
|
||||
"docsLink": "Zobacz dokumentację"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,70 @@
|
||||
{
|
||||
"newUi": {
|
||||
"sidebar": {
|
||||
"workspaces": {
|
||||
"title": "Workspaces",
|
||||
"saveCurrent": "Save Current",
|
||||
"saveCurrentTitle": "Save Current Workspace",
|
||||
"saveCurrentDescription": "Save every open tab, split layout, and pane arrangement as a new named workspace.",
|
||||
"nameLabel": "Name",
|
||||
"namePlaceholder": "e.g., Prod Debugging",
|
||||
"nameRequired": "Workspace name is required",
|
||||
"colorLabel": "Color",
|
||||
"workspaceCreated": "Workspace saved",
|
||||
"workspaceUpdated": "Workspace updated",
|
||||
"workspaceDeleted": "Workspace deleted",
|
||||
"workspaceDuplicated": "Workspace duplicated",
|
||||
"saveFailed": "Failed to save workspace",
|
||||
"updateFailed": "Failed to update workspace",
|
||||
"deleteFailed": "Failed to delete workspace",
|
||||
"duplicateFailed": "Failed to duplicate workspace",
|
||||
"loadFailed": "Failed to load workspaces",
|
||||
"applyFailed": "Failed to apply workspace",
|
||||
"deleteWorkspaceTitle": "Delete Workspace",
|
||||
"deleteWorkspaceDescription": "Are you sure you want to delete \"{{name}}\"? This cannot be undone.",
|
||||
"noWorkspaces": "No saved workspaces yet. Save your current tab arrangement to get started.",
|
||||
"tabCount": "{{count}} tab",
|
||||
"tabCount_other": "{{count}} tabs",
|
||||
"apply": "Apply",
|
||||
"applyConfirmTitle": "Apply Workspace",
|
||||
"applyConfirmDescription": "Applying \"{{name}}\" will close your current tabs and replace them with this workspace's saved arrangement. Unsaved changes to your current layout will be lost.",
|
||||
"applyConfirmButton": "Apply Workspace",
|
||||
"updateWithCurrent": "Update with Current",
|
||||
"updateWithCurrentConfirm": "Overwrite \"{{name}}\" with your current tab arrangement?",
|
||||
"rename": "Renomear",
|
||||
"duplicate": "Duplicate",
|
||||
"duplicateNameSuffix": "{{name}} (copy)",
|
||||
"setDefault": "Set as Default",
|
||||
"unsetDefault": "Remove as Default",
|
||||
"defaultBadge": "Default",
|
||||
"lastSession": "Last Session",
|
||||
"lastSessionDescription": "Automatically updated with your most recent tab arrangement. Apply it to recover what you had open.",
|
||||
"lastUsed": "Last used {{time}}",
|
||||
"neverUsed": "Never applied",
|
||||
"tabsSkipped": "Workspace applied, but {{count}} tab(s) were skipped because their host no longer exists: {{names}}",
|
||||
"timeAgo": {
|
||||
"seconds": "{{count}}s ago",
|
||||
"minutes": "{{count}}m ago",
|
||||
"hours": "{{count}}h ago",
|
||||
"days": "{{count}}d ago"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"nav": {
|
||||
"workspaces": "Workspaces"
|
||||
},
|
||||
"onboarding": {
|
||||
"workflow_workspaces": "Workspaces",
|
||||
"workflow_workspaces_desc": "Save a set of open tabs and reopen the whole layout later."
|
||||
},
|
||||
"permissions": {
|
||||
"use": {
|
||||
"title": "Use workspaces",
|
||||
"description": "Save, apply and manage saved tab layouts."
|
||||
}
|
||||
},
|
||||
"hosts": {
|
||||
"docsLink": "Documentação"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,70 @@
|
||||
{
|
||||
"newUi": {
|
||||
"sidebar": {
|
||||
"workspaces": {
|
||||
"title": "Workspaces",
|
||||
"saveCurrent": "Save Current",
|
||||
"saveCurrentTitle": "Save Current Workspace",
|
||||
"saveCurrentDescription": "Save every open tab, split layout, and pane arrangement as a new named workspace.",
|
||||
"nameLabel": "Nome",
|
||||
"namePlaceholder": "e.g., Prod Debugging",
|
||||
"nameRequired": "Workspace name is required",
|
||||
"colorLabel": "Cor",
|
||||
"workspaceCreated": "Workspace saved",
|
||||
"workspaceUpdated": "Workspace updated",
|
||||
"workspaceDeleted": "Workspace deleted",
|
||||
"workspaceDuplicated": "Workspace duplicated",
|
||||
"saveFailed": "Failed to save workspace",
|
||||
"updateFailed": "Failed to update workspace",
|
||||
"deleteFailed": "Failed to delete workspace",
|
||||
"duplicateFailed": "Failed to duplicate workspace",
|
||||
"loadFailed": "Failed to load workspaces",
|
||||
"applyFailed": "Failed to apply workspace",
|
||||
"deleteWorkspaceTitle": "Delete Workspace",
|
||||
"deleteWorkspaceDescription": "Are you sure you want to delete \"{{name}}\"? This cannot be undone.",
|
||||
"noWorkspaces": "No saved workspaces yet. Save your current tab arrangement to get started.",
|
||||
"tabCount": "{{count}} tab",
|
||||
"tabCount_other": "{{count}} tabs",
|
||||
"apply": "Aplicar",
|
||||
"applyConfirmTitle": "Apply Workspace",
|
||||
"applyConfirmDescription": "Applying \"{{name}}\" will close your current tabs and replace them with this workspace's saved arrangement. Unsaved changes to your current layout will be lost.",
|
||||
"applyConfirmButton": "Apply Workspace",
|
||||
"updateWithCurrent": "Update with Current",
|
||||
"updateWithCurrentConfirm": "Overwrite \"{{name}}\" with your current tab arrangement?",
|
||||
"rename": "Renomear",
|
||||
"duplicate": "Duplicate",
|
||||
"duplicateNameSuffix": "{{name}} (copy)",
|
||||
"setDefault": "Set as Default",
|
||||
"unsetDefault": "Remove as Default",
|
||||
"defaultBadge": "Default",
|
||||
"lastSession": "Last Session",
|
||||
"lastSessionDescription": "Automatically updated with your most recent tab arrangement. Apply it to recover what you had open.",
|
||||
"lastUsed": "Last used {{time}}",
|
||||
"neverUsed": "Never applied",
|
||||
"tabsSkipped": "Workspace applied, but {{count}} tab(s) were skipped because their host no longer exists: {{names}}",
|
||||
"timeAgo": {
|
||||
"seconds": "{{count}}s ago",
|
||||
"minutes": "há {{count}} min",
|
||||
"hours": "há {{count}} h",
|
||||
"days": "há {{count}} d"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"nav": {
|
||||
"workspaces": "Workspaces"
|
||||
},
|
||||
"onboarding": {
|
||||
"workflow_workspaces": "Workspaces",
|
||||
"workflow_workspaces_desc": "Save a set of open tabs and reopen the whole layout later."
|
||||
},
|
||||
"permissions": {
|
||||
"use": {
|
||||
"title": "Use workspaces",
|
||||
"description": "Save, apply and manage saved tab layouts."
|
||||
}
|
||||
},
|
||||
"hosts": {
|
||||
"docsLink": "Ver documentação"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,70 @@
|
||||
{
|
||||
"newUi": {
|
||||
"sidebar": {
|
||||
"workspaces": {
|
||||
"title": "Spații de lucru",
|
||||
"saveCurrent": "Salvați curentul",
|
||||
"saveCurrentTitle": "Salvați spațiul de lucru curent",
|
||||
"saveCurrentDescription": "Salvați fiecare filă deschisă, aspect divizat și aranjament de panouri ca un spațiu de lucru nou denumit.",
|
||||
"nameLabel": "Nume",
|
||||
"namePlaceholder": "de exemplu, Depanare produs",
|
||||
"nameRequired": "Numele spațiului de lucru este obligatoriu",
|
||||
"colorLabel": "Culoare",
|
||||
"workspaceCreated": "Spațiul de lucru a fost salvat",
|
||||
"workspaceUpdated": "Spațiul de lucru a fost actualizat",
|
||||
"workspaceDeleted": "Spațiul de lucru a fost șters",
|
||||
"workspaceDuplicated": "Spațiul de lucru a fost duplicat",
|
||||
"saveFailed": "Spațiul de lucru nu a putut fi salvat",
|
||||
"updateFailed": "Spațiul de lucru nu a putut fi actualizat",
|
||||
"deleteFailed": "Nu s-a putut șterge spațiul de lucru",
|
||||
"duplicateFailed": "Spațiul de lucru nu a putut fi duplicat",
|
||||
"loadFailed": "Nu s-au putut încărca spațiile de lucru",
|
||||
"applyFailed": "Nu s-a putut aplica spațiul de lucru",
|
||||
"deleteWorkspaceTitle": "Ștergeți spațiul de lucru",
|
||||
"deleteWorkspaceDescription": "Sigur vrei să ștergi „{{name}}”? Această acțiune nu poate fi anulată.",
|
||||
"noWorkspaces": "Încă nu există spații de lucru salvate. Salvați aranjamentul actual al filelor pentru a începe.",
|
||||
"tabCount": "fila {{count}}",
|
||||
"tabCount_other": "{{count}} tab-uri",
|
||||
"apply": "Aplică",
|
||||
"applyConfirmTitle": "Aplicați spațiul de lucru",
|
||||
"applyConfirmDescription": "Aplicarea comenzii „{{name}}” va închide filele curente și le va înlocui cu aranjamentul salvat al acestui spațiu de lucru. Modificările nesalvate ale aspectului curent se vor pierde.",
|
||||
"applyConfirmButton": "Aplicați spațiul de lucru",
|
||||
"updateWithCurrent": "Actualizare cu curent",
|
||||
"updateWithCurrentConfirm": "Suprascrieți „{{name}}” cu aranjamentul actual al tabulatorilor?",
|
||||
"rename": "Redenumire",
|
||||
"duplicate": "Duplicat",
|
||||
"duplicateNameSuffix": "{{name}} (copie)",
|
||||
"setDefault": "Setare ca implicită",
|
||||
"unsetDefault": "Eliminare ca implicită",
|
||||
"defaultBadge": "Implicit",
|
||||
"lastSession": "Ultima sesiune",
|
||||
"lastSessionDescription": "Actualizat automat cu cea mai recentă aranjare a filelor. Aplică-l pentru a recupera ce aveai deschis.",
|
||||
"lastUsed": "Ultima utilizare {{time}}",
|
||||
"neverUsed": "Niciodată aplicat",
|
||||
"tabsSkipped": "Spațiul de lucru a fost aplicat, dar {{count}} filă(e) au fost omise deoarece gazda lor nu mai există: {{names}}",
|
||||
"timeAgo": {
|
||||
"seconds": "Acum {{count}}secunde",
|
||||
"minutes": "{{count}}acum câteva minute",
|
||||
"hours": "{{count}}acum o oră",
|
||||
"days": "{{count}}zile în urmă"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"nav": {
|
||||
"workspaces": "Spații de lucru"
|
||||
},
|
||||
"onboarding": {
|
||||
"workflow_workspaces": "Spații de lucru",
|
||||
"workflow_workspaces_desc": "Salvați un set de file deschise și redeschideți întregul aspect mai târziu."
|
||||
},
|
||||
"permissions": {
|
||||
"use": {
|
||||
"title": "Utilizați spațiile de lucru",
|
||||
"description": "Salvați, aplicați și gestionați machetele de file salvate."
|
||||
}
|
||||
},
|
||||
"hosts": {
|
||||
"docsLink": "Vizualizați documentele"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,70 @@
|
||||
{
|
||||
"newUi": {
|
||||
"sidebar": {
|
||||
"workspaces": {
|
||||
"title": "Workspaces",
|
||||
"saveCurrent": "Save Current",
|
||||
"saveCurrentTitle": "Save Current Workspace",
|
||||
"saveCurrentDescription": "Save every open tab, split layout, and pane arrangement as a new named workspace.",
|
||||
"nameLabel": "Название",
|
||||
"namePlaceholder": "e.g., Prod Debugging",
|
||||
"nameRequired": "Workspace name is required",
|
||||
"colorLabel": "Цвет",
|
||||
"workspaceCreated": "Workspace saved",
|
||||
"workspaceUpdated": "Workspace updated",
|
||||
"workspaceDeleted": "Workspace deleted",
|
||||
"workspaceDuplicated": "Workspace duplicated",
|
||||
"saveFailed": "Failed to save workspace",
|
||||
"updateFailed": "Failed to update workspace",
|
||||
"deleteFailed": "Failed to delete workspace",
|
||||
"duplicateFailed": "Failed to duplicate workspace",
|
||||
"loadFailed": "Failed to load workspaces",
|
||||
"applyFailed": "Failed to apply workspace",
|
||||
"deleteWorkspaceTitle": "Delete Workspace",
|
||||
"deleteWorkspaceDescription": "Are you sure you want to delete \"{{name}}\"? This cannot be undone.",
|
||||
"noWorkspaces": "No saved workspaces yet. Save your current tab arrangement to get started.",
|
||||
"tabCount": "{{count}} tab",
|
||||
"tabCount_other": "{{count}} tabs",
|
||||
"apply": "Применить",
|
||||
"applyConfirmTitle": "Apply Workspace",
|
||||
"applyConfirmDescription": "Applying \"{{name}}\" will close your current tabs and replace them with this workspace's saved arrangement. Unsaved changes to your current layout will be lost.",
|
||||
"applyConfirmButton": "Apply Workspace",
|
||||
"updateWithCurrent": "Update with Current",
|
||||
"updateWithCurrentConfirm": "Overwrite \"{{name}}\" with your current tab arrangement?",
|
||||
"rename": "Переименовать",
|
||||
"duplicate": "Duplicate",
|
||||
"duplicateNameSuffix": "{{name}} (copy)",
|
||||
"setDefault": "Set as Default",
|
||||
"unsetDefault": "Remove as Default",
|
||||
"defaultBadge": "Default",
|
||||
"lastSession": "Last Session",
|
||||
"lastSessionDescription": "Automatically updated with your most recent tab arrangement. Apply it to recover what you had open.",
|
||||
"lastUsed": "Last used {{time}}",
|
||||
"neverUsed": "Never applied",
|
||||
"tabsSkipped": "Workspace applied, but {{count}} tab(s) were skipped because their host no longer exists: {{names}}",
|
||||
"timeAgo": {
|
||||
"seconds": "{{count}}s ago",
|
||||
"minutes": "{{count}}м назад",
|
||||
"hours": "{{count}}ч назад",
|
||||
"days": "{{count}}д назад"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"nav": {
|
||||
"workspaces": "Workspaces"
|
||||
},
|
||||
"onboarding": {
|
||||
"workflow_workspaces": "Workspaces",
|
||||
"workflow_workspaces_desc": "Save a set of open tabs and reopen the whole layout later."
|
||||
},
|
||||
"permissions": {
|
||||
"use": {
|
||||
"title": "Use workspaces",
|
||||
"description": "Save, apply and manage saved tab layouts."
|
||||
}
|
||||
},
|
||||
"hosts": {
|
||||
"docsLink": "Документация"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,70 @@
|
||||
{
|
||||
"newUi": {
|
||||
"sidebar": {
|
||||
"workspaces": {
|
||||
"title": "Workspaces",
|
||||
"saveCurrent": "Save Current",
|
||||
"saveCurrentTitle": "Save Current Workspace",
|
||||
"saveCurrentDescription": "Save every open tab, split layout, and pane arrangement as a new named workspace.",
|
||||
"nameLabel": "Name",
|
||||
"namePlaceholder": "e.g., Prod Debugging",
|
||||
"nameRequired": "Workspace name is required",
|
||||
"colorLabel": "Color",
|
||||
"workspaceCreated": "Workspace saved",
|
||||
"workspaceUpdated": "Workspace updated",
|
||||
"workspaceDeleted": "Workspace deleted",
|
||||
"workspaceDuplicated": "Workspace duplicated",
|
||||
"saveFailed": "Failed to save workspace",
|
||||
"updateFailed": "Failed to update workspace",
|
||||
"deleteFailed": "Failed to delete workspace",
|
||||
"duplicateFailed": "Failed to duplicate workspace",
|
||||
"loadFailed": "Failed to load workspaces",
|
||||
"applyFailed": "Failed to apply workspace",
|
||||
"deleteWorkspaceTitle": "Delete Workspace",
|
||||
"deleteWorkspaceDescription": "Are you sure you want to delete \"{{name}}\"? This cannot be undone.",
|
||||
"noWorkspaces": "No saved workspaces yet. Save your current tab arrangement to get started.",
|
||||
"tabCount": "{{count}} tab",
|
||||
"tabCount_other": "{{count}} tabs",
|
||||
"apply": "Apply",
|
||||
"applyConfirmTitle": "Apply Workspace",
|
||||
"applyConfirmDescription": "Applying \"{{name}}\" will close your current tabs and replace them with this workspace's saved arrangement. Unsaved changes to your current layout will be lost.",
|
||||
"applyConfirmButton": "Apply Workspace",
|
||||
"updateWithCurrent": "Update with Current",
|
||||
"updateWithCurrentConfirm": "Overwrite \"{{name}}\" with your current tab arrangement?",
|
||||
"rename": "Rename",
|
||||
"duplicate": "Duplicate",
|
||||
"duplicateNameSuffix": "{{name}} (copy)",
|
||||
"setDefault": "Set as Default",
|
||||
"unsetDefault": "Remove as Default",
|
||||
"defaultBadge": "Default",
|
||||
"lastSession": "Last Session",
|
||||
"lastSessionDescription": "Automatically updated with your most recent tab arrangement. Apply it to recover what you had open.",
|
||||
"lastUsed": "Last used {{time}}",
|
||||
"neverUsed": "Never applied",
|
||||
"tabsSkipped": "Workspace applied, but {{count}} tab(s) were skipped because their host no longer exists: {{names}}",
|
||||
"timeAgo": {
|
||||
"seconds": "{{count}}s ago",
|
||||
"minutes": "{{count}}m ago",
|
||||
"hours": "{{count}}h ago",
|
||||
"days": "{{count}}d ago"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"nav": {
|
||||
"workspaces": "Workspaces"
|
||||
},
|
||||
"onboarding": {
|
||||
"workflow_workspaces": "Workspaces",
|
||||
"workflow_workspaces_desc": "Save a set of open tabs and reopen the whole layout later."
|
||||
},
|
||||
"permissions": {
|
||||
"use": {
|
||||
"title": "Use workspaces",
|
||||
"description": "Save, apply and manage saved tab layouts."
|
||||
}
|
||||
},
|
||||
"hosts": {
|
||||
"docsLink": "View docs"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,70 @@
|
||||
{
|
||||
"newUi": {
|
||||
"sidebar": {
|
||||
"workspaces": {
|
||||
"title": "Workspaces",
|
||||
"saveCurrent": "Save Current",
|
||||
"saveCurrentTitle": "Save Current Workspace",
|
||||
"saveCurrentDescription": "Save every open tab, split layout, and pane arrangement as a new named workspace.",
|
||||
"nameLabel": "Name",
|
||||
"namePlaceholder": "e.g., Prod Debugging",
|
||||
"nameRequired": "Workspace name is required",
|
||||
"colorLabel": "Color",
|
||||
"workspaceCreated": "Workspace saved",
|
||||
"workspaceUpdated": "Workspace updated",
|
||||
"workspaceDeleted": "Workspace deleted",
|
||||
"workspaceDuplicated": "Workspace duplicated",
|
||||
"saveFailed": "Failed to save workspace",
|
||||
"updateFailed": "Failed to update workspace",
|
||||
"deleteFailed": "Failed to delete workspace",
|
||||
"duplicateFailed": "Failed to duplicate workspace",
|
||||
"loadFailed": "Failed to load workspaces",
|
||||
"applyFailed": "Failed to apply workspace",
|
||||
"deleteWorkspaceTitle": "Delete Workspace",
|
||||
"deleteWorkspaceDescription": "Are you sure you want to delete \"{{name}}\"? This cannot be undone.",
|
||||
"noWorkspaces": "No saved workspaces yet. Save your current tab arrangement to get started.",
|
||||
"tabCount": "{{count}} tab",
|
||||
"tabCount_other": "{{count}} tabs",
|
||||
"apply": "Apply",
|
||||
"applyConfirmTitle": "Apply Workspace",
|
||||
"applyConfirmDescription": "Applying \"{{name}}\" will close your current tabs and replace them with this workspace's saved arrangement. Unsaved changes to your current layout will be lost.",
|
||||
"applyConfirmButton": "Apply Workspace",
|
||||
"updateWithCurrent": "Update with Current",
|
||||
"updateWithCurrentConfirm": "Overwrite \"{{name}}\" with your current tab arrangement?",
|
||||
"rename": "Rename",
|
||||
"duplicate": "Duplicate",
|
||||
"duplicateNameSuffix": "{{name}} (copy)",
|
||||
"setDefault": "Set as Default",
|
||||
"unsetDefault": "Remove as Default",
|
||||
"defaultBadge": "Default",
|
||||
"lastSession": "Last Session",
|
||||
"lastSessionDescription": "Automatically updated with your most recent tab arrangement. Apply it to recover what you had open.",
|
||||
"lastUsed": "Last used {{time}}",
|
||||
"neverUsed": "Never applied",
|
||||
"tabsSkipped": "Workspace applied, but {{count}} tab(s) were skipped because their host no longer exists: {{names}}",
|
||||
"timeAgo": {
|
||||
"seconds": "{{count}}s ago",
|
||||
"minutes": "{{count}}m ago",
|
||||
"hours": "{{count}}h ago",
|
||||
"days": "{{count}}d ago"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"nav": {
|
||||
"workspaces": "Workspaces"
|
||||
},
|
||||
"onboarding": {
|
||||
"workflow_workspaces": "Workspaces",
|
||||
"workflow_workspaces_desc": "Save a set of open tabs and reopen the whole layout later."
|
||||
},
|
||||
"permissions": {
|
||||
"use": {
|
||||
"title": "Use workspaces",
|
||||
"description": "Save, apply and manage saved tab layouts."
|
||||
}
|
||||
},
|
||||
"hosts": {
|
||||
"docsLink": "View docs"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,70 @@
|
||||
{
|
||||
"newUi": {
|
||||
"sidebar": {
|
||||
"workspaces": {
|
||||
"title": "Workspaces",
|
||||
"saveCurrent": "Save Current",
|
||||
"saveCurrentTitle": "Save Current Workspace",
|
||||
"saveCurrentDescription": "Save every open tab, split layout, and pane arrangement as a new named workspace.",
|
||||
"nameLabel": "Name",
|
||||
"namePlaceholder": "e.g., Prod Debugging",
|
||||
"nameRequired": "Workspace name is required",
|
||||
"colorLabel": "Color",
|
||||
"workspaceCreated": "Workspace saved",
|
||||
"workspaceUpdated": "Workspace updated",
|
||||
"workspaceDeleted": "Workspace deleted",
|
||||
"workspaceDuplicated": "Workspace duplicated",
|
||||
"saveFailed": "Failed to save workspace",
|
||||
"updateFailed": "Failed to update workspace",
|
||||
"deleteFailed": "Failed to delete workspace",
|
||||
"duplicateFailed": "Failed to duplicate workspace",
|
||||
"loadFailed": "Failed to load workspaces",
|
||||
"applyFailed": "Failed to apply workspace",
|
||||
"deleteWorkspaceTitle": "Delete Workspace",
|
||||
"deleteWorkspaceDescription": "Are you sure you want to delete \"{{name}}\"? This cannot be undone.",
|
||||
"noWorkspaces": "No saved workspaces yet. Save your current tab arrangement to get started.",
|
||||
"tabCount": "{{count}} tab",
|
||||
"tabCount_other": "{{count}} tabs",
|
||||
"apply": "Apply",
|
||||
"applyConfirmTitle": "Apply Workspace",
|
||||
"applyConfirmDescription": "Applying \"{{name}}\" will close your current tabs and replace them with this workspace's saved arrangement. Unsaved changes to your current layout will be lost.",
|
||||
"applyConfirmButton": "Apply Workspace",
|
||||
"updateWithCurrent": "Update with Current",
|
||||
"updateWithCurrentConfirm": "Overwrite \"{{name}}\" with your current tab arrangement?",
|
||||
"rename": "Rename",
|
||||
"duplicate": "Duplicate",
|
||||
"duplicateNameSuffix": "{{name}} (copy)",
|
||||
"setDefault": "Set as Default",
|
||||
"unsetDefault": "Remove as Default",
|
||||
"defaultBadge": "Default",
|
||||
"lastSession": "Last Session",
|
||||
"lastSessionDescription": "Automatically updated with your most recent tab arrangement. Apply it to recover what you had open.",
|
||||
"lastUsed": "Last used {{time}}",
|
||||
"neverUsed": "Never applied",
|
||||
"tabsSkipped": "Workspace applied, but {{count}} tab(s) were skipped because their host no longer exists: {{names}}",
|
||||
"timeAgo": {
|
||||
"seconds": "{{count}}s ago",
|
||||
"minutes": "{{count}}m ago",
|
||||
"hours": "{{count}}h ago",
|
||||
"days": "{{count}}d ago"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"nav": {
|
||||
"workspaces": "Workspaces"
|
||||
},
|
||||
"onboarding": {
|
||||
"workflow_workspaces": "Workspaces",
|
||||
"workflow_workspaces_desc": "Save a set of open tabs and reopen the whole layout later."
|
||||
},
|
||||
"permissions": {
|
||||
"use": {
|
||||
"title": "Use workspaces",
|
||||
"description": "Save, apply and manage saved tab layouts."
|
||||
}
|
||||
},
|
||||
"hosts": {
|
||||
"docsLink": "View docs"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,70 @@
|
||||
{
|
||||
"newUi": {
|
||||
"sidebar": {
|
||||
"workspaces": {
|
||||
"title": "Workspaces",
|
||||
"saveCurrent": "Save Current",
|
||||
"saveCurrentTitle": "Save Current Workspace",
|
||||
"saveCurrentDescription": "Save every open tab, split layout, and pane arrangement as a new named workspace.",
|
||||
"nameLabel": "Ad",
|
||||
"namePlaceholder": "e.g., Prod Debugging",
|
||||
"nameRequired": "Workspace name is required",
|
||||
"colorLabel": "Renk",
|
||||
"workspaceCreated": "Workspace saved",
|
||||
"workspaceUpdated": "Workspace updated",
|
||||
"workspaceDeleted": "Workspace deleted",
|
||||
"workspaceDuplicated": "Workspace duplicated",
|
||||
"saveFailed": "Failed to save workspace",
|
||||
"updateFailed": "Failed to update workspace",
|
||||
"deleteFailed": "Failed to delete workspace",
|
||||
"duplicateFailed": "Failed to duplicate workspace",
|
||||
"loadFailed": "Failed to load workspaces",
|
||||
"applyFailed": "Failed to apply workspace",
|
||||
"deleteWorkspaceTitle": "Delete Workspace",
|
||||
"deleteWorkspaceDescription": "Are you sure you want to delete \"{{name}}\"? This cannot be undone.",
|
||||
"noWorkspaces": "No saved workspaces yet. Save your current tab arrangement to get started.",
|
||||
"tabCount": "{{count}} tab",
|
||||
"tabCount_other": "{{count}} tabs",
|
||||
"apply": "Uygula",
|
||||
"applyConfirmTitle": "Apply Workspace",
|
||||
"applyConfirmDescription": "Applying \"{{name}}\" will close your current tabs and replace them with this workspace's saved arrangement. Unsaved changes to your current layout will be lost.",
|
||||
"applyConfirmButton": "Apply Workspace",
|
||||
"updateWithCurrent": "Update with Current",
|
||||
"updateWithCurrentConfirm": "Overwrite \"{{name}}\" with your current tab arrangement?",
|
||||
"rename": "Yeniden adlandır",
|
||||
"duplicate": "Duplicate",
|
||||
"duplicateNameSuffix": "{{name}} (copy)",
|
||||
"setDefault": "Set as Default",
|
||||
"unsetDefault": "Remove as Default",
|
||||
"defaultBadge": "Default",
|
||||
"lastSession": "Last Session",
|
||||
"lastSessionDescription": "Automatically updated with your most recent tab arrangement. Apply it to recover what you had open.",
|
||||
"lastUsed": "Last used {{time}}",
|
||||
"neverUsed": "Never applied",
|
||||
"tabsSkipped": "Workspace applied, but {{count}} tab(s) were skipped because their host no longer exists: {{names}}",
|
||||
"timeAgo": {
|
||||
"seconds": "{{count}}s ago",
|
||||
"minutes": "{{count}} dakika önce",
|
||||
"hours": "{{count}} saat önce",
|
||||
"days": "{{count}} gün önce"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"nav": {
|
||||
"workspaces": "Workspaces"
|
||||
},
|
||||
"onboarding": {
|
||||
"workflow_workspaces": "Workspaces",
|
||||
"workflow_workspaces_desc": "Save a set of open tabs and reopen the whole layout later."
|
||||
},
|
||||
"permissions": {
|
||||
"use": {
|
||||
"title": "Use workspaces",
|
||||
"description": "Save, apply and manage saved tab layouts."
|
||||
}
|
||||
},
|
||||
"hosts": {
|
||||
"docsLink": "Dokümanları görüntüle"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,70 @@
|
||||
{
|
||||
"newUi": {
|
||||
"sidebar": {
|
||||
"workspaces": {
|
||||
"title": "Workspaces",
|
||||
"saveCurrent": "Save Current",
|
||||
"saveCurrentTitle": "Save Current Workspace",
|
||||
"saveCurrentDescription": "Save every open tab, split layout, and pane arrangement as a new named workspace.",
|
||||
"nameLabel": "Name",
|
||||
"namePlaceholder": "e.g., Prod Debugging",
|
||||
"nameRequired": "Workspace name is required",
|
||||
"colorLabel": "Color",
|
||||
"workspaceCreated": "Workspace saved",
|
||||
"workspaceUpdated": "Workspace updated",
|
||||
"workspaceDeleted": "Workspace deleted",
|
||||
"workspaceDuplicated": "Workspace duplicated",
|
||||
"saveFailed": "Failed to save workspace",
|
||||
"updateFailed": "Failed to update workspace",
|
||||
"deleteFailed": "Failed to delete workspace",
|
||||
"duplicateFailed": "Failed to duplicate workspace",
|
||||
"loadFailed": "Failed to load workspaces",
|
||||
"applyFailed": "Failed to apply workspace",
|
||||
"deleteWorkspaceTitle": "Delete Workspace",
|
||||
"deleteWorkspaceDescription": "Are you sure you want to delete \"{{name}}\"? This cannot be undone.",
|
||||
"noWorkspaces": "No saved workspaces yet. Save your current tab arrangement to get started.",
|
||||
"tabCount": "{{count}} tab",
|
||||
"tabCount_other": "{{count}} tabs",
|
||||
"apply": "Apply",
|
||||
"applyConfirmTitle": "Apply Workspace",
|
||||
"applyConfirmDescription": "Applying \"{{name}}\" will close your current tabs and replace them with this workspace's saved arrangement. Unsaved changes to your current layout will be lost.",
|
||||
"applyConfirmButton": "Apply Workspace",
|
||||
"updateWithCurrent": "Update with Current",
|
||||
"updateWithCurrentConfirm": "Overwrite \"{{name}}\" with your current tab arrangement?",
|
||||
"rename": "Rename",
|
||||
"duplicate": "Duplicate",
|
||||
"duplicateNameSuffix": "{{name}} (copy)",
|
||||
"setDefault": "Set as Default",
|
||||
"unsetDefault": "Remove as Default",
|
||||
"defaultBadge": "Default",
|
||||
"lastSession": "Last Session",
|
||||
"lastSessionDescription": "Automatically updated with your most recent tab arrangement. Apply it to recover what you had open.",
|
||||
"lastUsed": "Last used {{time}}",
|
||||
"neverUsed": "Never applied",
|
||||
"tabsSkipped": "Workspace applied, but {{count}} tab(s) were skipped because their host no longer exists: {{names}}",
|
||||
"timeAgo": {
|
||||
"seconds": "{{count}}s ago",
|
||||
"minutes": "{{count}}m ago",
|
||||
"hours": "{{count}}h ago",
|
||||
"days": "{{count}}d ago"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"nav": {
|
||||
"workspaces": "Workspaces"
|
||||
},
|
||||
"onboarding": {
|
||||
"workflow_workspaces": "Workspaces",
|
||||
"workflow_workspaces_desc": "Save a set of open tabs and reopen the whole layout later."
|
||||
},
|
||||
"permissions": {
|
||||
"use": {
|
||||
"title": "Use workspaces",
|
||||
"description": "Save, apply and manage saved tab layouts."
|
||||
}
|
||||
},
|
||||
"hosts": {
|
||||
"docsLink": "View docs"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,70 @@
|
||||
{
|
||||
"newUi": {
|
||||
"sidebar": {
|
||||
"workspaces": {
|
||||
"title": "Workspaces",
|
||||
"saveCurrent": "Save Current",
|
||||
"saveCurrentTitle": "Save Current Workspace",
|
||||
"saveCurrentDescription": "Save every open tab, split layout, and pane arrangement as a new named workspace.",
|
||||
"nameLabel": "Tên",
|
||||
"namePlaceholder": "e.g., Prod Debugging",
|
||||
"nameRequired": "Workspace name is required",
|
||||
"colorLabel": "Màu sắc",
|
||||
"workspaceCreated": "Workspace saved",
|
||||
"workspaceUpdated": "Workspace updated",
|
||||
"workspaceDeleted": "Workspace deleted",
|
||||
"workspaceDuplicated": "Workspace duplicated",
|
||||
"saveFailed": "Failed to save workspace",
|
||||
"updateFailed": "Failed to update workspace",
|
||||
"deleteFailed": "Failed to delete workspace",
|
||||
"duplicateFailed": "Failed to duplicate workspace",
|
||||
"loadFailed": "Failed to load workspaces",
|
||||
"applyFailed": "Failed to apply workspace",
|
||||
"deleteWorkspaceTitle": "Delete Workspace",
|
||||
"deleteWorkspaceDescription": "Are you sure you want to delete \"{{name}}\"? This cannot be undone.",
|
||||
"noWorkspaces": "No saved workspaces yet. Save your current tab arrangement to get started.",
|
||||
"tabCount": "{{count}} tab",
|
||||
"tabCount_other": "{{count}} tabs",
|
||||
"apply": "Áp dụng",
|
||||
"applyConfirmTitle": "Apply Workspace",
|
||||
"applyConfirmDescription": "Applying \"{{name}}\" will close your current tabs and replace them with this workspace's saved arrangement. Unsaved changes to your current layout will be lost.",
|
||||
"applyConfirmButton": "Apply Workspace",
|
||||
"updateWithCurrent": "Update with Current",
|
||||
"updateWithCurrentConfirm": "Overwrite \"{{name}}\" with your current tab arrangement?",
|
||||
"rename": "Đổi tên",
|
||||
"duplicate": "Duplicate",
|
||||
"duplicateNameSuffix": "{{name}} (copy)",
|
||||
"setDefault": "Set as Default",
|
||||
"unsetDefault": "Remove as Default",
|
||||
"defaultBadge": "Default",
|
||||
"lastSession": "Last Session",
|
||||
"lastSessionDescription": "Automatically updated with your most recent tab arrangement. Apply it to recover what you had open.",
|
||||
"lastUsed": "Last used {{time}}",
|
||||
"neverUsed": "Never applied",
|
||||
"tabsSkipped": "Workspace applied, but {{count}} tab(s) were skipped because their host no longer exists: {{names}}",
|
||||
"timeAgo": {
|
||||
"seconds": "{{count}}s ago",
|
||||
"minutes": "{{count}} phút trước",
|
||||
"hours": "{{count}} giờ trước",
|
||||
"days": "{{count}} ngày trước"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"nav": {
|
||||
"workspaces": "Workspaces"
|
||||
},
|
||||
"onboarding": {
|
||||
"workflow_workspaces": "Workspaces",
|
||||
"workflow_workspaces_desc": "Save a set of open tabs and reopen the whole layout later."
|
||||
},
|
||||
"permissions": {
|
||||
"use": {
|
||||
"title": "Use workspaces",
|
||||
"description": "Save, apply and manage saved tab layouts."
|
||||
}
|
||||
},
|
||||
"hosts": {
|
||||
"docsLink": "Xem tài liệu"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,70 @@
|
||||
{
|
||||
"newUi": {
|
||||
"sidebar": {
|
||||
"workspaces": {
|
||||
"title": "Workspaces",
|
||||
"saveCurrent": "Save Current",
|
||||
"saveCurrentTitle": "Save Current Workspace",
|
||||
"saveCurrentDescription": "Save every open tab, split layout, and pane arrangement as a new named workspace.",
|
||||
"nameLabel": "名称",
|
||||
"namePlaceholder": "e.g., Prod Debugging",
|
||||
"nameRequired": "Workspace name is required",
|
||||
"colorLabel": "颜色",
|
||||
"workspaceCreated": "Workspace saved",
|
||||
"workspaceUpdated": "Workspace updated",
|
||||
"workspaceDeleted": "Workspace deleted",
|
||||
"workspaceDuplicated": "Workspace duplicated",
|
||||
"saveFailed": "Failed to save workspace",
|
||||
"updateFailed": "Failed to update workspace",
|
||||
"deleteFailed": "Failed to delete workspace",
|
||||
"duplicateFailed": "Failed to duplicate workspace",
|
||||
"loadFailed": "Failed to load workspaces",
|
||||
"applyFailed": "Failed to apply workspace",
|
||||
"deleteWorkspaceTitle": "Delete Workspace",
|
||||
"deleteWorkspaceDescription": "Are you sure you want to delete \"{{name}}\"? This cannot be undone.",
|
||||
"noWorkspaces": "No saved workspaces yet. Save your current tab arrangement to get started.",
|
||||
"tabCount": "{{count}} 个标签页",
|
||||
"tabCount_other": "{{count}} 个标签页",
|
||||
"apply": "应用",
|
||||
"applyConfirmTitle": "Apply Workspace",
|
||||
"applyConfirmDescription": "Applying \"{{name}}\" will close your current tabs and replace them with this workspace's saved arrangement. Unsaved changes to your current layout will be lost.",
|
||||
"applyConfirmButton": "Apply Workspace",
|
||||
"updateWithCurrent": "Update with Current",
|
||||
"updateWithCurrentConfirm": "用您当前的标签页排列覆盖“{{name}}”?",
|
||||
"rename": "重命名",
|
||||
"duplicate": "Duplicate",
|
||||
"duplicateNameSuffix": "{{name}}(副本)",
|
||||
"setDefault": "Set as Default",
|
||||
"unsetDefault": "Remove as Default",
|
||||
"defaultBadge": "Default",
|
||||
"lastSession": "上次会话",
|
||||
"lastSessionDescription": "Automatically updated with your most recent tab arrangement. Apply it to recover what you had open.",
|
||||
"lastUsed": "Last used {{time}}",
|
||||
"neverUsed": "从未应用过",
|
||||
"tabsSkipped": "Workspace applied, but {{count}} tab(s) were skipped because their host no longer exists: {{names}}",
|
||||
"timeAgo": {
|
||||
"seconds": "{{count}}s ago",
|
||||
"minutes": "{{count}} 分钟前",
|
||||
"hours": "{{count}} 小时前",
|
||||
"days": "{{count}} 天前"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"nav": {
|
||||
"workspaces": "Workspaces"
|
||||
},
|
||||
"onboarding": {
|
||||
"workflow_workspaces": "Workspaces",
|
||||
"workflow_workspaces_desc": "保存当前打开的标签页组合,方便之后一键恢复整个布局。"
|
||||
},
|
||||
"permissions": {
|
||||
"use": {
|
||||
"title": "Use workspaces",
|
||||
"description": "Save, apply and manage saved tab layouts."
|
||||
}
|
||||
},
|
||||
"hosts": {
|
||||
"docsLink": "查看文档"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,70 @@
|
||||
{
|
||||
"newUi": {
|
||||
"sidebar": {
|
||||
"workspaces": {
|
||||
"title": "Workspaces",
|
||||
"saveCurrent": "Save Current",
|
||||
"saveCurrentTitle": "Save Current Workspace",
|
||||
"saveCurrentDescription": "Save every open tab, split layout, and pane arrangement as a new named workspace.",
|
||||
"nameLabel": "名稱",
|
||||
"namePlaceholder": "e.g., Prod Debugging",
|
||||
"nameRequired": "Workspace name is required",
|
||||
"colorLabel": "顏色",
|
||||
"workspaceCreated": "Workspace saved",
|
||||
"workspaceUpdated": "Workspace updated",
|
||||
"workspaceDeleted": "Workspace deleted",
|
||||
"workspaceDuplicated": "Workspace duplicated",
|
||||
"saveFailed": "Failed to save workspace",
|
||||
"updateFailed": "Failed to update workspace",
|
||||
"deleteFailed": "Failed to delete workspace",
|
||||
"duplicateFailed": "Failed to duplicate workspace",
|
||||
"loadFailed": "Failed to load workspaces",
|
||||
"applyFailed": "Failed to apply workspace",
|
||||
"deleteWorkspaceTitle": "Delete Workspace",
|
||||
"deleteWorkspaceDescription": "Are you sure you want to delete \"{{name}}\"? This cannot be undone.",
|
||||
"noWorkspaces": "No saved workspaces yet. Save your current tab arrangement to get started.",
|
||||
"tabCount": "{{count}} tab",
|
||||
"tabCount_other": "{{count}} tabs",
|
||||
"apply": "套用",
|
||||
"applyConfirmTitle": "Apply Workspace",
|
||||
"applyConfirmDescription": "Applying \"{{name}}\" will close your current tabs and replace them with this workspace's saved arrangement. Unsaved changes to your current layout will be lost.",
|
||||
"applyConfirmButton": "Apply Workspace",
|
||||
"updateWithCurrent": "Update with Current",
|
||||
"updateWithCurrentConfirm": "Overwrite \"{{name}}\" with your current tab arrangement?",
|
||||
"rename": "重新命名",
|
||||
"duplicate": "Duplicate",
|
||||
"duplicateNameSuffix": "{{name}} (copy)",
|
||||
"setDefault": "Set as Default",
|
||||
"unsetDefault": "Remove as Default",
|
||||
"defaultBadge": "Default",
|
||||
"lastSession": "Last Session",
|
||||
"lastSessionDescription": "Automatically updated with your most recent tab arrangement. Apply it to recover what you had open.",
|
||||
"lastUsed": "Last used {{time}}",
|
||||
"neverUsed": "Never applied",
|
||||
"tabsSkipped": "Workspace applied, but {{count}} tab(s) were skipped because their host no longer exists: {{names}}",
|
||||
"timeAgo": {
|
||||
"seconds": "{{count}}s ago",
|
||||
"minutes": "{{count}} 分鐘前",
|
||||
"hours": "{{count}} 小時前",
|
||||
"days": "{{count}} 天前"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"nav": {
|
||||
"workspaces": "Workspaces"
|
||||
},
|
||||
"onboarding": {
|
||||
"workflow_workspaces": "Workspaces",
|
||||
"workflow_workspaces_desc": "Save a set of open tabs and reopen the whole layout later."
|
||||
},
|
||||
"permissions": {
|
||||
"use": {
|
||||
"title": "Use workspaces",
|
||||
"description": "Save, apply and manage saved tab layouts."
|
||||
}
|
||||
},
|
||||
"hosts": {
|
||||
"docsLink": "檢視文件"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,45 @@
|
||||
{
|
||||
"id": "workspaces",
|
||||
"name": "Workspaces",
|
||||
"version": "1.0.0",
|
||||
"description": "Save and restore named tab and split layouts.",
|
||||
"author": {
|
||||
"name": "Termix"
|
||||
},
|
||||
"license": "MIT",
|
||||
"repository": "https://github.com/Termix-SSH/Termix",
|
||||
"category": "Productivity",
|
||||
"icon": "LayoutTemplate",
|
||||
"engine": {
|
||||
"termix": ">=2.9.0",
|
||||
"api": "1"
|
||||
},
|
||||
"capabilities": ["db:own", "network:serve", "ui:surface"],
|
||||
"provides": [
|
||||
{
|
||||
"service": "workspaces.saved",
|
||||
"version": "1.0.0",
|
||||
"permission": "workspaces.use"
|
||||
}
|
||||
],
|
||||
"locales": "locales",
|
||||
"platforms": ["linux", "win32", "darwin"],
|
||||
"contributes": {
|
||||
"panels": [
|
||||
{
|
||||
"id": "workspaces",
|
||||
"titleKey": "nav.workspaces",
|
||||
"icon": "LayoutTemplate"
|
||||
}
|
||||
],
|
||||
"permissions": [
|
||||
{
|
||||
"name": "use",
|
||||
"titleKey": "permissions.use.title",
|
||||
"descriptionKey": "permissions.use.description",
|
||||
"defaultRoles": ["admin", "user"]
|
||||
}
|
||||
],
|
||||
"syncEntities": ["workspaces"]
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
-- workspaces 0001: adopt_user_workspaces
|
||||
-- Generated by termix-plugin migrations. Review before committing.
|
||||
|
||||
CREATE TABLE IF NOT EXISTS `user_workspaces` (
|
||||
`id` int AUTO_INCREMENT PRIMARY KEY,
|
||||
`user_id` varchar(255) NOT NULL,
|
||||
`name` text NOT NULL,
|
||||
`color` text,
|
||||
`icon` text,
|
||||
`kind` text NOT NULL DEFAULT ('manual'),
|
||||
`is_default` boolean NOT NULL DEFAULT false,
|
||||
`payload` text NOT NULL DEFAULT ('{}'),
|
||||
`sync_id` varchar(255) UNIQUE,
|
||||
`created_at` text NOT NULL DEFAULT (CURRENT_TIMESTAMP),
|
||||
`updated_at` text NOT NULL DEFAULT (CURRENT_TIMESTAMP),
|
||||
`last_used_at` text,
|
||||
FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE
|
||||
);
|
||||
RENAME TABLE `user_workspaces` TO `p_workspaces_workspaces`;
|
||||
@@ -0,0 +1,20 @@
|
||||
-- workspaces 0001: adopt_user_workspaces
|
||||
-- Generated by termix-plugin migrations. Review before committing.
|
||||
|
||||
CREATE TABLE IF NOT EXISTS "user_workspaces" (
|
||||
"id" serial PRIMARY KEY,
|
||||
"user_id" varchar(255) NOT NULL,
|
||||
"name" text NOT NULL,
|
||||
"color" text,
|
||||
"icon" text,
|
||||
"kind" text NOT NULL DEFAULT 'manual',
|
||||
"is_default" boolean NOT NULL DEFAULT false,
|
||||
"payload" text NOT NULL DEFAULT '{}',
|
||||
"sync_id" varchar(255) UNIQUE,
|
||||
"created_at" text NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
"updated_at" text NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
"last_used_at" text,
|
||||
FOREIGN KEY ("user_id") REFERENCES "users" ("id") ON DELETE CASCADE
|
||||
);
|
||||
CREATE INDEX IF NOT EXISTS "idx_user_workspaces_user_id" ON "user_workspaces" ("user_id");
|
||||
ALTER TABLE "user_workspaces" RENAME TO "p_workspaces_workspaces";
|
||||
@@ -0,0 +1,69 @@
|
||||
{
|
||||
"version": 1,
|
||||
"tables": {
|
||||
"workspaces": {
|
||||
"columns": {
|
||||
"id": {
|
||||
"type": "id",
|
||||
"primaryKey": true,
|
||||
"notNull": true
|
||||
},
|
||||
"userId": {
|
||||
"type": "refUser",
|
||||
"length": 255,
|
||||
"notNull": true
|
||||
},
|
||||
"name": {
|
||||
"type": "text",
|
||||
"notNull": true
|
||||
},
|
||||
"color": {
|
||||
"type": "text"
|
||||
},
|
||||
"icon": {
|
||||
"type": "text"
|
||||
},
|
||||
"kind": {
|
||||
"type": "text",
|
||||
"notNull": true,
|
||||
"defaultValue": "manual"
|
||||
},
|
||||
"isDefault": {
|
||||
"type": "boolean",
|
||||
"notNull": true,
|
||||
"defaultValue": false
|
||||
},
|
||||
"payload": {
|
||||
"type": "text",
|
||||
"notNull": true,
|
||||
"defaultValue": "{}"
|
||||
},
|
||||
"syncId": {
|
||||
"type": "varchar",
|
||||
"length": 255,
|
||||
"unique": true
|
||||
},
|
||||
"createdAt": {
|
||||
"type": "timestamp",
|
||||
"notNull": true,
|
||||
"defaultNow": true
|
||||
},
|
||||
"updatedAt": {
|
||||
"type": "timestamp",
|
||||
"notNull": true,
|
||||
"defaultNow": true
|
||||
},
|
||||
"lastUsedAt": {
|
||||
"type": "timestamp"
|
||||
}
|
||||
},
|
||||
"indexes": [
|
||||
{
|
||||
"name": "idx_user_workspaces_user_id",
|
||||
"columns": ["userId"]
|
||||
}
|
||||
],
|
||||
"adopts": "user_workspaces"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
-- workspaces 0001: adopt_user_workspaces
|
||||
-- Generated by termix-plugin migrations. Review before committing.
|
||||
|
||||
CREATE TABLE IF NOT EXISTS "user_workspaces" (
|
||||
"id" integer PRIMARY KEY AUTOINCREMENT,
|
||||
"user_id" text NOT NULL,
|
||||
"name" text NOT NULL,
|
||||
"color" text,
|
||||
"icon" text,
|
||||
"kind" text NOT NULL DEFAULT 'manual',
|
||||
"is_default" integer NOT NULL DEFAULT 0,
|
||||
"payload" text NOT NULL DEFAULT '{}',
|
||||
"sync_id" text UNIQUE,
|
||||
"created_at" text NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
"updated_at" text NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
"last_used_at" text,
|
||||
FOREIGN KEY ("user_id") REFERENCES "users" ("id") ON DELETE CASCADE
|
||||
);
|
||||
CREATE INDEX IF NOT EXISTS "idx_user_workspaces_user_id" ON "user_workspaces" ("user_id");
|
||||
ALTER TABLE "user_workspaces" RENAME TO "p_workspaces_workspaces";
|
||||
@@ -0,0 +1,33 @@
|
||||
{
|
||||
"name": "@termix-plugin/workspaces",
|
||||
"private": true,
|
||||
"version": "1.0.0",
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
"build": "termix-plugin build",
|
||||
"test": "termix-plugin test",
|
||||
"typecheck": "tsc -p .",
|
||||
"validate": "termix-plugin validate"
|
||||
},
|
||||
"dependencies": {
|
||||
"lucide-react": "^1.33.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@termix/plugin-sdk": "^1.0.0",
|
||||
"@testing-library/dom": "^10.4.2",
|
||||
"@testing-library/react": "^16.3.3",
|
||||
"@types/node": "^26.2.0",
|
||||
"@types/react": "^19.2.18",
|
||||
"@types/react-dom": "^19.2.4",
|
||||
"better-sqlite3": "^13.0.3",
|
||||
"jsdom": "^30.0.1",
|
||||
"vitest": "^4.1.11"
|
||||
},
|
||||
"peerDependencies": {
|
||||
"@termix/plugin-sdk": "^1.0.0",
|
||||
"drizzle-orm": "^0.45.2",
|
||||
"express": "^5.2.1",
|
||||
"react": "^19.2.8",
|
||||
"sonner": "^2.0.8"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,49 @@
|
||||
import type { Router } from "express";
|
||||
import type { PluginContext } from "@termix/plugin-sdk/backend";
|
||||
import { workspaces } from "./tables.js";
|
||||
import { createWorkspaceRepository } from "./repository.js";
|
||||
import { registerWorkspaceRoutes } from "./routes.js";
|
||||
|
||||
/** What other plugins get from ctx.services.get("workspaces.saved"). */
|
||||
export interface WorkspacesService {
|
||||
/** The calling user's workspaces, without their layouts. */
|
||||
list: () => Promise<Array<{ id: number; name: string; isDefault: boolean }>>;
|
||||
}
|
||||
|
||||
export async function activate(ctx: PluginContext) {
|
||||
const table = await ctx.db.define(workspaces);
|
||||
const repo = createWorkspaceRepository(ctx.db, table);
|
||||
|
||||
registerWorkspaceRoutes(ctx.http.router<Router>(), repo, ctx);
|
||||
|
||||
// The last_session row belongs to one install. Syncing it would leave the
|
||||
// user with two, one from each side.
|
||||
ctx.sync.registerEntity({
|
||||
type: "workspaces",
|
||||
table,
|
||||
order: 200,
|
||||
shouldSync: (row) => row.kind !== "last_session",
|
||||
});
|
||||
|
||||
const service: WorkspacesService = {
|
||||
list: async () => {
|
||||
const userId = ctx.currentActor();
|
||||
if (!userId) return [];
|
||||
const rows = await repo.listByUser(userId);
|
||||
return rows
|
||||
.filter((row) => row.kind === "manual")
|
||||
.map((row) => ({
|
||||
id: row.id,
|
||||
name: row.name,
|
||||
isDefault: !!row.isDefault,
|
||||
}));
|
||||
},
|
||||
};
|
||||
ctx.services.provide("workspaces.saved", service);
|
||||
|
||||
ctx.log.info("Workspaces routes mounted at /plugin-api/workspaces");
|
||||
}
|
||||
|
||||
export async function deactivate() {
|
||||
// Everything above was registered through ctx and is disposed by core.
|
||||
}
|
||||
@@ -0,0 +1,252 @@
|
||||
import { randomUUID } from "node:crypto";
|
||||
import { and, eq, ne } from "drizzle-orm";
|
||||
import type { PluginDatabase } from "@termix/plugin-sdk/backend";
|
||||
|
||||
export type WorkspaceKind = "manual" | "last_session";
|
||||
|
||||
export interface WorkspaceRecord {
|
||||
id: number;
|
||||
userId: string;
|
||||
name: string;
|
||||
color: string | null;
|
||||
icon: string | null;
|
||||
kind: WorkspaceKind;
|
||||
isDefault: boolean;
|
||||
payload: string;
|
||||
syncId: string | null;
|
||||
createdAt: string;
|
||||
updatedAt: string;
|
||||
lastUsedAt: string | null;
|
||||
}
|
||||
|
||||
export interface WorkspaceCreateInput {
|
||||
name: string;
|
||||
color?: string | null;
|
||||
icon?: string | null;
|
||||
payload: string;
|
||||
}
|
||||
|
||||
export interface WorkspaceUpdateInput {
|
||||
name?: string;
|
||||
color?: string | null;
|
||||
icon?: string | null;
|
||||
}
|
||||
|
||||
/* eslint-disable @typescript-eslint/no-explicit-any */
|
||||
// The table comes from ctx.db.define, which the SDK hands back untyped, and
|
||||
// the drizzle handle is the server's own. Typed at this module's edge instead.
|
||||
type Table = any;
|
||||
type Drizzle = any;
|
||||
/* eslint-enable @typescript-eslint/no-explicit-any */
|
||||
|
||||
export type WorkspaceRepository = ReturnType<typeof createWorkspaceRepository>;
|
||||
|
||||
/**
|
||||
* Per-user workspace storage.
|
||||
*
|
||||
* Written without RETURNING so it runs the same on all three engines: an
|
||||
* insert is read back by the sync id it was given, an update by its id.
|
||||
*/
|
||||
export function createWorkspaceRepository(db: PluginDatabase, table: Table) {
|
||||
const client = () => db.client<Drizzle>();
|
||||
|
||||
async function findById(
|
||||
userId: string,
|
||||
id: number,
|
||||
): Promise<WorkspaceRecord | null> {
|
||||
const drizzle = await client();
|
||||
const rows = await drizzle
|
||||
.select()
|
||||
.from(table)
|
||||
.where(and(eq(table.id, id), eq(table.userId, userId)))
|
||||
.limit(1);
|
||||
return (rows[0] as WorkspaceRecord) ?? null;
|
||||
}
|
||||
|
||||
async function findBySyncId(syncId: string): Promise<WorkspaceRecord> {
|
||||
const drizzle = await client();
|
||||
const rows = await drizzle
|
||||
.select()
|
||||
.from(table)
|
||||
.where(eq(table.syncId, syncId))
|
||||
.limit(1);
|
||||
return rows[0] as WorkspaceRecord;
|
||||
}
|
||||
|
||||
async function findLastSession(
|
||||
userId: string,
|
||||
): Promise<WorkspaceRecord | null> {
|
||||
const drizzle = await client();
|
||||
const rows = await drizzle
|
||||
.select()
|
||||
.from(table)
|
||||
.where(and(eq(table.userId, userId), eq(table.kind, "last_session")))
|
||||
.limit(1);
|
||||
return (rows[0] as WorkspaceRecord) ?? null;
|
||||
}
|
||||
|
||||
async function insert(
|
||||
userId: string,
|
||||
values: Omit<
|
||||
WorkspaceRecord,
|
||||
"id" | "userId" | "syncId" | "createdAt" | "updatedAt" | "lastUsedAt"
|
||||
>,
|
||||
now: string,
|
||||
): Promise<WorkspaceRecord> {
|
||||
const syncId = randomUUID();
|
||||
const drizzle = await client();
|
||||
await drizzle
|
||||
.insert(table)
|
||||
.values({ ...values, userId, syncId, createdAt: now, updatedAt: now });
|
||||
await db.persist();
|
||||
return findBySyncId(syncId);
|
||||
}
|
||||
|
||||
async function write(
|
||||
userId: string,
|
||||
id: number,
|
||||
values: Record<string, unknown>,
|
||||
): Promise<WorkspaceRecord | null> {
|
||||
const drizzle = await client();
|
||||
await drizzle
|
||||
.update(table)
|
||||
.set(values)
|
||||
.where(and(eq(table.id, id), eq(table.userId, userId)));
|
||||
await db.persist();
|
||||
return findById(userId, id);
|
||||
}
|
||||
|
||||
/** A manual workspace the user owns, or null. Last Session is not editable. */
|
||||
async function findManual(
|
||||
userId: string,
|
||||
id: number,
|
||||
): Promise<WorkspaceRecord | null> {
|
||||
const existing = await findById(userId, id);
|
||||
return existing && existing.kind === "manual" ? existing : null;
|
||||
}
|
||||
|
||||
return {
|
||||
findById,
|
||||
findLastSession,
|
||||
|
||||
async listByUser(userId: string): Promise<WorkspaceRecord[]> {
|
||||
const drizzle = await client();
|
||||
return drizzle.select().from(table).where(eq(table.userId, userId));
|
||||
},
|
||||
|
||||
async upsertLastSession(
|
||||
userId: string,
|
||||
payload: string,
|
||||
now = new Date().toISOString(),
|
||||
): Promise<WorkspaceRecord> {
|
||||
const existing = await findLastSession(userId);
|
||||
if (!existing) {
|
||||
return insert(
|
||||
userId,
|
||||
{
|
||||
name: "Last Session",
|
||||
color: null,
|
||||
icon: null,
|
||||
kind: "last_session",
|
||||
isDefault: false,
|
||||
payload,
|
||||
},
|
||||
now,
|
||||
);
|
||||
}
|
||||
return write(userId, existing.id, { payload, updatedAt: now });
|
||||
},
|
||||
|
||||
async create(
|
||||
userId: string,
|
||||
input: WorkspaceCreateInput,
|
||||
now = new Date().toISOString(),
|
||||
): Promise<WorkspaceRecord> {
|
||||
return insert(
|
||||
userId,
|
||||
{
|
||||
name: input.name,
|
||||
color: input.color ?? null,
|
||||
icon: input.icon ?? null,
|
||||
kind: "manual",
|
||||
isDefault: false,
|
||||
payload: input.payload,
|
||||
},
|
||||
now,
|
||||
);
|
||||
},
|
||||
|
||||
async update(
|
||||
userId: string,
|
||||
id: number,
|
||||
input: WorkspaceUpdateInput,
|
||||
now = new Date().toISOString(),
|
||||
): Promise<WorkspaceRecord | null> {
|
||||
const existing = await findManual(userId, id);
|
||||
if (!existing) return null;
|
||||
return write(userId, id, {
|
||||
name: input.name ?? existing.name,
|
||||
color: input.color === undefined ? existing.color : input.color,
|
||||
icon: input.icon === undefined ? existing.icon : input.icon,
|
||||
updatedAt: now,
|
||||
});
|
||||
},
|
||||
|
||||
async updateContent(
|
||||
userId: string,
|
||||
id: number,
|
||||
payload: string,
|
||||
now = new Date().toISOString(),
|
||||
): Promise<WorkspaceRecord | null> {
|
||||
if (!(await findManual(userId, id))) return null;
|
||||
return write(userId, id, { payload, updatedAt: now });
|
||||
},
|
||||
|
||||
async setDefault(
|
||||
userId: string,
|
||||
id: number,
|
||||
now = new Date().toISOString(),
|
||||
): Promise<WorkspaceRecord | null> {
|
||||
if (!(await findManual(userId, id))) return null;
|
||||
const drizzle = await client();
|
||||
await drizzle
|
||||
.update(table)
|
||||
.set({ isDefault: false, updatedAt: now })
|
||||
.where(
|
||||
and(
|
||||
eq(table.userId, userId),
|
||||
eq(table.isDefault, true),
|
||||
ne(table.id, id),
|
||||
),
|
||||
);
|
||||
return write(userId, id, { isDefault: true, updatedAt: now });
|
||||
},
|
||||
|
||||
async unsetDefault(
|
||||
userId: string,
|
||||
id: number,
|
||||
now = new Date().toISOString(),
|
||||
): Promise<WorkspaceRecord | null> {
|
||||
if (!(await findManual(userId, id))) return null;
|
||||
return write(userId, id, { isDefault: false, updatedAt: now });
|
||||
},
|
||||
|
||||
async touchLastUsed(
|
||||
userId: string,
|
||||
id: number,
|
||||
now = new Date().toISOString(),
|
||||
): Promise<void> {
|
||||
await write(userId, id, { lastUsedAt: now });
|
||||
},
|
||||
|
||||
async delete(userId: string, id: number): Promise<boolean> {
|
||||
if (!(await findManual(userId, id))) return false;
|
||||
const drizzle = await client();
|
||||
await drizzle
|
||||
.delete(table)
|
||||
.where(and(eq(table.id, id), eq(table.userId, userId)));
|
||||
await db.persist();
|
||||
return true;
|
||||
},
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,576 @@
|
||||
import type { Request, Response, Router } from "express";
|
||||
import type { PluginContext } from "@termix/plugin-sdk/backend";
|
||||
import type { WorkspaceRecord, WorkspaceRepository } from "./repository.js";
|
||||
|
||||
function isNonEmptyString(val: unknown): val is string {
|
||||
return typeof val === "string" && val.trim().length > 0;
|
||||
}
|
||||
|
||||
function parseWorkspaceId(raw: unknown): number | null {
|
||||
const id = typeof raw === "string" ? parseInt(raw, 10) : NaN;
|
||||
return Number.isInteger(id) ? id : null;
|
||||
}
|
||||
|
||||
function isValidPayload(val: unknown): val is Record<string, unknown> {
|
||||
return (
|
||||
typeof val === "object" &&
|
||||
val !== null &&
|
||||
Array.isArray((val as Record<string, unknown>).tabs)
|
||||
);
|
||||
}
|
||||
|
||||
function serialize(record: WorkspaceRecord) {
|
||||
let payload: unknown;
|
||||
try {
|
||||
payload = JSON.parse(record.payload || "{}");
|
||||
} catch {
|
||||
payload = { version: 1, tabs: [] };
|
||||
}
|
||||
const tabs = Array.isArray((payload as { tabs?: unknown[] })?.tabs)
|
||||
? (payload as { tabs: unknown[] }).tabs
|
||||
: [];
|
||||
|
||||
return {
|
||||
...record,
|
||||
payload,
|
||||
tabCount: tabs.length,
|
||||
};
|
||||
}
|
||||
|
||||
function actor(ctx: PluginContext): string {
|
||||
// Core's plugin router authenticates every request and runs it as that user.
|
||||
return ctx.currentActor() as string;
|
||||
}
|
||||
|
||||
function logError(
|
||||
ctx: PluginContext,
|
||||
message: string,
|
||||
error: unknown,
|
||||
details: { operation: string; workspaceId?: number },
|
||||
): void {
|
||||
const target =
|
||||
details.workspaceId !== undefined ? ` ${details.workspaceId}` : "";
|
||||
ctx.log.error(
|
||||
`${message}${target} (${details.operation})`,
|
||||
error instanceof Error ? error : new Error(String(error)),
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* Mounts the workspace routes on the plugin's router, which core serves at
|
||||
* /plugin-api/workspaces with auth in front. Every route needs workspaces.use,
|
||||
* so an admin can hide the feature per role.
|
||||
*/
|
||||
export function registerWorkspaceRoutes(
|
||||
router: Router,
|
||||
repo: WorkspaceRepository,
|
||||
ctx: PluginContext,
|
||||
): void {
|
||||
router.use(ctx.rbac.require("use") as never);
|
||||
|
||||
/**
|
||||
* @openapi
|
||||
* /plugin-api/workspaces:
|
||||
* get:
|
||||
* summary: List the current user's saved workspaces
|
||||
* description: Returns every manual workspace plus the single auto-maintained "Last Session" workspace, each with a computed tabCount.
|
||||
* tags:
|
||||
* - Workspaces
|
||||
* responses:
|
||||
* 200:
|
||||
* description: List of workspaces.
|
||||
*/
|
||||
router.get("/", async (req: Request, res: Response) => {
|
||||
const userId = actor(ctx);
|
||||
|
||||
try {
|
||||
const records = await repo.listByUser(userId);
|
||||
res.json(records.map(serialize));
|
||||
} catch (err) {
|
||||
logError(ctx, "Failed to list workspaces", err, {
|
||||
operation: "workspace_list_failed",
|
||||
});
|
||||
res.status(500).json({ error: "Failed to list workspaces" });
|
||||
}
|
||||
});
|
||||
|
||||
/**
|
||||
* @openapi
|
||||
* /plugin-api/workspaces:
|
||||
* post:
|
||||
* summary: Save the current tab arrangement as a new named workspace
|
||||
* tags:
|
||||
* - Workspaces
|
||||
* requestBody:
|
||||
* required: true
|
||||
* content:
|
||||
* application/json:
|
||||
* schema:
|
||||
* type: object
|
||||
* properties:
|
||||
* name:
|
||||
* type: string
|
||||
* color:
|
||||
* type: string
|
||||
* icon:
|
||||
* type: string
|
||||
* payload:
|
||||
* type: object
|
||||
* responses:
|
||||
* 200:
|
||||
* description: Workspace created.
|
||||
* 400:
|
||||
* description: Invalid request body.
|
||||
*/
|
||||
router.post("/", async (req: Request, res: Response) => {
|
||||
const userId = actor(ctx);
|
||||
const { name, color, icon, payload } = req.body ?? {};
|
||||
|
||||
if (!isNonEmptyString(name)) {
|
||||
return res.status(400).json({ error: "Workspace name is required" });
|
||||
}
|
||||
if (!isValidPayload(payload)) {
|
||||
return res
|
||||
.status(400)
|
||||
.json({ error: "payload with a tabs array is required" });
|
||||
}
|
||||
|
||||
try {
|
||||
const created = await repo.create(userId, {
|
||||
name: name.trim(),
|
||||
color: isNonEmptyString(color) ? color : null,
|
||||
icon: isNonEmptyString(icon) ? icon : null,
|
||||
payload: JSON.stringify(payload),
|
||||
});
|
||||
res.json(serialize(created));
|
||||
} catch (err) {
|
||||
logError(ctx, "Failed to create workspace", err, {
|
||||
operation: "workspace_create_failed",
|
||||
});
|
||||
res.status(500).json({ error: "Failed to create workspace" });
|
||||
}
|
||||
});
|
||||
|
||||
/**
|
||||
* @openapi
|
||||
* /plugin-api/workspaces/last-session:
|
||||
* get:
|
||||
* summary: Fetch the auto-maintained "Last Session" workspace
|
||||
* description: Returns null if the current session has never been auto-saved yet.
|
||||
* tags:
|
||||
* - Workspaces
|
||||
* responses:
|
||||
* 200:
|
||||
* description: The Last Session workspace, or null.
|
||||
*/
|
||||
router.get("/last-session", async (req: Request, res: Response) => {
|
||||
const userId = actor(ctx);
|
||||
|
||||
try {
|
||||
const record = await repo.findLastSession(userId);
|
||||
res.json(record ? serialize(record) : null);
|
||||
} catch (err) {
|
||||
logError(ctx, "Failed to fetch last session workspace", err, {
|
||||
operation: "workspace_last_session_get_failed",
|
||||
});
|
||||
res.status(500).json({ error: "Failed to fetch last session workspace" });
|
||||
}
|
||||
});
|
||||
|
||||
/**
|
||||
* @openapi
|
||||
* /plugin-api/workspaces/last-session:
|
||||
* put:
|
||||
* summary: Upsert the auto-maintained "Last Session" workspace
|
||||
* description: Always overwrites the single Last Session row for the caller - never creates a second one. Called by the frontend's debounced auto-save effect.
|
||||
* tags:
|
||||
* - Workspaces
|
||||
* requestBody:
|
||||
* required: true
|
||||
* content:
|
||||
* application/json:
|
||||
* schema:
|
||||
* type: object
|
||||
* properties:
|
||||
* payload:
|
||||
* type: object
|
||||
* responses:
|
||||
* 200:
|
||||
* description: Last Session workspace saved.
|
||||
* 400:
|
||||
* description: Invalid request body.
|
||||
*/
|
||||
router.put("/last-session", async (req: Request, res: Response) => {
|
||||
const userId = actor(ctx);
|
||||
const { payload } = req.body ?? {};
|
||||
|
||||
if (!isValidPayload(payload)) {
|
||||
return res
|
||||
.status(400)
|
||||
.json({ error: "payload with a tabs array is required" });
|
||||
}
|
||||
|
||||
try {
|
||||
const saved = await repo.upsertLastSession(
|
||||
userId,
|
||||
JSON.stringify(payload),
|
||||
);
|
||||
res.json(serialize(saved));
|
||||
} catch (err) {
|
||||
logError(ctx, "Failed to save last session workspace", err, {
|
||||
operation: "workspace_last_session_save_failed",
|
||||
});
|
||||
res.status(500).json({ error: "Failed to save last session workspace" });
|
||||
}
|
||||
});
|
||||
|
||||
/**
|
||||
* @openapi
|
||||
* /plugin-api/workspaces/{id}:
|
||||
* patch:
|
||||
* summary: Rename or recolor a workspace
|
||||
* description: Does not accept a payload - use PUT /workspaces/{id}/content to overwrite a workspace's saved tab arrangement. Rejects the Last Session workspace.
|
||||
* tags:
|
||||
* - Workspaces
|
||||
* parameters:
|
||||
* - in: path
|
||||
* name: id
|
||||
* required: true
|
||||
* schema:
|
||||
* type: integer
|
||||
* responses:
|
||||
* 200:
|
||||
* description: Workspace updated.
|
||||
* 400:
|
||||
* description: Invalid request, or target is the Last Session workspace.
|
||||
* 404:
|
||||
* description: Workspace not found.
|
||||
*/
|
||||
router.patch("/:id", async (req: Request, res: Response) => {
|
||||
const userId = actor(ctx);
|
||||
const id = parseWorkspaceId(req.params.id);
|
||||
if (id === null) {
|
||||
return res.status(400).json({ error: "Invalid workspace ID" });
|
||||
}
|
||||
|
||||
const { name, color, icon } = req.body ?? {};
|
||||
if (name !== undefined && !isNonEmptyString(name)) {
|
||||
return res.status(400).json({ error: "Workspace name cannot be empty" });
|
||||
}
|
||||
|
||||
try {
|
||||
const updated = await repo.update(userId, id, {
|
||||
name: name !== undefined ? name.trim() : undefined,
|
||||
color,
|
||||
icon,
|
||||
});
|
||||
|
||||
if (!updated) {
|
||||
return res.status(404).json({ error: "Workspace not found" });
|
||||
}
|
||||
res.json(serialize(updated));
|
||||
} catch (err) {
|
||||
logError(ctx, "Failed to update workspace", err, {
|
||||
operation: "workspace_update_failed",
|
||||
workspaceId: id,
|
||||
});
|
||||
res.status(500).json({ error: "Failed to update workspace" });
|
||||
}
|
||||
});
|
||||
|
||||
/**
|
||||
* @openapi
|
||||
* /plugin-api/workspaces/{id}/content:
|
||||
* put:
|
||||
* summary: Overwrite a workspace's saved tab arrangement with a new payload
|
||||
* description: Used by "Update with current" in the Workspaces panel. Rejects the Last Session workspace.
|
||||
* tags:
|
||||
* - Workspaces
|
||||
* parameters:
|
||||
* - in: path
|
||||
* name: id
|
||||
* required: true
|
||||
* schema:
|
||||
* type: integer
|
||||
* requestBody:
|
||||
* required: true
|
||||
* content:
|
||||
* application/json:
|
||||
* schema:
|
||||
* type: object
|
||||
* properties:
|
||||
* payload:
|
||||
* type: object
|
||||
* responses:
|
||||
* 200:
|
||||
* description: Workspace content updated.
|
||||
* 400:
|
||||
* description: Invalid request body.
|
||||
* 404:
|
||||
* description: Workspace not found.
|
||||
*/
|
||||
router.put("/:id/content", async (req: Request, res: Response) => {
|
||||
const userId = actor(ctx);
|
||||
const id = parseWorkspaceId(req.params.id);
|
||||
if (id === null) {
|
||||
return res.status(400).json({ error: "Invalid workspace ID" });
|
||||
}
|
||||
|
||||
const { payload } = req.body ?? {};
|
||||
if (!isValidPayload(payload)) {
|
||||
return res
|
||||
.status(400)
|
||||
.json({ error: "payload with a tabs array is required" });
|
||||
}
|
||||
|
||||
try {
|
||||
const updated = await repo.updateContent(
|
||||
userId,
|
||||
id,
|
||||
JSON.stringify(payload),
|
||||
);
|
||||
|
||||
if (!updated) {
|
||||
return res.status(404).json({ error: "Workspace not found" });
|
||||
}
|
||||
res.json(serialize(updated));
|
||||
} catch (err) {
|
||||
logError(ctx, "Failed to update workspace content", err, {
|
||||
operation: "workspace_content_update_failed",
|
||||
workspaceId: id,
|
||||
});
|
||||
res.status(500).json({ error: "Failed to update workspace content" });
|
||||
}
|
||||
});
|
||||
|
||||
/**
|
||||
* @openapi
|
||||
* /plugin-api/workspaces/{id}/duplicate:
|
||||
* post:
|
||||
* summary: Duplicate a workspace's content and color/icon under a new name
|
||||
* tags:
|
||||
* - Workspaces
|
||||
* parameters:
|
||||
* - in: path
|
||||
* name: id
|
||||
* required: true
|
||||
* schema:
|
||||
* type: integer
|
||||
* requestBody:
|
||||
* required: true
|
||||
* content:
|
||||
* application/json:
|
||||
* schema:
|
||||
* type: object
|
||||
* properties:
|
||||
* name:
|
||||
* type: string
|
||||
* responses:
|
||||
* 200:
|
||||
* description: New workspace created from the duplicate.
|
||||
* 404:
|
||||
* description: Workspace not found.
|
||||
*/
|
||||
router.post("/:id/duplicate", async (req: Request, res: Response) => {
|
||||
const userId = actor(ctx);
|
||||
const id = parseWorkspaceId(req.params.id);
|
||||
const { name } = req.body ?? {};
|
||||
if (id === null) {
|
||||
return res.status(400).json({ error: "Invalid workspace ID" });
|
||||
}
|
||||
if (!isNonEmptyString(name)) {
|
||||
return res.status(400).json({ error: "Workspace name is required" });
|
||||
}
|
||||
|
||||
try {
|
||||
const source = await repo.findById(userId, id);
|
||||
if (!source) {
|
||||
return res.status(404).json({ error: "Workspace not found" });
|
||||
}
|
||||
|
||||
const created = await repo.create(userId, {
|
||||
name: name.trim(),
|
||||
color: source.color,
|
||||
icon: source.icon,
|
||||
payload: source.payload,
|
||||
});
|
||||
res.json(serialize(created));
|
||||
} catch (err) {
|
||||
logError(ctx, "Failed to duplicate workspace", err, {
|
||||
operation: "workspace_duplicate_failed",
|
||||
workspaceId: id,
|
||||
});
|
||||
res.status(500).json({ error: "Failed to duplicate workspace" });
|
||||
}
|
||||
});
|
||||
|
||||
/**
|
||||
* @openapi
|
||||
* /plugin-api/workspaces/{id}/set-default:
|
||||
* post:
|
||||
* summary: Mark a workspace as the restore-on-login default
|
||||
* description: Clears isDefault on any other workspace for the caller. Idempotent if the target is already the default. Rejects the Last Session workspace.
|
||||
* tags:
|
||||
* - Workspaces
|
||||
* parameters:
|
||||
* - in: path
|
||||
* name: id
|
||||
* required: true
|
||||
* schema:
|
||||
* type: integer
|
||||
* responses:
|
||||
* 200:
|
||||
* description: Workspace set as default.
|
||||
* 404:
|
||||
* description: Workspace not found.
|
||||
*/
|
||||
router.post("/:id/set-default", async (req: Request, res: Response) => {
|
||||
const userId = actor(ctx);
|
||||
const id = parseWorkspaceId(req.params.id);
|
||||
if (id === null) {
|
||||
return res.status(400).json({ error: "Invalid workspace ID" });
|
||||
}
|
||||
|
||||
try {
|
||||
const updated = await repo.setDefault(userId, id);
|
||||
if (!updated) {
|
||||
return res.status(404).json({ error: "Workspace not found" });
|
||||
}
|
||||
res.json(serialize(updated));
|
||||
} catch (err) {
|
||||
logError(ctx, "Failed to set default workspace", err, {
|
||||
operation: "workspace_set_default_failed",
|
||||
workspaceId: id,
|
||||
});
|
||||
res.status(500).json({ error: "Failed to set default workspace" });
|
||||
}
|
||||
});
|
||||
|
||||
/**
|
||||
* @openapi
|
||||
* /plugin-api/workspaces/{id}/unset-default:
|
||||
* post:
|
||||
* summary: Remove a workspace as the restore-on-login default
|
||||
* description: Idempotent if the target is not currently the default. Rejects the Last Session workspace.
|
||||
* tags:
|
||||
* - Workspaces
|
||||
* parameters:
|
||||
* - in: path
|
||||
* name: id
|
||||
* required: true
|
||||
* schema:
|
||||
* type: integer
|
||||
* responses:
|
||||
* 200:
|
||||
* description: Workspace unset as default.
|
||||
* 404:
|
||||
* description: Workspace not found.
|
||||
*/
|
||||
router.post("/:id/unset-default", async (req: Request, res: Response) => {
|
||||
const userId = actor(ctx);
|
||||
const id = parseWorkspaceId(req.params.id);
|
||||
if (id === null) {
|
||||
return res.status(400).json({ error: "Invalid workspace ID" });
|
||||
}
|
||||
|
||||
try {
|
||||
const updated = await repo.unsetDefault(userId, id);
|
||||
if (!updated) {
|
||||
return res.status(404).json({ error: "Workspace not found" });
|
||||
}
|
||||
res.json(serialize(updated));
|
||||
} catch (err) {
|
||||
logError(ctx, "Failed to unset default workspace", err, {
|
||||
operation: "workspace_unset_default_failed",
|
||||
workspaceId: id,
|
||||
});
|
||||
res.status(500).json({ error: "Failed to unset default workspace" });
|
||||
}
|
||||
});
|
||||
|
||||
/**
|
||||
* @openapi
|
||||
* /plugin-api/workspaces/{id}/apply:
|
||||
* post:
|
||||
* summary: Fetch a workspace to apply and mark it as just used
|
||||
* description: Returns the full workspace with its payload parsed, and touches lastUsedAt server-side so the caller does not need a second round trip.
|
||||
* tags:
|
||||
* - Workspaces
|
||||
* parameters:
|
||||
* - in: path
|
||||
* name: id
|
||||
* required: true
|
||||
* schema:
|
||||
* type: integer
|
||||
* responses:
|
||||
* 200:
|
||||
* description: The workspace to apply.
|
||||
* 404:
|
||||
* description: Workspace not found.
|
||||
*/
|
||||
router.post("/:id/apply", async (req: Request, res: Response) => {
|
||||
const userId = actor(ctx);
|
||||
const id = parseWorkspaceId(req.params.id);
|
||||
if (id === null) {
|
||||
return res.status(400).json({ error: "Invalid workspace ID" });
|
||||
}
|
||||
|
||||
try {
|
||||
const record = await repo.findById(userId, id);
|
||||
if (!record) {
|
||||
return res.status(404).json({ error: "Workspace not found" });
|
||||
}
|
||||
|
||||
await repo.touchLastUsed(userId, id);
|
||||
res.json(serialize(record));
|
||||
} catch (err) {
|
||||
logError(ctx, "Failed to apply workspace", err, {
|
||||
operation: "workspace_apply_failed",
|
||||
workspaceId: id,
|
||||
});
|
||||
res.status(500).json({ error: "Failed to apply workspace" });
|
||||
}
|
||||
});
|
||||
|
||||
/**
|
||||
* @openapi
|
||||
* /plugin-api/workspaces/{id}:
|
||||
* delete:
|
||||
* summary: Delete a workspace
|
||||
* description: Rejects the Last Session workspace, which is not user-deletable.
|
||||
* tags:
|
||||
* - Workspaces
|
||||
* parameters:
|
||||
* - in: path
|
||||
* name: id
|
||||
* required: true
|
||||
* schema:
|
||||
* type: integer
|
||||
* responses:
|
||||
* 200:
|
||||
* description: Workspace deleted.
|
||||
* 404:
|
||||
* description: Workspace not found.
|
||||
*/
|
||||
router.delete("/:id", async (req: Request, res: Response) => {
|
||||
const userId = actor(ctx);
|
||||
const id = parseWorkspaceId(req.params.id);
|
||||
if (id === null) {
|
||||
return res.status(400).json({ error: "Invalid workspace ID" });
|
||||
}
|
||||
|
||||
try {
|
||||
const deleted = await repo.delete(userId, id);
|
||||
if (!deleted) {
|
||||
return res.status(404).json({ error: "Workspace not found" });
|
||||
}
|
||||
res.json({ success: true });
|
||||
} catch (err) {
|
||||
logError(ctx, "Failed to delete workspace", err, {
|
||||
operation: "workspace_delete_failed",
|
||||
workspaceId: id,
|
||||
});
|
||||
res.status(500).json({ error: "Failed to delete workspace" });
|
||||
}
|
||||
});
|
||||
}
|
||||
@@ -0,0 +1,45 @@
|
||||
import {
|
||||
adoptLegacyTable,
|
||||
boolean,
|
||||
defineTable,
|
||||
id,
|
||||
refUser,
|
||||
text,
|
||||
timestamp,
|
||||
varchar,
|
||||
} from "@termix/plugin-sdk/db";
|
||||
|
||||
/**
|
||||
* Saved tab arrangements, one row per workspace plus one "last_session" row
|
||||
* per user that the frontend keeps current.
|
||||
*
|
||||
* Adopted from core's user_workspaces, so the column and index names are the
|
||||
* legacy ones: the rename carries the existing rows and index across.
|
||||
*/
|
||||
export const workspaces = adoptLegacyTable(
|
||||
"user_workspaces",
|
||||
defineTable(
|
||||
"workspaces",
|
||||
{
|
||||
id: id(),
|
||||
userId: refUser(),
|
||||
name: text().notNull(),
|
||||
color: text(),
|
||||
icon: text(),
|
||||
// "manual" | "last_session"
|
||||
kind: text().notNull().default("manual"),
|
||||
isDefault: boolean().notNull().default(false),
|
||||
// JSON: the shell layout from app.tabs.getLayout
|
||||
payload: text().notNull().default("{}"),
|
||||
syncId: varchar().unique(),
|
||||
createdAt: timestamp().notNull().defaultNow(),
|
||||
updatedAt: timestamp().notNull().defaultNow(),
|
||||
lastUsedAt: timestamp(),
|
||||
},
|
||||
{
|
||||
indexes: [{ name: "idx_user_workspaces_user_id", columns: ["userId"] }],
|
||||
},
|
||||
),
|
||||
);
|
||||
|
||||
export const tables = [workspaces];
|
||||
@@ -0,0 +1,656 @@
|
||||
import { useState, useEffect, useCallback, useMemo, useRef } from "react";
|
||||
import {
|
||||
usePluginApi,
|
||||
useTranslation,
|
||||
type ShellLayout,
|
||||
} from "@termix/plugin-sdk/frontend";
|
||||
import { toast } from "sonner";
|
||||
import {
|
||||
LayoutTemplate,
|
||||
Loader2,
|
||||
Plus,
|
||||
Save,
|
||||
Settings2,
|
||||
Star,
|
||||
Trash2,
|
||||
X,
|
||||
} from "lucide-react";
|
||||
import {
|
||||
Badge,
|
||||
Button,
|
||||
Dialog,
|
||||
DialogContent,
|
||||
DialogDescription,
|
||||
DialogFooter,
|
||||
DialogHeader,
|
||||
DialogTitle,
|
||||
FOLDER_COLORS,
|
||||
Input,
|
||||
} from "@termix/plugin-sdk/ui";
|
||||
import { createWorkspacesApi, type WorkspacesApi } from "./workspaces-api";
|
||||
import { errorMessage, type Workspace } from "./types";
|
||||
|
||||
type Translate = (key: string, options?: Record<string, unknown>) => string;
|
||||
|
||||
function timeAgo(isoStr: string, t: Translate): string {
|
||||
const ms = Date.now() - new Date(isoStr).getTime();
|
||||
if (!Number.isFinite(ms)) return "";
|
||||
const prefix = "newUi.sidebar.workspaces.timeAgo";
|
||||
const sec = Math.floor(ms / 1000);
|
||||
if (sec < 60) return t(`${prefix}.seconds`, { count: sec });
|
||||
const min = Math.floor(sec / 60);
|
||||
if (min < 60) return t(`${prefix}.minutes`, { count: min });
|
||||
const hr = Math.floor(min / 60);
|
||||
if (hr < 24) return t(`${prefix}.hours`, { count: hr });
|
||||
return t(`${prefix}.days`, { count: Math.floor(hr / 24) });
|
||||
}
|
||||
|
||||
function WorkspaceSaveDialog({
|
||||
open,
|
||||
onClose,
|
||||
onSave,
|
||||
}: {
|
||||
open: boolean;
|
||||
onClose: () => void;
|
||||
onSave: (name: string, color: string) => Promise<void>;
|
||||
}) {
|
||||
const { t } = useTranslation();
|
||||
const [name, setName] = useState("");
|
||||
const [color, setColor] = useState<string>(FOLDER_COLORS[0]);
|
||||
const [saving, setSaving] = useState(false);
|
||||
|
||||
useEffect(() => {
|
||||
if (!open) return;
|
||||
setName("");
|
||||
setColor(FOLDER_COLORS[0]);
|
||||
}, [open]);
|
||||
|
||||
async function handleSave() {
|
||||
if (!name.trim()) {
|
||||
toast.error(t("newUi.sidebar.workspaces.nameRequired"));
|
||||
return;
|
||||
}
|
||||
setSaving(true);
|
||||
try {
|
||||
await onSave(name.trim(), color);
|
||||
onClose();
|
||||
} finally {
|
||||
setSaving(false);
|
||||
}
|
||||
}
|
||||
|
||||
return (
|
||||
<Dialog open={open} onOpenChange={(next) => !next && onClose()}>
|
||||
<DialogContent className="sm:max-w-md">
|
||||
<DialogHeader>
|
||||
<DialogTitle>
|
||||
{t("newUi.sidebar.workspaces.saveCurrentTitle")}
|
||||
</DialogTitle>
|
||||
<DialogDescription>
|
||||
{t("newUi.sidebar.workspaces.saveCurrentDescription")}
|
||||
</DialogDescription>
|
||||
</DialogHeader>
|
||||
|
||||
<div className="flex flex-col gap-3">
|
||||
<div className="flex flex-col gap-1.5">
|
||||
<label className="text-xs text-muted-foreground">
|
||||
{t("newUi.sidebar.workspaces.nameLabel")}
|
||||
</label>
|
||||
<Input
|
||||
value={name}
|
||||
onChange={(e) => setName(e.target.value)}
|
||||
placeholder={t("newUi.sidebar.workspaces.namePlaceholder")}
|
||||
autoFocus
|
||||
onKeyDown={(e) => {
|
||||
if (e.key === "Enter") handleSave();
|
||||
}}
|
||||
/>
|
||||
</div>
|
||||
|
||||
<div className="flex flex-col gap-1.5">
|
||||
<label className="text-xs text-muted-foreground">
|
||||
{t("newUi.sidebar.workspaces.colorLabel")}
|
||||
</label>
|
||||
<div className="flex gap-1.5">
|
||||
{FOLDER_COLORS.map((c) => (
|
||||
<button
|
||||
key={c}
|
||||
type="button"
|
||||
onClick={() => setColor(c)}
|
||||
className={`size-6 transition-all ${
|
||||
color === c
|
||||
? "ring-2 ring-offset-2 ring-offset-background ring-white/50"
|
||||
: "opacity-75 hover:opacity-100"
|
||||
}`}
|
||||
style={{ backgroundColor: c }}
|
||||
aria-label={c}
|
||||
/>
|
||||
))}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<DialogFooter>
|
||||
<Button variant="outline" onClick={onClose}>
|
||||
{t("common.cancel")}
|
||||
</Button>
|
||||
<Button
|
||||
variant="outline"
|
||||
className="border-accent-brand/40 text-accent-brand hover:bg-accent-brand/10 hover:text-accent-brand"
|
||||
onClick={handleSave}
|
||||
disabled={saving}
|
||||
>
|
||||
{saving && <Loader2 className="size-3.5 mr-2 animate-spin" />}
|
||||
{t("common.save")}
|
||||
</Button>
|
||||
</DialogFooter>
|
||||
</DialogContent>
|
||||
</Dialog>
|
||||
);
|
||||
}
|
||||
|
||||
function WorkspaceRenameDialog({
|
||||
api,
|
||||
workspace,
|
||||
onClose,
|
||||
onSaved,
|
||||
}: {
|
||||
api: WorkspacesApi;
|
||||
workspace: Workspace | null;
|
||||
onClose: () => void;
|
||||
onSaved: () => void;
|
||||
}) {
|
||||
const { t } = useTranslation();
|
||||
const [name, setName] = useState("");
|
||||
const [color, setColor] = useState<string>(FOLDER_COLORS[0]);
|
||||
const [saving, setSaving] = useState(false);
|
||||
|
||||
useEffect(() => {
|
||||
if (!workspace) return;
|
||||
setName(workspace.name);
|
||||
setColor(workspace.color ?? FOLDER_COLORS[0]);
|
||||
}, [workspace]);
|
||||
|
||||
async function handleSave() {
|
||||
if (!workspace) return;
|
||||
if (!name.trim()) {
|
||||
toast.error(t("newUi.sidebar.workspaces.nameRequired"));
|
||||
return;
|
||||
}
|
||||
setSaving(true);
|
||||
try {
|
||||
await api.rename(workspace.id, { name: name.trim(), color });
|
||||
toast.success(t("newUi.sidebar.workspaces.workspaceUpdated"));
|
||||
onSaved();
|
||||
onClose();
|
||||
} catch (error) {
|
||||
const message = errorMessage(error);
|
||||
toast.error(message || t("newUi.sidebar.workspaces.updateFailed"));
|
||||
} finally {
|
||||
setSaving(false);
|
||||
}
|
||||
}
|
||||
|
||||
return (
|
||||
<Dialog open={!!workspace} onOpenChange={(next) => !next && onClose()}>
|
||||
<DialogContent className="sm:max-w-md">
|
||||
<DialogHeader>
|
||||
<DialogTitle>{t("newUi.sidebar.workspaces.rename")}</DialogTitle>
|
||||
</DialogHeader>
|
||||
|
||||
<div className="flex flex-col gap-3">
|
||||
<div className="flex flex-col gap-1.5">
|
||||
<label className="text-xs text-muted-foreground">
|
||||
{t("newUi.sidebar.workspaces.nameLabel")}
|
||||
</label>
|
||||
<Input
|
||||
value={name}
|
||||
onChange={(e) => setName(e.target.value)}
|
||||
autoFocus
|
||||
onKeyDown={(e) => {
|
||||
if (e.key === "Enter") handleSave();
|
||||
}}
|
||||
/>
|
||||
</div>
|
||||
|
||||
<div className="flex flex-col gap-1.5">
|
||||
<label className="text-xs text-muted-foreground">
|
||||
{t("newUi.sidebar.workspaces.colorLabel")}
|
||||
</label>
|
||||
<div className="flex gap-1.5">
|
||||
{FOLDER_COLORS.map((c) => (
|
||||
<button
|
||||
key={c}
|
||||
type="button"
|
||||
onClick={() => setColor(c)}
|
||||
className={`size-6 transition-all ${
|
||||
color === c
|
||||
? "ring-2 ring-offset-2 ring-offset-background ring-white/50"
|
||||
: "opacity-75 hover:opacity-100"
|
||||
}`}
|
||||
style={{ backgroundColor: c }}
|
||||
aria-label={c}
|
||||
/>
|
||||
))}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<DialogFooter>
|
||||
<Button variant="outline" onClick={onClose}>
|
||||
{t("common.cancel")}
|
||||
</Button>
|
||||
<Button
|
||||
variant="outline"
|
||||
className="border-accent-brand/40 text-accent-brand hover:bg-accent-brand/10 hover:text-accent-brand"
|
||||
onClick={handleSave}
|
||||
disabled={saving}
|
||||
>
|
||||
{saving && <Loader2 className="size-3.5 mr-2 animate-spin" />}
|
||||
{t("common.save")}
|
||||
</Button>
|
||||
</DialogFooter>
|
||||
</DialogContent>
|
||||
</Dialog>
|
||||
);
|
||||
}
|
||||
|
||||
function WorkspaceRow({
|
||||
workspace,
|
||||
isLastSession,
|
||||
onApply,
|
||||
onUpdateWithCurrent,
|
||||
onRename,
|
||||
onDuplicate,
|
||||
onDelete,
|
||||
onSetDefault,
|
||||
}: {
|
||||
workspace: Workspace;
|
||||
isLastSession: boolean;
|
||||
onApply: () => void;
|
||||
onUpdateWithCurrent: () => void;
|
||||
onRename: () => void;
|
||||
onDuplicate: () => void;
|
||||
onDelete: () => void;
|
||||
onSetDefault: () => void;
|
||||
}) {
|
||||
const { t } = useTranslation();
|
||||
|
||||
return (
|
||||
<div
|
||||
className="flex flex-col gap-1 border border-border p-2.5 cursor-pointer hover:bg-muted/40 group"
|
||||
onClick={onApply}
|
||||
>
|
||||
<div className="flex items-center gap-1.5 min-w-0">
|
||||
<span
|
||||
className="size-2.5 shrink-0"
|
||||
style={{ backgroundColor: workspace.color ?? "#6b7280" }}
|
||||
/>
|
||||
<span
|
||||
className={`text-xs font-semibold truncate min-w-0 ${isLastSession ? "italic text-muted-foreground" : ""}`}
|
||||
>
|
||||
{isLastSession
|
||||
? t("newUi.sidebar.workspaces.lastSession")
|
||||
: workspace.name}
|
||||
</span>
|
||||
{workspace.isDefault && (
|
||||
<Star className="size-3 shrink-0 fill-accent-brand text-accent-brand" />
|
||||
)}
|
||||
<Badge variant="secondary" className="shrink-0 ml-auto">
|
||||
{t("newUi.sidebar.workspaces.tabCount", {
|
||||
count: workspace.tabCount,
|
||||
})}
|
||||
</Badge>
|
||||
</div>
|
||||
|
||||
<span className="text-[11px] text-muted-foreground truncate pl-4">
|
||||
{isLastSession
|
||||
? t("newUi.sidebar.workspaces.lastSessionDescription")
|
||||
: workspace.lastUsedAt
|
||||
? t("newUi.sidebar.workspaces.lastUsed", {
|
||||
time: timeAgo(workspace.lastUsedAt, t),
|
||||
})
|
||||
: t("newUi.sidebar.workspaces.neverUsed")}
|
||||
</span>
|
||||
|
||||
{!isLastSession && (
|
||||
<div className="flex items-center justify-end gap-0.5 opacity-0 group-hover:opacity-100">
|
||||
<Button
|
||||
variant="ghost"
|
||||
size="icon-sm"
|
||||
title={
|
||||
workspace.isDefault
|
||||
? t("newUi.sidebar.workspaces.unsetDefault")
|
||||
: t("newUi.sidebar.workspaces.setDefault")
|
||||
}
|
||||
onClick={(e) => {
|
||||
e.stopPropagation();
|
||||
onSetDefault();
|
||||
}}
|
||||
>
|
||||
<Star
|
||||
className={`size-3.5 ${workspace.isDefault ? "fill-accent-brand text-accent-brand" : ""}`}
|
||||
/>
|
||||
</Button>
|
||||
<Button
|
||||
variant="ghost"
|
||||
size="icon-sm"
|
||||
title={t("newUi.sidebar.workspaces.updateWithCurrent")}
|
||||
onClick={(e) => {
|
||||
e.stopPropagation();
|
||||
onUpdateWithCurrent();
|
||||
}}
|
||||
>
|
||||
<Save className="size-3.5" />
|
||||
</Button>
|
||||
<Button
|
||||
variant="ghost"
|
||||
size="icon-sm"
|
||||
title={t("newUi.sidebar.workspaces.rename")}
|
||||
onClick={(e) => {
|
||||
e.stopPropagation();
|
||||
onRename();
|
||||
}}
|
||||
>
|
||||
<Settings2 className="size-3.5" />
|
||||
</Button>
|
||||
<Button
|
||||
variant="ghost"
|
||||
size="icon-sm"
|
||||
title={t("newUi.sidebar.workspaces.duplicate")}
|
||||
onClick={(e) => {
|
||||
e.stopPropagation();
|
||||
onDuplicate();
|
||||
}}
|
||||
>
|
||||
<Plus className="size-3.5" />
|
||||
</Button>
|
||||
<Button
|
||||
variant="ghost"
|
||||
size="icon-sm"
|
||||
className="hover:text-destructive"
|
||||
title={t("newUi.sidebar.workspaces.deleteWorkspaceTitle")}
|
||||
onClick={(e) => {
|
||||
e.stopPropagation();
|
||||
onDelete();
|
||||
}}
|
||||
>
|
||||
<Trash2 className="size-3.5" />
|
||||
</Button>
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
export function WorkspacesPanel({
|
||||
active,
|
||||
currentPayload,
|
||||
onApplyWorkspace,
|
||||
}: {
|
||||
active?: boolean;
|
||||
currentPayload: () => ShellLayout | null;
|
||||
onApplyWorkspace: (workspace: Workspace) => void;
|
||||
}) {
|
||||
const { t } = useTranslation();
|
||||
const pluginApi = usePluginApi();
|
||||
const api = useMemo(() => createWorkspacesApi(pluginApi), [pluginApi]);
|
||||
const [workspaces, setWorkspaces] = useState<Workspace[]>([]);
|
||||
const [loading, setLoading] = useState(true);
|
||||
const [saveDialogOpen, setSaveDialogOpen] = useState(false);
|
||||
const [renameTarget, setRenameTarget] = useState<Workspace | null>(null);
|
||||
const [deleteTarget, setDeleteTarget] = useState<Workspace | null>(null);
|
||||
const [applyTarget, setApplyTarget] = useState<Workspace | null>(null);
|
||||
const hasLoadedRef = useRef(false);
|
||||
|
||||
const loadWorkspaces = useCallback(async () => {
|
||||
try {
|
||||
const data = await api.list();
|
||||
setWorkspaces(data);
|
||||
} catch (error) {
|
||||
const message = errorMessage(error);
|
||||
toast.error(message || t("newUi.sidebar.workspaces.loadFailed"));
|
||||
}
|
||||
}, [api, t]);
|
||||
|
||||
useEffect(() => {
|
||||
if (!active || hasLoadedRef.current) return;
|
||||
hasLoadedRef.current = true;
|
||||
setLoading(true);
|
||||
loadWorkspaces().finally(() => setLoading(false));
|
||||
}, [active, loadWorkspaces]);
|
||||
|
||||
async function handleSaveNew(name: string, color: string) {
|
||||
try {
|
||||
const payload = currentPayload();
|
||||
if (!payload) return;
|
||||
await api.create({ name, color, payload });
|
||||
toast.success(t("newUi.sidebar.workspaces.workspaceCreated"));
|
||||
loadWorkspaces();
|
||||
} catch (error) {
|
||||
const message = errorMessage(error);
|
||||
toast.error(message || t("newUi.sidebar.workspaces.saveFailed"));
|
||||
throw error;
|
||||
}
|
||||
}
|
||||
|
||||
async function handleUpdateWithCurrent(workspace: Workspace) {
|
||||
try {
|
||||
const payload = currentPayload();
|
||||
if (!payload) return;
|
||||
await api.updateContent(workspace.id, payload);
|
||||
toast.success(t("newUi.sidebar.workspaces.workspaceUpdated"));
|
||||
loadWorkspaces();
|
||||
} catch (error) {
|
||||
const message = errorMessage(error);
|
||||
toast.error(message || t("newUi.sidebar.workspaces.updateFailed"));
|
||||
}
|
||||
}
|
||||
|
||||
async function handleDuplicate(workspace: Workspace) {
|
||||
try {
|
||||
await api.duplicate(
|
||||
workspace.id,
|
||||
t("newUi.sidebar.workspaces.duplicateNameSuffix", {
|
||||
name: workspace.name,
|
||||
}),
|
||||
);
|
||||
toast.success(t("newUi.sidebar.workspaces.workspaceDuplicated"));
|
||||
loadWorkspaces();
|
||||
} catch (error) {
|
||||
const message = errorMessage(error);
|
||||
toast.error(message || t("newUi.sidebar.workspaces.duplicateFailed"));
|
||||
}
|
||||
}
|
||||
|
||||
async function handleToggleDefault(workspace: Workspace) {
|
||||
try {
|
||||
if (workspace.isDefault) {
|
||||
await api.unsetDefault(workspace.id);
|
||||
} else {
|
||||
await api.setDefault(workspace.id);
|
||||
}
|
||||
loadWorkspaces();
|
||||
} catch (error) {
|
||||
const message = errorMessage(error);
|
||||
toast.error(message || t("newUi.sidebar.workspaces.updateFailed"));
|
||||
}
|
||||
}
|
||||
|
||||
async function handleDelete() {
|
||||
if (!deleteTarget) return;
|
||||
try {
|
||||
await api.remove(deleteTarget.id);
|
||||
toast.success(t("newUi.sidebar.workspaces.workspaceDeleted"));
|
||||
setDeleteTarget(null);
|
||||
loadWorkspaces();
|
||||
} catch (error) {
|
||||
const message = errorMessage(error);
|
||||
toast.error(message || t("newUi.sidebar.workspaces.deleteFailed"));
|
||||
}
|
||||
}
|
||||
|
||||
function handleApplyClick(workspace: Workspace) {
|
||||
setApplyTarget(workspace);
|
||||
}
|
||||
|
||||
function confirmApply() {
|
||||
if (!applyTarget) return;
|
||||
onApplyWorkspace(applyTarget);
|
||||
setApplyTarget(null);
|
||||
}
|
||||
|
||||
const manualWorkspaces = workspaces.filter((w) => w.kind === "manual");
|
||||
const lastSession = workspaces.find((w) => w.kind === "last_session");
|
||||
|
||||
return (
|
||||
<div className="flex flex-col flex-1 min-h-0">
|
||||
<div className="flex items-center gap-2 p-3 border-b border-border shrink-0">
|
||||
<LayoutTemplate className="size-4 text-muted-foreground" />
|
||||
<div className="flex min-w-0 flex-1 flex-col">
|
||||
<span className="truncate text-sm font-semibold">
|
||||
{t("newUi.sidebar.workspaces.title")}
|
||||
</span>
|
||||
<a
|
||||
href="https://docs.termix.site/features/workspaces"
|
||||
target="_blank"
|
||||
rel="noreferrer"
|
||||
className="w-fit text-[10px] text-accent-brand hover:underline"
|
||||
>
|
||||
{t("hosts.docsLink")}
|
||||
</a>
|
||||
</div>
|
||||
<Button
|
||||
variant="outline"
|
||||
size="sm"
|
||||
className="shrink-0 border-accent-brand/40 text-accent-brand hover:bg-accent-brand/10 hover:text-accent-brand"
|
||||
onClick={() => setSaveDialogOpen(true)}
|
||||
>
|
||||
<Plus className="size-3.5 mr-1.5" />
|
||||
{t("newUi.sidebar.workspaces.saveCurrent")}
|
||||
</Button>
|
||||
</div>
|
||||
|
||||
<div className="flex-1 min-h-0 overflow-y-auto p-3">
|
||||
{loading ? (
|
||||
<div className="flex items-center justify-center py-8 text-muted-foreground">
|
||||
<Loader2 className="size-4 animate-spin" />
|
||||
</div>
|
||||
) : manualWorkspaces.length === 0 && !lastSession ? (
|
||||
<div className="text-xs text-muted-foreground text-center py-8">
|
||||
{t("newUi.sidebar.workspaces.noWorkspaces")}
|
||||
</div>
|
||||
) : (
|
||||
<div className="flex flex-col gap-1.5">
|
||||
{lastSession && (
|
||||
<WorkspaceRow
|
||||
key={lastSession.id}
|
||||
workspace={lastSession}
|
||||
isLastSession
|
||||
onApply={() => handleApplyClick(lastSession)}
|
||||
onUpdateWithCurrent={() => {}}
|
||||
onRename={() => {}}
|
||||
onDuplicate={() => {}}
|
||||
onDelete={() => {}}
|
||||
onSetDefault={() => {}}
|
||||
/>
|
||||
)}
|
||||
{manualWorkspaces.map((workspace) => (
|
||||
<WorkspaceRow
|
||||
key={workspace.id}
|
||||
workspace={workspace}
|
||||
isLastSession={false}
|
||||
onApply={() => handleApplyClick(workspace)}
|
||||
onUpdateWithCurrent={() => {
|
||||
if (
|
||||
window.confirm(
|
||||
t("newUi.sidebar.workspaces.updateWithCurrentConfirm", {
|
||||
name: workspace.name,
|
||||
}),
|
||||
)
|
||||
) {
|
||||
handleUpdateWithCurrent(workspace);
|
||||
}
|
||||
}}
|
||||
onRename={() => setRenameTarget(workspace)}
|
||||
onDuplicate={() => handleDuplicate(workspace)}
|
||||
onDelete={() => setDeleteTarget(workspace)}
|
||||
onSetDefault={() => handleToggleDefault(workspace)}
|
||||
/>
|
||||
))}
|
||||
</div>
|
||||
)}
|
||||
</div>
|
||||
|
||||
<WorkspaceSaveDialog
|
||||
open={saveDialogOpen}
|
||||
onClose={() => setSaveDialogOpen(false)}
|
||||
onSave={handleSaveNew}
|
||||
/>
|
||||
|
||||
<WorkspaceRenameDialog
|
||||
api={api}
|
||||
workspace={renameTarget}
|
||||
onClose={() => setRenameTarget(null)}
|
||||
onSaved={loadWorkspaces}
|
||||
/>
|
||||
|
||||
<Dialog
|
||||
open={!!deleteTarget}
|
||||
onOpenChange={(next) => !next && setDeleteTarget(null)}
|
||||
>
|
||||
<DialogContent className="sm:max-w-sm">
|
||||
<DialogHeader>
|
||||
<DialogTitle>
|
||||
{t("newUi.sidebar.workspaces.deleteWorkspaceTitle")}
|
||||
</DialogTitle>
|
||||
<DialogDescription>
|
||||
{t("newUi.sidebar.workspaces.deleteWorkspaceDescription", {
|
||||
name: deleteTarget?.name,
|
||||
})}
|
||||
</DialogDescription>
|
||||
</DialogHeader>
|
||||
<DialogFooter>
|
||||
<Button variant="outline" onClick={() => setDeleteTarget(null)}>
|
||||
{t("common.cancel")}
|
||||
</Button>
|
||||
<Button variant="destructive" onClick={handleDelete}>
|
||||
<X className="size-3.5 mr-2" />
|
||||
{t("common.delete")}
|
||||
</Button>
|
||||
</DialogFooter>
|
||||
</DialogContent>
|
||||
</Dialog>
|
||||
|
||||
<Dialog
|
||||
open={!!applyTarget}
|
||||
onOpenChange={(next) => !next && setApplyTarget(null)}
|
||||
>
|
||||
<DialogContent className="sm:max-w-sm">
|
||||
<DialogHeader>
|
||||
<DialogTitle>
|
||||
{t("newUi.sidebar.workspaces.applyConfirmTitle")}
|
||||
</DialogTitle>
|
||||
<DialogDescription>
|
||||
{t("newUi.sidebar.workspaces.applyConfirmDescription", {
|
||||
name: applyTarget?.name,
|
||||
})}
|
||||
</DialogDescription>
|
||||
</DialogHeader>
|
||||
<DialogFooter>
|
||||
<Button variant="outline" onClick={() => setApplyTarget(null)}>
|
||||
{t("common.cancel")}
|
||||
</Button>
|
||||
<Button
|
||||
variant="outline"
|
||||
className="border-accent-brand/40 text-accent-brand hover:bg-accent-brand/10 hover:text-accent-brand"
|
||||
onClick={confirmApply}
|
||||
>
|
||||
{t("newUi.sidebar.workspaces.applyConfirmButton")}
|
||||
</Button>
|
||||
</DialogFooter>
|
||||
</DialogContent>
|
||||
</Dialog>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
@@ -0,0 +1,96 @@
|
||||
import { LayoutTemplate } from "lucide-react";
|
||||
import { toast } from "sonner";
|
||||
import type { PanelProps, TermixApp } from "@termix/plugin-sdk/frontend";
|
||||
import { WorkspacesPanel } from "./WorkspacesPanel";
|
||||
import { createWorkspacesApi } from "./workspaces-api";
|
||||
import type { Workspace } from "./types";
|
||||
|
||||
const LAST_SESSION_DELAY_MS = 2000;
|
||||
|
||||
export function activate(app: TermixApp): void {
|
||||
const api = createWorkspacesApi(app.api);
|
||||
|
||||
const applyWorkspace = async (workspace: Workspace) => {
|
||||
const { skipped } = await app.tabs.applyLayout(workspace.payload, {
|
||||
name: workspace.name,
|
||||
});
|
||||
if (skipped.length > 0) {
|
||||
toast.warning(
|
||||
app.t("newUi.sidebar.workspaces.tabsSkipped", {
|
||||
count: skipped.length,
|
||||
names: skipped.join(", "),
|
||||
}),
|
||||
);
|
||||
}
|
||||
api.apply(workspace.id).catch(() => {});
|
||||
};
|
||||
|
||||
function Panel({ active }: PanelProps) {
|
||||
return (
|
||||
<div className="flex-1 min-h-0 overflow-y-auto">
|
||||
<WorkspacesPanel
|
||||
active={active}
|
||||
currentPayload={() => app.tabs.getLayout()}
|
||||
onApplyWorkspace={(workspace) => void applyWorkspace(workspace)}
|
||||
/>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
app.registerRailItem({
|
||||
id: "workspaces",
|
||||
icon: LayoutTemplate,
|
||||
titleKey: "nav.workspaces",
|
||||
after: "macros",
|
||||
permission: "use",
|
||||
});
|
||||
app.registerPanel("workspaces", Panel);
|
||||
|
||||
// Without workspaces.use the restore and the autosave below would only
|
||||
// collect 403s. The lookup is cached, so asking each time is cheap and a
|
||||
// revoke takes effect.
|
||||
const allowed = () => app.hasPermission("use");
|
||||
|
||||
// After login, a default workspace applies unless the session already
|
||||
// brought tabs back, which is the more precise restore.
|
||||
app.tabs.onReady(() => {
|
||||
const layout = app.tabs.getLayout() as { tabs?: unknown[] } | null;
|
||||
if (layout && (layout.tabs?.length ?? 0) > 0) return;
|
||||
void allowed().then(async (ok) => {
|
||||
if (!ok) return;
|
||||
try {
|
||||
const workspaces = await api.list();
|
||||
const preferred = workspaces.find(
|
||||
(workspace) => workspace.kind === "manual" && workspace.isDefault,
|
||||
);
|
||||
if (preferred) await applyWorkspace(preferred);
|
||||
} catch {
|
||||
// A failed restore leaves the empty session as it is.
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
// Keeps an implicit "last session" snapshot current, so an arrangement can
|
||||
// always be recovered even if it was never saved.
|
||||
let timer: ReturnType<typeof setTimeout> | null = null;
|
||||
app.tabs.onChange(() => {
|
||||
if (timer) clearTimeout(timer);
|
||||
timer = setTimeout(() => {
|
||||
const layout = app.tabs.getLayout();
|
||||
if (!layout) return;
|
||||
void allowed().then((ok) => {
|
||||
if (ok) api.saveLastSession(layout).catch(() => {});
|
||||
});
|
||||
}, LAST_SESSION_DELAY_MS);
|
||||
});
|
||||
app.onDispose(() => {
|
||||
if (timer) clearTimeout(timer);
|
||||
});
|
||||
|
||||
app.registerSlotContribution("onboarding.workflow", {
|
||||
actionId: "workspaces.tip",
|
||||
titleKey: "onboarding.workflow_workspaces",
|
||||
descriptionKey: "onboarding.workflow_workspaces_desc",
|
||||
icon: LayoutTemplate,
|
||||
});
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
import type { ShellLayout } from "@termix/plugin-sdk/frontend";
|
||||
|
||||
export type WorkspaceKind = "manual" | "last_session";
|
||||
|
||||
/** A saved workspace as the routes return it. */
|
||||
export interface Workspace {
|
||||
id: number;
|
||||
userId: string;
|
||||
name: string;
|
||||
color: string | null;
|
||||
icon: string | null;
|
||||
kind: WorkspaceKind;
|
||||
isDefault: boolean;
|
||||
/** Whatever app.tabs.getLayout returned when it was saved. */
|
||||
payload: ShellLayout & { tabs?: unknown[] };
|
||||
syncId: string | null;
|
||||
createdAt: string;
|
||||
updatedAt: string;
|
||||
lastUsedAt: string | null;
|
||||
tabCount: number;
|
||||
}
|
||||
|
||||
/** The server's error text when it sent one, else the error's own message. */
|
||||
export function errorMessage(error: unknown): string {
|
||||
const data = (error as { response?: { data?: { error?: unknown } } })
|
||||
?.response?.data;
|
||||
if (typeof data?.error === "string") return data.error;
|
||||
return "";
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
import type { PluginApiClient, ShellLayout } from "@termix/plugin-sdk/frontend";
|
||||
import type { Workspace } from "./types";
|
||||
|
||||
/**
|
||||
* The workspace routes, through the plugin's own client. Paths are relative
|
||||
* to /plugin-api/workspaces/, which the client already points at.
|
||||
*/
|
||||
export function createWorkspacesApi(api: PluginApiClient) {
|
||||
const data = async <T>(request: Promise<{ data: T }>) => (await request).data;
|
||||
|
||||
return {
|
||||
list: () => data(api.get<Workspace[]>("/")),
|
||||
create: (body: {
|
||||
name: string;
|
||||
color?: string | null;
|
||||
icon?: string | null;
|
||||
payload: ShellLayout;
|
||||
}) => data(api.post<Workspace>("/", body)),
|
||||
rename: (
|
||||
id: number,
|
||||
body: { name?: string; color?: string | null; icon?: string | null },
|
||||
) => data(api.patch<Workspace>(`/${id}`, body)),
|
||||
updateContent: (id: number, payload: ShellLayout) =>
|
||||
data(api.put<Workspace>(`/${id}/content`, { payload })),
|
||||
remove: (id: number) => data(api.delete<{ success: boolean }>(`/${id}`)),
|
||||
duplicate: (id: number, name: string) =>
|
||||
data(api.post<Workspace>(`/${id}/duplicate`, { name })),
|
||||
setDefault: (id: number) => data(api.post<Workspace>(`/${id}/set-default`)),
|
||||
unsetDefault: (id: number) =>
|
||||
data(api.post<Workspace>(`/${id}/unset-default`)),
|
||||
apply: (id: number) => data(api.post<Workspace>(`/${id}/apply`)),
|
||||
getLastSession: () => data(api.get<Workspace | null>("/last-session")),
|
||||
saveLastSession: (payload: ShellLayout) =>
|
||||
data(api.put<Workspace>("/last-session", { payload })),
|
||||
};
|
||||
}
|
||||
|
||||
export type WorkspacesApi = ReturnType<typeof createWorkspacesApi>;
|
||||
@@ -0,0 +1,76 @@
|
||||
import { afterEach, describe, expect, it } from "vitest";
|
||||
import express from "express";
|
||||
import {
|
||||
createMockCtx,
|
||||
createTestDb,
|
||||
type TestDb,
|
||||
} from "@termix/plugin-sdk/testing";
|
||||
import { PluginCapabilityError } from "@termix/plugin-sdk/backend";
|
||||
import { activate } from "../../src/backend/index.js";
|
||||
import { manifest, pluginDir, startServer, type TestServer } from "./helpers";
|
||||
|
||||
let db: TestDb | null = null;
|
||||
let server: TestServer | null = null;
|
||||
|
||||
afterEach(async () => {
|
||||
db?.close();
|
||||
db = null;
|
||||
await server?.close();
|
||||
server = null;
|
||||
});
|
||||
|
||||
describe("workspaces activate", () => {
|
||||
it("registers a sync entity that leaves the per-install last session out", async () => {
|
||||
server = await startServer();
|
||||
const [entity] = server.mock.syncEntities;
|
||||
expect(entity.type).toBe("workspaces");
|
||||
expect(entity.shouldSync?.({ kind: "manual" })).toBe(true);
|
||||
expect(entity.shouldSync?.({ kind: "last_session" })).toBe(false);
|
||||
});
|
||||
|
||||
it("offers the user's manual workspaces as a service", async () => {
|
||||
server = await startServer();
|
||||
await server.request("POST", "/", {
|
||||
body: { name: "Prod", payload: { version: 1, tabs: [] } },
|
||||
});
|
||||
await server.request("PUT", "/last-session", {
|
||||
body: { payload: { version: 1, tabs: [] } },
|
||||
});
|
||||
|
||||
const service = server.mock.services.get("workspaces.saved") as {
|
||||
list: () => Promise<unknown>;
|
||||
};
|
||||
const listed = await server.mock.actAs("user-1", () => service.list());
|
||||
expect(listed).toEqual([
|
||||
{ id: expect.any(Number), name: "Prod", isDefault: false },
|
||||
]);
|
||||
});
|
||||
|
||||
it("fails closed without db:own", async () => {
|
||||
db = await createTestDb(pluginDir);
|
||||
const mock = createMockCtx({
|
||||
pluginId: manifest.id,
|
||||
manifest,
|
||||
capabilities: ["network:serve", "ui:surface"],
|
||||
db: db.database,
|
||||
router: () => express.Router(),
|
||||
});
|
||||
await expect(activate(mock.ctx)).rejects.toBeInstanceOf(
|
||||
PluginCapabilityError,
|
||||
);
|
||||
});
|
||||
|
||||
it("fails closed without network:serve", async () => {
|
||||
db = await createTestDb(pluginDir);
|
||||
const mock = createMockCtx({
|
||||
pluginId: manifest.id,
|
||||
manifest,
|
||||
capabilities: ["db:own", "ui:surface"],
|
||||
db: db.database,
|
||||
router: () => express.Router(),
|
||||
});
|
||||
await expect(activate(mock.ctx)).rejects.toBeInstanceOf(
|
||||
PluginCapabilityError,
|
||||
);
|
||||
});
|
||||
});
|
||||
@@ -0,0 +1,103 @@
|
||||
import http from "node:http";
|
||||
import type { AddressInfo } from "node:net";
|
||||
import { fileURLToPath } from "node:url";
|
||||
import express, { type Router } from "express";
|
||||
import {
|
||||
createMockCtx,
|
||||
createTestDb,
|
||||
type MockPluginContext,
|
||||
type TestDb,
|
||||
} from "@termix/plugin-sdk/testing";
|
||||
import type { PluginManifest } from "@termix/plugin-sdk/manifest";
|
||||
import manifestJson from "../../manifest.json";
|
||||
|
||||
export const pluginDir = fileURLToPath(new URL("../..", import.meta.url));
|
||||
export const manifest = manifestJson as unknown as PluginManifest;
|
||||
|
||||
export interface TestServer {
|
||||
db: TestDb;
|
||||
mock: MockPluginContext;
|
||||
request: (
|
||||
method: string,
|
||||
path: string,
|
||||
options?: { user?: string; body?: unknown },
|
||||
// Route bodies vary per test; asserting on them is the point.
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
) => Promise<{ status: number; body: any }>;
|
||||
close: () => Promise<void>;
|
||||
}
|
||||
|
||||
/**
|
||||
* The plugin activated against a real in-memory database, its router mounted
|
||||
* on an express app the way core mounts it: JSON parsed, the acting user set
|
||||
* from the request, everything else left to the plugin.
|
||||
*/
|
||||
export async function startServer(
|
||||
options: { permissions?: string[]; users?: string[] } = {},
|
||||
): Promise<TestServer> {
|
||||
const db = await createTestDb(pluginDir);
|
||||
for (const user of options.users ?? ["user-1", "user-2"]) {
|
||||
db.sqlite
|
||||
.prepare("INSERT INTO users (id, username) VALUES (?, ?)")
|
||||
.run(user, user);
|
||||
}
|
||||
|
||||
let router: Router | null = null;
|
||||
const mock = createMockCtx({
|
||||
pluginId: manifest.id,
|
||||
manifest,
|
||||
capabilities: manifest.capabilities,
|
||||
db: db.database,
|
||||
router: () => (router = express.Router()),
|
||||
permissions: options.permissions ?? ["workspaces.use"],
|
||||
});
|
||||
|
||||
const { activate } = await import("../../src/backend/index.js");
|
||||
await activate(mock.ctx);
|
||||
|
||||
const app = express();
|
||||
app.use(express.json());
|
||||
app.use((req, _res, next) => {
|
||||
mock.setActor(req.header("x-test-user") ?? undefined);
|
||||
next();
|
||||
});
|
||||
app.use((req, res, next) => router!(req, res, next));
|
||||
|
||||
const server = http.createServer(app);
|
||||
await new Promise<void>((resolve) => server.listen(0, resolve));
|
||||
const { port } = server.address() as AddressInfo;
|
||||
|
||||
return {
|
||||
db,
|
||||
mock,
|
||||
async request(method, path, { user = "user-1", body: given } = {}) {
|
||||
const body = method === "GET" ? undefined : given;
|
||||
const response = await fetch(`http://127.0.0.1:${port}${path}`, {
|
||||
method,
|
||||
headers: {
|
||||
"x-test-user": user,
|
||||
...(body !== undefined ? { "content-type": "application/json" } : {}),
|
||||
},
|
||||
body: body !== undefined ? JSON.stringify(body) : undefined,
|
||||
});
|
||||
const text = await response.text();
|
||||
return { status: response.status, body: text ? JSON.parse(text) : null };
|
||||
},
|
||||
async close() {
|
||||
await new Promise<void>((resolve) => server.close(() => resolve()));
|
||||
db.close();
|
||||
},
|
||||
};
|
||||
}
|
||||
|
||||
export const layout = (
|
||||
tabs: unknown[] = [{ slotId: "a", type: "terminal" }],
|
||||
) => ({
|
||||
version: 1,
|
||||
tabs,
|
||||
activeSlotId: null,
|
||||
splitMode: "none",
|
||||
paneTabIds: [],
|
||||
rowSizes: [],
|
||||
rowColSizes: [],
|
||||
});
|
||||
@@ -0,0 +1,141 @@
|
||||
import { afterEach, describe, expect, it } from "vitest";
|
||||
import { createTestDb, type TestDb } from "@termix/plugin-sdk/testing";
|
||||
import { pluginDir } from "./helpers";
|
||||
|
||||
// user_workspaces as core's SQLite bootstrap created it before 2.9.0, plus the
|
||||
// index performance-indexes.ts added.
|
||||
const LEGACY_DDL = `
|
||||
CREATE TABLE user_workspaces (
|
||||
id INTEGER PRIMARY KEY AUTOINCREMENT,
|
||||
user_id TEXT NOT NULL REFERENCES users(id) ON DELETE CASCADE,
|
||||
name TEXT NOT NULL,
|
||||
color TEXT,
|
||||
icon TEXT,
|
||||
kind TEXT NOT NULL DEFAULT 'manual',
|
||||
is_default INTEGER NOT NULL DEFAULT 0,
|
||||
payload TEXT NOT NULL DEFAULT '{}',
|
||||
sync_id TEXT UNIQUE,
|
||||
created_at TEXT NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
updated_at TEXT NOT NULL DEFAULT CURRENT_TIMESTAMP,
|
||||
last_used_at TEXT
|
||||
);
|
||||
CREATE INDEX idx_user_workspaces_user_id ON user_workspaces (user_id);
|
||||
`;
|
||||
|
||||
let db: TestDb | null = null;
|
||||
|
||||
afterEach(() => {
|
||||
db?.close();
|
||||
db = null;
|
||||
});
|
||||
|
||||
const tableExists = (name: string) =>
|
||||
!!db!.sqlite
|
||||
.prepare("SELECT name FROM sqlite_master WHERE type = 'table' AND name = ?")
|
||||
.get(name);
|
||||
|
||||
const indexOn = (table: string) =>
|
||||
(
|
||||
db!.sqlite
|
||||
.prepare(
|
||||
"SELECT name FROM sqlite_master WHERE type = 'index' AND tbl_name = ? AND name NOT LIKE 'sqlite_%'",
|
||||
)
|
||||
.all(table) as { name: string }[]
|
||||
).map((row) => row.name);
|
||||
|
||||
describe("adopting user_workspaces", () => {
|
||||
it("keeps every existing row when the legacy table is there", async () => {
|
||||
db = await createTestDb(pluginDir, {
|
||||
before: (sqlite) => {
|
||||
sqlite.exec("INSERT INTO users (id) VALUES ('user-1'), ('user-2')");
|
||||
sqlite.exec(LEGACY_DDL);
|
||||
sqlite
|
||||
.prepare(
|
||||
"INSERT INTO user_workspaces (user_id, name, kind, is_default, payload, sync_id, last_used_at) VALUES (?, ?, ?, ?, ?, ?, ?)",
|
||||
)
|
||||
.run(
|
||||
"user-1",
|
||||
"Prod",
|
||||
"manual",
|
||||
1,
|
||||
'{"version":1,"tabs":[{"type":"terminal"}]}',
|
||||
"sync-a",
|
||||
"2026-01-01T00:00:00.000Z",
|
||||
);
|
||||
sqlite
|
||||
.prepare(
|
||||
"INSERT INTO user_workspaces (user_id, name, kind, payload, sync_id) VALUES (?, ?, ?, ?, ?)",
|
||||
)
|
||||
.run("user-2", "Last Session", "last_session", "{}", "sync-b");
|
||||
},
|
||||
});
|
||||
|
||||
expect(db.applied).toEqual(["0001_adopt_user_workspaces"]);
|
||||
expect(tableExists("user_workspaces")).toBe(false);
|
||||
expect(tableExists("p_workspaces_workspaces")).toBe(true);
|
||||
|
||||
const rows = db.sqlite
|
||||
.prepare(
|
||||
"SELECT user_id, name, kind, is_default, payload, sync_id, last_used_at FROM p_workspaces_workspaces ORDER BY id",
|
||||
)
|
||||
.all();
|
||||
expect(rows).toEqual([
|
||||
{
|
||||
user_id: "user-1",
|
||||
name: "Prod",
|
||||
kind: "manual",
|
||||
is_default: 1,
|
||||
payload: '{"version":1,"tabs":[{"type":"terminal"}]}',
|
||||
sync_id: "sync-a",
|
||||
last_used_at: "2026-01-01T00:00:00.000Z",
|
||||
},
|
||||
{
|
||||
user_id: "user-2",
|
||||
name: "Last Session",
|
||||
kind: "last_session",
|
||||
is_default: 0,
|
||||
payload: "{}",
|
||||
sync_id: "sync-b",
|
||||
last_used_at: null,
|
||||
},
|
||||
]);
|
||||
expect(indexOn("p_workspaces_workspaces")).toEqual([
|
||||
"idx_user_workspaces_user_id",
|
||||
]);
|
||||
});
|
||||
|
||||
it("creates the table fresh when there is no legacy one", async () => {
|
||||
db = await createTestDb(pluginDir);
|
||||
|
||||
expect(tableExists("user_workspaces")).toBe(false);
|
||||
expect(tableExists("p_workspaces_workspaces")).toBe(true);
|
||||
expect(indexOn("p_workspaces_workspaces")).toEqual([
|
||||
"idx_user_workspaces_user_id",
|
||||
]);
|
||||
expect(
|
||||
db.sqlite.prepare("SELECT * FROM p_workspaces_workspaces").all(),
|
||||
).toEqual([]);
|
||||
});
|
||||
|
||||
it("removes a user's workspaces when the user is deleted", async () => {
|
||||
db = await createTestDb(pluginDir, {
|
||||
before: (sqlite) => {
|
||||
sqlite.exec("INSERT INTO users (id) VALUES ('user-1'), ('user-2')");
|
||||
},
|
||||
});
|
||||
const insert = db.sqlite.prepare(
|
||||
"INSERT INTO p_workspaces_workspaces (user_id, name) VALUES (?, ?)",
|
||||
);
|
||||
insert.run("user-1", "Mine");
|
||||
insert.run("user-2", "Theirs");
|
||||
|
||||
db.sqlite.exec("DELETE FROM users WHERE id = 'user-1'");
|
||||
|
||||
const names = (
|
||||
db.sqlite.prepare("SELECT name FROM p_workspaces_workspaces").all() as {
|
||||
name: string;
|
||||
}[]
|
||||
).map((row) => row.name);
|
||||
expect(names).toEqual(["Theirs"]);
|
||||
});
|
||||
});
|
||||
@@ -0,0 +1,64 @@
|
||||
import { afterEach, beforeEach, describe, expect, it } from "vitest";
|
||||
import { createTestDb, type TestDb } from "@termix/plugin-sdk/testing";
|
||||
import { workspaces } from "../../src/backend/tables.js";
|
||||
import {
|
||||
createWorkspaceRepository,
|
||||
type WorkspaceRepository,
|
||||
} from "../../src/backend/repository.js";
|
||||
import { pluginDir } from "./helpers";
|
||||
|
||||
let db: TestDb;
|
||||
let repo: WorkspaceRepository;
|
||||
|
||||
beforeEach(async () => {
|
||||
db = await createTestDb(pluginDir, {
|
||||
before: (sqlite) =>
|
||||
sqlite.exec("INSERT INTO users (id) VALUES ('user-1'), ('user-2')"),
|
||||
});
|
||||
repo = createWorkspaceRepository(
|
||||
db.database,
|
||||
await db.database.define(workspaces),
|
||||
);
|
||||
});
|
||||
|
||||
afterEach(() => db.close());
|
||||
|
||||
describe("workspace repository", () => {
|
||||
it("reads a new row back by its own sync id", async () => {
|
||||
const a = await repo.create("user-1", { name: "A", payload: "{}" });
|
||||
const b = await repo.create("user-1", { name: "B", payload: "{}" });
|
||||
expect(a.name).toBe("A");
|
||||
expect(b.name).toBe("B");
|
||||
expect(a.syncId).not.toBe(b.syncId);
|
||||
expect(a.createdAt).toBe(a.updatedAt);
|
||||
});
|
||||
|
||||
it("returns the updated last session rather than a new one", async () => {
|
||||
const first = await repo.upsertLastSession("user-1", '{"tabs":[]}', "t1");
|
||||
const second = await repo.upsertLastSession("user-1", '{"tabs":[1]}', "t2");
|
||||
expect(second.id).toBe(first.id);
|
||||
expect(second.payload).toBe('{"tabs":[1]}');
|
||||
expect(second.updatedAt).toBe("t2");
|
||||
});
|
||||
|
||||
it("switches the default without touching another user's", async () => {
|
||||
const theirs = await repo.create("user-2", { name: "T", payload: "{}" });
|
||||
await repo.setDefault("user-2", theirs.id);
|
||||
|
||||
const a = await repo.create("user-1", { name: "A", payload: "{}" });
|
||||
const b = await repo.create("user-1", { name: "B", payload: "{}" });
|
||||
await repo.setDefault("user-1", a.id);
|
||||
await repo.setDefault("user-1", b.id);
|
||||
|
||||
expect((await repo.findById("user-1", a.id))?.isDefault).toBe(false);
|
||||
expect((await repo.findById("user-1", b.id))?.isDefault).toBe(true);
|
||||
expect((await repo.findById("user-2", theirs.id))?.isDefault).toBe(true);
|
||||
});
|
||||
|
||||
it("refuses to edit or delete the last session", async () => {
|
||||
const last = await repo.upsertLastSession("user-1", "{}");
|
||||
expect(await repo.update("user-1", last.id, { name: "x" })).toBeNull();
|
||||
expect(await repo.setDefault("user-1", last.id)).toBeNull();
|
||||
expect(await repo.delete("user-1", last.id)).toBe(false);
|
||||
});
|
||||
});
|
||||
@@ -0,0 +1,203 @@
|
||||
import { afterEach, beforeEach, describe, expect, it } from "vitest";
|
||||
import { layout, startServer, type TestServer } from "./helpers";
|
||||
|
||||
let server: TestServer;
|
||||
|
||||
beforeEach(async () => {
|
||||
server = await startServer();
|
||||
});
|
||||
|
||||
afterEach(async () => {
|
||||
await server.close();
|
||||
});
|
||||
|
||||
async function create(name = "Prod", user = "user-1") {
|
||||
const res = await server.request("POST", "/", {
|
||||
user,
|
||||
body: { name, color: "#ef4444", payload: layout() },
|
||||
});
|
||||
expect(res.status).toBe(200);
|
||||
return res.body;
|
||||
}
|
||||
|
||||
describe("workspace routes", () => {
|
||||
it("creates and lists workspaces with a parsed payload and tab count", async () => {
|
||||
const created = await create();
|
||||
expect(created).toMatchObject({
|
||||
name: "Prod",
|
||||
color: "#ef4444",
|
||||
kind: "manual",
|
||||
isDefault: false,
|
||||
tabCount: 1,
|
||||
});
|
||||
expect(created.payload.tabs).toHaveLength(1);
|
||||
expect(created.syncId).toEqual(expect.any(String));
|
||||
|
||||
const list = await server.request("GET", "/");
|
||||
expect(list.body).toHaveLength(1);
|
||||
expect(list.body[0].id).toBe(created.id);
|
||||
});
|
||||
|
||||
it("rejects a missing name or payload", async () => {
|
||||
expect(
|
||||
(await server.request("POST", "/", { body: { payload: layout() } }))
|
||||
.status,
|
||||
).toBe(400);
|
||||
expect(
|
||||
(await server.request("POST", "/", { body: { name: "x", payload: {} } }))
|
||||
.status,
|
||||
).toBe(400);
|
||||
});
|
||||
|
||||
it("keeps one last session row per user and never lists it as editable", async () => {
|
||||
expect((await server.request("GET", "/last-session")).body).toBeNull();
|
||||
|
||||
await server.request("PUT", "/last-session", {
|
||||
body: { payload: layout() },
|
||||
});
|
||||
const second = await server.request("PUT", "/last-session", {
|
||||
body: { payload: layout([]) },
|
||||
});
|
||||
expect(second.body.tabCount).toBe(0);
|
||||
|
||||
const list = (await server.request("GET", "/")).body;
|
||||
expect(
|
||||
list.filter(
|
||||
(w: { kind: string; isDefault: boolean; id: number }) =>
|
||||
w.kind === "last_session",
|
||||
),
|
||||
).toHaveLength(1);
|
||||
|
||||
const id = second.body.id;
|
||||
expect(
|
||||
(await server.request("PATCH", `/${id}`, { body: { name: "x" } })).status,
|
||||
).toBe(404);
|
||||
expect((await server.request("DELETE", `/${id}`)).status).toBe(404);
|
||||
});
|
||||
|
||||
it("renames, replaces content and duplicates", async () => {
|
||||
const created = await create();
|
||||
|
||||
const renamed = await server.request("PATCH", `/${created.id}`, {
|
||||
body: { name: " Staging ", color: "#22c55e" },
|
||||
});
|
||||
expect(renamed.body).toMatchObject({ name: "Staging", color: "#22c55e" });
|
||||
|
||||
const replaced = await server.request("PUT", `/${created.id}/content`, {
|
||||
body: { payload: layout([]) },
|
||||
});
|
||||
expect(replaced.body.tabCount).toBe(0);
|
||||
|
||||
const copy = await server.request("POST", `/${created.id}/duplicate`, {
|
||||
body: { name: "Staging (copy)" },
|
||||
});
|
||||
expect(copy.body).toMatchObject({
|
||||
name: "Staging (copy)",
|
||||
color: "#22c55e",
|
||||
tabCount: 0,
|
||||
});
|
||||
expect(copy.body.id).not.toBe(created.id);
|
||||
});
|
||||
|
||||
it("keeps a single default", async () => {
|
||||
const a = await create("A");
|
||||
const b = await create("B");
|
||||
|
||||
await server.request("POST", `/${a.id}/set-default`);
|
||||
await server.request("POST", `/${b.id}/set-default`);
|
||||
|
||||
const list = (await server.request("GET", "/")).body;
|
||||
const defaults = list.filter(
|
||||
(w: { kind: string; isDefault: boolean; id: number }) => w.isDefault,
|
||||
);
|
||||
expect(
|
||||
defaults.map(
|
||||
(w: { kind: string; isDefault: boolean; id: number }) => w.id,
|
||||
),
|
||||
).toEqual([b.id]);
|
||||
|
||||
const unset = await server.request("POST", `/${b.id}/unset-default`);
|
||||
expect(unset.body.isDefault).toBe(false);
|
||||
});
|
||||
|
||||
it("marks a workspace as used when it is applied", async () => {
|
||||
const created = await create();
|
||||
expect(created.lastUsedAt).toBeNull();
|
||||
|
||||
const applied = await server.request("POST", `/${created.id}/apply`);
|
||||
expect(applied.status).toBe(200);
|
||||
|
||||
const list = (await server.request("GET", "/")).body;
|
||||
expect(list[0].lastUsedAt).toEqual(expect.any(String));
|
||||
});
|
||||
|
||||
it("deletes a workspace", async () => {
|
||||
const created = await create();
|
||||
expect((await server.request("DELETE", `/${created.id}`)).body).toEqual({
|
||||
success: true,
|
||||
});
|
||||
expect((await server.request("GET", "/")).body).toEqual([]);
|
||||
expect((await server.request("DELETE", `/${created.id}`)).status).toBe(404);
|
||||
});
|
||||
|
||||
it("rejects ids that are not numbers", async () => {
|
||||
expect((await server.request("DELETE", "/abc")).status).toBe(400);
|
||||
expect((await server.request("POST", "/abc/apply")).status).toBe(400);
|
||||
});
|
||||
|
||||
it("never shows or changes another user's workspaces", async () => {
|
||||
const mine = await create("Mine", "user-1");
|
||||
|
||||
expect((await server.request("GET", "/", { user: "user-2" })).body).toEqual(
|
||||
[],
|
||||
);
|
||||
for (const [method, path] of [
|
||||
["PATCH", `/${mine.id}`],
|
||||
["DELETE", `/${mine.id}`],
|
||||
["POST", `/${mine.id}/apply`],
|
||||
["POST", `/${mine.id}/set-default`],
|
||||
["POST", `/${mine.id}/duplicate`],
|
||||
] as const) {
|
||||
const res = await server.request(method, path, {
|
||||
user: "user-2",
|
||||
body: { name: "stolen" },
|
||||
});
|
||||
expect(res.status).toBe(404);
|
||||
}
|
||||
});
|
||||
|
||||
it("flushes the database after every write", async () => {
|
||||
const before = server.db.persisted;
|
||||
const created = await create();
|
||||
await server.request("POST", `/${created.id}/set-default`);
|
||||
await server.request("DELETE", `/${created.id}`);
|
||||
expect(server.db.persisted).toBeGreaterThanOrEqual(before + 3);
|
||||
});
|
||||
});
|
||||
|
||||
describe("workspaces.use", () => {
|
||||
it("refuses every route without it", async () => {
|
||||
await server.close();
|
||||
server = await startServer({ permissions: [] });
|
||||
|
||||
for (const [method, path] of [
|
||||
["GET", "/"],
|
||||
["POST", "/"],
|
||||
["GET", "/last-session"],
|
||||
["PUT", "/last-session"],
|
||||
["PATCH", "/1"],
|
||||
["PUT", "/1/content"],
|
||||
["POST", "/1/duplicate"],
|
||||
["POST", "/1/set-default"],
|
||||
["POST", "/1/unset-default"],
|
||||
["POST", "/1/apply"],
|
||||
["DELETE", "/1"],
|
||||
] as const) {
|
||||
const res = await server.request(method, path, {
|
||||
body: { name: "x", payload: layout() },
|
||||
});
|
||||
expect(res.status, `${method} ${path}`).toBe(403);
|
||||
expect(res.body.required).toBe("workspaces.use");
|
||||
}
|
||||
});
|
||||
});
|
||||
@@ -0,0 +1,216 @@
|
||||
import { afterEach, describe, expect, it, vi } from "vitest";
|
||||
import { fireEvent, screen, waitFor } from "@testing-library/react";
|
||||
import type { PluginApiClient } from "@termix/plugin-sdk/frontend";
|
||||
import {
|
||||
renderWithApp,
|
||||
type RenderedPluginApp,
|
||||
} from "@termix/plugin-sdk/testing";
|
||||
import type { PluginManifest } from "@termix/plugin-sdk/manifest";
|
||||
import * as plugin from "../../src/frontend/index";
|
||||
import manifestJson from "../../manifest.json";
|
||||
import locales from "../../locales/en.json";
|
||||
|
||||
const manifest = manifestJson as unknown as PluginManifest;
|
||||
|
||||
const declared = (views?: Array<{ id: string }>) =>
|
||||
(views ?? []).map((view) => view.id).sort();
|
||||
|
||||
let rendered: RenderedPluginApp | null = null;
|
||||
|
||||
afterEach(async () => {
|
||||
await rendered?.deactivate();
|
||||
rendered = null;
|
||||
});
|
||||
|
||||
describe(`${manifest.id} activate`, () => {
|
||||
it("activates and registers only views its manifest declares", async () => {
|
||||
rendered = await renderWithApp(plugin, { manifest, locales });
|
||||
const contributes = manifest.contributes as unknown as Record<
|
||||
string,
|
||||
Array<{ id: string }> | undefined
|
||||
>;
|
||||
const tabs = declared(contributes.tabs);
|
||||
// A rail panel may reuse one of the plugin's tab ids.
|
||||
const panels = [...declared(contributes.panels), ...tabs];
|
||||
const cards = declared(contributes.dashboardCards);
|
||||
for (const id of rendered.registered.tabs()) expect(tabs).toContain(id);
|
||||
for (const id of rendered.registered.panels()) expect(panels).toContain(id);
|
||||
for (const id of rendered.registered.dashboardCards()) {
|
||||
expect(cards).toContain(id);
|
||||
}
|
||||
});
|
||||
|
||||
it("removes everything it registered on deactivate", async () => {
|
||||
const app = await renderWithApp(plugin, { manifest, locales });
|
||||
await app.deactivate();
|
||||
expect(app.registered.tabs()).toEqual([]);
|
||||
expect(app.registered.panels()).toEqual([]);
|
||||
expect(app.registered.railItems()).toEqual([]);
|
||||
expect(app.registered.hostActions()).toEqual([]);
|
||||
expect(app.registered.hostEditorSections()).toEqual([]);
|
||||
expect(app.registered.dashboardCards()).toEqual([]);
|
||||
expect(app.registered.settingsComponents()).toEqual([]);
|
||||
expect(app.registered.actions()).toEqual([]);
|
||||
});
|
||||
});
|
||||
|
||||
function workspace(overrides: Record<string, unknown> = {}) {
|
||||
return {
|
||||
id: 1,
|
||||
userId: "user-1",
|
||||
name: "Prod",
|
||||
color: "#ef4444",
|
||||
icon: null,
|
||||
kind: "manual",
|
||||
isDefault: false,
|
||||
payload: {
|
||||
version: 1,
|
||||
tabs: [{ slotId: "s1", type: "network_graph", label: "Graph" }],
|
||||
activeSlotId: "s1",
|
||||
splitMode: "none",
|
||||
paneTabIds: [],
|
||||
rowSizes: [],
|
||||
rowColSizes: [],
|
||||
},
|
||||
syncId: "sync-1",
|
||||
createdAt: "2026-01-01T00:00:00.000Z",
|
||||
updatedAt: "2026-01-01T00:00:00.000Z",
|
||||
lastUsedAt: null,
|
||||
tabCount: 1,
|
||||
...overrides,
|
||||
};
|
||||
}
|
||||
|
||||
function stubApi(workspaces: unknown[]) {
|
||||
return {
|
||||
get: vi.fn(async () => ({ data: workspaces })),
|
||||
post: vi.fn(async () => ({ data: workspaces[0] })),
|
||||
put: vi.fn(async () => ({ data: {} })),
|
||||
patch: vi.fn(async () => ({ data: {} })),
|
||||
delete: vi.fn(async () => ({ data: { success: true } })),
|
||||
};
|
||||
}
|
||||
|
||||
async function applyThroughPanel(app: RenderedPluginApp, name: string) {
|
||||
app.renderPanel("workspaces", { active: true });
|
||||
fireEvent.click(await screen.findByText(name));
|
||||
fireEvent.click(
|
||||
await screen.findByText("Apply Workspace", { selector: "button" }),
|
||||
);
|
||||
await waitFor(() =>
|
||||
expect(app.shellCalls.some((call) => call.method === "applyLayout")).toBe(
|
||||
true,
|
||||
),
|
||||
);
|
||||
}
|
||||
|
||||
describe("workspaces panel", () => {
|
||||
it("gates its rail item on workspaces.use", async () => {
|
||||
rendered = await renderWithApp(plugin, { manifest, locales });
|
||||
expect(rendered.registered.railItems()).toEqual([
|
||||
expect.objectContaining({
|
||||
id: "workspaces",
|
||||
permission: "workspaces.use",
|
||||
}),
|
||||
]);
|
||||
});
|
||||
|
||||
it("lists the user's workspaces", async () => {
|
||||
const api = stubApi([
|
||||
workspace(),
|
||||
workspace({ id: 2, name: "Last Session", kind: "last_session" }),
|
||||
]);
|
||||
rendered = await renderWithApp(plugin, {
|
||||
manifest,
|
||||
locales,
|
||||
api: api as unknown as PluginApiClient,
|
||||
});
|
||||
rendered.renderPanel("workspaces", { active: true });
|
||||
|
||||
expect(await screen.findByText("Prod")).toBeTruthy();
|
||||
expect(
|
||||
screen.getByText(locales.newUi.sidebar.workspaces.lastSession),
|
||||
).toBeTruthy();
|
||||
expect(api.get).toHaveBeenCalledWith("/");
|
||||
});
|
||||
|
||||
it("applies a workspace to the tabs and marks it used", async () => {
|
||||
const saved = workspace();
|
||||
const api = stubApi([saved]);
|
||||
rendered = await renderWithApp(plugin, {
|
||||
manifest,
|
||||
locales,
|
||||
api: api as unknown as PluginApiClient,
|
||||
});
|
||||
|
||||
await applyThroughPanel(rendered, "Prod");
|
||||
|
||||
const call = rendered.shellCalls.find((c) => c.method === "applyLayout");
|
||||
expect(call?.args[0]).toEqual(saved.payload);
|
||||
expect(call?.args[1]).toEqual({ name: "Prod" });
|
||||
await waitFor(() => expect(api.post).toHaveBeenCalledWith("/1/apply"));
|
||||
});
|
||||
|
||||
it("keeps a tab from a plugin that is not running and shows its placeholder", async () => {
|
||||
const saved = workspace({
|
||||
payload: {
|
||||
version: 1,
|
||||
tabs: [{ slotId: "s1", type: "not-installed-view", label: "Gone" }],
|
||||
activeSlotId: "s1",
|
||||
splitMode: "none",
|
||||
paneTabIds: [],
|
||||
rowSizes: [],
|
||||
rowColSizes: [],
|
||||
},
|
||||
});
|
||||
rendered = await renderWithApp(plugin, {
|
||||
manifest,
|
||||
locales,
|
||||
api: stubApi([saved]) as unknown as PluginApiClient,
|
||||
});
|
||||
|
||||
await applyThroughPanel(rendered, "Prod");
|
||||
|
||||
expect(rendered.openedTabs()).toEqual([
|
||||
{ type: "not-installed-view", hostId: undefined, label: "Gone" },
|
||||
]);
|
||||
const tab = rendered.renderOpenedTab(0);
|
||||
expect(
|
||||
tab.querySelector('[data-testid="plugin-view-placeholder"]'),
|
||||
).not.toBeNull();
|
||||
});
|
||||
|
||||
it("restores the default workspace once the shell is ready", async () => {
|
||||
const saved = workspace({ isDefault: true });
|
||||
rendered = await renderWithApp(plugin, {
|
||||
manifest,
|
||||
locales,
|
||||
permissions: ["workspaces.use"],
|
||||
ready: true,
|
||||
api: stubApi([saved]) as unknown as PluginApiClient,
|
||||
});
|
||||
|
||||
await waitFor(() =>
|
||||
expect(
|
||||
rendered!.shellCalls.find((c) => c.method === "applyLayout")?.args[0],
|
||||
).toEqual(saved.payload),
|
||||
);
|
||||
});
|
||||
|
||||
it("does not restore or autosave for a user without workspaces.use", async () => {
|
||||
const api = stubApi([workspace({ isDefault: true })]);
|
||||
rendered = await renderWithApp(plugin, {
|
||||
manifest,
|
||||
locales,
|
||||
permissions: [],
|
||||
ready: true,
|
||||
api: api as unknown as PluginApiClient,
|
||||
});
|
||||
|
||||
await new Promise((resolve) => setTimeout(resolve, 20));
|
||||
expect(api.get).not.toHaveBeenCalled();
|
||||
expect(rendered.shellCalls.some((c) => c.method === "applyLayout")).toBe(
|
||||
false,
|
||||
);
|
||||
});
|
||||
});
|
||||
@@ -0,0 +1,57 @@
|
||||
import { describe, expect, it, vi } from "vitest";
|
||||
import type { PluginApiClient } from "@termix/plugin-sdk/frontend";
|
||||
import { createWorkspacesApi } from "../../src/frontend/workspaces-api";
|
||||
|
||||
function fakeClient() {
|
||||
const reply = (data: unknown) => vi.fn(async () => ({ data }));
|
||||
return {
|
||||
get: reply([]),
|
||||
post: reply({ id: 1 }),
|
||||
put: reply({ id: 1 }),
|
||||
patch: reply({ id: 1 }),
|
||||
delete: reply({ success: true }),
|
||||
};
|
||||
}
|
||||
|
||||
const layout = { version: 1, tabs: [] };
|
||||
|
||||
describe("workspaces api", () => {
|
||||
it("calls each route relative to the plugin's own mount point", async () => {
|
||||
const client = fakeClient();
|
||||
const api = createWorkspacesApi(client as unknown as PluginApiClient);
|
||||
|
||||
await api.list();
|
||||
await api.create({ name: "A", color: "#fff", payload: layout });
|
||||
await api.rename(3, { name: "B" });
|
||||
await api.updateContent(3, layout);
|
||||
await api.remove(3);
|
||||
await api.duplicate(3, "C");
|
||||
await api.setDefault(3);
|
||||
await api.unsetDefault(3);
|
||||
await api.apply(3);
|
||||
await api.getLastSession();
|
||||
await api.saveLastSession(layout);
|
||||
|
||||
expect(client.get.mock.calls).toEqual([["/"], ["/last-session"]]);
|
||||
expect(client.post.mock.calls).toEqual([
|
||||
["/", { name: "A", color: "#fff", payload: layout }],
|
||||
["/3/duplicate", { name: "C" }],
|
||||
["/3/set-default"],
|
||||
["/3/unset-default"],
|
||||
["/3/apply"],
|
||||
]);
|
||||
expect(client.patch.mock.calls).toEqual([["/3", { name: "B" }]]);
|
||||
expect(client.put.mock.calls).toEqual([
|
||||
["/3/content", { payload: layout }],
|
||||
["/last-session", { payload: layout }],
|
||||
]);
|
||||
expect(client.delete.mock.calls).toEqual([["/3"]]);
|
||||
});
|
||||
|
||||
it("returns the response body", async () => {
|
||||
const client = fakeClient();
|
||||
client.get = vi.fn(async () => ({ data: [{ id: 7 }] }));
|
||||
const api = createWorkspacesApi(client as unknown as PluginApiClient);
|
||||
expect(await api.list()).toEqual([{ id: 7 }]);
|
||||
});
|
||||
});
|
||||
@@ -0,0 +1,4 @@
|
||||
{
|
||||
"extends": "@termix/plugin-sdk/tsconfig.plugin.json",
|
||||
"include": ["src/**/*.ts", "src/**/*.tsx", "tests/**/*.ts", "tests/**/*.tsx"]
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
import { pluginVitestConfig } from "@termix/plugin-sdk/vitest-preset";
|
||||
|
||||
export default pluginVitestConfig(import.meta.url);
|
||||
Reference in new issue
Block a user