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:
authored and GitHub committed 2026-10-01 16:20:16 -05:00
1 parent 49fa488093
commit 3643e7af97
4405 files changed
+1341026 -289722

No files matched your search

+7
View File
@@ -0,0 +1,7 @@
# Changelog
## 1.0.0
First release, bundled with Termix 2.9.0.
Save commands and notes in folders, then run or paste them into a terminal. Snippets support variables and can be shared with other users or roles.
+39
View File
@@ -0,0 +1,39 @@
# Snippets
Save commands and notes, then run or paste them into a terminal. Supports variables and sharing.
## Features
- Save commands and notes and sort them into folders.
- Run a snippet or paste it into a terminal.
- Use variables like `$HOST` and `$INPUT_1` that are filled in when the snippet runs.
- Share snippets and folders with other users or roles.
- Snippets sync between the desktop app and a server.
## Settings
### User
- Collapse folders by default: start each folder closed when you open the Snippets panel.
## Permissions
- `snippets.view`: See your own and shared snippets. Admins and users have it by default.
- `snippets.create`: Create snippets, notes and folders. Admins and users have it by default.
- `snippets.edit`: Change snippets and folders. Admins and users have it by default.
- `snippets.delete`: Delete snippets and folders. Admins and users have it by default.
- `snippets.share`: Share snippets and folders. Admins and users have it by default.
## Services
Provides to other plugins:
- `snippets.access`: read and run snippets.
## Development
```bash
npm run build # build into dist/
npm run test # run this plugin's tests
npm run typecheck # type-check this plugin
```
+235
View File
@@ -0,0 +1,235 @@
{
"nav": {
"snippets": "Snippets"
},
"onboarding": {
"feature_snippets": "Snippets",
"feature_snippets_desc": "Save commands you run often and send them to a terminal in one click."
},
"permissions": {
"view": {
"title": "View snippets",
"description": "See your own snippets, notes and shared snippets."
},
"create": {
"title": "Create snippets",
"description": "Create new snippets, notes and folders."
},
"edit": {
"title": "Edit snippets",
"description": "Rename or change existing snippets and folders."
},
"delete": {
"title": "Delete snippets",
"description": "Delete snippets and folders."
},
"share": {
"title": "Share snippets",
"description": "Share snippets and folders with other users or roles."
}
},
"settings": {
"foldersCollapsed": {
"label": "Collapse folders by default",
"description": "Start each snippet folder collapsed when you open the Snippets panel."
},
"showCommands": {
"label": "Show commands",
"description": "Show the first line of each snippet's command under its name."
},
"confirmExecution": {
"label": "Confirm before running",
"description": "Ask before a command snippet runs in a terminal."
}
},
"cancel": "Cancel",
"loading": "Loading...",
"searchPlaceholder": "Search snippets",
"newFolder": "New folder",
"newSnippet": "New snippet",
"noFolder": "No folder",
"noSnippetsInFolder": "No snippets in this folder",
"noTerminalTabsOpen": "No terminal tab is open",
"run": "Run",
"pasteToTerminal": "Paste to terminal",
"copySuccess": "Copied to clipboard",
"importExport": "Import / Export",
"importFailed": "Failed to import snippets",
"nameLabel": "Name",
"namePlaceholder": "Snippet name",
"descriptionLabel": "Description",
"descriptionPlaceholder": "Optional description",
"folderLabel": "Folder",
"typeLabel": "Type",
"typeCommand": "Command",
"typeNote": "Note",
"commandLabel": "Command",
"commandPlaceholder": "Command to run, e.g. systemctl status $HOST",
"noteLabel": "Note",
"notePlaceholder": "Text to paste into the terminal",
"createSnippetTitle": "Create snippet",
"createSnippetButton": "Create snippet",
"createSuccess": "Snippet created",
"createFailed": "Failed to create snippet",
"editSnippetTitle": "Edit snippet",
"saveSnippetButton": "Save snippet",
"updateSuccess": "Snippet updated",
"updateFailed": "Failed to update snippet",
"deleteFailed": "Failed to delete snippet",
"createFolderTitle": "Create folder",
"createFolderButton": "Create folder",
"folderCreateSuccess": "Folder created",
"folderCreateFailed": "Failed to create folder",
"editFolderTitle": "Edit folder",
"saveFolderButton": "Save folder",
"folderEditSuccess": "Folder updated",
"folderEditFailed": "Failed to update folder",
"folderNameLabel": "Folder name",
"folderNamePlaceholder": "Folder name",
"folderIconLabel": "Icon",
"folderDeleteSuccess": "Folder deleted",
"folderDeleteFailed": "Failed to delete folder",
"confirmRunMessage": "Run \"{{name}}\"?",
"confirmRunButton": "Run",
"runSuccess": "Ran \"{{name}}\" on {{count}} terminal(s)",
"pasteSuccess": "Pasted \"{{name}}\" into {{count}} terminal(s)",
"admin": {
"tabTitle": "Snippets",
"count": "{{count}} snippets",
"add": "Add Snippet",
"namePlaceholder": "Snippet name",
"contentPlaceholder": "Command content",
"folderPlaceholder": "Folder (optional)",
"empty": "This user has no snippets",
"deleteConfirm": "Delete snippet \"{{name}}\" belonging to {{username}}?",
"deleted": "Snippet deleted",
"deleteFailed": "Failed to delete snippet",
"requiredFields": "Snippet name and content are required",
"saved": "Snippet saved",
"saveFailed": "Failed to save snippet",
"saving": "Saving...",
"save": "Save"
},
"backToSnippets": "Back to snippets",
"settingsTitle": "Snippet settings",
"settingsDisplayTitle": "Display",
"settingsBehaviorTitle": "Behavior",
"typeCommandHint": "Runs in the active terminal.",
"typeNoteHint": "Pastes into the active terminal without running.",
"variablesHint": "Variables: $HOST, $USER, $PORT, $NAME, ${INPUT_1:Label}",
"doubleClickToRun": "Double click to run",
"sharedBadge": "Shared",
"copyToClipboard": "Copy to clipboard",
"copyFailed": "Failed to copy to clipboard",
"moreOptions": "More options",
"moreActions": "More actions",
"moveToFolder": "Move to folder",
"deleteSnippet": "Delete snippet",
"deleteSnippetConfirm": "Delete snippet \"{{name}}\"?",
"deleteSuccess": "Snippet deleted",
"delete": "Delete",
"folderActions": "Folder actions",
"addSnippetHere": "New snippet here",
"deleteFolder": "Delete folder",
"deleteFolderConfirm": "Delete folder \"{{name}}\"? Its snippets move out of the folder.",
"createFolderDescription": "Group related snippets together.",
"editFolderDescription": "Change this folder's name, color or icon.",
"folderColorLabel": "Color",
"loadFailed": "Failed to load snippets",
"importSkipExisting": "Import (skip existing)",
"importOverwrite": "Import (overwrite existing)",
"importInvalidFile": "That file is not a valid snippets export",
"importSuccess": "Imported {{imported}}, updated {{updated}}, skipped {{skipped}}",
"exportSnippets": "Export snippets",
"exportSuccess": "Snippets exported",
"exportFailed": "Failed to export snippets",
"expandAll": "Expand all folders",
"collapseAll": "Collapse all folders",
"docsLink": "Documentation",
"clearSearch": "Clear search",
"noSearchResults": "No snippets match your search",
"emptyTitle": "No snippets yet",
"emptyDescription": "Save commands you run often, then run them in a terminal with one click.",
"shareSnippet": "Share snippet",
"shareFolder": "Share folder",
"shareExpiry": "Expires",
"shareExpiryOptions": {
"h0": "Never",
"h1": "In 1 hour",
"h24": "In 1 day",
"h168": "In 7 days",
"h720": "In 30 days"
},
"shareButton": "Share",
"shareSuccess": "Shared with {{count}}",
"shareFailed": "Failed to share",
"shareLoadFailed": "Failed to load sharing details",
"currentAccess": "Current access",
"notSharedYet": "Not shared with anyone yet",
"revokeAccess": "Revoke",
"revokeSuccess": "Access revoked",
"revokeFailed": "Failed to revoke access",
"close": "Close",
"targetHostsLabel": "Target hosts",
"targetHostsHint": "Pick hosts to run this command on directly, without a terminal open. Leave empty to run it in the active terminal.",
"clearTargetHosts": "Clear",
"noHostsAvailable": "No hosts available",
"searchHosts": "Search hosts",
"runOnTargets": "Run on target hosts",
"executionResultTitle": "Results for \"{{name}}\"",
"executionResultDescription": "Output from each target host.",
"executionSuccess": "Success",
"executionFailed": "Failed",
"directRunSuccess": "Ran \"{{name}}\" on {{count}} host(s)",
"directRunPartialFail": "\"{{name}}\" failed on some hosts",
"reorderFailed": "Failed to reorder snippets",
"dropToRemoveFromFolder": "Drop here to move out of the folder",
"shareSnippetTitle": "Share \"{{name}}\"",
"shareFolderTitle": "Share folder \"{{name}}\"",
"shareWith": "Share with",
"usersTab": "Users",
"rolesTab": "Roles",
"shareSearchPlaceholder": "Search users or roles",
"shareNoMatches": "No matches",
"shareWithCount": "Share with {{count}}",
"shareFolderHint": "Shares every snippet in this folder. Snippets added later are not shared automatically.",
"shareFolderSummary": "Shared {{count}} snippet(s) in this folder",
"grantedBy": "Granted by",
"expired": "Expired",
"variablesDialogTitle": "Run \"{{name}}\"",
"variablesDialogDescription": "Fill in the values this snippet needs before running it.",
"variablesPreviewLabel": "Preview",
"variablesConfirmButton": "Run",
"keybindings": {
"runSnippet": "Run existing snippet",
"snippetLabel": "Snippet",
"selectSnippet": "Select a snippet",
"snippetMissing": "snippet not found",
"snippetRequired": "Select a snippet"
},
"paletteHintRun": "Run in the active terminal tab",
"host": {
"startupTitle": "Startup Snippet",
"quickActionsTitle": "Quick Actions",
"quickActionsDescription": "Quick actions appear as buttons in the Host Metrics toolbar for one-click command execution.",
"noQuickActions": "No quick actions yet.",
"buttonLabel": "Button label",
"selectSnippet": "Select snippet...",
"addQuickAction": "Add Action",
"tabTitle": "Snippets",
"startupDescription": "Runs in the terminal each time it connects to this host. Variables like $HOST are filled in; a snippet that asks for inputs is skipped.",
"none": "None",
"removeQuickAction": "Remove quick action"
},
"quickActions": {
"running": "Executing {{name}}...",
"succeeded": "{{name}} completed successfully",
"failed": "{{name}} failed",
"error": "Failed to execute {{name}}"
},
"paletteHintPaste": "Paste in the active terminal tab",
"targetTerminals": "Run in",
"targetTerminalsHint": "optional, else the active tab",
"selectAll": "All",
"selectNone": "None"
}
@@ -0,0 +1,235 @@
{
"nav": {
"snippets": "Brokkies"
},
"onboarding": {
"feature_snippets": "Brokkies",
"feature_snippets_desc": "Stoor opdragte wat jy gereeld uitvoer en stuur dit met een klik na 'n terminaal."
},
"permissions": {
"view": {
"title": "Bekyk brokkies",
"description": "Sien jou eie brokkies, notas en gedeelde brokkies."
},
"create": {
"title": "Skep brokkies",
"description": "Skep nuwe brokkies, notas en gidse."
},
"edit": {
"title": "Wysig brokkies",
"description": "Hernoem of verander bestaande brokkies en gidse."
},
"delete": {
"title": "Vee brokkies uit",
"description": "Vee brokkies en gidse uit."
},
"share": {
"title": "Deel brokkies",
"description": "Deel brokkies en gidse met ander gebruikers of rolle."
}
},
"settings": {
"foldersCollapsed": {
"label": "Vou vouers standaard in",
"description": "Begin elke brokkie-vouer ingevou wanneer jy die Brokkie-paneel oopmaak."
},
"showCommands": {
"label": "Wys bevele",
"description": "Wys die eerste reël van elke brokkie se opdrag onder sy naam."
},
"confirmExecution": {
"label": "Bevestig voor uitvoering",
"description": "Vra voordat 'n opdragbrokkie in 'n terminaal loop."
}
},
"cancel": "Kanselleer",
"loading": "Laai tans...",
"searchPlaceholder": "Soekbrokkies",
"newFolder": "Nuwe vouer",
"newSnippet": "Nuwe brokkie",
"noFolder": "Geen vouer nie",
"noSnippetsInFolder": "Geen brokkies in hierdie vouer nie",
"noTerminalTabsOpen": "Geen terminaal-oortjie is oop nie",
"run": "Hardloop",
"pasteToTerminal": "Plak na terminaal",
"copySuccess": "Na knipbord gekopieer",
"importExport": "Invoer / Uitvoer",
"importFailed": "Kon nie brokkies invoer nie",
"nameLabel": "Naam",
"namePlaceholder": "Brokkie naam",
"descriptionLabel": "Beskrywing",
"descriptionPlaceholder": "Opsionele beskrywing",
"folderLabel": "Vouer",
"typeLabel": "Tipe",
"typeCommand": "Bevel",
"typeNote": "Nota",
"commandLabel": "Bevel",
"commandPlaceholder": "Opdrag om uit te voer, bv. systemctl status $HOST",
"noteLabel": "Nota",
"notePlaceholder": "Teks om in die terminaal te plak",
"createSnippetTitle": "Skep brokkie",
"createSnippetButton": "Skep brokkie",
"createSuccess": "Brokkie geskep",
"createFailed": "Kon nie brokkie skep nie",
"editSnippetTitle": "Wysig brokkie",
"saveSnippetButton": "Stoor brokkie",
"updateSuccess": "Brokkie opgedateer",
"updateFailed": "Kon nie die brokkie opdateer nie",
"deleteFailed": "Kon nie fragment uitvee nie",
"createFolderTitle": "Skep vouer",
"createFolderButton": "Skep vouer",
"folderCreateSuccess": "Vouer geskep",
"folderCreateFailed": "Kon nie vouer skep nie",
"editFolderTitle": "Wysig vouer",
"saveFolderButton": "Stoor vouer",
"folderEditSuccess": "Vouer opgedateer",
"folderEditFailed": "Kon nie vouer opdateer nie",
"folderNameLabel": "Lêernaam",
"folderNamePlaceholder": "Lêernaam",
"folderIconLabel": "Ikoon",
"folderDeleteSuccess": "Vouer uitgevee",
"folderDeleteFailed": "Kon nie vouer uitvee nie",
"confirmRunMessage": "Begin \"{{name}}\"?",
"confirmRunButton": "Hardloop",
"runSuccess": "Het \"{{name}}\" op {{count}} terminaal(e) uitgevoer",
"pasteSuccess": "Het \"{{name}}\" in {{count}} terminaal(e) geplak",
"admin": {
"tabTitle": "Brokkies",
"count": "{{count}} brokkies",
"add": "Voeg brokkie by",
"namePlaceholder": "Brokkie naam",
"contentPlaceholder": "Opdraginhoud",
"folderPlaceholder": "Vouer (opsioneel)",
"empty": "Hierdie gebruiker het geen brokkies nie",
"deleteConfirm": "Vee die brokkie \"{{name}}\" uit wat aan {{username}} behoort?",
"deleted": "Brokkie uitgevee",
"deleteFailed": "Kon nie fragment uitvee nie",
"requiredFields": "Brokkienaam en inhoud word vereis",
"saved": "Brokkie gestoor",
"saveFailed": "Kon nie die brokkie stoor nie",
"saving": "Stoor...",
"save": "Stoor"
},
"backToSnippets": "Terug na brokkies",
"settingsTitle": "Brokkie-instellings",
"settingsDisplayTitle": "Vertoon",
"settingsBehaviorTitle": "Gedrag",
"typeCommandHint": "Loop in die aktiewe terminaal.",
"typeNoteHint": "Plak in die aktiewe terminaal sonder om te loop.",
"variablesHint": "Veranderlikes: $HOST, $USER, $PORT, $NAME, ${INPUT_1:Etiket}",
"doubleClickToRun": "Dubbelklik om te hardloop",
"sharedBadge": "Gedeel",
"copyToClipboard": "Kopieer na knipbord",
"copyFailed": "Kon nie na knipbord kopieer nie",
"moreOptions": "Meer opsies",
"moreActions": "Meer aksies",
"moveToFolder": "Skuif na vouer",
"deleteSnippet": "Vee uittreksel uit",
"deleteSnippetConfirm": "Vee die brokkie \"{{name}} \" uit?",
"deleteSuccess": "Brokkie uitgevee",
"delete": "Vee uit",
"folderActions": "Voueraksies",
"addSnippetHere": "Nuwe stukkie hier",
"deleteFolder": "Vee vouer uit",
"deleteFolderConfirm": "Vee vouer \"{{name}}\" uit? Die brokkies skuif uit die vouer.",
"createFolderDescription": "Groepeer verwante brokkies saam.",
"editFolderDescription": "Verander hierdie vouer se naam, kleur of ikoon.",
"folderColorLabel": "Kleur",
"loadFailed": "Kon nie brokkies laai nie",
"importSkipExisting": "Invoer (slaan bestaande oor)",
"importOverwrite": "Invoer (oorskryf bestaande)",
"importInvalidFile": "Daardie lêer is nie 'n geldige uitvoer van brokkies nie",
"importSuccess": "Ingevoer {{imported}}, opgedateer {{updated}}, oorgeslaan {{skipped}}",
"exportSnippets": "Uitvoer brokkies",
"exportSuccess": "Uitgesnyde stukkies uitgevoer",
"exportFailed": "Kon nie brokkies uitvoer nie",
"expandAll": "Vou alle vouers uit",
"collapseAll": "Vou alle vouers in",
"docsLink": "Dokumentasie",
"clearSearch": "Vee soektog uit",
"noSearchResults": "Geen brokkies stem ooreen met jou soektog nie",
"emptyTitle": "Geen brokkies nog nie",
"emptyDescription": "Stoor opdragte wat jy gereeld uitvoer, en voer hulle dan met een klik in 'n terminaal uit.",
"shareSnippet": "Deel brokkie",
"shareFolder": "Deel vouer",
"shareExpiry": "Vervaldatum",
"shareExpiryOptions": {
"h0": "Nooit",
"h1": "Oor 1 uur",
"h24": "Oor 1 dag",
"h168": "Oor 7 dae",
"h720": "Oor 30 dae"
},
"shareButton": "Deel",
"shareSuccess": "Gedeel met {{count}}",
"shareFailed": "Kon nie deel nie",
"shareLoadFailed": "Kon nie deelbesonderhede laai nie",
"currentAccess": "Huidige toegang",
"notSharedYet": "Nog nie met enigiemand gedeel nie",
"revokeAccess": "Herroep",
"revokeSuccess": "Toegang herroep",
"revokeFailed": "Kon nie toegang herroep nie",
"close": "Maak toe",
"targetHostsLabel": "Teikengashere",
"targetHostsHint": "Kies gashere om hierdie opdrag direk op uit te voer, sonder 'n terminaal oop. Los leeg om dit in die aktiewe terminaal uit te voer.",
"clearTargetHosts": "Duidelik",
"noHostsAvailable": "Geen gashere beskikbaar nie",
"searchHosts": "Soek gashere",
"runOnTargets": "Begin op teikengashere",
"executionResultTitle": "Resultate vir \"{{name}}\"",
"executionResultDescription": "Uitvoer van elke teikengasheer.",
"executionSuccess": "Sukses",
"executionFailed": "Misluk",
"directRunSuccess": "Het \"{{name}}\" op {{count}} gasheer(s) uitgevoer",
"directRunPartialFail": "\"{{name}}\" het op sommige gashere misluk",
"reorderFailed": "Kon nie brokkies herrangskik nie",
"dropToRemoveFromFolder": "Laat val hier om uit die vouer te skuif",
"shareSnippetTitle": "Deel \"{{name}}\"",
"shareFolderTitle": "Deel vouer \"{{name}}\"",
"shareWith": "Deel met",
"usersTab": "Gebruikers",
"rolesTab": "Rolle",
"shareSearchPlaceholder": "Soek gebruikers of rolle",
"shareNoMatches": "Geen ooreenkomste nie",
"shareWithCount": "Deel met {{count}}",
"shareFolderHint": "Deel elke brokkie in hierdie vouer. Brokkies wat later bygevoeg word, word nie outomaties gedeel nie.",
"shareFolderSummary": "Gedeelde {{count}} brokkie(s) in hierdie vouer",
"grantedBy": "Toegeken deur",
"expired": "Verstryk",
"variablesDialogTitle": "Begin \"{{name}}\"",
"variablesDialogDescription": "Vul die waardes in wat hierdie brokkie benodig voordat dit uitgevoer word.",
"variablesPreviewLabel": "Voorskou",
"variablesConfirmButton": "Hardloop",
"keybindings": {
"runSnippet": "Voer bestaande brokkie uit",
"snippetLabel": "Brokkie",
"selectSnippet": "Kies 'n uittreksel",
"snippetMissing": "brokkie nie gevind nie",
"snippetRequired": "Kies 'n uittreksel"
},
"paletteHintRun": "Begin in die aktiewe terminaal-oortjie",
"host": {
"startupTitle": "Opstart-brokkie",
"quickActionsTitle": "Vinnige Aksies",
"quickActionsDescription": "Vinnige aksies verskyn as knoppies in die Host Metrics-nutsbalk vir die uitvoering van opdragte met een klik.",
"noQuickActions": "Geen vinnige aksies nog nie.",
"buttonLabel": "Knoppie-etiket",
"selectSnippet": "Kies uittreksel...",
"addQuickAction": "Voeg Aksie by",
"tabTitle": "Brokkies",
"startupDescription": "Loop in die terminaal elke keer as dit aan hierdie gasheer koppel. Veranderlikes soos $HOST word ingevul; 'n brokkie wat om insette vra, word oorgeslaan.",
"none": "Geen",
"removeQuickAction": "Verwyder vinnige aksie"
},
"quickActions": {
"running": "Voer tans {{name}} uit ...",
"succeeded": "{{name}} suksesvol voltooi",
"failed": "{{name}} het misluk",
"error": "Kon nie {{name}} uitvoer nie"
},
"paletteHintPaste": "Plak in die aktiewe terminaal-oortjie",
"targetTerminals": "Hardloop in",
"targetTerminalsHint": "opsioneel, anders die aktiewe oortjie",
"selectAll": "Alles",
"selectNone": "Geen"
}
@@ -0,0 +1,235 @@
{
"nav": {
"snippets": "المقتطفات"
},
"onboarding": {
"feature_snippets": "المقتطفات",
"feature_snippets_desc": "احفظ الأوامر التي تقوم بتشغيلها بشكل متكرر وأرسلها إلى الطرفية بنقرة واحدة."
},
"permissions": {
"view": {
"title": "عرض مقتطفات",
"description": "اطلع على مقتطفاتك وملاحظاتك ومقتطفاتك المشتركة."
},
"create": {
"title": "إنشاء مقتطفات",
"description": "أنشئ مقتطفات وملاحظات ومجلدات جديدة."
},
"edit": {
"title": "تعديل المقتطفات",
"description": "أعد تسمية أو تغيير المقتطفات والمجلدات الموجودة."
},
"delete": {
"title": "حذف المقتطفات",
"description": "احذف المقاطع والمجلدات."
},
"share": {
"title": "مشاركة مقتطفات",
"description": "مشاركة المقتطفات والمجلدات مع مستخدمين أو أدوار أخرى."
}
},
"settings": {
"foldersCollapsed": {
"label": "طي المجلدات افتراضيًا",
"description": "ابدأ تشغيل كل مجلد من مجلدات المقتطفات وهو مطوي عند فتح لوحة المقتطفات."
},
"showCommands": {
"label": "عرض الأوامر",
"description": "اعرض السطر الأول من أمر كل جزء من التعليمات البرمجية أسفل اسمه."
},
"confirmExecution": {
"label": "تأكد قبل التشغيل",
"description": "اسأل قبل تشغيل أي جزء من الأوامر في الطرفية."
}
},
"cancel": "إلغاء",
"loading": "جارٍ التحميل...",
"searchPlaceholder": "ابحث في المقتطفات",
"newFolder": "مجلد جديد",
"newSnippet": "مقتطف جديد",
"noFolder": "بدون مجلد",
"noSnippetsInFolder": "لا توجد مقتطفات في هذا المجلد",
"noTerminalTabsOpen": "لا توجد علامة تبويب طرفية مفتوحة",
"run": "تشغيل",
"pasteToTerminal": "الصقه في الطرفية",
"copySuccess": "تم النسخ إلى الحافظة",
"importExport": "استيراد / تصدير",
"importFailed": "فشل استيراد الأجزاء البرمجية",
"nameLabel": "الاسم",
"namePlaceholder": "اسم المقتطف",
"descriptionLabel": "الوصف",
"descriptionPlaceholder": "وصف اختياري",
"folderLabel": "مجلد",
"typeLabel": "النوع",
"typeCommand": "الأمر",
"typeNote": "ملحوظة",
"commandLabel": "الأمر",
"commandPlaceholder": "الأمر المراد تنفيذه، على سبيل المثال: systemctl status $HOST",
"noteLabel": "ملحوظة",
"notePlaceholder": "نص للصقه في الطرفية",
"createSnippetTitle": "إنشاء مقتطف",
"createSnippetButton": "إنشاء مقتطف",
"createSuccess": "تم إنشاء المقتطف",
"createFailed": "فشل إنشاء المقتطف",
"editSnippetTitle": "تعديل المقتطف",
"saveSnippetButton": "حفظ المقتطف",
"updateSuccess": "تم تحديث المقتطف",
"updateFailed": "فشل تحديث المقتطف",
"deleteFailed": "فشل حذف المقتطف",
"createFolderTitle": "إنشاء مجلد",
"createFolderButton": "إنشاء مجلد",
"folderCreateSuccess": "تم إنشاء المجلد",
"folderCreateFailed": "فشل إنشاء المجلد",
"editFolderTitle": "تحرير المجلد",
"saveFolderButton": "حفظ المجلد",
"folderEditSuccess": "تم تحديث المجلد",
"folderEditFailed": "فشل تحديث المجلد",
"folderNameLabel": "اسم المجلد",
"folderNamePlaceholder": "اسم المجلد",
"folderIconLabel": "أيقونة",
"folderDeleteSuccess": "تم حذف المجلد",
"folderDeleteFailed": "فشل حذف المجلد",
"confirmRunMessage": "تشغيل \"{{name}}\"؟",
"confirmRunButton": "تشغيل",
"runSuccess": "تم تشغيل الأمر \"{{name}}\" على الجهاز الطرفي {{count}}",
"pasteSuccess": "تم لصق \"{{name}}\" في {{count}} طرفية (أطراف)",
"admin": {
"tabTitle": "المقتطفات",
"count": "{{count}} مقتطفات",
"add": "إضافة مقتطف",
"namePlaceholder": "اسم المقتطف",
"contentPlaceholder": "محتوى الأمر",
"folderPlaceholder": "المجلد (اختياري)",
"empty": "هذا المستخدم ليس لديه مقتطفات",
"deleteConfirm": "حذف المقتطف \"{{name}}\" الخاص بـ {{username}}؟",
"deleted": "تم حذف المقتطف",
"deleteFailed": "فشل حذف المقتطف",
"requiredFields": "اسم المقتطف والمحتوى مطلوبان",
"saved": "تم حفظ المقتطف",
"saveFailed": "فشل حفظ المقتطف",
"saving": "جارٍ الحفظ...",
"save": "حفظ"
},
"backToSnippets": "العودة إلى المقتطفات",
"settingsTitle": "إعدادات المقتطف",
"settingsDisplayTitle": "عرض",
"settingsBehaviorTitle": "السلوك",
"typeCommandHint": "يعمل في الطرفية النشطة.",
"typeNoteHint": "يلصق في الطرفية النشطة دون تشغيلها.",
"variablesHint": "المتغيرات: $HOST، $USER، $PORT، $NAME، ${INPUT_1:Label}",
"doubleClickToRun": "انقر نقراً مزدوجاً للتشغيل",
"sharedBadge": "مشترك",
"copyToClipboard": "انسخ إلى الحافظة",
"copyFailed": "فشل النسخ إلى الحافظة",
"moreOptions": "خيارات إضافية",
"moreActions": "إجراءات أخرى",
"moveToFolder": "نقل إلى المجلد",
"deleteSnippet": "حذف المقتطف",
"deleteSnippetConfirm": "حذف المقتطف \"{{name}}\"؟",
"deleteSuccess": "تم حذف المقتطف",
"delete": "حذف",
"folderActions": "إجراءات المجلد",
"addSnippetHere": "مقتطف جديد هنا",
"deleteFolder": "حذف المجلد",
"deleteFolderConfirm": "حذف المجلد \"{{name}}\"؟ ستنتقل مقتطفاته خارج المجلد.",
"createFolderDescription": "قم بتجميع المقتطفات ذات الصلة معًا.",
"editFolderDescription": "قم بتغيير اسم هذا المجلد أو لونه أو أيقونته.",
"folderColorLabel": "اللون",
"loadFailed": "فشل تحميل المقتطفات",
"importSkipExisting": "استيراد (تخطّي الموجود)",
"importOverwrite": "استيراد (استبدال الموجود)",
"importInvalidFile": "هذا الملف ليس ملف تصدير مقتطفات صالحًا",
"importSuccess": "تم الاستيراد {{imported}}، تم التحديث {{updated}}، تم التخطي {{skipped}}",
"exportSnippets": "مقتطفات التصدير",
"exportSuccess": "تم تصدير مقتطفات",
"exportFailed": "فشل تصدير الأجزاء البرمجية",
"expandAll": "توسيع جميع المجلدات",
"collapseAll": "طي جميع المجلدات",
"docsLink": "الوثائق",
"clearSearch": "مسح البحث",
"noSearchResults": "لم يتم العثور على أي نتائج مطابقة لبحثك",
"emptyTitle": "لا توجد مقتطفات حتى الآن",
"emptyDescription": "احفظ الأوامر التي تقوم بتشغيلها بشكل متكرر، ثم قم بتشغيلها في الطرفية بنقرة واحدة.",
"shareSnippet": "مشاركة المقتطف",
"shareFolder": "مجلد مشترك",
"shareExpiry": "ينتهي",
"shareExpiryOptions": {
"h0": "أبدًا",
"h1": "في غضون ساعة واحدة",
"h24": "في يوم واحد",
"h168": "في غضون 7 أيام",
"h720": "خلال 30 يومًا"
},
"shareButton": "مشاركة",
"shareSuccess": "تمت المشاركة مع {{count}}",
"shareFailed": "فشل في المشاركة",
"shareLoadFailed": "فشل تحميل تفاصيل المشاركة",
"currentAccess": "الوصول الحالي",
"notSharedYet": "لم تتم مشاركتها مع أي شخص حتى الآن",
"revokeAccess": "إبطال",
"revokeSuccess": "تم إبطال الوصول",
"revokeFailed": "فشل إبطال الوصول",
"close": "إغلاق",
"targetHostsLabel": "المضيفون المستهدفون",
"targetHostsHint": "اختر الأجهزة التي تريد تشغيل هذا الأمر عليها مباشرةً، دون فتح نافذة طرفية. اترك الحقل فارغًا لتشغيله في نافذة الطرفية النشطة.",
"clearTargetHosts": "مسح",
"noHostsAvailable": "لا يوجد مضيفون متاحون",
"searchHosts": "ابحث عن مضيفين",
"runOnTargets": "تشغيل على المضيفين المستهدفين",
"executionResultTitle": "نتائج البحث عن \"{{name}}\"",
"executionResultDescription": "مخرجات كل مضيف مستهدف.",
"executionSuccess": "نجاح",
"executionFailed": "فشل",
"directRunSuccess": "تم تشغيل \"{{name}}\" على {{count}} مضيف",
"directRunPartialFail": "فشلت عبارة \"{{name}}\" على بعض المضيفين",
"reorderFailed": "فشل في إعادة ترتيب المقاطع",
"dropToRemoveFromFolder": "أسقط هنا لنقل الملف خارج المجلد",
"shareSnippetTitle": "شارك \"{{name}}\"",
"shareFolderTitle": "مجلد المشاركة \"{{name}}\"",
"shareWith": "مشاركة مع",
"usersTab": "المستخدمون",
"rolesTab": "الأدوار",
"shareSearchPlaceholder": "البحث عن مستخدمين أو أدوار",
"shareNoMatches": "لا توجد نتائج",
"shareWithCount": "شارك مع {{count}}",
"shareFolderHint": "يشارك هذا المجلد جميع المقاطع البرمجية الموجودة فيه. أما المقاطع البرمجية التي تُضاف لاحقاً فلا تتم مشاركتها تلقائياً.",
"shareFolderSummary": "مقتطفات مشتركة {{count}} في هذا المجلد",
"grantedBy": "ممنوح بواسطة",
"expired": "منتهية",
"variablesDialogTitle": "تشغيل \"{{name}}\"",
"variablesDialogDescription": "أدخل القيم التي يحتاجها هذا المقتطف البرمجي قبل تشغيله.",
"variablesPreviewLabel": "معاينة",
"variablesConfirmButton": "تشغيل",
"keybindings": {
"runSnippet": "تشغيل المقتطف البرمجي الحالي",
"snippetLabel": "مقتطف",
"selectSnippet": "حدد جزءًا من التعليمات البرمجية",
"snippetMissing": "لم يتم العثور على المقتطف",
"snippetRequired": "حدد جزءًا من التعليمات البرمجية"
},
"paletteHintRun": "قم بتشغيله في علامة تبويب الطرفية النشطة",
"host": {
"startupTitle": "مقتطف بدء التشغيل",
"quickActionsTitle": "إجراءات سريعة",
"quickActionsDescription": "تظهر الإجراءات السريعة كأزرار في شريط أدوات مقاييس المضيف لتنفيذ الأوامر بنقرة واحدة.",
"noQuickActions": "لا توجد إجراءات سريعة بعد.",
"buttonLabel": "تسمية الزر",
"selectSnippet": "اختر مقتطفًا...",
"addQuickAction": "إضافة إجراء",
"tabTitle": "المقتطفات",
"startupDescription": "يتم تشغيله في الطرفية في كل مرة يتصل فيها بهذا المضيف. يتم ملء متغيرات مثل $HOST ؛ ويتم تخطي جزء يطلب إدخالات.",
"none": "لا شيء",
"removeQuickAction": "إزالة الإجراء السريع"
},
"quickActions": {
"running": "جارٍ تنفيذ {{name}}...",
"succeeded": "تم إكمال {{name}} بنجاح",
"failed": "فشل {{name}}",
"error": "فشل تنفيذ {{name}}"
},
"paletteHintPaste": "الصقي في علامة تبويب الطرفية النشطة",
"targetTerminals": "اركض",
"targetTerminalsHint": "اختياري، وإلا ستكون علامة التبويب النشطة",
"selectAll": "الكل",
"selectNone": "لا شيء"
}
@@ -0,0 +1,235 @@
{
"nav": {
"snippets": "Откъси"
},
"onboarding": {
"feature_snippets": "Откъси",
"feature_snippets_desc": "Запазвайте команди, които изпълнявате често, и ги изпращайте към терминал с едно щракване."
},
"permissions": {
"view": {
"title": "Преглед на фрагменти",
"description": "Вижте вашите собствени фрагменти, бележки и споделени фрагменти."
},
"create": {
"title": "Създаване на фрагменти",
"description": "Създавайте нови фрагменти, бележки и папки."
},
"edit": {
"title": "Редактиране на фрагменти",
"description": "Преименувайте или променете съществуващи фрагменти и папки."
},
"delete": {
"title": "Изтриване на фрагменти",
"description": "Изтрийте фрагменти и папки."
},
"share": {
"title": "Споделяне на фрагменти",
"description": "Споделяйте фрагменти и папки с други потребители или роли."
}
},
"settings": {
"foldersCollapsed": {
"label": "Свиване на папките по подразбиране",
"description": "Започнете всяка папка с фрагменти свита, когато отворите панела „Фрагменти“."
},
"showCommands": {
"label": "Показване на команди",
"description": "Покажете първия ред от командата на всеки фрагмент под неговото име."
},
"confirmExecution": {
"label": "Потвърдете преди стартиране",
"description": "Попитай преди изпълнението на фрагмент от команда в терминал."
}
},
"cancel": "Отказ",
"loading": "Зареждане...",
"searchPlaceholder": "Търсене на фрагменти",
"newFolder": "Нова папка",
"newSnippet": "Нов фрагмент",
"noFolder": "Няма папка",
"noSnippetsInFolder": "Няма фрагменти в тази папка",
"noTerminalTabsOpen": "Няма отворен раздел на терминала",
"run": "Бягане",
"pasteToTerminal": "Поставяне в терминала",
"copySuccess": "Копирано в буферната памет",
"importExport": "Внос / Износ",
"importFailed": "Импортирането на фрагменти не бе успешно",
"nameLabel": "Име",
"namePlaceholder": "Име на фрагмента",
"descriptionLabel": "Описание",
"descriptionPlaceholder": "Незадължително описание",
"folderLabel": "Папка",
"typeLabel": "Тип",
"typeCommand": "Команда",
"typeNote": "Забележка",
"commandLabel": "Команда",
"commandPlaceholder": "Команда за изпълнение, например systemctl status $HOST",
"noteLabel": "Забележка",
"notePlaceholder": "Текст за поставяне в терминала",
"createSnippetTitle": "Създаване на фрагмент",
"createSnippetButton": "Създаване на фрагмент",
"createSuccess": "Фрагментът е създаден",
"createFailed": "Създаването на фрагмент не бе успешно",
"editSnippetTitle": "Редактиране на фрагмент",
"saveSnippetButton": "Запазване на фрагмент",
"updateSuccess": "Фрагментът е актуализиран",
"updateFailed": "Актуализирането на фрагмента не бе успешно",
"deleteFailed": "Изтриването на фрагмента не бе успешно",
"createFolderTitle": "Създаване на папка",
"createFolderButton": "Създаване на папка",
"folderCreateSuccess": "Папката е създадена",
"folderCreateFailed": "Създаването на папка не бе успешно",
"editFolderTitle": "Редактиране на папка",
"saveFolderButton": "Запазване на папката",
"folderEditSuccess": "Папката е актуализирана",
"folderEditFailed": "Актуализирането на папката не бе успешно",
"folderNameLabel": "Име на папката",
"folderNamePlaceholder": "Име на папката",
"folderIconLabel": "Икона",
"folderDeleteSuccess": "Папката е изтрита",
"folderDeleteFailed": "Изтриването на папката не бе успешно",
"confirmRunMessage": "Изпълни „{{name}}“?",
"confirmRunButton": "Бягане",
"runSuccess": "Изпълни „{{name}}“ на {{count}} терминал(и)",
"pasteSuccess": "Поставено е „{{name}}“ в {{count}} терминал(и)",
"admin": {
"tabTitle": "Откъси",
"count": "{{count}} фрагменти",
"add": "Добавяне на фрагмент",
"namePlaceholder": "Име на фрагмента",
"contentPlaceholder": "Съдържание на командата",
"folderPlaceholder": "Папка (по избор)",
"empty": "Този потребител няма фрагменти",
"deleteConfirm": "Да се изтрие ли фрагментът „{{name}}“, принадлежащ на {{username}}?",
"deleted": "Фрагментът е изтрит",
"deleteFailed": "Изтриването на фрагмента не бе успешно",
"requiredFields": "Името и съдържанието на фрагмента са задължителни",
"saved": "Фрагментът е запазен",
"saveFailed": "Запазването на фрагмента не бе успешно",
"saving": "Запазване...",
"save": "Запазване"
},
"backToSnippets": "Обратно към откъси",
"settingsTitle": "Настройки на фрагмента",
"settingsDisplayTitle": "Дисплей",
"settingsBehaviorTitle": "Поведение",
"typeCommandHint": "Изпълнява се в активния терминал.",
"typeNoteHint": "Поставя в активния терминал без да се изпълнява.",
"variablesHint": "Променливи: $HOST, $USER, $PORT, $NAME, ${INPUT_1:Етикет}",
"doubleClickToRun": "Щракнете двукратно, за да стартирате",
"sharedBadge": "Споделено",
"copyToClipboard": "Копиране в клипборда",
"copyFailed": "Копирането в буферната памет не бе успешно",
"moreOptions": "Още опции",
"moreActions": "Още действия",
"moveToFolder": "Преместване в папка",
"deleteSnippet": "Изтриване на фрагмент",
"deleteSnippetConfirm": "Да се изтрие ли фрагментът „{{name}}“?",
"deleteSuccess": "Фрагментът е изтрит",
"delete": "Изтриване",
"folderActions": "Действия с папки",
"addSnippetHere": "Нов фрагмент тук",
"deleteFolder": "Изтриване на папка",
"deleteFolderConfirm": "Да се изтрие ли папка „{{name}}“? Нейните фрагменти ще бъдат преместени извън папката.",
"createFolderDescription": "Групирайте свързани фрагменти заедно.",
"editFolderDescription": "Променете името, цвета или иконата на тази папка.",
"folderColorLabel": "Цвят",
"loadFailed": "Зареждането на фрагменти не бе успешно",
"importSkipExisting": "Импортиране (пропускане на съществуващото)",
"importOverwrite": "Импортиране (презаписване на съществуващо)",
"importInvalidFile": "Този файл не е валиден експорт на фрагменти",
"importSuccess": "Импортирано {{imported}}, актуализирано {{updated}}, пропуснато {{skipped}}",
"exportSnippets": "Експортиране на фрагменти",
"exportSuccess": "Експортирани фрагменти",
"exportFailed": "Експортирането на фрагменти не бе успешно",
"expandAll": "Разгъване на всички папки",
"collapseAll": "Свиване на всички папки",
"docsLink": "Документация",
"clearSearch": "Изчистване на търсенето",
"noSearchResults": "Няма фрагменти, съответстващи на търсенето ви",
"emptyTitle": "Все още няма фрагменти",
"emptyDescription": "Запазете командите, които изпълнявате често, след което ги стартирайте в терминал с едно щракване.",
"shareSnippet": "Споделяне на фрагмент",
"shareFolder": "Споделяне на папка",
"shareExpiry": "Изтича",
"shareExpiryOptions": {
"h0": "Никога",
"h1": "След 1 час",
"h24": "След 1 ден",
"h168": "След 7 дни",
"h720": "След 30 дни"
},
"shareButton": "Споделяне",
"shareSuccess": "Споделено с {{count}}",
"shareFailed": "Споделянето не бе успешно",
"shareLoadFailed": "Зареждането на подробностите за споделянето не бе успешно",
"currentAccess": "Текущ достъп",
"notSharedYet": "Все още не е споделено с никого",
"revokeAccess": "Отмяна",
"revokeSuccess": "Достъпът е отменен",
"revokeFailed": "Неуспешно отменяне на достъпа",
"close": "Затвори",
"targetHostsLabel": "Целеви хостове",
"targetHostsHint": "Изберете хостове, на които да се изпълни тази команда директно, без да е отворен терминал. Оставете празно, за да се изпълни в активния терминал.",
"clearTargetHosts": "Изчисти",
"noHostsAvailable": "Няма налични хостове",
"searchHosts": "Търсене на хостове",
"runOnTargets": "Изпълнява се на целеви хостове",
"executionResultTitle": "Резултати за „{{name}}“",
"executionResultDescription": "Изход от всеки целеви хост.",
"executionSuccess": "Успех",
"executionFailed": "Неуспешно",
"directRunSuccess": "Изпълни „{{name}}“ на {{count}} хост(ове)",
"directRunPartialFail": "„{{name}}“ не успя на някои хостове",
"reorderFailed": "Пренареждането на фрагменти не бе успешно",
"dropToRemoveFromFolder": "Пуснете тук, за да излезете от папката",
"shareSnippetTitle": "Сподели „{{name}}“",
"shareFolderTitle": "Споделяне на папка „{{name}}“",
"shareWith": "Сподели с",
"usersTab": "Потребители",
"rolesTab": "Роли",
"shareSearchPlaceholder": "Търсене на потребители или роли",
"shareNoMatches": "Няма съвпадения",
"shareWithCount": "Сподели с {{count}}",
"shareFolderHint": "Споделя всеки фрагмент в тази папка. Фрагментите, добавени по-късно, не се споделят автоматично.",
"shareFolderSummary": "Споделени {{count}} фрагмент(а) в тази папка",
"grantedBy": "Предоставено от",
"expired": "Изтекъл",
"variablesDialogTitle": "Изпълни „{{name}}“",
"variablesDialogDescription": "Попълнете стойностите, необходими на този фрагмент, преди да го изпълните.",
"variablesPreviewLabel": "Преглед",
"variablesConfirmButton": "Бягане",
"keybindings": {
"runSnippet": "Изпълнете съществуващия фрагмент",
"snippetLabel": "Фрагмент",
"selectSnippet": "Изберете фрагмент",
"snippetMissing": "фрагмент не е намерен",
"snippetRequired": "Изберете фрагмент"
},
"paletteHintRun": "Изпълняване в активния раздел на терминала",
"host": {
"startupTitle": "Стартов фрагмент",
"quickActionsTitle": "Бързи действия",
"quickActionsDescription": "Бързите действия се показват като бутони в лентата с инструменти Host Metrics за изпълнение на команди с едно щракване.",
"noQuickActions": "Все още няма бързи действия.",
"buttonLabel": "Етикет на бутона",
"selectSnippet": "Изберете фрагмент...",
"addQuickAction": "Добавяне на действие",
"tabTitle": "Откъси",
"startupDescription": "Изпълнява се в терминала всеки път, когато се свързва с този хост. Променливи като $HOST се попълват; фрагмент, който изисква входни данни, се пропуска.",
"none": "Няма",
"removeQuickAction": "Премахване на бързо действие"
},
"quickActions": {
"running": "Изпълнява се {{name}}...",
"succeeded": "{{name}} завършено успешно",
"failed": "{{name}} неуспешно",
"error": "Неуспешно изпълнение на {{name}}"
},
"paletteHintPaste": "Поставяне в активния раздел на терминала",
"targetTerminals": "Влизане",
"targetTerminalsHint": "по избор, в противен случай активният раздел",
"selectAll": "Всички",
"selectNone": "Няма"
}
@@ -0,0 +1,235 @@
{
"nav": {
"snippets": "Snippets"
},
"onboarding": {
"feature_snippets": "Snippets",
"feature_snippets_desc": "Save commands you run often and send them to a terminal in one click."
},
"permissions": {
"view": {
"title": "View snippets",
"description": "See your own snippets, notes and shared snippets."
},
"create": {
"title": "Create snippets",
"description": "Create new snippets, notes and folders."
},
"edit": {
"title": "Edit snippets",
"description": "Rename or change existing snippets and folders."
},
"delete": {
"title": "Delete snippets",
"description": "Delete snippets and folders."
},
"share": {
"title": "Share snippets",
"description": "Share snippets and folders with other users or roles."
}
},
"settings": {
"foldersCollapsed": {
"label": "Collapse folders by default",
"description": "Start each snippet folder collapsed when you open the Snippets panel."
},
"showCommands": {
"label": "Show commands",
"description": "Show the first line of each snippet's command under its name."
},
"confirmExecution": {
"label": "Confirm before running",
"description": "Ask before a command snippet runs in a terminal."
}
},
"cancel": "Cancel",
"loading": "Loading...",
"searchPlaceholder": "Search snippets",
"newFolder": "New folder",
"newSnippet": "New snippet",
"noFolder": "No folder",
"noSnippetsInFolder": "No snippets in this folder",
"noTerminalTabsOpen": "No terminal tab is open",
"run": "Run",
"pasteToTerminal": "Paste to terminal",
"copySuccess": "Copied to clipboard",
"importExport": "Import / Export",
"importFailed": "Failed to import snippets",
"nameLabel": "Name",
"namePlaceholder": "Snippet name",
"descriptionLabel": "Description",
"descriptionPlaceholder": "Optional description",
"folderLabel": "Folder",
"typeLabel": "Type",
"typeCommand": "Command",
"typeNote": "Note",
"commandLabel": "Command",
"commandPlaceholder": "Command to run, e.g. systemctl status $HOST",
"noteLabel": "Note",
"notePlaceholder": "Text to paste into the terminal",
"createSnippetTitle": "Create snippet",
"createSnippetButton": "Create snippet",
"createSuccess": "Snippet created",
"createFailed": "Failed to create snippet",
"editSnippetTitle": "Edit snippet",
"saveSnippetButton": "Save snippet",
"updateSuccess": "Snippet updated",
"updateFailed": "Failed to update snippet",
"deleteFailed": "Failed to delete snippet",
"createFolderTitle": "Create folder",
"createFolderButton": "Create folder",
"folderCreateSuccess": "Folder created",
"folderCreateFailed": "Failed to create folder",
"editFolderTitle": "Edit folder",
"saveFolderButton": "Save folder",
"folderEditSuccess": "Folder updated",
"folderEditFailed": "Failed to update folder",
"folderNameLabel": "Folder name",
"folderNamePlaceholder": "Folder name",
"folderIconLabel": "Icon",
"folderDeleteSuccess": "Folder deleted",
"folderDeleteFailed": "Failed to delete folder",
"confirmRunMessage": "Run \"{{name}}\"?",
"confirmRunButton": "Run",
"runSuccess": "Ran \"{{name}}\" on {{count}} terminal(s)",
"pasteSuccess": "Pasted \"{{name}}\" into {{count}} terminal(s)",
"admin": {
"tabTitle": "Snippets",
"count": "{{count}} snippets",
"add": "Add Snippet",
"namePlaceholder": "Snippet name",
"contentPlaceholder": "Command content",
"folderPlaceholder": "Folder (optional)",
"empty": "This user has no snippets",
"deleteConfirm": "Delete snippet \"{{name}}\" belonging to {{username}}?",
"deleted": "Snippet deleted",
"deleteFailed": "Failed to delete snippet",
"requiredFields": "Snippet name and content are required",
"saved": "Snippet saved",
"saveFailed": "Failed to save snippet",
"saving": "Saving...",
"save": "Save"
},
"backToSnippets": "Back to snippets",
"settingsTitle": "Snippet settings",
"settingsDisplayTitle": "Display",
"settingsBehaviorTitle": "Behavior",
"typeCommandHint": "Runs in the active terminal.",
"typeNoteHint": "Pastes into the active terminal without running.",
"variablesHint": "Variables: $HOST, $USER, $PORT, $NAME, ${INPUT_1:Label}",
"doubleClickToRun": "Double click to run",
"sharedBadge": "ভাগ করা হয়েছে",
"copyToClipboard": "Copy to clipboard",
"copyFailed": "Failed to copy to clipboard",
"moreOptions": "More options",
"moreActions": "More actions",
"moveToFolder": "Move to folder",
"deleteSnippet": "Delete snippet",
"deleteSnippetConfirm": "Delete snippet \"{{name}}\"?",
"deleteSuccess": "Snippet deleted",
"delete": "Delete",
"folderActions": "Folder actions",
"addSnippetHere": "New snippet here",
"deleteFolder": "Delete folder",
"deleteFolderConfirm": "Delete folder \"{{name}}\"? Its snippets move out of the folder.",
"createFolderDescription": "Group related snippets together.",
"editFolderDescription": "Change this folder's name, color or icon.",
"folderColorLabel": "Color",
"loadFailed": "Failed to load snippets",
"importSkipExisting": "Import (skip existing)",
"importOverwrite": "Import (overwrite existing)",
"importInvalidFile": "That file is not a valid snippets export",
"importSuccess": "Imported {{imported}}, updated {{updated}}, skipped {{skipped}}",
"exportSnippets": "Export snippets",
"exportSuccess": "Snippets exported",
"exportFailed": "Failed to export snippets",
"expandAll": "Expand all folders",
"collapseAll": "Collapse all folders",
"docsLink": "Documentation",
"clearSearch": "Clear search",
"noSearchResults": "No snippets match your search",
"emptyTitle": "No snippets yet",
"emptyDescription": "Save commands you run often, then run them in a terminal with one click.",
"shareSnippet": "Share snippet",
"shareFolder": "Share folder",
"shareExpiry": "Expires",
"shareExpiryOptions": {
"h0": "Never",
"h1": "In 1 hour",
"h24": "In 1 day",
"h168": "In 7 days",
"h720": "In 30 days"
},
"shareButton": "Share",
"shareSuccess": "Shared with {{count}}",
"shareFailed": "Failed to share",
"shareLoadFailed": "Failed to load sharing details",
"currentAccess": "Current access",
"notSharedYet": "Not shared with anyone yet",
"revokeAccess": "Revoke",
"revokeSuccess": "Access revoked",
"revokeFailed": "অ্যাক্সেস প্রত্যাহার করা যায়নিfdfg",
"close": "Close",
"targetHostsLabel": "Target hosts",
"targetHostsHint": "Pick hosts to run this command on directly, without a terminal open. Leave empty to run it in the active terminal.",
"clearTargetHosts": "Clear",
"noHostsAvailable": "No hosts available",
"searchHosts": "Search hosts",
"runOnTargets": "Run on target hosts",
"executionResultTitle": "Results for \"{{name}}\"",
"executionResultDescription": "Output from each target host.",
"executionSuccess": "Success",
"executionFailed": "Failed",
"directRunSuccess": "Ran \"{{name}}\" on {{count}} host(s)",
"directRunPartialFail": "\"{{name}}\" failed on some hosts",
"reorderFailed": "Failed to reorder snippets",
"dropToRemoveFromFolder": "Drop here to move out of the folder",
"shareSnippetTitle": "Share \"{{name}}\"",
"shareFolderTitle": "Share folder \"{{name}}\"",
"shareWith": "Share with",
"usersTab": "Users",
"rolesTab": "Roles",
"shareSearchPlaceholder": "Search users or roles",
"shareNoMatches": "No matches",
"shareWithCount": "Share with {{count}}",
"shareFolderHint": "Shares every snippet in this folder. Snippets added later are not shared automatically.",
"shareFolderSummary": "Shared {{count}} snippet(s) in this folder",
"grantedBy": "Granted by",
"expired": "Expired",
"variablesDialogTitle": "Run \"{{name}}\"",
"variablesDialogDescription": "Fill in the values this snippet needs before running it.",
"variablesPreviewLabel": "Preview",
"variablesConfirmButton": "Run",
"keybindings": {
"runSnippet": "Run existing snippet",
"snippetLabel": "Snippet",
"selectSnippet": "Select a snippet",
"snippetMissing": "snippet not found",
"snippetRequired": "Select a snippet"
},
"paletteHintRun": "Run in the active terminal tab",
"host": {
"startupTitle": "Startup Snippet",
"quickActionsTitle": "Quick Actions",
"quickActionsDescription": "Quick actions appear as buttons in the Host Metrics toolbar for one-click command execution.",
"noQuickActions": "No quick actions yet.",
"buttonLabel": "Button label",
"selectSnippet": "Select snippet...",
"addQuickAction": "Add Action",
"tabTitle": "Snippets",
"startupDescription": "Runs in the terminal each time it connects to this host. Variables like $HOST are filled in; a snippet that asks for inputs is skipped.",
"none": "None",
"removeQuickAction": "Remove quick action"
},
"quickActions": {
"running": "Executing {{name}}...",
"succeeded": "{{name}} completed successfully",
"failed": "{{name}} failed",
"error": "Failed to execute {{name}}"
},
"paletteHintPaste": "Paste in the active terminal tab",
"targetTerminals": "Run in",
"targetTerminalsHint": "optional, else the active tab",
"selectAll": "All",
"selectNone": "None"
}
@@ -0,0 +1,235 @@
{
"nav": {
"snippets": "Fragments"
},
"onboarding": {
"feature_snippets": "Fragments",
"feature_snippets_desc": "Desa les ordres que executes sovint i envia-les a un terminal amb un sol clic."
},
"permissions": {
"view": {
"title": "Veure fragments",
"description": "Veure els vostres propis fragments, notes i fragments compartits."
},
"create": {
"title": "Crea fragments",
"description": "Crea nous fragments, notes i carpetes."
},
"edit": {
"title": "Edita fragments",
"description": "Canvieu el nom o modifiqueu els fragments i les carpetes existents."
},
"delete": {
"title": "Suprimeix fragments",
"description": "Suprimeix fragments i carpetes."
},
"share": {
"title": "Comparteix fragments",
"description": "Comparteix fragments i carpetes amb altres usuaris o rols."
}
},
"settings": {
"foldersCollapsed": {
"label": "Replega les carpetes per defecte",
"description": "Inicia cada carpeta de fragments reduïda quan obris el panell Fragments."
},
"showCommands": {
"label": "Mostra les ordres",
"description": "Mostra la primera línia de l'ordre de cada fragment sota el seu nom."
},
"confirmExecution": {
"label": "Confirma abans d'executar",
"description": "Pregunta abans que s'executi un fragment d'ordre en un terminal."
}
},
"cancel": "Cancel·la",
"loading": "S'està carregant...",
"searchPlaceholder": "Fragments de cerca",
"newFolder": "Nova carpeta",
"newSnippet": "Nou fragment",
"noFolder": "Sense carpeta",
"noSnippetsInFolder": "No hi ha fragments en aquesta carpeta",
"noTerminalTabsOpen": "No hi ha cap pestanya de terminal oberta",
"run": "Corre",
"pasteToTerminal": "Enganxa al terminal",
"copySuccess": "Copiat al porta-retalls",
"importExport": "Importació / Exportació",
"importFailed": "No s'han pogut importar els fragments",
"nameLabel": "Nom",
"namePlaceholder": "Nom del fragment",
"descriptionLabel": "Descripció",
"descriptionPlaceholder": "Descripció opcional",
"folderLabel": "Carpeta",
"typeLabel": "Tipus",
"typeCommand": "Comandament",
"typeNote": "Nota",
"commandLabel": "Comandament",
"commandPlaceholder": "Ordre per executar, p. ex. systemctl status $HOST",
"noteLabel": "Nota",
"notePlaceholder": "Text per enganxar al terminal",
"createSnippetTitle": "Crea un fragment",
"createSnippetButton": "Crea un fragment",
"createSuccess": "Fragment creat",
"createFailed": "No s'ha pogut crear el fragment",
"editSnippetTitle": "Edita el fragment",
"saveSnippetButton": "Desa el fragment",
"updateSuccess": "Fragment actualitzat",
"updateFailed": "No s'ha pogut actualitzar el fragment",
"deleteFailed": "No s'ha pogut suprimir el fragment",
"createFolderTitle": "Crea una carpeta",
"createFolderButton": "Crea una carpeta",
"folderCreateSuccess": "Carpeta creada",
"folderCreateFailed": "No s'ha pogut crear la carpeta",
"editFolderTitle": "Edita la carpeta",
"saveFolderButton": "Desa la carpeta",
"folderEditSuccess": "Carpeta actualitzada",
"folderEditFailed": "No s'ha pogut actualitzar la carpeta",
"folderNameLabel": "Nom de la carpeta",
"folderNamePlaceholder": "Nom de la carpeta",
"folderIconLabel": "Icona",
"folderDeleteSuccess": "Carpeta suprimida",
"folderDeleteFailed": "No s'ha pogut suprimir la carpeta",
"confirmRunMessage": "Executar \"{{name}}\"?",
"confirmRunButton": "Corre",
"runSuccess": "Ha executat \"{{name}}\" al(s) terminal(s) {{count}}",
"pasteSuccess": "S'ha enganxat \"{{name}}\" al(s) terminal(s) {{count}}",
"admin": {
"tabTitle": "Fragments",
"count": "{{count}} fragments",
"add": "Afegeix un fragment",
"namePlaceholder": "Nom del fragment",
"contentPlaceholder": "Contingut de l'ordre",
"folderPlaceholder": "Carpeta (opcional)",
"empty": "Aquest usuari no té fragments",
"deleteConfirm": "Voleu suprimir el fragment \"{{name}}\" pertanyent a {{username}}?",
"deleted": "Fragment suprimit",
"deleteFailed": "No s'ha pogut suprimir el fragment",
"requiredFields": "El nom i el contingut del fragment són obligatoris",
"saved": "Fragment desat",
"saveFailed": "No s'ha pogut desar el fragment",
"saving": "Desant...",
"save": "Desa"
},
"backToSnippets": "Torna a fragments",
"settingsTitle": "Configuració del fragment",
"settingsDisplayTitle": "Pantalla",
"settingsBehaviorTitle": "Comportament",
"typeCommandHint": "S'executa al terminal actiu.",
"typeNoteHint": "Enganxa al terminal actiu sense executar-se.",
"variablesHint": "Variables: $HOST, $USER, $PORT, $NAME, ${INPUT_1:Etiqueta}",
"doubleClickToRun": "Feu doble clic per executar",
"sharedBadge": "Compartit",
"copyToClipboard": "Copia al porta-retalls",
"copyFailed": "No s'ha pogut copiar al porta-retalls",
"moreOptions": "Més opcions",
"moreActions": "Més accions",
"moveToFolder": "Mou a la carpeta",
"deleteSnippet": "Suprimeix el fragment",
"deleteSnippetConfirm": "Voleu suprimir el fragment \"{{name}}\"?",
"deleteSuccess": "Fragment suprimit",
"delete": "Suprimeix",
"folderActions": "Accions de carpeta",
"addSnippetHere": "Nou fragment aquí",
"deleteFolder": "Suprimeix la carpeta",
"deleteFolderConfirm": "Suprimeix la carpeta \"{{name}}\"? Els seus fragments es mouen fora de la carpeta.",
"createFolderDescription": "Agrupa fragments relacionats.",
"editFolderDescription": "Canvia el nom, el color o la icona d'aquesta carpeta.",
"folderColorLabel": "Color",
"loadFailed": "No s'han pogut carregar els fragments",
"importSkipExisting": "Importa (omet els existents)",
"importOverwrite": "Importa (sobreescriu l'existent)",
"importInvalidFile": "Aquest fitxer no és una exportació de fragments vàlida.",
"importSuccess": "Importat {{imported}}, actualitzat {{updated}}, omès {{skipped}}",
"exportSnippets": "Exporta fragments",
"exportSuccess": "Fragments exportats",
"exportFailed": "No s'han pogut exportar els fragments",
"expandAll": "Expandir totes les carpetes",
"collapseAll": "Replega totes les carpetes",
"docsLink": "Documentació",
"clearSearch": "Esborra la cerca",
"noSearchResults": "No hi ha fragments que coincideixin amb la teva cerca",
"emptyTitle": "Encara no hi ha fragments",
"emptyDescription": "Desa les ordres que executes sovint i després executa-les en un terminal amb un sol clic.",
"shareSnippet": "Comparteix fragment",
"shareFolder": "Compartir carpeta",
"shareExpiry": "Caduca",
"shareExpiryOptions": {
"h0": "Mai",
"h1": "En 1 hora",
"h24": "En 1 dia",
"h168": "En 7 dies",
"h720": "En 30 dies"
},
"shareButton": "Comparteix",
"shareSuccess": "Compartit amb {{count}}",
"shareFailed": "No s'ha pogut compartir",
"shareLoadFailed": "No s'han pogut carregar els detalls de compartició",
"currentAccess": "Accés actual",
"notSharedYet": "Encara no s'ha compartit amb ningú",
"revokeAccess": "Revocar",
"revokeSuccess": "Accés revocat",
"revokeFailed": "No s'ha pogut revocar l'accés",
"close": "Tanca",
"targetHostsLabel": "Amfitrions de destinació",
"targetHostsHint": "Trieu els hosts on executar aquesta ordre directament, sense un terminal obert. Deixeu-ho en blanc per executar-la al terminal actiu.",
"clearTargetHosts": "Clar",
"noHostsAvailable": "No hi ha amfitrions disponibles",
"searchHosts": "Cerca amfitrions",
"runOnTargets": "Executar en els amfitrions de destinació",
"executionResultTitle": "Resultats per a \"{{name}}\"",
"executionResultDescription": "Sortida de cada amfitrió de destinació.",
"executionSuccess": "Èxit",
"executionFailed": "Fallat",
"directRunSuccess": "Ha executat \"{{name}}\" en {{count}} host(s)",
"directRunPartialFail": "\"{{name}}\" ha fallat en alguns hosts",
"reorderFailed": "No s'han pogut reordenar els fragments",
"dropToRemoveFromFolder": "Deixa anar aquí per sortir de la carpeta",
"shareSnippetTitle": "Comparteix \"{{name}}\"",
"shareFolderTitle": "Comparteix la carpeta \"{{name}}\"",
"shareWith": "Comparteix amb",
"usersTab": "Usuaris",
"rolesTab": "Rols",
"shareSearchPlaceholder": "Cerca usuaris o rols",
"shareNoMatches": "Sense coincidències",
"shareWithCount": "Comparteix amb {{count}}",
"shareFolderHint": "Comparteix tots els fragments d'aquesta carpeta. Els fragments afegits més tard no es comparteixen automàticament.",
"shareFolderSummary": "Fragments compartits {{count}} en aquesta carpeta",
"grantedBy": "Atorgat per",
"expired": "Caducat",
"variablesDialogTitle": "Executa \"{{name}}\"",
"variablesDialogDescription": "Empleneu els valors que necessita aquest fragment abans d'executar-lo.",
"variablesPreviewLabel": "Vista prèvia",
"variablesConfirmButton": "Corre",
"keybindings": {
"runSnippet": "Executa el fragment existent",
"snippetLabel": "Fragment",
"selectSnippet": "Selecciona un fragment",
"snippetMissing": "fragment no trobat",
"snippetRequired": "Selecciona un fragment"
},
"paletteHintRun": "Executar a la pestanya activa del terminal",
"host": {
"startupTitle": "Fragment d'inici",
"quickActionsTitle": "Accions ràpides",
"quickActionsDescription": "Les accions ràpides apareixen com a botons a la barra d'eines de mètriques de l'amfitrió per executar ordres amb un sol clic.",
"noQuickActions": "Encara no hi ha accions ràpides.",
"buttonLabel": "Etiqueta del botó",
"selectSnippet": "Selecciona un fragment...",
"addQuickAction": "Afegeix una acció",
"tabTitle": "Fragments",
"startupDescription": "S'executa al terminal cada vegada que es connecta a aquest host. Les variables com ara $HOST s'omplen; un fragment que demana entrades s'omet.",
"none": "Cap",
"removeQuickAction": "Elimina l'acció ràpida"
},
"quickActions": {
"running": "Executant {{name}}...",
"succeeded": "{{name}} s'ha completat correctament",
"failed": "{{name}} ha fallat",
"error": "No s'ha pogut executar {{name}}"
},
"paletteHintPaste": "Enganxa a la pestanya activa del terminal",
"targetTerminals": "Entrada",
"targetTerminalsHint": "opcional, si no, la pestanya activa",
"selectAll": "Tot",
"selectNone": "Cap"
}
@@ -0,0 +1,235 @@
{
"nav": {
"snippets": "Úryvky"
},
"onboarding": {
"feature_snippets": "Úryvky",
"feature_snippets_desc": "Uložte si často spouštíné příkazy a odešlete je do terminálu jedním kliknutím."
},
"permissions": {
"view": {
"title": "Zobrazit úryvky",
"description": "Prohlédněte si své vlastní úryvky, poznámky a sdílené úryvky."
},
"create": {
"title": "Vytvořit úryvky",
"description": "Vytvořte nové úryvky, poznámky a složky."
},
"edit": {
"title": "Upravit úryvky",
"description": "Přejmenujte nebo změňte existující úryvky a složky."
},
"delete": {
"title": "Smazat úryvky",
"description": "Smazat úryvky a složky."
},
"share": {
"title": "Sdílet úryvky",
"description": "Sdílejte úryvky a složky s ostatními uživateli nebo rolemi."
}
},
"settings": {
"foldersCollapsed": {
"label": "Sbalit složky ve výchozím nastavení",
"description": "Spuštění každé složky úryvků kódu sbalené při otevření panelu Úryvky kódu."
},
"showCommands": {
"label": "Zobrazit příkazy",
"description": "Zobrazit první řádek příkazu každého úryvku pod jeho názvem."
},
"confirmExecution": {
"label": "Potvrďte před spuštěním",
"description": "Zeptat se před spuštěním úryvku příkazu v terminálu."
}
},
"cancel": "Zrušit",
"loading": "Načítání...",
"searchPlaceholder": "Hledat úryvky",
"newFolder": "Nová složka",
"newSnippet": "Nový úryvek",
"noFolder": "Žádná složka",
"noSnippetsInFolder": "V této složce nejsou žádné úryvky",
"noTerminalTabsOpen": "Není otevřená žádná záložka terminálu",
"run": "Běh",
"pasteToTerminal": "Vložit do terminálu",
"copySuccess": "Zkopírováno do schránky",
"importExport": "Import / Export",
"importFailed": "Import úryvků se nezdařilo",
"nameLabel": "Jméno",
"namePlaceholder": "Název úryvku",
"descriptionLabel": "Popis",
"descriptionPlaceholder": "Volitelný popis",
"folderLabel": "Složka",
"typeLabel": "Typ",
"typeCommand": "Příkaz",
"typeNote": "Poznámka",
"commandLabel": "Příkaz",
"commandPlaceholder": "Příkaz ke spuštění, např. systemctl status $HOST",
"noteLabel": "Poznámka",
"notePlaceholder": "Text k vložení do terminálu",
"createSnippetTitle": "Vytvořit úryvek",
"createSnippetButton": "Vytvořit úryvek",
"createSuccess": "Úryvek vytvořen",
"createFailed": "Nepodařilo se vytvořit úryvek",
"editSnippetTitle": "Upravit úryvek",
"saveSnippetButton": "Uložit úryvek",
"updateSuccess": "Úryvek aktualizován",
"updateFailed": "Nepodařilo se aktualizovat úryvek",
"deleteFailed": "Nepodařilo se odstranit úryvek",
"createFolderTitle": "Vytvořit složku",
"createFolderButton": "Vytvořit složku",
"folderCreateSuccess": "Složka vytvořena",
"folderCreateFailed": "Nepodařilo se vytvořit složku",
"editFolderTitle": "Upravit složku",
"saveFolderButton": "Uložit složku",
"folderEditSuccess": "Složka aktualizována",
"folderEditFailed": "Nepodařilo se aktualizovat složku",
"folderNameLabel": "Název složky",
"folderNamePlaceholder": "Název složky",
"folderIconLabel": "Ikona",
"folderDeleteSuccess": "Složka smazána",
"folderDeleteFailed": "Složku se nepodařilo smazat",
"confirmRunMessage": "Spustit „{{name}}“?",
"confirmRunButton": "Běh",
"runSuccess": "Spuštěno „{{name}}“ na terminálu(ech) {{count}}",
"pasteSuccess": "Vloženo „{{name}}“ do terminálu(ů) {{count}}",
"admin": {
"tabTitle": "Úryvky",
"count": "úryvky {{count}}",
"add": "Přidat úryvek",
"namePlaceholder": "Název úryvku",
"contentPlaceholder": "Obsah příkazu",
"folderPlaceholder": "Složka (volitelné)",
"empty": "Tento uživatel nemá žádné úryvky",
"deleteConfirm": "Smazat úryvek „{{name}}“ patřící do {{username}}?",
"deleted": "Úryvek smazán",
"deleteFailed": "Nepodařilo se odstranit úryvek",
"requiredFields": "Název a obsah úryvku jsou povinné",
"saved": "Úryvek uložen",
"saveFailed": "Uložení úryvku se nezdařilo",
"saving": "Ukládání…",
"save": "Uložit"
},
"backToSnippets": "Zpět k úryvkům",
"settingsTitle": "Nastavení úryvků",
"settingsDisplayTitle": "Zobrazit",
"settingsBehaviorTitle": "Chování",
"typeCommandHint": "Běží v aktivním terminálu.",
"typeNoteHint": "Vloží do aktivního terminálu bez spuštění.",
"variablesHint": "Proměnné: $HOST, $USER, $PORT, $NAME, ${INPUT_1:Popis}",
"doubleClickToRun": "Dvojitým kliknutím spustíte",
"sharedBadge": "Sdílené",
"copyToClipboard": "Kopírovat do schránky",
"copyFailed": "Kopírování do schránky se nezdařilo",
"moreOptions": "Více možností",
"moreActions": "Další akce",
"moveToFolder": "Přesunout do složky",
"deleteSnippet": "Smazat úryvek",
"deleteSnippetConfirm": "Smazat úryvek „{{name}}“?",
"deleteSuccess": "Úryvek smazán",
"delete": "Vymazat",
"folderActions": "Akce se složkou",
"addSnippetHere": "Nový úryvek zde",
"deleteFolder": "Smazat složku",
"deleteFolderConfirm": "Smazat složku „{{name}}“? Její úryvky se přesunou mimo složku.",
"createFolderDescription": "Seskupte související úryvky.",
"editFolderDescription": "Změňte název, barvu nebo ikonu této složky.",
"folderColorLabel": "Barva",
"loadFailed": "Načtení úryvků se nezdařilo",
"importSkipExisting": "Importovat (přeskočit existující)",
"importOverwrite": "Importovat (přepsat existující)",
"importInvalidFile": "Tento soubor není platným exportem úryvků.",
"importSuccess": "Importováno {{imported}}, aktualizováno {{updated}}, přeskočeno {{skipped}}",
"exportSnippets": "Exportovat úryvky",
"exportSuccess": "Exportované úryvky",
"exportFailed": "Export úryvků se nezdařilo",
"expandAll": "Rozbalit všechny složky",
"collapseAll": "Sbalit všechny složky",
"docsLink": "Dokumentace",
"clearSearch": "Vymazat vyhledávání",
"noSearchResults": "Žádné úryvky neodpovídají vašemu vyhledávání",
"emptyTitle": "Zatím žádné úryvky",
"emptyDescription": "Uložte si často spouštíné příkazy a poté je spusťte v terminálu jedním kliknutím.",
"shareSnippet": "Sdílet úryvek",
"shareFolder": "Sdílet složku",
"shareExpiry": "Platnost vyprší",
"shareExpiryOptions": {
"h0": "Nikdy",
"h1": "Za 1 hodinu",
"h24": "Za 1 den",
"h168": "Za 7 dní",
"h720": "Za 30 dní"
},
"shareButton": "Podíl",
"shareSuccess": "Sdíleno s {{count}}",
"shareFailed": "Sdílení se nezdařilo",
"shareLoadFailed": "Nepodařilo se načíst podrobnosti o sdílení",
"currentAccess": "Aktuální přístup",
"notSharedYet": "Zatím s nikým nesdíleno",
"revokeAccess": "Zrušit",
"revokeSuccess": "Přístup zrušen",
"revokeFailed": "Zrušení přístupu se nezdařilo",
"close": "Blízko",
"targetHostsLabel": "Cílové hostitele",
"targetHostsHint": "Vyberte hostitele, na kterých se má tento příkaz spustit přímo, bez otevřeného terminálu. Pro spuštění v aktivním terminálu ponechte pole prázdné.",
"clearTargetHosts": "Jasný",
"noHostsAvailable": "Nejsou dostupní žádní hostitelé",
"searchHosts": "Vyhledávání hostitelů",
"runOnTargets": "Spustit na cílových hostitelích",
"executionResultTitle": "Výsledky pro „{{name}}“",
"executionResultDescription": "Výstup z každého cílového hostitele.",
"executionSuccess": "Úspěch",
"executionFailed": "Selhalo",
"directRunSuccess": "Spuštěno „{{name}}“ na hostiteli(ích) {{count}}",
"directRunPartialFail": "„{{name}}“ selhalo na některých hostitelích",
"reorderFailed": "Nepodařilo se změnit pořadí úryvků",
"dropToRemoveFromFolder": "Přetáhněte sem pro přesun ze složky",
"shareSnippetTitle": "Sdílet „{{name}}“",
"shareFolderTitle": "Sdílet složku „{{name}}“",
"shareWith": "Sdílet s",
"usersTab": "Uživatelé",
"rolesTab": "Role",
"shareSearchPlaceholder": "Vyhledávání uživatelů nebo rolí",
"shareNoMatches": "Žádné shody",
"shareWithCount": "Sdílet s {{count}}",
"shareFolderHint": "Sdílí všechny úryvky v této složce. Úryvky přidané později se nesdílejí automaticky.",
"shareFolderSummary": "Sdílené úryvky kódu {{count}} v této složce",
"grantedBy": "Uděleno",
"expired": "Platnost vypršela",
"variablesDialogTitle": "Spustit „{{name}}“",
"variablesDialogDescription": "Před spuštěním úryvku kódu vyplňte jeho potřebné hodnoty.",
"variablesPreviewLabel": "Náhled",
"variablesConfirmButton": "Běh",
"keybindings": {
"runSnippet": "Spustit existující úryvek kódu",
"snippetLabel": "Úryvek",
"selectSnippet": "Vyberte úryvek",
"snippetMissing": "úryvek nenalezen",
"snippetRequired": "Vyberte úryvek"
},
"paletteHintRun": "Spustit v aktivní kartě terminálu",
"host": {
"startupTitle": "Spustit úryvek",
"quickActionsTitle": "Rychlé akce",
"quickActionsDescription": "Rychlé akce se zobrazují jako tlačítka v panelu nástrojů Metriky hostitele pro spuštění příkazů jedním kliknutím.",
"noQuickActions": "Zatím žádné rychlé akce.",
"buttonLabel": "Štítek tlačítka",
"selectSnippet": "Vybrat úryvek...",
"addQuickAction": "Přidat akci",
"tabTitle": "Úryvky",
"startupDescription": "Spustí se v terminálu při každém připojení k tomuto hostiteli. Proměnné jako $HOST jsou vyplněny; úryvek kódu, který požaduje vstupy, je přeskočen.",
"none": "Žádný",
"removeQuickAction": "Odebrat rychlou akci"
},
"quickActions": {
"running": "Spouštění {{name}}...",
"succeeded": "{{name}} úspěšně dokončeno",
"failed": "{{name}} selhalo",
"error": "Nepodařilo se spustit {{name}}"
},
"paletteHintPaste": "Vložit do aktivní záložky terminálu",
"targetTerminals": "Zaběhnout",
"targetTerminalsHint": "volitelné, jinak aktivní záložka",
"selectAll": "Vše",
"selectNone": "Žádný"
}
@@ -0,0 +1,235 @@
{
"nav": {
"snippets": "Uddrag"
},
"onboarding": {
"feature_snippets": "Uddrag",
"feature_snippets_desc": "Gem kommandoer, du kører ofte, og send dem til en terminal med et enkelt klik."
},
"permissions": {
"view": {
"title": "Se uddrag",
"description": "Se dine egne uddrag, noter og delte uddrag."
},
"create": {
"title": "Opret uddrag",
"description": "Opret nye uddrag, noter og mapper."
},
"edit": {
"title": "Rediger uddrag",
"description": "Omdøb eller rediger eksisterende uddrag og mapper."
},
"delete": {
"title": "Slet uddrag",
"description": "Slet uddrag og mapper."
},
"share": {
"title": "Del uddrag",
"description": "Del uddrag og mapper med andre brugere eller roller."
}
},
"settings": {
"foldersCollapsed": {
"label": "Skjul mapper som standard",
"description": "Start hver uddragsmappe skjult, når du åbner panelet Uddrag."
},
"showCommands": {
"label": "Vis kommandoer",
"description": "Vis den første linje af hver kodestykkets kommando under dens navn."
},
"confirmExecution": {
"label": "Bekræft før kørsel",
"description": "Spørg før et kommandosnipp kører i en terminal."
}
},
"cancel": "Ophæve",
"loading": "Indlæser...",
"searchPlaceholder": "Søgeuddrag",
"newFolder": "Ny mappe",
"newSnippet": "Nyt uddrag",
"noFolder": "Ingen mappe",
"noSnippetsInFolder": "Ingen uddrag i denne mappe",
"noTerminalTabsOpen": "Ingen terminalfane er åben",
"run": "Løbe",
"pasteToTerminal": "Indsæt i terminalen",
"copySuccess": "Kopieret til udklipsholderen",
"importExport": "Import/eksport",
"importFailed": "Kunne ikke importere uddrag",
"nameLabel": "Navn",
"namePlaceholder": "Snippetnavn",
"descriptionLabel": "Beskrivelse",
"descriptionPlaceholder": "Valgfri beskrivelse",
"folderLabel": "Folder",
"typeLabel": "Type",
"typeCommand": "Kommando",
"typeNote": "Note",
"commandLabel": "Kommando",
"commandPlaceholder": "Kommando til at køre, f.eks. systemctl status $HOST",
"noteLabel": "Note",
"notePlaceholder": "Tekst, der skal indsættes i terminalen",
"createSnippetTitle": "Opret uddrag",
"createSnippetButton": "Opret uddrag",
"createSuccess": "Uddrag oprettet",
"createFailed": "Kunne ikke oprette kodestykket",
"editSnippetTitle": "Rediger uddrag",
"saveSnippetButton": "Gem uddrag",
"updateSuccess": "Uddrag opdateret",
"updateFailed": "Kunne ikke opdatere uddraget",
"deleteFailed": "Kunne ikke slette uddraget",
"createFolderTitle": "Opret mappe",
"createFolderButton": "Opret mappe",
"folderCreateSuccess": "Mappe oprettet",
"folderCreateFailed": "Kunne ikke oprette en mappe",
"editFolderTitle": "Rediger mappe",
"saveFolderButton": "Gem mappe",
"folderEditSuccess": "Mappen er opdateret",
"folderEditFailed": "Mappen kunne ikke opdateres",
"folderNameLabel": "Mappenavn",
"folderNamePlaceholder": "Mappenavn",
"folderIconLabel": "Ikon",
"folderDeleteSuccess": "Mappe slettet",
"folderDeleteFailed": "Kunne ikke slette mappen",
"confirmRunMessage": "Kør \"{{name}}\"?",
"confirmRunButton": "Løbe",
"runSuccess": "Kørte \"{{name}}\" på {{count}} terminal(er)",
"pasteSuccess": "Indsatte \"{{name}}\" i {{count}} terminal(er)",
"admin": {
"tabTitle": "Uddrag",
"count": "{{count}} uddrag",
"add": "Tilføj uddrag",
"namePlaceholder": "Snippetnavn",
"contentPlaceholder": "Kommandoindhold",
"folderPlaceholder": "Mappe (valgfrit)",
"empty": "Denne bruger har ingen uddrag",
"deleteConfirm": "Slet uddraget \"{{name}}\" der tilhører {{username}}?",
"deleted": "Uddrag slettet",
"deleteFailed": "Kunne ikke slette uddraget",
"requiredFields": "Navn og indhold på uddrag er påkrævet",
"saved": "Uddrag gemt",
"saveFailed": "Kunne ikke gemme uddraget",
"saving": "Gemmer...",
"save": "Spare"
},
"backToSnippets": "Tilbage til uddrag",
"settingsTitle": "Indstillinger for uddrag",
"settingsDisplayTitle": "Vise",
"settingsBehaviorTitle": "Opførsel",
"typeCommandHint": "Kører i den aktive terminal.",
"typeNoteHint": "Indsætter i den aktive terminal uden at køre.",
"variablesHint": "Variabler: $HOST, $USER, $PORT, $NAME, ${INPUT_1:Label}",
"doubleClickToRun": "Dobbeltklik for at køre",
"sharedBadge": "Delt",
"copyToClipboard": "Kopiér til udklipsholder",
"copyFailed": "Kunne ikke kopiere til udklipsholder",
"moreOptions": "Flere muligheder",
"moreActions": "Flere handlinger",
"moveToFolder": "Flyt til mappe",
"deleteSnippet": "Slet uddrag",
"deleteSnippetConfirm": "Slet uddraget \"{{name}}\"?",
"deleteSuccess": "Uddrag slettet",
"delete": "Slet",
"folderActions": "Mappehandlinger",
"addSnippetHere": "Nyt uddrag her",
"deleteFolder": "Slet mappe",
"deleteFolderConfirm": "Slet mappen \"{{name}}\"? Dens uddrag flyttes ud af mappen.",
"createFolderDescription": "Gruppér relaterede uddrag sammen.",
"editFolderDescription": "Skift denne mappes navn, farve eller ikon.",
"folderColorLabel": "Farve",
"loadFailed": "Kunne ikke indlæse uddrag",
"importSkipExisting": "Importér (spring eksisterende over)",
"importOverwrite": "Importér (overskriv eksisterende)",
"importInvalidFile": "Den fil er ikke en gyldig eksport af kodestykker",
"importSuccess": "Importeret {{imported}}, opdateret {{updated}}, sprunget over {{skipped}}",
"exportSnippets": "Eksportér uddrag",
"exportSuccess": "Eksporterede uddrag",
"exportFailed": "Kunne ikke eksportere uddrag",
"expandAll": "Udvid alle mapper",
"collapseAll": "Skjul alle mapper",
"docsLink": "Dokumentation",
"clearSearch": "Ryd søgning",
"noSearchResults": "Ingen uddrag matcher din søgning",
"emptyTitle": "Ingen uddrag endnu",
"emptyDescription": "Gem kommandoer, du kører ofte, og kør dem derefter i en terminal med et enkelt klik.",
"shareSnippet": "Del uddrag",
"shareFolder": "Del mappe",
"shareExpiry": "Udløber",
"shareExpiryOptions": {
"h0": "Aldrig",
"h1": "Om 1 time",
"h24": "Om 1 dag",
"h168": "Om 7 dage",
"h720": "Om 30 dage"
},
"shareButton": "Dele",
"shareSuccess": "Delt med {{count}}",
"shareFailed": "Kunne ikke dele",
"shareLoadFailed": "Delingsoplysningerne kunne ikke indlæses",
"currentAccess": "Nuværende adgang",
"notSharedYet": "Ikke delt med nogen endnu",
"revokeAccess": "Tilbagekald",
"revokeSuccess": "Adgang tilbagekaldt",
"revokeFailed": "Adgang kunne ikke tilbagekaldes",
"close": "Tæt",
"targetHostsLabel": "Mål værter",
"targetHostsHint": "Vælg værter, som denne kommando skal køres direkte på, uden en terminal åben. Lad feltet stå tomt for at køre den i den aktive terminal.",
"clearTargetHosts": "Klar",
"noHostsAvailable": "Ingen værter tilgængelige",
"searchHosts": "Søg efter værter",
"runOnTargets": "Kør på målværter",
"executionResultTitle": "Resultater for \"{{name}}\"",
"executionResultDescription": "Output fra hver målvært.",
"executionSuccess": "Succes",
"executionFailed": "Mislykkedes",
"directRunSuccess": "Kørte \"{{name}}\" på {{count}} vært(er)",
"directRunPartialFail": "\"{{name}}\" mislykkedes på nogle værter",
"reorderFailed": "Kunne ikke omarrangere uddrag",
"dropToRemoveFromFolder": "Slip her for at flytte ud af mappen",
"shareSnippetTitle": "Del \"{{name}}\"",
"shareFolderTitle": "Del mappe \"{{name}}\"",
"shareWith": "Del med",
"usersTab": "Brugere",
"rolesTab": "Roller",
"shareSearchPlaceholder": "Søg efter brugere eller roller",
"shareNoMatches": "Ingen matches",
"shareWithCount": "Del med {{count}}",
"shareFolderHint": "Deler alle uddrag i denne mappe. Uddrag, der tilføjes senere, deles ikke automatisk.",
"shareFolderSummary": "Delte {{count}} kodestykker i denne mappe",
"grantedBy": "Tildelt af",
"expired": "Udløbet",
"variablesDialogTitle": "Kør \"{{name}}\"",
"variablesDialogDescription": "Udfyld de værdier, som dette kodestykke skal bruge, før det køres.",
"variablesPreviewLabel": "Forhåndsvisning",
"variablesConfirmButton": "Løbe",
"keybindings": {
"runSnippet": "Kør eksisterende kodestykke",
"snippetLabel": "Uddrag",
"selectSnippet": "Vælg et uddrag",
"snippetMissing": "uddrag ikke fundet",
"snippetRequired": "Vælg et uddrag"
},
"paletteHintRun": "Kør i den aktive terminalfane",
"host": {
"startupTitle": "Opstartskodestykke",
"quickActionsTitle": "Hurtige handlinger",
"quickActionsDescription": "Hurtige handlinger vises som knapper i værktøjslinjen Host Metrics til udførelse af kommandoer med et enkelt klik.",
"noQuickActions": "Ingen hurtige handlinger endnu.",
"buttonLabel": "Knapmærke",
"selectSnippet": "Vælg uddrag...",
"addQuickAction": "Tilføj handling",
"tabTitle": "Uddrag",
"startupDescription": "Kører i terminalen hver gang den opretter forbindelse til denne vært. Variabler som $HOST udfyldes; et kodestykke, der beder om input, springes over.",
"none": "Ingen",
"removeQuickAction": "Fjern hurtig handling"
},
"quickActions": {
"running": "Udfører {{name}}...",
"succeeded": "{{name}} gennemført",
"failed": "{{name}} mislykkedes",
"error": "Kunne ikke udføre {{name}}"
},
"paletteHintPaste": "Indsæt i den aktive terminalfane",
"targetTerminals": "Kør ind",
"targetTerminalsHint": "valgfrit, ellers den aktive fane",
"selectAll": "Alle",
"selectNone": "Ingen"
}
@@ -0,0 +1,235 @@
{
"nav": {
"snippets": "Snippets"
},
"onboarding": {
"feature_snippets": "Snippets",
"feature_snippets_desc": "Speichern Sie häufig ausgeführte Befehle und senden Sie sie mit einem Klick an ein Terminal."
},
"permissions": {
"view": {
"title": "Ausschnitte ansehen",
"description": "Sehen Sie Ihre eigenen Ausschnitte, Notizen und geteilten Ausschnitte."
},
"create": {
"title": "Code-Snippets erstellen",
"description": "Neue Snippets, Notizen und Ordner erstellen."
},
"edit": {
"title": "Bearbeitungs-Snippets",
"description": "Vorhandene Snippets und Ordner umbenennen oder ändern."
},
"delete": {
"title": "Code-Snippets löschen",
"description": "Snippets und Ordner löschen."
},
"share": {
"title": "Ausschnitte teilen",
"description": "Teilen Sie Codeausschnitte und Ordner mit anderen Benutzern oder Rollen."
}
},
"settings": {
"foldersCollapsed": {
"label": "Ordner standardmäßig einklappen",
"description": "Beim Öffnen des Snippets-Panels sind alle Snippet-Ordner standardmäßig ausgeblendet."
},
"showCommands": {
"label": "Befehle anzeigen",
"description": "Zeigen Sie die erste Zeile des Befehls jedes Code-Snippets unter dessen Namen an."
},
"confirmExecution": {
"label": "Vor dem Ausführen bestätigen.",
"description": "Fragen Sie vor der Ausführung eines Befehlsabschnitts im Terminal nach."
}
},
"cancel": "Abbrechen",
"loading": "Laden...",
"searchPlaceholder": "Snippets durchsuchen",
"newFolder": "Neuer Ordner",
"newSnippet": "Neuer Ausschnitt",
"noFolder": "Kein Ordner",
"noSnippetsInFolder": "Keine Snippets in diesem Ordner",
"noTerminalTabsOpen": "Es ist kein Terminal-Tab geöffnet.",
"run": "Ausführen",
"pasteToTerminal": "In Terminal einfügen",
"copySuccess": "In die Zwischenablage kopiert",
"importExport": "Import / Export",
"importFailed": "Snippets konnten nicht importiert werden",
"nameLabel": "Name",
"namePlaceholder": "Snippet-Name",
"descriptionLabel": "Beschreibung",
"descriptionPlaceholder": "Optionale Beschreibung",
"folderLabel": "Ordner",
"typeLabel": "Typ",
"typeCommand": "Befehl",
"typeNote": "Notiz",
"commandLabel": "Befehl",
"commandPlaceholder": "Auszuführender Befehl, z. B. systemctl status $HOST",
"noteLabel": "Notiz",
"notePlaceholder": "Text, der in das Terminal eingefügt werden soll",
"createSnippetTitle": "Snippet erstellen",
"createSnippetButton": "Snippet erstellen",
"createSuccess": "Snippet erstellt",
"createFailed": "Erstellen des Snippets fehlgeschlagen",
"editSnippetTitle": "Ausschnitt bearbeiten",
"saveSnippetButton": "Ausschnitt speichern",
"updateSuccess": "Ausschnitt aktualisiert",
"updateFailed": "Aktualisieren des Snippets fehlgeschlagen",
"deleteFailed": "Löschen des Snippets fehlgeschlagen",
"createFolderTitle": "Ordner erstellen",
"createFolderButton": "Ordner erstellen",
"folderCreateSuccess": "Ordner erstellt",
"folderCreateFailed": "Erstellen des Ordners fehlgeschlagen",
"editFolderTitle": "Ordner bearbeiten",
"saveFolderButton": "Ordner speichern",
"folderEditSuccess": "Ordner aktualisiert",
"folderEditFailed": "Aktualisieren des Ordners fehlgeschlagen",
"folderNameLabel": "Ordnername",
"folderNamePlaceholder": "Ordnername",
"folderIconLabel": "Symbol",
"folderDeleteSuccess": "Ordner gelöscht",
"folderDeleteFailed": "Löschen des Ordners fehlgeschlagen",
"confirmRunMessage": "„{{name}}“ ausführen?",
"confirmRunButton": "Ausführen",
"runSuccess": "Ran \"{{name}}\" on {{count}} terminal(s)",
"pasteSuccess": "\"{{name}}\" wurde in das/die Terminal(s) {{count}} eingefügt",
"admin": {
"tabTitle": "Snippets",
"count": "{{count}} Snippets",
"add": "Snippet hinzufügen",
"namePlaceholder": "Snippet-Name",
"contentPlaceholder": "Befehlsinhalt",
"folderPlaceholder": "Ordner (optional)",
"empty": "Dieser Benutzer hat keine Snippets",
"deleteConfirm": "Snippet \"{{name}}\" von {{username}} löschen?",
"deleted": "Snippet gelöscht",
"deleteFailed": "Löschen des Snippets fehlgeschlagen",
"requiredFields": "Name und Inhalt des Snippets sind erforderlich",
"saved": "Snippet gespeichert",
"saveFailed": "Fehler beim Speichern des Snippets",
"saving": "Speichern...",
"save": "Speichern"
},
"backToSnippets": "Zurück zu den Ausschnitten",
"settingsTitle": "Snippet-Einstellungen",
"settingsDisplayTitle": "Anzeige",
"settingsBehaviorTitle": "Verhalten",
"typeCommandHint": "Wird im aktiven Terminal ausgeführt.",
"typeNoteHint": "Fügt den Inhalt in das aktive Terminal ein, ohne es auszuführen.",
"variablesHint": "Variablen: $HOST, $USER, $PORT, $NAME, ${INPUT_1:Label}",
"doubleClickToRun": "Doppelklicken zum Ausführen",
"sharedBadge": "Freigegeben",
"copyToClipboard": "In die Zwischenablage kopieren",
"copyFailed": "Kopieren in die Zwischenablage fehlgeschlagen",
"moreOptions": "Mehr Optionen",
"moreActions": "Weitere Aktionen",
"moveToFolder": "In Ordner verschieben",
"deleteSnippet": "Ausschnitt löschen",
"deleteSnippetConfirm": "Ausschnitt löschen \"{{name}}\"?",
"deleteSuccess": "Snippet gelöscht",
"delete": "Löschen",
"folderActions": "Ordneraktionen",
"addSnippetHere": "Neuer Ausschnitt hier",
"deleteFolder": "Ordner löschen",
"deleteFolderConfirm": "Ordner \"{{name}}\" löschen? Seine Snippets werden aus dem Ordner verschoben.",
"createFolderDescription": "Zusammengehörige Textbausteine gruppieren.",
"editFolderDescription": "Ändern Sie den Namen, die Farbe oder das Symbol dieses Ordners.",
"folderColorLabel": "Farbe",
"loadFailed": "Snippets konnten nicht geladen werden",
"importSkipExisting": "Importieren (Bestehende überspringen)",
"importOverwrite": "Importieren (vorhandene Daten überschreiben)",
"importInvalidFile": "Diese Datei ist kein gültiger Snippet-Export.",
"importSuccess": "Importiert {{imported}}, aktualisiert {{updated}}, übersprungen {{skipped}}",
"exportSnippets": "Export-Snippets",
"exportSuccess": "Ausschnitte exportiert",
"exportFailed": "Snippets konnten nicht exportiert werden",
"expandAll": "Alle Ordner ausklappen",
"collapseAll": "Alle Ordner einklappen",
"docsLink": "Dokumentation",
"clearSearch": "Suche löschen",
"noSearchResults": "Keine Suchergebnisse entsprechen Ihrer Suche",
"emptyTitle": "Noch keine Ausschnitte.",
"emptyDescription": "Speichern Sie häufig verwendete Befehle und führen Sie diese dann mit einem Klick im Terminal aus.",
"shareSnippet": "Ausschnitt teilen",
"shareFolder": "Ordner freigeben",
"shareExpiry": "Läuft ab",
"shareExpiryOptions": {
"h0": "Nie",
"h1": "In 1 Stunde",
"h24": "In 1 Tag",
"h168": "In 7 Tagen",
"h720": "In 30 Tagen"
},
"shareButton": "Teilen",
"shareSuccess": "Geteilt mit {{count}}",
"shareFailed": "Übermittlung fehlgeschlagen",
"shareLoadFailed": "Die Freigabedetails konnten nicht geladen werden.",
"currentAccess": "Aktueller Zugriff",
"notSharedYet": "Noch mit niemandem geteilt",
"revokeAccess": "Widerrufen",
"revokeSuccess": "Zugriff widerrufen",
"revokeFailed": "Zugriff konnte nicht widerrufen werden",
"close": "Schließen",
"targetHostsLabel": "Zielhosts",
"targetHostsHint": "Wählen Sie die Hosts aus, auf denen dieser Befehl direkt, ohne geöffnetes Terminal, ausgeführt werden soll. Lassen Sie das Feld leer, um ihn im aktiven Terminal auszuführen.",
"clearTargetHosts": "Löschen",
"noHostsAvailable": "Keine Hosts verfügbar",
"searchHosts": "Hosts suchen",
"runOnTargets": "Auf den Zielhosts ausführen",
"executionResultTitle": "Ergebnisse für \"{{name}}\"",
"executionResultDescription": "Ausgabe von jedem Zielhost.",
"executionSuccess": "Erfolgreich",
"executionFailed": "Fehlgeschlagen",
"directRunSuccess": "\"{{name}}\" auf {{count}} Host(s) ausgeführt",
"directRunPartialFail": "\"{{name}}\" schlug auf einigen Hosts fehl.",
"reorderFailed": "Fehler beim Neuanordnen der Codeausschnitte",
"dropToRemoveFromFolder": "Hierhin ziehen, um den Ordner zu verlassen",
"shareSnippetTitle": "Teilen \"{{name}}\"",
"shareFolderTitle": "Ordner freigeben \"{{name}}\"",
"shareWith": "Teilen mit",
"usersTab": "Benutzer",
"rolesTab": "Rollen",
"shareSearchPlaceholder": "Benutzer oder Rollen suchen",
"shareNoMatches": "Keine Übereinstimmungen",
"shareWithCount": "Teilen mit {{count}}",
"shareFolderHint": "Teilt alle Code-Snippets in diesem Ordner. Später hinzugefügte Snippets werden nicht automatisch geteilt.",
"shareFolderSummary": "Gemeinsame {{count}} Codeausschnitte in diesem Ordner",
"grantedBy": "Freigegeben von",
"expired": "Abgelaufen",
"variablesDialogTitle": "Run \"{{name}}\"",
"variablesDialogDescription": "Füllen Sie die für diesen Codeabschnitt erforderlichen Werte aus, bevor Sie ihn ausführen.",
"variablesPreviewLabel": "Vorschau",
"variablesConfirmButton": "Ausführen",
"keybindings": {
"runSnippet": "Vorhandenen Codeausschnitt ausführen",
"snippetLabel": "Ausschnitt",
"selectSnippet": "Wählen Sie einen Ausschnitt aus",
"snippetMissing": "Ausschnitt nicht gefunden",
"snippetRequired": "Wählen Sie einen Ausschnitt aus"
},
"paletteHintRun": "Im aktiven Terminal-Tab ausführen",
"host": {
"startupTitle": "Startup-Snippet",
"quickActionsTitle": "Schnellaktionen",
"quickActionsDescription": "Schnellaktionen erscheinen als Schaltflächen in der Host-Metriken-Symbolleiste zur Ausführung von Befehlen mit einem Klick.",
"noQuickActions": "Noch keine Schnellaktionen.",
"buttonLabel": "Schaltflächenbeschriftung",
"selectSnippet": "Snippet auswählen...",
"addQuickAction": "Aktion hinzufügen",
"tabTitle": "Snippets",
"startupDescription": "Wird bei jeder Verbindung zu diesem Host im Terminal ausgeführt. Variablen wie $HOST werden ausgefüllt; ein Codeabschnitt, der nach Eingaben fragt, wird übersprungen.",
"none": "Keine",
"removeQuickAction": "Schnellaktion entfernen"
},
"quickActions": {
"running": "{{name}} wird ausgeführt...",
"succeeded": "{{name}} erfolgreich abgeschlossen",
"failed": "{{name}} fehlgeschlagen",
"error": "Fehler beim Ausführen von {{name}}"
},
"paletteHintPaste": "Fügen Sie es im aktiven Terminal-Tab ein.",
"targetTerminals": "Laufen",
"targetTerminalsHint": "optional, ansonsten der aktive Tab",
"selectAll": "Alle",
"selectNone": "Keine"
}
@@ -0,0 +1,235 @@
{
"nav": {
"snippets": "Αποσπάσματα"
},
"onboarding": {
"feature_snippets": "Αποσπάσματα",
"feature_snippets_desc": "Αποθηκεύστε τις εντολές που εκτελείτε συχνά και στείλτε τις σε ένα τερματικό με ένα κλικ."
},
"permissions": {
"view": {
"title": "Προβολή αποσπασμάτων",
"description": "Δείτε τα δικά σας αποσπάσματα, σημειώσεις και κοινόχρηστα αποσπάσματα."
},
"create": {
"title": "Δημιουργία αποσπασμάτων",
"description": "Δημιουργήστε νέα αποσπάσματα, σημειώσεις και φακέλους."
},
"edit": {
"title": "Επεξεργασία αποσπασμάτων",
"description": "Μετονομάστε ή αλλάξτε υπάρχοντα αποσπάσματα και φακέλους."
},
"delete": {
"title": "Διαγραφή αποσπασμάτων",
"description": "Διαγραφή αποσπασμάτων και φακέλων."
},
"share": {
"title": "Κοινή χρήση αποσπασμάτων",
"description": "Κοινή χρήση αποσπασμάτων και φακέλων με άλλους χρήστες ή ρόλους."
}
},
"settings": {
"foldersCollapsed": {
"label": "Σύμπτυξη φακέλων από προεπιλογή",
"description": "Ξεκινήστε κάθε φάκελο αποσπάσματος συμπτυγμένο όταν ανοίγετε τον πίνακα Αποσπάσματα."
},
"showCommands": {
"label": "Εμφάνιση εντολών",
"description": "Εμφανίστε την πρώτη γραμμή της εντολής κάθε τμήματος κώδικα κάτω από το όνομά της."
},
"confirmExecution": {
"label": "Επιβεβαίωση πριν από την εκτέλεση",
"description": "Ερώτηση πριν από την εκτέλεση ενός αποσπάσματος εντολής σε ένα τερματικό."
}
},
"cancel": "Ματαίωση",
"loading": "Φόρτωση...",
"searchPlaceholder": "Αναζήτηση αποσπασμάτων",
"newFolder": "Νέος φάκελος",
"newSnippet": "Νέο απόσπασμα",
"noFolder": "Δεν υπάρχει φάκελος",
"noSnippetsInFolder": "Δεν υπάρχουν αποσπάσματα σε αυτόν τον φάκελο",
"noTerminalTabsOpen": "Δεν υπάρχει ανοιχτή καρτέλα τερματικού",
"run": "Τρέξιμο",
"pasteToTerminal": "Επικόλληση στο τερματικό",
"copySuccess": "Αντιγράφηκε στο πρόχειρο",
"importExport": "Εισαγωγή / Εξαγωγή",
"importFailed": "Η εισαγωγή αποσπασμάτων απέτυχε",
"nameLabel": "Ονομα",
"namePlaceholder": "Όνομα αποσπάσματος",
"descriptionLabel": "Περιγραφή",
"descriptionPlaceholder": "Προαιρετική περιγραφή",
"folderLabel": "Ντοσιέ",
"typeLabel": "Τύπος",
"typeCommand": "Εντολή",
"typeNote": "Σημείωμα",
"commandLabel": "Εντολή",
"commandPlaceholder": "Εντολή για εκτέλεση, π.χ. systemctl status $HOST",
"noteLabel": "Σημείωμα",
"notePlaceholder": "Κείμενο για επικόλληση στο τερματικό",
"createSnippetTitle": "Δημιουργία αποσπάσματος",
"createSnippetButton": "Δημιουργία αποσπάσματος",
"createSuccess": "Δημιουργήθηκε απόσπασμα",
"createFailed": "Η δημιουργία αποσπάσματος απέτυχε",
"editSnippetTitle": "Επεξεργασία αποσπάσματος",
"saveSnippetButton": "Αποθήκευση αποσπάσματος",
"updateSuccess": "Το απόσπασμα ενημερώθηκε",
"updateFailed": "Η ενημέρωση του αποσπάσματος απέτυχε",
"deleteFailed": "Η διαγραφή του αποσπάσματος απέτυχε",
"createFolderTitle": "Δημιουργία φακέλου",
"createFolderButton": "Δημιουργία φακέλου",
"folderCreateSuccess": "Ο φάκελος δημιουργήθηκε",
"folderCreateFailed": "Η δημιουργία φακέλου απέτυχε",
"editFolderTitle": "Επεξεργασία φακέλου",
"saveFolderButton": "Αποθήκευση φακέλου",
"folderEditSuccess": "Ο φάκελος ενημερώθηκε",
"folderEditFailed": "Η ενημέρωση του φακέλου απέτυχε",
"folderNameLabel": "Όνομα φακέλου",
"folderNamePlaceholder": "Όνομα φακέλου",
"folderIconLabel": "Εικόνισμα",
"folderDeleteSuccess": "Ο φάκελος διαγράφηκε",
"folderDeleteFailed": "Η διαγραφή του φακέλου απέτυχε",
"confirmRunMessage": "Εκτέλεση \"{{name}}\";",
"confirmRunButton": "Τρέξιμο",
"runSuccess": "Εκτέλεση \"{{name}}\" σε {{count}} τερματικό(α)",
"pasteSuccess": "Επικολλήθηκε το \"{{name}}\" σε {{count}} τερματικό(α)",
"admin": {
"tabTitle": "Αποσπάσματα",
"count": "{{count}} αποσπάσματα",
"add": "Προσθήκη αποσπάσματος",
"namePlaceholder": "Όνομα αποσπάσματος",
"contentPlaceholder": "Περιεχόμενο εντολών",
"folderPlaceholder": "Φάκελος (προαιρετικό)",
"empty": "Αυτός ο χρήστης δεν έχει αποσπάσματα",
"deleteConfirm": "Διαγραφή αποσπάσματος \"{{name}}\" που ανήκει στο {{username}};",
"deleted": "Το απόσπασμα διαγράφηκε",
"deleteFailed": "Η διαγραφή του αποσπάσματος απέτυχε",
"requiredFields": "Απαιτούνται το όνομα και το περιεχόμενο του αποσπάσματος",
"saved": "Το απόσπασμα αποθηκεύτηκε",
"saveFailed": "Η αποθήκευση του αποσπάσματος απέτυχε",
"saving": "Οικονομία...",
"save": "Εκτός"
},
"backToSnippets": "Επιστροφή στα αποσπάσματα",
"settingsTitle": "Ρυθμίσεις αποσπάσματος",
"settingsDisplayTitle": "Επίδειξη",
"settingsBehaviorTitle": "Συμπεριφορά",
"typeCommandHint": "Εκτελείται στο ενεργό τερματικό.",
"typeNoteHint": "Επικολλά στο ενεργό τερματικό χωρίς να εκτελείται.",
"variablesHint": "Μεταβλητές: $HOST, $USER, $PORT, $NAME, ${INPUT_1:Label}",
"doubleClickToRun": "Κάντε διπλό κλικ για εκτέλεση",
"sharedBadge": "Κοινόχρηστο",
"copyToClipboard": "Αντιγραφή στο πρόχειρο",
"copyFailed": "Η αντιγραφή στο πρόχειρο απέτυχε",
"moreOptions": "Περισσότερες επιλογές",
"moreActions": "Περισσότερες ενέργειες",
"moveToFolder": "Μετακίνηση σε φάκελο",
"deleteSnippet": "Διαγραφή αποσπάσματος",
"deleteSnippetConfirm": "Διαγραφή αποσπάσματος \"{{name}}\";",
"deleteSuccess": "Το απόσπασμα διαγράφηκε",
"delete": "Διαγράφω",
"folderActions": "Ενέργειες φακέλου",
"addSnippetHere": "Νέο απόσπασμα εδώ",
"deleteFolder": "Διαγραφή φακέλου",
"deleteFolderConfirm": "Διαγραφή φακέλου \"{{name}}\"; Τα αποσπάσματά του μετακινούνται εκτός του φακέλου.",
"createFolderDescription": "Ομαδοποιήστε σχετικά αποσπάσματα.",
"editFolderDescription": "Αλλάξτε το όνομα, το χρώμα ή το εικονίδιο αυτού του φακέλου.",
"folderColorLabel": "Χρώμα",
"loadFailed": "Η φόρτωση αποσπασμάτων απέτυχε",
"importSkipExisting": "Εισαγωγή (παράλειψη υπαρχόντων)",
"importOverwrite": "Εισαγωγή (αντικατάσταση υπαρχόντων)",
"importInvalidFile": "Αυτό το αρχείο δεν αποτελεί έγκυρη εξαγωγή αποσπασμάτων (snippets)",
"importSuccess": "Εισήχθη {{imported}}, ενημερώθηκε {{updated}}, παραλείφθηκε {{skipped}}",
"exportSnippets": "Εξαγωγή αποσπασμάτων",
"exportSuccess": "Αποσπάσματα που εξήχθησαν",
"exportFailed": "Η εξαγωγή αποσπασμάτων απέτυχε",
"expandAll": "Ανάπτυξη όλων των φακέλων",
"collapseAll": "Σύμπτυξη όλων των φακέλων",
"docsLink": "Απόδειξη με έγγραφα",
"clearSearch": "Εκκαθάριση αναζήτησης",
"noSearchResults": "Δεν υπάρχουν αποσπάσματα που να αντιστοιχούν στην αναζήτησή σας",
"emptyTitle": "Δεν υπάρχουν ακόμη αποσπάσματα",
"emptyDescription": "Αποθηκεύστε τις εντολές που εκτελείτε συχνά και, στη συνέχεια, εκτελέστε τες σε ένα τερματικό με ένα κλικ.",
"shareSnippet": "Κοινή χρήση αποσπάσματος",
"shareFolder": "Κοινή χρήση φακέλου",
"shareExpiry": "Λήγει",
"shareExpiryOptions": {
"h0": "Ποτέ",
"h1": "Σε 1 ώρα",
"h24": "Σε 1 ημέρα",
"h168": "Σε 7 ημέρες",
"h720": "Σε 30 ημέρες"
},
"shareButton": "Μερίδιο",
"shareSuccess": "Κοινοποιημένο με {{count}}",
"shareFailed": "Η κοινοποίηση απέτυχε",
"shareLoadFailed": "Αποτυχία φόρτωσης λεπτομερειών κοινής χρήσης",
"currentAccess": "Τρέχουσα πρόσβαση",
"notSharedYet": "Δεν έχει κοινοποιηθεί ακόμη σε κανέναν",
"revokeAccess": "Ανακαλώ",
"revokeSuccess": "Η πρόσβαση ανακλήθηκε",
"revokeFailed": "Η ανάκληση της πρόσβασης απέτυχε",
"close": "Κοντά",
"targetHostsLabel": "Στοχευμένοι οικοδεσπότες",
"targetHostsHint": "Επιλέξτε κεντρικούς υπολογιστές στους οποίους θα εκτελεστεί αυτή η εντολή απευθείας, χωρίς να είναι ανοιχτό κάποιο τερματικό. Αφήστε το κενό για να την εκτελέσετε στο ενεργό τερματικό.",
"clearTargetHosts": "Σαφής",
"noHostsAvailable": "Δεν υπάρχουν διαθέσιμοι κεντρικοί υπολογιστές",
"searchHosts": "Αναζήτηση κεντρικών υπολογιστών",
"runOnTargets": "Εκτέλεση σε κεντρικούς υπολογιστές-στόχους",
"executionResultTitle": "Αποτελέσματα για \"{{name}}\"",
"executionResultDescription": "Έξοδος από κάθε κεντρικό υπολογιστή-στόχο.",
"executionSuccess": "Επιτυχία",
"executionFailed": "Αποτυχημένος",
"directRunSuccess": "Εκτέλεση \"{{name}}\" σε {{count}} κεντρικό υπολογιστή (ή κεντρικούς υπολογιστές)",
"directRunPartialFail": "Το \"{{name}}\" απέτυχε σε ορισμένους κεντρικούς υπολογιστές",
"reorderFailed": "Η αναδιάταξη των αποσπασμάτων απέτυχε",
"dropToRemoveFromFolder": "Αποθέστε εδώ για να μετακινηθείτε εκτός του φακέλου",
"shareSnippetTitle": "Κοινή χρήση \"{{name}}\"",
"shareFolderTitle": "Κοινόχρηστος φάκελος \"{{name}}\"",
"shareWith": "Κοινοποίηση με",
"usersTab": "Χρήστες",
"rolesTab": "Ρόλοι",
"shareSearchPlaceholder": "Αναζήτηση χρηστών ή ρόλων",
"shareNoMatches": "Δεν υπάρχουν αντιστοιχίσεις",
"shareWithCount": "Κοινοποίηση με {{count}}",
"shareFolderHint": "Κοινοποιεί κάθε απόσπασμα σε αυτόν τον φάκελο. Τα αποσπάσματα που προστίθενται αργότερα δεν κοινοποιούνται αυτόματα.",
"shareFolderSummary": "Κοινόχρηστο {{count}} απόσπασμα(-τα) σε αυτόν τον φάκελο",
"grantedBy": "Χορηγήθηκε από",
"expired": "Λήξη",
"variablesDialogTitle": "Εκτέλεση \"{{name}}\"",
"variablesDialogDescription": "Συμπληρώστε τις τιμές που χρειάζεται αυτό το τμήμα κώδικα πριν το εκτελέσετε.",
"variablesPreviewLabel": "Πρεμιέρα",
"variablesConfirmButton": "Τρέξιμο",
"keybindings": {
"runSnippet": "Εκτέλεση υπάρχοντος αποσπάσματος",
"snippetLabel": "Απόσπασμα",
"selectSnippet": "Επιλέξτε ένα απόσπασμα",
"snippetMissing": "το απόσπασμα δεν βρέθηκε",
"snippetRequired": "Επιλέξτε ένα απόσπασμα"
},
"paletteHintRun": "Εκτέλεση στην ενεργή καρτέλα τερματικού",
"host": {
"startupTitle": "Απόσπασμα εκκίνησης",
"quickActionsTitle": "Γρήγορες ενέργειες",
"quickActionsDescription": "Οι γρήγορες ενέργειες εμφανίζονται ως κουμπιά στη γραμμή εργαλείων Μετρήσεων κεντρικού υπολογιστή για εκτέλεση εντολών με ένα κλικ.",
"noQuickActions": "Δεν υπάρχουν ακόμη γρήγορες ενέργειες.",
"buttonLabel": "Ετικέτα κουμπιού",
"selectSnippet": "Επιλογή αποσπάσματος...",
"addQuickAction": "Προσθήκη ενέργειας",
"tabTitle": "Αποσπάσματα",
"startupDescription": "Εκτελείται στο τερματικό κάθε φορά που συνδέεται με αυτόν τον κεντρικό υπολογιστή. Μεταβλητές όπως $HOST συμπληρώνονται. Ένα τμήμα κώδικα που ζητά δεδομένα εισόδου παραλείπεται.",
"none": "Κανένας",
"removeQuickAction": "Κατάργηση γρήγορης ενέργειας"
},
"quickActions": {
"running": "Εκτέλεση {{name}}...",
"succeeded": "{{name}} ολοκληρώθηκε με επιτυχία",
"failed": "{{name}} απέτυχε",
"error": "Αποτυχία εκτέλεσης {{name}}"
},
"paletteHintPaste": "Επικόλληση στην ενεργή καρτέλα τερματικού",
"targetTerminals": "Τρέξιμο μέσα",
"targetTerminalsHint": "προαιρετικά, διαφορετικά η ενεργή καρτέλα",
"selectAll": "Ολοι",
"selectNone": "Κανένας"
}
@@ -0,0 +1,235 @@
{
"nav": {
"snippets": "Fragmentos"
},
"onboarding": {
"feature_snippets": "Snippets",
"feature_snippets_desc": "Guarda los comandos que ejecutas con frecuencia y envíalos a una terminal con un solo clic."
},
"permissions": {
"view": {
"title": "Ver fragmentos",
"description": "Consulta tus propios fragmentos, notas y fragmentos compartidos."
},
"create": {
"title": "Crear fragmentos",
"description": "Crea nuevos fragmentos, notas y carpetas."
},
"edit": {
"title": "Editar fragmentos",
"description": "Cambiar el nombre o modificar los fragmentos y carpetas existentes."
},
"delete": {
"title": "Eliminar fragmentos",
"description": "Eliminar fragmentos y carpetas."
},
"share": {
"title": "Compartir fragmentos",
"description": "Comparta fragmentos y carpetas con otros usuarios o roles."
}
},
"settings": {
"foldersCollapsed": {
"label": "Contraer carpetas por defecto",
"description": "Al abrir el panel de fragmentos, cada carpeta de fragmentos aparecerá contraída."
},
"showCommands": {
"label": "Mostrar comandos",
"description": "Muestra la primera línea del comando de cada fragmento debajo de su nombre."
},
"confirmExecution": {
"label": "Confirmar antes de ejecutar",
"description": "Pregunte antes de ejecutar un fragmento de comando en una terminal."
}
},
"cancel": "Cancelar",
"loading": "Cargando...",
"searchPlaceholder": "Buscar fragmentos",
"newFolder": "Nueva carpeta",
"newSnippet": "Nuevo fragmento",
"noFolder": "Sin carpeta",
"noSnippetsInFolder": "No hay fragmentos en esta carpeta",
"noTerminalTabsOpen": "No hay ninguna pestaña de terminal abierta.",
"run": "Ejecutar",
"pasteToTerminal": "Pegar en la terminal",
"copySuccess": "Copiado al portapapeles",
"importExport": "Importar / Exportar",
"importFailed": "Error al importar los fragmentos",
"nameLabel": "Nombre",
"namePlaceholder": "Nombre del fragmento",
"descriptionLabel": "Descripción",
"descriptionPlaceholder": "Descripción opcional",
"folderLabel": "Carpeta",
"typeLabel": "Tipo",
"typeCommand": "Comando",
"typeNote": "Nota",
"commandLabel": "Comando",
"commandPlaceholder": "Comando a ejecutar, por ejemplo systemctl status $HOST",
"noteLabel": "Nota",
"notePlaceholder": "Texto para pegar en la terminal",
"createSnippetTitle": "Crear fragmento",
"createSnippetButton": "Crear fragmento",
"createSuccess": "Fragmento creado",
"createFailed": "No se pudo crear el fragmento",
"editSnippetTitle": "Editar fragmento",
"saveSnippetButton": "Guardar fragmento",
"updateSuccess": "Fragmento actualizado",
"updateFailed": "No se pudo actualizar el fragmento",
"deleteFailed": "No se pudo eliminar el fragmento",
"createFolderTitle": "Crear carpeta",
"createFolderButton": "Crear carpeta",
"folderCreateSuccess": "Carpeta creada",
"folderCreateFailed": "No se pudo crear la carpeta",
"editFolderTitle": "Editar carpeta",
"saveFolderButton": "Guardar carpeta",
"folderEditSuccess": "Carpeta actualizada",
"folderEditFailed": "No se pudo actualizar la carpeta",
"folderNameLabel": "Nombre de la carpeta",
"folderNamePlaceholder": "Nombre de la carpeta",
"folderIconLabel": "Icono",
"folderDeleteSuccess": "Carpeta eliminada",
"folderDeleteFailed": "No se pudo eliminar la carpeta",
"confirmRunMessage": "¿Ejecutar \"{{name}}\"?",
"confirmRunButton": "Ejecutar",
"runSuccess": "Se ejecutó \"{{name}}\" en {{count}} terminal(es)",
"pasteSuccess": "Se pegó \"{{name}}\" en {{count}} terminal(es)",
"admin": {
"tabTitle": "Snippets",
"count": "{{count}} fragmentos",
"add": "Añadir fragmento",
"namePlaceholder": "Nombre del fragmento",
"contentPlaceholder": "Contenido del comando",
"folderPlaceholder": "Carpeta (opcional)",
"empty": "Este usuario no tiene fragmentos",
"deleteConfirm": "¿Eliminar fragmento \"{{name}}\" de {{username}}?",
"deleted": "Fragmento eliminado",
"deleteFailed": "No se pudo eliminar el fragmento",
"requiredFields": "El nombre y el contenido del fragmento son obligatorios",
"saved": "Fragmento guardado",
"saveFailed": "Error al guardar fragmento",
"saving": "Guardando...",
"save": "Guardar"
},
"backToSnippets": "Volver a los fragmentos",
"settingsTitle": "Configuración del fragmento",
"settingsDisplayTitle": "Mostrar",
"settingsBehaviorTitle": "Comportamiento",
"typeCommandHint": "Se ejecuta en la terminal activa.",
"typeNoteHint": "Se pega en la terminal activa sin ejecutarse.",
"variablesHint": "Variables: $HOST, $USER, $PORT, $NAME, ${INPUT_1:Label}",
"doubleClickToRun": "Haz doble clic para ejecutar",
"sharedBadge": "Compartido",
"copyToClipboard": "Copiar al portapapeles",
"copyFailed": "Error al copiar al portapapeles",
"moreOptions": "Más opciones",
"moreActions": "Más acciones",
"moveToFolder": "Mover a carpeta",
"deleteSnippet": "Eliminar fragmento",
"deleteSnippetConfirm": "¿Eliminar fragmento \"{{name}}\"?",
"deleteSuccess": "Fragmento eliminado",
"delete": "Eliminar",
"folderActions": "Acciones de carpeta",
"addSnippetHere": "Nuevo fragmento aquí",
"deleteFolder": "Eliminar carpeta",
"deleteFolderConfirm": "¿Eliminar la carpeta \"{{name}}\"? Sus fragmentos se moverán fuera de la carpeta.",
"createFolderDescription": "Agrupa los fragmentos relacionados.",
"editFolderDescription": "Cambia el nombre, el color o el icono de esta carpeta.",
"folderColorLabel": "Color",
"loadFailed": "No se pudieron cargar los fragmentos.",
"importSkipExisting": "Importar (omitir existentes)",
"importOverwrite": "Importar (sobrescribir existente)",
"importInvalidFile": "Ese archivo no es una exportación de fragmentos válida.",
"importSuccess": "Importado {{imported}}, actualizado {{updated}}, omitido {{skipped}}",
"exportSnippets": "Exportar fragmentos",
"exportSuccess": "Fragmentos exportados",
"exportFailed": "Error al exportar los fragmentos",
"expandAll": "Expandir todas las carpetas",
"collapseAll": "Contraer todas las carpetas",
"docsLink": "Documentación",
"clearSearch": "Borrar búsqueda",
"noSearchResults": "No se encontraron fragmentos que coincidan con su búsqueda.",
"emptyTitle": "Aún no hay fragmentos",
"emptyDescription": "Guarda los comandos que uses con frecuencia y ejecútalos en la terminal con un solo clic.",
"shareSnippet": "Compartir fragmento",
"shareFolder": "Carpeta compartida",
"shareExpiry": "Expira",
"shareExpiryOptions": {
"h0": "Nunca",
"h1": "En 1 hora",
"h24": "En 1 día",
"h168": "En 7 días",
"h720": "En 30 días"
},
"shareButton": "Compartir",
"shareSuccess": "Compartido con {{count}}",
"shareFailed": "No se pudo compartir",
"shareLoadFailed": "No se pudieron cargar los detalles de uso compartido.",
"currentAccess": "Acceso actual",
"notSharedYet": "Aún no lo he compartido con nadie.",
"revokeAccess": "Revocar",
"revokeSuccess": "Acceso revocado",
"revokeFailed": "Error al revocar el acceso",
"close": "Cerrar",
"targetHostsLabel": "Anfitriones objetivo",
"targetHostsHint": "Seleccione los hosts en los que desea ejecutar este comando directamente, sin tener una terminal abierta. Deje el campo vacío para ejecutarlo en la terminal activa.",
"clearTargetHosts": "Limpiar",
"noHostsAvailable": "No hay anfitriones disponibles",
"searchHosts": "Buscar hosts",
"runOnTargets": "Ejecutar en los hosts de destino",
"executionResultTitle": "Resultados para \"{{name}}\"",
"executionResultDescription": "Salida de cada host de destino.",
"executionSuccess": "Éxito",
"executionFailed": "Fallido",
"directRunSuccess": "Se ejecutó \"{{name}}\" en {{count}} host(s)",
"directRunPartialFail": "\"{{name}}\" falló en algunos hosts",
"reorderFailed": "No se pudieron reordenar los fragmentos.",
"dropToRemoveFromFolder": "Arrastra aquí para salir de la carpeta.",
"shareSnippetTitle": "Compartir \"{{name}}\"",
"shareFolderTitle": "Compartir carpeta \"{{name}}\"",
"shareWith": "Compartir con",
"usersTab": "Usuarios",
"rolesTab": "Roles",
"shareSearchPlaceholder": "Buscar usuarios o roles",
"shareNoMatches": "No hay coincidencias",
"shareWithCount": "Compartir con {{count}}",
"shareFolderHint": "Comparte todos los fragmentos de esta carpeta. Los fragmentos añadidos posteriormente no se comparten automáticamente.",
"shareFolderSummary": "Fragmento(s) compartido(s) {{count}} en esta carpeta",
"grantedBy": "Concedido por",
"expired": "Caducado",
"variablesDialogTitle": "Ejecutar \"{{name}}\"",
"variablesDialogDescription": "Rellena los valores que necesita este fragmento de código antes de ejecutarlo.",
"variablesPreviewLabel": "Vista previa",
"variablesConfirmButton": "Ejecutar",
"keybindings": {
"runSnippet": "Ejecutar el fragmento existente",
"snippetLabel": "Retazo",
"selectSnippet": "Seleccione un fragmento",
"snippetMissing": "Fragmento no encontrado",
"snippetRequired": "Seleccione un fragmento"
},
"paletteHintRun": "Ejecutar en la pestaña de terminal activa",
"host": {
"startupTitle": "Fragmento de inicio",
"quickActionsTitle": "Acciones rápidas",
"quickActionsDescription": "Las acciones rápidas aparecen como botones en la barra de herramientas de Métricas del host para la ejecución de comandos con un solo clic.",
"noQuickActions": "Aún no hay acciones rápidas.",
"buttonLabel": "Etiqueta del botón",
"selectSnippet": "Seleccionar fragmento...",
"addQuickAction": "Añadir acción",
"tabTitle": "Snippets",
"startupDescription": "Se ejecuta en la terminal cada vez que se conecta a este host. Se rellenan variables como $HOST ; se omite un fragmento que solicita entradas.",
"none": "Ninguna",
"removeQuickAction": "Eliminar acción rápida"
},
"quickActions": {
"running": "Ejecutando {{name}}...",
"succeeded": "{{name}} completado correctamente",
"failed": "{{name}} falló",
"error": "Error al ejecutar {{name}}"
},
"paletteHintPaste": "Pegar en la pestaña del terminal activo",
"targetTerminals": "Rodar",
"targetTerminalsHint": "opcional, de lo contrario la pestaña activa",
"selectAll": "Revocar todo",
"selectNone": "Ninguna"
}
@@ -0,0 +1,235 @@
{
"nav": {
"snippets": "Katkelmat"
},
"onboarding": {
"feature_snippets": "Katkelmat",
"feature_snippets_desc": "Tallenna usein käyttämäsi komennot ja lähetä ne terminaaliin yhdellä napsautuksella."
},
"permissions": {
"view": {
"title": "Näytä katkelmat",
"description": "Katso omia katkelmiasi, muistiinpanojasi ja jaettuja katkelmiasi."
},
"create": {
"title": "Luo katkelmia",
"description": "Luo uusia katkelmia, muistiinpanoja ja kansioita."
},
"edit": {
"title": "Muokkaa katkelmia",
"description": "Nimeä uudelleen tai muuta olemassa olevia katkelmia ja kansioita."
},
"delete": {
"title": "Poista katkelmia",
"description": "Poista katkelmia ja kansioita."
},
"share": {
"title": "Jaa katkelmia",
"description": "Jaa katkelmia ja kansioita muiden käyttäjien tai roolien kanssa."
}
},
"settings": {
"foldersCollapsed": {
"label": "Pienennä kansiot oletusarvoisesti",
"description": "Aloita jokainen katkelmakansio supistettuna, kun avaat Katkelmat-paneelin."
},
"showCommands": {
"label": "Näytä komennot",
"description": "Näytä kunkin koodinpätkän komennon ensimmäinen rivi sen nimen alla."
},
"confirmExecution": {
"label": "Vahvista ennen suorittamista",
"description": "Kysy ennen komennonpätkän suorittamista terminaalissa."
}
},
"cancel": "Peruuttaa",
"loading": "Ladataan...",
"searchPlaceholder": "Hakukatkelmia",
"newFolder": "Uusi kansio",
"newSnippet": "Uusi katkelma",
"noFolder": "Ei kansiota",
"noSnippetsInFolder": "Tässä kansiossa ei ole katkelmia",
"noTerminalTabsOpen": "Yhtäkään päätevälilehteä ei ole auki",
"run": "Juokse",
"pasteToTerminal": "Liitä terminaaliin",
"copySuccess": "Kopioitu leikepöydälle",
"importExport": "Tuonti / vienti",
"importFailed": "Katkelmien tuonti epäonnistui",
"nameLabel": "Nimi",
"namePlaceholder": "Katkelman nimi",
"descriptionLabel": "Kuvaus",
"descriptionPlaceholder": "Valinnainen kuvaus",
"folderLabel": "Kansio",
"typeLabel": "Tyyppi",
"typeCommand": "Komento",
"typeNote": "Huomautus",
"commandLabel": "Komento",
"commandPlaceholder": "Suoritettava komento, esim. systemctl status $HOST",
"noteLabel": "Huomautus",
"notePlaceholder": "Päätelaitteeseen liitettävä teksti",
"createSnippetTitle": "Luo koodinpätkä",
"createSnippetButton": "Luo koodinpätkä",
"createSuccess": "Katkelma luotu",
"createFailed": "Katkelman luominen epäonnistui",
"editSnippetTitle": "Muokkaa katkelmaa",
"saveSnippetButton": "Tallenna koodinpätkä",
"updateSuccess": "Katkelma päivitetty",
"updateFailed": "Katkelman päivittäminen epäonnistui",
"deleteFailed": "Katkelman poistaminen epäonnistui",
"createFolderTitle": "Luo kansio",
"createFolderButton": "Luo kansio",
"folderCreateSuccess": "Kansio luotu",
"folderCreateFailed": "Kansion luominen epäonnistui",
"editFolderTitle": "Muokkaa kansiota",
"saveFolderButton": "Tallenna kansio",
"folderEditSuccess": "Kansio päivitetty",
"folderEditFailed": "Kansion päivittäminen epäonnistui",
"folderNameLabel": "Kansion nimi",
"folderNamePlaceholder": "Kansion nimi",
"folderIconLabel": "Kuvake",
"folderDeleteSuccess": "Kansio poistettu",
"folderDeleteFailed": "Kansion poistaminen epäonnistui",
"confirmRunMessage": "Suorittaa \"{{name}}\"?",
"confirmRunButton": "Juokse",
"runSuccess": "Suoritti komennon \"{{name}}\" {{count}} päätteessä/päätteissä",
"pasteSuccess": "Liitti \"{{name}}\" {{count}} terminaaliin/terminaaleihin",
"admin": {
"tabTitle": "Katkelmat",
"count": "{{count}} katkelmia",
"add": "Lisää katkelma",
"namePlaceholder": "Katkelman nimi",
"contentPlaceholder": "Komennon sisältö",
"folderPlaceholder": "Kansio (valinnainen)",
"empty": "Tällä käyttäjällä ei ole katkelmia",
"deleteConfirm": "Poistetaanko koodinpätkä \"{{name}}\", joka kuuluu käyttäjälle {{username}}?",
"deleted": "Katkelma poistettu",
"deleteFailed": "Katkelman poistaminen epäonnistui",
"requiredFields": "Katkelman nimi ja sisältö vaaditaan",
"saved": "Katkelma tallennettu",
"saveFailed": "Katkelman tallentaminen epäonnistui",
"saving": "Tallennetaan...",
"save": "Tallentaa"
},
"backToSnippets": "Takaisin katkelmiin",
"settingsTitle": "Katkelman asetukset",
"settingsDisplayTitle": "Näyttö",
"settingsBehaviorTitle": "Käyttäytyminen",
"typeCommandHint": "Suoritetaan aktiivisessa terminaalissa.",
"typeNoteHint": "Liittää aktiiviseen terminaaliin suorittamatta sitä.",
"variablesHint": "Muuttujat: $HOST, $USER, $PORT, $NAME, ${INPUT_1:Label}",
"doubleClickToRun": "Kaksoisnapsauta suorittaaksesi",
"sharedBadge": "Jaettu",
"copyToClipboard": "Kopioi leikepöydälle",
"copyFailed": "Leikepöydälle kopiointi epäonnistui",
"moreOptions": "Lisää vaihtoehtoja",
"moreActions": "Lisää toimintoja",
"moveToFolder": "Siirrä kansioon",
"deleteSnippet": "Poista katkelma",
"deleteSnippetConfirm": "Poistetaanko koodinpätkä \"{{name}}\"?",
"deleteSuccess": "Katkelma poistettu",
"delete": "Poistaa",
"folderActions": "Kansiotoiminnot",
"addSnippetHere": "Uusi pätkä tässä",
"deleteFolder": "Poista kansio",
"deleteFolderConfirm": "Poistetaanko kansio \"{{name}}\"? Sen koodinpätkät siirretään pois kansiosta.",
"createFolderDescription": "Ryhmittele toisiinsa liittyvät katkelmat yhteen.",
"editFolderDescription": "Muuta tämän kansion nimeä, väriä tai kuvaketta.",
"folderColorLabel": "Väri",
"loadFailed": "Katkelmien lataaminen epäonnistui",
"importSkipExisting": "Tuo (ohita olemassa oleva)",
"importOverwrite": "Tuo (korvaa olemassa oleva)",
"importInvalidFile": "Tuo tiedosto ei ole kelvollinen katkelmien vienti.",
"importSuccess": "Tuotu {{imported}}, päivitetty {{updated}}, ohitettu {{skipped}}",
"exportSnippets": "Vie koodinpätkiä",
"exportSuccess": "Katkelmat viety",
"exportFailed": "Katkelmien vienti epäonnistui",
"expandAll": "Laajenna kaikki kansiot",
"collapseAll": "Pienennä kaikki kansiot",
"docsLink": "Dokumentaatio",
"clearSearch": "Tyhjennä haku",
"noSearchResults": "Hakuasi vastaavia katkelmia ei löytynyt.",
"emptyTitle": "Ei vielä katkelmia",
"emptyDescription": "Tallenna usein käyttämäsi komennot ja suorita ne sitten terminaalissa yhdellä napsautuksella.",
"shareSnippet": "Jaa katkelma",
"shareFolder": "Jaa kansio",
"shareExpiry": "Vanhenee",
"shareExpiryOptions": {
"h0": "Ei koskaan",
"h1": "Tunnin kuluttua",
"h24": "1 päivän kuluttua",
"h168": "7 päivän kuluttua",
"h720": "30 päivän kuluttua"
},
"shareButton": "Jakaa",
"shareSuccess": "Jaettu käyttäjän {{count}} kanssa",
"shareFailed": "Jakaminen epäonnistui",
"shareLoadFailed": "Jakamistietojen lataaminen epäonnistui",
"currentAccess": "Nykyinen käyttöoikeus",
"notSharedYet": "Ei vielä jaettu kenenkään kanssa",
"revokeAccess": "Peruuttaa",
"revokeSuccess": "Pääsy peruutettu",
"revokeFailed": "Käyttöoikeuden peruuttaminen epäonnistui",
"close": "Lähellä",
"targetHostsLabel": "Kohdeisännät",
"targetHostsHint": "Valitse isännät, joille tämä komento suoritetaan suoraan ilman avointa päätettä. Jätä tyhjäksi, jos haluat sen suoritettavan aktiivisessa päätelaitteessa.",
"clearTargetHosts": "Tyhjennä",
"noHostsAvailable": "Ei isäntiä saatavilla",
"searchHosts": "Hae isäntiä",
"runOnTargets": "Suorita kohdekoneissa",
"executionResultTitle": "Tulokset haulle \"{{name}}\"",
"executionResultDescription": "Kunkin kohdeisännän tuloste.",
"executionSuccess": "Menestys",
"executionFailed": "Epäonnistui",
"directRunSuccess": "Suoritti komennon \"{{name}}\" {{count}} isäntäkoneella/isännillä",
"directRunPartialFail": "\"{{name}}\" epäonnistui joillakin isännillä",
"reorderFailed": "Katkelmien uudelleenjärjestely epäonnistui",
"dropToRemoveFromFolder": "Pudota tähän siirtääksesi pois kansiosta",
"shareSnippetTitle": "Jaa \"{{name}}\"",
"shareFolderTitle": "Jaa kansio \"{{name}}\"",
"shareWith": "Jaa kanssa",
"usersTab": "Käyttäjät",
"rolesTab": "Roolit",
"shareSearchPlaceholder": "Hae käyttäjiä tai rooleja",
"shareNoMatches": "Ei osumia",
"shareWithCount": "Jaa käyttäjän {{count}} kanssa",
"shareFolderHint": "Jakaa kaikki tässä kansiossa olevat katkelmat. Myöhemmin lisättyjä katkelmia ei jaeta automaattisesti.",
"shareFolderSummary": "Jaettu(a) {{count}} katkelma(a) tässä kansiossa",
"grantedBy": "Myöntänyt",
"expired": "Vanhentunut",
"variablesDialogTitle": "Suorita \"{{name}}\"",
"variablesDialogDescription": "Täytä tämän koodinpätkän tarvitsemat arvot ennen sen suorittamista.",
"variablesPreviewLabel": "Esikatselu",
"variablesConfirmButton": "Juokse",
"keybindings": {
"runSnippet": "Suorita olemassa oleva koodinpätkä",
"snippetLabel": "Katkelma",
"selectSnippet": "Valitse katkelma",
"snippetMissing": "katkelmaa ei löytynyt",
"snippetRequired": "Valitse katkelma"
},
"paletteHintRun": "Suorita aktiivisessa päätevälilehdessä",
"host": {
"startupTitle": "Käynnistyskoodinpätkä",
"quickActionsTitle": "Pikatoiminnot",
"quickActionsDescription": "Pikatoiminnot näkyvät painikkeina isäntämetriikkatyökalurivillä komentojen suorittamista varten yhdellä napsautuksella.",
"noQuickActions": "Ei vielä nopeita toimia.",
"buttonLabel": "Painikkeen nimi",
"selectSnippet": "Valitse katkelma...",
"addQuickAction": "Lisää toiminto",
"tabTitle": "Katkelmat",
"startupDescription": "Suoritetaan terminaalissa joka kerta, kun se muodostaa yhteyden tähän isäntään. Muuttujat, kuten $HOST , täytetään; syötteitä pyytävä koodinpätkä ohitetaan.",
"none": "Ei mitään",
"removeQuickAction": "Poista pikatoiminto"
},
"quickActions": {
"running": "Suoritetaan {{name}}...",
"succeeded": "{{name}} suoritettu onnistuneesti",
"failed": "{{name}} epäonnistui",
"error": "Suoritus epäonnistui {{name}}"
},
"paletteHintPaste": "Liitä aktiiviseen päätevälilehteen",
"targetTerminals": "Aja sisään",
"targetTerminalsHint": "valinnainen, muuten aktiivinen välilehti",
"selectAll": "Kaikki",
"selectNone": "Ei mitään"
}
@@ -0,0 +1,235 @@
{
"nav": {
"snippets": "Extraits"
},
"onboarding": {
"feature_snippets": "Snippets",
"feature_snippets_desc": "Enregistrez les commandes que vous exécutez fréquemment et envoyez-les à un terminal en un seul clic."
},
"permissions": {
"view": {
"title": "Voir des extraits",
"description": "Consultez vos propres extraits, notes et extraits partagés."
},
"create": {
"title": "Créer des extraits",
"description": "Créez de nouveaux extraits, notes et dossiers."
},
"edit": {
"title": "Modifier des extraits",
"description": "Renommer ou modifier les extraits et dossiers existants."
},
"delete": {
"title": "Supprimer des extraits",
"description": "Supprimer les extraits et les dossiers."
},
"share": {
"title": "Extraits de partage",
"description": "Partagez des extraits de code et des dossiers avec d'autres utilisateurs ou rôles."
}
},
"settings": {
"foldersCollapsed": {
"label": "Réduire les dossiers par défaut",
"description": "Chaque dossier d'extraits de code doit être réduit au démarrage lorsque vous ouvrez le panneau Extraits de code."
},
"showCommands": {
"label": "Afficher les commandes",
"description": "Afficher la première ligne de la commande de chaque extrait sous son nom."
},
"confirmExecution": {
"label": "Veuillez confirmer avant d'exécuter",
"description": "Demandez la permission avant d'exécuter un extrait de commande dans un terminal."
}
},
"cancel": "Annuler",
"loading": "Chargement...",
"searchPlaceholder": "Rechercher des snippets",
"newFolder": "Nouveau dossier",
"newSnippet": "Nouvel extrait",
"noFolder": "Aucun dossier",
"noSnippetsInFolder": "Aucun snippet dans ce dossier",
"noTerminalTabsOpen": "Aucun onglet de terminal n'est ouvert.",
"run": "Exécuter",
"pasteToTerminal": "Coller dans le terminal",
"copySuccess": "Copié dans le presse-papiers.",
"importExport": "Importer / Exporter",
"importFailed": "Échec de l’importation des snippets",
"nameLabel": "Nom",
"namePlaceholder": "Nom du snippet",
"descriptionLabel": "Description",
"descriptionPlaceholder": "Description facultative",
"folderLabel": "Dossier",
"typeLabel": "Type",
"typeCommand": "Commande",
"typeNote": "Note",
"commandLabel": "Commande",
"commandPlaceholder": "Commande à exécuter, par exemple systemctl status $HOST",
"noteLabel": "Note",
"notePlaceholder": "Texte à coller dans le terminal",
"createSnippetTitle": "Créer un extrait",
"createSnippetButton": "Créer un extrait",
"createSuccess": "Extrait créé",
"createFailed": "Échec de la création du snippet",
"editSnippetTitle": "Modifier l'extrait",
"saveSnippetButton": "Enregistrer l'extrait",
"updateSuccess": "Extrait mis à jour",
"updateFailed": "Échec de la mise à jour du snippet",
"deleteFailed": "Échec de la suppression du snippet",
"createFolderTitle": "Créer un dossier",
"createFolderButton": "Créer un dossier",
"folderCreateSuccess": "Dossier créé",
"folderCreateFailed": "Échec de la création du dossier",
"editFolderTitle": "Modifier le dossier",
"saveFolderButton": "Enregistrer le dossier",
"folderEditSuccess": "Dossier mis à jour",
"folderEditFailed": "Échec de la mise à jour du dossier",
"folderNameLabel": "Nom du dossier",
"folderNamePlaceholder": "Nom du dossier",
"folderIconLabel": "Icône",
"folderDeleteSuccess": "Dossier supprimé",
"folderDeleteFailed": "Échec de la suppression du dossier",
"confirmRunMessage": "Exécuter « {{name}} » ?",
"confirmRunButton": "Exécuter",
"runSuccess": "Exécution de «{{name}}» sur le(s) terminal(s) {{count}}",
"pasteSuccess": "Collé \"{{name}}\" dans le(s) terminal(s) {{count}}",
"admin": {
"tabTitle": "Snippets",
"count": "{{count}} snippets",
"add": "Ajouter un snippet",
"namePlaceholder": "Nom du snippet",
"contentPlaceholder": "Contenu de la commande",
"folderPlaceholder": "Dossier (optionnel)",
"empty": "Cet utilisateur n'a aucun snippet",
"deleteConfirm": "Supprimer le snippet \"{{name}}\" appartenant à {{username}} ?",
"deleted": "Snippet supprimé",
"deleteFailed": "Échec de la suppression du snippet",
"requiredFields": "Le nom et le contenu du snippet sont requis",
"saved": "Snippet enregistré",
"saveFailed": "Échec de l'enregistrement du snippet",
"saving": "Enregistrement…",
"save": "Enregistrer"
},
"backToSnippets": "Retour aux extraits",
"settingsTitle": "Paramètres de l'extrait",
"settingsDisplayTitle": "Afficher",
"settingsBehaviorTitle": "Comportement",
"typeCommandHint": "S'exécute dans le terminal actif.",
"typeNoteHint": "Coller dans le terminal actif sans exécuter de commande.",
"variablesHint": "Variables : $HOST, $USER, $PORT, $NAME, ${INPUT_1:Label}",
"doubleClickToRun": "Double-cliquez pour exécuter",
"sharedBadge": "Partagé",
"copyToClipboard": "Copier dans le presse-papiers",
"copyFailed": "Échec de la copie dans le presse-papiers.",
"moreOptions": "Plus d'options",
"moreActions": "Plus d'actions",
"moveToFolder": "Déplacer vers le dossier",
"deleteSnippet": "Supprimer l'extrait",
"deleteSnippetConfirm": "Supprimer l'extrait \"{{name}}\"?",
"deleteSuccess": "Snippet supprimé",
"delete": "Supprimer",
"folderActions": "Actions sur le dossier",
"addSnippetHere": "Nouvel extrait ici",
"deleteFolder": "Supprimer le dossier",
"deleteFolderConfirm": "Supprimer le dossier «{{name}}» ? Ses extraits seront déplacés hors du dossier.",
"createFolderDescription": "Regroupez les extraits similaires.",
"editFolderDescription": "Modifiez le nom, la couleur ou l'icône de ce dossier.",
"folderColorLabel": "Couleur",
"loadFailed": "Échec du chargement des extraits",
"importSkipExisting": "Importer (ignorer existants)",
"importOverwrite": "Importer (écraser l'existant)",
"importInvalidFile": "Ce fichier n'est pas une exportation de fragments valide",
"importSuccess": "Importé {{imported}}, mis à jour {{updated}}, ignoré {{skipped}}",
"exportSnippets": "Extraits d'exportation",
"exportSuccess": "Extraits exportés",
"exportFailed": "Échec de l’exportation des snippets",
"expandAll": "Développer tous les dossiers",
"collapseAll": "Réduire tous les dossiers",
"docsLink": "Documentation",
"clearSearch": "Recherche propre",
"noSearchResults": "Aucun extrait ne correspond à votre recherche",
"emptyTitle": "Aucun extrait pour l'instant",
"emptyDescription": "Enregistrez les commandes que vous exécutez fréquemment, puis exécutez-les dans un terminal en un seul clic.",
"shareSnippet": "Extrait de partage",
"shareFolder": "Dossier partagé",
"shareExpiry": "Expiration",
"shareExpiryOptions": {
"h0": "Jamais",
"h1": "Dans 1 heure",
"h24": "En 1 jour",
"h168": "Dans 7 jours",
"h720": "En 30 jours"
},
"shareButton": "Partager",
"shareSuccess": "Partagé avec {{count}}",
"shareFailed": "Échec du partage",
"shareLoadFailed": "Impossible de charger les détails de partage",
"currentAccess": "Accès actuel",
"notSharedYet": "Pas encore partagé avec qui que ce soit",
"revokeAccess": "Révoquer",
"revokeSuccess": "Accès révoqué",
"revokeFailed": "Échec de la révocation de l’accès",
"close": "Fermer",
"targetHostsLabel": "hôtes cibles",
"targetHostsHint": "Sélectionnez les hôtes sur lesquels exécuter directement cette commande, sans terminal ouvert. Laissez ce champ vide pour l'exécuter dans le terminal actif.",
"clearTargetHosts": "Effacer",
"noHostsAvailable": "Aucun hôte disponible",
"searchHosts": "Rechercher des hôtes",
"runOnTargets": "Exécuter sur les hôtes cibles",
"executionResultTitle": "Résultats pour \"{{name}}\"",
"executionResultDescription": "Sortie de chaque hôte cible.",
"executionSuccess": "Succès",
"executionFailed": "Échec",
"directRunSuccess": "« {{name}} » exécuté sur {{count}} hôte(s)",
"directRunPartialFail": "\"{{name}}\" a échoué sur certains hôtes",
"reorderFailed": "Impossible de réorganiser les extraits",
"dropToRemoveFromFolder": "Déposez ici pour sortir du dossier",
"shareSnippetTitle": "Partager \"{{name}}\"",
"shareFolderTitle": "Dossier partagé \"{{name}}\"",
"shareWith": "Partager avec",
"usersTab": "Utilisateurs",
"rolesTab": "Rôles",
"shareSearchPlaceholder": "Rechercher des utilisateurs ou des rôles",
"shareNoMatches": "Aucun résultat",
"shareWithCount": "Partager avec {{count}}",
"shareFolderHint": "Partage tous les extraits de code contenus dans ce dossier. Les extraits ajoutés ultérieurement ne sont pas partagés automatiquement.",
"shareFolderSummary": "Extrait(s) partagé(s) {{count}} dans ce dossier",
"grantedBy": "Accordé par",
"expired": "Expiré",
"variablesDialogTitle": "Exécutez \"{{name}}\"",
"variablesDialogDescription": "Renseignez les valeurs nécessaires à cet extrait de code avant de l'exécuter.",
"variablesPreviewLabel": "Aperçu",
"variablesConfirmButton": "Exécuter",
"keybindings": {
"runSnippet": "Exécuter l'extrait de code existant",
"snippetLabel": "Fragment",
"selectSnippet": "Sélectionnez un extrait",
"snippetMissing": "extrait introuvable",
"snippetRequired": "Sélectionnez un extrait"
},
"paletteHintRun": "Exécuter dans l'onglet du terminal actif",
"host": {
"startupTitle": "Extrait de démarrage",
"quickActionsTitle": "Actions rapides",
"quickActionsDescription": "Les actions rapides apparaissent sous forme de boutons dans la barre d'outils Métriques de l'hôte pour une exécution en un clic.",
"noQuickActions": "Aucune action rapide pour le moment.",
"buttonLabel": "Étiquette du bouton",
"selectSnippet": "Sélectionner un snippet...",
"addQuickAction": "Ajouter une action",
"tabTitle": "Snippets",
"startupDescription": "S'exécute dans le terminal à chaque connexion à cet hôte. Les variables telles que $HOST sont renseignées ; la partie du code demandant des entrées est ignorée.",
"none": "Aucune",
"removeQuickAction": "Supprimer l'action rapide"
},
"quickActions": {
"running": "Exécution de {{name}}...",
"succeeded": "{{name}} terminé avec succès",
"failed": "Échec de {{name}}",
"error": "Échec de l'exécution de {{name}}"
},
"paletteHintPaste": "Collez dans l'onglet du terminal actif",
"targetTerminals": "Courir",
"targetTerminalsHint": "facultatif, sinon l'onglet actif",
"selectAll": "Tout",
"selectNone": "Aucune"
}
@@ -0,0 +1,235 @@
{
"nav": {
"snippets": "קטעי טקסט"
},
"onboarding": {
"feature_snippets": "קטעי טקסט",
"feature_snippets_desc": "שמור פקודות שאתה מפעיל לעתים קרובות ושלח אותן למסוף בלחיצה אחת."
},
"permissions": {
"view": {
"title": "הצג קטעי וידאו",
"description": "ראה קטעי וידאו, הערות וקטעי וידאו משותפים שלך."
},
"create": {
"title": "צור קטעי טקסט",
"description": "צור קטעי קוד, הערות ותיקיות חדשים."
},
"edit": {
"title": "עריכת קטעי טקסט",
"description": "שינוי שם או שינוי של קטעי טקסט ותיקיות קיימים."
},
"delete": {
"title": "מחיקת קטעי טקסט",
"description": "מחיקת קטעי קוד ותיקיות."
},
"share": {
"title": "שתף קטעי טקסט",
"description": "שתף קטעי קוד ותיקיות עם משתמשים או תפקידים אחרים."
}
},
"settings": {
"foldersCollapsed": {
"label": "כיווץ תיקיות כברירת מחדל",
"description": "התחל כל תיקיית קטעי טקסט מקומטת בעת פתיחת החלונית 'קטעי טקסט'."
},
"showCommands": {
"label": "הצג פקודות",
"description": "הצג את השורה הראשונה של כל פקודה של קטע תחת שמו."
},
"confirmExecution": {
"label": "אשר לפני הפעלה",
"description": "שאל לפני שקטע פקודה מופעל בטרמינל."
}
},
"cancel": "לְבַטֵל",
"loading": "טְעִינָה...",
"searchPlaceholder": "קטעי חיפוש",
"newFolder": "תיקייה חדשה",
"newSnippet": "קטע חדש",
"noFolder": "אין תיקייה",
"noSnippetsInFolder": "אין קטעי טקסט בתיקייה זו",
"noTerminalTabsOpen": "אין לשונית מסוף פתוחה",
"run": "לָרוּץ",
"pasteToTerminal": "הדבקה לטרמינל",
"copySuccess": "הועתק ללוח",
"importExport": "ייבוא / ייצוא",
"importFailed": "ייבוא קטעי הקוד נכשל",
"nameLabel": "שֵׁם",
"namePlaceholder": "שם הקטע",
"descriptionLabel": "תֵאוּר",
"descriptionPlaceholder": "תיאור אופציונלי",
"folderLabel": "תיקייה",
"typeLabel": "סוּג",
"typeCommand": "פְּקוּדָה",
"typeNote": "פֶּתֶק",
"commandLabel": "פְּקוּדָה",
"commandPlaceholder": "פקודה להפעלה, לדוגמה systemctl status $HOST",
"noteLabel": "פֶּתֶק",
"notePlaceholder": "טקסט להדבקה בטרמינל",
"createSnippetTitle": "צור קטע",
"createSnippetButton": "צור קטע",
"createSuccess": "קטע נוצר",
"createFailed": "נכשלה יצירת קטע הקוד",
"editSnippetTitle": "עריכת קטע",
"saveSnippetButton": "שמור קטע",
"updateSuccess": "קטע הטקסט עודכן",
"updateFailed": "נכשל עדכון הקטע",
"deleteFailed": "מחיקת קטע הקוד נכשלה",
"createFolderTitle": "צור תיקייה",
"createFolderButton": "צור תיקייה",
"folderCreateSuccess": "תיקייה נוצרה",
"folderCreateFailed": "יצירת התיקייה נכשלה",
"editFolderTitle": "עריכת תיקייה",
"saveFolderButton": "שמור תיקייה",
"folderEditSuccess": "התיקייה עודכנה",
"folderEditFailed": "עדכון התיקייה נכשל",
"folderNameLabel": "שם התיקייה",
"folderNamePlaceholder": "שם התיקייה",
"folderIconLabel": "אייקון",
"folderDeleteSuccess": "תיקייה נמחקה",
"folderDeleteFailed": "מחיקת התיקייה נכשלה",
"confirmRunMessage": "להפעיל את \"{{name}}\"?",
"confirmRunButton": "לָרוּץ",
"runSuccess": "הריץ את \"{{name}}\" על הטרמינל/ים {{count}}",
"pasteSuccess": "הודבק \"{{name}}\" לתוך הטרמינל/ים {{count}}",
"admin": {
"tabTitle": "קטעי טקסט",
"count": "קטעי טקסט {{count}}",
"add": "הוסף קטע",
"namePlaceholder": "שם קטע",
"contentPlaceholder": "תוכן הפקודה",
"folderPlaceholder": "תיקייה (אופציונלי)",
"empty": "למשתמש זה אין קטעי טקסט",
"deleteConfirm": "למחוק את קטע הקוד \"{{name}}\" השייך ל- {{username}}?",
"deleted": "קטע הטקסט נמחק",
"deleteFailed": "מחיקת קטע הקוד נכשלה",
"requiredFields": "שם ותוכן הקטע נדרשים",
"saved": "קטע הטקסט נשמר",
"saveFailed": "שמירת קטע הקוד נכשלה",
"saving": "חִסָכוֹן...",
"save": "לְהַצִיל"
},
"backToSnippets": "חזרה לקטעי הטקסט",
"settingsTitle": "הגדרות קטע",
"settingsDisplayTitle": "לְהַצִיג",
"settingsBehaviorTitle": "הִתְנַהֲגוּת",
"typeCommandHint": "פועל בטרמינל הפעיל.",
"typeNoteHint": "מדביק לתוך הטרמינל הפעיל מבלי להריץ.",
"variablesHint": "משתנים: $HOST, $USER, $PORT, $NAME, ${INPUT_1:Label}",
"doubleClickToRun": "לחץ פעמיים כדי להפעיל",
"sharedBadge": "מְשׁוּתָף",
"copyToClipboard": "העתק ללוח",
"copyFailed": "נכשל בהעתקה ללוח",
"moreOptions": "אפשרויות נוספות",
"moreActions": "פעולות נוספות",
"moveToFolder": "העבר לתיקייה",
"deleteSnippet": "מחיקת קטע",
"deleteSnippetConfirm": "למחוק את קטע הקוד \"{{name}}\"?",
"deleteSuccess": "קטע הטקסט נמחק",
"delete": "לִמְחוֹק",
"folderActions": "פעולות תיקייה",
"addSnippetHere": "קטע חדש כאן",
"deleteFolder": "מחיקת תיקייה",
"deleteFolderConfirm": "למחוק את התיקייה \"{{name}}\"? קטעי הטקסט שלה יוזבו מהתיקייה.",
"createFolderDescription": "קבץ קטעי טקסט קשורים יחד.",
"editFolderDescription": "שנה את שם, צבע או סמל תיקייה זו.",
"folderColorLabel": "צֶבַע",
"loadFailed": "טעינת קטעי הקוד נכשלה",
"importSkipExisting": "ייבוא (דלג על קיים)",
"importOverwrite": "ייבוא (החלפת קבצים קיימים)",
"importInvalidFile": "קובץ זה אינו קובץ ייצוא חוקי של קטעי טקסט",
"importSuccess": "יובא {{imported}}, עודכן {{updated}}, דילג על {{skipped}}",
"exportSnippets": "ייצוא קטעי טקסט",
"exportSuccess": "קטעי הטקסט יוצאו",
"exportFailed": "ייצוא קטעי הקוד נכשל",
"expandAll": "הרחב את כל התיקיות",
"collapseAll": "כווץ את כל התיקיות",
"docsLink": "תיעוד",
"clearSearch": "נקה חיפוש",
"noSearchResults": "אין קטעי טקסט התואמים את החיפוש שלך",
"emptyTitle": "עדיין אין קטעי טקסט",
"emptyDescription": "שמור פקודות שאתה מפעיל לעתים קרובות, ולאחר מכן הפעל אותן בטרמינל בלחיצה אחת.",
"shareSnippet": "שתף קטע",
"shareFolder": "שיתוף תיקייה",
"shareExpiry": "פג תוקף",
"shareExpiryOptions": {
"h0": "לְעוֹלָם לֹא",
"h1": "בעוד שעה",
"h24": "בעוד יום אחד",
"h168": "בעוד 7 ימים",
"h720": "בעוד 30 יום"
},
"shareButton": "לַחֲלוֹק",
"shareSuccess": "שותף עם {{count}}",
"shareFailed": "השיתוף נכשל",
"shareLoadFailed": "טעינת פרטי השיתוף נכשלה",
"currentAccess": "גישה נוכחית",
"notSharedYet": "עדיין לא שותף עם אף אחד",
"revokeAccess": "לְבַטֵל",
"revokeSuccess": "הגישה בוטלה",
"revokeFailed": "ביטול הגישה נכשל",
"close": "לִסְגוֹר",
"targetHostsLabel": "מארחי יעד",
"targetHostsHint": "בחר מארחים להפעלת פקודה זו ישירות, ללא טרמינל פתוח. השאר ריק כדי להפעיל אותה בטרמינל הפעיל.",
"clearTargetHosts": "בָּרוּר",
"noHostsAvailable": "אין מארחים זמינים",
"searchHosts": "חיפוש מארחים",
"runOnTargets": "הפעלה על מארחי היעד",
"executionResultTitle": "תוצאות עבור \"{{name}}\"",
"executionResultDescription": "פלט מכל מארח יעד.",
"executionSuccess": "הַצלָחָה",
"executionFailed": "נִכשָׁל",
"directRunSuccess": "הריץ את \"{{name}}\" על מארחים {{count}}",
"directRunPartialFail": "\"{{name}}\" נכשל בחלק מהמארחים",
"reorderFailed": "נכשל הסידור מחדש של קטעי הקוד",
"dropToRemoveFromFolder": "שחרר כאן כדי להוציא את התיקייה",
"shareSnippetTitle": "שתף \"{{name}}\"",
"shareFolderTitle": "שיתוף תיקייה \"{{name}}\"",
"shareWith": "שתף עם",
"usersTab": "משתמשים",
"rolesTab": "תפקידים",
"shareSearchPlaceholder": "חיפוש משתמשים או תפקידים",
"shareNoMatches": "אין התאמות",
"shareWithCount": "שתף עם {{count}}",
"shareFolderHint": "משתף כל קטע קוד בתיקייה זו. קטעי קוד שנוספו מאוחר יותר אינם משותפים אוטומטית.",
"shareFolderSummary": "קטעי {{count}} משותפים בתיקייה זו",
"grantedBy": "הוענק על ידי",
"expired": "פג תוקף",
"variablesDialogTitle": "הפעל \"{{name}}\"",
"variablesDialogDescription": "מלא את הערכים הדרושים לקטע זה לפני הפעלתו.",
"variablesPreviewLabel": "תצוגה מקדימה",
"variablesConfirmButton": "לָרוּץ",
"keybindings": {
"runSnippet": "הפעלת קטע קוד קיים",
"snippetLabel": "קטע",
"selectSnippet": "בחר קטע",
"snippetMissing": "קטע לא נמצא",
"snippetRequired": "בחר קטע"
},
"paletteHintRun": "הפעל בלשונית הטרמינל הפעילה",
"host": {
"startupTitle": "קטע הפעלה",
"quickActionsTitle": "פעולות מהירות",
"quickActionsDescription": "פעולות מהירות מופיעות ככפתורים בסרגל הכלים של Host Metrics לביצוע פקודה בלחיצה אחת.",
"noQuickActions": "אין עדיין פעולות מהירות.",
"buttonLabel": "תווית כפתור",
"selectSnippet": "בחר קטע...",
"addQuickAction": "הוסף פעולה",
"tabTitle": "קטעי טקסט",
"startupDescription": "פועל בטרמינל בכל פעם שהוא מתחבר למארח זה. משתנים כמו $HOST מתמלאים; קטע שמבקש קלט מדלג.",
"none": "אַף לֹא אֶחָד",
"removeQuickAction": "הסר פעולה מהירה"
},
"quickActions": {
"running": "מבצע {{name}}...",
"succeeded": "{{name}} הושלם בהצלחה",
"failed": "{{name}} נכשל",
"error": "נכשל בביצוע {{name}}"
},
"paletteHintPaste": "הדבק בכרטיסייה הפעילה של הטרמינל",
"targetTerminals": "לְהַרִיץ",
"targetTerminalsHint": "אופציונלי, אחרת הכרטיסייה הפעילה",
"selectAll": "כֹּל",
"selectNone": "אַף לֹא אֶחָד"
}
@@ -0,0 +1,235 @@
{
"nav": {
"snippets": "स्निपेट्स"
},
"onboarding": {
"feature_snippets": "स्निपेट्स",
"feature_snippets_desc": "Save commands you run often and send them to a terminal in one click."
},
"permissions": {
"view": {
"title": "View snippets",
"description": "See your own snippets, notes and shared snippets."
},
"create": {
"title": "Create snippets",
"description": "Create new snippets, notes and folders."
},
"edit": {
"title": "Edit snippets",
"description": "Rename or change existing snippets and folders."
},
"delete": {
"title": "Delete snippets",
"description": "Delete snippets and folders."
},
"share": {
"title": "Share snippets",
"description": "Share snippets and folders with other users or roles."
}
},
"settings": {
"foldersCollapsed": {
"label": "डिफ़ॉल्ट रूप से फ़ोल्डर्स संकुचित करें",
"description": "Start each snippet folder collapsed when you open the Snippets panel."
},
"showCommands": {
"label": "Show commands",
"description": "Show the first line of each snippet's command under its name."
},
"confirmExecution": {
"label": "Confirm before running",
"description": "Ask before a command snippet runs in a terminal."
}
},
"cancel": "रद्द करें",
"loading": "लोड हो रहा है...",
"searchPlaceholder": "Search snippets",
"newFolder": "नया फ़ोल्डर",
"newSnippet": "New snippet",
"noFolder": "कोई फ़ोल्डर नहीं",
"noSnippetsInFolder": "इस फ़ोल्डर में कोई स्निपेट नहीं है",
"noTerminalTabsOpen": "No terminal tab is open",
"run": "चलाएं",
"pasteToTerminal": "Paste to terminal",
"copySuccess": "क्लिपबोर्ड पर कॉपी किया गया",
"importExport": "आयात / निर्यात",
"importFailed": "स्निपेट आयात करने में विफल",
"nameLabel": "नाम",
"namePlaceholder": "स्निपेट का नाम",
"descriptionLabel": "विवरण",
"descriptionPlaceholder": "वैकल्पिक विवरण",
"folderLabel": "फ़ोल्डर",
"typeLabel": "प्रकार",
"typeCommand": "कमांड",
"typeNote": "Note",
"commandLabel": "कमांड",
"commandPlaceholder": "Command to run, e.g. systemctl status $HOST",
"noteLabel": "Note",
"notePlaceholder": "Text to paste into the terminal",
"createSnippetTitle": "Create snippet",
"createSnippetButton": "Create snippet",
"createSuccess": "Snippet created",
"createFailed": "स्निपेट बनाने में विफल",
"editSnippetTitle": "Edit snippet",
"saveSnippetButton": "Save snippet",
"updateSuccess": "Snippet updated",
"updateFailed": "स्निपेट अपडेट करने में विफल",
"deleteFailed": "स्निपेट हटाने में विफल",
"createFolderTitle": "फ़ोल्डर बनाएँ",
"createFolderButton": "फ़ोल्डर बनाएँ",
"folderCreateSuccess": "Folder created",
"folderCreateFailed": "फ़ोल्डर बनाने में विफल",
"editFolderTitle": "फ़ोल्डर संपादित करें",
"saveFolderButton": "फ़ोल्डर सहेजें",
"folderEditSuccess": "Folder updated",
"folderEditFailed": "फ़ोल्डर अपडेट करने में विफल",
"folderNameLabel": "फ़ोल्डर का नाम",
"folderNamePlaceholder": "फ़ोल्डर का नाम",
"folderIconLabel": "आइकन",
"folderDeleteSuccess": "Folder deleted",
"folderDeleteFailed": "फ़ोल्डर हटाने में विफल",
"confirmRunMessage": "\"{{name}}\" चलाएँ?",
"confirmRunButton": "चलाएं",
"runSuccess": "Ran \"{{name}}\" on {{count}} terminal(s)",
"pasteSuccess": "Pasted \"{{name}}\" into {{count}} terminal(s)",
"admin": {
"tabTitle": "स्निपेट्स",
"count": "{{count}} स्निपेट",
"add": "स्निपेट जोड़ें",
"namePlaceholder": "स्निपेट का नाम",
"contentPlaceholder": "कमांड सामग्री",
"folderPlaceholder": "फ़ोल्डर (वैकल्पिक)",
"empty": "इस उपयोगकर्ता के पास कोई स्निपेट नहीं है",
"deleteConfirm": "स्निपेट \"{{name}}\" हटाएं जो {{username}} का है?",
"deleted": "स्निपेट हटा दिया गया",
"deleteFailed": "स्निपेट हटाने में विफल",
"requiredFields": "स्निपेट का नाम और सामग्री आवश्यक हैं",
"saved": "स्निपेट सहेजा गया",
"saveFailed": "स्निपेट सहेजने में विफल",
"saving": "सहेजा जा रहा है...",
"save": "सहेजें"
},
"backToSnippets": "Back to snippets",
"settingsTitle": "Snippet settings",
"settingsDisplayTitle": "Display",
"settingsBehaviorTitle": "व्यवहार",
"typeCommandHint": "Runs in the active terminal.",
"typeNoteHint": "Pastes into the active terminal without running.",
"variablesHint": "Variables: $HOST, $USER, $PORT, $NAME, ${INPUT_1:Label}",
"doubleClickToRun": "Double click to run",
"sharedBadge": "साझा",
"copyToClipboard": "Copy to clipboard",
"copyFailed": "क्लिपबोर्ड पर कॉपी करने में विफल",
"moreOptions": "More options",
"moreActions": "अधिक कार्रवाइयां",
"moveToFolder": "Move to folder",
"deleteSnippet": "Delete snippet",
"deleteSnippetConfirm": "Delete snippet \"{{name}}\"?",
"deleteSuccess": "स्निपेट हटा दिया गया",
"delete": "हटाएँ",
"folderActions": "Folder actions",
"addSnippetHere": "New snippet here",
"deleteFolder": "फ़ोल्डर हटाएं",
"deleteFolderConfirm": "Delete folder \"{{name}}\"? Its snippets move out of the folder.",
"createFolderDescription": "Group related snippets together.",
"editFolderDescription": "Change this folder's name, color or icon.",
"folderColorLabel": "रंग",
"loadFailed": "Failed to load snippets",
"importSkipExisting": "इम्पोर्ट करें (मौजूदा को छोड़ें)",
"importOverwrite": "Import (overwrite existing)",
"importInvalidFile": "That file is not a valid snippets export",
"importSuccess": "Imported {{imported}}, updated {{updated}}, skipped {{skipped}}",
"exportSnippets": "Export snippets",
"exportSuccess": "Snippets exported",
"exportFailed": "स्निपेट निर्यात करने में विफल",
"expandAll": "सभी फ़ोल्डर विस्तृत करें",
"collapseAll": "सभी फ़ोल्डर संकुचित करें",
"docsLink": "Documentation",
"clearSearch": "Clear search",
"noSearchResults": "No snippets match your search",
"emptyTitle": "No snippets yet",
"emptyDescription": "Save commands you run often, then run them in a terminal with one click.",
"shareSnippet": "Share snippet",
"shareFolder": "Share folder",
"shareExpiry": "समाप्ति",
"shareExpiryOptions": {
"h0": "कभी नहीं",
"h1": "In 1 hour",
"h24": "In 1 day",
"h168": "In 7 days",
"h720": "In 30 days"
},
"shareButton": "साझा करें",
"shareSuccess": "Shared with {{count}}",
"shareFailed": "Failed to share",
"shareLoadFailed": "Failed to load sharing details",
"currentAccess": "वर्तमान पहुँच",
"notSharedYet": "Not shared with anyone yet",
"revokeAccess": "निरस्त करें",
"revokeSuccess": "पहुँच रद्द की गई",
"revokeFailed": "पहुँच रद्द करने में विफल",
"close": "बंद करें",
"targetHostsLabel": "Target hosts",
"targetHostsHint": "Pick hosts to run this command on directly, without a terminal open. Leave empty to run it in the active terminal.",
"clearTargetHosts": "साफ़ करें",
"noHostsAvailable": "No hosts available",
"searchHosts": "Search hosts",
"runOnTargets": "Run on target hosts",
"executionResultTitle": "Results for \"{{name}}\"",
"executionResultDescription": "Output from each target host.",
"executionSuccess": "सफल",
"executionFailed": "असफल",
"directRunSuccess": "\"{{name}}\" को {{count}} होस्ट पर चलाया गया",
"directRunPartialFail": "\"{{name}}\" failed on some hosts",
"reorderFailed": "Failed to reorder snippets",
"dropToRemoveFromFolder": "Drop here to move out of the folder",
"shareSnippetTitle": "Share \"{{name}}\"",
"shareFolderTitle": "Share folder \"{{name}}\"",
"shareWith": "के साथ साझा करें",
"usersTab": "उपयोगकर्ता",
"rolesTab": "भूमिकाएं",
"shareSearchPlaceholder": "Search users or roles",
"shareNoMatches": "No matches",
"shareWithCount": "Share with {{count}}",
"shareFolderHint": "Shares every snippet in this folder. Snippets added later are not shared automatically.",
"shareFolderSummary": "Shared {{count}} snippet(s) in this folder",
"grantedBy": "प्रदानकर्ता",
"expired": "समाप्त",
"variablesDialogTitle": "Run \"{{name}}\"",
"variablesDialogDescription": "Fill in the values this snippet needs before running it.",
"variablesPreviewLabel": "पूर्वावलोकन",
"variablesConfirmButton": "चलाएं",
"keybindings": {
"runSnippet": "Run existing snippet",
"snippetLabel": "Snippet",
"selectSnippet": "Select a snippet",
"snippetMissing": "snippet not found",
"snippetRequired": "Select a snippet"
},
"paletteHintRun": "Run in the active terminal tab",
"host": {
"startupTitle": "स्टार्टअप स्निपेट",
"quickActionsTitle": "त्वरित कार्रवाइयाँ",
"quickActionsDescription": "त्वरित कार्रवाइयाँ एक-क्लिक कमांड निष्पादन के लिए होस्ट मेट्रिक्स टूलबार में बटन के रूप में दिखाई देती हैं।",
"noQuickActions": "अभी तक कोई त्वरित कार्रवाई नहीं।",
"buttonLabel": "बटन लेबल",
"selectSnippet": "स्निपेट चुनें...",
"addQuickAction": "कार्रवाई जोड़ें",
"tabTitle": "स्निपेट्स",
"startupDescription": "Runs in the terminal each time it connects to this host. Variables like $HOST are filled in; a snippet that asks for inputs is skipped.",
"none": "कोई नहीं",
"removeQuickAction": "Remove quick action"
},
"quickActions": {
"running": "{{name}} निष्पादित हो रहा है...",
"succeeded": "{{name}} सफलतापूर्वक पूर्ण हुआ",
"failed": "{{name}} विफल रहा",
"error": "{{name}} निष्पादित करने में विफल"
},
"paletteHintPaste": "Paste in the active terminal tab",
"targetTerminals": "Run in",
"targetTerminalsHint": "optional, else the active tab",
"selectAll": "सभी",
"selectNone": "कोई नहीं"
}
@@ -0,0 +1,235 @@
{
"nav": {
"snippets": "Kódrészletek"
},
"onboarding": {
"feature_snippets": "Kódrészletek",
"feature_snippets_desc": "Mentsd el a gyakran futtatott parancsokat, és küldd el őket egy terminálba egyetlen kattintással."
},
"permissions": {
"view": {
"title": "Kódrészletek megtekintése",
"description": "Tekintse meg saját részleteit, jegyzeteit és megosztott részleteit."
},
"create": {
"title": "Kódrészletek létrehozása",
"description": "Új kódrészletek, jegyzetek és mappák létrehozása."
},
"edit": {
"title": "Kódrészletek szerkesztése",
"description": "Nevezze át vagy módosítsa a meglévő kódrészleteket és mappákat."
},
"delete": {
"title": "Kódrészletek törlése",
"description": "Töröljön kódrészleteket és mappákat."
},
"share": {
"title": "Részletek megosztása",
"description": "Kódrészletek és mappák megosztása más felhasználókkal vagy szerepkörökkel."
}
},
"settings": {
"foldersCollapsed": {
"label": "Mappák összecsukása alapértelmezés szerint",
"description": "Minden kódrészletmappa összecsukott állapotban indul el a Kódrészletek panel megnyitásakor."
},
"showCommands": {
"label": "Parancsok megjelenítése",
"description": "Mutasd meg az egyes kódrészletek parancsának első sorát a neve alatt."
},
"confirmExecution": {
"label": "Futtatás előtti megerősítés",
"description": "Kérdezzen rá, mielőtt egy parancsrészlet fut a terminálban."
}
},
"cancel": "Mégsem",
"loading": "Terhelés...",
"searchPlaceholder": "Keresési kódrészletek",
"newFolder": "Új mappa",
"newSnippet": "Új részlet",
"noFolder": "Nincs mappa",
"noSnippetsInFolder": "Nincsenek kódrészletek ebben a mappában",
"noTerminalTabsOpen": "Nincs megnyitva terminálfül",
"run": "Fut",
"pasteToTerminal": "Beillesztés terminálba",
"copySuccess": "Vágólapra másolva",
"importExport": "Importálás / Exportálás",
"importFailed": "Nem sikerült importálni a kódrészleteket",
"nameLabel": "Név",
"namePlaceholder": "Kódrészlet neve",
"descriptionLabel": "Leírás",
"descriptionPlaceholder": "Opcionális leírás",
"folderLabel": "Mappa",
"typeLabel": "Típus",
"typeCommand": "Parancs",
"typeNote": "Jegyzet",
"commandLabel": "Parancs",
"commandPlaceholder": "Futtatandó parancs, pl. systemctl status $HOST",
"noteLabel": "Jegyzet",
"notePlaceholder": "A terminálba beillesztendő szöveg",
"createSnippetTitle": "Kódrészlet létrehozása",
"createSnippetButton": "Kódrészlet létrehozása",
"createSuccess": "Kódrészlet létrehozva",
"createFailed": "Nem sikerült létrehozni a kódrészletet",
"editSnippetTitle": "Kódrészlet szerkesztése",
"saveSnippetButton": "Kódrészlet mentése",
"updateSuccess": "Kódrészlet frissítve",
"updateFailed": "Nem sikerült frissíteni a kódrészletet",
"deleteFailed": "Nem sikerült törölni a részletet",
"createFolderTitle": "Mappa létrehozása",
"createFolderButton": "Mappa létrehozása",
"folderCreateSuccess": "Mappa létrehozva",
"folderCreateFailed": "Nem sikerült létrehozni a mappát",
"editFolderTitle": "Mappa szerkesztése",
"saveFolderButton": "Mappa mentése",
"folderEditSuccess": "Mappa frissítve",
"folderEditFailed": "Nem sikerült frissíteni a mappát",
"folderNameLabel": "Mappa neve",
"folderNamePlaceholder": "Mappa neve",
"folderIconLabel": "Ikon",
"folderDeleteSuccess": "Mappa törölve",
"folderDeleteFailed": "Nem sikerült törölni a mappát",
"confirmRunMessage": "Futtassa a \"{{name}} \" programot?",
"confirmRunButton": "Fut",
"runSuccess": "\"{{name}}\" futtatva {{count}} terminálon",
"pasteSuccess": "Beillesztve a(z) \"{{name}}\" elemet a(z) {{count}} terminál(ok)ba",
"admin": {
"tabTitle": "Kódrészletek",
"count": "{{count}} kódrészletek",
"add": "Kódrészlet hozzáadása",
"namePlaceholder": "Kódrészlet neve",
"contentPlaceholder": "Parancs tartalma",
"folderPlaceholder": "Mappa (opcionális)",
"empty": "Ennek a felhasználónak nincsenek kódrészletei",
"deleteConfirm": "Törölni kell a(z) {{username}}-hoz tartozó \"{{name}}\" kódrészletet?",
"deleted": "Kódrészlet törölve",
"deleteFailed": "Nem sikerült törölni a részletet",
"requiredFields": "A részlet nevének és tartalmának megadása kötelező",
"saved": "Kódrészlet mentve",
"saveFailed": "Nem sikerült menteni a részletet",
"saving": "Megtakarítás...",
"save": "Megtakarítás"
},
"backToSnippets": "Vissza a részletekhez",
"settingsTitle": "Kódrészlet beállításai",
"settingsDisplayTitle": "Kijelző",
"settingsBehaviorTitle": "Viselkedés",
"typeCommandHint": "Az aktív terminálban fut.",
"typeNoteHint": "Beilleszti az aktív terminálba futtatás nélkül.",
"variablesHint": "Változók: $HOST, $USER, $PORT, $NAME, ${INPUT_1:Címke}",
"doubleClickToRun": "Dupla kattintás a futtatáshoz",
"sharedBadge": "Megosztott",
"copyToClipboard": "Másolás a vágólapra",
"copyFailed": "Nem sikerült a vágólapra másolni",
"moreOptions": "További lehetőségek",
"moreActions": "További műveletek",
"moveToFolder": "Áthelyezés mappába",
"deleteSnippet": "Kódrészlet törlése",
"deleteSnippetConfirm": "Törölni a(z) \"{{name}} \" kódrészletet?",
"deleteSuccess": "Kódrészlet törölve",
"delete": "Töröl",
"folderActions": "Mappaműveletek",
"addSnippetHere": "Új részlet itt",
"deleteFolder": "Mappa törlése",
"deleteFolderConfirm": "Törli a(z) „{{name}}” mappát? A benne lévő kódrészletek átkerülnek a mappából.",
"createFolderDescription": "Csoportosítsd a kapcsolódó kódrészleteket.",
"editFolderDescription": "Módosítsa a mappa nevét, színét vagy ikonját.",
"folderColorLabel": "Szín",
"loadFailed": "Nem sikerült betölteni a kódrészleteket",
"importSkipExisting": "Importálás (meglévő kihagyása)",
"importOverwrite": "Importálás (meglévő felülírása)",
"importInvalidFile": "Ez a fájl nem érvényes kódrészlet export.",
"importSuccess": "Importálva {{imported}}, frissítve {{updated}}, kihagyva {{skipped}}",
"exportSnippets": "Kódrészletek exportálása",
"exportSuccess": "Exportált kódrészletek",
"exportFailed": "Nem sikerült exportálni a kódrészleteket",
"expandAll": "Az összes mappa kibontása",
"collapseAll": "Az összes mappa összecsukása",
"docsLink": "Dokumentáció",
"clearSearch": "Keresés törlése",
"noSearchResults": "Egyik kódrészlet sem felel meg a keresésnek",
"emptyTitle": "Még nincsenek részletek",
"emptyDescription": "Mentsd el a gyakran futtatott parancsokat, majd futtasd őket egy terminálban egyetlen kattintással.",
"shareSnippet": "Kódrészlet megosztása",
"shareFolder": "Mappa megosztása",
"shareExpiry": "Lejár",
"shareExpiryOptions": {
"h0": "Soha",
"h1": "1 óra múlva",
"h24": "1 nap múlva",
"h168": "7 nap múlva",
"h720": "30 nap múlva"
},
"shareButton": "Részesedés",
"shareSuccess": "Megosztva {{count}} felhasználóval",
"shareFailed": "Nem sikerült megosztani",
"shareLoadFailed": "Nem sikerült betölteni a megosztási adatokat",
"currentAccess": "Jelenlegi hozzáférés",
"notSharedYet": "Még senkivel sincs megosztva",
"revokeAccess": "Visszavonás",
"revokeSuccess": "Hozzáférés visszavonva",
"revokeFailed": "Nem sikerült visszavonni a hozzáférést",
"close": "Közeli",
"targetHostsLabel": "Célzott hosztok",
"targetHostsHint": "Válassza ki azokat a gépeket, amelyeken közvetlenül, terminál megnyitása nélkül futtatni szeretné ezt a parancsot. Hagyja üresen, ha az aktív terminálon szeretné futtatni.",
"clearTargetHosts": "Világos",
"noHostsAvailable": "Nincsenek elérhető házigazdák",
"searchHosts": "Keresés hosztok",
"runOnTargets": "Futtatás a célállomásokon",
"executionResultTitle": "Eredmények a következőre: \"{{name}}\"",
"executionResultDescription": "Kimenet az egyes célállomásokról.",
"executionSuccess": "Siker",
"executionFailed": "Sikertelen",
"directRunSuccess": "\"{{name}}\" futtatva {{count}} gazdagépen",
"directRunPartialFail": "„{{name}}” hiba történt néhány gépen",
"reorderFailed": "Nem sikerült átrendezni a kódrészleteket",
"dropToRemoveFromFolder": "Húzd ide, ha ki szeretnél mozdulni a mappából",
"shareSnippetTitle": "Megosztás \"{{name}}\"",
"shareFolderTitle": "Mappa megosztása: \"{{name}}\"",
"shareWith": "Megosztás",
"usersTab": "Felhasználók",
"rolesTab": "Szerepkörök",
"shareSearchPlaceholder": "Felhasználók vagy szerepkörök keresése",
"shareNoMatches": "Nincs találat",
"shareWithCount": "Megosztás {{count}} felhasználóval",
"shareFolderHint": "Megosztja a mappában található összes kódrészletet. A később hozzáadott kódrészletek nem kerülnek automatikusan megosztásra.",
"shareFolderSummary": "Megosztott {{count}} kódrészlet(ek) ebben a mappában",
"grantedBy": "Megadta",
"expired": "Lejárt",
"variablesDialogTitle": "Futtassa a \"{{name}}\"",
"variablesDialogDescription": "Töltse ki a kódrészlet futtatása előtt szükséges értékeket.",
"variablesPreviewLabel": "Előnézet",
"variablesConfirmButton": "Fut",
"keybindings": {
"runSnippet": "Meglévő kódrészlet futtatása",
"snippetLabel": "Töredék",
"selectSnippet": "Válasszon ki egy részletet",
"snippetMissing": "részlet nem található",
"snippetRequired": "Válasszon ki egy részletet"
},
"paletteHintRun": "Futtatás az aktív terminálfülön",
"host": {
"startupTitle": "Indítási kódrészlet",
"quickActionsTitle": "Gyors műveletek",
"quickActionsDescription": "A gyors műveletek gombokként jelennek meg a Host Metrics eszköztáron, így egyetlen kattintással végrehajthatók a parancsok.",
"noQuickActions": "Még nincsenek gyors intézkedések.",
"buttonLabel": "Gombcímke",
"selectSnippet": "Válasszon részletet...",
"addQuickAction": "Művelet hozzáadása",
"tabTitle": "Kódrészletek",
"startupDescription": "Minden alkalommal lefut a terminálban, amikor csatlakozik ehhez a géphez. A $HOST -hoz hasonló változók kitöltődnek; a bemenetet kérő kódrészlet kimarad.",
"none": "Egyik sem",
"removeQuickAction": "Gyorsművelet eltávolítása"
},
"quickActions": {
"running": "{{name}} végrehajtása ...",
"succeeded": "{{name}} sikeresen befejeződött",
"failed": "{{name}} sikertelen",
"error": "Nem sikerült végrehajtani a {{name}} parancsot."
},
"paletteHintPaste": "Beillesztés az aktív terminálfülbe",
"targetTerminals": "Befutás",
"targetTerminalsHint": "opcionális, különben az aktív lap",
"selectAll": "Minden",
"selectNone": "Egyik sem"
}
@@ -0,0 +1,235 @@
{
"nav": {
"snippets": "Snippets"
},
"onboarding": {
"feature_snippets": "Snippets",
"feature_snippets_desc": "Save commands you run often and send them to a terminal in one click."
},
"permissions": {
"view": {
"title": "View snippets",
"description": "See your own snippets, notes and shared snippets."
},
"create": {
"title": "Create snippets",
"description": "Create new snippets, notes and folders."
},
"edit": {
"title": "Edit snippets",
"description": "Rename or change existing snippets and folders."
},
"delete": {
"title": "Delete snippets",
"description": "Delete snippets and folders."
},
"share": {
"title": "Share snippets",
"description": "Share snippets and folders with other users or roles."
}
},
"settings": {
"foldersCollapsed": {
"label": "Collapse folders by default",
"description": "Start each snippet folder collapsed when you open the Snippets panel."
},
"showCommands": {
"label": "Show commands",
"description": "Show the first line of each snippet's command under its name."
},
"confirmExecution": {
"label": "Confirm before running",
"description": "Ask before a command snippet runs in a terminal."
}
},
"cancel": "Cancel",
"loading": "Loading...",
"searchPlaceholder": "Search snippets",
"newFolder": "New folder",
"newSnippet": "New snippet",
"noFolder": "No folder",
"noSnippetsInFolder": "No snippets in this folder",
"noTerminalTabsOpen": "No terminal tab is open",
"run": "Run",
"pasteToTerminal": "Paste to terminal",
"copySuccess": "Copied to clipboard",
"importExport": "Import / Export",
"importFailed": "Failed to import snippets",
"nameLabel": "Name",
"namePlaceholder": "Snippet name",
"descriptionLabel": "Description",
"descriptionPlaceholder": "Optional description",
"folderLabel": "Folder",
"typeLabel": "Type",
"typeCommand": "Command",
"typeNote": "Note",
"commandLabel": "Command",
"commandPlaceholder": "Command to run, e.g. systemctl status $HOST",
"noteLabel": "Note",
"notePlaceholder": "Text to paste into the terminal",
"createSnippetTitle": "Create snippet",
"createSnippetButton": "Create snippet",
"createSuccess": "Snippet created",
"createFailed": "Failed to create snippet",
"editSnippetTitle": "Edit snippet",
"saveSnippetButton": "Save snippet",
"updateSuccess": "Snippet updated",
"updateFailed": "Failed to update snippet",
"deleteFailed": "Failed to delete snippet",
"createFolderTitle": "Create folder",
"createFolderButton": "Create folder",
"folderCreateSuccess": "Folder created",
"folderCreateFailed": "Failed to create folder",
"editFolderTitle": "Edit folder",
"saveFolderButton": "Save folder",
"folderEditSuccess": "Folder updated",
"folderEditFailed": "Failed to update folder",
"folderNameLabel": "Folder name",
"folderNamePlaceholder": "Folder name",
"folderIconLabel": "Icon",
"folderDeleteSuccess": "Folder deleted",
"folderDeleteFailed": "Failed to delete folder",
"confirmRunMessage": "Run \"{{name}}\"?",
"confirmRunButton": "Run",
"runSuccess": "Ran \"{{name}}\" on {{count}} terminal(s)",
"pasteSuccess": "Pasted \"{{name}}\" into {{count}} terminal(s)",
"admin": {
"tabTitle": "Snippets",
"count": "{{count}} snippets",
"add": "Add Snippet",
"namePlaceholder": "Snippet name",
"contentPlaceholder": "Command content",
"folderPlaceholder": "Folder (optional)",
"empty": "This user has no snippets",
"deleteConfirm": "Delete snippet \"{{name}}\" belonging to {{username}}?",
"deleted": "Snippet deleted",
"deleteFailed": "Failed to delete snippet",
"requiredFields": "Snippet name and content are required",
"saved": "Snippet saved",
"saveFailed": "Failed to save snippet",
"saving": "Saving...",
"save": "Save"
},
"backToSnippets": "Back to snippets",
"settingsTitle": "Snippet settings",
"settingsDisplayTitle": "Display",
"settingsBehaviorTitle": "Behavior",
"typeCommandHint": "Runs in the active terminal.",
"typeNoteHint": "Pastes into the active terminal without running.",
"variablesHint": "Variables: $HOST, $USER, $PORT, $NAME, ${INPUT_1:Label}",
"doubleClickToRun": "Double click to run",
"sharedBadge": "Dibagikan",
"copyToClipboard": "Copy to clipboard",
"copyFailed": "Failed to copy to clipboard",
"moreOptions": "More options",
"moreActions": "More actions",
"moveToFolder": "Move to folder",
"deleteSnippet": "Delete snippet",
"deleteSnippetConfirm": "Delete snippet \"{{name}}\"?",
"deleteSuccess": "Snippet deleted",
"delete": "Delete",
"folderActions": "Folder actions",
"addSnippetHere": "New snippet here",
"deleteFolder": "Delete folder",
"deleteFolderConfirm": "Delete folder \"{{name}}\"? Its snippets move out of the folder.",
"createFolderDescription": "Group related snippets together.",
"editFolderDescription": "Change this folder's name, color or icon.",
"folderColorLabel": "Color",
"loadFailed": "Failed to load snippets",
"importSkipExisting": "Import (skip existing)",
"importOverwrite": "Import (overwrite existing)",
"importInvalidFile": "That file is not a valid snippets export",
"importSuccess": "Imported {{imported}}, updated {{updated}}, skipped {{skipped}}",
"exportSnippets": "Export snippets",
"exportSuccess": "Snippets exported",
"exportFailed": "Failed to export snippets",
"expandAll": "Expand all folders",
"collapseAll": "Collapse all folders",
"docsLink": "Documentation",
"clearSearch": "Clear search",
"noSearchResults": "No snippets match your search",
"emptyTitle": "No snippets yet",
"emptyDescription": "Save commands you run often, then run them in a terminal with one click.",
"shareSnippet": "Share snippet",
"shareFolder": "Share folder",
"shareExpiry": "Expires",
"shareExpiryOptions": {
"h0": "Never",
"h1": "In 1 hour",
"h24": "In 1 day",
"h168": "In 7 days",
"h720": "In 30 days"
},
"shareButton": "Share",
"shareSuccess": "Shared with {{count}}",
"shareFailed": "Failed to share",
"shareLoadFailed": "Failed to load sharing details",
"currentAccess": "Current access",
"notSharedYet": "Not shared with anyone yet",
"revokeAccess": "Revoke",
"revokeSuccess": "Akses dicabut",
"revokeFailed": "Gagal mencabut akses",
"close": "Tutup",
"targetHostsLabel": "Target hosts",
"targetHostsHint": "Pick hosts to run this command on directly, without a terminal open. Leave empty to run it in the active terminal.",
"clearTargetHosts": "Clear",
"noHostsAvailable": "No hosts available",
"searchHosts": "Search hosts",
"runOnTargets": "Run on target hosts",
"executionResultTitle": "Results for \"{{name}}\"",
"executionResultDescription": "Output from each target host.",
"executionSuccess": "Success",
"executionFailed": "Failed",
"directRunSuccess": "Ran \"{{name}}\" on {{count}} host(s)",
"directRunPartialFail": "\"{{name}}\" failed on some hosts",
"reorderFailed": "Failed to reorder snippets",
"dropToRemoveFromFolder": "Drop here to move out of the folder",
"shareSnippetTitle": "Share \"{{name}}\"",
"shareFolderTitle": "Share folder \"{{name}}\"",
"shareWith": "Share with",
"usersTab": "Users",
"rolesTab": "Roles",
"shareSearchPlaceholder": "Search users or roles",
"shareNoMatches": "No matches",
"shareWithCount": "Share with {{count}}",
"shareFolderHint": "Shares every snippet in this folder. Snippets added later are not shared automatically.",
"shareFolderSummary": "Shared {{count}} snippet(s) in this folder",
"grantedBy": "Granted by",
"expired": "Expired",
"variablesDialogTitle": "Run \"{{name}}\"",
"variablesDialogDescription": "Fill in the values this snippet needs before running it.",
"variablesPreviewLabel": "Preview",
"variablesConfirmButton": "Run",
"keybindings": {
"runSnippet": "Run existing snippet",
"snippetLabel": "Snippet",
"selectSnippet": "Select a snippet",
"snippetMissing": "snippet not found",
"snippetRequired": "Select a snippet"
},
"paletteHintRun": "Run in the active terminal tab",
"host": {
"startupTitle": "Startup Snippet",
"quickActionsTitle": "Quick Actions",
"quickActionsDescription": "Quick actions appear as buttons in the Host Metrics toolbar for one-click command execution.",
"noQuickActions": "No quick actions yet.",
"buttonLabel": "Button label",
"selectSnippet": "Select snippet...",
"addQuickAction": "Add Action",
"tabTitle": "Snippets",
"startupDescription": "Runs in the terminal each time it connects to this host. Variables like $HOST are filled in; a snippet that asks for inputs is skipped.",
"none": "None",
"removeQuickAction": "Remove quick action"
},
"quickActions": {
"running": "Executing {{name}}...",
"succeeded": "{{name}} completed successfully",
"failed": "{{name}} failed",
"error": "Failed to execute {{name}}"
},
"paletteHintPaste": "Paste in the active terminal tab",
"targetTerminals": "Run in",
"targetTerminalsHint": "optional, else the active tab",
"selectAll": "All",
"selectNone": "None"
}
@@ -0,0 +1,235 @@
{
"nav": {
"snippets": "Frammenti"
},
"onboarding": {
"feature_snippets": "Snippet",
"feature_snippets_desc": "Salva i comandi che esegui più spesso e inviali a un terminale con un solo clic."
},
"permissions": {
"view": {
"title": "Visualizza frammenti",
"description": "Visualizza i tuoi frammenti, le tue note e i frammenti condivisi."
},
"create": {
"title": "Crea frammenti",
"description": "Crea nuovi frammenti, note e cartelle."
},
"edit": {
"title": "Modifica frammenti",
"description": "Rinominare o modificare frammenti e cartelle esistenti."
},
"delete": {
"title": "Elimina frammenti",
"description": "Elimina frammenti e cartelle."
},
"share": {
"title": "Condividi frammenti",
"description": "Condividi frammenti e cartelle con altri utenti o ruoli."
}
},
"settings": {
"foldersCollapsed": {
"label": "Chiudi le cartelle per impostazione predefinita",
"description": "Quando apri il pannello Snippet, ogni cartella di snippet viene visualizzata compressa."
},
"showCommands": {
"label": "Mostra i tasti",
"description": "Mostra la prima riga di ogni comando dello snippet sotto il suo nome."
},
"confirmExecution": {
"label": "Conferma prima dell'esecuzione",
"description": "Chiedi conferma prima di eseguire un comando nel terminale."
}
},
"cancel": "Annulla",
"loading": "Caricamento in corso...",
"searchPlaceholder": "Cerca snippet",
"newFolder": "Nuova cartella",
"newSnippet": "Nuovo frammento",
"noFolder": "Nessuna cartella",
"noSnippetsInFolder": "Nessuno snippet in questa cartella",
"noTerminalTabsOpen": "Non è aperta alcuna scheda del terminale.",
"run": "Esegui",
"pasteToTerminal": "Incolla nel terminale",
"copySuccess": "Copiato negli appunti",
"importExport": "Importa / Esporta",
"importFailed": "Importazione snippet non riuscita",
"nameLabel": "Nome",
"namePlaceholder": "Nome snippet",
"descriptionLabel": "Descrizione",
"descriptionPlaceholder": "Descrizione opzionale",
"folderLabel": "Cartella",
"typeLabel": "Tipo",
"typeCommand": "Comando",
"typeNote": "Nota",
"commandLabel": "Comando",
"commandPlaceholder": "Comando da eseguire, ad esempio systemctl status $HOST",
"noteLabel": "Nota",
"notePlaceholder": "Testo da incollare nel terminale",
"createSnippetTitle": "Crea snippet",
"createSnippetButton": "Crea snippet",
"createSuccess": "Snippet creato",
"createFailed": "Impossibile creare lo snippet",
"editSnippetTitle": "Modifica frammento",
"saveSnippetButton": "Salva frammento",
"updateSuccess": "Snippet aggiornato",
"updateFailed": "Impossibile aggiornare lo snippet",
"deleteFailed": "Impossibile eliminare lo snippet",
"createFolderTitle": "Crea cartella",
"createFolderButton": "Crea cartella",
"folderCreateSuccess": "Cartella creata",
"folderCreateFailed": "Impossibile creare la cartella",
"editFolderTitle": "Modifica cartella",
"saveFolderButton": "Salva cartella",
"folderEditSuccess": "Cartella aggiornata",
"folderEditFailed": "Impossibile aggiornare la cartella",
"folderNameLabel": "Nome della cartella",
"folderNamePlaceholder": "Nome della cartella",
"folderIconLabel": "Icona",
"folderDeleteSuccess": "Cartella eliminata",
"folderDeleteFailed": "Impossibile eliminare la cartella",
"confirmRunMessage": "Eseguire \"{{name}}\"?",
"confirmRunButton": "Esegui",
"runSuccess": "Eseguito \"{{name}}\" sul/sui terminale/i {{count}}",
"pasteSuccess": "Incollato \"{{name}}\" nel/nei terminale/i {{count}}",
"admin": {
"tabTitle": "Snippet",
"count": "{{count}} snippet",
"add": "Aggiungi snippet",
"namePlaceholder": "Nome snippet",
"contentPlaceholder": "Contenuto comando",
"folderPlaceholder": "Cartella (opzionale)",
"empty": "Questo utente non ha snippet",
"deleteConfirm": "Eliminare lo snippet \"{{name}}\" appartenente a {{username}}?",
"deleted": "Snippet eliminato",
"deleteFailed": "Impossibile eliminare lo snippet",
"requiredFields": "Nome e contenuto dello snippet sono obbligatori",
"saved": "Snippet salvato",
"saveFailed": "Impossibile salvare lo snippet",
"saving": "Salvataggio in corso...",
"save": "Salva"
},
"backToSnippets": "Torna agli snippet",
"settingsTitle": "Impostazioni dello snippet",
"settingsDisplayTitle": "Display",
"settingsBehaviorTitle": "Comportamento",
"typeCommandHint": "Esegue nel terminale attivo.",
"typeNoteHint": "Incolla nel terminale attivo senza eseguirlo.",
"variablesHint": "Variabili: $HOST, $USER, $PORT, $NAME, ${INPUT_1:Etichetta}",
"doubleClickToRun": "Doppio clic per eseguire",
"sharedBadge": "Condiviso",
"copyToClipboard": "Copia negli appunti",
"copyFailed": "Copia negli appunti non riuscita",
"moreOptions": "Altre opzioni",
"moreActions": "Altre azioni",
"moveToFolder": "Sposta nella cartella",
"deleteSnippet": "Elimina frammento",
"deleteSnippetConfirm": "Eliminare il frammento \"{{name}}\"?",
"deleteSuccess": "Snippet eliminato",
"delete": "Elimina",
"folderActions": "Azioni della cartella",
"addSnippetHere": "Nuovo frammento qui",
"deleteFolder": "Elimina cartella",
"deleteFolderConfirm": "Eliminare la cartella \"{{name}}\"? I suoi frammenti vengono spostati fuori dalla cartella.",
"createFolderDescription": "Raggruppa i frammenti di testo correlati.",
"editFolderDescription": "Modifica il nome, il colore o l'icona di questa cartella.",
"folderColorLabel": "Colore",
"loadFailed": "Impossibile caricare gli snippet",
"importSkipExisting": "Importa (salta esistenti)",
"importOverwrite": "Importa (sovrascrivi i dati esistenti)",
"importInvalidFile": "Quel file non è un'esportazione di snippet valida.",
"importSuccess": "Importato {{imported}}, aggiornato {{updated}}, saltato {{skipped}}",
"exportSnippets": "Esporta frammenti",
"exportSuccess": "Frammenti esportati",
"exportFailed": "Esportazione snippet non riuscita",
"expandAll": "Espandi tutte le cartelle",
"collapseAll": "Comprimi tutte le cartelle",
"docsLink": "Documentazione",
"clearSearch": "Cancella ricerca",
"noSearchResults": "Nessun frammento corrisponde alla tua ricerca",
"emptyTitle": "Ancora nessun frammento",
"emptyDescription": "Salva i comandi che usi spesso, poi eseguili in un terminale con un solo clic.",
"shareSnippet": "Condividi frammento",
"shareFolder": "Cartella condivisa",
"shareExpiry": "Scadenza",
"shareExpiryOptions": {
"h0": "Mai",
"h1": "Tra 1 ora",
"h24": "In 1 giorno",
"h168": "In 7 giorni",
"h720": "In 30 giorni"
},
"shareButton": "Condividi",
"shareSuccess": "Condiviso con {{count}}",
"shareFailed": "Impossibile condividere",
"shareLoadFailed": "Impossibile caricare i dettagli di condivisione",
"currentAccess": "Accesso corrente",
"notSharedYet": "Non ancora condiviso con nessuno.",
"revokeAccess": "Revoca",
"revokeSuccess": "Accesso revocato",
"revokeFailed": "Revoca accesso non riuscita",
"close": "Chiudi",
"targetHostsLabel": "Host di destinazione",
"targetHostsHint": "Seleziona gli host su cui eseguire questo comando direttamente, senza un terminale aperto. Lascia vuoto per eseguirlo nel terminale attivo.",
"clearTargetHosts": "Pulisci",
"noHostsAvailable": "Nessun host disponibile",
"searchHosts": "Cerca host",
"runOnTargets": "Eseguire sugli host di destinazione",
"executionResultTitle": "Risultati per \"{{name}}\"",
"executionResultDescription": "Output da ciascun host di destinazione.",
"executionSuccess": "Successo",
"executionFailed": "Fallito",
"directRunSuccess": "Eseguito \"{{name}}\" su {{count}} host",
"directRunPartialFail": "\"{{name}}\" non riuscito su alcuni host",
"reorderFailed": "Impossibile riordinare gli snippet",
"dropToRemoveFromFolder": "Trascina qui per spostare fuori dalla cartella",
"shareSnippetTitle": "Condividi \"{{name}}\"",
"shareFolderTitle": "Condividi la cartella \"{{name}}\"",
"shareWith": "Condividi con",
"usersTab": "Utenti",
"rolesTab": "Ruoli",
"shareSearchPlaceholder": "Cerca utenti o ruoli",
"shareNoMatches": "Nessuna partita",
"shareWithCount": "Condividi con {{count}}",
"shareFolderHint": "Condivide tutti gli snippet presenti in questa cartella. Gli snippet aggiunti successivamente non vengono condivisi automaticamente.",
"shareFolderSummary": "Frammenti condivisi {{count}} in questa cartella",
"grantedBy": "Concesso da",
"expired": "Scaduto",
"variablesDialogTitle": "Eseguire \"{{name}}\"",
"variablesDialogDescription": "Inserisci i valori richiesti da questo frammento di codice prima di eseguirlo.",
"variablesPreviewLabel": "Anteprima",
"variablesConfirmButton": "Esegui",
"keybindings": {
"runSnippet": "Esegui il frammento di codice esistente",
"snippetLabel": "Frammento",
"selectSnippet": "Seleziona un frammento",
"snippetMissing": "frammento non trovato",
"snippetRequired": "Seleziona un frammento"
},
"paletteHintRun": "Esegui nella scheda del terminale attiva",
"host": {
"startupTitle": "Frammento di avvio",
"quickActionsTitle": "Azioni rapide",
"quickActionsDescription": "Le azioni rapide appaiono come pulsanti nella barra delle metriche host per l'esecuzione di comandi con un clic.",
"noQuickActions": "Nessuna azione rapida ancora.",
"buttonLabel": "Etichetta pulsante",
"selectSnippet": "Seleziona snippet...",
"addQuickAction": "Aggiungi Azione",
"tabTitle": "Snippet",
"startupDescription": "Viene eseguito nel terminale ogni volta che si connette a questo host. Le variabili come $HOST vengono compilate; un frammento di codice che richiede input viene saltato.",
"none": "Nessuno",
"removeQuickAction": "Rimuovi azione rapida"
},
"quickActions": {
"running": "Esecuzione di {{name}}...",
"succeeded": "{{name}} completato con successo",
"failed": "{{name}} non riuscito",
"error": "Impossibile eseguire {{name}}"
},
"paletteHintPaste": "Incolla nella scheda del terminale attiva",
"targetTerminals": "Correre in",
"targetTerminalsHint": "facoltativo, altrimenti la scheda attiva",
"selectAll": "Tutte",
"selectNone": "Nessuno"
}
@@ -0,0 +1,235 @@
{
"nav": {
"snippets": "スニペット"
},
"onboarding": {
"feature_snippets": "スニペット",
"feature_snippets_desc": "よく使うコマンドを保存して、ワンクリックでターミナルに送信できます。"
},
"permissions": {
"view": {
"title": "抜粋を見る",
"description": "自分のスニペット、メモ、共有されたスニペットを確認できます。"
},
"create": {
"title": "スニペットを作成する",
"description": "新しいスニペット、メモ、フォルダーを作成します。"
},
"edit": {
"title": "スニペットを編集する",
"description": "既存のスニペットやフォルダの名前を変更または修正します。"
},
"delete": {
"title": "スニペットを削除する",
"description": "スニペットとフォルダを削除します。"
},
"share": {
"title": "抜粋を共有する",
"description": "スニペットやフォルダを他のユーザーやロールと共有します。"
}
},
"settings": {
"foldersCollapsed": {
"label": "デフォルトでフォルダを折りたたむ",
"description": "スニペットパネルを開いたとき、各スニペットフォルダは折りたたまれた状態で起動します。"
},
"showCommands": {
"label": "コマンドを表示する",
"description": "各スニペットのコマンドの最初の行を、その名前の下に表示します。"
},
"confirmExecution": {
"label": "実行前に確認してください",
"description": "ターミナルでコマンドを実行する前に、必ず許可を求めてください。"
}
},
"cancel": "キャンセル",
"loading": "読み込み中...",
"searchPlaceholder": "スニペットを検索",
"newFolder": "新規フォルダ",
"newSnippet": "新しいスニペット",
"noFolder": "フォルダーなし",
"noSnippetsInFolder": "このフォルダにスニペットはありません",
"noTerminalTabsOpen": "ターミナルタブが開いていません",
"run": "実行",
"pasteToTerminal": "ターミナルに貼り付けてください",
"copySuccess": "クリップボードにコピーしました",
"importExport": "インポート / エクスポート",
"importFailed": "スニペットのインポートに失敗しました",
"nameLabel": "名前",
"namePlaceholder": "スニペット名",
"descriptionLabel": "説明",
"descriptionPlaceholder": "任意の説明",
"folderLabel": "フォルダ",
"typeLabel": "タイプ",
"typeCommand": "コマンド",
"typeNote": "注記",
"commandLabel": "コマンド",
"commandPlaceholder": "実行するコマンド、例:systemctl status $HOST",
"noteLabel": "注記",
"notePlaceholder": "ターミナルに貼り付けるテキスト",
"createSnippetTitle": "スニペットを作成する",
"createSnippetButton": "スニペットを作成する",
"createSuccess": "スニペットが作成されました",
"createFailed": "スニペットの作成に失敗しました",
"editSnippetTitle": "スニペットを編集",
"saveSnippetButton": "スニペットを保存",
"updateSuccess": "スニペットが更新されました",
"updateFailed": "スニペットの更新に失敗しました",
"deleteFailed": "スニペットの削除に失敗しました",
"createFolderTitle": "フォルダの作成",
"createFolderButton": "フォルダの作成",
"folderCreateSuccess": "フォルダが作成されました",
"folderCreateFailed": "フォルダの作成に失敗しました",
"editFolderTitle": "フォルダを編集",
"saveFolderButton": "フォルダーを保存",
"folderEditSuccess": "フォルダが更新されました",
"folderEditFailed": "フォルダの更新に失敗しました",
"folderNameLabel": "フォルダ名",
"folderNamePlaceholder": "フォルダ名",
"folderIconLabel": "アイコン",
"folderDeleteSuccess": "フォルダが削除されました",
"folderDeleteFailed": "フォルダの削除に失敗しました",
"confirmRunMessage": "「{{name}}」を実行しますか?",
"confirmRunButton": "実行",
"runSuccess": "{{name}}を {{count}} 端末で実行しました",
"pasteSuccess": "「{{name}}」を {{count}} 端末に貼り付けました",
"admin": {
"tabTitle": "スニペット",
"count": "{{count}} 個のスニペット",
"add": "スニペットを追加",
"namePlaceholder": "スニペット名",
"contentPlaceholder": "コマンドの内容",
"folderPlaceholder": "フォルダー (任意)",
"empty": "このユーザーはスニペットを持っていません",
"deleteConfirm": "{{username}} に属するスニペット \"{{name}}\" を削除しますか?",
"deleted": "スニペットを削除しました",
"deleteFailed": "スニペットの削除に失敗しました",
"requiredFields": "スニペット名と内容は必須です",
"saved": "スニペットを保存しました",
"saveFailed": "スニペットの保存に失敗しました",
"saving": "保存中...",
"save": "保存"
},
"backToSnippets": "抜粋に戻る",
"settingsTitle": "スニペット設定",
"settingsDisplayTitle": "画面",
"settingsBehaviorTitle": "動作",
"typeCommandHint": "アクティブな端末で実行されます。",
"typeNoteHint": "実行せずにアクティブなターミナルに貼り付けます。",
"variablesHint": "変数: $HOST、 $USER、 $PORT、 $NAME、 ${INPUT_1:Label}",
"doubleClickToRun": "ダブルクリックして実行",
"sharedBadge": "共有済み",
"copyToClipboard": "クリップボードにコピー",
"copyFailed": "クリップボードへのコピーに失敗しました",
"moreOptions": "その他のオプション",
"moreActions": "その他の操作",
"moveToFolder": "フォルダに移動",
"deleteSnippet": "スニペットを削除",
"deleteSnippetConfirm": "スニペット「{{name}}」を削除しますか?",
"deleteSuccess": "スニペットを削除しました",
"delete": "削除",
"folderActions": "フォルダー操作",
"addSnippetHere": "新しいスニペットはこちら",
"deleteFolder": "フォルダを削除",
"deleteFolderConfirm": "フォルダ \"{{name}}\" を削除しますか?そのスニペットはフォルダから移動します。",
"createFolderDescription": "関連する断片をまとめてグループ化する。",
"editFolderDescription": "このフォルダの名前、色、またはアイコンを変更します。",
"folderColorLabel": "色",
"loadFailed": "スニペットの読み込みに失敗しました",
"importSkipExisting": "インポート (既存をスキップ)",
"importOverwrite": "インポート(既存のものを上書き)",
"importInvalidFile": "そのファイルは有効なスニペットエクスポートではありません",
"importSuccess": "インポート済み {{imported}}、更新済み {{updated}}、スキップ済み {{skipped}}",
"exportSnippets": "スニペットをエクスポートする",
"exportSuccess": "スニペットをエクスポートしました",
"exportFailed": "スニペットのエクスポートに失敗しました",
"expandAll": "すべてのフォルダーを展開",
"collapseAll": "すべてのフォルダーを折りたたむ",
"docsLink": "文書",
"clearSearch": "検索をクリアする",
"noSearchResults": "検索条件に一致するスニペットはありません",
"emptyTitle": "まだスニペットはありません",
"emptyDescription": "よく使うコマンドを保存しておけば、ワンクリックでターミナルから実行できます。",
"shareSnippet": "スニペットを共有",
"shareFolder": "共有フォルダ",
"shareExpiry": "有効期限",
"shareExpiryOptions": {
"h0": "なし",
"h1": "1時間後",
"h24": "1日で",
"h168": "7日後",
"h720": "30日後"
},
"shareButton": "共有",
"shareSuccess": "{{count}}と共有されています",
"shareFailed": "共有に失敗しました",
"shareLoadFailed": "共有情報の読み込みに失敗しました",
"currentAccess": "現在のアクセス",
"notSharedYet": "まだ誰にも共有されていません",
"revokeAccess": "無効化",
"revokeSuccess": "アクセスが取り消されました",
"revokeFailed": "アクセスの取り消しに失敗しました",
"close": "閉じる",
"targetHostsLabel": "対象ホスト",
"targetHostsHint": "このコマンドをターミナルを開かずに直接実行するホストを選択してください。空欄のままにすると、アクティブなターミナルで実行されます。",
"clearTargetHosts": "クリア",
"noHostsAvailable": "ホストがいません",
"searchHosts": "ホストを検索",
"runOnTargets": "ターゲットホスト上で実行",
"executionResultTitle": "「{{name}}」の検索結果",
"executionResultDescription": "各ターゲットホストからの出力。",
"executionSuccess": "成功",
"executionFailed": "失敗",
"directRunSuccess": "\"{{name}}\" を {{count}} 台のホストで実行しました",
"directRunPartialFail": "「{{name}}」が一部のホストで失敗しました",
"reorderFailed": "スニペットの並べ替えに失敗しました",
"dropToRemoveFromFolder": "フォルダから移動するには、ここにドロップしてください。",
"shareSnippetTitle": "「{{name}} を共有する」",
"shareFolderTitle": "共有フォルダ \"{{name}}\"",
"shareWith": "共有相手",
"usersTab": "ユーザー",
"rolesTab": "ロール",
"shareSearchPlaceholder": "ユーザーまたはロールを検索",
"shareNoMatches": "一致する項目はありません",
"shareWithCount": "{{count}}と共有する",
"shareFolderHint": "このフォルダ内のすべてのスニペットを共有します。後から追加されたスニペットは自動的に共有されません。",
"shareFolderSummary": "このフォルダには共有されたスニペットが {{count}} 個あります。",
"grantedBy": "付与者",
"expired": "期限切れ",
"variablesDialogTitle": "「{{name}} を実行」",
"variablesDialogDescription": "このコードスニペットを実行する前に、必要な値を入力してください。",
"variablesPreviewLabel": "プレビュー",
"variablesConfirmButton": "実行",
"keybindings": {
"runSnippet": "既存のスニペットを実行する",
"snippetLabel": "抜粋",
"selectSnippet": "抜粋を選択してください",
"snippetMissing": "スニペットが見つかりません",
"snippetRequired": "抜粋を選択してください"
},
"paletteHintRun": "アクティブなターミナルタブで実行します",
"host": {
"startupTitle": "起動時スニペット",
"quickActionsTitle": "クイックアクション",
"quickActionsDescription": "クイックアクションはホストメトリクスツールバーにボタンとして表示され、ワンクリックでコマンドを実行できます。",
"noQuickActions": "クイックアクションはまだありません",
"buttonLabel": "ボタンラベル",
"selectSnippet": "スニペットを選択...",
"addQuickAction": "アクションを追加",
"tabTitle": "スニペット",
"startupDescription": "このホストに接続するたびにターミナルで実行されます。 $HOST のような変数には値が入力され、入力を求めるスニペットはスキップされます。",
"none": "すべて解除",
"removeQuickAction": "クイックアクションを削除する"
},
"quickActions": {
"running": "{{name}} を実行中...",
"succeeded": "{{name}} が正常に完了しました",
"failed": "{{name}} が失敗しました",
"error": "{{name}} の実行に失敗しました"
},
"paletteHintPaste": "アクティブなターミナルタブに貼り付けてください",
"targetTerminals": "走る",
"targetTerminalsHint": "オプション、それ以外の場合はアクティブなタブ",
"selectAll": "すべて選択",
"selectNone": "すべて解除"
}
@@ -0,0 +1,235 @@
{
"nav": {
"snippets": "스니펫"
},
"onboarding": {
"feature_snippets": "스니펫",
"feature_snippets_desc": "자주 실행하는 명령어를 저장하고 한 번의 클릭으로 터미널에 전송하세요."
},
"permissions": {
"view": {
"title": "미리보기",
"description": "내가 작성한 코드 조각, 메모, 공유한 코드 조각을 확인하세요."
},
"create": {
"title": "코드 조각 만들기",
"description": "새로운 스니펫, 메모 및 폴더를 만드세요."
},
"edit": {
"title": "코드 조각 편집",
"description": "기존 코드 조각 및 폴더의 이름을 바꾸거나 변경하세요."
},
"delete": {
"title": "코드 조각을 삭제하세요",
"description": "스니펫과 폴더를 삭제하세요."
},
"share": {
"title": "짧은 글 공유하기",
"description": "다른 사용자 또는 역할과 코드 조각 및 폴더를 공유하세요."
}
},
"settings": {
"foldersCollapsed": {
"label": "기본적으로 폴더 접기",
"description": "스니펫 패널을 열 때 각 스니펫 폴더가 접힌 상태로 시작됩니다."
},
"showCommands": {
"label": "명령 표시",
"description": "각 코드 조각의 명령 첫 번째 줄을 이름 아래에 표시합니다."
},
"confirmExecution": {
"label": "실행하기 전에 확인하세요",
"description": "터미널에서 명령어를 실행하기 전에 먼저 허락을 구하세요."
}
},
"cancel": "취소",
"loading": "로딩 중...",
"searchPlaceholder": "스니펫 검색",
"newFolder": "새 폴더",
"newSnippet": "새로운 스니펫",
"noFolder": "폴더 없음",
"noSnippetsInFolder": "이 폴더에 스니펫이 없습니다",
"noTerminalTabsOpen": "터미널 탭이 열려 있지 않습니다.",
"run": "실행",
"pasteToTerminal": "터미널에 붙여넣기",
"copySuccess": "클립보드에 복사됨",
"importExport": "가져오기 / 내보내기",
"importFailed": "스니펫 가져오기 실패",
"nameLabel": "이름",
"namePlaceholder": "스니펫 이름",
"descriptionLabel": "설명",
"descriptionPlaceholder": "선택 사항 설명",
"folderLabel": "폴더",
"typeLabel": "유형",
"typeCommand": "명령",
"typeNote": "메모",
"commandLabel": "명령",
"commandPlaceholder": "실행할 명령어 (예: systemctl status $HOST)",
"noteLabel": "메모",
"notePlaceholder": "터미널에 붙여넣을 텍스트",
"createSnippetTitle": "코드 조각 생성",
"createSnippetButton": "코드 조각 생성",
"createSuccess": "코드 조각이 생성되었습니다",
"createFailed": "스니펫 생성에 실패했습니다",
"editSnippetTitle": "코드 조각 편집",
"saveSnippetButton": "코드 조각 저장",
"updateSuccess": "스니펫이 업데이트되었습니다.",
"updateFailed": "스니펫 업데이트에 실패했습니다",
"deleteFailed": "스니펫 삭제에 실패했습니다",
"createFolderTitle": "폴더 생성",
"createFolderButton": "폴더 생성",
"folderCreateSuccess": "폴더가 생성되었습니다",
"folderCreateFailed": "폴더 생성에 실패했습니다",
"editFolderTitle": "폴더 편집",
"saveFolderButton": "폴더 저장",
"folderEditSuccess": "폴더가 업데이트되었습니다",
"folderEditFailed": "폴더 업데이트에 실패했습니다",
"folderNameLabel": "폴더 이름",
"folderNamePlaceholder": "폴더 이름",
"folderIconLabel": "아이콘",
"folderDeleteSuccess": "폴더가 삭제되었습니다",
"folderDeleteFailed": "폴더 삭제 실패",
"confirmRunMessage": "\"{{name}}\"을(를) 실행하시겠습니까?",
"confirmRunButton": "실행",
"runSuccess": "{{name}}\"을 {{count}} 터미널에서 실행했습니다.",
"pasteSuccess": "\"{{name}}\"을 {{count}} 터미널에 붙여넣었습니다.",
"admin": {
"tabTitle": "스니펫",
"count": "{{count}}개의 스니펫",
"add": "스니펫 추가",
"namePlaceholder": "스니펫 이름",
"contentPlaceholder": "명령 내용",
"folderPlaceholder": "폴더 (선택 사항)",
"empty": "이 사용자는 스니펫이 없습니다",
"deleteConfirm": "{{username}}님의 스니펫 \"{{name}}\"을 삭제하시겠습니까?",
"deleted": "스니펫이 삭제되었습니다",
"deleteFailed": "스니펫 삭제에 실패했습니다",
"requiredFields": "스니펫 이름과 내용이 필요합니다",
"saved": "스니펫이 저장되었습니다",
"saveFailed": "스니펫 저장에 실패했습니다",
"saving": "저장 중...",
"save": "저장"
},
"backToSnippets": "스니펫으로 돌아가기",
"settingsTitle": "스니펫 설정",
"settingsDisplayTitle": "표시하다",
"settingsBehaviorTitle": "동작",
"typeCommandHint": "현재 활성화된 터미널에서 실행됩니다.",
"typeNoteHint": "실행하지 않고 활성화된 터미널에 붙여넣습니다.",
"variablesHint": "변수: $HOST, $USER, $PORT, $NAME, ${INPUT_1:Label}",
"doubleClickToRun": "두 번 클릭하여 실행하세요",
"sharedBadge": "공유됨",
"copyToClipboard": "클립보드에 복사",
"copyFailed": "클립보드로 복사하지 못했습니다.",
"moreOptions": "더 많은 옵션",
"moreActions": "더 보기",
"moveToFolder": "폴더로 이동",
"deleteSnippet": "코드 조각 삭제",
"deleteSnippetConfirm": "\"{{name}} \" 부분을 삭제하시겠습니까?",
"deleteSuccess": "스니펫이 삭제되었습니다",
"delete": "삭제",
"folderActions": "폴더 작업",
"addSnippetHere": "여기에 새로운 코드 조각이 있습니다.",
"deleteFolder": "폴더 삭제",
"deleteFolderConfirm": "\"{{name}}\" 폴더를 삭제하시겠습니까? 해당 폴더의 조각들이 폴더 밖으로 이동합니다.",
"createFolderDescription": "관련된 코드 조각들을 함께 그룹화하세요.",
"editFolderDescription": "이 폴더의 이름, 색상 또는 아이콘을 변경하세요.",
"folderColorLabel": "색상",
"loadFailed": "스니펫을 로드하는 데 실패했습니다.",
"importSkipExisting": "가져오기 (기존 건너뛰기)",
"importOverwrite": "가져오기(기존 파일 덮어쓰기)",
"importInvalidFile": "해당 파일은 유효한 스니펫 내보내기 파일이 아닙니다.",
"importSuccess": "{{imported}}가져오기 완료, {{updated}}업데이트 완료, {{skipped}} 건너뛰기 완료",
"exportSnippets": "내보내기 스니펫",
"exportSuccess": "내보낸 코드 조각",
"exportFailed": "스니펫 내보내기 실패",
"expandAll": "모든 폴더 펼치기",
"collapseAll": "모든 폴더 접기",
"docsLink": "문서",
"clearSearch": "검색 결과 지우기",
"noSearchResults": "검색 결과와 일치하는 스니펫이 없습니다.",
"emptyTitle": "아직 설정된 스니펫이 없습니다",
"emptyDescription": "자주 사용하는 명령어를 저장해 두었다가 터미널에서 한 번의 클릭으로 실행하세요.",
"shareSnippet": "스니펫 공유",
"shareFolder": "공유 폴더",
"shareExpiry": "만료",
"shareExpiryOptions": {
"h0": "없음",
"h1": "1시간 안에",
"h24": "하루 만에",
"h168": "7일 안에",
"h720": "30일 안에"
},
"shareButton": "공유",
"shareSuccess": "{{count}}와 공유됨",
"shareFailed": "공유에 실패했습니다",
"shareLoadFailed": "공유 세부 정보를 불러오는 데 실패했습니다.",
"currentAccess": "현재 접근 권한",
"notSharedYet": "아직 아무에게도 공유하지 않았습니다.",
"revokeAccess": "취소",
"revokeSuccess": "접근 권한이 취소되었습니다",
"revokeFailed": "접근 권한 취소 실패",
"close": "닫기",
"targetHostsLabel": "대상 호스트",
"targetHostsHint": "터미널 창을 열지 않고 이 명령을 직접 실행할 호스트를 선택하세요. 활성 터미널에서 실행하려면 비워 두세요.",
"clearTargetHosts": "비우기",
"noHostsAvailable": "사용 가능한 호스트가 없습니다.",
"searchHosts": "호스트 검색",
"runOnTargets": "대상 호스트에서 실행",
"executionResultTitle": "\"{{name}} \"에 대한 결과",
"executionResultDescription": "각 대상 호스트의 출력입니다.",
"executionSuccess": "성공",
"executionFailed": "실패",
"directRunSuccess": "\"{{name}}\"을(를) {{count}}개 호스트에서 실행했습니다",
"directRunPartialFail": "\"{{name}}\"가 일부 호스트에서 실패했습니다.",
"reorderFailed": "스니펫 순서 변경에 실패했습니다.",
"dropToRemoveFromFolder": "폴더 밖으로 이동하려면 여기에 드롭하세요.",
"shareSnippetTitle": "\"{{name}} \" 공유",
"shareFolderTitle": "공유 폴더 \"{{name}}\"",
"shareWith": "공유 대상",
"usersTab": "사용자",
"rolesTab": "역할",
"shareSearchPlaceholder": "사용자 또는 역할 검색",
"shareNoMatches": "일치하는 항목이 없습니다",
"shareWithCount": "{{count}}와 공유하세요",
"shareFolderHint": "이 폴더에 있는 모든 코드 조각을 공유합니다. 나중에 추가된 코드 조각은 자동으로 공유되지 않습니다.",
"shareFolderSummary": "이 폴더에 공유된 {{count}} 코드 조각",
"grantedBy": "공유자",
"expired": "만료됨",
"variablesDialogTitle": "\"{{name}} \" 실행",
"variablesDialogDescription": "이 코드 조각을 실행하기 전에 필요한 값을 입력하세요.",
"variablesPreviewLabel": "미리보기",
"variablesConfirmButton": "실행",
"keybindings": {
"runSnippet": "기존 코드 조각을 실행하세요",
"snippetLabel": "단편",
"selectSnippet": "코드 조각을 선택하세요",
"snippetMissing": "스니펫을 찾을 수 없습니다.",
"snippetRequired": "코드 조각을 선택하세요"
},
"paletteHintRun": "현재 활성화된 터미널 탭에서 실행하세요",
"host": {
"startupTitle": "시작 스니펫",
"quickActionsTitle": "빠른 작업",
"quickActionsDescription": "빠른 작업은 한 번의 클릭으로 명령을 실행할 수 있도록 호스트 메트릭 도구 모음에 버튼으로 표시됩니다.",
"noQuickActions": "아직 빠른 작업이 없습니다.",
"buttonLabel": "버튼 레이블",
"selectSnippet": "스니펫 선택...",
"addQuickAction": "작업 추가",
"tabTitle": "스니펫",
"startupDescription": "이 호스트에 연결될 때마다 터미널에서 실행됩니다. $HOST 와 같은 변수가 채워지고, 입력을 요청하는 부분은 건너뜁니다.",
"none": "전체 해제",
"removeQuickAction": "빠른 실행 제거"
},
"quickActions": {
"running": "{{name}} 실행 중...",
"succeeded": "{{name}}이(가) 성공적으로 완료되었습니다.",
"failed": "{{name}} 실패",
"error": "{{name}} 실행에 실패했습니다."
},
"paletteHintPaste": "활성화된 터미널 탭에 붙여넣으세요",
"targetTerminals": "달리기",
"targetTerminalsHint": "선택 사항이며, 그렇지 않으면 활성 탭이 표시됩니다.",
"selectAll": "모두",
"selectNone": "전체 해제"
}
@@ -0,0 +1,235 @@
{
"nav": {
"snippets": "Fragmenten"
},
"onboarding": {
"feature_snippets": "Fragmenten",
"feature_snippets_desc": "Sla de commando's die je vaak gebruikt op en stuur ze met één klik naar een terminal."
},
"permissions": {
"view": {
"title": "Bekijk fragmenten",
"description": "Bekijk je eigen fragmenten, notities en gedeelde fragmenten."
},
"create": {
"title": "Maak codefragmenten aan.",
"description": "Maak nieuwe fragmenten, notities en mappen aan."
},
"edit": {
"title": "Bewerk fragmenten",
"description": "Hernoem of wijzig bestaande codefragmenten en mappen."
},
"delete": {
"title": "Verwijder fragmenten",
"description": "Verwijder fragmenten en mappen."
},
"share": {
"title": "Deel fragmenten",
"description": "Deel fragmenten en mappen met andere gebruikers of rollen."
}
},
"settings": {
"foldersCollapsed": {
"label": "Mappen standaard inklappen",
"description": "Wanneer u het paneel 'Snippets' opent, wordt elke map met codefragmenten standaard ingeklapt weergegeven."
},
"showCommands": {
"label": "Toon commando's",
"description": "Toon de eerste regel van de opdracht van elk codefragment onder de naam ervan."
},
"confirmExecution": {
"label": "Controleer voordat u begint.",
"description": "Vraag toestemming voordat een commandofragment in een terminal wordt uitgevoerd."
}
},
"cancel": "Annuleren",
"loading": "Laden...",
"searchPlaceholder": "Zoekfragmenten",
"newFolder": "Nieuwe map",
"newSnippet": "Nieuw fragment",
"noFolder": "Geen map",
"noSnippetsInFolder": "Geen codefragmenten in deze map",
"noTerminalTabsOpen": "Er is geen terminaltabblad geopend",
"run": "Loop",
"pasteToTerminal": "Plak in de terminal",
"copySuccess": "Gekopieerd naar het klembord",
"importExport": "Import/Export",
"importFailed": "Het importeren van codefragmenten is mislukt.",
"nameLabel": "Naam",
"namePlaceholder": "Fragmentnaam",
"descriptionLabel": "Beschrijving",
"descriptionPlaceholder": "Optionele beschrijving",
"folderLabel": "Map",
"typeLabel": "Type",
"typeCommand": "Commando",
"typeNote": "Opmerking",
"commandLabel": "Commando",
"commandPlaceholder": "Commando om uit te voeren, bijvoorbeeld systemctl status $HOST",
"noteLabel": "Opmerking",
"notePlaceholder": "Tekst om in de terminal te plakken",
"createSnippetTitle": "Maak een codefragment aan",
"createSnippetButton": "Maak een codefragment aan",
"createSuccess": "Fragment gemaakt",
"createFailed": "Het is niet gelukt om een codefragment te maken.",
"editSnippetTitle": "Bewerk fragment",
"saveSnippetButton": "Bewaar fragment",
"updateSuccess": "Fragment bijgewerkt",
"updateFailed": "Het bijwerken van het codefragment is mislukt.",
"deleteFailed": "Het verwijderen van het fragment is mislukt.",
"createFolderTitle": "Map aanmaken",
"createFolderButton": "Map aanmaken",
"folderCreateSuccess": "Map aangemaakt",
"folderCreateFailed": "Map aanmaken mislukt",
"editFolderTitle": "Map bewerken",
"saveFolderButton": "Map opslaan",
"folderEditSuccess": "Map bijgewerkt",
"folderEditFailed": "Het bijwerken van de map is mislukt.",
"folderNameLabel": "Mapnaam",
"folderNamePlaceholder": "Mapnaam",
"folderIconLabel": "Icon",
"folderDeleteSuccess": "Map verwijderd",
"folderDeleteFailed": "Map verwijderen mislukt",
"confirmRunMessage": "Run \"{{name}}\"?",
"confirmRunButton": "Loop",
"runSuccess": "Voerde \"{{name}}\" uit op {{count}} terminal(s)",
"pasteSuccess": "\"{{name}}\" is geplakt in de terminal(s) {{count}}",
"admin": {
"tabTitle": "Fragmenten",
"count": "{{count}} fragmenten",
"add": "Voeg codefragment toe",
"namePlaceholder": "Fragmentnaam",
"contentPlaceholder": "Opdrachtinhoud",
"folderPlaceholder": "Map (optioneel)",
"empty": "Deze gebruiker heeft geen codefragmenten.",
"deleteConfirm": "Verwijder het fragment \"{{name}}\" dat bij {{username}} hoort.",
"deleted": "Fragment verwijderd",
"deleteFailed": "Het verwijderen van het fragment is mislukt.",
"requiredFields": "De naam en inhoud van het codefragment zijn verplicht.",
"saved": "Fragment opgeslagen",
"saveFailed": "Het opslaan van het codefragment is mislukt.",
"saving": "Besparing...",
"save": "Redden"
},
"backToSnippets": "Terug naar fragmenten",
"settingsTitle": "Snippet-instellingen",
"settingsDisplayTitle": "Weergave",
"settingsBehaviorTitle": "Gedrag",
"typeCommandHint": "Wordt uitgevoerd in de actieve terminal.",
"typeNoteHint": "Plakt in de actieve terminal zonder deze uit te voeren.",
"variablesHint": "Variabelen: $HOST, $USER, $PORT, $NAME, ${INPUT_1:Label}",
"doubleClickToRun": "Dubbelklik om te starten",
"sharedBadge": "Gedeeld",
"copyToClipboard": "Kopiëren naar het klembord",
"copyFailed": "Kopiëren naar klembord mislukt",
"moreOptions": "Meer opties",
"moreActions": "Meer acties",
"moveToFolder": "Verplaatsen naar map",
"deleteSnippet": "Verwijder fragment",
"deleteSnippetConfirm": "Verwijder fragment \"{{name}}\"?",
"deleteSuccess": "Fragment verwijderd",
"delete": "Verwijderen",
"folderActions": "Mapacties",
"addSnippetHere": "Nieuw fragment hier",
"deleteFolder": "Map verwijderen",
"deleteFolderConfirm": "Map \"{{name}}\" verwijderen? De fragmenten ervan worden uit de map verplaatst.",
"createFolderDescription": "Groepeer verwante fragmenten bij elkaar.",
"editFolderDescription": "Wijzig de naam, kleur of het pictogram van deze map.",
"folderColorLabel": "Kleur",
"loadFailed": "Het laden van codefragmenten is mislukt.",
"importSkipExisting": "Importeren (bestaande overslaan)",
"importOverwrite": "Importeren (bestaande overschrijven)",
"importInvalidFile": "Dat bestand is geen geldige codefragmentexport.",
"importSuccess": "Geïmporteerd {{imported}}, bijgewerkt {{updated}}, overgeslagen {{skipped}}",
"exportSnippets": "Exporteer fragmenten",
"exportSuccess": "Uittreksels geëxporteerd",
"exportFailed": "Het exporteren van codefragmenten is mislukt.",
"expandAll": "Vouw alle mappen uit",
"collapseAll": "Alle mappen inklappen",
"docsLink": "Documentatie",
"clearSearch": "Zoekopdracht wissen",
"noSearchResults": "Er zijn geen resultaten gevonden die overeenkomen met uw zoekopdracht.",
"emptyTitle": "Nog geen fragmenten beschikbaar",
"emptyDescription": "Sla de commando's die je vaak gebruikt op, zodat je ze vervolgens met één klik in een terminal kunt uitvoeren.",
"shareSnippet": "Deel fragment",
"shareFolder": "Map delen",
"shareExpiry": "Verloopt",
"shareExpiryOptions": {
"h0": "Nooit",
"h1": "Over 1 uur",
"h24": "Binnen 1 dag",
"h168": "Over 7 dagen",
"h720": "Over 30 dagen"
},
"shareButton": "Deel",
"shareSuccess": "Gedeeld met {{count}}",
"shareFailed": "Delen mislukt",
"shareLoadFailed": "Het laden van de deelgegevens is mislukt.",
"currentAccess": "Huidige toegang",
"notSharedYet": "Nog met niemand gedeeld",
"revokeAccess": "Herroepen",
"revokeSuccess": "Toegang ingetrokken",
"revokeFailed": "Toegang intrekken is mislukt",
"close": "Dichtbij",
"targetHostsLabel": "Doelwithosts",
"targetHostsHint": "Selecteer de hosts waarop u deze opdracht direct wilt uitvoeren, zonder dat er een terminal open is. Laat dit veld leeg om de opdracht in de actieve terminal uit te voeren.",
"clearTargetHosts": "Duidelijk",
"noHostsAvailable": "Geen hosts beschikbaar",
"searchHosts": "Zoek hosts",
"runOnTargets": "Uitvoeren op doelhosts",
"executionResultTitle": "Resultaten voor \"{{name}}\"",
"executionResultDescription": "Uitvoer van elke doelhost.",
"executionSuccess": "Succes",
"executionFailed": "Mislukt",
"directRunSuccess": "Voerde \"{{name}}\" uit op {{count}} host(s)",
"directRunPartialFail": "\"{{name}}\" is op sommige hosts mislukt.",
"reorderFailed": "Het is niet gelukt om de fragmenten opnieuw te ordenen.",
"dropToRemoveFromFolder": "Sleep hierheen om de map te verlaten.",
"shareSnippetTitle": "Delen \"{{name}}\"",
"shareFolderTitle": "Map delen \"{{name}}\"",
"shareWith": "Delen met",
"usersTab": "Gebruikers",
"rolesTab": "Rollen",
"shareSearchPlaceholder": "Zoek gebruikers of rollen",
"shareNoMatches": "Geen overeenkomsten",
"shareWithCount": "Delen met {{count}}",
"shareFolderHint": "Deelt alle codefragmenten in deze map. Later toegevoegde fragmenten worden niet automatisch gedeeld.",
"shareFolderSummary": "Gedeelde {{count}} fragment(en) in deze map",
"grantedBy": "Toegekend door",
"expired": "Verlopen",
"variablesDialogTitle": "Uitvoeren \"{{name}}\"",
"variablesDialogDescription": "Vul de waarden in die dit codefragment nodig heeft voordat je het uitvoert.",
"variablesPreviewLabel": "Voorbeeld",
"variablesConfirmButton": "Loop",
"keybindings": {
"runSnippet": "Voer het bestaande codefragment uit.",
"snippetLabel": "Fragment",
"selectSnippet": "Selecteer een fragment",
"snippetMissing": "fragment niet gevonden",
"snippetRequired": "Selecteer een fragment"
},
"paletteHintRun": "Voer dit uit in het actieve terminaltabblad.",
"host": {
"startupTitle": "Opstartfragment",
"quickActionsTitle": "Snelle acties",
"quickActionsDescription": "Snelle acties verschijnen als knoppen in de Host Metrics-werkbalk, zodat u opdrachten met één klik kunt uitvoeren.",
"noQuickActions": "Nog geen snelle acties ondernomen.",
"buttonLabel": "Knoplabel",
"selectSnippet": "Selecteer fragment...",
"addQuickAction": "Actie toevoegen",
"tabTitle": "Fragmenten",
"startupDescription": "Wordt elke keer dat er verbinding wordt gemaakt met deze host in de terminal uitgevoerd. Variabelen zoals $HOST worden ingevuld; een codefragment dat om invoer vraagt, wordt overgeslagen.",
"none": "Geen",
"removeQuickAction": "Verwijder de snelle actie"
},
"quickActions": {
"running": "Het uitvoeren van {{name}}...",
"succeeded": "{{name}} succesvol voltooid",
"failed": "{{name}} mislukt",
"error": "Het uitvoeren van {{name}} is mislukt."
},
"paletteHintPaste": "Plak dit in het actieve terminaltabblad.",
"targetTerminals": "Ren binnen",
"targetTerminalsHint": "optioneel, anders het actieve tabblad",
"selectAll": "Alle",
"selectNone": "Geen"
}
@@ -0,0 +1,235 @@
{
"nav": {
"snippets": "Snippets"
},
"onboarding": {
"feature_snippets": "Snippets",
"feature_snippets_desc": "Save commands you run often and send them to a terminal in one click."
},
"permissions": {
"view": {
"title": "View snippets",
"description": "See your own snippets, notes and shared snippets."
},
"create": {
"title": "Create snippets",
"description": "Create new snippets, notes and folders."
},
"edit": {
"title": "Edit snippets",
"description": "Rename or change existing snippets and folders."
},
"delete": {
"title": "Delete snippets",
"description": "Delete snippets and folders."
},
"share": {
"title": "Share snippets",
"description": "Share snippets and folders with other users or roles."
}
},
"settings": {
"foldersCollapsed": {
"label": "Collapse folders by default",
"description": "Start each snippet folder collapsed when you open the Snippets panel."
},
"showCommands": {
"label": "Show commands",
"description": "Show the first line of each snippet's command under its name."
},
"confirmExecution": {
"label": "Confirm before running",
"description": "Ask before a command snippet runs in a terminal."
}
},
"cancel": "Avbryt",
"loading": "Laster...",
"searchPlaceholder": "Søk i snippets",
"newFolder": "New folder",
"newSnippet": "New snippet",
"noFolder": "Ingen mappe",
"noSnippetsInFolder": "No snippets in this folder",
"noTerminalTabsOpen": "No terminal tab is open",
"run": "Kjør",
"pasteToTerminal": "Paste to terminal",
"copySuccess": "Kopiert til utklippstavlen",
"importExport": "Import / Export",
"importFailed": "Failed to import snippets",
"nameLabel": "Navn",
"namePlaceholder": "Snippet name",
"descriptionLabel": "Beskrivelse",
"descriptionPlaceholder": "Valgfri beskrivelse",
"folderLabel": "Mappe",
"typeLabel": "Type",
"typeCommand": "Kommando",
"typeNote": "Note",
"commandLabel": "Kommando",
"commandPlaceholder": "Command to run, e.g. systemctl status $HOST",
"noteLabel": "Note",
"notePlaceholder": "Text to paste into the terminal",
"createSnippetTitle": "Create snippet",
"createSnippetButton": "Create snippet",
"createSuccess": "Snippet created",
"createFailed": "Kunne ikke opprette snippet",
"editSnippetTitle": "Edit snippet",
"saveSnippetButton": "Save snippet",
"updateSuccess": "Snippet updated",
"updateFailed": "Kunne ikke oppdatere snippet",
"deleteFailed": "Kunne ikke slette snippet",
"createFolderTitle": "Create folder",
"createFolderButton": "Create folder",
"folderCreateSuccess": "Folder created",
"folderCreateFailed": "Kunne ikke opprette mappe",
"editFolderTitle": "Edit folder",
"saveFolderButton": "Save folder",
"folderEditSuccess": "Folder updated",
"folderEditFailed": "Failed to update folder",
"folderNameLabel": "Folder name",
"folderNamePlaceholder": "Folder name",
"folderIconLabel": "Icon",
"folderDeleteSuccess": "Folder deleted",
"folderDeleteFailed": "Failed to delete folder",
"confirmRunMessage": "Run \"{{name}}\"?",
"confirmRunButton": "Kjør",
"runSuccess": "Ran \"{{name}}\" on {{count}} terminal(s)",
"pasteSuccess": "Pasted \"{{name}}\" into {{count}} terminal(s)",
"admin": {
"tabTitle": "Snippets",
"count": "{{count}} snippets",
"add": "Add Snippet",
"namePlaceholder": "Snippet name",
"contentPlaceholder": "Command content",
"folderPlaceholder": "Folder (optional)",
"empty": "This user has no snippets",
"deleteConfirm": "Delete snippet \"{{name}}\" belonging to {{username}}?",
"deleted": "Snippet deleted",
"deleteFailed": "Kunne ikke slette snippet",
"requiredFields": "Snippet name and content are required",
"saved": "Snippet saved",
"saveFailed": "Failed to save snippet",
"saving": "Lagrer...",
"save": "Lagre"
},
"backToSnippets": "Back to snippets",
"settingsTitle": "Snippet settings",
"settingsDisplayTitle": "Display",
"settingsBehaviorTitle": "Oppførsel",
"typeCommandHint": "Runs in the active terminal.",
"typeNoteHint": "Pastes into the active terminal without running.",
"variablesHint": "Variables: $HOST, $USER, $PORT, $NAME, ${INPUT_1:Label}",
"doubleClickToRun": "Double click to run",
"sharedBadge": "Shared",
"copyToClipboard": "Copy to clipboard",
"copyFailed": "Kunne ikke kopiere til utklippstavlen",
"moreOptions": "More options",
"moreActions": "More actions",
"moveToFolder": "Move to folder",
"deleteSnippet": "Delete snippet",
"deleteSnippetConfirm": "Delete snippet \"{{name}}\"?",
"deleteSuccess": "Snippet deleted",
"delete": "Slett",
"folderActions": "Folder actions",
"addSnippetHere": "New snippet here",
"deleteFolder": "Delete folder",
"deleteFolderConfirm": "Delete folder \"{{name}}\"? Its snippets move out of the folder.",
"createFolderDescription": "Group related snippets together.",
"editFolderDescription": "Change this folder's name, color or icon.",
"folderColorLabel": "Color",
"loadFailed": "Failed to load snippets",
"importSkipExisting": "Import (skip existing)",
"importOverwrite": "Import (overwrite existing)",
"importInvalidFile": "That file is not a valid snippets export",
"importSuccess": "Imported {{imported}}, updated {{updated}}, skipped {{skipped}}",
"exportSnippets": "Export snippets",
"exportSuccess": "Snippets exported",
"exportFailed": "Failed to export snippets",
"expandAll": "Expand all folders",
"collapseAll": "Collapse all folders",
"docsLink": "Dokumentasjon",
"clearSearch": "Clear search",
"noSearchResults": "No snippets match your search",
"emptyTitle": "Ingen snippets ennå",
"emptyDescription": "Save commands you run often, then run them in a terminal with one click.",
"shareSnippet": "Share snippet",
"shareFolder": "Share folder",
"shareExpiry": "Expires",
"shareExpiryOptions": {
"h0": "Never",
"h1": "In 1 hour",
"h24": "In 1 day",
"h168": "In 7 days",
"h720": "In 30 days"
},
"shareButton": "Share",
"shareSuccess": "Shared with {{count}}",
"shareFailed": "Failed to share",
"shareLoadFailed": "Failed to load sharing details",
"currentAccess": "Current access",
"notSharedYet": "Not shared with anyone yet",
"revokeAccess": "Revoke",
"revokeSuccess": "Access revoked",
"revokeFailed": "Failed to revoke access",
"close": "Lukk",
"targetHostsLabel": "Target hosts",
"targetHostsHint": "Pick hosts to run this command on directly, without a terminal open. Leave empty to run it in the active terminal.",
"clearTargetHosts": "Tøm",
"noHostsAvailable": "Ingen verter tilgjengelig",
"searchHosts": "Search hosts",
"runOnTargets": "Run on target hosts",
"executionResultTitle": "Results for \"{{name}}\"",
"executionResultDescription": "Output from each target host.",
"executionSuccess": "Suksess",
"executionFailed": "Mislyktes",
"directRunSuccess": "Ran \"{{name}}\" on {{count}} host(s)",
"directRunPartialFail": "\"{{name}}\" failed on some hosts",
"reorderFailed": "Failed to reorder snippets",
"dropToRemoveFromFolder": "Drop here to move out of the folder",
"shareSnippetTitle": "Share \"{{name}}\"",
"shareFolderTitle": "Share folder \"{{name}}\"",
"shareWith": "Share with",
"usersTab": "Brukere",
"rolesTab": "Roles",
"shareSearchPlaceholder": "Search users or roles",
"shareNoMatches": "No matches",
"shareWithCount": "Share with {{count}}",
"shareFolderHint": "Shares every snippet in this folder. Snippets added later are not shared automatically.",
"shareFolderSummary": "Shared {{count}} snippet(s) in this folder",
"grantedBy": "Granted by",
"expired": "Utløpt",
"variablesDialogTitle": "Run \"{{name}}\"",
"variablesDialogDescription": "Fill in the values this snippet needs before running it.",
"variablesPreviewLabel": "Forhåndsvis",
"variablesConfirmButton": "Kjør",
"keybindings": {
"runSnippet": "Run existing snippet",
"snippetLabel": "Snippet",
"selectSnippet": "Select a snippet",
"snippetMissing": "snippet not found",
"snippetRequired": "Select a snippet"
},
"paletteHintRun": "Run in the active terminal tab",
"host": {
"startupTitle": "Oppstarts-snippet",
"quickActionsTitle": "Hurtighandlinger",
"quickActionsDescription": "Quick actions appear as buttons in the Host Metrics toolbar for one-click command execution.",
"noQuickActions": "No quick actions yet.",
"buttonLabel": "Button label",
"selectSnippet": "Velg snippet...",
"addQuickAction": "Add Action",
"tabTitle": "Snippets",
"startupDescription": "Runs in the terminal each time it connects to this host. Variables like $HOST are filled in; a snippet that asks for inputs is skipped.",
"none": "Ingen",
"removeQuickAction": "Remove quick action"
},
"quickActions": {
"running": "Utfører {{name}}...",
"succeeded": "{{name}} fullført",
"failed": "{{name}} mislyktes",
"error": "Kunne ikke utføre {{name}}"
},
"paletteHintPaste": "Paste in the active terminal tab",
"targetTerminals": "Run in",
"targetTerminalsHint": "optional, else the active tab",
"selectAll": "All",
"selectNone": "Ingen"
}
@@ -0,0 +1,235 @@
{
"nav": {
"snippets": "Snippety"
},
"onboarding": {
"feature_snippets": "Snippety",
"feature_snippets_desc": "Zapisuj często uruchamiane polecenia i wysyłaj je do terminala jednym kliknięciem."
},
"permissions": {
"view": {
"title": "View snippets",
"description": "See your own snippets, notes and shared snippets."
},
"create": {
"title": "Create snippets",
"description": "Create new snippets, notes and folders."
},
"edit": {
"title": "Edit snippets",
"description": "Rename or change existing snippets and folders."
},
"delete": {
"title": "Delete snippets",
"description": "Delete snippets and folders."
},
"share": {
"title": "Share snippets",
"description": "Share snippets and folders with other users or roles."
}
},
"settings": {
"foldersCollapsed": {
"label": "Domyślnie zwiń foldery",
"description": "Start each snippet folder collapsed when you open the Snippets panel."
},
"showCommands": {
"label": "Show commands",
"description": "Show the first line of each snippet's command under its name."
},
"confirmExecution": {
"label": "Confirm before running",
"description": "Ask before a command snippet runs in a terminal."
}
},
"cancel": "Anuluj",
"loading": "Ładowanie...",
"searchPlaceholder": "Wyszukaj snippety",
"newFolder": "Nowy folder",
"newSnippet": "New snippet",
"noFolder": "Brak folderu",
"noSnippetsInFolder": "Brak snippetów w tym folderze",
"noTerminalTabsOpen": "No terminal tab is open",
"run": "Uruchom",
"pasteToTerminal": "Paste to terminal",
"copySuccess": "Skopiowano do schowka",
"importExport": "Import/Eksport",
"importFailed": "Nie udało się zaimportować snippetów",
"nameLabel": "Nazwa",
"namePlaceholder": "Nazwa snippetu",
"descriptionLabel": "Opis",
"descriptionPlaceholder": "Opis opcjonalny",
"folderLabel": "Folder",
"typeLabel": "Typ",
"typeCommand": "Polecenie",
"typeNote": "Notatka",
"commandLabel": "Polecenie",
"commandPlaceholder": "Command to run, e.g. systemctl status $HOST",
"noteLabel": "Notatka",
"notePlaceholder": "Text to paste into the terminal",
"createSnippetTitle": "Create snippet",
"createSnippetButton": "Create snippet",
"createSuccess": "Snippet created",
"createFailed": "Nie udało się utworzyć snippetu",
"editSnippetTitle": "Edit snippet",
"saveSnippetButton": "Save snippet",
"updateSuccess": "Snippet updated",
"updateFailed": "Nie udało się zaktualizować snippetu",
"deleteFailed": "Nie udało się usunąć snippetu",
"createFolderTitle": "Utwórz folder",
"createFolderButton": "Utwórz folder",
"folderCreateSuccess": "Folder created",
"folderCreateFailed": "Nie udało się utworzyć folderu",
"editFolderTitle": "Edytuj folder",
"saveFolderButton": "Zapisz folder",
"folderEditSuccess": "Folder updated",
"folderEditFailed": "Nie udało się zaktualizować folderu",
"folderNameLabel": "Nazwa folderu",
"folderNamePlaceholder": "Nazwa folderu",
"folderIconLabel": "Ikona",
"folderDeleteSuccess": "Folder deleted",
"folderDeleteFailed": "Nie udało się usunąć folderu",
"confirmRunMessage": "Uruchomić „{{name}}”?",
"confirmRunButton": "Uruchom",
"runSuccess": "Ran \"{{name}}\" on {{count}} terminal(s)",
"pasteSuccess": "Wklejono „{{name}}” do {{count}} terminali",
"admin": {
"tabTitle": "Snippety",
"count": "{{count}} snippetów",
"add": "Dodaj snippet",
"namePlaceholder": "Nazwa snippetu",
"contentPlaceholder": "Treść polecenia",
"folderPlaceholder": "Folder (opcjonalnie)",
"empty": "Ten użytkownik nie ma żadnych snippetów",
"deleteConfirm": "Usunąć snippet „{{name}}” należący do {{username}}?",
"deleted": "Usunięto snippet",
"deleteFailed": "Nie udało się usunąć snippetu",
"requiredFields": "Nazwa i treść snippetu są wymagane",
"saved": "Zapisano snippet",
"saveFailed": "Nie udało się zapisać snippetu",
"saving": "Zapisywanie...",
"save": "Zapisz"
},
"backToSnippets": "Back to snippets",
"settingsTitle": "Ustawienia snippetów",
"settingsDisplayTitle": "Wyświetlanie",
"settingsBehaviorTitle": "Zachowanie",
"typeCommandHint": "Runs in the active terminal.",
"typeNoteHint": "Pastes into the active terminal without running.",
"variablesHint": "Zmienne: $HOST, $USER, $PORT, $NAME, ${INPUT_1:Label}",
"doubleClickToRun": "Double click to run",
"sharedBadge": "Udostępniony",
"copyToClipboard": "Copy to clipboard",
"copyFailed": "Nie udało się skopiować do schowka",
"moreOptions": "Więcej opcji",
"moreActions": "Więcej akcji",
"moveToFolder": "Move to folder",
"deleteSnippet": "Delete snippet",
"deleteSnippetConfirm": "Delete snippet \"{{name}}\"?",
"deleteSuccess": "Usunięto snippet",
"delete": "Usuń",
"folderActions": "Folder actions",
"addSnippetHere": "New snippet here",
"deleteFolder": "Usuń folder",
"deleteFolderConfirm": "Delete folder \"{{name}}\"? Its snippets move out of the folder.",
"createFolderDescription": "Group related snippets together.",
"editFolderDescription": "Change this folder's name, color or icon.",
"folderColorLabel": "Kolor",
"loadFailed": "Failed to load snippets",
"importSkipExisting": "Importuj (pomiń istniejące)",
"importOverwrite": "Import (overwrite existing)",
"importInvalidFile": "That file is not a valid snippets export",
"importSuccess": "Imported {{imported}}, updated {{updated}}, skipped {{skipped}}",
"exportSnippets": "Export snippets",
"exportSuccess": "Snippets exported",
"exportFailed": "Nie udało się wyeksportować snippetów",
"expandAll": "Rozwiń wszystkie foldery",
"collapseAll": "Zwiń wszystkie foldery",
"docsLink": "Documentation",
"clearSearch": "Clear search",
"noSearchResults": "No snippets match your search",
"emptyTitle": "No snippets yet",
"emptyDescription": "Save commands you run often, then run them in a terminal with one click.",
"shareSnippet": "Share snippet",
"shareFolder": "Share folder",
"shareExpiry": "Wygasa",
"shareExpiryOptions": {
"h0": "Nigdy",
"h1": "In 1 hour",
"h24": "In 1 day",
"h168": "In 7 days",
"h720": "In 30 days"
},
"shareButton": "Udostępnij",
"shareSuccess": "Shared with {{count}}",
"shareFailed": "Failed to share",
"shareLoadFailed": "Failed to load sharing details",
"currentAccess": "Aktualny dostęp",
"notSharedYet": "Not shared with anyone yet",
"revokeAccess": "Unieważnij",
"revokeSuccess": "Unieważniono dostęp",
"revokeFailed": "Nie udało się unieważnić dostępu",
"close": "Zamknij",
"targetHostsLabel": "Target hosts",
"targetHostsHint": "Pick hosts to run this command on directly, without a terminal open. Leave empty to run it in the active terminal.",
"clearTargetHosts": "Wyczyść",
"noHostsAvailable": "No hosts available",
"searchHosts": "Wyszukaj hosty",
"runOnTargets": "Run on target hosts",
"executionResultTitle": "Results for \"{{name}}\"",
"executionResultDescription": "Output from each target host.",
"executionSuccess": "Powodzenie",
"executionFailed": "Niepowodzenie",
"directRunSuccess": "Uruchomiono „{{name}}” na {{count}} hostach",
"directRunPartialFail": "\"{{name}}\" failed on some hosts",
"reorderFailed": "Failed to reorder snippets",
"dropToRemoveFromFolder": "Drop here to move out of the folder",
"shareSnippetTitle": "Share \"{{name}}\"",
"shareFolderTitle": "Share folder \"{{name}}\"",
"shareWith": "Udostępnij",
"usersTab": "Użytkownicy",
"rolesTab": "Role",
"shareSearchPlaceholder": "Wyszukaj użytkowników lub role",
"shareNoMatches": "No matches",
"shareWithCount": "Share with {{count}}",
"shareFolderHint": "Shares every snippet in this folder. Snippets added later are not shared automatically.",
"shareFolderSummary": "Shared {{count}} snippet(s) in this folder",
"grantedBy": "Przyznane przez",
"expired": "Wygasły",
"variablesDialogTitle": "Uruchom „{{name}}”",
"variablesDialogDescription": "Przed uruchomieniem snippetu wprowadź wymagane wartości.",
"variablesPreviewLabel": "Podgląd",
"variablesConfirmButton": "Uruchom",
"keybindings": {
"runSnippet": "Uruchom istniejący snippet",
"snippetLabel": "Snippet",
"selectSnippet": "Wybierz snippet",
"snippetMissing": "nie znaleziono snippetu",
"snippetRequired": "Wybierz snippet"
},
"paletteHintRun": "Uruchom w aktywnej karcie terminala",
"host": {
"startupTitle": "Snippet startowy",
"quickActionsTitle": "Szybkie akcje",
"quickActionsDescription": "Szybkie akcje pojawiają się jako przyciski na pasku narzędzi Metryki hosta, umożliwiając wykonanie polecenia jednym kliknięciem.",
"noQuickActions": "Brak szybkich akcji.",
"buttonLabel": "Etykieta przycisku",
"selectSnippet": "Wybierz snippet...",
"addQuickAction": "Dodaj akcję",
"tabTitle": "Snippety",
"startupDescription": "Runs in the terminal each time it connects to this host. Variables like $HOST are filled in; a snippet that asks for inputs is skipped.",
"none": "Żaden",
"removeQuickAction": "Remove quick action"
},
"quickActions": {
"running": "Wykonywanie {{name}}...",
"succeeded": "{{name}} ukończono pomyślnie",
"failed": "{{name}} nie powiodło się",
"error": "Nie udało się wykonać {{name}}"
},
"paletteHintPaste": "Paste in the active terminal tab",
"targetTerminals": "Run in",
"targetTerminalsHint": "optional, else the active tab",
"selectAll": "Wszystkie",
"selectNone": "Żaden"
}
@@ -0,0 +1,235 @@
{
"nav": {
"snippets": "Snippets"
},
"onboarding": {
"feature_snippets": "Snippets",
"feature_snippets_desc": "Save commands you run often and send them to a terminal in one click."
},
"permissions": {
"view": {
"title": "View snippets",
"description": "See your own snippets, notes and shared snippets."
},
"create": {
"title": "Create snippets",
"description": "Create new snippets, notes and folders."
},
"edit": {
"title": "Edit snippets",
"description": "Rename or change existing snippets and folders."
},
"delete": {
"title": "Delete snippets",
"description": "Delete snippets and folders."
},
"share": {
"title": "Share snippets",
"description": "Share snippets and folders with other users or roles."
}
},
"settings": {
"foldersCollapsed": {
"label": "Collapse folders by default",
"description": "Start each snippet folder collapsed when you open the Snippets panel."
},
"showCommands": {
"label": "Show commands",
"description": "Show the first line of each snippet's command under its name."
},
"confirmExecution": {
"label": "Confirm before running",
"description": "Ask before a command snippet runs in a terminal."
}
},
"cancel": "Cancelar",
"loading": "Carregando...",
"searchPlaceholder": "Search snippets",
"newFolder": "New folder",
"newSnippet": "New snippet",
"noFolder": "No folder",
"noSnippetsInFolder": "No snippets in this folder",
"noTerminalTabsOpen": "No terminal tab is open",
"run": "Run",
"pasteToTerminal": "Paste to terminal",
"copySuccess": "Copied to clipboard",
"importExport": "Import / Export",
"importFailed": "Failed to import snippets",
"nameLabel": "Name",
"namePlaceholder": "Snippet name",
"descriptionLabel": "Description",
"descriptionPlaceholder": "Optional description",
"folderLabel": "Pasta",
"typeLabel": "Tipo",
"typeCommand": "Command",
"typeNote": "Note",
"commandLabel": "Command",
"commandPlaceholder": "Command to run, e.g. systemctl status $HOST",
"noteLabel": "Note",
"notePlaceholder": "Text to paste into the terminal",
"createSnippetTitle": "Create snippet",
"createSnippetButton": "Create snippet",
"createSuccess": "Snippet created",
"createFailed": "Failed to create snippet",
"editSnippetTitle": "Edit snippet",
"saveSnippetButton": "Save snippet",
"updateSuccess": "Snippet updated",
"updateFailed": "Failed to update snippet",
"deleteFailed": "Failed to delete snippet",
"createFolderTitle": "Create folder",
"createFolderButton": "Create folder",
"folderCreateSuccess": "Folder created",
"folderCreateFailed": "Failed to create folder",
"editFolderTitle": "Edit folder",
"saveFolderButton": "Save folder",
"folderEditSuccess": "Folder updated",
"folderEditFailed": "Failed to update folder",
"folderNameLabel": "Folder name",
"folderNamePlaceholder": "Folder name",
"folderIconLabel": "Icon",
"folderDeleteSuccess": "Folder deleted",
"folderDeleteFailed": "Failed to delete folder",
"confirmRunMessage": "Run \"{{name}}\"?",
"confirmRunButton": "Run",
"runSuccess": "Ran \"{{name}}\" on {{count}} terminal(s)",
"pasteSuccess": "Pasted \"{{name}}\" into {{count}} terminal(s)",
"admin": {
"tabTitle": "Snippets",
"count": "{{count}} snippets",
"add": "Add Snippet",
"namePlaceholder": "Snippet name",
"contentPlaceholder": "Command content",
"folderPlaceholder": "Folder (optional)",
"empty": "This user has no snippets",
"deleteConfirm": "Delete snippet \"{{name}}\" belonging to {{username}}?",
"deleted": "Snippet deleted",
"deleteFailed": "Failed to delete snippet",
"requiredFields": "Snippet name and content are required",
"saved": "Snippet saved",
"saveFailed": "Failed to save snippet",
"saving": "Salvando...",
"save": "Salvar"
},
"backToSnippets": "Back to snippets",
"settingsTitle": "Snippet settings",
"settingsDisplayTitle": "Display",
"settingsBehaviorTitle": "Comportamento",
"typeCommandHint": "Runs in the active terminal.",
"typeNoteHint": "Pastes into the active terminal without running.",
"variablesHint": "Variables: $HOST, $USER, $PORT, $NAME, ${INPUT_1:Label}",
"doubleClickToRun": "Double click to run",
"sharedBadge": "Shared",
"copyToClipboard": "Copy to clipboard",
"copyFailed": "Falha ao copiar para área de transferência",
"moreOptions": "More options",
"moreActions": "More actions",
"moveToFolder": "Move to folder",
"deleteSnippet": "Delete snippet",
"deleteSnippetConfirm": "Delete snippet \"{{name}}\"?",
"deleteSuccess": "Snippet deleted",
"delete": "Apagar",
"folderActions": "Folder actions",
"addSnippetHere": "New snippet here",
"deleteFolder": "Delete folder",
"deleteFolderConfirm": "Delete folder \"{{name}}\"? Its snippets move out of the folder.",
"createFolderDescription": "Group related snippets together.",
"editFolderDescription": "Change this folder's name, color or icon.",
"folderColorLabel": "Color",
"loadFailed": "Failed to load snippets",
"importSkipExisting": "Importar (ignorar existente)",
"importOverwrite": "Import (overwrite existing)",
"importInvalidFile": "That file is not a valid snippets export",
"importSuccess": "Imported {{imported}}, updated {{updated}}, skipped {{skipped}}",
"exportSnippets": "Export snippets",
"exportSuccess": "Snippets exported",
"exportFailed": "Failed to export snippets",
"expandAll": "Expand all folders",
"collapseAll": "Collapse all folders",
"docsLink": "Documentation",
"clearSearch": "Clear search",
"noSearchResults": "No snippets match your search",
"emptyTitle": "No snippets yet",
"emptyDescription": "Save commands you run often, then run them in a terminal with one click.",
"shareSnippet": "Share snippet",
"shareFolder": "Share folder",
"shareExpiry": "Expires",
"shareExpiryOptions": {
"h0": "Never",
"h1": "In 1 hour",
"h24": "In 1 day",
"h168": "In 7 days",
"h720": "In 30 days"
},
"shareButton": "Share",
"shareSuccess": "Shared with {{count}}",
"shareFailed": "Failed to share",
"shareLoadFailed": "Failed to load sharing details",
"currentAccess": "Current access",
"notSharedYet": "Not shared with anyone yet",
"revokeAccess": "Revoke",
"revokeSuccess": "Access revoked",
"revokeFailed": "Failed to revoke access",
"close": "Fechar",
"targetHostsLabel": "Target hosts",
"targetHostsHint": "Pick hosts to run this command on directly, without a terminal open. Leave empty to run it in the active terminal.",
"clearTargetHosts": "Limpar",
"noHostsAvailable": "No hosts available",
"searchHosts": "Search hosts",
"runOnTargets": "Run on target hosts",
"executionResultTitle": "Results for \"{{name}}\"",
"executionResultDescription": "Output from each target host.",
"executionSuccess": "Success",
"executionFailed": "Failed",
"directRunSuccess": "Ran \"{{name}}\" on {{count}} host(s)",
"directRunPartialFail": "\"{{name}}\" failed on some hosts",
"reorderFailed": "Failed to reorder snippets",
"dropToRemoveFromFolder": "Drop here to move out of the folder",
"shareSnippetTitle": "Share \"{{name}}\"",
"shareFolderTitle": "Share folder \"{{name}}\"",
"shareWith": "Share with",
"usersTab": "Users",
"rolesTab": "Roles",
"shareSearchPlaceholder": "Search users or roles",
"shareNoMatches": "No matches",
"shareWithCount": "Share with {{count}}",
"shareFolderHint": "Shares every snippet in this folder. Snippets added later are not shared automatically.",
"shareFolderSummary": "Shared {{count}} snippet(s) in this folder",
"grantedBy": "Granted by",
"expired": "Expired",
"variablesDialogTitle": "Run \"{{name}}\"",
"variablesDialogDescription": "Fill in the values this snippet needs before running it.",
"variablesPreviewLabel": "Preview",
"variablesConfirmButton": "Run",
"keybindings": {
"runSnippet": "Run existing snippet",
"snippetLabel": "Snippet",
"selectSnippet": "Select a snippet",
"snippetMissing": "snippet not found",
"snippetRequired": "Select a snippet"
},
"paletteHintRun": "Run in the active terminal tab",
"host": {
"startupTitle": "Snippet Inicial",
"quickActionsTitle": "Ações Rápidas",
"quickActionsDescription": "Quick actions appear as buttons in the Host Metrics toolbar for one-click command execution.",
"noQuickActions": "No quick actions yet.",
"buttonLabel": "Button label",
"selectSnippet": "Selecionar snippet...",
"addQuickAction": "Add Action",
"tabTitle": "Snippets",
"startupDescription": "Runs in the terminal each time it connects to this host. Variables like $HOST are filled in; a snippet that asks for inputs is skipped.",
"none": "Nenhum",
"removeQuickAction": "Remove quick action"
},
"quickActions": {
"running": "Executing {{name}}...",
"succeeded": "{{name}} completed successfully",
"failed": "{{name}} failed",
"error": "Failed to execute {{name}}"
},
"paletteHintPaste": "Paste in the active terminal tab",
"targetTerminals": "Run in",
"targetTerminalsHint": "optional, else the active tab",
"selectAll": "All",
"selectNone": "Nenhum"
}
@@ -0,0 +1,235 @@
{
"nav": {
"snippets": "Fragmentos"
},
"onboarding": {
"feature_snippets": "Snippets",
"feature_snippets_desc": "Save commands you run often and send them to a terminal in one click."
},
"permissions": {
"view": {
"title": "View snippets",
"description": "See your own snippets, notes and shared snippets."
},
"create": {
"title": "Create snippets",
"description": "Create new snippets, notes and folders."
},
"edit": {
"title": "Edit snippets",
"description": "Rename or change existing snippets and folders."
},
"delete": {
"title": "Delete snippets",
"description": "Delete snippets and folders."
},
"share": {
"title": "Share snippets",
"description": "Share snippets and folders with other users or roles."
}
},
"settings": {
"foldersCollapsed": {
"label": "Recolher pastas por predefinição",
"description": "Start each snippet folder collapsed when you open the Snippets panel."
},
"showCommands": {
"label": "Show commands",
"description": "Show the first line of each snippet's command under its name."
},
"confirmExecution": {
"label": "Confirm before running",
"description": "Ask before a command snippet runs in a terminal."
}
},
"cancel": "Cancelar",
"loading": "A carregar...",
"searchPlaceholder": "Pesquisar snippets",
"newFolder": "Nova pasta",
"newSnippet": "New snippet",
"noFolder": "Sem pasta",
"noSnippetsInFolder": "Nenhum snippet nesta pasta",
"noTerminalTabsOpen": "No terminal tab is open",
"run": "Executar",
"pasteToTerminal": "Paste to terminal",
"copySuccess": "Copiado para a área de transferência.",
"importExport": "Importar / Exportar",
"importFailed": "Falha ao importar fragmentos",
"nameLabel": "Nome",
"namePlaceholder": "Nome do snippet",
"descriptionLabel": "Descrição",
"descriptionPlaceholder": "Descrição opcional",
"folderLabel": "Pasta",
"typeLabel": "Tipo",
"typeCommand": "Comando",
"typeNote": "Note",
"commandLabel": "Comando",
"commandPlaceholder": "Command to run, e.g. systemctl status $HOST",
"noteLabel": "Note",
"notePlaceholder": "Text to paste into the terminal",
"createSnippetTitle": "Create snippet",
"createSnippetButton": "Create snippet",
"createSuccess": "Snippet created",
"createFailed": "Falha ao criar snippet",
"editSnippetTitle": "Edit snippet",
"saveSnippetButton": "Save snippet",
"updateSuccess": "Snippet updated",
"updateFailed": "Falha ao atualizar snippet",
"deleteFailed": "Falha ao eliminar snippet",
"createFolderTitle": "Criar pasta",
"createFolderButton": "Criar pasta",
"folderCreateSuccess": "Folder created",
"folderCreateFailed": "Falha ao criar pasta",
"editFolderTitle": "Editar pasta",
"saveFolderButton": "Guardar pasta",
"folderEditSuccess": "Folder updated",
"folderEditFailed": "Falha ao atualizar pasta",
"folderNameLabel": "Nome da pasta",
"folderNamePlaceholder": "Nome da pasta",
"folderIconLabel": "Ícone",
"folderDeleteSuccess": "Folder deleted",
"folderDeleteFailed": "Falha ao eliminar pasta",
"confirmRunMessage": "Executar \"{{name}}\"?",
"confirmRunButton": "Executar",
"runSuccess": "Ran \"{{name}}\" on {{count}} terminal(s)",
"pasteSuccess": "Pasted \"{{name}}\" into {{count}} terminal(s)",
"admin": {
"tabTitle": "Snippets",
"count": "{{count}} snippets",
"add": "Adicionar snippet",
"namePlaceholder": "Nome do snippet",
"contentPlaceholder": "Conteúdo do comando",
"folderPlaceholder": "Pasta (opcional)",
"empty": "Este utilizador não tem snippets",
"deleteConfirm": "Eliminar snippet \"{{name}}\" de {{username}}?",
"deleted": "Snippet eliminado",
"deleteFailed": "Falha ao eliminar snippet",
"requiredFields": "O nome e o conteúdo do snippet são obrigatórios",
"saved": "Snippet guardado",
"saveFailed": "Falha ao guardar snippet",
"saving": "A guardar...",
"save": "Guardar"
},
"backToSnippets": "Back to snippets",
"settingsTitle": "Snippet settings",
"settingsDisplayTitle": "Display",
"settingsBehaviorTitle": "Comportamento",
"typeCommandHint": "Runs in the active terminal.",
"typeNoteHint": "Pastes into the active terminal without running.",
"variablesHint": "Variables: $HOST, $USER, $PORT, $NAME, ${INPUT_1:Label}",
"doubleClickToRun": "Double click to run",
"sharedBadge": "Partilhado",
"copyToClipboard": "Copy to clipboard",
"copyFailed": "Falha ao copiar para a área de transferência",
"moreOptions": "More options",
"moreActions": "Mais ações",
"moveToFolder": "Move to folder",
"deleteSnippet": "Delete snippet",
"deleteSnippetConfirm": "Delete snippet \"{{name}}\"?",
"deleteSuccess": "Snippet eliminado",
"delete": "Eliminar",
"folderActions": "Folder actions",
"addSnippetHere": "New snippet here",
"deleteFolder": "Eliminar pasta",
"deleteFolderConfirm": "Delete folder \"{{name}}\"? Its snippets move out of the folder.",
"createFolderDescription": "Group related snippets together.",
"editFolderDescription": "Change this folder's name, color or icon.",
"folderColorLabel": "Cor",
"loadFailed": "Failed to load snippets",
"importSkipExisting": "Importar (ignorar existentes)",
"importOverwrite": "Import (overwrite existing)",
"importInvalidFile": "That file is not a valid snippets export",
"importSuccess": "Imported {{imported}}, updated {{updated}}, skipped {{skipped}}",
"exportSnippets": "Export snippets",
"exportSuccess": "Snippets exported",
"exportFailed": "Falha ao exportar fragmentos",
"expandAll": "Expandir todas as pastas",
"collapseAll": "Recolher todas as pastas",
"docsLink": "Documentation",
"clearSearch": "Clear search",
"noSearchResults": "No snippets match your search",
"emptyTitle": "No snippets yet",
"emptyDescription": "Save commands you run often, then run them in a terminal with one click.",
"shareSnippet": "Share snippet",
"shareFolder": "Share folder",
"shareExpiry": "Expira",
"shareExpiryOptions": {
"h0": "Nunca",
"h1": "In 1 hour",
"h24": "In 1 day",
"h168": "In 7 days",
"h720": "In 30 days"
},
"shareButton": "Partilhar",
"shareSuccess": "Shared with {{count}}",
"shareFailed": "Failed to share",
"shareLoadFailed": "Failed to load sharing details",
"currentAccess": "Acesso atual",
"notSharedYet": "Not shared with anyone yet",
"revokeAccess": "Revogar",
"revokeSuccess": "Acesso revogado",
"revokeFailed": "Falha ao revogar acesso",
"close": "Fechar",
"targetHostsLabel": "Target hosts",
"targetHostsHint": "Pick hosts to run this command on directly, without a terminal open. Leave empty to run it in the active terminal.",
"clearTargetHosts": "Limpar",
"noHostsAvailable": "No hosts available",
"searchHosts": "Pesquisar hosts",
"runOnTargets": "Run on target hosts",
"executionResultTitle": "Results for \"{{name}}\"",
"executionResultDescription": "Output from each target host.",
"executionSuccess": "Sucesso",
"executionFailed": "Falhou",
"directRunSuccess": "Executou \"{{name}}\" em {{count}} máquina(s)",
"directRunPartialFail": "\"{{name}}\" failed on some hosts",
"reorderFailed": "Failed to reorder snippets",
"dropToRemoveFromFolder": "Drop here to move out of the folder",
"shareSnippetTitle": "Share \"{{name}}\"",
"shareFolderTitle": "Share folder \"{{name}}\"",
"shareWith": "Partilhar com",
"usersTab": "Utilizadores",
"rolesTab": "Funções",
"shareSearchPlaceholder": "Procurar utilizadores ou funções",
"shareNoMatches": "No matches",
"shareWithCount": "Share with {{count}}",
"shareFolderHint": "Shares every snippet in this folder. Snippets added later are not shared automatically.",
"shareFolderSummary": "Shared {{count}} snippet(s) in this folder",
"grantedBy": "Concedido por",
"expired": "Expirado",
"variablesDialogTitle": "Executar \"{{name}}\"",
"variablesDialogDescription": "Fill in the values this snippet needs before running it.",
"variablesPreviewLabel": "Pré-visualizar",
"variablesConfirmButton": "Executar",
"keybindings": {
"runSnippet": "Run existing snippet",
"snippetLabel": "Snippet",
"selectSnippet": "Select a snippet",
"snippetMissing": "snippet not found",
"snippetRequired": "Select a snippet"
},
"paletteHintRun": "Run in the active terminal tab",
"host": {
"startupTitle": "Fragmento de inicialização",
"quickActionsTitle": "Ações Rápidas",
"quickActionsDescription": "As ações rápidas aparecem como botões na barra de ferramentas de Métricas do Host para execução de comandos com um clique.",
"noQuickActions": "Ainda não existem ações rápidas.",
"buttonLabel": "Texto do botão",
"selectSnippet": "Selecionar snippet...",
"addQuickAction": "Adicionar Ação",
"tabTitle": "Snippets",
"startupDescription": "Runs in the terminal each time it connects to this host. Variables like $HOST are filled in; a snippet that asks for inputs is skipped.",
"none": "Nenhuma",
"removeQuickAction": "Remove quick action"
},
"quickActions": {
"running": "A executar {{name}}...",
"succeeded": "{{name}} concluído com sucesso",
"failed": "{{name}} falhou",
"error": "Falha ao executar {{name}}"
},
"paletteHintPaste": "Paste in the active terminal tab",
"targetTerminals": "Run in",
"targetTerminalsHint": "optional, else the active tab",
"selectAll": "Todas",
"selectNone": "Nenhuma"
}
@@ -0,0 +1,235 @@
{
"nav": {
"snippets": "Fragmente"
},
"onboarding": {
"feature_snippets": "Fragmente",
"feature_snippets_desc": "Salvează comenzile pe care le execuți des și trimite-le către un terminal cu un singur clic."
},
"permissions": {
"view": {
"title": "Vizualizați fragmente",
"description": "Vedeți propriile fragmente, notițe și fragmente partajate."
},
"create": {
"title": "Creați fragmente",
"description": "Creați fragmente, note și foldere noi."
},
"edit": {
"title": "Editați fragmentele",
"description": "Redenumiți sau modificați fragmentele și folderele existente."
},
"delete": {
"title": "Ștergeți fragmentele",
"description": "Ștergeți fragmente și foldere."
},
"share": {
"title": "Partajați fragmente",
"description": "Partajați fragmente și foldere cu alți utilizatori sau roluri."
}
},
"settings": {
"foldersCollapsed": {
"label": "Restrângeți folderele în mod implicit",
"description": "Pornește fiecare folder de fragmente restrâns când deschizi panoul Fragmente."
},
"showCommands": {
"label": "Afișați comenzile",
"description": "Afișează prima linie a comenzii fiecărui fragment de cod sub numele său."
},
"confirmExecution": {
"label": "Confirmați înainte de rulare",
"description": "Întreabă înainte ca un fragment de comandă să ruleze într-un terminal."
}
},
"cancel": "Anula",
"loading": "Încărcare...",
"searchPlaceholder": "Fragmente de căutare",
"newFolder": "Dosar nou",
"newSnippet": "Fragment nou",
"noFolder": "Niciun dosar",
"noSnippetsInFolder": "Niciun fragment în acest dosar",
"noTerminalTabsOpen": "Nicio filă de terminal nu este deschisă",
"run": "Aleargă",
"pasteToTerminal": "Lipire în terminal",
"copySuccess": "Copiat în clipboard",
"importExport": "Import / Export",
"importFailed": "Importarea fragmentelor a eșuat",
"nameLabel": "Nume",
"namePlaceholder": "Nume fragment",
"descriptionLabel": "Descriere",
"descriptionPlaceholder": "Descriere opțională",
"folderLabel": "Pliant",
"typeLabel": "Tip",
"typeCommand": "Comanda",
"typeNote": "Nota",
"commandLabel": "Comanda",
"commandPlaceholder": "Comandă de rulat, de exemplu, systemctl status $HOST",
"noteLabel": "Nota",
"notePlaceholder": "Text de lipit în terminal",
"createSnippetTitle": "Creați fragment",
"createSnippetButton": "Creați fragment",
"createSuccess": "Fragment creat",
"createFailed": "Nu s-a putut crea fragmentul",
"editSnippetTitle": "Editați fragmentul",
"saveSnippetButton": "Salvați fragmentul",
"updateSuccess": "Fragment actualizat",
"updateFailed": "Fragmentul nu a putut fi actualizat",
"deleteFailed": "Nu s-a putut șterge fragmentul",
"createFolderTitle": "Creați un folder",
"createFolderButton": "Creați un folder",
"folderCreateSuccess": "Dosar creat",
"folderCreateFailed": "Nu s-a putut crea folderul",
"editFolderTitle": "Editați folderul",
"saveFolderButton": "Salvați folderul",
"folderEditSuccess": "Dosar actualizat",
"folderEditFailed": "Nu s-a putut actualiza folderul",
"folderNameLabel": "Numele folderului",
"folderNamePlaceholder": "Numele folderului",
"folderIconLabel": "Pictogramă",
"folderDeleteSuccess": "Dosar șters",
"folderDeleteFailed": "Ștergerea folderului a eșuat",
"confirmRunMessage": "Executați „{{name}}”?",
"confirmRunButton": "Aleargă",
"runSuccess": "A rulat „{{name}}” pe terminalul(ele) {{count}}",
"pasteSuccess": "„{{name}}” a fost lipit în terminalul(ele) {{count}}",
"admin": {
"tabTitle": "Fragmente",
"count": "fragmente {{count}}",
"add": "Adăugați fragment",
"namePlaceholder": "Nume fragment",
"contentPlaceholder": "Conținutul comenzii",
"folderPlaceholder": "Dosar (opțional)",
"empty": "Acest utilizator nu are fragmente",
"deleteConfirm": "Ștergeți fragmentul „{{name}}” aparținând lui {{username}}?",
"deleted": "Fragment șters",
"deleteFailed": "Nu s-a putut șterge fragmentul",
"requiredFields": "Numele și conținutul fragmentului sunt obligatorii",
"saved": "Fragment salvat",
"saveFailed": "Nu s-a putut salva fragmentul",
"saving": "Economisire...",
"save": "Salva"
},
"backToSnippets": "Înapoi la fragmente",
"settingsTitle": "Setări fragment",
"settingsDisplayTitle": "Afişa",
"settingsBehaviorTitle": "Comportament",
"typeCommandHint": "Rulează în terminalul activ.",
"typeNoteHint": "Lipește în terminalul activ fără a rula.",
"variablesHint": "Variabile: $HOST, $USER, $PORT, $NAME, ${INPUT_1:Etichetă}",
"doubleClickToRun": "Dublu clic pentru a rula",
"sharedBadge": "Partajat",
"copyToClipboard": "Copiați în clipboard",
"copyFailed": "Copierea în clipboard nu a reușit",
"moreOptions": "Mai multe opțiuni",
"moreActions": "Mai multe acțiuni",
"moveToFolder": "Mută în folder",
"deleteSnippet": "Ștergeți fragmentul",
"deleteSnippetConfirm": "Ștergeți fragmentul „{{name}}”?",
"deleteSuccess": "Fragment șters",
"delete": "Şterge",
"folderActions": "Acțiuni în folder",
"addSnippetHere": "Fragment nou aici",
"deleteFolder": "Ștergeți folderul",
"deleteFolderConfirm": "Ștergeți folderul „{{name}}”? Fragmentele sale sunt mutate în afara folderului.",
"createFolderDescription": "Grupează fragmentele corelate.",
"editFolderDescription": "Schimbă numele, culoarea sau pictograma acestui folder.",
"folderColorLabel": "Culoare",
"loadFailed": "Nu s-au putut încărca fragmentele",
"importSkipExisting": "Import (săriți peste elementele existente)",
"importOverwrite": "Import (suprascrierea existentă)",
"importInvalidFile": "Fișierul respectiv nu este un export valid de fragmente.",
"importSuccess": "Importat {{imported}}, actualizat {{updated}}, omis {{skipped}}",
"exportSnippets": "Exportați fragmente",
"exportSuccess": "Fragmente exportate",
"exportFailed": "Exportul fragmentelor a eșuat",
"expandAll": "Extindeți toate folderele",
"collapseAll": "Restrângeți toate folderele",
"docsLink": "Documentare",
"clearSearch": "Șterge căutarea",
"noSearchResults": "Niciun fragment nu corespunde căutării dvs.",
"emptyTitle": "Niciun fragment încă",
"emptyDescription": "Salvează comenzile pe care le execuți des, apoi rulează-le într-un terminal cu un singur clic.",
"shareSnippet": "Partajați fragmentul",
"shareFolder": "Partajați folderul",
"shareExpiry": "Expiră",
"shareExpiryOptions": {
"h0": "Nu",
"h1": "Într-o oră",
"h24": "Într-o zi",
"h168": "În 7 zile",
"h720": "În 30 de zile"
},
"shareButton": "Distribuie",
"shareSuccess": "Partajat cu {{count}}",
"shareFailed": "Partajarea nu a reușit",
"shareLoadFailed": "Nu s-au putut încărca detaliile de partajare",
"currentAccess": "Acces curent",
"notSharedYet": "Nu a fost încă distribuit nimănui",
"revokeAccess": "Revoca",
"revokeSuccess": "Acces revocat",
"revokeFailed": "Nu s-a putut revoca accesul",
"close": "Aproape",
"targetHostsLabel": "Gazde țintă",
"targetHostsHint": "Alegeți gazdele pe care să rulați această comandă direct, fără un terminal deschis. Lăsați câmpul gol pentru a o rula în terminalul activ.",
"clearTargetHosts": "Clar",
"noHostsAvailable": "Nicio gazdă disponibilă",
"searchHosts": "Căutați gazde",
"runOnTargets": "Executare pe gazdele țintă",
"executionResultTitle": "Rezultate pentru „{{name}}”",
"executionResultDescription": "Ieșire de la fiecare gazdă țintă.",
"executionSuccess": "Succes",
"executionFailed": "Eșuat",
"directRunSuccess": "A rulat „{{name}}” pe gazdă(e) {{count}}",
"directRunPartialFail": "„{{name}}” a eșuat pe unele gazde",
"reorderFailed": "Nu s-au putut reordona fragmentele",
"dropToRemoveFromFolder": "Plasați aici pentru a ieși din folder",
"shareSnippetTitle": "Distribuie „{{name}}”",
"shareFolderTitle": "Partajați folderul „{{name}}”",
"shareWith": "Distribuiți cu",
"usersTab": "Utilizatori",
"rolesTab": "Roluri",
"shareSearchPlaceholder": "Căutați utilizatori sau roluri",
"shareNoMatches": "Nicio potrivire",
"shareWithCount": "Distribuie cu {{count}}",
"shareFolderHint": "Partajează fiecare fragment din acest folder. Fragmentele adăugate ulterior nu sunt partajate automat.",
"shareFolderSummary": "Fragmente {{count}} partajate în acest folder",
"grantedBy": "Acordat de",
"expired": "Expirat",
"variablesDialogTitle": "Executați „{{name}}”",
"variablesDialogDescription": "Completați valorile necesare acestui fragment de cod înainte de a-l rula.",
"variablesPreviewLabel": "Previzualizare",
"variablesConfirmButton": "Aleargă",
"keybindings": {
"runSnippet": "Execută fragmentul existent",
"snippetLabel": "Fragment",
"selectSnippet": "Selectați un fragment",
"snippetMissing": "fragmentul nu a fost găsit",
"snippetRequired": "Selectați un fragment"
},
"paletteHintRun": "Execută în fila activă a terminalului",
"host": {
"startupTitle": "Fragment de pornire",
"quickActionsTitle": "Acțiuni rapide",
"quickActionsDescription": "Acțiunile rapide apar sub formă de butoane în bara de instrumente Host Metrics pentru executarea comenzilor cu un singur clic.",
"noQuickActions": "Nicio acțiune rapidă încă.",
"buttonLabel": "Etichetă buton",
"selectSnippet": "Selectați fragmentul...",
"addQuickAction": "Adăugați o acțiune",
"tabTitle": "Fragmente",
"startupDescription": "Rulează în terminal de fiecare dată când se conectează la această gazdă. Variabilele precum $HOST sunt completate; un fragment care solicită intrări este omis.",
"none": "Nici unul",
"removeQuickAction": "Eliminați acțiunea rapidă"
},
"quickActions": {
"running": "Se execută {{name}}...",
"succeeded": "{{name}} finalizat cu succes",
"failed": "{{name}} a eșuat",
"error": "Executarea {{name}} a eșuat"
},
"paletteHintPaste": "Lipiți în fila activă a terminalului",
"targetTerminals": "Rulare în",
"targetTerminalsHint": "opțional, altfel fila activă",
"selectAll": "Toate",
"selectNone": "Nici unul"
}
@@ -0,0 +1,235 @@
{
"nav": {
"snippets": "Сниппеты"
},
"onboarding": {
"feature_snippets": "Сниппеты",
"feature_snippets_desc": "Save commands you run often and send them to a terminal in one click."
},
"permissions": {
"view": {
"title": "View snippets",
"description": "See your own snippets, notes and shared snippets."
},
"create": {
"title": "Create snippets",
"description": "Create new snippets, notes and folders."
},
"edit": {
"title": "Edit snippets",
"description": "Rename or change existing snippets and folders."
},
"delete": {
"title": "Delete snippets",
"description": "Delete snippets and folders."
},
"share": {
"title": "Share snippets",
"description": "Share snippets and folders with other users or roles."
}
},
"settings": {
"foldersCollapsed": {
"label": "Сворачивать папки по умолчанию",
"description": "Start each snippet folder collapsed when you open the Snippets panel."
},
"showCommands": {
"label": "Show commands",
"description": "Show the first line of each snippet's command under its name."
},
"confirmExecution": {
"label": "Confirm before running",
"description": "Ask before a command snippet runs in a terminal."
}
},
"cancel": "Отмена",
"loading": "Загрузка...",
"searchPlaceholder": "Поиск сниппетов",
"newFolder": "Новая папка",
"newSnippet": "New snippet",
"noFolder": "Без папки",
"noSnippetsInFolder": "В этой папке нет сниппетов",
"noTerminalTabsOpen": "No terminal tab is open",
"run": "Запустить",
"pasteToTerminal": "Paste to terminal",
"copySuccess": "Скопировано в буфер обмена",
"importExport": "Импорт / Экспорт",
"importFailed": "Не удалось импортировать сниппеты",
"nameLabel": "Название",
"namePlaceholder": "Имя сниппета",
"descriptionLabel": "Описание",
"descriptionPlaceholder": "Необязательное описание",
"folderLabel": "Папка",
"typeLabel": "Тип",
"typeCommand": "Команда",
"typeNote": "Note",
"commandLabel": "Команда",
"commandPlaceholder": "Command to run, e.g. systemctl status $HOST",
"noteLabel": "Note",
"notePlaceholder": "Text to paste into the terminal",
"createSnippetTitle": "Create snippet",
"createSnippetButton": "Create snippet",
"createSuccess": "Snippet created",
"createFailed": "Не удалось создать сниппет",
"editSnippetTitle": "Edit snippet",
"saveSnippetButton": "Save snippet",
"updateSuccess": "Snippet updated",
"updateFailed": "Не удалось обновить сниппет",
"deleteFailed": "Не удалось удалить сниппет",
"createFolderTitle": "Создать папку",
"createFolderButton": "Создать папку",
"folderCreateSuccess": "Folder created",
"folderCreateFailed": "Не удалось создать папку",
"editFolderTitle": "Редактировать папку",
"saveFolderButton": "Сохранить папку",
"folderEditSuccess": "Folder updated",
"folderEditFailed": "Не удалось обновить папку",
"folderNameLabel": "Имя папки",
"folderNamePlaceholder": "Имя папки",
"folderIconLabel": "Значок",
"folderDeleteSuccess": "Folder deleted",
"folderDeleteFailed": "Не удалось удалить папку",
"confirmRunMessage": "Запустить \"{{name}}\"?",
"confirmRunButton": "Запустить",
"runSuccess": "Ran \"{{name}}\" on {{count}} terminal(s)",
"pasteSuccess": "Pasted \"{{name}}\" into {{count}} terminal(s)",
"admin": {
"tabTitle": "Сниппеты",
"count": "{{count}} сниппетов",
"add": "Добавить сниппет",
"namePlaceholder": "Имя сниппета",
"contentPlaceholder": "Содержимое команды",
"folderPlaceholder": "Папка (необязательно)",
"empty": "У этого пользователя нет сниппетов",
"deleteConfirm": "Удалить сниппет \"{{name}}\", принадлежащий {{username}}?",
"deleted": "Сниппет удалён",
"deleteFailed": "Не удалось удалить сниппет",
"requiredFields": "Имя и содержимое сниппета обязательны",
"saved": "Сниппет сохранён",
"saveFailed": "Не удалось сохранить сниппет",
"saving": "Сохранение...",
"save": "Сохранить"
},
"backToSnippets": "Back to snippets",
"settingsTitle": "Snippet settings",
"settingsDisplayTitle": "Display",
"settingsBehaviorTitle": "Поведение",
"typeCommandHint": "Runs in the active terminal.",
"typeNoteHint": "Pastes into the active terminal without running.",
"variablesHint": "Variables: $HOST, $USER, $PORT, $NAME, ${INPUT_1:Label}",
"doubleClickToRun": "Double click to run",
"sharedBadge": "Общий",
"copyToClipboard": "Copy to clipboard",
"copyFailed": "Не удалось скопировать в буфер обмена",
"moreOptions": "More options",
"moreActions": "Дополнительные действия",
"moveToFolder": "Move to folder",
"deleteSnippet": "Delete snippet",
"deleteSnippetConfirm": "Delete snippet \"{{name}}\"?",
"deleteSuccess": "Сниппет удалён",
"delete": "Удалить",
"folderActions": "Folder actions",
"addSnippetHere": "New snippet here",
"deleteFolder": "Удалить папку",
"deleteFolderConfirm": "Delete folder \"{{name}}\"? Its snippets move out of the folder.",
"createFolderDescription": "Group related snippets together.",
"editFolderDescription": "Change this folder's name, color or icon.",
"folderColorLabel": "Цвет",
"loadFailed": "Failed to load snippets",
"importSkipExisting": "Импорт (пропустить существующие)",
"importOverwrite": "Import (overwrite existing)",
"importInvalidFile": "That file is not a valid snippets export",
"importSuccess": "Imported {{imported}}, updated {{updated}}, skipped {{skipped}}",
"exportSnippets": "Export snippets",
"exportSuccess": "Snippets exported",
"exportFailed": "Не удалось экспортировать сниппеты",
"expandAll": "Развернуть все папки",
"collapseAll": "Свернуть все папки",
"docsLink": "Documentation",
"clearSearch": "Clear search",
"noSearchResults": "No snippets match your search",
"emptyTitle": "No snippets yet",
"emptyDescription": "Save commands you run often, then run them in a terminal with one click.",
"shareSnippet": "Share snippet",
"shareFolder": "Share folder",
"shareExpiry": "Истекает",
"shareExpiryOptions": {
"h0": "Никогда",
"h1": "In 1 hour",
"h24": "In 1 day",
"h168": "In 7 days",
"h720": "In 30 days"
},
"shareButton": "Поделиться",
"shareSuccess": "Shared with {{count}}",
"shareFailed": "Failed to share",
"shareLoadFailed": "Failed to load sharing details",
"currentAccess": "Текущий доступ",
"notSharedYet": "Not shared with anyone yet",
"revokeAccess": "Отозвать",
"revokeSuccess": "Доступ отозван",
"revokeFailed": "Не удалось отозвать доступ",
"close": "Закрыть",
"targetHostsLabel": "Target hosts",
"targetHostsHint": "Pick hosts to run this command on directly, without a terminal open. Leave empty to run it in the active terminal.",
"clearTargetHosts": "Очистить",
"noHostsAvailable": "No hosts available",
"searchHosts": "Поиск хостов",
"runOnTargets": "Run on target hosts",
"executionResultTitle": "Results for \"{{name}}\"",
"executionResultDescription": "Output from each target host.",
"executionSuccess": "Успех",
"executionFailed": "Ошибка",
"directRunSuccess": "Запущен \"{{name}}\" на {{count}} хосте(ах)",
"directRunPartialFail": "\"{{name}}\" failed on some hosts",
"reorderFailed": "Failed to reorder snippets",
"dropToRemoveFromFolder": "Drop here to move out of the folder",
"shareSnippetTitle": "Share \"{{name}}\"",
"shareFolderTitle": "Share folder \"{{name}}\"",
"shareWith": "Поделиться с",
"usersTab": "Пользователи",
"rolesTab": "Роли",
"shareSearchPlaceholder": "Поиск пользователей или ролей",
"shareNoMatches": "No matches",
"shareWithCount": "Share with {{count}}",
"shareFolderHint": "Shares every snippet in this folder. Snippets added later are not shared automatically.",
"shareFolderSummary": "Shared {{count}} snippet(s) in this folder",
"grantedBy": "Кем предоставлен",
"expired": "Истек",
"variablesDialogTitle": "Запустить \"{{name}}\"",
"variablesDialogDescription": "Fill in the values this snippet needs before running it.",
"variablesPreviewLabel": "Предпросмотр",
"variablesConfirmButton": "Запустить",
"keybindings": {
"runSnippet": "Run existing snippet",
"snippetLabel": "Snippet",
"selectSnippet": "Select a snippet",
"snippetMissing": "snippet not found",
"snippetRequired": "Select a snippet"
},
"paletteHintRun": "Run in the active terminal tab",
"host": {
"startupTitle": "Фрагмент запуска",
"quickActionsTitle": "Быстрые действия",
"quickActionsDescription": "Быстрые действия отображаются в виде кнопок на панели инструментов метрик хоста для выполнения команд в один клик.",
"noQuickActions": "Пока нет быстрых действий.",
"buttonLabel": "Надпись кнопки",
"selectSnippet": "Выбрать сниппет...",
"addQuickAction": "Добавить действие",
"tabTitle": "Сниппеты",
"startupDescription": "Runs in the terminal each time it connects to this host. Variables like $HOST are filled in; a snippet that asks for inputs is skipped.",
"none": "Ни одного",
"removeQuickAction": "Remove quick action"
},
"quickActions": {
"running": "Выполняется {{name}}...",
"succeeded": "{{name}} успешно завершено",
"failed": "{{name}} не удалось",
"error": "Не удалось выполнить {{name}}"
},
"paletteHintPaste": "Paste in the active terminal tab",
"targetTerminals": "Run in",
"targetTerminalsHint": "optional, else the active tab",
"selectAll": "Все",
"selectNone": "Ни одного"
}
@@ -0,0 +1,235 @@
{
"nav": {
"snippets": "Snippets"
},
"onboarding": {
"feature_snippets": "Snippets",
"feature_snippets_desc": "Save commands you run often and send them to a terminal in one click."
},
"permissions": {
"view": {
"title": "View snippets",
"description": "See your own snippets, notes and shared snippets."
},
"create": {
"title": "Create snippets",
"description": "Create new snippets, notes and folders."
},
"edit": {
"title": "Edit snippets",
"description": "Rename or change existing snippets and folders."
},
"delete": {
"title": "Delete snippets",
"description": "Delete snippets and folders."
},
"share": {
"title": "Share snippets",
"description": "Share snippets and folders with other users or roles."
}
},
"settings": {
"foldersCollapsed": {
"label": "Collapse folders by default",
"description": "Start each snippet folder collapsed when you open the Snippets panel."
},
"showCommands": {
"label": "Show commands",
"description": "Show the first line of each snippet's command under its name."
},
"confirmExecution": {
"label": "Confirm before running",
"description": "Ask before a command snippet runs in a terminal."
}
},
"cancel": "Cancel",
"loading": "Loading...",
"searchPlaceholder": "Search snippets",
"newFolder": "New folder",
"newSnippet": "New snippet",
"noFolder": "No folder",
"noSnippetsInFolder": "No snippets in this folder",
"noTerminalTabsOpen": "No terminal tab is open",
"run": "Run",
"pasteToTerminal": "Paste to terminal",
"copySuccess": "Copied to clipboard",
"importExport": "Import / Export",
"importFailed": "Failed to import snippets",
"nameLabel": "Name",
"namePlaceholder": "Snippet name",
"descriptionLabel": "Description",
"descriptionPlaceholder": "Optional description",
"folderLabel": "Folder",
"typeLabel": "Type",
"typeCommand": "Command",
"typeNote": "Note",
"commandLabel": "Command",
"commandPlaceholder": "Command to run, e.g. systemctl status $HOST",
"noteLabel": "Note",
"notePlaceholder": "Text to paste into the terminal",
"createSnippetTitle": "Create snippet",
"createSnippetButton": "Create snippet",
"createSuccess": "Snippet created",
"createFailed": "Failed to create snippet",
"editSnippetTitle": "Edit snippet",
"saveSnippetButton": "Save snippet",
"updateSuccess": "Snippet updated",
"updateFailed": "Failed to update snippet",
"deleteFailed": "Failed to delete snippet",
"createFolderTitle": "Create folder",
"createFolderButton": "Create folder",
"folderCreateSuccess": "Folder created",
"folderCreateFailed": "Failed to create folder",
"editFolderTitle": "Edit folder",
"saveFolderButton": "Save folder",
"folderEditSuccess": "Folder updated",
"folderEditFailed": "Failed to update folder",
"folderNameLabel": "Folder name",
"folderNamePlaceholder": "Folder name",
"folderIconLabel": "Icon",
"folderDeleteSuccess": "Folder deleted",
"folderDeleteFailed": "Failed to delete folder",
"confirmRunMessage": "Run \"{{name}}\"?",
"confirmRunButton": "Run",
"runSuccess": "Ran \"{{name}}\" on {{count}} terminal(s)",
"pasteSuccess": "Pasted \"{{name}}\" into {{count}} terminal(s)",
"admin": {
"tabTitle": "Snippets",
"count": "{{count}} snippets",
"add": "Add Snippet",
"namePlaceholder": "Snippet name",
"contentPlaceholder": "Command content",
"folderPlaceholder": "Folder (optional)",
"empty": "This user has no snippets",
"deleteConfirm": "Delete snippet \"{{name}}\" belonging to {{username}}?",
"deleted": "Snippet deleted",
"deleteFailed": "Failed to delete snippet",
"requiredFields": "Snippet name and content are required",
"saved": "Snippet saved",
"saveFailed": "Failed to save snippet",
"saving": "Saving...",
"save": "Save"
},
"backToSnippets": "Back to snippets",
"settingsTitle": "Snippet settings",
"settingsDisplayTitle": "Display",
"settingsBehaviorTitle": "Behavior",
"typeCommandHint": "Runs in the active terminal.",
"typeNoteHint": "Pastes into the active terminal without running.",
"variablesHint": "Variables: $HOST, $USER, $PORT, $NAME, ${INPUT_1:Label}",
"doubleClickToRun": "Double click to run",
"sharedBadge": "Shared",
"copyToClipboard": "Copy to clipboard",
"copyFailed": "Failed to copy to clipboard",
"moreOptions": "More options",
"moreActions": "More actions",
"moveToFolder": "Move to folder",
"deleteSnippet": "Delete snippet",
"deleteSnippetConfirm": "Delete snippet \"{{name}}\"?",
"deleteSuccess": "Snippet deleted",
"delete": "Delete",
"folderActions": "Folder actions",
"addSnippetHere": "New snippet here",
"deleteFolder": "Delete folder",
"deleteFolderConfirm": "Delete folder \"{{name}}\"? Its snippets move out of the folder.",
"createFolderDescription": "Group related snippets together.",
"editFolderDescription": "Change this folder's name, color or icon.",
"folderColorLabel": "Color",
"loadFailed": "Failed to load snippets",
"importSkipExisting": "Import (skip existing)",
"importOverwrite": "Import (overwrite existing)",
"importInvalidFile": "That file is not a valid snippets export",
"importSuccess": "Imported {{imported}}, updated {{updated}}, skipped {{skipped}}",
"exportSnippets": "Export snippets",
"exportSuccess": "Snippets exported",
"exportFailed": "Failed to export snippets",
"expandAll": "Expand all folders",
"collapseAll": "Collapse all folders",
"docsLink": "Documentation",
"clearSearch": "Clear search",
"noSearchResults": "No snippets match your search",
"emptyTitle": "No snippets yet",
"emptyDescription": "Save commands you run often, then run them in a terminal with one click.",
"shareSnippet": "Share snippet",
"shareFolder": "Share folder",
"shareExpiry": "Expires",
"shareExpiryOptions": {
"h0": "Never",
"h1": "In 1 hour",
"h24": "In 1 day",
"h168": "In 7 days",
"h720": "In 30 days"
},
"shareButton": "Share",
"shareSuccess": "Shared with {{count}}",
"shareFailed": "Failed to share",
"shareLoadFailed": "Failed to load sharing details",
"currentAccess": "Current access",
"notSharedYet": "Not shared with anyone yet",
"revokeAccess": "Revoke",
"revokeSuccess": "Access revoked",
"revokeFailed": "Failed to revoke access",
"close": "Close",
"targetHostsLabel": "Target hosts",
"targetHostsHint": "Pick hosts to run this command on directly, without a terminal open. Leave empty to run it in the active terminal.",
"clearTargetHosts": "Clear",
"noHostsAvailable": "No hosts available",
"searchHosts": "Search hosts",
"runOnTargets": "Run on target hosts",
"executionResultTitle": "Results for \"{{name}}\"",
"executionResultDescription": "Output from each target host.",
"executionSuccess": "Success",
"executionFailed": "Failed",
"directRunSuccess": "Ran \"{{name}}\" on {{count}} host(s)",
"directRunPartialFail": "\"{{name}}\" failed on some hosts",
"reorderFailed": "Failed to reorder snippets",
"dropToRemoveFromFolder": "Drop here to move out of the folder",
"shareSnippetTitle": "Share \"{{name}}\"",
"shareFolderTitle": "Share folder \"{{name}}\"",
"shareWith": "Share with",
"usersTab": "Users",
"rolesTab": "Roles",
"shareSearchPlaceholder": "Search users or roles",
"shareNoMatches": "No matches",
"shareWithCount": "Share with {{count}}",
"shareFolderHint": "Shares every snippet in this folder. Snippets added later are not shared automatically.",
"shareFolderSummary": "Shared {{count}} snippet(s) in this folder",
"grantedBy": "Granted by",
"expired": "Expired",
"variablesDialogTitle": "Run \"{{name}}\"",
"variablesDialogDescription": "Fill in the values this snippet needs before running it.",
"variablesPreviewLabel": "Preview",
"variablesConfirmButton": "Run",
"keybindings": {
"runSnippet": "Run existing snippet",
"snippetLabel": "Snippet",
"selectSnippet": "Select a snippet",
"snippetMissing": "snippet not found",
"snippetRequired": "Select a snippet"
},
"paletteHintRun": "Run in the active terminal tab",
"host": {
"startupTitle": "Startup Snippet",
"quickActionsTitle": "Quick Actions",
"quickActionsDescription": "Quick actions appear as buttons in the Host Metrics toolbar for one-click command execution.",
"noQuickActions": "No quick actions yet.",
"buttonLabel": "Button label",
"selectSnippet": "Select snippet...",
"addQuickAction": "Add Action",
"tabTitle": "Snippets",
"startupDescription": "Runs in the terminal each time it connects to this host. Variables like $HOST are filled in; a snippet that asks for inputs is skipped.",
"none": "None",
"removeQuickAction": "Remove quick action"
},
"quickActions": {
"running": "Executing {{name}}...",
"succeeded": "{{name}} completed successfully",
"failed": "{{name}} failed",
"error": "Failed to execute {{name}}"
},
"paletteHintPaste": "Paste in the active terminal tab",
"targetTerminals": "Run in",
"targetTerminalsHint": "optional, else the active tab",
"selectAll": "All",
"selectNone": "None"
}
@@ -0,0 +1,235 @@
{
"nav": {
"snippets": "Snippets"
},
"onboarding": {
"feature_snippets": "Snippets",
"feature_snippets_desc": "Save commands you run often and send them to a terminal in one click."
},
"permissions": {
"view": {
"title": "View snippets",
"description": "See your own snippets, notes and shared snippets."
},
"create": {
"title": "Create snippets",
"description": "Create new snippets, notes and folders."
},
"edit": {
"title": "Edit snippets",
"description": "Rename or change existing snippets and folders."
},
"delete": {
"title": "Delete snippets",
"description": "Delete snippets and folders."
},
"share": {
"title": "Share snippets",
"description": "Share snippets and folders with other users or roles."
}
},
"settings": {
"foldersCollapsed": {
"label": "Collapse folders by default",
"description": "Start each snippet folder collapsed when you open the Snippets panel."
},
"showCommands": {
"label": "Show commands",
"description": "Show the first line of each snippet's command under its name."
},
"confirmExecution": {
"label": "Confirm before running",
"description": "Ask before a command snippet runs in a terminal."
}
},
"cancel": "Cancel",
"loading": "Loading...",
"searchPlaceholder": "Search snippets",
"newFolder": "New folder",
"newSnippet": "New snippet",
"noFolder": "No folder",
"noSnippetsInFolder": "No snippets in this folder",
"noTerminalTabsOpen": "No terminal tab is open",
"run": "Run",
"pasteToTerminal": "Paste to terminal",
"copySuccess": "Copied to clipboard",
"importExport": "Import / Export",
"importFailed": "Failed to import snippets",
"nameLabel": "Name",
"namePlaceholder": "Snippet name",
"descriptionLabel": "Description",
"descriptionPlaceholder": "Optional description",
"folderLabel": "Folder",
"typeLabel": "Type",
"typeCommand": "Command",
"typeNote": "Note",
"commandLabel": "Command",
"commandPlaceholder": "Command to run, e.g. systemctl status $HOST",
"noteLabel": "Note",
"notePlaceholder": "Text to paste into the terminal",
"createSnippetTitle": "Create snippet",
"createSnippetButton": "Create snippet",
"createSuccess": "Snippet created",
"createFailed": "Failed to create snippet",
"editSnippetTitle": "Edit snippet",
"saveSnippetButton": "Save snippet",
"updateSuccess": "Snippet updated",
"updateFailed": "Failed to update snippet",
"deleteFailed": "Failed to delete snippet",
"createFolderTitle": "Create folder",
"createFolderButton": "Create folder",
"folderCreateSuccess": "Folder created",
"folderCreateFailed": "Failed to create folder",
"editFolderTitle": "Edit folder",
"saveFolderButton": "Save folder",
"folderEditSuccess": "Folder updated",
"folderEditFailed": "Failed to update folder",
"folderNameLabel": "Folder name",
"folderNamePlaceholder": "Folder name",
"folderIconLabel": "Icon",
"folderDeleteSuccess": "Folder deleted",
"folderDeleteFailed": "Failed to delete folder",
"confirmRunMessage": "Run \"{{name}}\"?",
"confirmRunButton": "Run",
"runSuccess": "Ran \"{{name}}\" on {{count}} terminal(s)",
"pasteSuccess": "Pasted \"{{name}}\" into {{count}} terminal(s)",
"admin": {
"tabTitle": "Snippets",
"count": "{{count}} snippets",
"add": "Add Snippet",
"namePlaceholder": "Snippet name",
"contentPlaceholder": "Command content",
"folderPlaceholder": "Folder (optional)",
"empty": "This user has no snippets",
"deleteConfirm": "Delete snippet \"{{name}}\" belonging to {{username}}?",
"deleted": "Snippet deleted",
"deleteFailed": "Failed to delete snippet",
"requiredFields": "Snippet name and content are required",
"saved": "Snippet saved",
"saveFailed": "Failed to save snippet",
"saving": "Saving...",
"save": "Save"
},
"backToSnippets": "Back to snippets",
"settingsTitle": "Snippet settings",
"settingsDisplayTitle": "Display",
"settingsBehaviorTitle": "Behavior",
"typeCommandHint": "Runs in the active terminal.",
"typeNoteHint": "Pastes into the active terminal without running.",
"variablesHint": "Variables: $HOST, $USER, $PORT, $NAME, ${INPUT_1:Label}",
"doubleClickToRun": "Double click to run",
"sharedBadge": "Shared",
"copyToClipboard": "Copy to clipboard",
"copyFailed": "Failed to copy to clipboard",
"moreOptions": "More options",
"moreActions": "More actions",
"moveToFolder": "Move to folder",
"deleteSnippet": "Delete snippet",
"deleteSnippetConfirm": "Delete snippet \"{{name}}\"?",
"deleteSuccess": "Snippet deleted",
"delete": "Delete",
"folderActions": "Folder actions",
"addSnippetHere": "New snippet here",
"deleteFolder": "Delete folder",
"deleteFolderConfirm": "Delete folder \"{{name}}\"? Its snippets move out of the folder.",
"createFolderDescription": "Group related snippets together.",
"editFolderDescription": "Change this folder's name, color or icon.",
"folderColorLabel": "Color",
"loadFailed": "Failed to load snippets",
"importSkipExisting": "Import (skip existing)",
"importOverwrite": "Import (overwrite existing)",
"importInvalidFile": "That file is not a valid snippets export",
"importSuccess": "Imported {{imported}}, updated {{updated}}, skipped {{skipped}}",
"exportSnippets": "Export snippets",
"exportSuccess": "Snippets exported",
"exportFailed": "Failed to export snippets",
"expandAll": "Expand all folders",
"collapseAll": "Collapse all folders",
"docsLink": "Documentation",
"clearSearch": "Clear search",
"noSearchResults": "No snippets match your search",
"emptyTitle": "No snippets yet",
"emptyDescription": "Save commands you run often, then run them in a terminal with one click.",
"shareSnippet": "Share snippet",
"shareFolder": "Share folder",
"shareExpiry": "Expires",
"shareExpiryOptions": {
"h0": "Never",
"h1": "In 1 hour",
"h24": "In 1 day",
"h168": "In 7 days",
"h720": "In 30 days"
},
"shareButton": "Share",
"shareSuccess": "Shared with {{count}}",
"shareFailed": "Failed to share",
"shareLoadFailed": "Failed to load sharing details",
"currentAccess": "Current access",
"notSharedYet": "Not shared with anyone yet",
"revokeAccess": "Revoke",
"revokeSuccess": "Access revoked",
"revokeFailed": "Failed to revoke access",
"close": "Close",
"targetHostsLabel": "Target hosts",
"targetHostsHint": "Pick hosts to run this command on directly, without a terminal open. Leave empty to run it in the active terminal.",
"clearTargetHosts": "Clear",
"noHostsAvailable": "No hosts available",
"searchHosts": "Search hosts",
"runOnTargets": "Run on target hosts",
"executionResultTitle": "Results for \"{{name}}\"",
"executionResultDescription": "Output from each target host.",
"executionSuccess": "Success",
"executionFailed": "Failed",
"directRunSuccess": "Ran \"{{name}}\" on {{count}} host(s)",
"directRunPartialFail": "\"{{name}}\" failed on some hosts",
"reorderFailed": "Failed to reorder snippets",
"dropToRemoveFromFolder": "Drop here to move out of the folder",
"shareSnippetTitle": "Share \"{{name}}\"",
"shareFolderTitle": "Share folder \"{{name}}\"",
"shareWith": "Share with",
"usersTab": "Users",
"rolesTab": "Roles",
"shareSearchPlaceholder": "Search users or roles",
"shareNoMatches": "No matches",
"shareWithCount": "Share with {{count}}",
"shareFolderHint": "Shares every snippet in this folder. Snippets added later are not shared automatically.",
"shareFolderSummary": "Shared {{count}} snippet(s) in this folder",
"grantedBy": "Granted by",
"expired": "Expired",
"variablesDialogTitle": "Run \"{{name}}\"",
"variablesDialogDescription": "Fill in the values this snippet needs before running it.",
"variablesPreviewLabel": "Preview",
"variablesConfirmButton": "Run",
"keybindings": {
"runSnippet": "Run existing snippet",
"snippetLabel": "Snippet",
"selectSnippet": "Select a snippet",
"snippetMissing": "snippet not found",
"snippetRequired": "Select a snippet"
},
"paletteHintRun": "Run in the active terminal tab",
"host": {
"startupTitle": "Startup Snippet",
"quickActionsTitle": "Quick Actions",
"quickActionsDescription": "Quick actions appear as buttons in the Host Metrics toolbar for one-click command execution.",
"noQuickActions": "No quick actions yet.",
"buttonLabel": "Button label",
"selectSnippet": "Select snippet...",
"addQuickAction": "Add Action",
"tabTitle": "Snippets",
"startupDescription": "Runs in the terminal each time it connects to this host. Variables like $HOST are filled in; a snippet that asks for inputs is skipped.",
"none": "None",
"removeQuickAction": "Remove quick action"
},
"quickActions": {
"running": "Executing {{name}}...",
"succeeded": "{{name}} completed successfully",
"failed": "{{name}} failed",
"error": "Failed to execute {{name}}"
},
"paletteHintPaste": "Paste in the active terminal tab",
"targetTerminals": "Run in",
"targetTerminalsHint": "optional, else the active tab",
"selectAll": "All",
"selectNone": "None"
}
@@ -0,0 +1,235 @@
{
"nav": {
"snippets": "Snippets"
},
"onboarding": {
"feature_snippets": "Snippets",
"feature_snippets_desc": "Save commands you run often and send them to a terminal in one click."
},
"permissions": {
"view": {
"title": "View snippets",
"description": "See your own snippets, notes and shared snippets."
},
"create": {
"title": "Create snippets",
"description": "Create new snippets, notes and folders."
},
"edit": {
"title": "Edit snippets",
"description": "Rename or change existing snippets and folders."
},
"delete": {
"title": "Delete snippets",
"description": "Delete snippets and folders."
},
"share": {
"title": "Share snippets",
"description": "Share snippets and folders with other users or roles."
}
},
"settings": {
"foldersCollapsed": {
"label": "Collapse folders by default",
"description": "Start each snippet folder collapsed when you open the Snippets panel."
},
"showCommands": {
"label": "Show commands",
"description": "Show the first line of each snippet's command under its name."
},
"confirmExecution": {
"label": "Confirm before running",
"description": "Ask before a command snippet runs in a terminal."
}
},
"cancel": "Cancel",
"loading": "Loading...",
"searchPlaceholder": "Search snippets",
"newFolder": "New folder",
"newSnippet": "New snippet",
"noFolder": "No folder",
"noSnippetsInFolder": "No snippets in this folder",
"noTerminalTabsOpen": "No terminal tab is open",
"run": "Run",
"pasteToTerminal": "Paste to terminal",
"copySuccess": "Copied to clipboard",
"importExport": "Import / Export",
"importFailed": "Failed to import snippets",
"nameLabel": "Name",
"namePlaceholder": "Snippet name",
"descriptionLabel": "Description",
"descriptionPlaceholder": "Optional description",
"folderLabel": "Folder",
"typeLabel": "Type",
"typeCommand": "Command",
"typeNote": "Note",
"commandLabel": "Command",
"commandPlaceholder": "Command to run, e.g. systemctl status $HOST",
"noteLabel": "Note",
"notePlaceholder": "Text to paste into the terminal",
"createSnippetTitle": "Create snippet",
"createSnippetButton": "Create snippet",
"createSuccess": "Snippet created",
"createFailed": "Failed to create snippet",
"editSnippetTitle": "Edit snippet",
"saveSnippetButton": "Save snippet",
"updateSuccess": "Snippet updated",
"updateFailed": "Failed to update snippet",
"deleteFailed": "Failed to delete snippet",
"createFolderTitle": "Create folder",
"createFolderButton": "Create folder",
"folderCreateSuccess": "Folder created",
"folderCreateFailed": "Failed to create folder",
"editFolderTitle": "Edit folder",
"saveFolderButton": "Save folder",
"folderEditSuccess": "Folder updated",
"folderEditFailed": "Failed to update folder",
"folderNameLabel": "Folder name",
"folderNamePlaceholder": "Folder name",
"folderIconLabel": "Icon",
"folderDeleteSuccess": "Folder deleted",
"folderDeleteFailed": "Failed to delete folder",
"confirmRunMessage": "Run \"{{name}}\"?",
"confirmRunButton": "Run",
"runSuccess": "Ran \"{{name}}\" on {{count}} terminal(s)",
"pasteSuccess": "Pasted \"{{name}}\" into {{count}} terminal(s)",
"admin": {
"tabTitle": "Snippets",
"count": "{{count}} snippets",
"add": "Add Snippet",
"namePlaceholder": "Snippet name",
"contentPlaceholder": "Command content",
"folderPlaceholder": "Folder (optional)",
"empty": "This user has no snippets",
"deleteConfirm": "Delete snippet \"{{name}}\" belonging to {{username}}?",
"deleted": "Snippet deleted",
"deleteFailed": "Failed to delete snippet",
"requiredFields": "Snippet name and content are required",
"saved": "Snippet saved",
"saveFailed": "Failed to save snippet",
"saving": "Saving...",
"save": "Save"
},
"backToSnippets": "Back to snippets",
"settingsTitle": "Snippet settings",
"settingsDisplayTitle": "Display",
"settingsBehaviorTitle": "Behavior",
"typeCommandHint": "Runs in the active terminal.",
"typeNoteHint": "Pastes into the active terminal without running.",
"variablesHint": "Variables: $HOST, $USER, $PORT, $NAME, ${INPUT_1:Label}",
"doubleClickToRun": "Double click to run",
"sharedBadge": "Shared",
"copyToClipboard": "Copy to clipboard",
"copyFailed": "Failed to copy to clipboard",
"moreOptions": "More options",
"moreActions": "More actions",
"moveToFolder": "Move to folder",
"deleteSnippet": "Delete snippet",
"deleteSnippetConfirm": "Delete snippet \"{{name}}\"?",
"deleteSuccess": "Snippet deleted",
"delete": "Delete",
"folderActions": "Folder actions",
"addSnippetHere": "New snippet here",
"deleteFolder": "Delete folder",
"deleteFolderConfirm": "Delete folder \"{{name}}\"? Its snippets move out of the folder.",
"createFolderDescription": "Group related snippets together.",
"editFolderDescription": "Change this folder's name, color or icon.",
"folderColorLabel": "Color",
"loadFailed": "Failed to load snippets",
"importSkipExisting": "Import (skip existing)",
"importOverwrite": "Import (overwrite existing)",
"importInvalidFile": "That file is not a valid snippets export",
"importSuccess": "Imported {{imported}}, updated {{updated}}, skipped {{skipped}}",
"exportSnippets": "Export snippets",
"exportSuccess": "Snippets exported",
"exportFailed": "Failed to export snippets",
"expandAll": "Expand all folders",
"collapseAll": "Collapse all folders",
"docsLink": "Documentation",
"clearSearch": "Clear search",
"noSearchResults": "No snippets match your search",
"emptyTitle": "No snippets yet",
"emptyDescription": "Save commands you run often, then run them in a terminal with one click.",
"shareSnippet": "Share snippet",
"shareFolder": "Share folder",
"shareExpiry": "Expires",
"shareExpiryOptions": {
"h0": "Never",
"h1": "In 1 hour",
"h24": "In 1 day",
"h168": "In 7 days",
"h720": "In 30 days"
},
"shareButton": "Share",
"shareSuccess": "Shared with {{count}}",
"shareFailed": "Failed to share",
"shareLoadFailed": "Failed to load sharing details",
"currentAccess": "Current access",
"notSharedYet": "Not shared with anyone yet",
"revokeAccess": "Revoke",
"revokeSuccess": "Access revoked",
"revokeFailed": "Failed to revoke access",
"close": "Close",
"targetHostsLabel": "Target hosts",
"targetHostsHint": "Pick hosts to run this command on directly, without a terminal open. Leave empty to run it in the active terminal.",
"clearTargetHosts": "Clear",
"noHostsAvailable": "No hosts available",
"searchHosts": "Search hosts",
"runOnTargets": "Run on target hosts",
"executionResultTitle": "Results for \"{{name}}\"",
"executionResultDescription": "Output from each target host.",
"executionSuccess": "Success",
"executionFailed": "Failed",
"directRunSuccess": "Ran \"{{name}}\" on {{count}} host(s)",
"directRunPartialFail": "\"{{name}}\" failed on some hosts",
"reorderFailed": "Failed to reorder snippets",
"dropToRemoveFromFolder": "Drop here to move out of the folder",
"shareSnippetTitle": "Share \"{{name}}\"",
"shareFolderTitle": "Share folder \"{{name}}\"",
"shareWith": "Share with",
"usersTab": "Users",
"rolesTab": "Roles",
"shareSearchPlaceholder": "Search users or roles",
"shareNoMatches": "No matches",
"shareWithCount": "Share with {{count}}",
"shareFolderHint": "Shares every snippet in this folder. Snippets added later are not shared automatically.",
"shareFolderSummary": "Shared {{count}} snippet(s) in this folder",
"grantedBy": "Granted by",
"expired": "Expired",
"variablesDialogTitle": "Run \"{{name}}\"",
"variablesDialogDescription": "Fill in the values this snippet needs before running it.",
"variablesPreviewLabel": "Preview",
"variablesConfirmButton": "Run",
"keybindings": {
"runSnippet": "Run existing snippet",
"snippetLabel": "Snippet",
"selectSnippet": "Select a snippet",
"snippetMissing": "snippet not found",
"snippetRequired": "Select a snippet"
},
"paletteHintRun": "Run in the active terminal tab",
"host": {
"startupTitle": "Startup Snippet",
"quickActionsTitle": "Quick Actions",
"quickActionsDescription": "Quick actions appear as buttons in the Host Metrics toolbar for one-click command execution.",
"noQuickActions": "No quick actions yet.",
"buttonLabel": "Button label",
"selectSnippet": "Select snippet...",
"addQuickAction": "Add Action",
"tabTitle": "Snippets",
"startupDescription": "Runs in the terminal each time it connects to this host. Variables like $HOST are filled in; a snippet that asks for inputs is skipped.",
"none": "None",
"removeQuickAction": "Remove quick action"
},
"quickActions": {
"running": "Executing {{name}}...",
"succeeded": "{{name}} completed successfully",
"failed": "{{name}} failed",
"error": "Failed to execute {{name}}"
},
"paletteHintPaste": "Paste in the active terminal tab",
"targetTerminals": "Run in",
"targetTerminalsHint": "optional, else the active tab",
"selectAll": "All",
"selectNone": "None"
}
@@ -0,0 +1,235 @@
{
"nav": {
"snippets": "Kod Parçacıkları"
},
"onboarding": {
"feature_snippets": "Parçacıklar",
"feature_snippets_desc": "Save commands you run often and send them to a terminal in one click."
},
"permissions": {
"view": {
"title": "View snippets",
"description": "See your own snippets, notes and shared snippets."
},
"create": {
"title": "Create snippets",
"description": "Create new snippets, notes and folders."
},
"edit": {
"title": "Edit snippets",
"description": "Rename or change existing snippets and folders."
},
"delete": {
"title": "Delete snippets",
"description": "Delete snippets and folders."
},
"share": {
"title": "Share snippets",
"description": "Share snippets and folders with other users or roles."
}
},
"settings": {
"foldersCollapsed": {
"label": "Klasörler varsayılan olarak kapalı olsun",
"description": "Start each snippet folder collapsed when you open the Snippets panel."
},
"showCommands": {
"label": "Show commands",
"description": "Show the first line of each snippet's command under its name."
},
"confirmExecution": {
"label": "Confirm before running",
"description": "Ask before a command snippet runs in a terminal."
}
},
"cancel": "İptal",
"loading": "Yükleniyor...",
"searchPlaceholder": "Parçacıkları ara",
"newFolder": "Yeni klasör",
"newSnippet": "New snippet",
"noFolder": "Klasör yok",
"noSnippetsInFolder": "Bu klasörde parçacık yok",
"noTerminalTabsOpen": "No terminal tab is open",
"run": "Çalıştır",
"pasteToTerminal": "Paste to terminal",
"copySuccess": "Panoya kopyalandı",
"importExport": "İçe / Dışa Aktar",
"importFailed": "Kod parçacıkları içe aktarılamadı",
"nameLabel": "Ad",
"namePlaceholder": "Kod parçası adı",
"descriptionLabel": "Açıklama",
"descriptionPlaceholder": "İsteğe bağlı açıklama",
"folderLabel": "Klasör",
"typeLabel": "Tür",
"typeCommand": "Komut",
"typeNote": "Note",
"commandLabel": "Komut",
"commandPlaceholder": "Command to run, e.g. systemctl status $HOST",
"noteLabel": "Note",
"notePlaceholder": "Text to paste into the terminal",
"createSnippetTitle": "Create snippet",
"createSnippetButton": "Create snippet",
"createSuccess": "Snippet created",
"createFailed": "Parçacık oluşturulamadı",
"editSnippetTitle": "Edit snippet",
"saveSnippetButton": "Save snippet",
"updateSuccess": "Snippet updated",
"updateFailed": "Parçacık güncellenemedi",
"deleteFailed": "Parçacık silinemedi",
"createFolderTitle": "Klasör oluştur",
"createFolderButton": "Klasör oluştur",
"folderCreateSuccess": "Folder created",
"folderCreateFailed": "Klasör oluşturulamadı",
"editFolderTitle": "Klasörü düzenle",
"saveFolderButton": "Klasörü kaydet",
"folderEditSuccess": "Folder updated",
"folderEditFailed": "Klasör güncellenemedi",
"folderNameLabel": "Klasör adı",
"folderNamePlaceholder": "Klasör adı",
"folderIconLabel": "Simge",
"folderDeleteSuccess": "Folder deleted",
"folderDeleteFailed": "Klasör silinemedi",
"confirmRunMessage": "\"{{name}}\" çalıştırılsın mı?",
"confirmRunButton": "Çalıştır",
"runSuccess": "Ran \"{{name}}\" on {{count}} terminal(s)",
"pasteSuccess": "Pasted \"{{name}}\" into {{count}} terminal(s)",
"admin": {
"tabTitle": "Parçacıklar",
"count": "{{count}} kod parçası",
"add": "Kod Parçası Ekle",
"namePlaceholder": "Kod parçası adı",
"contentPlaceholder": "Komut içeriği",
"folderPlaceholder": "Klasör (isteğe bağlı)",
"empty": "Bu kullanıcıya ait kod parçası yok",
"deleteConfirm": "{{username}} kullanıcısına ait \"{{name}}\" kod parçası silinsin mi?",
"deleted": "Kod parçası silindi",
"deleteFailed": "Parçacık silinemedi",
"requiredFields": "Kod parçası adı ve içeriği zorunludur",
"saved": "Kod parçası kaydedildi",
"saveFailed": "Kod parçası kaydedilemedi",
"saving": "Kaydediliyor...",
"save": "Kaydet"
},
"backToSnippets": "Back to snippets",
"settingsTitle": "Snippet settings",
"settingsDisplayTitle": "Display",
"settingsBehaviorTitle": "Davranış",
"typeCommandHint": "Runs in the active terminal.",
"typeNoteHint": "Pastes into the active terminal without running.",
"variablesHint": "Variables: $HOST, $USER, $PORT, $NAME, ${INPUT_1:Label}",
"doubleClickToRun": "Double click to run",
"sharedBadge": "Paylaşıldı",
"copyToClipboard": "Copy to clipboard",
"copyFailed": "Panoya kopyalanamadı",
"moreOptions": "More options",
"moreActions": "Diğer işlemler",
"moveToFolder": "Move to folder",
"deleteSnippet": "Delete snippet",
"deleteSnippetConfirm": "Delete snippet \"{{name}}\"?",
"deleteSuccess": "Kod parçası silindi",
"delete": "Sil",
"folderActions": "Folder actions",
"addSnippetHere": "New snippet here",
"deleteFolder": "Klasörü sil",
"deleteFolderConfirm": "Delete folder \"{{name}}\"? Its snippets move out of the folder.",
"createFolderDescription": "Group related snippets together.",
"editFolderDescription": "Change this folder's name, color or icon.",
"folderColorLabel": "Renk",
"loadFailed": "Failed to load snippets",
"importSkipExisting": "İçe Aktar (mevcut olanları atla)",
"importOverwrite": "Import (overwrite existing)",
"importInvalidFile": "That file is not a valid snippets export",
"importSuccess": "Imported {{imported}}, updated {{updated}}, skipped {{skipped}}",
"exportSnippets": "Export snippets",
"exportSuccess": "Snippets exported",
"exportFailed": "Kod parçacıkları dışa aktarılamadı",
"expandAll": "Tüm klasörleri genişlet",
"collapseAll": "Tüm klasörleri daralt",
"docsLink": "Documentation",
"clearSearch": "Clear search",
"noSearchResults": "No snippets match your search",
"emptyTitle": "No snippets yet",
"emptyDescription": "Save commands you run often, then run them in a terminal with one click.",
"shareSnippet": "Share snippet",
"shareFolder": "Share folder",
"shareExpiry": "Bitiş",
"shareExpiryOptions": {
"h0": "Süresiz",
"h1": "In 1 hour",
"h24": "In 1 day",
"h168": "In 7 days",
"h720": "In 30 days"
},
"shareButton": "Paylaş",
"shareSuccess": "Shared with {{count}}",
"shareFailed": "Failed to share",
"shareLoadFailed": "Failed to load sharing details",
"currentAccess": "Mevcut erişim",
"notSharedYet": "Not shared with anyone yet",
"revokeAccess": "İptal Et",
"revokeSuccess": "Erişim iptal edildi",
"revokeFailed": "Erişim iptal edilemedi",
"close": "Kapat",
"targetHostsLabel": "Target hosts",
"targetHostsHint": "Pick hosts to run this command on directly, without a terminal open. Leave empty to run it in the active terminal.",
"clearTargetHosts": "Temizle",
"noHostsAvailable": "No hosts available",
"searchHosts": "Host ara",
"runOnTargets": "Run on target hosts",
"executionResultTitle": "Results for \"{{name}}\"",
"executionResultDescription": "Output from each target host.",
"executionSuccess": "Başarılı",
"executionFailed": "Başarısız",
"directRunSuccess": "{{count}} sunucuda \"{{name}}\" çalıştırıldı",
"directRunPartialFail": "\"{{name}}\" failed on some hosts",
"reorderFailed": "Failed to reorder snippets",
"dropToRemoveFromFolder": "Drop here to move out of the folder",
"shareSnippetTitle": "Share \"{{name}}\"",
"shareFolderTitle": "Share folder \"{{name}}\"",
"shareWith": "Kimlerle paylaş",
"usersTab": "Kullanıcılar",
"rolesTab": "Roller",
"shareSearchPlaceholder": "Kullanıcı veya rol ara",
"shareNoMatches": "No matches",
"shareWithCount": "Share with {{count}}",
"shareFolderHint": "Shares every snippet in this folder. Snippets added later are not shared automatically.",
"shareFolderSummary": "Shared {{count}} snippet(s) in this folder",
"grantedBy": "Veren",
"expired": "Süresi dolmuş",
"variablesDialogTitle": "Run \"{{name}}\"",
"variablesDialogDescription": "Fill in the values this snippet needs before running it.",
"variablesPreviewLabel": "Önizle",
"variablesConfirmButton": "Çalıştır",
"keybindings": {
"runSnippet": "Run existing snippet",
"snippetLabel": "Snippet",
"selectSnippet": "Select a snippet",
"snippetMissing": "snippet not found",
"snippetRequired": "Select a snippet"
},
"paletteHintRun": "Run in the active terminal tab",
"host": {
"startupTitle": "Başlangıç Betiği",
"quickActionsTitle": "Hızlı Eylemler",
"quickActionsDescription": "Hızlı eylemler, tek tıklamayla komut çalıştırmak için Ana Bilgisayar Metrikleri araç çubuğunda düğme olarak görünür.",
"noQuickActions": "Henüz hızlı eylem yok.",
"buttonLabel": "Düğme etiketi",
"selectSnippet": "Parçacık seç...",
"addQuickAction": "Eylem Ekle",
"tabTitle": "Parçacıklar",
"startupDescription": "Runs in the terminal each time it connects to this host. Variables like $HOST are filled in; a snippet that asks for inputs is skipped.",
"none": "Yok",
"removeQuickAction": "Remove quick action"
},
"quickActions": {
"running": "{{name}} çalıştırılıyor...",
"succeeded": "{{name}} başarıyla tamamlandı",
"failed": "{{name}} başarısız oldu",
"error": "{{name}} çalıştırılamadı"
},
"paletteHintPaste": "Paste in the active terminal tab",
"targetTerminals": "Run in",
"targetTerminalsHint": "optional, else the active tab",
"selectAll": "Tümü",
"selectNone": "Yok"
}
@@ -0,0 +1,235 @@
{
"nav": {
"snippets": "Snippets"
},
"onboarding": {
"feature_snippets": "Snippets",
"feature_snippets_desc": "Save commands you run often and send them to a terminal in one click."
},
"permissions": {
"view": {
"title": "View snippets",
"description": "See your own snippets, notes and shared snippets."
},
"create": {
"title": "Create snippets",
"description": "Create new snippets, notes and folders."
},
"edit": {
"title": "Edit snippets",
"description": "Rename or change existing snippets and folders."
},
"delete": {
"title": "Delete snippets",
"description": "Delete snippets and folders."
},
"share": {
"title": "Share snippets",
"description": "Share snippets and folders with other users or roles."
}
},
"settings": {
"foldersCollapsed": {
"label": "Collapse folders by default",
"description": "Start each snippet folder collapsed when you open the Snippets panel."
},
"showCommands": {
"label": "Show commands",
"description": "Show the first line of each snippet's command under its name."
},
"confirmExecution": {
"label": "Confirm before running",
"description": "Ask before a command snippet runs in a terminal."
}
},
"cancel": "Cancel",
"loading": "Loading...",
"searchPlaceholder": "Search snippets",
"newFolder": "New folder",
"newSnippet": "New snippet",
"noFolder": "No folder",
"noSnippetsInFolder": "No snippets in this folder",
"noTerminalTabsOpen": "No terminal tab is open",
"run": "Run",
"pasteToTerminal": "Paste to terminal",
"copySuccess": "Copied to clipboard",
"importExport": "Import / Export",
"importFailed": "Failed to import snippets",
"nameLabel": "Name",
"namePlaceholder": "Snippet name",
"descriptionLabel": "Description",
"descriptionPlaceholder": "Optional description",
"folderLabel": "Folder",
"typeLabel": "Type",
"typeCommand": "Command",
"typeNote": "Note",
"commandLabel": "Command",
"commandPlaceholder": "Command to run, e.g. systemctl status $HOST",
"noteLabel": "Note",
"notePlaceholder": "Text to paste into the terminal",
"createSnippetTitle": "Create snippet",
"createSnippetButton": "Create snippet",
"createSuccess": "Snippet created",
"createFailed": "Failed to create snippet",
"editSnippetTitle": "Edit snippet",
"saveSnippetButton": "Save snippet",
"updateSuccess": "Snippet updated",
"updateFailed": "Failed to update snippet",
"deleteFailed": "Failed to delete snippet",
"createFolderTitle": "Create folder",
"createFolderButton": "Create folder",
"folderCreateSuccess": "Folder created",
"folderCreateFailed": "Failed to create folder",
"editFolderTitle": "Edit folder",
"saveFolderButton": "Save folder",
"folderEditSuccess": "Folder updated",
"folderEditFailed": "Failed to update folder",
"folderNameLabel": "Folder name",
"folderNamePlaceholder": "Folder name",
"folderIconLabel": "Icon",
"folderDeleteSuccess": "Folder deleted",
"folderDeleteFailed": "Failed to delete folder",
"confirmRunMessage": "Run \"{{name}}\"?",
"confirmRunButton": "Run",
"runSuccess": "Ran \"{{name}}\" on {{count}} terminal(s)",
"pasteSuccess": "Pasted \"{{name}}\" into {{count}} terminal(s)",
"admin": {
"tabTitle": "Snippets",
"count": "{{count}} snippets",
"add": "Add Snippet",
"namePlaceholder": "Snippet name",
"contentPlaceholder": "Command content",
"folderPlaceholder": "Folder (optional)",
"empty": "This user has no snippets",
"deleteConfirm": "Delete snippet \"{{name}}\" belonging to {{username}}?",
"deleted": "Snippet deleted",
"deleteFailed": "Failed to delete snippet",
"requiredFields": "Snippet name and content are required",
"saved": "Snippet saved",
"saveFailed": "Failed to save snippet",
"saving": "Saving...",
"save": "Save"
},
"backToSnippets": "Back to snippets",
"settingsTitle": "Snippet settings",
"settingsDisplayTitle": "Display",
"settingsBehaviorTitle": "Behavior",
"typeCommandHint": "Runs in the active terminal.",
"typeNoteHint": "Pastes into the active terminal without running.",
"variablesHint": "Variables: $HOST, $USER, $PORT, $NAME, ${INPUT_1:Label}",
"doubleClickToRun": "Double click to run",
"sharedBadge": "Shared",
"copyToClipboard": "Copy to clipboard",
"copyFailed": "Failed to copy to clipboard",
"moreOptions": "More options",
"moreActions": "More actions",
"moveToFolder": "Move to folder",
"deleteSnippet": "Delete snippet",
"deleteSnippetConfirm": "Delete snippet \"{{name}}\"?",
"deleteSuccess": "Snippet deleted",
"delete": "Delete",
"folderActions": "Folder actions",
"addSnippetHere": "New snippet here",
"deleteFolder": "Delete folder",
"deleteFolderConfirm": "Delete folder \"{{name}}\"? Its snippets move out of the folder.",
"createFolderDescription": "Group related snippets together.",
"editFolderDescription": "Change this folder's name, color or icon.",
"folderColorLabel": "Color",
"loadFailed": "Failed to load snippets",
"importSkipExisting": "Import (skip existing)",
"importOverwrite": "Import (overwrite existing)",
"importInvalidFile": "That file is not a valid snippets export",
"importSuccess": "Imported {{imported}}, updated {{updated}}, skipped {{skipped}}",
"exportSnippets": "Export snippets",
"exportSuccess": "Snippets exported",
"exportFailed": "Failed to export snippets",
"expandAll": "Expand all folders",
"collapseAll": "Collapse all folders",
"docsLink": "Documentation",
"clearSearch": "Clear search",
"noSearchResults": "No snippets match your search",
"emptyTitle": "No snippets yet",
"emptyDescription": "Save commands you run often, then run them in a terminal with one click.",
"shareSnippet": "Share snippet",
"shareFolder": "Share folder",
"shareExpiry": "Expires",
"shareExpiryOptions": {
"h0": "Never",
"h1": "In 1 hour",
"h24": "In 1 day",
"h168": "In 7 days",
"h720": "In 30 days"
},
"shareButton": "Share",
"shareSuccess": "Shared with {{count}}",
"shareFailed": "Failed to share",
"shareLoadFailed": "Failed to load sharing details",
"currentAccess": "Current access",
"notSharedYet": "Not shared with anyone yet",
"revokeAccess": "Revoke",
"revokeSuccess": "Access revoked",
"revokeFailed": "Failed to revoke access",
"close": "Close",
"targetHostsLabel": "Target hosts",
"targetHostsHint": "Pick hosts to run this command on directly, without a terminal open. Leave empty to run it in the active terminal.",
"clearTargetHosts": "Clear",
"noHostsAvailable": "No hosts available",
"searchHosts": "Search hosts",
"runOnTargets": "Run on target hosts",
"executionResultTitle": "Results for \"{{name}}\"",
"executionResultDescription": "Output from each target host.",
"executionSuccess": "Success",
"executionFailed": "Failed",
"directRunSuccess": "Ran \"{{name}}\" on {{count}} host(s)",
"directRunPartialFail": "\"{{name}}\" failed on some hosts",
"reorderFailed": "Failed to reorder snippets",
"dropToRemoveFromFolder": "Drop here to move out of the folder",
"shareSnippetTitle": "Share \"{{name}}\"",
"shareFolderTitle": "Share folder \"{{name}}\"",
"shareWith": "Share with",
"usersTab": "Users",
"rolesTab": "Roles",
"shareSearchPlaceholder": "Search users or roles",
"shareNoMatches": "No matches",
"shareWithCount": "Share with {{count}}",
"shareFolderHint": "Shares every snippet in this folder. Snippets added later are not shared automatically.",
"shareFolderSummary": "Shared {{count}} snippet(s) in this folder",
"grantedBy": "Granted by",
"expired": "Expired",
"variablesDialogTitle": "Run \"{{name}}\"",
"variablesDialogDescription": "Fill in the values this snippet needs before running it.",
"variablesPreviewLabel": "Preview",
"variablesConfirmButton": "Run",
"keybindings": {
"runSnippet": "Run existing snippet",
"snippetLabel": "Snippet",
"selectSnippet": "Select a snippet",
"snippetMissing": "snippet not found",
"snippetRequired": "Select a snippet"
},
"paletteHintRun": "Run in the active terminal tab",
"host": {
"startupTitle": "Startup Snippet",
"quickActionsTitle": "Quick Actions",
"quickActionsDescription": "Quick actions appear as buttons in the Host Metrics toolbar for one-click command execution.",
"noQuickActions": "No quick actions yet.",
"buttonLabel": "Button label",
"selectSnippet": "Select snippet...",
"addQuickAction": "Add Action",
"tabTitle": "Snippets",
"startupDescription": "Runs in the terminal each time it connects to this host. Variables like $HOST are filled in; a snippet that asks for inputs is skipped.",
"none": "None",
"removeQuickAction": "Remove quick action"
},
"quickActions": {
"running": "Executing {{name}}...",
"succeeded": "{{name}} completed successfully",
"failed": "{{name}} failed",
"error": "Failed to execute {{name}}"
},
"paletteHintPaste": "Paste in the active terminal tab",
"targetTerminals": "Run in",
"targetTerminalsHint": "optional, else the active tab",
"selectAll": "All",
"selectNone": "None"
}
@@ -0,0 +1,235 @@
{
"nav": {
"snippets": "Đoạn mã"
},
"onboarding": {
"feature_snippets": "Đoạn mã",
"feature_snippets_desc": "Save commands you run often and send them to a terminal in one click."
},
"permissions": {
"view": {
"title": "View snippets",
"description": "See your own snippets, notes and shared snippets."
},
"create": {
"title": "Create snippets",
"description": "Create new snippets, notes and folders."
},
"edit": {
"title": "Edit snippets",
"description": "Rename or change existing snippets and folders."
},
"delete": {
"title": "Delete snippets",
"description": "Delete snippets and folders."
},
"share": {
"title": "Share snippets",
"description": "Share snippets and folders with other users or roles."
}
},
"settings": {
"foldersCollapsed": {
"label": "Mặc định thu gọn thư mục",
"description": "Start each snippet folder collapsed when you open the Snippets panel."
},
"showCommands": {
"label": "Show commands",
"description": "Show the first line of each snippet's command under its name."
},
"confirmExecution": {
"label": "Confirm before running",
"description": "Ask before a command snippet runs in a terminal."
}
},
"cancel": "Hủy",
"loading": "Đang tải...",
"searchPlaceholder": "Tìm kiếm snippet",
"newFolder": "Thư mục mới",
"newSnippet": "New snippet",
"noFolder": "Không có thư mục",
"noSnippetsInFolder": "Không có snippet nào trong thư mục này",
"noTerminalTabsOpen": "No terminal tab is open",
"run": "Chạy",
"pasteToTerminal": "Paste to terminal",
"copySuccess": "Đã sao chép vào bộ nhớ tạm",
"importExport": "Nhập / Xuất",
"importFailed": "Nhập đoạn mã thất bại",
"nameLabel": "Tên",
"namePlaceholder": "Tên đoạn mã",
"descriptionLabel": "Mô tả",
"descriptionPlaceholder": "Mô tả tùy chọn",
"folderLabel": "Thư mục",
"typeLabel": "Loại",
"typeCommand": "Lệnh",
"typeNote": "Note",
"commandLabel": "Lệnh",
"commandPlaceholder": "Command to run, e.g. systemctl status $HOST",
"noteLabel": "Note",
"notePlaceholder": "Text to paste into the terminal",
"createSnippetTitle": "Create snippet",
"createSnippetButton": "Create snippet",
"createSuccess": "Snippet created",
"createFailed": "Tạo snippet thất bại",
"editSnippetTitle": "Edit snippet",
"saveSnippetButton": "Save snippet",
"updateSuccess": "Snippet updated",
"updateFailed": "Cập nhật snippet thất bại",
"deleteFailed": "Xóa snippet thất bại",
"createFolderTitle": "Tạo thư mục",
"createFolderButton": "Tạo thư mục",
"folderCreateSuccess": "Folder created",
"folderCreateFailed": "Tạo thư mục thất bại",
"editFolderTitle": "Sửa thư mục",
"saveFolderButton": "Lưu thư mục",
"folderEditSuccess": "Folder updated",
"folderEditFailed": "Cập nhật thư mục thất bại",
"folderNameLabel": "Tên thư mục",
"folderNamePlaceholder": "Tên thư mục",
"folderIconLabel": "Biểu tượng",
"folderDeleteSuccess": "Folder deleted",
"folderDeleteFailed": "Xóa thư mục thất bại",
"confirmRunMessage": "Chạy \"{{name}}\"?",
"confirmRunButton": "Chạy",
"runSuccess": "Ran \"{{name}}\" on {{count}} terminal(s)",
"pasteSuccess": "Pasted \"{{name}}\" into {{count}} terminal(s)",
"admin": {
"tabTitle": "Đoạn mã",
"count": "{{count}} đoạn mã",
"add": "Thêm đoạn mã",
"namePlaceholder": "Tên đoạn mã",
"contentPlaceholder": "Nội dung lệnh",
"folderPlaceholder": "Thư mục (tùy chọn)",
"empty": "Người dùng này không có đoạn mã nào",
"deleteConfirm": "Xóa đoạn mã \"{{name}}\" của {{username}}?",
"deleted": "Đã xóa đoạn mã",
"deleteFailed": "Xóa snippet thất bại",
"requiredFields": "Cần tên và nội dung đoạn mã",
"saved": "Đã lưu đoạn mã",
"saveFailed": "Lưu đoạn mã thất bại",
"saving": "Đang lưu...",
"save": "Lưu"
},
"backToSnippets": "Back to snippets",
"settingsTitle": "Snippet settings",
"settingsDisplayTitle": "Display",
"settingsBehaviorTitle": "Hành vi",
"typeCommandHint": "Runs in the active terminal.",
"typeNoteHint": "Pastes into the active terminal without running.",
"variablesHint": "Variables: $HOST, $USER, $PORT, $NAME, ${INPUT_1:Label}",
"doubleClickToRun": "Double click to run",
"sharedBadge": "Đã chia sẻ",
"copyToClipboard": "Copy to clipboard",
"copyFailed": "Không thể sao chép vào bảng tạm",
"moreOptions": "More options",
"moreActions": "Thao tác khác",
"moveToFolder": "Move to folder",
"deleteSnippet": "Delete snippet",
"deleteSnippetConfirm": "Delete snippet \"{{name}}\"?",
"deleteSuccess": "Đã xóa đoạn mã",
"delete": "Xóa",
"folderActions": "Folder actions",
"addSnippetHere": "New snippet here",
"deleteFolder": "Xóa thư mục",
"deleteFolderConfirm": "Delete folder \"{{name}}\"? Its snippets move out of the folder.",
"createFolderDescription": "Group related snippets together.",
"editFolderDescription": "Change this folder's name, color or icon.",
"folderColorLabel": "Màu sắc",
"loadFailed": "Failed to load snippets",
"importSkipExisting": "Nhập (bỏ qua mục đã có)",
"importOverwrite": "Import (overwrite existing)",
"importInvalidFile": "That file is not a valid snippets export",
"importSuccess": "Imported {{imported}}, updated {{updated}}, skipped {{skipped}}",
"exportSnippets": "Export snippets",
"exportSuccess": "Snippets exported",
"exportFailed": "Xuất đoạn mã thất bại",
"expandAll": "Mở rộng tất cả thư mục",
"collapseAll": "Thu gọn tất cả thư mục",
"docsLink": "Documentation",
"clearSearch": "Clear search",
"noSearchResults": "No snippets match your search",
"emptyTitle": "No snippets yet",
"emptyDescription": "Save commands you run often, then run them in a terminal with one click.",
"shareSnippet": "Share snippet",
"shareFolder": "Share folder",
"shareExpiry": "Hết hạn",
"shareExpiryOptions": {
"h0": "Chưa bao giờ",
"h1": "In 1 hour",
"h24": "In 1 day",
"h168": "In 7 days",
"h720": "In 30 days"
},
"shareButton": "Chia sẻ",
"shareSuccess": "Shared with {{count}}",
"shareFailed": "Failed to share",
"shareLoadFailed": "Failed to load sharing details",
"currentAccess": "Truy cập hiện tại",
"notSharedYet": "Not shared with anyone yet",
"revokeAccess": "Thu hồi",
"revokeSuccess": "Đã thu hồi quyền truy cập",
"revokeFailed": "Thu hồi quyền truy cập thất bại",
"close": "Đóng",
"targetHostsLabel": "Target hosts",
"targetHostsHint": "Pick hosts to run this command on directly, without a terminal open. Leave empty to run it in the active terminal.",
"clearTargetHosts": "Xóa",
"noHostsAvailable": "No hosts available",
"searchHosts": "Tìm kiếm máy chủ",
"runOnTargets": "Run on target hosts",
"executionResultTitle": "Results for \"{{name}}\"",
"executionResultDescription": "Output from each target host.",
"executionSuccess": "Thành công",
"executionFailed": "Thất bại",
"directRunSuccess": "Đã chạy \"{{name}}\" trên {{count}} máy chủ",
"directRunPartialFail": "\"{{name}}\" failed on some hosts",
"reorderFailed": "Failed to reorder snippets",
"dropToRemoveFromFolder": "Drop here to move out of the folder",
"shareSnippetTitle": "Share \"{{name}}\"",
"shareFolderTitle": "Share folder \"{{name}}\"",
"shareWith": "Chia sẻ với",
"usersTab": "Người dùng",
"rolesTab": "Vai trò",
"shareSearchPlaceholder": "Tìm kiếm người dùng hoặc vai trò",
"shareNoMatches": "No matches",
"shareWithCount": "Share with {{count}}",
"shareFolderHint": "Shares every snippet in this folder. Snippets added later are not shared automatically.",
"shareFolderSummary": "Shared {{count}} snippet(s) in this folder",
"grantedBy": "Được cấp bởi",
"expired": "Đã hết hạn",
"variablesDialogTitle": "Chạy \"{{name}}\"",
"variablesDialogDescription": "Fill in the values this snippet needs before running it.",
"variablesPreviewLabel": "Xem trước",
"variablesConfirmButton": "Chạy",
"keybindings": {
"runSnippet": "Run existing snippet",
"snippetLabel": "Snippet",
"selectSnippet": "Select a snippet",
"snippetMissing": "snippet not found",
"snippetRequired": "Select a snippet"
},
"paletteHintRun": "Run in the active terminal tab",
"host": {
"startupTitle": "Đoạn mã khởi động",
"quickActionsTitle": "Hành động nhanh",
"quickActionsDescription": "Hành động nhanh xuất hiện dưới dạng nút trên thanh công cụ Chỉ số máy để thực thi lệnh một lần nhấp.",
"noQuickActions": "Chưa có hành động nhanh nào.",
"buttonLabel": "Nhãn nút",
"selectSnippet": "Chọn đoạn mã...",
"addQuickAction": "Thêm hành động",
"tabTitle": "Đoạn mã",
"startupDescription": "Runs in the terminal each time it connects to this host. Variables like $HOST are filled in; a snippet that asks for inputs is skipped.",
"none": "Không chọn",
"removeQuickAction": "Remove quick action"
},
"quickActions": {
"running": "Đang thực thi {{name}}...",
"succeeded": "{{name}} đã hoàn tất thành công",
"failed": "{{name}} thất bại",
"error": "Thực thi {{name}} thất bại"
},
"paletteHintPaste": "Paste in the active terminal tab",
"targetTerminals": "Run in",
"targetTerminalsHint": "optional, else the active tab",
"selectAll": "Tất cả",
"selectNone": "Không chọn"
}
@@ -0,0 +1,235 @@
{
"nav": {
"snippets": "代码片段"
},
"onboarding": {
"feature_snippets": "代码片段",
"feature_snippets_desc": "保存常用命令,一键发送至终端执行。"
},
"permissions": {
"view": {
"title": "View snippets",
"description": "See your own snippets, notes and shared snippets."
},
"create": {
"title": "Create snippets",
"description": "Create new snippets, notes and folders."
},
"edit": {
"title": "Edit snippets",
"description": "Rename or change existing snippets and folders."
},
"delete": {
"title": "Delete snippets",
"description": "Delete snippets and folders."
},
"share": {
"title": "Share snippets",
"description": "Share snippets and folders with other users or roles."
}
},
"settings": {
"foldersCollapsed": {
"label": "默认折叠文件夹",
"description": "Start each snippet folder collapsed when you open the Snippets panel."
},
"showCommands": {
"label": "Show commands",
"description": "Show the first line of each snippet's command under its name."
},
"confirmExecution": {
"label": "Confirm before running",
"description": "Ask before a command snippet runs in a terminal."
}
},
"cancel": "取消",
"loading": "加载中...",
"searchPlaceholder": "搜索代码片段",
"newFolder": "新建文件夹",
"newSnippet": "New snippet",
"noFolder": "无文件夹",
"noSnippetsInFolder": "此文件夹中没有代码片段",
"noTerminalTabsOpen": "No terminal tab is open",
"run": "运行",
"pasteToTerminal": "Paste to terminal",
"copySuccess": "已复制到剪贴板",
"importExport": "导入 / 导出",
"importFailed": "导入代码片段失败",
"nameLabel": "名称",
"namePlaceholder": "代码片段名称",
"descriptionLabel": "描述",
"descriptionPlaceholder": "可选描述",
"folderLabel": "文件夹",
"typeLabel": "类型",
"typeCommand": "命令",
"typeNote": "Note",
"commandLabel": "命令",
"commandPlaceholder": "Command to run, e.g. systemctl status $HOST",
"noteLabel": "Note",
"notePlaceholder": "Text to paste into the terminal",
"createSnippetTitle": "Create snippet",
"createSnippetButton": "Create snippet",
"createSuccess": "Snippet created",
"createFailed": "创建代码片段失败",
"editSnippetTitle": "Edit snippet",
"saveSnippetButton": "Save snippet",
"updateSuccess": "Snippet updated",
"updateFailed": "更新代码片段失败",
"deleteFailed": "删除代码片段失败",
"createFolderTitle": "创建文件夹",
"createFolderButton": "创建文件夹",
"folderCreateSuccess": "Folder created",
"folderCreateFailed": "创建文件夹失败",
"editFolderTitle": "编辑文件夹",
"saveFolderButton": "保存文件夹",
"folderEditSuccess": "Folder updated",
"folderEditFailed": "更新文件夹失败",
"folderNameLabel": "文件夹名称",
"folderNamePlaceholder": "文件夹名称",
"folderIconLabel": "图标",
"folderDeleteSuccess": "Folder deleted",
"folderDeleteFailed": "删除文件夹失败",
"confirmRunMessage": "运行“{{name}}”?",
"confirmRunButton": "运行",
"runSuccess": "Ran \"{{name}}\" on {{count}} terminal(s)",
"pasteSuccess": "Pasted \"{{name}}\" into {{count}} terminal(s)",
"admin": {
"tabTitle": "代码片段",
"count": "{{count}} 个代码片段",
"add": "添加代码片段",
"namePlaceholder": "代码片段名称",
"contentPlaceholder": "命令内容",
"folderPlaceholder": "文件夹(可选)",
"empty": "该用户没有代码片段",
"deleteConfirm": "删除属于 {{username}} 的代码片段 \"{{name}}\"?",
"deleted": "代码片段已删除",
"deleteFailed": "删除代码片段失败",
"requiredFields": "代码片段名称和内容为必填项",
"saved": "代码片段已保存",
"saveFailed": "保存代码片段失败",
"saving": "保存中...",
"save": "保存"
},
"backToSnippets": "Back to snippets",
"settingsTitle": "Snippet settings",
"settingsDisplayTitle": "Display",
"settingsBehaviorTitle": "交互",
"typeCommandHint": "Runs in the active terminal.",
"typeNoteHint": "Pastes into the active terminal without running.",
"variablesHint": "变量:$HOST、$USER、$PORT、$NAME、${INPUT_1:Label}",
"doubleClickToRun": "Double click to run",
"sharedBadge": "已共享",
"copyToClipboard": "Copy to clipboard",
"copyFailed": "复制到剪贴板失败",
"moreOptions": "More options",
"moreActions": "更多操作",
"moveToFolder": "Move to folder",
"deleteSnippet": "Delete snippet",
"deleteSnippetConfirm": "Delete snippet \"{{name}}\"?",
"deleteSuccess": "代码片段已删除",
"delete": "删除",
"folderActions": "Folder actions",
"addSnippetHere": "New snippet here",
"deleteFolder": "删除文件夹",
"deleteFolderConfirm": "Delete folder \"{{name}}\"? Its snippets move out of the folder.",
"createFolderDescription": "Group related snippets together.",
"editFolderDescription": "Change this folder's name, color or icon.",
"folderColorLabel": "颜色",
"loadFailed": "Failed to load snippets",
"importSkipExisting": "导入(跳过现有)",
"importOverwrite": "Import (overwrite existing)",
"importInvalidFile": "That file is not a valid snippets export",
"importSuccess": "Imported {{imported}}, updated {{updated}}, skipped {{skipped}}",
"exportSnippets": "Export snippets",
"exportSuccess": "Snippets exported",
"exportFailed": "导出代码片段失败",
"expandAll": "展开所有文件夹",
"collapseAll": "收起所有文件夹",
"docsLink": "文档",
"clearSearch": "Clear search",
"noSearchResults": "No snippets match your search",
"emptyTitle": "目前还没有代码片段",
"emptyDescription": "Save commands you run often, then run them in a terminal with one click.",
"shareSnippet": "Share snippet",
"shareFolder": "Share folder",
"shareExpiry": "过期时间",
"shareExpiryOptions": {
"h0": "从未",
"h1": "In 1 hour",
"h24": "In 1 day",
"h168": "In 7 days",
"h720": "In 30 days"
},
"shareButton": "共享",
"shareSuccess": "Shared with {{count}}",
"shareFailed": "共享失败",
"shareLoadFailed": "Failed to load sharing details",
"currentAccess": "当前访问权限",
"notSharedYet": "Not shared with anyone yet",
"revokeAccess": "吊销",
"revokeSuccess": "访问权限已撤销",
"revokeFailed": "撤销访问权限失败",
"close": "关闭",
"targetHostsLabel": "Target hosts",
"targetHostsHint": "Pick hosts to run this command on directly, without a terminal open. Leave empty to run it in the active terminal.",
"clearTargetHosts": "清除",
"noHostsAvailable": "暂无可用主机",
"searchHosts": "搜索主机",
"runOnTargets": "Run on target hosts",
"executionResultTitle": "Results for \"{{name}}\"",
"executionResultDescription": "Output from each target host.",
"executionSuccess": "成功",
"executionFailed": "失败",
"directRunSuccess": "已在 {{count}} 台主机上运行 \"{{name}}\"",
"directRunPartialFail": "\"{{name}}\" failed on some hosts",
"reorderFailed": "重新排序代码片段失败",
"dropToRemoveFromFolder": "Drop here to move out of the folder",
"shareSnippetTitle": "Share \"{{name}}\"",
"shareFolderTitle": "Share folder \"{{name}}\"",
"shareWith": "共享给",
"usersTab": "用户",
"rolesTab": "角色",
"shareSearchPlaceholder": "搜索用户或角色",
"shareNoMatches": "No matches",
"shareWithCount": "Share with {{count}}",
"shareFolderHint": "Shares every snippet in this folder. Snippets added later are not shared automatically.",
"shareFolderSummary": "Shared {{count}} snippet(s) in this folder",
"grantedBy": "授权者",
"expired": "已过期",
"variablesDialogTitle": "运行“{{name}}”",
"variablesDialogDescription": "Fill in the values this snippet needs before running it.",
"variablesPreviewLabel": "预览",
"variablesConfirmButton": "运行",
"keybindings": {
"runSnippet": "Run existing snippet",
"snippetLabel": "Snippet",
"selectSnippet": "选择代码片段",
"snippetMissing": "snippet not found",
"snippetRequired": "选择代码片段"
},
"paletteHintRun": "在活动终端标签页中运行",
"host": {
"startupTitle": "启动代码片段",
"quickActionsTitle": "快速操作",
"quickActionsDescription": "快速操作以按钮形式显示在主机指标工具栏中,以便一键执行命令。",
"noQuickActions": "尚无快速操作。",
"buttonLabel": "按钮标签",
"selectSnippet": "选择代码片段……",
"addQuickAction": "添加操作",
"tabTitle": "代码片段",
"startupDescription": "Runs in the terminal each time it connects to this host. Variables like $HOST are filled in; a snippet that asks for inputs is skipped.",
"none": "全不选",
"removeQuickAction": "Remove quick action"
},
"quickActions": {
"running": "正在执行 {{name}}...",
"succeeded": "{{name}} 执行成功",
"failed": "{{name}} 执行失败",
"error": "执行 {{name}} 失败"
},
"paletteHintPaste": "Paste in the active terminal tab",
"targetTerminals": "Run in",
"targetTerminalsHint": "optional, else the active tab",
"selectAll": "全部",
"selectNone": "全不选"
}
@@ -0,0 +1,235 @@
{
"nav": {
"snippets": "程式碼片段"
},
"onboarding": {
"feature_snippets": "指令片段",
"feature_snippets_desc": "Save commands you run often and send them to a terminal in one click."
},
"permissions": {
"view": {
"title": "View snippets",
"description": "See your own snippets, notes and shared snippets."
},
"create": {
"title": "Create snippets",
"description": "Create new snippets, notes and folders."
},
"edit": {
"title": "Edit snippets",
"description": "Rename or change existing snippets and folders."
},
"delete": {
"title": "Delete snippets",
"description": "Delete snippets and folders."
},
"share": {
"title": "Share snippets",
"description": "Share snippets and folders with other users or roles."
}
},
"settings": {
"foldersCollapsed": {
"label": "預設收合資料夾",
"description": "Start each snippet folder collapsed when you open the Snippets panel."
},
"showCommands": {
"label": "Show commands",
"description": "Show the first line of each snippet's command under its name."
},
"confirmExecution": {
"label": "Confirm before running",
"description": "Ask before a command snippet runs in a terminal."
}
},
"cancel": "取消",
"loading": "載入中...",
"searchPlaceholder": "搜尋指令片段",
"newFolder": "新資料夾",
"newSnippet": "New snippet",
"noFolder": "無資料夾",
"noSnippetsInFolder": "此資料夾中無指令片段",
"noTerminalTabsOpen": "No terminal tab is open",
"run": "執行",
"pasteToTerminal": "Paste to terminal",
"copySuccess": "已複製到剪貼簿",
"importExport": "匯入 / 匯出",
"importFailed": "匯入片段失敗",
"nameLabel": "名稱",
"namePlaceholder": "片段名稱",
"descriptionLabel": "說明",
"descriptionPlaceholder": "選用說明",
"folderLabel": "資料夾",
"typeLabel": "類型",
"typeCommand": "指令",
"typeNote": "Note",
"commandLabel": "指令",
"commandPlaceholder": "Command to run, e.g. systemctl status $HOST",
"noteLabel": "Note",
"notePlaceholder": "Text to paste into the terminal",
"createSnippetTitle": "Create snippet",
"createSnippetButton": "Create snippet",
"createSuccess": "Snippet created",
"createFailed": "建立指令片段失敗",
"editSnippetTitle": "Edit snippet",
"saveSnippetButton": "Save snippet",
"updateSuccess": "Snippet updated",
"updateFailed": "更新指令片段失敗",
"deleteFailed": "刪除指令片段失敗",
"createFolderTitle": "建立資料夾",
"createFolderButton": "建立資料夾",
"folderCreateSuccess": "Folder created",
"folderCreateFailed": "建立資料夾失敗",
"editFolderTitle": "編輯資料夾",
"saveFolderButton": "儲存資料夾",
"folderEditSuccess": "Folder updated",
"folderEditFailed": "更新資料夾失敗",
"folderNameLabel": "資料夾名稱",
"folderNamePlaceholder": "資料夾名稱",
"folderIconLabel": "圖示",
"folderDeleteSuccess": "Folder deleted",
"folderDeleteFailed": "刪除資料夾失敗",
"confirmRunMessage": "執行 \"{{name}}\"?",
"confirmRunButton": "執行",
"runSuccess": "Ran \"{{name}}\" on {{count}} terminal(s)",
"pasteSuccess": "Pasted \"{{name}}\" into {{count}} terminal(s)",
"admin": {
"tabTitle": "指令片段",
"count": "{{count}} 個片段",
"add": "新增片段",
"namePlaceholder": "片段名稱",
"contentPlaceholder": "指令內容",
"folderPlaceholder": "資料夾(可選)",
"empty": "此使用者沒有任何片段",
"deleteConfirm": "刪除屬於 {{username}} 的片段「{{name}}」?",
"deleted": "片段已刪除",
"deleteFailed": "刪除指令片段失敗",
"requiredFields": "片段名稱與內容為必填",
"saved": "片段已儲存",
"saveFailed": "無法儲存片段",
"saving": "儲存中...",
"save": "儲存"
},
"backToSnippets": "Back to snippets",
"settingsTitle": "Snippet settings",
"settingsDisplayTitle": "Display",
"settingsBehaviorTitle": "行為",
"typeCommandHint": "Runs in the active terminal.",
"typeNoteHint": "Pastes into the active terminal without running.",
"variablesHint": "Variables: $HOST, $USER, $PORT, $NAME, ${INPUT_1:Label}",
"doubleClickToRun": "Double click to run",
"sharedBadge": "已分享",
"copyToClipboard": "Copy to clipboard",
"copyFailed": "複製到剪貼簿失敗",
"moreOptions": "More options",
"moreActions": "更多動作",
"moveToFolder": "Move to folder",
"deleteSnippet": "Delete snippet",
"deleteSnippetConfirm": "Delete snippet \"{{name}}\"?",
"deleteSuccess": "片段已刪除",
"delete": "刪除",
"folderActions": "Folder actions",
"addSnippetHere": "New snippet here",
"deleteFolder": "刪除資料夾",
"deleteFolderConfirm": "Delete folder \"{{name}}\"? Its snippets move out of the folder.",
"createFolderDescription": "Group related snippets together.",
"editFolderDescription": "Change this folder's name, color or icon.",
"folderColorLabel": "顏色",
"loadFailed": "Failed to load snippets",
"importSkipExisting": "匯入(跳過已存在項目)",
"importOverwrite": "Import (overwrite existing)",
"importInvalidFile": "That file is not a valid snippets export",
"importSuccess": "Imported {{imported}}, updated {{updated}}, skipped {{skipped}}",
"exportSnippets": "Export snippets",
"exportSuccess": "Snippets exported",
"exportFailed": "匯出片段失敗",
"expandAll": "展開所有資料夾",
"collapseAll": "收合所有資料夾",
"docsLink": "說明文件",
"clearSearch": "Clear search",
"noSearchResults": "No snippets match your search",
"emptyTitle": "No snippets yet",
"emptyDescription": "Save commands you run often, then run them in a terminal with one click.",
"shareSnippet": "Share snippet",
"shareFolder": "Share folder",
"shareExpiry": "到期",
"shareExpiryOptions": {
"h0": "從未",
"h1": "In 1 hour",
"h24": "In 1 day",
"h168": "In 7 days",
"h720": "In 30 days"
},
"shareButton": "分享",
"shareSuccess": "Shared with {{count}}",
"shareFailed": "Failed to share",
"shareLoadFailed": "Failed to load sharing details",
"currentAccess": "目前存取權限",
"notSharedYet": "Not shared with anyone yet",
"revokeAccess": "撤銷",
"revokeSuccess": "已撤銷存取權限",
"revokeFailed": "撤銷存取失敗",
"close": "關閉",
"targetHostsLabel": "Target hosts",
"targetHostsHint": "Pick hosts to run this command on directly, without a terminal open. Leave empty to run it in the active terminal.",
"clearTargetHosts": "清除",
"noHostsAvailable": "暫無可用主機",
"searchHosts": "搜尋主機",
"runOnTargets": "Run on target hosts",
"executionResultTitle": "Results for \"{{name}}\"",
"executionResultDescription": "Output from each target host.",
"executionSuccess": "成功",
"executionFailed": "失敗",
"directRunSuccess": "已在 {{count}} 台主機上執行「{{name}}」",
"directRunPartialFail": "\"{{name}}\" failed on some hosts",
"reorderFailed": "Failed to reorder snippets",
"dropToRemoveFromFolder": "Drop here to move out of the folder",
"shareSnippetTitle": "Share \"{{name}}\"",
"shareFolderTitle": "Share folder \"{{name}}\"",
"shareWith": "分享對象",
"usersTab": "使用者",
"rolesTab": "角色",
"shareSearchPlaceholder": "搜尋使用者或角色",
"shareNoMatches": "No matches",
"shareWithCount": "Share with {{count}}",
"shareFolderHint": "Shares every snippet in this folder. Snippets added later are not shared automatically.",
"shareFolderSummary": "Shared {{count}} snippet(s) in this folder",
"grantedBy": "授予者",
"expired": "已過期",
"variablesDialogTitle": "Run \"{{name}}\"",
"variablesDialogDescription": "Fill in the values this snippet needs before running it.",
"variablesPreviewLabel": "預覽",
"variablesConfirmButton": "執行",
"keybindings": {
"runSnippet": "Run existing snippet",
"snippetLabel": "Snippet",
"selectSnippet": "Select a snippet",
"snippetMissing": "snippet not found",
"snippetRequired": "Select a snippet"
},
"paletteHintRun": "Run in the active terminal tab",
"host": {
"startupTitle": "啟動程式碼片段",
"quickActionsTitle": "快速操作",
"quickActionsDescription": "快速動作會以按鈕形式顯示在主機計量工具列上,可一鍵執行指令。",
"noQuickActions": "尚無快速動作。",
"buttonLabel": "按鈕標籤",
"selectSnippet": "選取程式碼片段...",
"addQuickAction": "新增動作",
"tabTitle": "指令片段",
"startupDescription": "Runs in the terminal each time it connects to this host. Variables like $HOST are filled in; a snippet that asks for inputs is skipped.",
"none": "取消全選",
"removeQuickAction": "Remove quick action"
},
"quickActions": {
"running": "正在執行 {{name}}...",
"succeeded": "{{name}} 已成功完成",
"failed": "{{name}} 失敗",
"error": "無法執行 {{name}}"
},
"paletteHintPaste": "Paste in the active terminal tab",
"targetTerminals": "Run in",
"targetTerminalsHint": "optional, else the active tab",
"selectAll": "全選",
"selectNone": "取消全選"
}
+154
View File
@@ -0,0 +1,154 @@
{
"id": "snippets",
"name": "Snippets",
"version": "1.0.0",
"description": "Save commands and notes, then run or paste them into a terminal. Supports variables and sharing.",
"author": {
"name": "Termix"
},
"license": "MIT",
"repository": "https://github.com/Termix-SSH/Termix",
"category": "Productivity",
"icon": "Play",
"engine": {
"termix": ">=2.9.0",
"api": "1"
},
"capabilities": [
"db:own",
"network:serve",
"ssh:connect",
"credentials:use",
"hosts:write",
"ui:surface",
"events:core",
"db:core-refs"
],
"provides": [
{
"service": "snippets.access",
"version": "1.0.0",
"permission": "snippets.view"
}
],
"locales": "locales",
"platforms": ["linux", "win32", "darwin"],
"contributes": {
"panels": [
{
"id": "snippets",
"titleKey": "nav.snippets",
"icon": "Play"
}
],
"permissions": [
{
"name": "view",
"titleKey": "permissions.view.title",
"descriptionKey": "permissions.view.description",
"defaultRoles": ["user"]
},
{
"name": "create",
"titleKey": "permissions.create.title",
"descriptionKey": "permissions.create.description",
"defaultRoles": ["user"]
},
{
"name": "edit",
"titleKey": "permissions.edit.title",
"descriptionKey": "permissions.edit.description",
"defaultRoles": ["user"]
},
{
"name": "delete",
"titleKey": "permissions.delete.title",
"descriptionKey": "permissions.delete.description",
"defaultRoles": ["user"]
},
{
"name": "share",
"titleKey": "permissions.share.title",
"descriptionKey": "permissions.share.description",
"defaultRoles": ["user"]
}
],
"settings": {
"user": [
{
"key": "foldersCollapsed",
"type": "boolean",
"labelKey": "settings.foldersCollapsed.label",
"descriptionKey": "settings.foldersCollapsed.description",
"default": true
},
{
"key": "showCommands",
"type": "boolean",
"labelKey": "settings.showCommands.label",
"descriptionKey": "settings.showCommands.description",
"default": true
},
{
"key": "confirmExecution",
"type": "boolean",
"labelKey": "settings.confirmExecution.label",
"descriptionKey": "settings.confirmExecution.description",
"default": false
}
],
"host": {
"editorGroup": "ssh",
"editorOrder": 15,
"fields": [
{
"key": "startupSnippetId",
"type": "number",
"labelKey": "host.startupTitle",
"descriptionKey": "host.startupDescription",
"hidden": true,
"min": 1,
"shareRead": "view",
"defaultLevels": ["user", "folder"]
},
{
"key": "quickActions",
"type": "json",
"labelKey": "host.quickActionsTitle",
"descriptionKey": "host.quickActionsDescription",
"hidden": true,
"default": [],
"shareRead": "view",
"defaultLevels": ["user", "folder"]
}
]
}
},
"syncEntities": ["snippetFolders", "snippets"],
"keybindingActions": [
{
"id": "runSnippet",
"params": {
"snippetId": {
"type": "string",
"pattern": "^[0-9]+$",
"maxLength": 20,
"syncEntity": "snippets"
},
"appendEnter": {
"type": "boolean"
}
}
}
],
"http": {
"adminImpersonation": true
},
"uses": [
"host-metrics.toolbar",
"terminal.sendToActive",
"terminal.sendToSession",
"terminal.listSessions"
]
}
}
@@ -0,0 +1,43 @@
-- snippets 0001: adopt_snippets_tables
-- Generated by termix-plugin migrations. Review before committing.
CREATE TABLE IF NOT EXISTS `snippets` (
`id` int AUTO_INCREMENT PRIMARY KEY,
`user_id` varchar(255) NOT NULL,
`name` text NOT NULL,
`content` text NOT NULL,
`description` text,
`folder` text,
`order` int NOT NULL DEFAULT 0,
`sync_id` varchar(255) UNIQUE,
`created_at` text NOT NULL DEFAULT (CURRENT_TIMESTAMP),
`updated_at` text NOT NULL DEFAULT (CURRENT_TIMESTAMP),
`host_filter` text,
`is_note` boolean NOT NULL DEFAULT false,
FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE
);
RENAME TABLE `snippets` TO `p_snippets_snippets`;
CREATE TABLE IF NOT EXISTS `snippet_folders` (
`id` int AUTO_INCREMENT PRIMARY KEY,
`user_id` varchar(255) NOT NULL,
`name` text NOT NULL,
`color` text,
`icon` text,
`sync_id` varchar(255) UNIQUE,
`created_at` text NOT NULL DEFAULT (CURRENT_TIMESTAMP),
`updated_at` text NOT NULL DEFAULT (CURRENT_TIMESTAMP),
FOREIGN KEY (`user_id`) REFERENCES `users` (`id`) ON DELETE CASCADE
);
RENAME TABLE `snippet_folders` TO `p_snippets_snippet_folders`;
CREATE TABLE IF NOT EXISTS `snippet_access` (
`id` int AUTO_INCREMENT PRIMARY KEY,
`snippet_id` int NOT NULL,
`user_id` varchar(255),
`role_id` int,
`granted_by` varchar(255) NOT NULL,
`permission_level` text NOT NULL DEFAULT ('view'),
`expires_at` text,
`created_at` text NOT NULL DEFAULT (CURRENT_TIMESTAMP),
FOREIGN KEY (`granted_by`) REFERENCES `users` (`id`) ON DELETE CASCADE
);
RENAME TABLE `snippet_access` TO `p_snippets_snippet_access`;
@@ -0,0 +1,47 @@
-- snippets 0001: adopt_snippets_tables
-- Generated by termix-plugin migrations. Review before committing.
CREATE TABLE IF NOT EXISTS "snippets" (
"id" serial PRIMARY KEY,
"user_id" varchar(255) NOT NULL,
"name" text NOT NULL,
"content" text NOT NULL,
"description" text,
"folder" text,
"order" integer NOT NULL DEFAULT 0,
"sync_id" varchar(255) UNIQUE,
"created_at" text NOT NULL DEFAULT CURRENT_TIMESTAMP,
"updated_at" text NOT NULL DEFAULT CURRENT_TIMESTAMP,
"host_filter" text,
"is_note" boolean NOT NULL DEFAULT false,
FOREIGN KEY ("user_id") REFERENCES "users" ("id") ON DELETE CASCADE
);
CREATE INDEX IF NOT EXISTS "idx_snippets_user_id" ON "snippets" ("user_id");
ALTER TABLE "snippets" RENAME TO "p_snippets_snippets";
CREATE TABLE IF NOT EXISTS "snippet_folders" (
"id" serial PRIMARY KEY,
"user_id" varchar(255) NOT NULL,
"name" text NOT NULL,
"color" text,
"icon" text,
"sync_id" varchar(255) UNIQUE,
"created_at" text NOT NULL DEFAULT CURRENT_TIMESTAMP,
"updated_at" text NOT NULL DEFAULT CURRENT_TIMESTAMP,
FOREIGN KEY ("user_id") REFERENCES "users" ("id") ON DELETE CASCADE
);
ALTER TABLE "snippet_folders" RENAME TO "p_snippets_snippet_folders";
CREATE TABLE IF NOT EXISTS "snippet_access" (
"id" serial PRIMARY KEY,
"snippet_id" integer NOT NULL,
"user_id" varchar(255),
"role_id" integer,
"granted_by" varchar(255) NOT NULL,
"permission_level" text NOT NULL DEFAULT 'view',
"expires_at" text,
"created_at" text NOT NULL DEFAULT CURRENT_TIMESTAMP,
FOREIGN KEY ("granted_by") REFERENCES "users" ("id") ON DELETE CASCADE
);
CREATE INDEX IF NOT EXISTS "idx_snippet_access_user_id" ON "snippet_access" ("user_id");
CREATE INDEX IF NOT EXISTS "idx_snippet_access_snippet_id" ON "snippet_access" ("snippet_id");
CREATE INDEX IF NOT EXISTS "idx_snippet_access_role_id" ON "snippet_access" ("role_id");
ALTER TABLE "snippet_access" RENAME TO "p_snippets_snippet_access";
+162
View File
@@ -0,0 +1,162 @@
{
"version": 1,
"tables": {
"snippets": {
"columns": {
"id": {
"type": "id",
"primaryKey": true,
"notNull": true
},
"userId": {
"type": "refUser",
"length": 255,
"notNull": true
},
"name": {
"type": "text",
"notNull": true
},
"content": {
"type": "text",
"notNull": true
},
"description": {
"type": "text"
},
"folder": {
"type": "text"
},
"order": {
"type": "integer",
"notNull": true,
"defaultValue": 0
},
"syncId": {
"type": "varchar",
"length": 255,
"unique": true
},
"createdAt": {
"type": "timestamp",
"notNull": true,
"defaultNow": true
},
"updatedAt": {
"type": "timestamp",
"notNull": true,
"defaultNow": true
},
"hostFilter": {
"type": "text"
},
"isNote": {
"type": "boolean",
"notNull": true,
"defaultValue": false
}
},
"indexes": [
{
"name": "idx_snippets_user_id",
"columns": ["userId"]
}
],
"adopts": "snippets"
},
"snippet_folders": {
"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"
},
"syncId": {
"type": "varchar",
"length": 255,
"unique": true
},
"createdAt": {
"type": "timestamp",
"notNull": true,
"defaultNow": true
},
"updatedAt": {
"type": "timestamp",
"notNull": true,
"defaultNow": true
}
},
"indexes": [],
"adopts": "snippet_folders"
},
"snippet_access": {
"columns": {
"id": {
"type": "id",
"primaryKey": true,
"notNull": true
},
"snippetId": {
"type": "integer",
"notNull": true
},
"userId": {
"type": "varchar",
"length": 255
},
"roleId": {
"type": "integer"
},
"grantedBy": {
"type": "refUser",
"length": 255,
"notNull": true
},
"permissionLevel": {
"type": "text",
"notNull": true,
"defaultValue": "view"
},
"expiresAt": {
"type": "timestamp"
},
"createdAt": {
"type": "timestamp",
"notNull": true,
"defaultNow": true
}
},
"indexes": [
{
"name": "idx_snippet_access_user_id",
"columns": ["userId"]
},
{
"name": "idx_snippet_access_snippet_id",
"columns": ["snippetId"]
},
{
"name": "idx_snippet_access_role_id",
"columns": ["roleId"]
}
],
"adopts": "snippet_access"
}
}
}
@@ -0,0 +1,47 @@
-- snippets 0001: adopt_snippets_tables
-- Generated by termix-plugin migrations. Review before committing.
CREATE TABLE IF NOT EXISTS "snippets" (
"id" integer PRIMARY KEY AUTOINCREMENT,
"user_id" text NOT NULL,
"name" text NOT NULL,
"content" text NOT NULL,
"description" text,
"folder" text,
"order" integer NOT NULL DEFAULT 0,
"sync_id" text UNIQUE,
"created_at" text NOT NULL DEFAULT CURRENT_TIMESTAMP,
"updated_at" text NOT NULL DEFAULT CURRENT_TIMESTAMP,
"host_filter" text,
"is_note" integer NOT NULL DEFAULT 0,
FOREIGN KEY ("user_id") REFERENCES "users" ("id") ON DELETE CASCADE
);
CREATE INDEX IF NOT EXISTS "idx_snippets_user_id" ON "snippets" ("user_id");
ALTER TABLE "snippets" RENAME TO "p_snippets_snippets";
CREATE TABLE IF NOT EXISTS "snippet_folders" (
"id" integer PRIMARY KEY AUTOINCREMENT,
"user_id" text NOT NULL,
"name" text NOT NULL,
"color" text,
"icon" text,
"sync_id" text UNIQUE,
"created_at" text NOT NULL DEFAULT CURRENT_TIMESTAMP,
"updated_at" text NOT NULL DEFAULT CURRENT_TIMESTAMP,
FOREIGN KEY ("user_id") REFERENCES "users" ("id") ON DELETE CASCADE
);
ALTER TABLE "snippet_folders" RENAME TO "p_snippets_snippet_folders";
CREATE TABLE IF NOT EXISTS "snippet_access" (
"id" integer PRIMARY KEY AUTOINCREMENT,
"snippet_id" integer NOT NULL,
"user_id" text,
"role_id" integer,
"granted_by" text NOT NULL,
"permission_level" text NOT NULL DEFAULT 'view',
"expires_at" text,
"created_at" text NOT NULL DEFAULT CURRENT_TIMESTAMP,
FOREIGN KEY ("granted_by") REFERENCES "users" ("id") ON DELETE CASCADE
);
CREATE INDEX IF NOT EXISTS "idx_snippet_access_user_id" ON "snippet_access" ("user_id");
CREATE INDEX IF NOT EXISTS "idx_snippet_access_snippet_id" ON "snippet_access" ("snippet_id");
CREATE INDEX IF NOT EXISTS "idx_snippet_access_role_id" ON "snippet_access" ("role_id");
ALTER TABLE "snippet_access" RENAME TO "p_snippets_snippet_access";
+34
View File
@@ -0,0 +1,34 @@
{
"name": "@termix-plugin/snippets",
"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",
"ssh2": "^1.17.0"
}
}
+32
View File
@@ -0,0 +1,32 @@
export interface SnippetExecutionResult {
success: boolean;
output: string;
error?: string;
}
export { resolveSnippetContent as resolveSnippetCommand } from "../shared/variables.js";
export type { SnippetHostContext as SnippetHostVars } from "../shared/variables.js";
export function getSnippetExecutionTimeoutMs(
value = process.env.SNIPPET_EXECUTION_TIMEOUT_SECONDS,
): number | undefined {
if (value === undefined || value.trim() === "") return undefined;
const seconds = Number(value);
if (!Number.isFinite(seconds) || seconds <= 0) return undefined;
return seconds * 1000;
}
export function createSnippetExecutionResult(
exitCode: number | null,
output: string,
errorOutput: string,
): SnippetExecutionResult {
const success = exitCode === 0 || (exitCode === null && !errorOutput);
return {
success,
output,
...(errorOutput ? { error: errorOutput } : {}),
};
}
+117
View File
@@ -0,0 +1,117 @@
import {
PLUGIN_ID,
readQuickActions,
readStartupSnippetId,
} from "../shared/host-settings.js";
/**
* Registered as "snippets.hostImportNormalizer": a 2.8 or early 2.9 export
* carried quick actions as a host field and the startup snippet inside
* terminalConfig. An export that already carries this plugin's
* pluginSettings has had them written by core.
*/
export function hostImportNormalizer(
raw: Record<string, unknown>,
): Record<string, unknown> | null {
const carried = (raw.pluginSettings as Record<string, unknown> | undefined)?.[
PLUGIN_ID
];
if (
carried &&
typeof carried === "object" &&
Object.keys(carried).length > 0
) {
return null;
}
const values: Record<string, unknown> = {};
const quickActions = readQuickActions(raw.quickActions);
if (quickActions.length > 0) values.quickActions = quickActions;
let terminalConfig = raw.terminalConfig;
if (typeof terminalConfig === "string") {
try {
terminalConfig = JSON.parse(terminalConfig);
} catch {
terminalConfig = null;
}
}
const startup = readStartupSnippetId(
(terminalConfig as { startupSnippetId?: unknown } | null)?.startupSnippetId,
);
if (startup !== null) values.startupSnippetId = startup;
return Object.keys(values).length > 0 ? values : null;
}
/**
* Registered as "snippets.hostPayloadLegacy": quickActions and
* terminalConfig.startupSnippetId in their 2.8 shape, for clients that
* still read them (Termix-Mobile). Remove once the mobile app reads
* pluginSettings.snippets.
*/
export function hostPayloadLegacy(
values: Record<string, unknown>,
): Record<string, unknown> {
const out: Record<string, unknown> = {
quickActions: readQuickActions(values.quickActions),
};
const startup = readStartupSnippetId(values.startupSnippetId);
if (startup !== null) out.terminalConfig = { startupSnippetId: startup };
return out;
}
/** What hostSettingsSync needs from the repository. */
export interface SnippetSyncLookup {
findSyncIdById: (id: number) => Promise<string | null>;
findIdBySyncId: (syncId: string) => Promise<number | null>;
}
/**
* Registered as "snippets.hostSettingsSync": both host settings hold local
* snippet ids, so remote sync carries the snippets' sync ids instead, which
* are the same on both sides.
*/
export function createHostSettingsSync(lookup: SnippetSyncLookup) {
const toSyncId = async (id: number) => lookup.findSyncIdById(id);
const toId = async (value: unknown) =>
typeof value === "string" && value ? lookup.findIdBySyncId(value) : null;
return {
exportValue: async (key: string, value: unknown) => {
if (key === "startupSnippetId") {
const id = readStartupSnippetId(value);
return id === null ? null : await toSyncId(id);
}
if (key === "quickActions") {
const actions = readQuickActions(value);
const out = [];
for (const action of actions) {
const syncId = await toSyncId(action.snippetId);
if (syncId) out.push({ name: action.name, snippetId: syncId });
}
return out;
}
return value;
},
importValue: async (key: string, value: unknown) => {
if (key === "startupSnippetId") return await toId(value);
if (key === "quickActions") {
if (!Array.isArray(value)) return [];
const out = [];
for (const entry of value) {
const row = (entry ?? {}) as { name?: unknown; snippetId?: unknown };
const id = await toId(row.snippetId);
if (id !== null) {
out.push({
name: typeof row.name === "string" ? row.name : "",
snippetId: id,
});
}
}
return out;
}
return value;
},
};
}
+191
View File
@@ -0,0 +1,191 @@
import type { Router } from "express";
import type { PluginContext } from "@termix/plugin-sdk/backend";
import { snippetAccess, snippetFolders, snippets } from "./tables.js";
import { createSnippetRepository } from "./repository.js";
import { registerSnippetRoutes } from "./routes.js";
import {
extractSnippetInputs,
resolveSnippetContent,
} from "../shared/variables.js";
import {
createHostSettingsSync,
hostImportNormalizer,
hostPayloadLegacy,
} from "./host-import.js";
/** What other plugins get from ctx.services.get("snippets.access", {userId}). */
export interface SnippetsService {
/** The calling user's own snippets (not shared ones), full content included. */
list: () => Promise<
Array<{
id: number;
name: string;
content: string;
description: string | null;
isNote: boolean;
folder: string | null;
}>
>;
/** A snippet the calling user owns or was shared with them. */
get: (id: number) => Promise<{
id: number;
name: string;
content: string;
isNote: boolean;
} | null>;
resolveCommand: (
id: number,
vars: { ip?: string; username?: string; port?: number; name?: string },
inputValues?: Record<string, string>,
) => Promise<string | null>;
/** Creates a snippet owned by the calling user. */
create: (input: {
name: string;
content: string;
description?: string | null;
folder?: string | null;
}) => Promise<{ id: number; name: string }>;
/** Updates a snippet the calling user owns. Throws if not found. */
update: (
id: number,
changes: {
name?: string;
content?: string;
description?: string | null;
folder?: string | null;
},
) => Promise<void>;
/** Deletes a snippet the calling user owns. Returns whether one was deleted. */
remove: (id: number) => Promise<boolean>;
}
export async function activate(ctx: PluginContext) {
const snippetsTable = await ctx.db.define(snippets);
const foldersTable = await ctx.db.define(snippetFolders);
const accessTable = await ctx.db.define(snippetAccess);
const repo = createSnippetRepository(
ctx.db,
snippetsTable,
foldersTable,
accessTable,
);
registerSnippetRoutes(ctx.http.router<Router>(), repo, ctx);
ctx.sync.registerEntity({
type: "snippetFolders",
table: foldersTable,
order: 40,
});
ctx.sync.registerEntity({
type: "snippets",
table: snippetsTable,
order: 60,
});
// Host settings that name a snippet by its local id, and the 2.8 host
// fields they came from. Keybindings name one through the runSnippet
// declaration in the manifest, which core translates over sync.
ctx.registry.provide("snippets.hostImportNormalizer", hostImportNormalizer);
ctx.registry.provide("snippets.hostPayloadLegacy", hostPayloadLegacy);
ctx.registry.provide(
"snippets.hostSettingsSync",
createHostSettingsSync(repo),
);
// $HOST and $INPUT_n handling for commands other plugins run (fleets). A
// pure function, so it goes through the registry rather than a service
// gated on snippets.view.
ctx.registry.provide("snippets.variables", {
resolve: resolveSnippetContent,
extractInputs: extractSnippetInputs,
});
// The user row survives a password-reset data wipe, so it never triggers
// our refUser() cascade; this topic is core's way of telling us to drop
// our copy of that user's data too.
ctx.events.on("user.data_wiped", (payload) => {
const userId = (payload as { userId?: string } | null)?.userId;
if (userId) void repo.deleteByUserId(userId);
});
async function findAccessible(userId: string, id: number) {
const owned = await repo.findOwnedById(userId, id);
if (owned) return owned;
const roleIds = await repo.listUserRoleIds(userId);
return repo.findAccessibleSharedSnippet(id, userId, roleIds);
}
// The service is gated on snippets.view; a write also needs the same
// permission its route requires, so a caller cannot write through here
// what the user could not write in the panel.
async function requirePermission(permission: string): Promise<void> {
if (!(await ctx.rbac.has(permission))) {
throw new Error(`Missing permission snippets.${permission}`);
}
}
const service: SnippetsService = {
list: async () => {
const userId = ctx.currentActor();
if (!userId) return [];
const owned = await repo.listOwnedSnippets(userId);
return owned.map((s) => ({
id: s.id,
name: s.name,
content: s.content,
description: s.description,
isNote: s.isNote,
folder: s.folder,
}));
},
get: async (id) => {
const userId = ctx.currentActor();
if (!userId) return null;
const snippet = await findAccessible(userId, id);
if (!snippet) return null;
return {
id: snippet.id,
name: snippet.name,
content: snippet.content,
isNote: snippet.isNote,
};
},
resolveCommand: async (id, vars, inputValues = {}) => {
const userId = ctx.currentActor();
if (!userId) return null;
const snippet = await findAccessible(userId, id);
if (!snippet) return null;
return resolveSnippetContent(snippet.content, vars, inputValues);
},
create: async (input) => {
const userId = ctx.currentActor();
if (!userId) throw new Error("snippets.access.create needs an actor");
await requirePermission("create");
const created = await repo.createSnippet(userId, input);
return { id: created.id, name: created.name };
},
update: async (id, changes) => {
const userId = ctx.currentActor();
if (!userId) throw new Error("snippets.access.update needs an actor");
await requirePermission("edit");
const result = await repo.updateSnippet(userId, id, changes);
if (!result) throw new Error("Snippet not found");
},
remove: async (id) => {
const userId = ctx.currentActor();
if (!userId) throw new Error("snippets.access.remove needs an actor");
await requirePermission("delete");
const existing = await repo.deleteSnippet(userId, id);
return !!existing;
},
};
ctx.services.provide("snippets.access", service);
ctx.log.info("Snippets routes mounted at /plugin-api/snippets");
}
export async function deactivate() {
// Everything above was registered through ctx and is disposed by core.
}
+29
View File
@@ -0,0 +1,29 @@
import type { SnippetReorderUpdate } from "./repository.js";
type SnippetReorderRequestBody = {
snippets?: unknown;
updates?: unknown;
};
export function extractSnippetReorderUpdates(
body: unknown,
): SnippetReorderUpdate[] | null {
if (!body || typeof body !== "object") {
return null;
}
const payload = body as SnippetReorderRequestBody;
// Keep accepting the legacy `updates` key so older clients do not break
// while the web and desktop helpers converge on `snippets`.
const snippetsUpdates = Array.isArray(payload.snippets)
? payload.snippets
: Array.isArray(payload.updates)
? payload.updates
: null;
if (!snippetsUpdates) {
return null;
}
return snippetsUpdates as SnippetReorderUpdate[];
}
+917
View File
@@ -0,0 +1,917 @@
import { randomUUID } from "node:crypto";
import {
and,
asc,
desc,
eq,
gte,
inArray,
isNull,
like,
or,
sql,
} from "drizzle-orm";
import type { PluginDatabase } from "@termix/plugin-sdk/backend";
export interface SnippetRecord {
id: number;
userId: string;
name: string;
content: string;
description: string | null;
folder: string | null;
order: number;
syncId: string | null;
createdAt: string;
updatedAt: string;
hostFilter: string | null;
isNote: boolean;
}
export interface SnippetFolderRecord {
id: number;
userId: string;
name: string;
color: string | null;
icon: string | null;
syncId: string | null;
createdAt: string;
updatedAt: string;
}
export interface RenameSnippetFolderResult {
status: "renamed" | "missing" | "conflict";
}
export interface SnippetReorderUpdate {
id: number;
order: number;
folder?: string;
}
export interface NewSnippetInput {
name: string;
content: string;
description?: string | null;
folder?: string | null;
order?: number | null;
hostFilter?: unknown;
isNote?: boolean;
}
export interface SnippetUpdateInput {
name?: string;
content?: string;
description?: string | null;
folder?: string | null;
order?: number;
hostFilter?: unknown;
isNote?: boolean;
}
export interface UpdateSnippetResult {
existing: SnippetRecord;
updated: SnippetRecord;
}
export interface SnippetBulkImportResult {
snippetsImported: number;
snippetsSkipped: number;
snippetsUpdated: number;
foldersImported: number;
foldersSkipped: number;
failed: number;
errors: string[];
}
interface BulkImportSnippetInput {
name?: unknown;
content?: unknown;
description?: string | null;
folder?: string | null;
order?: unknown;
hostFilter?: string | null;
}
interface BulkImportFolderInput {
name?: unknown;
color?: string | null;
icon?: string | null;
}
export interface RbacAccessListItem {
id: number;
targetType: "user" | "role";
userId: string | null;
roleId: number | null;
username: string | null;
roleName: string | null;
roleDisplayName: string | null;
grantedBy: string;
grantedByUsername: string | null;
permissionLevel: string;
expiresAt: string | null;
createdAt: string;
}
export type SnippetAccessTarget =
| { targetType: "user"; targetUserId: string }
| { targetType: "role"; targetRoleId: number };
export type UpsertSnippetAccessInput = SnippetAccessTarget & {
snippetId: number;
grantedBy: string;
expiresAt: string | null;
};
export interface RbacSharedSnippet {
id: number;
name: string;
content: string;
description: string | null;
folder: string | null;
ownerUsername: string;
permissionLevel: string;
expiresAt: string | null;
}
export interface RbacVisibleSharedSnippet extends RbacSharedSnippet {
userId: string;
order: number;
createdAt: string;
updatedAt: string;
isNote: boolean;
}
export interface RbacAccessibleSnippet extends RbacVisibleSharedSnippet {
hostFilter: string | null;
}
/* eslint-disable @typescript-eslint/no-explicit-any */
// The tables come from ctx.db.define/ctx.db.refs, 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 */
function isNonEmptyString(value: unknown): value is string {
return typeof value === "string" && value.trim().length > 0;
}
function toAccessListItem(
row: Omit<RbacAccessListItem, "targetType">,
): RbacAccessListItem {
return { ...row, targetType: row.userId ? "user" : "role" };
}
export type SnippetRepository = ReturnType<typeof createSnippetRepository>;
/**
* Snippet, folder and sharing storage. Written without RETURNING so it runs
* the same on all three engines: an insert or update is read back by id/sync
* id rather than relying on `.returning()`.
*/
export function createSnippetRepository(
db: PluginDatabase,
snippets: Table,
folders: Table,
access: Table,
) {
const client = () => db.client<Drizzle>();
const refs = () =>
db.refs<{ users: Table; roles: Table; userRoles: Table }>();
async function findOwnedById(
userId: string,
snippetId: number,
): Promise<SnippetRecord | null> {
const drizzle = await client();
const rows = await drizzle
.select()
.from(snippets)
.where(and(eq(snippets.id, snippetId), eq(snippets.userId, userId)))
.limit(1);
return rows[0] ?? null;
}
async function findFolderByName(
userId: string,
name: string,
): Promise<SnippetFolderRecord | null> {
const drizzle = await client();
const rows = await drizzle
.select()
.from(folders)
.where(and(eq(folders.userId, userId), eq(folders.name, name)))
.limit(1);
return rows[0] ?? null;
}
async function maxOrderForFolder(
userId: string,
folder: string | null,
): Promise<number> {
const drizzle = await client();
const result = await drizzle
.select({ maxOrder: sql<number>`MAX(${snippets.order})` })
.from(snippets)
.where(
and(
eq(snippets.userId, userId),
folder
? eq(snippets.folder, folder)
: sql`(${snippets.folder} IS NULL OR ${snippets.folder} = '')`,
),
);
return result[0]?.maxOrder ?? -1;
}
async function nextOrderForFolder(
userId: string,
folder: string,
): Promise<number> {
return (await maxOrderForFolder(userId, folder || null)) + 1;
}
async function findByNameAndFolder(
userId: string,
name: string,
folder: string | null,
): Promise<SnippetRecord | null> {
const drizzle = await client();
const rows = await drizzle
.select()
.from(snippets)
.where(
and(
eq(snippets.userId, userId),
eq(snippets.name, name),
folder
? eq(snippets.folder, folder)
: sql`(${snippets.folder} IS NULL OR ${snippets.folder} = '')`,
),
)
.limit(1);
return rows[0] ?? null;
}
function userOrRoleAccessFilter(userId: string, roleIds: number[]) {
if (roleIds.length === 0) return eq(access.userId, userId);
return or(eq(access.userId, userId), inArray(access.roleId, roleIds));
}
async function findSnippetAccess(
snippetId: number,
target: SnippetAccessTarget,
) {
const drizzle = await client();
const rows = await drizzle
.select()
.from(access)
.where(
and(
eq(access.snippetId, snippetId),
target.targetType === "user"
? eq(access.userId, target.targetUserId)
: eq(access.roleId, target.targetRoleId),
),
)
.limit(1);
return rows[0] ?? null;
}
return {
findOwnedById,
async listFolders(userId: string): Promise<SnippetFolderRecord[]> {
const drizzle = await client();
return drizzle
.select()
.from(folders)
.where(eq(folders.userId, userId))
.orderBy(asc(folders.name));
},
async listSnippetsForExport(userId: string): Promise<SnippetRecord[]> {
const drizzle = await client();
return drizzle
.select()
.from(snippets)
.where(eq(snippets.userId, userId))
.orderBy(sql`coalesce(${snippets.folder}, '')`, asc(snippets.order));
},
async listFoldersForExport(userId: string): Promise<SnippetFolderRecord[]> {
const drizzle = await client();
return drizzle
.select()
.from(folders)
.where(eq(folders.userId, userId))
.orderBy(asc(folders.name));
},
async listOwnedSnippetsInFolder(
userId: string,
folder: string,
): Promise<SnippetRecord[]> {
const drizzle = await client();
return drizzle
.select()
.from(snippets)
.where(
and(
eq(snippets.userId, userId),
or(
eq(snippets.folder, folder),
like(snippets.folder, `${folder} / %`),
),
),
);
},
async listOwnedSnippets(userId: string): Promise<SnippetRecord[]> {
const drizzle = await client();
return drizzle
.select()
.from(snippets)
.where(eq(snippets.userId, userId))
.orderBy(
sql`CASE WHEN ${snippets.folder} IS NULL OR ${snippets.folder} = '' THEN 0 ELSE 1 END`,
asc(snippets.folder),
asc(snippets.order),
sql`${snippets.updatedAt} DESC`,
);
},
async reorderSnippets(
userId: string,
updates: SnippetReorderUpdate[],
): Promise<void> {
const drizzle = await client();
for (const update of updates) {
const { id, order, folder } = update;
if (!id || order === undefined) continue;
const updateFields: Partial<{ order: number; folder: string | null }> =
{
order,
};
if (folder !== undefined) updateFields.folder = folder?.trim() || null;
await drizzle
.update(snippets)
.set(updateFields)
.where(and(eq(snippets.id, id), eq(snippets.userId, userId)));
}
await db.persist();
},
async createSnippet(
userId: string,
input: NewSnippetInput,
): Promise<SnippetRecord> {
const folderValue = input.folder?.trim() || "";
const order =
input.order === undefined || input.order === null
? await nextOrderForFolder(userId, folderValue)
: input.order;
const syncId = randomUUID();
const drizzle = await client();
await drizzle.insert(snippets).values({
syncId,
userId,
name: input.name.trim(),
content: input.content.trim(),
description: input.description?.trim() || null,
folder: input.folder?.trim() || null,
order,
hostFilter: input.hostFilter ? JSON.stringify(input.hostFilter) : null,
isNote: input.isNote ?? false,
});
await db.persist();
const rows = await drizzle
.select()
.from(snippets)
.where(eq(snippets.syncId, syncId))
.limit(1);
return rows[0];
},
async updateSnippet(
userId: string,
snippetId: number,
input: SnippetUpdateInput,
): Promise<UpdateSnippetResult | null> {
const existing = await findOwnedById(userId, snippetId);
if (!existing) return null;
const updateFields: Record<string, unknown> = {
updatedAt: sql`CURRENT_TIMESTAMP`,
};
if (input.name !== undefined) updateFields.name = input.name.trim();
if (input.content !== undefined)
updateFields.content = input.content.trim();
if (input.description !== undefined)
updateFields.description = input.description?.trim() || null;
if (input.folder !== undefined)
updateFields.folder = input.folder?.trim() || null;
if (input.order !== undefined) updateFields.order = input.order;
if (input.hostFilter !== undefined)
updateFields.hostFilter = input.hostFilter
? JSON.stringify(input.hostFilter)
: null;
if (input.isNote !== undefined) updateFields.isNote = input.isNote;
const drizzle = await client();
await drizzle
.update(snippets)
.set(updateFields)
.where(and(eq(snippets.id, snippetId), eq(snippets.userId, userId)));
await db.persist();
const updated = await findOwnedById(userId, snippetId);
return { existing, updated: updated as SnippetRecord };
},
async deleteSnippet(
userId: string,
snippetId: number,
): Promise<SnippetRecord | null> {
const existing = await findOwnedById(userId, snippetId);
if (!existing) return null;
const drizzle = await client();
await drizzle
.delete(snippets)
.where(and(eq(snippets.id, snippetId), eq(snippets.userId, userId)));
await db.persist();
return existing;
},
async bulkImport(
userId: string,
snippetsToImport: unknown[] | undefined,
foldersToImport: unknown[] | undefined,
overwrite: boolean,
): Promise<SnippetBulkImportResult> {
const results: SnippetBulkImportResult = {
snippetsImported: 0,
snippetsSkipped: 0,
snippetsUpdated: 0,
foldersImported: 0,
foldersSkipped: 0,
failed: 0,
errors: [],
};
const drizzle = await client();
let changed = false;
if (Array.isArray(foldersToImport)) {
for (const rawFolder of foldersToImport) {
const folder = rawFolder as BulkImportFolderInput;
if (!isNonEmptyString(folder.name)) {
results.failed++;
results.errors.push(`Folder missing name`);
continue;
}
const existing = await findFolderByName(userId, folder.name);
if (existing) {
results.foldersSkipped++;
continue;
}
await drizzle.insert(folders).values({
syncId: randomUUID(),
userId,
name: folder.name.trim(),
color: folder.color?.trim() || null,
icon: folder.icon?.trim() || null,
});
changed = true;
results.foldersImported++;
}
}
if (Array.isArray(snippetsToImport)) {
for (let i = 0; i < snippetsToImport.length; i++) {
const snippet = snippetsToImport[i] as BulkImportSnippetInput;
if (
!isNonEmptyString(snippet.name) ||
!isNonEmptyString(snippet.content)
) {
results.failed++;
results.errors.push(
`Snippet ${i + 1}: name and content are required`,
);
continue;
}
const folderVal = snippet.folder?.trim() || null;
const existing = await findByNameAndFolder(
userId,
snippet.name.trim(),
folderVal,
);
if (existing) {
if (!overwrite) {
results.snippetsSkipped++;
continue;
}
await drizzle
.update(snippets)
.set({
content: snippet.content.trim(),
description: snippet.description?.trim() || null,
folder: folderVal,
order:
typeof snippet.order === "number"
? snippet.order
: existing.order,
hostFilter: snippet.hostFilter || null,
updatedAt: sql`CURRENT_TIMESTAMP`,
})
.where(
and(eq(snippets.id, existing.id), eq(snippets.userId, userId)),
);
changed = true;
results.snippetsUpdated++;
continue;
}
const maxOrder = await maxOrderForFolder(userId, folderVal);
await drizzle.insert(snippets).values({
syncId: randomUUID(),
userId,
name: snippet.name.trim(),
content: snippet.content.trim(),
description: snippet.description?.trim() || null,
folder: folderVal,
order:
typeof snippet.order === "number" ? snippet.order : maxOrder + 1,
hostFilter: snippet.hostFilter || null,
});
changed = true;
results.snippetsImported++;
}
}
if (changed) await db.persist();
return results;
},
async createFolder(
userId: string,
name: string,
color: string | null | undefined,
icon: string | null | undefined,
): Promise<SnippetFolderRecord | null> {
const existing = await findFolderByName(userId, name);
if (existing) return null;
const syncId = randomUUID();
const drizzle = await client();
await drizzle.insert(folders).values({
syncId,
userId,
name: name.trim(),
color: color?.trim() || null,
icon: icon?.trim() || null,
});
await db.persist();
const rows = await drizzle
.select()
.from(folders)
.where(eq(folders.syncId, syncId))
.limit(1);
return rows[0] ?? null;
},
async updateFolderMetadata(
userId: string,
name: string,
color: string | null | undefined,
icon: string | null | undefined,
): Promise<SnippetFolderRecord | null> {
const existing = await findFolderByName(userId, name);
if (!existing) return null;
const updateFields: Record<string, unknown> = {
updatedAt: sql`CURRENT_TIMESTAMP`,
};
if (color !== undefined) updateFields.color = color?.trim() || null;
if (icon !== undefined) updateFields.icon = icon?.trim() || null;
const drizzle = await client();
await drizzle
.update(folders)
.set(updateFields)
.where(and(eq(folders.userId, userId), eq(folders.name, name)));
await db.persist();
return findFolderByName(userId, name);
},
async renameFolder(
userId: string,
oldName: string,
newName: string,
): Promise<RenameSnippetFolderResult> {
const existing = await findFolderByName(userId, oldName);
if (!existing) return { status: "missing" };
const nameExists = await findFolderByName(userId, newName);
if (nameExists) return { status: "conflict" };
const drizzle = await client();
await drizzle
.update(folders)
.set({ name: newName, updatedAt: sql`CURRENT_TIMESTAMP` })
.where(and(eq(folders.userId, userId), eq(folders.name, oldName)));
await drizzle
.update(snippets)
.set({ folder: newName })
.where(and(eq(snippets.userId, userId), eq(snippets.folder, oldName)));
await db.persist();
return { status: "renamed" };
},
async deleteFolder(
userId: string,
name: string,
): Promise<{ syncId: string | null } | null> {
const drizzle = await client();
await drizzle
.update(snippets)
.set({ folder: null })
.where(and(eq(snippets.userId, userId), eq(snippets.folder, name)));
const existing = await findFolderByName(userId, name);
if (!existing) {
await db.persist();
return null;
}
await drizzle
.delete(folders)
.where(and(eq(folders.userId, userId), eq(folders.name, name)));
await db.persist();
return { syncId: existing.syncId };
},
/** Wipes a user's snippets and folders, for the password-reset data-wipe flow. */
async deleteByUserId(userId: string): Promise<void> {
const drizzle = await client();
await drizzle.delete(snippets).where(eq(snippets.userId, userId));
await drizzle.delete(folders).where(eq(folders.userId, userId));
await db.persist();
},
// Sharing (moved from core's RbacAccessRepository)
async listSnippetAccess(snippetId: number): Promise<RbacAccessListItem[]> {
const drizzle = await client();
const { users, roles } = await refs();
const rows = await drizzle
.select({
id: access.id,
userId: access.userId,
roleId: access.roleId,
username: users.username,
roleName: roles.name,
roleDisplayName: roles.displayName,
grantedBy: access.grantedBy,
grantedByUsername: sql<
string | null
>`(SELECT username FROM users WHERE id = ${access.grantedBy})`,
permissionLevel: access.permissionLevel,
expiresAt: access.expiresAt,
createdAt: access.createdAt,
})
.from(access)
.leftJoin(users, eq(access.userId, users.id))
.leftJoin(roles, eq(access.roleId, roles.id))
.where(eq(access.snippetId, snippetId))
.orderBy(desc(access.createdAt));
return rows.map(toAccessListItem);
},
async upsertSnippetAccess(
input: UpsertSnippetAccessInput,
): Promise<{ id: number; created: boolean }> {
const existing = await findSnippetAccess(input.snippetId, input);
const drizzle = await client();
if (existing) {
await drizzle
.update(access)
.set({ expiresAt: input.expiresAt })
.where(eq(access.id, existing.id));
await db.persist();
return { id: existing.id, created: false };
}
const now = new Date().toISOString();
await drizzle.insert(access).values({
snippetId: input.snippetId,
userId: input.targetType === "user" ? input.targetUserId : null,
roleId: input.targetType === "role" ? input.targetRoleId : null,
grantedBy: input.grantedBy,
permissionLevel: "view",
expiresAt: input.expiresAt,
createdAt: now,
});
await db.persist();
const created = await findSnippetAccess(input.snippetId, input);
return { id: created!.id, created: true };
},
async revokeSnippetAccess(
accessId: number,
snippetId: number,
): Promise<void> {
const drizzle = await client();
await drizzle
.delete(access)
.where(and(eq(access.id, accessId), eq(access.snippetId, snippetId)));
await db.persist();
},
async listSharedSnippets(
userId: string,
roleIds: number[],
now = new Date().toISOString(),
): Promise<RbacSharedSnippet[]> {
const drizzle = await client();
const { users } = await refs();
const directShared = await drizzle
.select({
id: snippets.id,
name: snippets.name,
content: snippets.content,
description: snippets.description,
folder: snippets.folder,
ownerUsername: users.username,
permissionLevel: access.permissionLevel,
expiresAt: access.expiresAt,
})
.from(access)
.innerJoin(snippets, eq(access.snippetId, snippets.id))
.innerJoin(users, eq(snippets.userId, users.id))
.where(
and(
eq(access.userId, userId),
or(isNull(access.expiresAt), gte(access.expiresAt, now)),
),
);
if (roleIds.length === 0) return directShared;
const directIds = new Set(directShared.map((s: { id: number }) => s.id));
const roleShared = await drizzle
.select({
id: snippets.id,
name: snippets.name,
content: snippets.content,
description: snippets.description,
folder: snippets.folder,
ownerUsername: users.username,
permissionLevel: access.permissionLevel,
expiresAt: access.expiresAt,
})
.from(access)
.innerJoin(snippets, eq(access.snippetId, snippets.id))
.innerJoin(users, eq(snippets.userId, users.id))
.where(
and(
or(isNull(access.expiresAt), gte(access.expiresAt, now)),
inArray(access.roleId, roleIds),
),
);
return [
...directShared,
...roleShared.filter((s: { id: number }) => !directIds.has(s.id)),
];
},
async listVisibleSharedSnippets(
userId: string,
roleIds: number[],
now = new Date().toISOString(),
): Promise<RbacVisibleSharedSnippet[]> {
const drizzle = await client();
const { users } = await refs();
return drizzle
.select({
id: snippets.id,
userId: snippets.userId,
name: snippets.name,
content: snippets.content,
description: snippets.description,
folder: snippets.folder,
order: snippets.order,
createdAt: snippets.createdAt,
updatedAt: snippets.updatedAt,
isNote: snippets.isNote,
ownerUsername: users.username,
permissionLevel: access.permissionLevel,
expiresAt: access.expiresAt,
})
.from(access)
.innerJoin(snippets, eq(access.snippetId, snippets.id))
.innerJoin(users, eq(snippets.userId, users.id))
.where(
and(
userOrRoleAccessFilter(userId, roleIds),
or(isNull(access.expiresAt), gte(access.expiresAt, now)),
),
);
},
async findAccessibleSharedSnippet(
snippetId: number,
userId: string,
roleIds: number[],
now = new Date().toISOString(),
): Promise<RbacAccessibleSnippet | null> {
const drizzle = await client();
const { users } = await refs();
const rows = await drizzle
.select({
id: snippets.id,
userId: snippets.userId,
name: snippets.name,
content: snippets.content,
description: snippets.description,
folder: snippets.folder,
order: snippets.order,
createdAt: snippets.createdAt,
updatedAt: snippets.updatedAt,
hostFilter: snippets.hostFilter,
isNote: snippets.isNote,
ownerUsername: users.username,
permissionLevel: access.permissionLevel,
expiresAt: access.expiresAt,
})
.from(access)
.innerJoin(snippets, eq(access.snippetId, snippets.id))
.innerJoin(users, eq(snippets.userId, users.id))
.where(
and(
eq(access.snippetId, snippetId),
userOrRoleAccessFilter(userId, roleIds),
or(isNull(access.expiresAt), gte(access.expiresAt, now)),
),
)
.limit(1);
return rows[0] ?? null;
},
/** A snippet's sync id, for a host setting that names it over sync. */
async findSyncIdById(snippetId: number): Promise<string | null> {
const drizzle = await client();
const rows = await drizzle
.select({ syncId: snippets.syncId })
.from(snippets)
.where(eq(snippets.id, snippetId))
.limit(1);
return (rows[0]?.syncId as string | null | undefined) ?? null;
},
async findIdBySyncId(syncId: string): Promise<number | null> {
const drizzle = await client();
const rows = await drizzle
.select({ id: snippets.id })
.from(snippets)
.where(eq(snippets.syncId, syncId))
.limit(1);
return (rows[0]?.id as number | undefined) ?? null;
},
/** A user's role ids, for the sharing filters above. */
async listUserRoleIds(userId: string): Promise<number[]> {
const drizzle = await client();
const { userRoles } = await refs();
const rows = await drizzle
.select({ roleId: userRoles.roleId })
.from(userRoles)
.where(eq(userRoles.userId, userId));
return rows.map((r: { roleId: number }) => r.roleId);
},
};
}
File diff suppressed because it is too large. Load diff
+73
View File
@@ -0,0 +1,73 @@
import {
adoptLegacyTable,
boolean,
defineTable,
id,
integer,
refUser,
text,
timestamp,
varchar,
} from "@termix/plugin-sdk/db";
export const snippets = adoptLegacyTable(
"snippets",
defineTable(
"snippets",
{
id: id(),
userId: refUser(),
name: text().notNull(),
content: text().notNull(),
description: text(),
folder: text(),
order: integer().notNull().default(0),
syncId: varchar().unique(),
createdAt: timestamp().notNull().defaultNow(),
updatedAt: timestamp().notNull().defaultNow(),
hostFilter: text(),
isNote: boolean().notNull().default(false),
},
{ indexes: [{ name: "idx_snippets_user_id", columns: ["userId"] }] },
),
);
export const snippetFolders = adoptLegacyTable(
"snippet_folders",
defineTable("snippet_folders", {
id: id(),
userId: refUser(),
name: text().notNull(),
color: text(),
icon: text(),
syncId: varchar().unique(),
createdAt: timestamp().notNull().defaultNow(),
updatedAt: timestamp().notNull().defaultNow(),
}),
);
export const snippetAccess = adoptLegacyTable(
"snippet_access",
defineTable(
"snippet_access",
{
id: id(),
snippetId: integer().notNull(),
userId: varchar(),
roleId: integer(),
grantedBy: refUser(),
permissionLevel: text().notNull().default("view"),
expiresAt: timestamp(),
createdAt: timestamp().notNull().defaultNow(),
},
{
indexes: [
{ name: "idx_snippet_access_user_id", columns: ["userId"] },
{ name: "idx_snippet_access_snippet_id", columns: ["snippetId"] },
{ name: "idx_snippet_access_role_id", columns: ["roleId"] },
],
},
),
);
export const tables = [snippets, snippetFolders, snippetAccess];
@@ -0,0 +1,237 @@
import { useCallback, useEffect, useState } from "react";
import { Pencil, Plus, RefreshCw, Trash2 } from "lucide-react";
import { toast } from "sonner";
import {
usePluginApi,
useTranslation,
type PluginApiClient,
} from "@termix/plugin-sdk/frontend";
import { Button, Input, useConfirmation } from "@termix/plugin-sdk/ui";
// Core's admin routes act on another user's data when this header names them.
export const ADMIN_TARGET_USER_HEADER = "X-Admin-Target-User";
export function adminOptions(targetUserId: string) {
return { headers: { [ADMIN_TARGET_USER_HEADER]: targetUserId } };
}
interface ManagedSnippet {
id: number;
name: string;
content: string;
folder?: string | null;
}
export function mapSnippets(res: unknown): ManagedSnippet[] {
const list = Array.isArray(res)
? res
: ((res as { snippets?: unknown[] })?.snippets ?? []);
return (list as Record<string, unknown>[]).map((s) => ({
id: Number(s.id),
name: String(s.name ?? ""),
content: String(s.content ?? ""),
folder: (s.folder as string | null) ?? null,
}));
}
function errorMessage(error: unknown, fallback: string): string {
return (
(error as { response?: { data?: { error?: string } } })?.response?.data
?.error || fallback
);
}
async function load(api: PluginApiClient, userId: string) {
return mapSnippets((await api.get("/", adminOptions(userId))).data);
}
/** The Snippets tab of the admin "manage user" panel. */
export function AdminUserSnippets({
user,
}: {
user: { id: string; username: string };
}) {
const { t } = useTranslation();
const api = usePluginApi();
const { confirmWithToast } = useConfirmation();
const [snippets, setSnippets] = useState<ManagedSnippet[]>([]);
const [loading, setLoading] = useState(true);
const [editing, setEditing] = useState<ManagedSnippet | "new" | null>(null);
const [form, setForm] = useState({ name: "", content: "", folder: "" });
const [saving, setSaving] = useState(false);
const reload = useCallback(() => {
setLoading(true);
load(api, user.id)
.then(setSnippets)
.catch(() => {})
.finally(() => setLoading(false));
}, [api, user.id]);
useEffect(() => {
reload();
}, [reload]);
async function save() {
if (!form.name.trim() || !form.content.trim()) {
toast.error(t("admin.requiredFields"));
return;
}
setSaving(true);
try {
const payload = {
name: form.name.trim(),
content: form.content,
folder: form.folder.trim() || null,
};
if (editing && editing !== "new") {
await api.put(`/${editing.id}`, payload, adminOptions(user.id));
} else {
await api.post("/", payload, adminOptions(user.id));
}
setEditing(null);
reload();
toast.success(t("admin.saved"));
} catch (error) {
toast.error(errorMessage(error, t("admin.saveFailed")));
} finally {
setSaving(false);
}
}
function remove(snippet: ManagedSnippet) {
confirmWithToast(
t("admin.deleteConfirm", { name: snippet.name, username: user.username }),
async () => {
try {
await api.delete(`/${snippet.id}`, adminOptions(user.id));
setSnippets((prev) => prev.filter((s) => s.id !== snippet.id));
toast.success(t("admin.deleted"));
} catch (error) {
toast.error(errorMessage(error, t("admin.deleteFailed")));
}
},
);
}
return (
<div className="flex flex-col">
<div className="flex items-center justify-between py-2 border-b border-border">
<span className="text-[10px] text-muted-foreground">
{t("admin.count", { count: snippets.length })}
</span>
<div className="flex items-center gap-1">
<Button
variant="ghost"
size="icon"
className="size-6 text-muted-foreground hover:text-foreground"
onClick={reload}
>
<RefreshCw className="size-3" />
</Button>
<Button
variant="outline"
size="sm"
className="h-6 text-[10px] border-accent-brand/40 text-accent-brand hover:bg-accent-brand/10 hover:text-accent-brand"
onClick={() => {
setForm({ name: "", content: "", folder: "" });
setEditing("new");
}}
>
<Plus className="size-3" />
{t("admin.add")}
</Button>
</div>
</div>
{editing && (
<div className="flex flex-col gap-2.5 py-3 border-b border-border">
<Input
className="h-8 text-xs"
placeholder={t("admin.namePlaceholder")}
value={form.name}
onChange={(e) => setForm((p) => ({ ...p, name: e.target.value }))}
/>
<textarea
rows={4}
placeholder={t("admin.contentPlaceholder")}
value={form.content}
onChange={(e) =>
setForm((p) => ({ ...p, content: e.target.value }))
}
className="w-full px-3 py-2 text-[10px] bg-background border border-border text-foreground placeholder:text-muted-foreground resize-none outline-none focus:ring-1 focus:ring-ring font-mono"
/>
<Input
className="h-8 text-xs"
placeholder={t("admin.folderPlaceholder")}
value={form.folder}
onChange={(e) => setForm((p) => ({ ...p, folder: e.target.value }))}
/>
<div className="flex justify-end gap-2">
<Button
variant="ghost"
size="sm"
className="h-6 text-[10px]"
onClick={() => setEditing(null)}
>
{t("cancel")}
</Button>
<Button
variant="outline"
size="sm"
className="h-6 text-[10px] border-accent-brand/40 text-accent-brand hover:bg-accent-brand/10 hover:text-accent-brand"
disabled={saving}
onClick={save}
>
{saving ? t("admin.saving") : t("admin.save")}
</Button>
</div>
</div>
)}
{!loading && snippets.length === 0 && !editing && (
<span className="text-xs text-muted-foreground py-3">
{t("admin.empty")}
</span>
)}
{snippets.map((snippet) => (
<div
key={snippet.id}
className="flex items-center justify-between py-2.5 border-b border-border last:border-0"
>
<div className="flex flex-col gap-0.5 min-w-0">
<span className="text-xs font-semibold truncate max-w-[180px]">
{snippet.name}
</span>
<span className="text-[10px] font-mono text-muted-foreground truncate max-w-[220px]">
{snippet.content}
</span>
</div>
<div className="flex items-center gap-0.5 shrink-0">
<Button
variant="ghost"
size="icon"
className="size-6 text-muted-foreground hover:text-foreground"
onClick={() => {
setForm({
name: snippet.name,
content: snippet.content,
folder: snippet.folder ?? "",
});
setEditing(snippet);
}}
>
<Pencil className="size-3" />
</Button>
<Button
variant="ghost"
size="icon"
className="size-6 text-muted-foreground hover:text-destructive"
onClick={() => remove(snippet)}
>
<Trash2 className="size-3" />
</Button>
</div>
</div>
))}
</div>
);
}
@@ -0,0 +1,85 @@
import { useTranslation } from "@termix/plugin-sdk/frontend";
import { Loader2, Server } from "lucide-react";
import {
Button,
Dialog,
DialogContent,
DialogDescription,
DialogFooter,
DialogHeader,
DialogTitle,
} from "@termix/plugin-sdk/ui";
export interface HostExecutionResult {
hostId: number;
hostLabel: string;
/** Null while the command is still running on this host. */
success: boolean | null;
output: string;
error?: string;
}
export function ExecutionResultsDialog({
snippetName,
results,
onClose,
}: {
snippetName: string;
results: HostExecutionResult[];
onClose: () => void;
}) {
const { t } = useTranslation();
return (
<Dialog open onOpenChange={(open) => !open && onClose()}>
<DialogContent className="sm:max-w-xl">
<DialogHeader>
<DialogTitle className="text-lg font-bold">
{t("executionResultTitle", { name: snippetName })}
</DialogTitle>
<DialogDescription className="text-xs text-muted-foreground">
{t("executionResultDescription")}
</DialogDescription>
</DialogHeader>
<div className="flex flex-col border border-border max-h-96 overflow-y-auto">
{results.map((result) => (
<div
key={result.hostId}
className="flex flex-col gap-1.5 p-2.5 border-b border-border/40 last:border-b-0"
>
<div className="flex items-center gap-2">
<Server className="size-3 shrink-0 text-muted-foreground" />
<span className="text-xs font-semibold truncate flex-1">
{result.hostLabel}
</span>
{result.success === null ? (
<Loader2 className="size-3.5 animate-spin text-muted-foreground" />
) : (
<span
className={`text-[9px] px-1 py-px border uppercase tracking-wider shrink-0 ${
result.success
? "border-green-500/30 bg-green-500/10 text-green-500"
: "border-destructive/30 bg-destructive/10 text-destructive"
}`}
>
{t(result.success ? "executionSuccess" : "executionFailed")}
</span>
)}
</div>
{(result.output || result.error) && (
<pre className="text-[11px] bg-muted/30 p-2 overflow-x-auto whitespace-pre-wrap font-mono text-muted-foreground max-h-40">
{result.error || result.output}
</pre>
)}
</div>
))}
</div>
<DialogFooter>
<Button variant="ghost" onClick={onClose}>
{t("close")}
</Button>
</DialogFooter>
</DialogContent>
</Dialog>
);
}
@@ -0,0 +1,187 @@
import { Plus, Play, Trash2, Zap } from "lucide-react";
import {
useTranslation,
type HostEditorSectionProps,
} from "@termix/plugin-sdk/frontend";
import {
Button,
HostDefaultBadge,
HostDefaultField,
Input,
SectionCard,
Select2,
} from "@termix/plugin-sdk/ui";
import { PLUGIN_ID, readStartupSnippetId } from "../shared/host-settings.js";
import { useSnippetOptions } from "./use-snippet-options";
type PluginSettingsBag = Record<string, Record<string, unknown>>;
/** A quick action row while it is being edited: the snippet may be unset. */
interface QuickActionRow {
name: string;
snippetId: number | null;
}
function readRows(value: unknown): QuickActionRow[] {
if (!Array.isArray(value)) return [];
return value.map((entry) => {
const row = (entry ?? {}) as { name?: unknown; snippetId?: unknown };
const id = Number(row.snippetId);
return {
name: typeof row.name === "string" ? row.name : "",
snippetId: Number.isInteger(id) && id > 0 ? id : null,
};
});
}
/**
* The host editor's Snippets tab: the snippet a terminal runs when it
* connects, and the quick action buttons Host Metrics shows for the host.
* Both are this plugin's host settings, saved with the host.
*/
export function HostSnippetsSection({
form,
updateForm,
adminTargetUserId,
}: HostEditorSectionProps) {
const { t } = useTranslation();
const { options } = useSnippetOptions(adminTargetUserId);
const own =
(form.pluginSettings as PluginSettingsBag | undefined)?.[PLUGIN_ID] ?? {};
const startupSnippetId = readStartupSnippetId(own.startupSnippetId);
const quickActions = readRows(own.quickActions);
const write = (values: Record<string, unknown>) =>
updateForm((current) => {
const all =
(current.pluginSettings as PluginSettingsBag | undefined) ?? {};
return {
...current,
pluginSettings: {
...all,
[PLUGIN_ID]: { ...(all[PLUGIN_ID] ?? {}), ...values },
},
};
});
const setQuickActions = (rows: QuickActionRow[]) =>
write({ quickActions: rows });
return (
<>
<HostDefaultField settingKey="startupSnippetId">
<SectionCard
title={t("host.startupTitle")}
icon={<Play className="size-3.5" />}
>
<div className="flex flex-col gap-1.5 py-3">
<p className="flex items-center gap-1.5 text-xs text-muted-foreground">
{t("host.startupDescription")}
<HostDefaultBadge settingKey="startupSnippetId" />
</p>
<Select2
aria-label={t("host.startupTitle")}
value={startupSnippetId ?? ""}
onChange={(e) =>
write({
startupSnippetId: e.target.value
? Number(e.target.value)
: null,
})
}
className="flex h-9 w-full border border-border bg-background px-3 py-1 text-xs outline-none focus:ring-1 focus:ring-ring"
>
<option value="">{t("host.none")}</option>
{options.map((snippet) => (
<option key={snippet.id} value={snippet.id}>
{snippet.name}
</option>
))}
</Select2>
</div>
</SectionCard>
</HostDefaultField>
<HostDefaultField settingKey="quickActions">
<SectionCard
title={t("host.quickActionsTitle")}
icon={<Zap className="size-3.5" />}
action={
<Button
variant="outline"
size="sm"
className="h-6 text-[10px] px-2 border-accent-brand/40 text-accent-brand"
onClick={() =>
setQuickActions([
...quickActions,
{ name: "", snippetId: null },
])
}
>
<Plus className="size-3 mr-1" /> {t("host.addQuickAction")}
</Button>
}
>
<div className="flex flex-col gap-3 py-3">
<p className="flex items-center gap-1.5 text-xs text-muted-foreground">
{t("host.quickActionsDescription")}
<HostDefaultBadge settingKey="quickActions" />
</p>
{quickActions.length === 0 && (
<div className="flex flex-col items-center justify-center py-4 text-muted-foreground/40 gap-1.5">
<Zap className="size-6" />
<span className="text-xs">{t("host.noQuickActions")}</span>
</div>
)}
{quickActions.map((row, index) => (
<div
key={index}
className="flex items-center gap-2 p-2 bg-muted/20 border border-border group"
>
<Input
className="h-7 text-xs flex-1"
placeholder={t("host.buttonLabel")}
value={row.name}
onChange={(e) => {
const next = [...quickActions];
next[index] = { ...row, name: e.target.value };
setQuickActions(next);
}}
/>
<Select2
aria-label={t("host.selectSnippet")}
className="h-7 text-xs flex-1 border border-border bg-background px-2 outline-none focus:ring-1 focus:ring-ring"
value={row.snippetId ?? ""}
onChange={(e) => {
const next = [...quickActions];
next[index] = {
...row,
snippetId: e.target.value ? Number(e.target.value) : null,
};
setQuickActions(next);
}}
>
<option value="">{t("host.selectSnippet")}</option>
{options.map((snippet) => (
<option key={snippet.id} value={snippet.id}>
{snippet.name}
</option>
))}
</Select2>
<button
type="button"
aria-label={t("host.removeQuickAction")}
className="text-muted-foreground hover:text-destructive opacity-0 group-hover:opacity-100 transition-opacity"
onClick={() =>
setQuickActions(quickActions.filter((_, i) => i !== index))
}
>
<Trash2 className="size-3.5" />
</button>
</div>
))}
</div>
</SectionCard>
</HostDefaultField>
</>
);
}
@@ -0,0 +1,147 @@
import { useMemo, useState } from "react";
import { RefreshCw } from "lucide-react";
import { toast } from "sonner";
import {
usePermission,
usePluginApi,
useTranslation,
} from "@termix/plugin-sdk/frontend";
import { Button, Separator } from "@termix/plugin-sdk/ui";
import {
readQuickActions,
snippetHostSettings,
type QuickAction,
} from "../shared/host-settings.js";
import { hasSnippetInputs } from "../shared/variables.js";
import { askForInputs, shouldConfirmExecution } from "./prompt-store";
import { createSnippetsApi } from "./snippets-api";
import { errorMessage } from "./types";
interface ToolbarHost {
id?: number | string;
name?: string;
ip?: string;
username?: string;
port?: number;
pluginSettings?: Record<string, Record<string, unknown>>;
}
/**
* The host's quick actions as buttons in the Host Metrics toolbar (the
* host-metrics.toolbar slot). Each runs its snippet on the host over a fresh
* SSH connection and reports the result in a toast.
*/
export function QuickActionButtons(props: Record<string, unknown>) {
const host = props.host as ToolbarHost | undefined;
const { t } = useTranslation();
const api = usePluginApi();
const client = useMemo(() => createSnippetsApi(api), [api]);
const canView = usePermission("view");
const [running, setRunning] = useState<Set<number>>(new Set());
const actions = readQuickActions(snippetHostSettings(host).quickActions);
const hostId = Number(host?.id);
if (!canView || actions.length === 0 || !Number.isInteger(hostId)) {
return null;
}
const setBusy = (snippetId: number, busy: boolean) =>
setRunning((prev) => {
const next = new Set(prev);
if (busy) next.add(snippetId);
else next.delete(snippetId);
return next;
});
async function execute(
action: QuickAction,
inputValues: Record<string, string>,
) {
const toastId = `quick-action-${hostId}-${action.snippetId}`;
setBusy(action.snippetId, true);
toast.loading(t("quickActions.running", { name: action.name }), {
id: toastId,
});
try {
const result = await client.execute(
action.snippetId,
hostId,
Object.keys(inputValues).length > 0 ? inputValues : undefined,
);
if (result.success) {
toast.success(t("quickActions.succeeded", { name: action.name }), {
id: toastId,
description: result.output?.substring(0, 200),
duration: 5000,
});
} else {
toast.error(t("quickActions.failed", { name: action.name }), {
id: toastId,
description: result.error || result.output,
duration: 5000,
});
}
} catch (error) {
toast.error(t("quickActions.error", { name: action.name }), {
id: toastId,
description: errorMessage(error, t("executionFailed")),
duration: 5000,
});
} finally {
setBusy(action.snippetId, false);
}
}
async function run(action: QuickAction) {
let inputValues: Record<string, string> = {};
const snippet = await client.get(action.snippetId).catch(() => null);
if (snippet && hasSnippetInputs(snippet.content)) {
const values = await askForInputs(
{ name: action.name || snippet.name, content: snippet.content },
host
? {
ip: host.ip,
username: host.username,
port: host.port,
name: host.name,
}
: null,
);
if (!values) return;
inputValues = values;
}
const go = () => void execute(action, inputValues);
if (!shouldConfirmExecution()) {
go();
return;
}
toast(t("confirmRunMessage", { name: action.name }), {
action: { label: t("confirmRunButton"), onClick: go },
duration: 6000,
});
}
return (
<>
<div className="mr-3 flex flex-wrap gap-2">
{actions.map((action, index) => {
const busy = running.has(action.snippetId);
return (
<Button
key={index}
variant="outline"
size="sm"
className="h-8 text-xs font-semibold"
disabled={busy}
onClick={() => void run(action)}
>
{busy && <RefreshCw className="mr-1 size-3 animate-spin" />}
{action.name}
</Button>
);
})}
</div>
<Separator orientation="vertical" className="mx-3 h-8" />
</>
);
}
@@ -0,0 +1,288 @@
import { useMemo, useState } from "react";
import { useHosts, useTranslation } from "@termix/plugin-sdk/frontend";
import { ArrowLeft, Check, FileText, Search, Server, Zap } from "lucide-react";
import { Button, Input, SectionCard, Select2 } from "@termix/plugin-sdk/ui";
import { parseHostFilter, type Snippet, type SnippetFolder } from "./types";
export interface SnippetFormValues {
name: string;
content: string;
description: string;
folder: string;
isNote: boolean;
hostIds: number[];
}
const labelClass =
"text-[10px] font-bold uppercase tracking-widest text-muted-foreground";
export function SnippetEditor({
snippet,
defaultFolder,
folders,
onBack,
onSave,
}: {
/** The snippet being edited, or null to create one. */
snippet: Snippet | null;
defaultFolder?: string;
folders: SnippetFolder[];
onBack: () => void;
onSave: (values: SnippetFormValues) => Promise<boolean>;
}) {
const { t } = useTranslation();
const [values, setValues] = useState<SnippetFormValues>(() => ({
name: snippet?.name ?? "",
content: snippet?.content ?? "",
description: snippet?.description ?? "",
folder: snippet?.folder ?? defaultFolder ?? "",
isNote: snippet?.isNote ?? false,
hostIds: parseHostFilter(snippet?.hostFilter),
}));
const { hosts } = useHosts();
const [hostSearch, setHostSearch] = useState("");
const [saving, setSaving] = useState(false);
const set = <K extends keyof SnippetFormValues>(
key: K,
value: SnippetFormValues[K],
) => setValues((prev) => ({ ...prev, [key]: value }));
const canSave = !!values.name.trim() && !!values.content.trim() && !saving;
// A snippet can point at a folder that has no metadata row yet.
const folderNames = Array.from(
new Set([
...folders.map((f) => f.name),
...(values.folder ? [values.folder] : []),
]),
).sort((a, b) => a.localeCompare(b));
const hostQuery = hostSearch.trim().toLowerCase();
const visibleHosts = useMemo(
() =>
hosts
.filter(
(host) =>
!hostQuery ||
host.name.toLowerCase().includes(hostQuery) ||
host.ip.toLowerCase().includes(hostQuery),
)
.sort((a, b) => a.name.localeCompare(b.name)),
[hosts, hostQuery],
);
function toggleHost(id: number) {
set(
"hostIds",
values.hostIds.includes(id)
? values.hostIds.filter((h) => h !== id)
: [...values.hostIds, id],
);
}
async function handleSave() {
if (!canSave) return;
setSaving(true);
try {
await onSave(values);
} finally {
setSaving(false);
}
}
return (
<div className="flex flex-col flex-1 min-h-0">
<button
onClick={onBack}
className="flex items-center gap-2 px-3 py-2 shrink-0 text-xs text-muted-foreground hover:text-foreground hover:bg-muted/40 transition-colors border-b border-border"
>
<ArrowLeft className="size-3.5 shrink-0" />
<span>{t("backToSnippets")}</span>
{snippet && (
<span
className="ml-auto font-semibold text-foreground truncate max-w-[200px]"
title={snippet.name}
>
{snippet.name}
</span>
)}
</button>
<div className="flex-1 min-h-0 overflow-y-auto px-3 py-3 flex flex-col gap-3">
<SectionCard
title={t(snippet ? "editSnippetTitle" : "createSnippetTitle")}
icon={<FileText className="size-3.5" />}
>
<div className="flex flex-col gap-4 py-3">
<div className="flex flex-col gap-1.5">
<label className={labelClass}>
{t("nameLabel")} <span className="text-accent-brand">*</span>
</label>
<Input
autoFocus
value={values.name}
placeholder={t("namePlaceholder")}
onChange={(e) => set("name", e.target.value)}
/>
</div>
<div className="flex flex-col gap-1.5">
<label className={labelClass}>{t("descriptionLabel")}</label>
<Input
value={values.description}
placeholder={t("descriptionPlaceholder")}
onChange={(e) => set("description", e.target.value)}
/>
</div>
<div className="flex flex-col gap-1.5">
<label className={labelClass}>{t("folderLabel")}</label>
<Select2
value={values.folder}
onChange={(e) => set("folder", e.target.value)}
>
<option value="">{t("noFolder")}</option>
{folderNames.map((name) => (
<option key={name} value={name}>
{name}
</option>
))}
</Select2>
</div>
<div className="flex flex-col gap-1.5">
<label className={labelClass}>{t("typeLabel")}</label>
<div className="flex items-stretch border border-border">
{[false, true].map((isNote) => (
<button
key={String(isNote)}
type="button"
onClick={() => set("isNote", isNote)}
className={`flex-1 h-8 text-xs transition-colors ${isNote ? "border-l border-border" : ""} ${
values.isNote === isNote
? "bg-accent-brand/10 text-accent-brand"
: "text-muted-foreground hover:text-foreground hover:bg-muted/40"
}`}
>
{t(isNote ? "typeNote" : "typeCommand")}
</button>
))}
</div>
<span className="text-[11px] text-muted-foreground">
{t(values.isNote ? "typeNoteHint" : "typeCommandHint")}
</span>
</div>
<div className="flex flex-col gap-1.5">
<label className={labelClass}>
{t(values.isNote ? "noteLabel" : "commandLabel")}{" "}
<span className="text-accent-brand">*</span>
</label>
<textarea
value={values.content}
placeholder={t(
values.isNote ? "notePlaceholder" : "commandPlaceholder",
)}
onChange={(e) => set("content", e.target.value)}
onKeyDown={(e) => {
if (e.key === "Enter" && (e.ctrlKey || e.metaKey)) {
e.preventDefault();
void handleSave();
}
}}
className="w-full min-h-36 px-3 py-2 text-xs bg-background border border-border text-foreground placeholder:text-muted-foreground resize-y outline-none focus:ring-1 focus:ring-ring font-mono"
/>
<span className="text-[10px] text-muted-foreground/70 font-mono">
{t("variablesHint")}
</span>
</div>
</div>
</SectionCard>
{!values.isNote && (
<SectionCard
title={t("targetHostsLabel")}
icon={<Zap className="size-3.5" />}
action={
values.hostIds.length > 0 ? (
<button
type="button"
onClick={() => set("hostIds", [])}
className="text-[10px] text-accent-brand hover:underline"
>
{t("clearTargetHosts")}
</button>
) : undefined
}
>
<div className="flex flex-col gap-2 py-3">
<span className="text-[11px] text-muted-foreground">
{t("targetHostsHint")}
</span>
{hosts.length === 0 ? (
<span className="text-[11px] text-muted-foreground/60">
{t("noHostsAvailable")}
</span>
) : (
<div className="flex flex-col border border-border">
<div className="flex items-center gap-2 px-2.5 h-7 border-b border-border bg-muted/40">
<Search className="size-3 text-muted-foreground/60 shrink-0" />
<input
value={hostSearch}
onChange={(e) => setHostSearch(e.target.value)}
placeholder={t("searchHosts")}
className="flex-1 text-xs bg-transparent outline-none placeholder:text-muted-foreground/50 min-w-0"
/>
</div>
<div className="flex flex-col max-h-48 overflow-y-auto">
{visibleHosts.map((host) => {
const id = Number(host.id);
const selected = values.hostIds.includes(id);
return (
<button
key={host.id}
type="button"
onClick={() => toggleHost(id)}
className={`flex items-center gap-2 px-2.5 py-1.5 text-left border-b border-border/40 last:border-b-0 transition-colors ${
selected
? "bg-accent-brand/[0.07]"
: "hover:bg-muted/40"
}`}
>
<span
className={`size-3.5 border-2 flex items-center justify-center shrink-0 transition-colors ${selected ? "border-accent-brand bg-accent-brand" : "border-border bg-background"}`}
>
{selected && (
<Check className="size-2 text-background" />
)}
</span>
<Server className="size-3 shrink-0 text-muted-foreground/60" />
<span className="text-xs font-medium truncate flex-1">
{host.name || host.ip}
</span>
<span className="text-[11px] text-muted-foreground/60 font-mono truncate shrink-0 max-w-[45%]">
{host.ip}
</span>
</button>
);
})}
</div>
</div>
)}
</div>
</SectionCard>
)}
<div className="flex justify-end gap-3">
<Button variant="ghost" onClick={onBack} disabled={saving}>
{t("cancel")}
</Button>
<Button
variant="outline"
className="border-accent-brand/40 text-accent-brand hover:bg-accent-brand/10 hover:text-accent-brand px-6"
disabled={!canSave}
onClick={() => void handleSave()}
>
{t(snippet ? "saveSnippetButton" : "createSnippetButton")}
</Button>
</div>
</div>
</div>
);
}
@@ -0,0 +1,141 @@
import { useState } from "react";
import { useTranslation } from "@termix/plugin-sdk/frontend";
import {
Button,
Dialog,
DialogContent,
DialogDescription,
DialogFooter,
DialogHeader,
DialogTitle,
FOLDER_COLORS,
Input,
} from "@termix/plugin-sdk/ui";
import { FolderIcon } from "./folder-icons";
import { FOLDER_ICONS, type FolderIconId, type SnippetFolder } from "./types";
export interface FolderFormValues {
name: string;
color: string;
icon: FolderIconId;
}
export function SnippetFolderDialog({
folder,
onClose,
onSave,
}: {
/** The folder being edited, or null to create one. */
folder: SnippetFolder | null;
onClose: () => void;
onSave: (values: FolderFormValues) => Promise<void>;
}) {
const { t } = useTranslation();
const [name, setName] = useState(folder?.name ?? "");
const [color, setColor] = useState<string>(folder?.color ?? FOLDER_COLORS[0]);
const [icon, setIcon] = useState<FolderIconId>(
(folder?.icon as FolderIconId) ?? "folder",
);
const [saving, setSaving] = useState(false);
const isEdit = folder !== null;
async function handleSave() {
if (!name.trim()) return;
setSaving(true);
try {
await onSave({ name: name.trim(), color, icon });
} finally {
setSaving(false);
}
}
return (
<Dialog open onOpenChange={(open) => !open && onClose()}>
<DialogContent className="sm:max-w-md">
<DialogHeader>
<DialogTitle className="text-lg font-bold">
{t(isEdit ? "editFolderTitle" : "createFolderTitle")}
</DialogTitle>
<DialogDescription className="text-xs text-muted-foreground">
{t(isEdit ? "editFolderDescription" : "createFolderDescription")}
</DialogDescription>
</DialogHeader>
<div className="flex flex-col gap-4 mt-1">
<div className="flex flex-col gap-1.5">
<label className="text-[10px] font-bold uppercase tracking-widest text-muted-foreground">
{t("folderNameLabel")}
</label>
<Input
autoFocus
value={name}
placeholder={t("folderNamePlaceholder")}
onChange={(e) => setName(e.target.value)}
onKeyDown={(e) => {
if (e.key === "Enter") void handleSave();
}}
/>
</div>
<div className="flex flex-col gap-1.5">
<label className="text-[10px] font-bold uppercase tracking-widest text-muted-foreground">
{t("folderColorLabel")}
</label>
<div className="grid grid-cols-8 gap-1.5">
{FOLDER_COLORS.map((c) => (
<button
key={c}
type="button"
title={c}
onClick={() => setColor(c)}
className={`h-7 transition-all ${color === c ? "ring-2 ring-offset-2 ring-offset-background ring-foreground/50" : "opacity-75 hover:opacity-100"}`}
style={{ backgroundColor: c }}
/>
))}
</div>
</div>
<div className="flex flex-col gap-1.5">
<label className="text-[10px] font-bold uppercase tracking-widest text-muted-foreground">
{t("folderIconLabel")}
</label>
<div className="grid grid-cols-5 gap-1.5">
{FOLDER_ICONS.map((id) => (
<button
key={id}
type="button"
title={id}
onClick={() => setIcon(id)}
className={`flex items-center justify-center h-9 border transition-colors ${
icon === id
? "border-accent-brand/40 bg-accent-brand/10 text-accent-brand"
: "border-border text-muted-foreground hover:text-foreground hover:border-muted-foreground"
}`}
>
<FolderIcon icon={id} className="size-4" />
</button>
))}
</div>
</div>
<div className="flex items-center gap-2 px-2.5 py-2 border border-border bg-muted/20">
<FolderIcon icon={icon} className="size-4" style={{ color }} />
<span className="text-[13px] font-bold tracking-tight truncate">
{name.trim() || t("folderNamePlaceholder")}
</span>
</div>
</div>
<DialogFooter>
<Button variant="ghost" onClick={onClose}>
{t("cancel")}
</Button>
<Button
variant="outline"
className="border-accent-brand/40 text-accent-brand hover:bg-accent-brand/10 hover:text-accent-brand"
disabled={saving || !name.trim()}
onClick={() => void handleSave()}
>
{t(isEdit ? "saveFolderButton" : "createFolderButton")}
</Button>
</DialogFooter>
</DialogContent>
</Dialog>
);
}
@@ -0,0 +1,32 @@
import { useEffect } from "react";
import { useSettings } from "@termix/plugin-sdk/frontend";
import { SnippetVariablesDialog } from "./SnippetVariablesDialog";
import { readSnippetSettings } from "./settings";
import { setConfirmExecution, usePendingPrompt } from "./prompt-store";
/**
* Always mounted at the shell's root (the shell.overlay slot), so a snippet
* started from the command palette, a keybinding or a host button can ask
* for its inputs after whatever started it has closed.
*/
export function SnippetOverlay() {
const settings = useSettings("user");
const prompt = usePendingPrompt();
const confirmExecution = readSnippetSettings(
settings.values,
).confirmExecution;
useEffect(() => {
setConfirmExecution(confirmExecution);
}, [confirmExecution]);
if (!prompt) return null;
return (
<SnippetVariablesDialog
snippet={prompt.snippet}
host={prompt.host}
onCancel={() => prompt.settle(null)}
onConfirm={(_resolved, values) => prompt.settle(values)}
/>
);
}
@@ -0,0 +1,77 @@
import {
useTranslation,
type SettingsState,
} from "@termix/plugin-sdk/frontend";
import { ArrowLeft, Rows3, SquareStack } from "lucide-react";
import { FakeSwitch, SectionCard, SettingRow } from "@termix/plugin-sdk/ui";
import { readSnippetSettings, type SnippetDisplaySettings } from "./settings";
export function SnippetSettings({
settings,
onBack,
}: {
settings: SettingsState;
onBack: () => void;
}) {
const { t } = useTranslation();
const current = readSnippetSettings(settings.values);
const save = (patch: Partial<SnippetDisplaySettings>) =>
void settings.save({ ...settings.values, ...patch });
return (
<div className="flex flex-col flex-1 min-h-0">
<button
onClick={onBack}
className="flex items-center gap-2 px-3 py-2 shrink-0 text-xs text-muted-foreground hover:text-foreground hover:bg-muted/40 transition-colors border-b border-border"
>
<ArrowLeft className="size-3.5 shrink-0" />
<span>{t("backToSnippets")}</span>
<span className="ml-auto font-semibold text-foreground">
{t("settingsTitle")}
</span>
</button>
<div className="flex-1 min-h-0 overflow-y-auto px-3 py-3 flex flex-col gap-3">
<SectionCard
title={t("settingsDisplayTitle")}
icon={<Rows3 className="size-3.5" />}
>
<SettingRow
label={t("settings.foldersCollapsed.label")}
description={t("settings.foldersCollapsed.description")}
>
<FakeSwitch
checked={current.foldersCollapsed}
onChange={(v) => save({ foldersCollapsed: v })}
/>
</SettingRow>
<SettingRow
label={t("settings.showCommands.label")}
description={t("settings.showCommands.description")}
>
<FakeSwitch
checked={current.showCommands}
onChange={(v) => save({ showCommands: v })}
/>
</SettingRow>
</SectionCard>
<SectionCard
title={t("settingsBehaviorTitle")}
icon={<SquareStack className="size-3.5" />}
>
<SettingRow
label={t("settings.confirmExecution.label")}
description={t("settings.confirmExecution.description")}
>
<FakeSwitch
checked={current.confirmExecution}
onChange={(v) => save({ confirmExecution: v })}
/>
</SettingRow>
</SectionCard>
</div>
</div>
);
}
@@ -0,0 +1,429 @@
import { useCallback, useEffect, useMemo, useState } from "react";
import { useTranslation } from "@termix/plugin-sdk/frontend";
import { toast } from "sonner";
import {
ArrowLeft,
Check,
ListChecks,
Search,
Share2,
Shield,
User,
Users,
X,
} from "lucide-react";
import {
Button,
DropdownMenu,
DropdownMenuContent,
DropdownMenuItem,
DropdownMenuTrigger,
Input,
} from "@termix/plugin-sdk/ui";
import type {
ShareableRole,
ShareableUser,
SnippetShareInput,
SnippetsApi,
} from "./snippets-api";
import { errorMessage, type Snippet, type SnippetAccessEntry } from "./types";
export type ShareTarget =
{ kind: "snippet"; snippet: Snippet } | { kind: "folder"; name: string };
const EXPIRY_HOURS = [0, 1, 24, 168, 720] as const;
const DOCS_URL = "https://docs.termix.site/features/authentication/rbac";
export function SnippetShareView({
target,
client,
onBack,
}: {
target: ShareTarget;
client: SnippetsApi;
onBack: () => void;
}) {
const { t } = useTranslation();
const [users, setUsers] = useState<ShareableUser[]>([]);
const [roles, setRoles] = useState<ShareableRole[]>([]);
const [access, setAccess] = useState<SnippetAccessEntry[]>([]);
const [tab, setTab] = useState<"user" | "role">("user");
const [search, setSearch] = useState("");
const [selectedUsers, setSelectedUsers] = useState<Set<string>>(new Set());
const [selectedRoles, setSelectedRoles] = useState<Set<number>>(new Set());
const [expiryHours, setExpiryHours] = useState<number>(0);
const [loadError, setLoadError] = useState(false);
const [submitting, setSubmitting] = useState(false);
const [folderSummary, setFolderSummary] = useState<number | null>(null);
const snippetId = target.kind === "snippet" ? target.snippet.id : null;
const selectedCount = selectedUsers.size + selectedRoles.size;
const loadAccess = useCallback(async () => {
if (snippetId === null) return;
const list = await client.getAccess(snippetId);
setAccess(Array.isArray(list) ? list : []);
}, [client, snippetId]);
useEffect(() => {
let cancelled = false;
Promise.all([
client.shareTargetUsers(),
client.shareTargetRoles(),
loadAccess(),
])
.then(([usersRes, rolesRes]) => {
if (cancelled) return;
setUsers(usersRes.users ?? []);
setRoles(rolesRes.roles ?? []);
})
.catch(() => {
if (!cancelled) setLoadError(true);
});
return () => {
cancelled = true;
};
}, [client, loadAccess]);
const query = search.trim().toLowerCase();
const filteredUsers = useMemo(
() => users.filter((u) => u.username.toLowerCase().includes(query)),
[users, query],
);
const filteredRoles = useMemo(
() =>
roles.filter((r) =>
(r.displayName || r.name).toLowerCase().includes(query),
),
[roles, query],
);
function toggle<T>(set: Set<T>, value: T): Set<T> {
const next = new Set(set);
if (next.has(value)) next.delete(value);
else next.add(value);
return next;
}
async function handleShare() {
if (selectedCount === 0) return;
const expiresAt =
expiryHours > 0
? new Date(Date.now() + expiryHours * 3600_000).toISOString()
: null;
const bodies: SnippetShareInput[] = [
...[...selectedUsers].map((id) => ({
targetType: "user" as const,
targetUserId: id,
expiresAt,
})),
...[...selectedRoles].map((id) => ({
targetType: "role" as const,
targetRoleId: id,
expiresAt,
})),
];
setSubmitting(true);
try {
if (target.kind === "snippet") {
for (const body of bodies) await client.share(target.snippet.id, body);
await loadAccess();
} else {
let shared = 0;
for (const body of bodies) {
const result = await client.shareFolder(target.name, body);
shared = Math.max(shared, result.snippetsShared ?? 0);
}
setFolderSummary(shared);
}
toast.success(t("shareSuccess", { count: selectedCount }));
setSelectedUsers(new Set());
setSelectedRoles(new Set());
} catch (err) {
toast.error(errorMessage(err, t("shareFailed")));
} finally {
setSubmitting(false);
}
}
async function handleRevoke(entry: SnippetAccessEntry) {
if (snippetId === null) return;
try {
await client.revokeAccess(snippetId, entry.id);
setAccess((prev) => prev.filter((a) => a.id !== entry.id));
toast.success(t("revokeSuccess"));
} catch (err) {
toast.error(errorMessage(err, t("revokeFailed")));
}
}
const rowClass = (selected: boolean) =>
`flex items-center gap-2 px-2.5 py-1.5 text-xs text-left border-b border-border/50 last:border-0 transition-colors shrink-0 ${selected ? "bg-accent-brand/10 text-accent-brand" : "hover:bg-muted/40"}`;
const checkbox = (selected: boolean) => (
<div
className={`size-3.5 border flex items-center justify-center shrink-0 transition-colors ${selected ? "border-accent-brand bg-accent-brand" : "border-border bg-background"}`}
>
{selected && <Check className="size-2.5 text-background" />}
</div>
);
return (
<div className="flex flex-col flex-1 min-h-0">
<button
onClick={onBack}
className="flex items-center gap-2 px-3 py-2 shrink-0 border-b border-border text-xs text-muted-foreground hover:text-foreground transition-colors w-full text-left"
>
<ArrowLeft className="size-3.5 shrink-0" />
<span className="truncate">
{target.kind === "snippet"
? t("shareSnippetTitle", { name: target.snippet.name })
: t("shareFolderTitle", { name: target.name })}
</span>
</button>
{loadError && (
<div className="flex items-start gap-2 px-3 py-2 shrink-0 border-b border-destructive/30 bg-destructive/5 text-xs text-destructive">
<Shield className="size-3.5 shrink-0 mt-0.5" />
<div>{t("shareLoadFailed")}</div>
</div>
)}
<div className="flex flex-col gap-2 p-3 shrink-0 border-b border-border">
<div className="flex items-center justify-between gap-2">
<div className="flex items-center gap-1.5 text-[10px] font-semibold uppercase tracking-widest text-muted-foreground">
<Users className="size-3.5" />
{t("shareWith")}
</div>
<a
href={DOCS_URL}
target="_blank"
rel="noreferrer"
className="text-[10px] text-accent-brand hover:underline shrink-0"
>
{t("docsLink")}
</a>
</div>
<div className="flex gap-1.5">
{(["user", "role"] as const).map((key) => {
const count =
key === "user" ? selectedUsers.size : selectedRoles.size;
return (
<button
key={key}
onClick={() => setTab(key)}
className={`flex-1 flex items-center justify-center gap-1 px-2 py-1.5 text-[10px] font-bold uppercase tracking-widest border transition-colors ${tab === key ? "border-accent-brand/40 bg-accent-brand/10 text-accent-brand" : "border-border text-muted-foreground hover:text-foreground"}`}
>
{key === "user" ? (
<User className="size-3 shrink-0" />
) : (
<Shield className="size-3 shrink-0" />
)}
{t(key === "user" ? "usersTab" : "rolesTab")}
{count > 0 && <span>({count})</span>}
</button>
);
})}
</div>
<div className="relative">
<Search className="absolute left-2.5 top-1/2 -translate-y-1/2 size-3.5 text-muted-foreground/50" />
<Input
placeholder={t("shareSearchPlaceholder")}
value={search}
onChange={(e) => setSearch(e.target.value)}
className="pl-8"
/>
</div>
<div className="flex flex-col border border-border h-28 overflow-y-auto">
{tab === "user" &&
(filteredUsers.length === 0 ? (
<div className="px-3 py-4 text-xs text-muted-foreground/50 text-center">
{t("shareNoMatches")}
</div>
) : (
filteredUsers.map((user) => {
const selected = selectedUsers.has(user.id);
return (
<button
key={user.id}
onClick={() =>
setSelectedUsers((prev) => toggle(prev, user.id))
}
className={rowClass(selected)}
>
{checkbox(selected)}
<User className="size-3 text-muted-foreground shrink-0" />
<span className="truncate">{user.username}</span>
</button>
);
})
))}
{tab === "role" &&
(filteredRoles.length === 0 ? (
<div className="px-3 py-4 text-xs text-muted-foreground/50 text-center">
{t("shareNoMatches")}
</div>
) : (
filteredRoles.map((role) => {
const selected = selectedRoles.has(role.id);
return (
<button
key={role.id}
onClick={() =>
setSelectedRoles((prev) => toggle(prev, role.id))
}
className={rowClass(selected)}
>
{checkbox(selected)}
<Shield className="size-3 text-muted-foreground shrink-0" />
<span className="truncate">
{role.displayName || role.name}
</span>
</button>
);
})
))}
</div>
<div className="flex items-end gap-2">
<DropdownMenu>
<DropdownMenuTrigger asChild>
<button className="flex flex-col gap-1 flex-1 min-w-0">
<span className="text-[10px] font-semibold uppercase tracking-widest text-muted-foreground text-left">
{t("shareExpiry")}
</span>
<span className="h-8 flex items-center px-2.5 text-xs border border-border hover:bg-muted/40 transition-colors whitespace-nowrap">
{t(`shareExpiryOptions.h${expiryHours}`)}
</span>
</button>
</DropdownMenuTrigger>
<DropdownMenuContent align="start" className="text-xs">
{EXPIRY_HOURS.map((hours) => (
<DropdownMenuItem
key={hours}
onClick={() => setExpiryHours(hours)}
>
{expiryHours === hours ? (
<Check className="size-3 mr-1.5" />
) : (
<span className="size-3 mr-1.5" />
)}
{t(`shareExpiryOptions.h${hours}`)}
</DropdownMenuItem>
))}
</DropdownMenuContent>
</DropdownMenu>
<Button
variant="outline"
className="h-8 shrink-0 border-accent-brand/40 text-accent-brand hover:bg-accent-brand/10 hover:text-accent-brand"
disabled={selectedCount === 0 || submitting}
onClick={() => void handleShare()}
>
<Share2 className="size-3.5 mr-1.5" />
{selectedCount > 0
? t("shareWithCount", { count: selectedCount })
: t("shareButton")}
</Button>
</div>
{target.kind === "folder" && (
<p className="text-[11px] text-muted-foreground leading-snug">
{t("shareFolderHint")}
</p>
)}
</div>
{target.kind === "folder" && folderSummary !== null && (
<div className="flex items-center gap-1.5 px-3 py-2 shrink-0 text-xs text-muted-foreground">
<ListChecks className="size-3.5 shrink-0" />
{t("shareFolderSummary", { count: folderSummary })}
</div>
)}
{target.kind === "snippet" && (
<div className="flex flex-col flex-1 min-h-0">
<div className="flex items-center gap-1.5 px-3 py-2 shrink-0 border-b border-border text-[10px] font-semibold uppercase tracking-widest text-muted-foreground">
<ListChecks className="size-3.5" />
{t("currentAccess")}
{access.length > 0 && (
<span className="text-muted-foreground/40">
({access.length})
</span>
)}
</div>
<div className="flex-1 min-h-0 overflow-y-auto">
{access.length === 0 && (
<div className="px-3 py-6 text-xs text-muted-foreground/50 text-center">
{t("notSharedYet")}
</div>
)}
{access.map((entry) => {
const expired =
entry.expiresAt && new Date(entry.expiresAt) < new Date();
return (
<div
key={entry.id}
className="flex flex-col gap-1 px-3 py-2 border-b border-border/60 last:border-0 text-xs"
>
<div className="flex items-center justify-between gap-2">
<div className="flex items-center gap-1.5 min-w-0">
{entry.targetType === "user" ? (
<User className="size-3 text-muted-foreground shrink-0" />
) : (
<Shield className="size-3 text-muted-foreground shrink-0" />
)}
<span className="font-semibold truncate">
{entry.username ??
entry.roleDisplayName ??
entry.roleName ??
entry.userId ??
entry.roleId}
</span>
</div>
<Button
variant="ghost"
size="sm"
className="h-6 text-[10px] px-2 text-destructive hover:bg-destructive/10"
onClick={() => void handleRevoke(entry)}
>
{t("revokeAccess")}
</Button>
</div>
<div className="flex items-center gap-3 text-[10px] text-muted-foreground pl-4">
<span>
{t("grantedBy")}:{" "}
<span className="text-foreground/70">
{entry.grantedByUsername ?? "?"}
</span>
</span>
<span className={expired ? "text-destructive" : ""}>
{t("shareExpiry")}:{" "}
{expired ? (
<span className="inline-flex items-center gap-0.5 text-destructive">
<X className="size-3" />
{t("expired")}
</span>
) : (
<span className="text-foreground/70">
{entry.expiresAt
? new Date(entry.expiresAt).toLocaleString()
: t("shareExpiryOptions.h0")}
</span>
)}
</span>
</div>
</div>
);
})}
</div>
</div>
)}
</div>
);
}
@@ -0,0 +1,470 @@
import { useState, type ReactNode } from "react";
import { useTranslation } from "@termix/plugin-sdk/frontend";
import {
ChevronRight,
ClipboardPaste,
Copy,
FolderInput,
GripVertical,
MoreHorizontal,
Pencil,
Play,
Plus,
Share2,
StickyNote,
Terminal,
Trash2,
Users,
Zap,
} from "lucide-react";
import {
DropdownMenu,
DropdownMenuContent,
DropdownMenuItem,
DropdownMenuSeparator,
DropdownMenuSub,
DropdownMenuSubContent,
DropdownMenuSubTrigger,
DropdownMenuTrigger,
} from "@termix/plugin-sdk/ui";
import { FolderIcon } from "./folder-icons";
import type { Snippet, SnippetFolder } from "./types";
const trayButtonClass =
"flex items-center justify-center size-[22.75px] text-muted-foreground/60 hover:text-foreground hover:bg-muted transition-colors";
export type DropPosition = "above" | "below";
export function SnippetRow({
snippet,
stripeIndex,
showCommand,
folderNames,
targetHostNames,
canEdit,
canDelete,
canShare,
draggable,
dragActive,
isDragging,
dropIndicator,
onRun,
onCopy,
onEdit,
onShare,
onMove,
onDelete,
onDragStart,
onDragEnd,
onDragOverRow,
onDropRow,
}: {
snippet: Snippet;
stripeIndex: number;
showCommand: boolean;
folderNames: string[];
/** Hosts a command snippet runs on directly, instead of the active terminal. */
targetHostNames: string[];
canEdit: boolean;
canDelete: boolean;
canShare: boolean;
draggable: boolean;
/** True while any snippet is being dragged, so this row is a drop target. */
dragActive: boolean;
isDragging: boolean;
dropIndicator: DropPosition | null;
onRun: () => void;
onCopy: () => void;
onEdit: () => void;
onShare: () => void;
onMove: (folder: string | null) => void;
onDelete: () => void;
onDragStart: () => void;
onDragEnd: () => void;
onDragOverRow: (position: DropPosition) => void;
onDropRow: () => void;
}) {
const { t } = useTranslation();
const [menuOpen, setMenuOpen] = useState(false);
const owned = !snippet.isShared;
const editable = canEdit && owned;
const deletable = canDelete && owned;
const shareable = canShare && owned;
const hasTargets = !snippet.isNote && targetHostNames.length > 0;
const TypeIcon = snippet.isNote ? StickyNote : Terminal;
const RunIcon = hasTargets ? Zap : snippet.isNote ? ClipboardPaste : Play;
const runLabel = t(
hasTargets ? "runOnTargets" : snippet.isNote ? "pasteToTerminal" : "run",
);
return (
<div
draggable={draggable}
onDragStart={(e) => {
e.dataTransfer.effectAllowed = "move";
onDragStart();
}}
onDragEnd={onDragEnd}
onDragOver={(e) => {
if (!dragActive) return;
e.preventDefault();
e.stopPropagation();
const rect = e.currentTarget.getBoundingClientRect();
onDragOverRow(
e.clientY < rect.top + rect.height / 2 ? "above" : "below",
);
}}
onDrop={(e) => {
if (!dragActive) return;
e.preventDefault();
e.stopPropagation();
onDropRow();
}}
onDoubleClick={onRun}
onContextMenu={(e) => {
e.preventDefault();
setMenuOpen(true);
}}
title={t("doubleClickToRun")}
className={`group relative flex items-stretch select-none border-b border-border/40 transition-colors hover:bg-muted/50 ${
draggable ? "cursor-grab active:cursor-grabbing" : ""
} ${
menuOpen ? "bg-muted/50" : stripeIndex % 2 === 1 ? "bg-muted/15" : ""
} ${isDragging ? "opacity-40" : ""}`}
>
{dropIndicator && (
<div
className={`absolute left-0 right-0 h-0.5 bg-accent-brand z-10 pointer-events-none ${dropIndicator === "above" ? "-top-px" : "-bottom-px"}`}
/>
)}
<div
className={`w-[3px] shrink-0 ${snippet.isNote ? "bg-muted-foreground/30" : "bg-accent-brand/60"}`}
/>
{draggable && (
<div className="flex items-center justify-center w-3.5 shrink-0 -mr-1.5 text-muted-foreground/30 group-hover:text-muted-foreground/70 transition-colors">
<GripVertical className="size-3" />
</div>
)}
<div className="flex flex-col flex-1 min-w-0 pl-[8.75px] pr-[7px] py-[7px] gap-[3.5px]">
<div className="flex items-center gap-1.5 min-w-0">
<TypeIcon className="size-3 shrink-0 text-muted-foreground/60" />
<span className="text-[13px] font-semibold truncate text-foreground leading-none tracking-tight">
{snippet.name}
</span>
{snippet.isNote && (
<span className="text-[9px] px-1 py-px border border-border bg-muted/40 text-muted-foreground shrink-0 leading-none uppercase tracking-wider">
{t("typeNote")}
</span>
)}
{snippet.isShared && (
<span className="flex items-center gap-0.5 text-[9px] px-1 py-px border border-accent-brand/30 bg-accent-brand/10 text-accent-brand shrink-0 leading-none uppercase tracking-wider">
<Users className="size-2.5" />
{t("sharedBadge")}
</span>
)}
</div>
{snippet.description && (
<span className="text-[11px] text-muted-foreground/80 truncate leading-tight">
{snippet.description}
</span>
)}
{showCommand && (
<span className="text-[11px] text-muted-foreground/60 truncate leading-tight font-mono">
{snippet.content.split("\n")[0]}
</span>
)}
{hasTargets && (
<div className="flex items-center gap-1 min-w-0 overflow-hidden">
<Zap className="size-2.5 shrink-0 text-accent-brand/70" />
{targetHostNames.slice(0, 3).map((name) => (
<span
key={name}
className="text-[9px] px-1.5 py-[1px] bg-accent-brand/10 text-accent-brand shrink-0 leading-[1.4] truncate max-w-28"
>
{name}
</span>
))}
{targetHostNames.length > 3 && (
<span className="text-[9px] text-muted-foreground/50 shrink-0">
+{targetHostNames.length - 3}
</span>
)}
</div>
)}
</div>
<div
className={`absolute right-1.5 top-1.5 items-center border border-border bg-background shadow-sm ${
menuOpen ? "flex" : "hidden group-hover:flex pointer-coarse:flex"
}`}
>
<button
title={runLabel}
onClick={(e) => {
e.stopPropagation();
onRun();
}}
className={`${trayButtonClass} text-accent-brand/80 hover:text-accent-brand`}
>
<RunIcon className="size-3.5" />
</button>
<button
title={t("copyToClipboard")}
onClick={(e) => {
e.stopPropagation();
onCopy();
}}
className={trayButtonClass}
>
<Copy className="size-3.5" />
</button>
{editable && (
<button
title={t("editSnippetTitle")}
onClick={(e) => {
e.stopPropagation();
onEdit();
}}
className={trayButtonClass}
>
<Pencil className="size-3.5" />
</button>
)}
{shareable && (
<button
title={t("shareSnippet")}
onClick={(e) => {
e.stopPropagation();
onShare();
}}
className={trayButtonClass}
>
<Share2 className="size-3.5" />
</button>
)}
<DropdownMenu open={menuOpen} onOpenChange={setMenuOpen}>
<DropdownMenuTrigger asChild>
<button
title={t("moreOptions")}
onClick={(e) => e.stopPropagation()}
className={trayButtonClass}
>
<MoreHorizontal className="size-3.5" />
</button>
</DropdownMenuTrigger>
<DropdownMenuContent align="end" className="text-xs min-w-44">
<DropdownMenuItem onClick={onRun}>
<RunIcon className="size-3.5 mr-2" />
{runLabel}
</DropdownMenuItem>
<DropdownMenuItem onClick={onCopy}>
<Copy className="size-3.5 mr-2" />
{t("copyToClipboard")}
</DropdownMenuItem>
{editable && (
<DropdownMenuItem onClick={onEdit}>
<Pencil className="size-3.5 mr-2" />
{t("editSnippetTitle")}
</DropdownMenuItem>
)}
{shareable && (
<DropdownMenuItem onClick={onShare}>
<Share2 className="size-3.5 mr-2" />
{t("shareSnippet")}
</DropdownMenuItem>
)}
{editable && (
<DropdownMenuSub>
<DropdownMenuSubTrigger>
<FolderInput className="size-3.5 mr-2" />
{t("moveToFolder")}
</DropdownMenuSubTrigger>
<DropdownMenuSubContent className="text-xs max-w-72">
<DropdownMenuItem
disabled={!snippet.folder}
onClick={() => onMove(null)}
>
{t("noFolder")}
</DropdownMenuItem>
{folderNames.map((name) => (
<DropdownMenuItem
key={name}
disabled={snippet.folder === name}
onClick={() => onMove(name)}
>
<span className="truncate">{name}</span>
</DropdownMenuItem>
))}
</DropdownMenuSubContent>
</DropdownMenuSub>
)}
{deletable && (
<>
<DropdownMenuSeparator />
<DropdownMenuItem
onClick={onDelete}
className="text-destructive focus:text-destructive"
>
<Trash2 className="size-3.5 mr-2" />
{t("deleteSnippet")}
</DropdownMenuItem>
</>
)}
</DropdownMenuContent>
</DropdownMenu>
</div>
</div>
);
}
export function SnippetFolderRow({
name,
folder,
count,
open,
stripeIndex,
canCreate,
canEdit,
canDelete,
canShare,
acceptsDrop,
onToggle,
onAddSnippet,
onEdit,
onShare,
onDelete,
onDropSnippet,
children,
}: {
name: string;
/** Null for a folder that only exists as a name on its snippets. */
folder: SnippetFolder | null;
count: number;
open: boolean;
stripeIndex: number;
canCreate: boolean;
canEdit: boolean;
canDelete: boolean;
canShare: boolean;
/** True while a snippet is being dragged that could move into this folder. */
acceptsDrop: boolean;
onToggle: () => void;
onAddSnippet: () => void;
onEdit: () => void;
onShare: () => void;
onDelete: () => void;
onDropSnippet: () => void;
children: ReactNode;
}) {
const { t } = useTranslation();
const [dragOver, setDragOver] = useState(false);
const hasActions = canCreate || canEdit || canDelete || canShare;
return (
<div className="border-b border-border/40">
<div
role="button"
tabIndex={0}
onClick={onToggle}
onKeyDown={(e) => {
if (e.key === "Enter" || e.key === " ") {
e.preventDefault();
onToggle();
}
}}
onDragOver={(e) => {
if (!acceptsDrop) return;
e.preventDefault();
setDragOver(true);
}}
onDragLeave={(e) => {
if (e.currentTarget === e.target) setDragOver(false);
}}
onDrop={(e) => {
if (!acceptsDrop) return;
e.preventDefault();
setDragOver(false);
onDropSnippet();
}}
className={`group/folder flex items-center gap-2 w-full pl-2.5 pr-2 py-1.5 cursor-pointer select-none transition-colors ${
open ? "bg-muted/40" : "hover:bg-muted/30"
} ${stripeIndex % 2 === 1 && !open ? "bg-muted/[0.08]" : ""} ${
dragOver && acceptsDrop
? "ring-1 ring-inset ring-accent-brand bg-accent-brand/10"
: ""
}`}
>
<ChevronRight
className={`size-3.5 shrink-0 text-muted-foreground/60 transition-transform ${open ? "rotate-90" : ""}`}
/>
<FolderIcon
icon={folder?.icon}
className={`size-4 shrink-0 ${folder?.color ? "" : open ? "text-accent-brand" : "text-muted-foreground/70"}`}
style={folder?.color ? { color: folder.color } : undefined}
/>
<span className="min-w-0 flex-1 truncate text-[13px] font-bold text-foreground tracking-tight">
{name}
</span>
<span className="text-[10px] tabular-nums shrink-0 px-1.5 py-[1px] bg-muted/70 text-muted-foreground/70">
{count}
</span>
{hasActions && (
<DropdownMenu>
<DropdownMenuTrigger asChild>
<button
title={t("folderActions")}
onClick={(e) => e.stopPropagation()}
className="flex items-center justify-center size-5 shrink-0 text-muted-foreground/60 hover:text-foreground hover:bg-muted opacity-0 group-hover/folder:opacity-100 focus:opacity-100 pointer-coarse:opacity-100 data-[state=open]:opacity-100 transition-opacity"
>
<MoreHorizontal className="size-3.5" />
</button>
</DropdownMenuTrigger>
<DropdownMenuContent align="end" className="text-xs min-w-40">
{canCreate && (
<DropdownMenuItem onClick={onAddSnippet}>
<Plus className="size-3.5 mr-2" />
{t("addSnippetHere")}
</DropdownMenuItem>
)}
{canEdit && (
<DropdownMenuItem onClick={onEdit}>
<Pencil className="size-3.5 mr-2" />
{t("editFolderTitle")}
</DropdownMenuItem>
)}
{canShare && count > 0 && (
<DropdownMenuItem onClick={onShare}>
<Share2 className="size-3.5 mr-2" />
{t("shareFolder")}
</DropdownMenuItem>
)}
{canDelete && (
<>
<DropdownMenuSeparator />
<DropdownMenuItem
onClick={onDelete}
className="text-destructive focus:text-destructive"
>
<Trash2 className="size-3.5 mr-2" />
{t("deleteFolder")}
</DropdownMenuItem>
</>
)}
</DropdownMenuContent>
</DropdownMenu>
)}
</div>
{open && (
<div className="border-l border-border/50 ml-[27px] border-t border-t-border/40 [&>*:last-child]:border-b-0">
{count === 0 ? (
<div className="px-3 py-2 text-[11px] text-muted-foreground/60">
{t("noSnippetsInFolder")}
</div>
) : (
children
)}
</div>
)}
</div>
);
}
@@ -0,0 +1,107 @@
import { useState, useEffect, useMemo } from "react";
import { useTranslation } from "@termix/plugin-sdk/frontend";
import {
Button,
Input,
Dialog,
DialogContent,
DialogHeader,
DialogTitle,
DialogDescription,
} from "@termix/plugin-sdk/ui";
import {
extractSnippetInputs,
resolveSnippetContent,
type SnippetHostContext,
} from "../shared/variables.js";
/** Enough of a snippet to fill in its inputs. */
export interface VariablesDialogSnippet {
name: string;
content: string;
}
/**
* Shown before running a snippet that contains $INPUT_n placeholders:
* collects a value per placeholder and previews the fully resolved command
* (host vars and inputs) before handing the result back to the caller.
*/
export function SnippetVariablesDialog({
snippet,
host,
onCancel,
onConfirm,
}: {
snippet: VariablesDialogSnippet;
host: SnippetHostContext | null;
onCancel: () => void;
onConfirm: (
resolvedContent: string,
inputValues: Record<string, string>,
) => void;
}) {
const { t } = useTranslation();
const inputs = useMemo(
() => extractSnippetInputs(snippet.content),
[snippet.content],
);
const [values, setValues] = useState<Record<string, string>>({});
useEffect(() => {
setValues({});
}, [snippet]);
const preview = resolveSnippetContent(snippet.content, host, values);
return (
<Dialog open onOpenChange={(v) => !v && onCancel()}>
<DialogContent className="sm:max-w-lg">
<DialogHeader>
<DialogTitle className="text-lg font-bold">
{t("variablesDialogTitle", { name: snippet.name })}
</DialogTitle>
<DialogDescription className="text-xs text-muted-foreground">
{t("variablesDialogDescription")}
</DialogDescription>
</DialogHeader>
<div className="flex flex-col gap-4 mt-1">
{inputs.map((input) => (
<div key={input.key} className="flex flex-col gap-1.5">
<label className="text-xs font-semibold">{input.label}</label>
<Input
autoFocus={inputs[0]?.key === input.key}
value={values[input.key] ?? ""}
onChange={(e) =>
setValues((prev) => ({
...prev,
[input.key]: e.target.value,
}))
}
/>
</div>
))}
<div className="flex flex-col gap-1.5">
<label className="text-xs font-semibold text-muted-foreground">
{t("variablesPreviewLabel")}
</label>
<span className="text-xs text-muted-foreground font-mono px-2.5 py-2 border border-border bg-muted/20 min-w-0 break-all whitespace-pre-wrap">
{preview}
</span>
</div>
</div>
<div className="flex items-center justify-end gap-2 mt-2">
<Button variant="ghost" onClick={onCancel}>
{t("cancel")}
</Button>
<Button
variant="outline"
className="border-accent-brand/40 text-accent-brand hover:bg-accent-brand/10 hover:text-accent-brand"
onClick={() => onConfirm(preview, values)}
>
{t("variablesConfirmButton")}
</Button>
</div>
</DialogContent>
</Dialog>
);
}
@@ -0,0 +1,831 @@
import { useCallback, useEffect, useMemo, useRef, useState } from "react";
import {
useHosts,
usePermission,
usePluginApi,
useSettings,
useTranslation,
type PanelProps,
} from "@termix/plugin-sdk/frontend";
import { toast } from "sonner";
import {
ChevronsDownUp,
ChevronsUpDown,
Download,
ExternalLink,
FolderPlus,
MoreHorizontal,
Plus,
Search,
SlidersHorizontal,
Upload,
X,
} from "lucide-react";
import {
Button,
DropdownMenu,
DropdownMenuContent,
DropdownMenuItem,
DropdownMenuSeparator,
DropdownMenuTrigger,
copyToClipboard,
useConfirmation,
} from "@termix/plugin-sdk/ui";
import { createSnippetsApi } from "./snippets-api";
import { useSnippetRunner, type TargetHost } from "./use-snippet-runner";
import {
TargetTerminals,
toRunTargets,
useOpenTerminals,
} from "./TargetTerminals";
import { SnippetShareView, type ShareTarget } from "./SnippetShareView";
import { SnippetEditor, type SnippetFormValues } from "./SnippetEditor";
import { SnippetSettings } from "./SnippetSettings";
import { readSnippetSettings } from "./settings";
import {
SnippetFolderDialog,
type FolderFormValues,
} from "./SnippetFolderDialog";
import { SnippetFolderRow, SnippetRow, type DropPosition } from "./SnippetTree";
import {
errorMessage,
parseHostFilter,
type Snippet,
type SnippetFolder,
} from "./types";
const DOCS_URL = "https://docs.termix.site/features/terminal/snippets";
type View =
| { kind: "list" }
| { kind: "edit"; snippet: Snippet | null; folder?: string }
| { kind: "settings" }
| { kind: "share"; target: ShareTarget };
interface FolderGroup {
name: string;
folder: SnippetFolder | null;
snippets: Snippet[];
}
function matchesQuery(snippet: Snippet, query: string): boolean {
return (
snippet.name.toLowerCase().includes(query) ||
(snippet.description ?? "").toLowerCase().includes(query) ||
snippet.content.toLowerCase().includes(query)
);
}
export function SnippetsPanel({ active: _active }: PanelProps) {
const { t } = useTranslation();
const api = usePluginApi();
const client = useMemo(() => createSnippetsApi(api), [api]);
const canView = usePermission("view");
const canCreate = usePermission("create");
const canEdit = usePermission("edit");
const canDelete = usePermission("delete");
const canShare = usePermission("share");
const settings = useSettings("user");
const display = readSnippetSettings(settings.values);
const {
runSnippet,
runOnActive,
runOnHosts,
dialog: runnerDialog,
} = useSnippetRunner(display.confirmExecution);
const openTerminals = useOpenTerminals();
const [selectedTerminals, setSelectedTerminals] = useState<Set<string>>(
() => new Set(),
);
useEffect(() => {
setSelectedTerminals((prev) => {
const open = new Set(openTerminals.map((terminal) => terminal.id));
const next = new Set([...prev].filter((id) => open.has(id)));
return next.size === prev.size ? prev : next;
});
}, [openTerminals]);
const { hosts } = useHosts();
const { confirmWithToast } = useConfirmation();
const [snippets, setSnippets] = useState<Snippet[]>([]);
const [folders, setFolders] = useState<SnippetFolder[]>([]);
const [loading, setLoading] = useState(true);
const [search, setSearch] = useState("");
const [view, setView] = useState<View>({ kind: "list" });
// Folders the user opened or closed by hand; the rest follow the setting.
const [folderOverrides, setFolderOverrides] = useState<Map<string, boolean>>(
new Map(),
);
const [folderDialog, setFolderDialog] = useState<{
folder: SnippetFolder | null;
/** The name being edited, set even when the folder has no metadata row. */
editName: string | null;
} | null>(null);
const [dragged, setDragged] = useState<Snippet | null>(null);
const [dropTarget, setDropTarget] = useState<{
id: number;
position: DropPosition;
} | null>(null);
const fileInputRef = useRef<HTMLInputElement>(null);
const importOverwriteRef = useRef(false);
const hostsById = useMemo(
() => new Map(hosts.map((host) => [Number(host.id), host])),
[hosts],
);
function targetHostsOf(snippet: Snippet): TargetHost[] {
if (snippet.isNote) return [];
return parseHostFilter(snippet.hostFilter).flatMap((id) => {
const host = hostsById.get(id);
return host
? [
{
id,
name: host.name,
ip: host.ip,
username: host.username,
port: host.port,
},
]
: [];
});
}
const load = useCallback(async () => {
if (!canView) {
setLoading(false);
return;
}
try {
const [snippetList, folderList] = await Promise.all([
client.list(),
client.listFolders(),
]);
setSnippets(Array.isArray(snippetList) ? snippetList : []);
setFolders(Array.isArray(folderList) ? folderList : []);
} catch (err) {
toast.error(errorMessage(err, t("loadFailed")));
} finally {
setLoading(false);
}
}, [canView, client, t]);
useEffect(() => {
void load();
}, [load]);
const query = search.trim().toLowerCase();
const { groups, rootSnippets } = useMemo(() => {
const byFolder = new Map<string, FolderGroup>();
for (const folder of folders) {
byFolder.set(folder.name, {
name: folder.name,
folder,
snippets: [],
});
}
const root: Snippet[] = [];
for (const snippet of snippets) {
if (query && !matchesQuery(snippet, query)) continue;
if (!snippet.folder) {
root.push(snippet);
continue;
}
const group = byFolder.get(snippet.folder) ?? {
name: snippet.folder,
folder: null,
snippets: [],
};
group.snippets.push(snippet);
byFolder.set(snippet.folder, group);
}
const sorted = Array.from(byFolder.values())
.filter((group) => !query || group.snippets.length > 0)
.sort((a, b) => a.name.localeCompare(b.name));
return { groups: sorted, rootSnippets: root };
}, [folders, snippets, query]);
const folderNames = useMemo(
() =>
Array.from(
new Set([
...folders.map((f) => f.name),
...snippets.flatMap((s) => (s.folder ? [s.folder] : [])),
]),
).sort((a, b) => a.localeCompare(b)),
[folders, snippets],
);
function isOpen(name: string): boolean {
if (query) return true;
return folderOverrides.get(name) ?? !display.foldersCollapsed;
}
function toggleFolder(name: string) {
setFolderOverrides((prev) => {
const next = new Map(prev);
next.set(name, !isOpen(name));
return next;
});
}
function setAllFolders(open: boolean) {
setFolderOverrides(new Map(folderNames.map((name) => [name, open])));
}
async function handleSaveSnippet(values: SnippetFormValues) {
if (view.kind !== "edit") return false;
const body = {
name: values.name.trim(),
content: values.content.trim(),
description: values.description.trim() || null,
folder: values.folder || null,
isNote: values.isNote,
hostFilter:
!values.isNote && values.hostIds.length > 0 ? values.hostIds : null,
};
const editing = view.snippet;
try {
if (editing) {
await client.update(editing.id, body);
toast.success(t("updateSuccess"));
} else {
await client.create(body);
toast.success(t("createSuccess"));
}
if (body.folder) {
setFolderOverrides((prev) => new Map(prev).set(body.folder!, true));
}
setView({ kind: "list" });
await load();
return true;
} catch (err) {
toast.error(
errorMessage(err, t(editing ? "updateFailed" : "createFailed")),
);
return false;
}
}
function handleRun(snippet: Snippet) {
const targets = targetHostsOf(snippet);
const terminalTargets = toRunTargets(openTerminals, selectedTerminals);
if (targets.length > 0 && !snippet.isNote) runOnHosts(snippet, targets);
else if (terminalTargets.length > 0) runSnippet(snippet, terminalTargets);
else runOnActive(snippet, null);
}
function endDrag() {
setDragged(null);
setDropTarget(null);
}
// Drops the dragged snippet next to a row, taking that row's folder.
async function handleDropOnRow(target: Snippet) {
const source = dragged;
const position = dropTarget?.position ?? "below";
endDrag();
if (!source || source.id === target.id) return;
const folder = target.folder ?? null;
const group = snippets.filter(
(s) => (s.folder ?? null) === folder && s.id !== source.id,
);
const index = group.findIndex((s) => s.id === target.id);
group.splice(position === "above" ? index : index + 1, 0, {
...source,
folder,
});
await saveOrder(group, folder);
}
async function handleDropOnFolder(folder: string) {
const source = dragged;
endDrag();
if (!source || source.folder === folder) return;
const group = [
...snippets.filter((s) => s.folder === folder && s.id !== source.id),
{ ...source, folder },
];
setFolderOverrides((prev) => new Map(prev).set(folder, true));
await saveOrder(group, folder);
}
async function saveOrder(group: Snippet[], folder: string | null) {
const ordered = group.map((s, order) => ({ ...s, order }));
const byId = new Map(ordered.map((s) => [s.id, s]));
setSnippets((prev) => {
const rest = prev.filter((s) => !byId.has(s.id));
return [...rest, ...ordered];
});
try {
await client.reorder(
ordered.map((s) => ({
id: s.id,
order: s.order,
folder: folder ?? "",
})),
);
} catch (err) {
toast.error(errorMessage(err, t("reorderFailed")));
await load();
}
}
function handleDeleteSnippet(snippet: Snippet) {
void confirmWithToast(
t("deleteSnippetConfirm", { name: snippet.name }),
async () => {
try {
await client.remove(snippet.id);
toast.success(t("deleteSuccess"));
await load();
} catch (err) {
toast.error(errorMessage(err, t("deleteFailed")));
}
},
t("delete"),
t("cancel"),
);
}
async function handleMoveSnippet(snippet: Snippet, folder: string | null) {
try {
await client.update(snippet.id, { folder });
await load();
} catch (err) {
toast.error(errorMessage(err, t("updateFailed")));
}
}
async function handleCopy(snippet: Snippet) {
const ok = await copyToClipboard(snippet.content);
if (ok) toast.success(t("copySuccess"));
else toast.error(t("copyFailed"));
}
async function handleSaveFolder(values: FolderFormValues) {
const editName = folderDialog?.editName ?? null;
try {
if (editName === null) {
await client.createFolder(values);
toast.success(t("folderCreateSuccess"));
} else {
// A folder named only on its snippets gets a metadata row first.
if (!folderDialog?.folder) {
await client.createFolder({ name: editName });
}
if (values.name !== editName) {
await client.renameFolder(editName, values.name);
setFolderOverrides((prev) => {
const next = new Map(prev);
const wasOpen = next.get(editName);
next.delete(editName);
if (wasOpen !== undefined) next.set(values.name, wasOpen);
return next;
});
}
await client.updateFolderMetadata(values.name, {
color: values.color,
icon: values.icon,
});
toast.success(t("folderEditSuccess"));
}
setFolderDialog(null);
await load();
} catch (err) {
toast.error(
errorMessage(
err,
t(editName === null ? "folderCreateFailed" : "folderEditFailed"),
),
);
}
}
function handleDeleteFolder(name: string) {
void confirmWithToast(
t("deleteFolderConfirm", { name }),
async () => {
try {
await client.deleteFolder(name);
toast.success(t("folderDeleteSuccess"));
await load();
} catch (err) {
toast.error(errorMessage(err, t("folderDeleteFailed")));
}
},
t("delete"),
t("cancel"),
);
}
async function handleExport() {
try {
const data = await client.export();
const blob = new Blob([JSON.stringify(data, null, 2)], {
type: "application/json",
});
const url = URL.createObjectURL(blob);
const link = document.createElement("a");
link.href = url;
link.download = "termix-snippets.json";
document.body.appendChild(link);
link.click();
document.body.removeChild(link);
URL.revokeObjectURL(url);
toast.success(t("exportSuccess"));
} catch (err) {
toast.error(errorMessage(err, t("exportFailed")));
}
}
async function handleImport(file: File) {
let parsed: { snippets?: unknown; folders?: unknown };
try {
parsed = JSON.parse(await file.text());
} catch {
toast.error(t("importInvalidFile"));
return;
}
if (
!parsed ||
typeof parsed !== "object" ||
(!Array.isArray(parsed.snippets) && !Array.isArray(parsed.folders))
) {
toast.error(t("importInvalidFile"));
return;
}
try {
const result = (await client.bulkImport({
snippets: Array.isArray(parsed.snippets) ? parsed.snippets : [],
folders: Array.isArray(parsed.folders) ? parsed.folders : [],
overwrite: importOverwriteRef.current,
})) as {
snippetsImported?: number;
snippetsUpdated?: number;
snippetsSkipped?: number;
};
toast.success(
t("importSuccess", {
imported: result.snippetsImported ?? 0,
updated: result.snippetsUpdated ?? 0,
skipped: result.snippetsSkipped ?? 0,
}),
);
await load();
} catch (err) {
toast.error(errorMessage(err, t("importFailed")));
}
}
function startImport(overwrite: boolean) {
importOverwriteRef.current = overwrite;
fileInputRef.current?.click();
}
if (!canView) {
return null;
}
if (view.kind === "edit") {
return (
<div className="flex flex-col flex-1 min-h-0 overflow-hidden">
<SnippetEditor
snippet={view.snippet}
defaultFolder={view.folder}
folders={folders}
onBack={() => setView({ kind: "list" })}
onSave={handleSaveSnippet}
/>
{runnerDialog}
</div>
);
}
if (view.kind === "share") {
return (
<div className="flex flex-col flex-1 min-h-0 overflow-hidden">
<SnippetShareView
target={view.target}
client={client}
onBack={() => setView({ kind: "list" })}
/>
</div>
);
}
if (view.kind === "settings") {
return (
<div className="flex flex-col flex-1 min-h-0 overflow-hidden">
<SnippetSettings
settings={settings}
onBack={() => setView({ kind: "list" })}
/>
</div>
);
}
let stripe = 0;
const renderSnippet = (snippet: Snippet) => (
<SnippetRow
key={snippet.id}
snippet={snippet}
stripeIndex={stripe++}
showCommand={display.showCommands}
folderNames={folderNames}
targetHostNames={targetHostsOf(snippet).map(
(host) => host.name || host.ip || String(host.id),
)}
canEdit={canEdit}
canDelete={canDelete}
canShare={canShare}
draggable={canEdit && !snippet.isShared && !query}
dragActive={dragged !== null}
isDragging={dragged?.id === snippet.id}
dropIndicator={
dropTarget?.id === snippet.id && dragged?.id !== snippet.id
? dropTarget.position
: null
}
onRun={() => handleRun(snippet)}
onCopy={() => void handleCopy(snippet)}
onEdit={() => setView({ kind: "edit", snippet })}
onShare={() =>
setView({ kind: "share", target: { kind: "snippet", snippet } })
}
onMove={(folder) => void handleMoveSnippet(snippet, folder)}
onDelete={() => handleDeleteSnippet(snippet)}
onDragStart={() => setDragged(snippet)}
onDragEnd={endDrag}
onDragOverRow={(position) =>
setDropTarget((prev) =>
prev?.id === snippet.id && prev.position === position
? prev
: { id: snippet.id, position },
)
}
onDropRow={() => void handleDropOnRow(snippet)}
/>
);
const isEmpty = groups.length === 0 && rootSnippets.length === 0;
return (
<div className="flex flex-col flex-1 min-h-0 overflow-hidden">
<div className="flex flex-col px-2 py-1.5 shrink-0 border-b border-border/60 gap-1.5">
<div className="flex items-center gap-2 px-2.5 h-7 bg-muted/60 border border-border/60">
<Search className="size-3 text-muted-foreground/60 shrink-0" />
<input
value={search}
onChange={(e) => setSearch(e.target.value)}
placeholder={t("searchPlaceholder")}
className="flex-1 text-xs bg-transparent outline-none placeholder:text-muted-foreground/50 text-foreground min-w-0"
/>
{search && (
<button
onClick={() => setSearch("")}
title={t("clearSearch")}
className="text-muted-foreground/60 hover:text-muted-foreground transition-colors"
>
<X className="size-3" />
</button>
)}
</div>
<TargetTerminals
terminals={openTerminals}
selected={selectedTerminals}
onChange={setSelectedTerminals}
/>
<input
ref={fileInputRef}
type="file"
accept=".json,application/json"
className="hidden"
onChange={(e) => {
const file = e.target.files?.[0];
e.target.value = "";
if (file) void handleImport(file);
}}
/>
<div className="flex items-center gap-1.5 overflow-x-auto overflow-y-hidden toolbar-scrollbar">
<div className="flex items-center border border-border shrink-0">
<DropdownMenu>
<DropdownMenuTrigger asChild>
<Button
variant="ghost"
size="icon"
className="size-7 text-muted-foreground hover:text-foreground"
title={t("importExport")}
>
<Upload className="size-3.5" />
</Button>
</DropdownMenuTrigger>
<DropdownMenuContent align="start" className="text-xs">
{canCreate && (
<>
<DropdownMenuItem onClick={() => startImport(false)}>
<Upload className="size-3.5 mr-2" />
{t("importSkipExisting")}
</DropdownMenuItem>
<DropdownMenuItem onClick={() => startImport(true)}>
<Upload className="size-3.5 mr-2" />
{t("importOverwrite")}
</DropdownMenuItem>
<DropdownMenuSeparator />
</>
)}
<DropdownMenuItem
onClick={() => void handleExport()}
disabled={snippets.length === 0}
>
<Download className="size-3.5 mr-2" />
{t("exportSnippets")}
</DropdownMenuItem>
</DropdownMenuContent>
</DropdownMenu>
<div className="w-px self-stretch bg-border" />
<DropdownMenu>
<DropdownMenuTrigger asChild>
<Button
variant="ghost"
size="icon"
className="size-7 text-muted-foreground hover:text-foreground"
title={t("moreActions")}
>
<MoreHorizontal className="size-3.5" />
</Button>
</DropdownMenuTrigger>
<DropdownMenuContent align="start" className="text-xs min-w-44">
{canCreate && (
<>
<DropdownMenuItem
onClick={() =>
setFolderDialog({ folder: null, editName: null })
}
>
<FolderPlus className="size-3.5 mr-2" />
{t("newFolder")}
</DropdownMenuItem>
<DropdownMenuSeparator />
</>
)}
<DropdownMenuItem onClick={() => setAllFolders(true)}>
<ChevronsUpDown className="size-3.5 mr-2" />
{t("expandAll")}
</DropdownMenuItem>
<DropdownMenuItem onClick={() => setAllFolders(false)}>
<ChevronsDownUp className="size-3.5 mr-2" />
{t("collapseAll")}
</DropdownMenuItem>
</DropdownMenuContent>
</DropdownMenu>
<div className="w-px self-stretch bg-border" />
<a
href={DOCS_URL}
target="_blank"
rel="noreferrer"
title={t("docsLink")}
className="flex items-center justify-center size-7 text-muted-foreground hover:text-foreground shrink-0 transition-colors"
>
<ExternalLink className="size-3.5" />
</a>
</div>
<div className="flex items-center border border-border shrink-0">
<button
onClick={() => setView({ kind: "settings" })}
title={t("settingsTitle")}
className="flex items-center justify-center size-7 text-muted-foreground hover:text-foreground hover:bg-muted transition-colors shrink-0"
>
<SlidersHorizontal className="size-3.5" />
</button>
</div>
{canCreate && (
<div className="flex items-center border border-accent-brand/30 ml-auto shrink-0">
<button
onClick={() => setView({ kind: "edit", snippet: null })}
title={t("newSnippet")}
className="flex items-center justify-center gap-1 h-7 px-2 text-[10px] font-medium text-accent-brand hover:bg-accent-brand/10 transition-colors"
>
<Plus className="size-3 shrink-0" />
<span className="hidden min-[280px]:inline">
{t("newSnippet")}
</span>
</button>
</div>
)}
</div>
</div>
<div className="flex-1 min-h-0 overflow-y-auto">
{loading ? (
<div className="p-4 text-xs text-muted-foreground">
{t("loading")}
</div>
) : isEmpty ? (
<div className="flex flex-col items-center gap-1 px-4 py-8 text-center">
<span className="text-xs font-medium text-muted-foreground">
{t(query ? "noSearchResults" : "emptyTitle")}
</span>
{!query && (
<span className="text-[11px] text-muted-foreground/60">
{t("emptyDescription")}
</span>
)}
</div>
) : (
<>
{groups.map((group, index) => {
const open = isOpen(group.name);
return (
<SnippetFolderRow
key={group.name}
name={group.name}
folder={group.folder}
count={group.snippets.length}
open={open}
stripeIndex={index}
canCreate={canCreate}
canEdit={canEdit}
canDelete={canDelete}
canShare={canShare}
acceptsDrop={
dragged !== null && dragged.folder !== group.name
}
onToggle={() => toggleFolder(group.name)}
onAddSnippet={() =>
setView({
kind: "edit",
snippet: null,
folder: group.name,
})
}
onEdit={() =>
setFolderDialog({
folder: group.folder,
editName: group.name,
})
}
onShare={() =>
setView({
kind: "share",
target: { kind: "folder", name: group.name },
})
}
onDelete={() => handleDeleteFolder(group.name)}
onDropSnippet={() => void handleDropOnFolder(group.name)}
>
{open && group.snippets.map(renderSnippet)}
</SnippetFolderRow>
);
})}
{rootSnippets.map(renderSnippet)}
{dragged?.folder && (
<div
onDragOver={(e) => e.preventDefault()}
onDrop={(e) => {
e.preventDefault();
const source = dragged;
endDrag();
void saveOrder(
[
...snippets.filter((s) => !s.folder),
{ ...source, folder: null },
],
null,
);
}}
className="m-2 px-3 py-3 text-center text-[11px] text-muted-foreground border border-dashed border-border"
>
{t("dropToRemoveFromFolder")}
</div>
)}
</>
)}
</div>
{folderDialog && (
<SnippetFolderDialog
folder={
folderDialog.folder ??
(folderDialog.editName
? ({
name: folderDialog.editName,
color: null,
icon: null,
} as SnippetFolder)
: null)
}
onClose={() => setFolderDialog(null)}
onSave={handleSaveFolder}
/>
)}
{runnerDialog}
</div>
);
}
@@ -0,0 +1,148 @@
import { useEffect, useState } from "react";
import { Terminal } from "lucide-react";
import { invokeAction, useTranslation } from "@termix/plugin-sdk/frontend";
import type { RunTarget } from "./use-snippet-runner";
export interface OpenTerminal {
id: string;
label?: string;
hostName?: string;
ip?: string;
username?: string;
port?: number;
}
const POLL_MS = 1500;
/** The open terminal sessions, refreshed while the panel is on screen. */
export function useOpenTerminals(): OpenTerminal[] {
const [terminals, setTerminals] = useState<OpenTerminal[]>([]);
useEffect(() => {
let cancelled = false;
const load = () => {
void invokeAction("terminal.listSessions")
.then((result) => {
if (cancelled) return;
const next = Array.isArray(result) ? (result as OpenTerminal[]) : [];
setTerminals((prev) =>
prev.length === next.length &&
prev.every(
(item, i) =>
item.id === next[i].id && item.label === next[i].label,
)
? prev
: next,
);
})
.catch(() => {
if (!cancelled) setTerminals([]);
});
};
load();
const timer = setInterval(load, POLL_MS);
return () => {
cancelled = true;
clearInterval(timer);
};
}, []);
return terminals;
}
export function toRunTargets(
terminals: OpenTerminal[],
selected: Set<string>,
): RunTarget[] {
return terminals
.filter((terminal) => selected.has(terminal.id))
.map((terminal) => ({
sessionId: terminal.id,
host: {
name: terminal.hostName,
ip: terminal.ip,
username: terminal.username,
port: terminal.port,
},
}));
}
/** Pick terminals to run in; with none picked a snippet runs in the active one. */
export function TargetTerminals({
terminals,
selected,
onChange,
}: {
terminals: OpenTerminal[];
selected: Set<string>;
onChange: (next: Set<string>) => void;
}) {
const { t } = useTranslation();
if (terminals.length < 2) return null;
const toggle = (id: string) => {
const next = new Set(selected);
if (next.has(id)) next.delete(id);
else next.add(id);
onChange(next);
};
return (
<div className="flex flex-col gap-1">
<div className="flex items-center justify-between px-0.5">
<span className="text-[10px] font-semibold uppercase tracking-wider text-muted-foreground">
{t("targetTerminals")}{" "}
<span className="font-normal normal-case tracking-normal text-muted-foreground/60">
({t("targetTerminalsHint")})
</span>
</span>
<div className="flex items-center gap-2">
<button
type="button"
onClick={() => onChange(new Set(terminals.map((item) => item.id)))}
className="text-[10px] text-accent-brand hover:text-accent-brand/70"
>
{t("selectAll")}
</button>
<button
type="button"
onClick={() => onChange(new Set())}
className="text-[10px] text-accent-brand hover:text-accent-brand/70"
>
{t("selectNone")}
</button>
</div>
</div>
<div className="flex flex-col gap-0.5 max-h-32 overflow-y-auto thin-scrollbar">
{terminals.map((terminal) => {
const isSelected = selected.has(terminal.id);
return (
<button
type="button"
key={terminal.id}
aria-pressed={isSelected}
onClick={() => toggle(terminal.id)}
className={`flex items-center gap-2 px-2 py-1 border text-left transition-colors ${
isSelected
? "border-accent-brand/40 bg-accent-brand/10 text-accent-brand"
: "border-border text-muted-foreground hover:text-foreground"
}`}
>
<span
className={`size-3 border-2 flex items-center justify-center shrink-0 ${
isSelected
? "border-accent-brand bg-accent-brand"
: "border-border/60"
}`}
>
{isSelected && <span className="size-1.5 bg-background" />}
</span>
<Terminal className="size-3 shrink-0 opacity-60" />
<span className="text-xs truncate flex-1">
{terminal.label || terminal.hostName || terminal.id}
</span>
</button>
);
})}
</div>
</div>
);
}
@@ -0,0 +1,41 @@
import type { CSSProperties } from "react";
import {
Box,
Cloud,
Copy,
Cpu,
Database,
Folder,
Globe,
Network,
Server,
Settings,
type LucideIcon,
} from "lucide-react";
import type { FolderIconId } from "./types";
const ICONS: Record<FolderIconId, LucideIcon> = {
folder: Folder,
server: Server,
cloud: Cloud,
database: Database,
box: Box,
network: Network,
copy: Copy,
settings: Settings,
cpu: Cpu,
globe: Globe,
};
export function FolderIcon({
icon,
className,
style,
}: {
icon: string | null | undefined;
className?: string;
style?: CSSProperties;
}) {
const Icon = ICONS[(icon ?? "folder") as FolderIconId] ?? Folder;
return <Icon className={className} style={style} />;
}
+182
View File
@@ -0,0 +1,182 @@
import { Clipboard, Play } from "lucide-react";
import type {
PaletteItem,
PanelProps,
PluginHostRecord,
TermixApp,
} from "@termix/plugin-sdk/frontend";
import type { Snippet } from "./types";
import { SnippetsPanel } from "./SnippetsPanel";
import { createSnippetsApi } from "./snippets-api";
import {
extractSnippetInputs,
resolveSnippetContent,
type SnippetHostContext,
} from "../shared/variables.js";
import {
readStartupSnippetId,
snippetHostSettings,
} from "../shared/host-settings.js";
import { AdminUserSnippets } from "./AdminUserSnippets";
import { SnippetOverlay } from "./SnippetOverlay";
import { HostSnippetsSection } from "./HostSnippetsSection";
import { QuickActionButtons } from "./QuickActionButtons";
import { resetPrompts } from "./prompt-store";
import { fetchSnippet, runInSession } from "./run-flows";
import {
RUN_SNIPPET_ACTION,
RunSnippetEditor,
RunSnippetSummary,
runSnippetBinding,
validateRunSnippet,
} from "./keybinding";
function hostContext(host: unknown): SnippetHostContext | null {
if (!host || typeof host !== "object") return null;
const record = host as Record<string, unknown>;
return {
ip: typeof record.ip === "string" ? record.ip : undefined,
username: typeof record.username === "string" ? record.username : undefined,
port:
typeof record.port === "number" || typeof record.port === "string"
? record.port
: undefined,
name: typeof record.name === "string" ? record.name : undefined,
};
}
export function activate(app: TermixApp): void {
app.onDispose(resetPrompts);
app.registerRailItem({
id: "snippets",
icon: Play,
titleKey: "nav.snippets",
permission: "view",
// The most approachable power feature, so Simple keeps it.
simplePreset: true,
});
app.registerPanel("snippets", (props: PanelProps) => (
<SnippetsPanel {...props} />
));
app.registerPaletteEntry({
id: "snippets.run",
titleKey: "nav.snippets",
scope: "global",
icon: Play,
run: async (shell) => {
shell.openRailView("snippets");
},
});
// Every snippet in the command palette, run in the terminal the user is
// working in.
app.registerPaletteGroup({
id: "snippets",
titleKey: "nav.snippets",
order: 10,
load: async (): Promise<PaletteItem[]> => {
if (!(await app.hasPermission("view"))) return [];
const snippets: Snippet[] = await createSnippetsApi(app.api)
.list()
.catch(() => []);
return snippets.map((snippet) => ({
id: String(snippet.id),
title: snippet.name,
description: snippet.content,
icon: snippet.isNote ? Clipboard : Play,
keywords: [snippet.description ?? ""],
needsTarget: true,
hint: app.t(snippet.isNote ? "paletteHintPaste" : "paletteHintRun"),
run: ({ targetTab }) => {
if (!targetTab) return;
void runInSession(
app,
snippet,
{ sessionId: targetTab.id },
hostContext(targetTab.host),
{ announce: true },
);
},
}));
},
});
// Keeps the input dialog and the confirm setting alive at the shell root.
app.registerSlotContribution("shell.overlay", {
actionId: "snippets.overlay",
titleKey: "nav.snippets",
kind: "component",
component: SnippetOverlay as never,
});
app.registerKeybindingAction({
id: RUN_SNIPPET_ACTION,
titleKey: "keybindings.runSnippet",
editor: RunSnippetEditor,
summary: RunSnippetSummary,
validate: validateRunSnippet,
run: (action, context) => runSnippetBinding(app, action, context),
});
app.registerHostEditorSection({
id: "snippets",
group: "ssh",
titleKey: "host.tabTitle",
icon: Play,
order: 15,
defaults: true,
component: HostSnippetsSection,
});
// Host Metrics shows a host's quick actions as toolbar buttons.
app.registerSlotContribution("host-metrics.toolbar", {
actionId: "snippets.quickActions",
titleKey: "host.quickActionsTitle",
kind: "component",
component: QuickActionButtons,
});
app.registerSlotContribution("onboarding.features", {
actionId: "snippets.feature",
titleKey: "onboarding.feature_snippets",
descriptionKey: "onboarding.feature_snippets_desc",
icon: Play,
});
// The admin "manage user" panel's Snippets tab.
app.registerSlotContribution("admin.userTabs", {
actionId: "snippets.adminUserTab",
titleKey: "admin.tabTitle",
kind: "component",
component: AdminUserSnippets as never,
order: 10,
});
// The command a terminal types when it connects to a host: the host's
// startup snippet with its variables filled in, or null.
app.registerAction("snippets.startupCommand", (async (
host: PluginHostRecord | null,
vars?: SnippetHostContext,
) => {
const id = readStartupSnippetId(snippetHostSettings(host).startupSnippetId);
if (id === null) return null;
const snippet = await fetchSnippet(app, id);
if (!snippet) return null;
return resolveSnippetContent(snippet.content, vars ?? hostContext(host));
}) as never);
// For pickers in other plugins (the AI assistant's @-mentions): id and name.
app.registerAction("snippets.list", (async () => {
const snippets = await createSnippetsApi(app.api)
.list()
.catch(() => []);
return snippets.map((snippet) => ({ id: snippet.id, name: snippet.name }));
}) as never);
// Variable handling for commands other plugins run (fleets' run box).
app.registerAction("snippets.extractInputs", ((content: string) =>
extractSnippetInputs(typeof content === "string" ? content : "")) as never);
}
@@ -0,0 +1,89 @@
import {
useTranslation,
type KeybindingAction,
type KeybindingActionEditorProps,
type KeybindingRunContext,
type TermixApp,
} from "@termix/plugin-sdk/frontend";
import { fetchSnippet, runInSession } from "./run-flows";
import { useSnippetOptions } from "./use-snippet-options";
/** Stored as action.type; kept from 2.8 so saved bindings keep working. */
export const RUN_SNIPPET_ACTION = "runSnippet";
function snippetIdOf(action: KeybindingAction): string {
return typeof action.snippetId === "string" ? action.snippetId : "";
}
/** Picks the snippet a "Run snippet" binding runs. */
export function RunSnippetEditor({
action,
onChange,
}: KeybindingActionEditorProps) {
const { t } = useTranslation();
const { options } = useSnippetOptions();
return (
<div className="flex flex-col gap-1.5">
<label className="text-xs font-semibold">
{t("keybindings.snippetLabel")}
</label>
<select
aria-label={t("keybindings.snippetLabel")}
value={snippetIdOf(action)}
onChange={(e) =>
onChange({
type: RUN_SNIPPET_ACTION,
snippetId: e.target.value || undefined,
appendEnter: true,
})
}
className="h-8 border border-border bg-background px-2 text-xs outline-none focus:ring-1 focus:ring-ring"
>
<option value="">{t("keybindings.selectSnippet")}</option>
{options.map((snippet) => (
<option key={snippet.id} value={String(snippet.id)}>
{snippet.name}
</option>
))}
</select>
</div>
);
}
/** The bound snippet's name in the binding list, or a warning once it is gone. */
export function RunSnippetSummary({ action }: KeybindingActionEditorProps) {
const { t } = useTranslation();
const { options, loaded } = useSnippetOptions();
if (!loaded) return null;
const snippet = options.find((s) => String(s.id) === snippetIdOf(action));
if (snippet) return <span>({snippet.name})</span>;
return (
<span className="text-destructive">
({t("keybindings.snippetMissing")})
</span>
);
}
export function validateRunSnippet(action: KeybindingAction): string | null {
return /^\d+$/.test(snippetIdOf(action))
? null
: "keybindings.snippetRequired";
}
/** Runs a bound snippet in the terminal the key was pressed in. */
export function runSnippetBinding(
app: Pick<TermixApp, "api" | "t">,
action: KeybindingAction,
context: KeybindingRunContext,
): void {
void fetchSnippet(app, Number(snippetIdOf(action))).then((snippet) => {
if (!snippet) return;
void runInSession(
app,
{ ...snippet, isNote: false },
{ sessionId: context.sessionId, send: context.send },
context.host ?? null,
{ pressEnter: action.appendEnter !== false },
);
});
}
@@ -0,0 +1,72 @@
import { useSyncExternalStore } from "react";
import type { SnippetHostContext } from "../shared/variables.js";
export interface PendingPrompt {
snippet: { name: string; content: string };
host: SnippetHostContext | null;
settle: (values: Record<string, string> | null) => void;
}
let pending: PendingPrompt | null = null;
let confirmExecution = false;
const listeners = new Set<() => void>();
function notify(): void {
for (const listener of [...listeners]) listener();
}
function subscribe(listener: () => void): () => void {
listeners.add(listener);
return () => listeners.delete(listener);
}
/**
* Asks for a snippet's $INPUT_n values through the dialog the overlay draws.
* Resolves null when the user cancels. A second request cancels the first.
*/
export function askForInputs(
snippet: { name: string; content: string },
host: SnippetHostContext | null,
): Promise<Record<string, string> | null> {
pending?.settle(null);
return new Promise((resolve) => {
const prompt: PendingPrompt = {
snippet,
host,
settle: (values) => {
if (pending === prompt) {
pending = null;
notify();
}
resolve(values);
},
};
pending = prompt;
notify();
});
}
export function usePendingPrompt(): PendingPrompt | null {
return useSyncExternalStore(
subscribe,
() => pending,
() => pending,
);
}
/** Kept current by the overlay from the user's confirmExecution setting. */
export function setConfirmExecution(value: boolean): void {
confirmExecution = value;
}
export function shouldConfirmExecution(): boolean {
return confirmExecution;
}
/** Cancels anything waiting, for deactivate. */
export function resetPrompts(): void {
pending?.settle(null);
pending = null;
confirmExecution = false;
notify();
}
+121
View File
@@ -0,0 +1,121 @@
import { toast } from "sonner";
import { invokeAction, type TermixApp } from "@termix/plugin-sdk/frontend";
import {
hasSnippetInputs,
resolveSnippetContent,
type SnippetHostContext,
} from "../shared/variables.js";
import { askForInputs, shouldConfirmExecution } from "./prompt-store";
import { createSnippetsApi } from "./snippets-api";
export interface RunnableSnippet {
id: number;
name: string;
content: string;
isNote?: boolean;
}
/** Where a run sends its text: a session by id, or a raw writer. */
export interface RunTarget {
sessionId?: string;
send?: (data: string) => void;
}
/**
* The snippet with its variables filled in, asking for $INPUT_n values when
* it has any. Null when the user cancels.
*/
export async function resolveForRun(
snippet: { name: string; content: string },
host: SnippetHostContext | null,
): Promise<string | null> {
if (!hasSnippetInputs(snippet.content)) {
return resolveSnippetContent(snippet.content, host);
}
const values = await askForInputs(snippet, host);
if (!values) return null;
return resolveSnippetContent(snippet.content, host, values);
}
/** Runs `execute` now, or after the user confirms when they asked to. */
export function confirmThenRun(
app: Pick<TermixApp, "t">,
name: string,
execute: () => void,
): void {
if (!shouldConfirmExecution()) {
execute();
return;
}
toast(app.t("confirmRunMessage", { name }), {
action: { label: app.t("confirmRunButton"), onClick: execute },
duration: 6000,
});
}
/**
* Types a snippet into a terminal session: resolves its variables, asks for
* inputs and confirmation as the user's settings say, then sends it. A note
* is pasted without running.
*/
export async function runInSession(
app: Pick<TermixApp, "t">,
snippet: RunnableSnippet,
target: RunTarget,
host: SnippetHostContext | null,
options: { pressEnter?: boolean; announce?: boolean } = {},
): Promise<void> {
const content = await resolveForRun(snippet, host);
if (content === null) return;
const run = !snippet.isNote && options.pressEnter !== false;
const send = async () => {
let sent = true;
if (target.send) {
target.send(content + (run ? "\r" : ""));
} else if (target.sessionId) {
sent =
(await invokeAction(
"terminal.sendToSession",
target.sessionId,
content,
{
run,
},
)) === true;
} else {
sent = false;
}
if (!options.announce) return;
if (!sent) {
toast.error(app.t("noTerminalTabsOpen"));
return;
}
toast.success(
app.t(snippet.isNote ? "pasteSuccess" : "runSuccess", {
name: snippet.name,
count: 1,
}),
);
};
if (snippet.isNote) void send();
else confirmThenRun(app, snippet.name, () => void send());
}
/** One snippet by id, or null when it is gone or unreadable. */
export async function fetchSnippet(
app: Pick<TermixApp, "api">,
id: number,
): Promise<RunnableSnippet | null> {
if (!Number.isInteger(id) || id <= 0) return null;
const snippet = await createSnippetsApi(app.api)
.get(id)
.catch(() => null);
return snippet
? {
id: snippet.id,
name: snippet.name,
content: snippet.content,
isNote: snippet.isNote,
}
: null;
}
+15
View File
@@ -0,0 +1,15 @@
export interface SnippetDisplaySettings {
foldersCollapsed: boolean;
showCommands: boolean;
confirmExecution: boolean;
}
export function readSnippetSettings(
values: Record<string, unknown>,
): SnippetDisplaySettings {
return {
foldersCollapsed: values.foldersCollapsed !== false,
showCommands: values.showCommands !== false,
confirmExecution: values.confirmExecution === true,
};
}
@@ -0,0 +1,140 @@
import type { PluginApiClient } from "@termix/plugin-sdk/frontend";
import type { Snippet, SnippetAccessEntry, SnippetFolder } from "./types";
export interface NewSnippetInput {
name: string;
content: string;
description?: string | null;
folder?: string | null;
order?: number | null;
hostFilter?: unknown;
isNote?: boolean;
}
export interface SnippetUpdateInput {
name?: string;
content?: string;
description?: string | null;
folder?: string | null;
order?: number;
hostFilter?: unknown;
isNote?: boolean;
}
export interface SnippetReorderUpdate {
id: number;
order: number;
folder?: string;
}
export interface SnippetExecutionResult {
success: boolean;
output: string;
error?: string;
}
export interface ShareableUser {
id: string;
username: string;
}
export interface ShareableRole {
id: number;
name: string;
displayName: string | null;
}
export interface SnippetShareInput {
targetType: "user" | "role";
targetUserId?: string;
targetRoleId?: number;
expiresAt?: string | null;
}
/**
* The snippets routes, through the plugin's own client. Paths are relative
* to /plugin-api/snippets/, which the client already points at.
*/
export function createSnippetsApi(api: PluginApiClient) {
const data = async <T>(request: Promise<{ data: T }>) => (await request).data;
return {
list: () => data(api.get<Snippet[]>("/")),
get: (id: number) => data(api.get<Snippet>(`/${id}`)),
create: (body: NewSnippetInput) => data(api.post<Snippet>("/", body)),
update: (id: number, body: SnippetUpdateInput) =>
data(api.put<Snippet>(`/${id}`, body)),
remove: (id: number) => data(api.delete<{ success: boolean }>(`/${id}`)),
execute: (
snippetId: number,
hostId: number,
inputValues?: Record<string, string>,
) =>
data(
api.post<SnippetExecutionResult>("/execute", {
snippetId,
hostId,
inputValues,
}),
),
reorder: (updates: SnippetReorderUpdate[]) =>
data(api.put<{ success: boolean }>("/reorder", { snippets: updates })),
export: () =>
data(api.get<{ snippets: unknown[]; folders: unknown[] }>("/export")),
bulkImport: (body: {
snippets?: unknown[];
folders?: unknown[];
overwrite?: boolean;
}) => data(api.post<{ success: boolean }>("/bulk-import", body)),
listFolders: () => data(api.get<SnippetFolder[]>("/folders")),
createFolder: (body: {
name: string;
color?: string | null;
icon?: string | null;
}) => data(api.post<SnippetFolder>("/folders", body)),
updateFolderMetadata: (
name: string,
body: { color?: string | null; icon?: string | null },
) =>
data(
api.put<SnippetFolder>(
`/folders/${encodeURIComponent(name)}/metadata`,
body,
),
),
renameFolder: (oldName: string, newName: string) =>
data(
api.put<{ success: boolean }>("/folders/rename", { oldName, newName }),
),
deleteFolder: (name: string) =>
data(
api.delete<{ success: boolean }>(
`/folders/${encodeURIComponent(name)}`,
),
),
share: (snippetId: number, body: SnippetShareInput) =>
data(api.post<{ success: boolean }>(`/${snippetId}/share`, body)),
shareFolder: (folder: string, body: SnippetShareInput) =>
data(
api.put<{ success: boolean; snippetsShared: number }>("/folder/share", {
folder,
...body,
}),
),
getAccess: (snippetId: number) =>
data(api.get<SnippetAccessEntry[]>(`/${snippetId}/access`)),
revokeAccess: (snippetId: number, accessId: number) =>
data(
api.delete<{ success: boolean }>(`/${snippetId}/access/${accessId}`),
),
shareTargetUsers: () =>
data(api.get<{ users: ShareableUser[] }>("/share-targets/users")),
shareTargetRoles: () =>
data(api.get<{ roles: ShareableRole[] }>("/share-targets/roles")),
listShared: () => data(api.get<{ sharedSnippets: Snippet[] }>("/shared")),
};
}
export type SnippetsApi = ReturnType<typeof createSnippetsApi>;
+84
View File
@@ -0,0 +1,84 @@
export const FOLDER_ICONS = [
"folder",
"server",
"cloud",
"database",
"box",
"network",
"copy",
"settings",
"cpu",
"globe",
] as const;
export type FolderIconId = (typeof FOLDER_ICONS)[number];
export interface Snippet {
id: number;
userId: string;
name: string;
content: string;
description: string | null;
folder: string | null;
order: number;
hostFilter: string | null;
isNote: boolean;
isShared?: boolean;
createdAt: string;
updatedAt: string;
}
export interface SnippetFolder {
id: number;
userId: string;
name: string;
color: string | null;
icon: string | null;
createdAt: string;
updatedAt: string;
}
export interface SnippetAccessEntry {
id: number;
targetType: "user" | "role";
userId: string | null;
roleId: number | null;
username: string | null;
roleName: string | null;
roleDisplayName: string | null;
grantedBy: string;
grantedByUsername: string | null;
permissionLevel: string;
expiresAt: string | null;
createdAt: string;
}
/** The host ids a command snippet targets, from its stored JSON filter. */
export function parseHostFilter(raw: string | null | undefined): number[] {
if (!raw) return [];
try {
const parsed: unknown = JSON.parse(raw);
return Array.isArray(parsed)
? parsed.filter((id): id is number => typeof id === "number")
: [];
} catch {
return [];
}
}
export function errorMessage(error: unknown, fallback: string): string {
if (
error &&
typeof error === "object" &&
"response" in error &&
error.response &&
typeof error.response === "object" &&
"data" in error.response &&
error.response.data &&
typeof error.response.data === "object" &&
"error" in error.response.data &&
typeof error.response.data.error === "string"
) {
return error.response.data.error;
}
return fallback;
}
@@ -0,0 +1,53 @@
import { useEffect, useState } from "react";
import { usePluginApi } from "@termix/plugin-sdk/frontend";
import { adminOptions } from "./AdminUserSnippets";
export interface SnippetOption {
id: number;
name: string;
}
/**
* The user's snippets as picker options: their own, or the target user's
* while an admin edits that user's host. `loaded` turns true once the list
* came back, so a picker can tell "no snippets" from "not loaded yet".
*/
export function useSnippetOptions(targetUserId?: string): {
options: SnippetOption[];
loaded: boolean;
} {
const api = usePluginApi();
const [state, setState] = useState<{
options: SnippetOption[];
loaded: boolean;
}>({ options: [], loaded: false });
useEffect(() => {
let cancelled = false;
const request = targetUserId
? api.get("/", adminOptions(targetUserId))
: api.get("/");
request
.then((response) => {
const raw = response.data as unknown;
const list = Array.isArray(raw)
? raw
: ((raw as { snippets?: unknown[] })?.snippets ?? []);
const options = (list as Array<{ id?: unknown; name?: unknown }>)
.filter((row) => typeof row.id === "number")
.map((row) => ({
id: row.id as number,
name: typeof row.name === "string" ? row.name : `#${row.id}`,
}));
if (!cancelled) setState({ options, loaded: true });
})
.catch(() => {
if (!cancelled) setState({ options: [], loaded: true });
});
return () => {
cancelled = true;
};
}, [api, targetUserId]);
return state;
}
@@ -0,0 +1,283 @@
import { useCallback, useMemo, useState } from "react";
import {
invokeAction,
usePluginApi,
useTranslation,
} from "@termix/plugin-sdk/frontend";
import { toast } from "sonner";
import {
hasSnippetInputs,
resolveSnippetContent,
type SnippetHostContext,
} from "../shared/variables.js";
import { SnippetVariablesDialog } from "./SnippetVariablesDialog";
import { createSnippetsApi } from "./snippets-api";
import {
ExecutionResultsDialog,
type HostExecutionResult,
} from "./ExecutionResultsDialog";
import { errorMessage, type Snippet } from "./types";
export interface TargetHost {
id: number;
name?: string;
ip?: string;
username?: string;
port?: number;
}
export interface RunTarget {
sessionId: string;
host: SnippetHostContext | null;
}
/**
* Shared "run this snippet against these terminal sessions" flow: resolves
* $HOST-style vars per target, prompts once for $INPUT_n placeholders when
* present, and gates on the confirm-before-running setting. Sends through
* the ssh-terminal plugin's terminal.sendToActive/sendToSession actions
* rather than touching a terminal ref directly, since core's tab state is
* not part of the plugin surface. runOnHosts instead runs a command over a
* fresh SSH connection to each of the snippet's target hosts.
*/
export function useSnippetRunner(confirmExecution = false) {
const { t } = useTranslation();
const api = usePluginApi();
const client = useMemo(() => createSnippetsApi(api), [api]);
const [execution, setExecution] = useState<{
snippetName: string;
results: HostExecutionResult[];
} | null>(null);
const [runningSnippet, setRunningSnippet] = useState<{
snippet: Snippet;
host: SnippetHostContext | null;
onConfirm: (
resolvedContent: string,
inputValues: Record<string, string>,
) => void;
} | null>(null);
const handleConfirmRun = useCallback(
(snippet: Snippet, execute: () => void) => {
if (!confirmExecution) {
execute();
return;
}
toast(t("confirmRunMessage", { name: snippet.name }), {
action: {
label: t("confirmRunButton"),
onClick: execute,
},
duration: 6000,
});
},
[confirmExecution, t],
);
async function sendResolvedToTarget(
target: RunTarget,
snippet: Snippet,
inputValues: Record<string, string>,
) {
const content = resolveSnippetContent(
snippet.content,
target.host,
inputValues,
);
const run = !snippet.isNote;
await invokeAction("terminal.sendToSession", target.sessionId, content, {
run,
});
}
const runSnippet = useCallback(
(snippet: Snippet, targets: RunTarget[]) => {
const runWithInputs = (inputValues: Record<string, string>) => {
const doSend = () => {
Promise.all(
targets.map((target) =>
sendResolvedToTarget(target, snippet, inputValues),
),
)
.then(() => {
toast.success(
t(snippet.isNote ? "pasteSuccess" : "runSuccess", {
name: snippet.name,
count: targets.length,
}),
);
})
.catch(() => {});
};
if (snippet.isNote) doSend();
else handleConfirmRun(snippet, doSend);
};
if (hasSnippetInputs(snippet.content)) {
setRunningSnippet({
snippet,
host: targets[0]?.host ?? null,
onConfirm: (_resolvedContent, inputValues) => {
setRunningSnippet(null);
runWithInputs(inputValues);
},
});
} else {
runWithInputs({});
}
},
[handleConfirmRun, t],
);
const runOnActive = useCallback(
(snippet: Snippet, host: SnippetHostContext | null) => {
const runWithInputs = (inputValues: Record<string, string>) => {
const doSend = () => {
const content = resolveSnippetContent(
snippet.content,
host,
inputValues,
);
void invokeAction("terminal.sendToActive", content, {
run: !snippet.isNote,
}).then((sent) => {
if (sent === false) {
toast.error(t("noTerminalTabsOpen"));
return;
}
toast.success(
t(snippet.isNote ? "pasteSuccess" : "runSuccess", {
name: snippet.name,
count: 1,
}),
);
});
};
if (snippet.isNote) doSend();
else handleConfirmRun(snippet, doSend);
};
if (hasSnippetInputs(snippet.content)) {
setRunningSnippet({
snippet,
host,
onConfirm: (_resolvedContent, inputValues) => {
setRunningSnippet(null);
runWithInputs(inputValues);
},
});
} else {
runWithInputs({});
}
},
[handleConfirmRun, t],
);
const runOnHosts = useCallback(
(snippet: Snippet, hosts: TargetHost[]) => {
if (hosts.length === 0) return;
const execute = (inputValues: Record<string, string>) => {
const label = (host: TargetHost) =>
host.name || host.ip || String(host.id);
setExecution({
snippetName: snippet.name,
results: hosts.map((host) => ({
hostId: host.id,
hostLabel: label(host),
success: null,
output: "",
})),
});
const update = (result: HostExecutionResult) =>
setExecution((prev) =>
prev
? {
...prev,
results: prev.results.map((r) =>
r.hostId === result.hostId ? result : r,
),
}
: prev,
);
const inputs =
Object.keys(inputValues).length > 0 ? inputValues : undefined;
void Promise.all(
hosts.map(async (host) => {
try {
const result = await client.execute(snippet.id, host.id, inputs);
update({ hostId: host.id, hostLabel: label(host), ...result });
return result.success;
} catch (err) {
update({
hostId: host.id,
hostLabel: label(host),
success: false,
output: "",
error: errorMessage(err, t("executionFailed")),
});
return false;
}
}),
).then((outcomes) => {
if (outcomes.every(Boolean)) {
toast.success(
t("directRunSuccess", {
name: snippet.name,
count: hosts.length,
}),
);
} else {
toast.error(t("directRunPartialFail", { name: snippet.name }));
}
});
};
const runWithInputs = (inputValues: Record<string, string>) =>
handleConfirmRun(snippet, () => execute(inputValues));
if (hasSnippetInputs(snippet.content)) {
const first = hosts[0];
setRunningSnippet({
snippet,
host: {
ip: first.ip,
username: first.username,
port: first.port,
name: first.name,
},
onConfirm: (_resolvedContent, inputValues) => {
setRunningSnippet(null);
runWithInputs(inputValues);
},
});
} else {
runWithInputs({});
}
},
[client, handleConfirmRun, t],
);
const variablesDialog = runningSnippet ? (
<SnippetVariablesDialog
snippet={runningSnippet.snippet}
host={runningSnippet.host}
onCancel={() => setRunningSnippet(null)}
onConfirm={runningSnippet.onConfirm}
/>
) : null;
const dialog = (
<>
{variablesDialog}
{execution && (
<ExecutionResultsDialog
snippetName={execution.snippetName}
results={execution.results}
onClose={() => setExecution(null)}
/>
)}
</>
);
return { runSnippet, runOnActive, runOnHosts, handleConfirmRun, dialog };
}
@@ -0,0 +1,48 @@
/**
* The snippets plugin's host settings: the startup snippet a terminal runs
* when it connects, and the quick action buttons Host Metrics shows.
*/
export const PLUGIN_ID = "snippets";
export interface QuickAction {
name: string;
snippetId: number;
}
function snippetId(value: unknown): number | null {
const id = typeof value === "string" ? Number(value) : value;
return typeof id === "number" && Number.isInteger(id) && id > 0 ? id : null;
}
/** Quick actions in their stored shape, dropping any without a snippet. */
export function readQuickActions(value: unknown): QuickAction[] {
let list = value;
if (typeof list === "string") {
try {
list = JSON.parse(list);
} catch {
return [];
}
}
if (!Array.isArray(list)) return [];
return list.flatMap((entry): QuickAction[] => {
if (!entry || typeof entry !== "object") return [];
const id = snippetId((entry as { snippetId?: unknown }).snippetId);
if (id === null) return [];
const name = (entry as { name?: unknown }).name;
return [{ name: typeof name === "string" ? name : "", snippetId: id }];
});
}
export function readStartupSnippetId(value: unknown): number | null {
return snippetId(value);
}
/** This plugin's slice of a host record's pluginSettings. */
export function snippetHostSettings(host: unknown): Record<string, unknown> {
const all = (host as { pluginSettings?: Record<string, unknown> } | null)
?.pluginSettings;
const own = all?.[PLUGIN_ID];
return own && typeof own === "object" ? (own as Record<string, unknown>) : {};
}
+81
View File
@@ -0,0 +1,81 @@
/**
* $HOST, $USER, $PORT, $NAME and $INPUT_n in a command. The one copy: the
* frontend, the backend and other plugins (fleets, through the
* "snippets.variables" registry entry and action) all use this.
*/
export interface SnippetInput {
key: string;
label: string;
}
export interface SnippetHostContext {
ip?: string;
username?: string;
port?: number | string;
name?: string;
}
const INPUT_PATTERN =
/\$\{INPUT_(\d+)(?::([^}$]+))?\}|\$INPUT_(\d+)(?![a-zA-Z0-9_])/g;
export function extractSnippetInputs(content: string): SnippetInput[] {
const seen = new Map<string, SnippetInput>();
let match: RegExpExecArray | null;
INPUT_PATTERN.lastIndex = 0;
while ((match = INPUT_PATTERN.exec(content)) !== null) {
const digits = match[1] ?? match[3];
const key = `INPUT_${digits}`;
if (!seen.has(key)) {
seen.set(key, { key, label: match[2]?.trim() || `Input ${digits}` });
}
}
return Array.from(seen.values());
}
export function hasSnippetInputs(content: string): boolean {
INPUT_PATTERN.lastIndex = 0;
return INPUT_PATTERN.test(content);
}
function replaceVar(
content: string,
name: string,
value: string | undefined,
): string {
if (value === undefined) return content;
const pattern = new RegExp(`\\$\\{?${name}\\}?`, "g");
return content.replace(pattern, value);
}
export function resolveSnippetContent(
content: string,
host: SnippetHostContext | null,
inputValues: Record<string, string> = {},
): string {
let resolved = content;
resolved = replaceVar(resolved, "HOST", host?.ip);
resolved = replaceVar(resolved, "USER", host?.username);
resolved = replaceVar(
resolved,
"PORT",
host?.port !== undefined ? String(host.port) : undefined,
);
resolved = replaceVar(resolved, "NAME", host?.name);
resolved = resolved.replace(
INPUT_PATTERN,
(
fullMatch,
braceDigits: string | undefined,
_label,
plainDigits: string | undefined,
) => {
const key = `INPUT_${braceDigits ?? plainDigits}`;
return key in inputValues ? inputValues[key] : fullMatch;
},
);
return resolved;
}
@@ -0,0 +1,155 @@
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("snippets activate", () => {
it("registers snippets and snippetFolders sync entities at the legacy order values", async () => {
server = await startServer();
const types = server.mock.syncEntities.map((e) => e.type);
expect(types).toContain("snippets");
expect(types).toContain("snippetFolders");
const snippetsEntity = server.mock.syncEntities.find(
(e) => e.type === "snippets",
);
const foldersEntity = server.mock.syncEntities.find(
(e) => e.type === "snippetFolders",
);
expect(snippetsEntity?.order).toBe(60);
expect(foldersEntity?.order).toBe(40);
});
it("offers the snippets.access service, scoped to the calling user", async () => {
server = await startServer();
await server.request("POST", "/", {
body: { name: "Deploy", content: "echo deploy" },
});
const service = server.mock.services.get("snippets.access") as {
list: () => Promise<unknown>;
};
const listed = await server.mock.actAs("user-1", () => service.list());
expect(listed).toEqual([
expect.objectContaining({ name: "Deploy", content: "echo deploy" }),
]);
const otherUsersList = await server.mock.actAs("user-2", () =>
service.list(),
);
expect(otherUsersList).toEqual([]);
});
it("refuses service writes the user could not make in the panel", async () => {
server = await startServer({ permissions: ["snippets.view"] });
const service = server.mock.services.get("snippets.access") as {
create: (input: { name: string; content: string }) => Promise<unknown>;
update: (id: number, changes: { name: string }) => Promise<unknown>;
remove: (id: number) => Promise<unknown>;
};
const asUser = <T>(fn: () => Promise<T>) =>
server!.mock.actAs("user-1", fn);
await expect(
asUser(() => service.create({ name: "x", content: "ls" })),
).rejects.toThrow("snippets.create");
await expect(
asUser(() => service.update(1, { name: "y" })),
).rejects.toThrow("snippets.edit");
await expect(asUser(() => service.remove(1))).rejects.toThrow(
"snippets.delete",
);
});
it("wipes a user's snippets when user.data_wiped fires", async () => {
// events:core only to simulate core firing the topic in this test; the
// plugin's own manifest never declares it, since it only subscribes.
server = await startServer({
capabilities: [...manifest.capabilities, "events:core"],
});
await server.request("POST", "/", {
body: { name: "Deploy", content: "echo deploy" },
});
const before = (await server.request("GET", "/")).body;
expect(before).toHaveLength(1);
server.mock.ctx.events.emit("user.data_wiped", { userId: "user-1" });
// The listener's delete is fire-and-forget; give its microtasks a turn.
await new Promise((resolve) => setTimeout(resolve, 20));
const after = (await server.request("GET", "/")).body;
expect(after).toHaveLength(0);
});
it("registers its host settings hooks and the variables helper", async () => {
server = await startServer();
const registry = server.mock.ctx.registry;
for (const key of [
"snippets.hostImportNormalizer",
"snippets.hostPayloadLegacy",
"snippets.hostSettingsSync",
]) {
expect(registry.consume(key), key).toBeDefined();
}
const variables = registry.consume<{
resolve: (c: string, h: { ip?: string } | null) => string;
extractInputs: (c: string) => Array<{ key: string }>;
}>("snippets.variables");
expect(variables?.resolve("ping $HOST", { ip: "10.0.0.1" })).toBe(
"ping 10.0.0.1",
);
expect(variables?.extractInputs("echo $INPUT_1")).toEqual([
{ key: "INPUT_1", label: "Input 1" },
]);
});
it("fails closed without db:own", async () => {
db = await createTestDb(pluginDir);
const mock = createMockCtx({
pluginId: manifest.id,
manifest,
capabilities: [
"network:serve",
"ssh:connect",
"credentials:use",
"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", "ssh:connect", "credentials:use", "ui:surface"],
db: db.database,
router: () => express.Router(),
});
await expect(activate(mock.ctx)).rejects.toBeInstanceOf(
PluginCapabilityError,
);
});
});
@@ -0,0 +1,129 @@
import { afterEach, describe, expect, it } from "vitest";
import express from "express";
import { EventEmitter } from "node:events";
import {
createMockCtx,
createTestDb,
type TestDb,
} from "@termix/plugin-sdk/testing";
import { manifest, pluginDir } from "./helpers";
let db: TestDb | null = null;
afterEach(async () => {
db?.close();
db = null;
});
function fakeSshClient(output: string, exitCode: number | null = 0) {
const client = new EventEmitter() as EventEmitter & {
exec: (
command: string,
cb: (err: Error | null, stream: unknown) => void,
) => void;
};
client.exec = (command, cb) => {
const stream = new EventEmitter() as EventEmitter & {
stderr: EventEmitter;
};
stream.stderr = new EventEmitter();
cb(null, stream);
setImmediate(() => {
stream.emit("data", Buffer.from(output));
stream.emit("close", exitCode);
});
};
return client;
}
async function startExecuteServer(sshClient: unknown) {
db = await createTestDb(pluginDir);
db.sqlite
.prepare("INSERT INTO users (id, username) VALUES ('user-1', 'user-1')")
.run();
let router: import("express").Router | null = null;
const mock = createMockCtx({
pluginId: manifest.id,
manifest,
capabilities: manifest.capabilities,
db: db.database,
router: () => (router = express.Router()),
sshClient,
permissions: ["snippets.view", "snippets.create"],
});
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 http = await import("node:http");
const server = http.createServer(app);
await new Promise<void>((resolve) => server.listen(0, resolve));
const { port } = server.address() as import("node:net").AddressInfo;
return {
async request(method: string, path: string, body?: unknown) {
const response = await fetch(`http://127.0.0.1:${port}${path}`, {
method,
headers: {
"x-test-user": "user-1",
...(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()));
},
};
}
describe("POST /execute", () => {
it("runs the resolved command over the ssh client and reports success", async () => {
const client = fakeSshClient("deployed ok", 0);
const server = await startExecuteServer(client);
try {
const created = await server.request("POST", "/", {
name: "Deploy",
content: "echo $HOST",
});
const result = await server.request("POST", "/execute", {
snippetId: created.body.id,
hostId: 42,
});
expect(result.status).toBe(200);
expect(result.body).toEqual({ success: true, output: "deployed ok" });
} finally {
await server.close();
}
});
it("reports failure from a nonzero exit code", async () => {
const client = fakeSshClient("", 1);
const server = await startExecuteServer(client);
try {
const created = await server.request("POST", "/", {
name: "Fails",
content: "exit 1",
});
const result = await server.request("POST", "/execute", {
snippetId: created.body.id,
hostId: 42,
});
expect(result.status).toBe(200);
expect(result.body.success).toBe(false);
} finally {
await server.close();
}
});
});
+98
View File
@@ -0,0 +1,98 @@
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 },
) => Promise<{ status: number; body: any }>;
close: () => Promise<void>;
}
export async function startServer(
options: {
permissions?: string[];
users?: string[];
capabilities?: string[];
shareableUsers?: { id: string; username: string }[];
shareableRoles?: { id: number; name: string; displayName: 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: options.capabilities ?? manifest.capabilities,
db: db.database,
shareableUsers: options.shareableUsers,
shareableRoles: options.shareableRoles,
router: () => (router = express.Router()),
permissions: options.permissions ?? [
"snippets.view",
"snippets.create",
"snippets.edit",
"snippets.delete",
"snippets.share",
],
});
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();
},
};
}
@@ -0,0 +1,79 @@
import { describe, expect, it } from "vitest";
import {
createHostSettingsSync,
hostImportNormalizer,
hostPayloadLegacy,
} from "../../src/backend/host-import.js";
describe("hostImportNormalizer", () => {
it("reads a 2.8 export's quick actions and startup snippet", () => {
expect(
hostImportNormalizer({
quickActions: [
{ name: "Restart", snippetId: "3" },
{ name: "Broken", snippetId: "" },
],
terminalConfig: JSON.stringify({ startupSnippetId: 5, fontSize: 12 }),
}),
).toEqual({
quickActions: [{ name: "Restart", snippetId: 3 }],
startupSnippetId: 5,
});
});
it("leaves an export that carries this plugin's settings to core", () => {
expect(
hostImportNormalizer({
pluginSettings: { snippets: { startupSnippetId: 1 } },
terminalConfig: { startupSnippetId: 5 },
}),
).toBeNull();
});
it("writes nothing for a host without either", () => {
expect(hostImportNormalizer({ name: "web" })).toBeNull();
});
});
describe("hostPayloadLegacy", () => {
it("puts the 2.8 fields back for older clients", () => {
expect(
hostPayloadLegacy({
quickActions: [{ name: "Up", snippetId: 2 }],
startupSnippetId: 7,
}),
).toEqual({
quickActions: [{ name: "Up", snippetId: 2 }],
terminalConfig: { startupSnippetId: 7 },
});
expect(hostPayloadLegacy({})).toEqual({ quickActions: [] });
});
});
describe("hostSettingsSync", () => {
const sync = createHostSettingsSync({
findSyncIdById: async (id) => (id === 2 ? "sync-2" : null),
findIdBySyncId: async (syncId) => (syncId === "sync-2" ? 9 : null),
});
it("sends sync ids and drops what does not map", async () => {
expect(await sync.exportValue("startupSnippetId", 2)).toBe("sync-2");
expect(await sync.exportValue("startupSnippetId", 4)).toBeNull();
expect(
await sync.exportValue("quickActions", [
{ name: "A", snippetId: 2 },
{ name: "B", snippetId: 4 },
]),
).toEqual([{ name: "A", snippetId: "sync-2" }]);
});
it("maps sync ids back to this side's rows", async () => {
expect(await sync.importValue("startupSnippetId", "sync-2")).toBe(9);
expect(await sync.importValue("startupSnippetId", "missing")).toBeNull();
expect(
await sync.importValue("quickActions", [
{ name: "A", snippetId: "sync-2" },
]),
).toEqual([{ name: "A", snippetId: 9 }]);
});
});
@@ -0,0 +1,186 @@
import { afterEach, describe, expect, it } from "vitest";
import { createTestDb, type TestDb } from "@termix/plugin-sdk/testing";
import { pluginDir } from "./helpers";
// snippets / snippet_folders / snippet_access as core's schema.ts declared
// them before 2.9.0, plus the indexes performance-indexes.ts added.
const LEGACY_DDL = `
CREATE TABLE snippets (
id INTEGER PRIMARY KEY AUTOINCREMENT,
user_id TEXT NOT NULL REFERENCES users(id) ON DELETE CASCADE,
name TEXT NOT NULL,
content TEXT NOT NULL,
description TEXT,
folder TEXT,
"order" INTEGER NOT NULL DEFAULT 0,
sync_id TEXT UNIQUE,
created_at TEXT NOT NULL DEFAULT CURRENT_TIMESTAMP,
updated_at TEXT NOT NULL DEFAULT CURRENT_TIMESTAMP,
host_filter TEXT,
is_note INTEGER NOT NULL DEFAULT 0
);
CREATE INDEX idx_snippets_user_id ON snippets (user_id);
CREATE TABLE snippet_folders (
id INTEGER PRIMARY KEY AUTOINCREMENT,
user_id TEXT NOT NULL REFERENCES users(id) ON DELETE CASCADE,
name TEXT NOT NULL,
color TEXT,
icon TEXT,
sync_id TEXT UNIQUE,
created_at TEXT NOT NULL DEFAULT CURRENT_TIMESTAMP,
updated_at TEXT NOT NULL DEFAULT CURRENT_TIMESTAMP
);
CREATE TABLE snippet_access (
id INTEGER PRIMARY KEY AUTOINCREMENT,
snippet_id INTEGER NOT NULL REFERENCES snippets(id) ON DELETE CASCADE,
user_id TEXT REFERENCES users(id) ON DELETE CASCADE,
role_id INTEGER REFERENCES roles(id) ON DELETE CASCADE,
granted_by TEXT NOT NULL REFERENCES users(id) ON DELETE CASCADE,
permission_level TEXT NOT NULL DEFAULT 'view',
expires_at TEXT,
created_at TEXT NOT NULL DEFAULT CURRENT_TIMESTAMP
);
CREATE INDEX idx_snippet_access_user_id ON snippet_access (user_id);
CREATE INDEX idx_snippet_access_snippet_id ON snippet_access (snippet_id);
CREATE INDEX idx_snippet_access_role_id ON snippet_access (role_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 snippets, snippet_folders and snippet_access", () => {
it("keeps every existing row when the legacy tables are there", async () => {
db = await createTestDb(pluginDir, {
before: (sqlite) => {
sqlite.exec("INSERT INTO users (id) VALUES ('user-1'), ('user-2')");
sqlite.exec(
"INSERT INTO roles (id, name, display_name) VALUES (7, 'ops', 'Operations')",
);
sqlite.exec(LEGACY_DDL);
sqlite
.prepare(
"INSERT INTO snippets (id, user_id, name, content, folder, sync_id) VALUES (?, ?, ?, ?, ?, ?)",
)
.run(99, "user-1", "Deploy", "echo deploy", "prod", "sync-snippet-a");
sqlite
.prepare(
"INSERT INTO snippet_folders (user_id, name, sync_id) VALUES (?, ?, ?)",
)
.run("user-1", "prod", "sync-folder-a");
sqlite
.prepare(
"INSERT INTO snippet_access (snippet_id, user_id, granted_by) VALUES (?, ?, ?)",
)
.run(99, "user-2", "user-1");
},
});
expect(db.applied).toEqual(["0001_adopt_snippets_tables"]);
expect(tableExists("snippets")).toBe(false);
expect(tableExists("snippet_folders")).toBe(false);
expect(tableExists("snippet_access")).toBe(false);
expect(tableExists("p_snippets_snippets")).toBe(true);
expect(tableExists("p_snippets_snippet_folders")).toBe(true);
expect(tableExists("p_snippets_snippet_access")).toBe(true);
const snippetRows = db.sqlite
.prepare(
"SELECT user_id, name, content, folder, sync_id FROM p_snippets_snippets",
)
.all();
expect(snippetRows).toEqual([
{
user_id: "user-1",
name: "Deploy",
content: "echo deploy",
folder: "prod",
sync_id: "sync-snippet-a",
},
]);
const folderRows = db.sqlite
.prepare("SELECT user_id, name, sync_id FROM p_snippets_snippet_folders")
.all();
expect(folderRows).toEqual([
{ user_id: "user-1", name: "prod", sync_id: "sync-folder-a" },
]);
const accessRows = db.sqlite
.prepare(
"SELECT snippet_id, user_id, granted_by FROM p_snippets_snippet_access",
)
.all();
expect(accessRows).toEqual([
{ snippet_id: 99, user_id: "user-2", granted_by: "user-1" },
]);
expect(indexOn("p_snippets_snippets")).toEqual(["idx_snippets_user_id"]);
expect(indexOn("p_snippets_snippet_access").sort()).toEqual(
[
"idx_snippet_access_user_id",
"idx_snippet_access_snippet_id",
"idx_snippet_access_role_id",
].sort(),
);
});
it("creates the tables fresh when there is no legacy one", async () => {
db = await createTestDb(pluginDir);
expect(tableExists("snippets")).toBe(false);
expect(tableExists("p_snippets_snippets")).toBe(true);
expect(tableExists("p_snippets_snippet_folders")).toBe(true);
expect(tableExists("p_snippets_snippet_access")).toBe(true);
expect(indexOn("p_snippets_snippets")).toEqual(["idx_snippets_user_id"]);
expect(
db.sqlite.prepare("SELECT * FROM p_snippets_snippets").all(),
).toEqual([]);
});
it("cascades deletes when the owning user is removed", async () => {
db = await createTestDb(pluginDir, {
before: (sqlite) => {
sqlite.exec("INSERT INTO users (id) VALUES ('user-1'), ('user-2')");
},
});
db.sqlite
.prepare(
"INSERT INTO p_snippets_snippets (user_id, name, content) VALUES (?, ?, ?)",
)
.run("user-1", "Mine", "echo mine");
db.sqlite
.prepare(
"INSERT INTO p_snippets_snippets (user_id, name, content) VALUES (?, ?, ?)",
)
.run("user-2", "Theirs", "echo theirs");
db.sqlite.exec("DELETE FROM users WHERE id = 'user-1'");
const names = (
db.sqlite.prepare("SELECT name FROM p_snippets_snippets").all() as {
name: string;
}[]
).map((row) => row.name);
expect(names).toEqual(["Theirs"]);
});
});
@@ -0,0 +1,186 @@
import { afterEach, beforeEach, describe, expect, it } from "vitest";
import { createTestDb, type TestDb } from "@termix/plugin-sdk/testing";
import {
snippetAccess,
snippetFolders,
snippets,
} from "../../src/backend/tables.js";
import {
createSnippetRepository,
type SnippetRepository,
} from "../../src/backend/repository.js";
import { pluginDir } from "./helpers";
let db: TestDb;
let repo: SnippetRepository;
beforeEach(async () => {
db = await createTestDb(pluginDir, {
before: (sqlite) => {
sqlite.exec("INSERT INTO users (id) VALUES ('user-1'), ('user-2')");
sqlite.exec(
"INSERT INTO roles (id, name, display_name) VALUES (7, 'ops', 'Operations')",
);
},
});
repo = createSnippetRepository(
db.database,
await db.database.define(snippets),
await db.database.define(snippetFolders),
await db.database.define(snippetAccess),
);
});
afterEach(() => db.close());
describe("snippet repository", () => {
it("reads a new row back by its own sync id", async () => {
const a = await repo.createSnippet("user-1", {
name: "A",
content: "echo a",
});
const b = await repo.createSnippet("user-1", {
name: "B",
content: "echo b",
});
expect(a.name).toBe("A");
expect(b.name).toBe("B");
expect(a.syncId).not.toBe(b.syncId);
});
it("auto-assigns the next order within a folder", async () => {
await repo.createSnippet("user-1", {
name: "A",
content: "a",
folder: "prod",
});
const second = await repo.createSnippet("user-1", {
name: "B",
content: "b",
folder: "prod",
});
const rootLevel = await repo.createSnippet("user-1", {
name: "C",
content: "c",
});
expect(second.order).toBe(1);
expect(rootLevel.order).toBe(0);
});
it("renames a folder and re-points its snippets, refusing a name collision", async () => {
await repo.createFolder("user-1", "prod", null, null);
await repo.createFolder("user-1", "staging", null, null);
const snippet = await repo.createSnippet("user-1", {
name: "A",
content: "a",
folder: "prod",
});
const conflict = await repo.renameFolder("user-1", "prod", "staging");
expect(conflict.status).toBe("conflict");
const missing = await repo.renameFolder("user-1", "ghost", "new");
expect(missing.status).toBe("missing");
const renamed = await repo.renameFolder("user-1", "prod", "production");
expect(renamed.status).toBe("renamed");
const updated = await repo.findOwnedById("user-1", snippet.id);
expect(updated?.folder).toBe("production");
});
it("moves snippets to the root when their folder is deleted", async () => {
await repo.createFolder("user-1", "prod", null, null);
const snippet = await repo.createSnippet("user-1", {
name: "A",
content: "a",
folder: "prod",
});
const result = await repo.deleteFolder("user-1", "prod");
expect(result).not.toBeNull();
const updated = await repo.findOwnedById("user-1", snippet.id);
expect(updated?.folder).toBeNull();
});
it("bulk imports, skipping existing snippets unless overwrite is set", async () => {
await repo.createSnippet("user-1", { name: "A", content: "old" });
const skipped = await repo.bulkImport(
"user-1",
[{ name: "A", content: "new" }],
[],
false,
);
expect(skipped.snippetsSkipped).toBe(1);
expect(skipped.snippetsImported).toBe(0);
const overwritten = await repo.bulkImport(
"user-1",
[{ name: "A", content: "new" }],
[],
true,
);
expect(overwritten.snippetsUpdated).toBe(1);
const list = await repo.listOwnedSnippets("user-1");
expect(list).toHaveLength(1);
expect(list[0].content).toBe("new");
});
it("shares a snippet and lists it for the recipient, then revokes it", async () => {
const snippet = await repo.createSnippet("user-1", {
name: "A",
content: "a",
});
const created = await repo.upsertSnippetAccess({
snippetId: snippet.id,
targetType: "user",
targetUserId: "user-2",
grantedBy: "user-1",
expiresAt: null,
});
expect(created.created).toBe(true);
const again = await repo.upsertSnippetAccess({
snippetId: snippet.id,
targetType: "user",
targetUserId: "user-2",
grantedBy: "user-1",
expiresAt: "2099-01-01T00:00:00.000Z",
});
expect(again.created).toBe(false);
expect(again.id).toBe(created.id);
const roleIds = await repo.listUserRoleIds("user-2");
const shared = await repo.listSharedSnippets("user-2", roleIds);
expect(shared).toEqual([
expect.objectContaining({ id: snippet.id, name: "A" }),
]);
const accessible = await repo.findAccessibleSharedSnippet(
snippet.id,
"user-2",
roleIds,
);
expect(accessible?.id).toBe(snippet.id);
await repo.revokeSnippetAccess(created.id, snippet.id);
const afterRevoke = await repo.listSharedSnippets("user-2", roleIds);
expect(afterRevoke).toEqual([]);
});
it("wipes a user's snippets and folders on deleteByUserId", async () => {
await repo.createSnippet("user-1", { name: "A", content: "a" });
await repo.createFolder("user-1", "prod", null, null);
await repo.createSnippet("user-2", { name: "B", content: "b" });
await repo.deleteByUserId("user-1");
expect(await repo.listOwnedSnippets("user-1")).toEqual([]);
expect(await repo.listFolders("user-1")).toEqual([]);
expect(await repo.listOwnedSnippets("user-2")).toHaveLength(1);
});
});
@@ -0,0 +1,235 @@
import { afterEach, beforeEach, describe, expect, it } from "vitest";
import { startServer, type TestServer } from "./helpers";
let server: TestServer;
beforeEach(async () => {
server = await startServer();
});
afterEach(async () => {
await server.close();
});
async function create(
overrides: Record<string, unknown> = {},
user = "user-1",
) {
const res = await server.request("POST", "/", {
user,
body: { name: "Deploy", content: "echo deploy", ...overrides },
});
expect(res.status).toBe(201);
return res.body;
}
describe("snippet routes", () => {
it("creates and lists snippets, tagging owned ones as not shared", async () => {
const created = await create();
expect(created).toMatchObject({ name: "Deploy", content: "echo deploy" });
expect(created.syncId).toEqual(expect.any(String));
const list = await server.request("GET", "/");
expect(list.body).toEqual([
expect.objectContaining({ id: created.id, isShared: false }),
]);
});
it("rejects a missing name or content", async () => {
expect(
(await server.request("POST", "/", { body: { content: "x" } })).status,
).toBe(400);
expect(
(await server.request("POST", "/", { body: { name: "x" } })).status,
).toBe(400);
});
it("gets, updates and deletes a snippet", async () => {
const created = await create();
const got = await server.request("GET", `/${created.id}`);
expect(got.status).toBe(200);
expect(got.body.id).toBe(created.id);
const updated = await server.request("PUT", `/${created.id}`, {
body: { content: "echo updated" },
});
expect(updated.status).toBe(200);
expect(updated.body.content).toBe("echo updated");
const deleted = await server.request("DELETE", `/${created.id}`);
expect(deleted.status).toBe(200);
expect((await server.request("GET", `/${created.id}`)).status).toBe(404);
});
it("keeps snippets isolated per user", async () => {
await create({ name: "Owner snippet" }, "user-1");
const list = await server.request("GET", "/", { user: "user-2" });
expect(list.body).toEqual([]);
});
it("creates, renames and deletes a folder, moving its snippets to the root", async () => {
const folder = await server.request("POST", "/folders", {
body: { name: "prod", color: "#fff", icon: "server" },
});
expect(folder.status).toBe(201);
const conflict = await server.request("POST", "/folders", {
body: { name: "prod" },
});
expect(conflict.status).toBe(409);
const rename = await server.request("PUT", "/folders/rename", {
body: { oldName: "prod", newName: "production" },
});
expect(rename.status).toBe(200);
const snippet = await create({ folder: "production" });
expect(snippet.folder).toBe("production");
const deleteFolder = await server.request("DELETE", "/folders/production");
expect(deleteFolder.status).toBe(200);
const afterDelete = await server.request("GET", `/${snippet.id}`);
expect(afterDelete.body.folder).toBeNull();
});
it("reorders snippets, accepting both the snippets and legacy updates keys", async () => {
const a = await create({ name: "a" });
const b = await create({ name: "b" });
const reordered = await server.request("PUT", "/reorder", {
body: {
snippets: [
{ id: a.id, order: 2 },
{ id: b.id, order: 1 },
],
},
});
expect(reordered.status).toBe(200);
const legacy = await server.request("PUT", "/reorder", {
body: { updates: [{ id: a.id, order: 5 }] },
});
expect(legacy.status).toBe(200);
expect((await server.request("PUT", "/reorder", { body: {} })).status).toBe(
400,
);
});
it("exports and bulk-imports snippets and folders", async () => {
await create({ name: "Exportable" });
const exported = await server.request("GET", "/export");
expect(exported.status).toBe(200);
expect(exported.body.snippets).toHaveLength(1);
const imported = await server.request("POST", "/bulk-import", {
body: {
snippets: [{ name: "Imported", content: "echo hi" }],
folders: [],
overwrite: false,
},
});
expect(imported.status).toBe(200);
expect(imported.body.snippetsImported).toBe(1);
});
it("shares a snippet with another user, who can then read it as shared", async () => {
const snippet = await create();
const share = await server.request("POST", `/${snippet.id}/share`, {
body: { targetType: "user", targetUserId: "user-2" },
});
expect(share.status).toBe(200);
const sharedList = await server.request("GET", "/shared", {
user: "user-2",
});
expect(sharedList.body.sharedSnippets).toEqual([
expect.objectContaining({ id: snippet.id, name: snippet.name }),
]);
const visibleToOwner = await server.request("GET", `/${snippet.id}/access`);
expect(visibleToOwner.status).toBe(200);
expect(visibleToOwner.body).toHaveLength(1);
const revoke = await server.request(
"DELETE",
`/${snippet.id}/access/${visibleToOwner.body[0].id}`,
);
expect(revoke.status).toBe(200);
const afterRevoke = await server.request("GET", "/shared", {
user: "user-2",
});
expect(afterRevoke.body.sharedSnippets).toEqual([]);
});
it("refuses sharing a snippet the caller does not own", async () => {
const snippet = await create({}, "user-1");
const attempt = await server.request("POST", `/${snippet.id}/share`, {
user: "user-2",
body: { targetType: "user", targetUserId: "user-1" },
});
expect(attempt.status).toBe(403);
});
it("shares every snippet in a folder at once", async () => {
await create({ name: "s1", folder: "team" });
await create({ name: "s2", folder: "team" });
const share = await server.request("PUT", "/folder/share", {
body: { folder: "team", targetType: "user", targetUserId: "user-2" },
});
expect(share.status).toBe(200);
expect(share.body.snippetsShared).toBe(2);
});
it("denies every route without its permission", async () => {
const denied = await startServer({ permissions: [] });
try {
expect((await denied.request("GET", "/")).status).toBe(403);
expect((await denied.request("POST", "/", { body: {} })).status).toBe(
403,
);
expect((await denied.request("GET", "/folders")).status).toBe(403);
expect(
(await denied.request("POST", "/folders", { body: { name: "x" } }))
.status,
).toBe(403);
} finally {
await denied.close();
}
});
it("lets execute run without any snippets.* permission", async () => {
const noPerms = await startServer({ permissions: [] });
try {
const res = await noPerms.request("POST", "/execute", {
body: { snippetId: 999, hostId: 1 },
});
// 404 (no accessible snippet), not 403: execute needs no grant.
expect(res.status).toBe(404);
} finally {
await noPerms.close();
}
});
it("rejects executing a note", async () => {
const note = await server.request("POST", "/", {
body: { name: "Note", content: "remember this", isNote: true },
});
const res = await server.request("POST", "/execute", {
body: { snippetId: note.body.id, hostId: 1 },
});
expect(res.status).toBe(400);
});
it("404s executing a snippet the caller cannot see", async () => {
const res = await server.request("POST", "/execute", {
body: { snippetId: 999, hostId: 1 },
});
expect(res.status).toBe(404);
});
});
@@ -0,0 +1,43 @@
import { afterEach, describe, expect, it } from "vitest";
import { manifest, startServer, type TestServer } from "./helpers";
let server: TestServer | null = null;
afterEach(async () => {
await server?.close();
server = null;
});
describe("share target routes", () => {
it("lists users and roles to share with", async () => {
server = await startServer({
shareableUsers: [{ id: "user-2", username: "bob" }],
shareableRoles: [{ id: 3, name: "ops", displayName: "Ops" }],
});
const users = await server.request("GET", "/share-targets/users");
expect(users.status).toBe(200);
expect(users.body).toEqual({ users: [{ id: "user-2", username: "bob" }] });
const roles = await server.request("GET", "/share-targets/roles");
expect(roles.status).toBe(200);
expect(roles.body).toEqual({
roles: [{ id: 3, name: "ops", displayName: "Ops" }],
});
});
it("needs the share permission", async () => {
server = await startServer({ permissions: ["snippets.view"] });
expect((await server.request("GET", "/share-targets/users")).status).toBe(
403,
);
});
it("fails without the hosts:write capability", async () => {
server = await startServer({
capabilities: manifest.capabilities.filter((c) => c !== "hosts:write"),
});
expect((await server.request("GET", "/share-targets/roles")).status).toBe(
500,
);
});
});
@@ -0,0 +1,79 @@
import { describe, it, expect } from "vitest";
import {
extractSnippetInputs,
hasSnippetInputs,
resolveSnippetContent,
} from "../../src/shared/variables.js";
describe("extractSnippetInputs", () => {
it("extracts a single unlabeled input", () => {
expect(extractSnippetInputs("ping $INPUT_1")).toEqual([
{ key: "INPUT_1", label: "Input 1" },
]);
});
it("extracts a labeled input using brace syntax", () => {
expect(
extractSnippetInputs("nc -zv $HOST ${INPUT_1:Port to check}"),
).toEqual([{ key: "INPUT_1", label: "Port to check" }]);
});
it("plain (non-braced) references have no label", () => {
expect(extractSnippetInputs("echo $INPUT_2")).toEqual([
{ key: "INPUT_2", label: "Input 2" },
]);
});
it("de-duplicates repeated references and preserves first-seen order", () => {
expect(
extractSnippetInputs("$INPUT_2 then $INPUT_1 then $INPUT_2 again"),
).toEqual([
{ key: "INPUT_2", label: "Input 2" },
{ key: "INPUT_1", label: "Input 1" },
]);
});
it("returns an empty array when there are no placeholders", () => {
expect(extractSnippetInputs("uptime")).toEqual([]);
});
});
describe("hasSnippetInputs", () => {
it("returns true when a snippet has an input placeholder", () => {
expect(hasSnippetInputs("echo $INPUT_1")).toBe(true);
});
it("returns false when a snippet has no input placeholder", () => {
expect(hasSnippetInputs("echo $HOST")).toBe(false);
});
});
describe("resolveSnippetContent", () => {
const host = { ip: "10.0.0.5", username: "root", port: 22, name: "web-01" };
it("substitutes host variables", () => {
expect(
resolveSnippetContent("ssh $USER@$HOST -p $PORT # $NAME", host),
).toBe("ssh root@10.0.0.5 -p 22 # web-01");
});
it("supports brace syntax for host variables", () => {
expect(resolveSnippetContent("ping ${HOST}", host)).toBe("ping 10.0.0.5");
});
it("substitutes input placeholders", () => {
expect(
resolveSnippetContent("nc -zv $HOST ${INPUT_1:Port}", host, {
INPUT_1: "8080",
}),
).toBe("nc -zv 10.0.0.5 8080");
});
it("leaves host variables literal when no host context is given", () => {
expect(resolveSnippetContent("ping $HOST", null)).toBe("ping $HOST");
});
it("leaves input placeholders literal when no value was supplied", () => {
expect(resolveSnippetContent("echo $INPUT_1", null)).toBe("echo $INPUT_1");
});
});
@@ -0,0 +1,235 @@
import { afterEach, describe, expect, it, vi } from "vitest";
import { act, fireEvent, screen } from "@testing-library/react";
import { runKeybindingAction } 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 panels = declared(contributes.panels);
for (const id of rendered.registered.panels()) expect(panels).toContain(id);
});
it("registers the rail item gated on the view permission", async () => {
rendered = await renderWithApp(plugin, { manifest, locales });
const railItem = rendered.registered
.railItems()
.find((i) => i.id === "snippets");
expect(railItem).toBeDefined();
expect(railItem?.permission).toBe("snippets.view");
});
it("registers what other surfaces reach it through", async () => {
rendered = await renderWithApp(plugin, { manifest, locales });
expect(rendered.registered.actions()).toEqual(
expect.arrayContaining([
"snippets.startupCommand",
"snippets.list",
"snippets.extractInputs",
]),
);
expect(rendered.registered.paletteGroups()).toEqual(["snippets"]);
expect(rendered.registered.keybindingActions()).toEqual(["runSnippet"]);
expect(rendered.registered.hostEditorSections()).toEqual(["snippets"]);
expect(rendered.registered.slot("host-metrics.toolbar")).toEqual([
"snippets.quickActions",
]);
expect(rendered.registered.slot("shell.overlay")).toEqual([
"snippets.overlay",
]);
});
it("removes everything it registered on deactivate", async () => {
const app = await renderWithApp(plugin, { manifest, locales });
await app.deactivate();
expect(app.registered.panels()).toEqual([]);
expect(app.registered.railItems()).toEqual([]);
expect(app.registered.actions()).toEqual([]);
expect(app.registered.paletteGroups()).toEqual([]);
expect(app.registered.keybindingActions()).toEqual([]);
});
});
const deploy = {
id: 3,
name: "Deploy",
content: "deploy $HOST",
description: null,
isNote: false,
};
describe("snippets in the command palette", () => {
it("lists snippets that run in the target tab", async () => {
const api = { get: vi.fn(async () => ({ data: [deploy] })) };
rendered = await renderWithApp(plugin, {
manifest,
locales,
api: api as never,
permissions: ["snippets.view"],
});
const items = await rendered.loadPaletteGroup("snippets");
expect(items).toEqual([
expect.objectContaining({
id: "3",
title: "Deploy",
description: "deploy $HOST",
needsTarget: true,
}),
]);
});
it("offers nothing without the view permission", async () => {
rendered = await renderWithApp(plugin, {
manifest,
locales,
permissions: [],
});
expect(await rendered.loadPaletteGroup("snippets")).toEqual([]);
});
});
describe("the runSnippet keybinding", () => {
it("types the resolved snippet into the session it was pressed in", async () => {
const api = { get: vi.fn(async () => ({ data: deploy })) };
rendered = await renderWithApp(plugin, {
manifest,
locales,
api: api as never,
});
const send = vi.fn();
const handled = runKeybindingAction(
{ type: "runSnippet", snippetId: "3", appendEnter: true },
{ host: { ip: "10.0.0.9" }, send },
);
expect(handled).toBe(true);
await vi.waitFor(() =>
expect(send).toHaveBeenCalledWith("deploy 10.0.0.9\r"),
);
expect(api.get).toHaveBeenCalledWith("/3");
});
});
describe("the startup command", () => {
it("resolves the host's startup snippet, or nothing without one", async () => {
const api = { get: vi.fn(async () => ({ data: deploy })) };
rendered = await renderWithApp(plugin, {
manifest,
locales,
api: api as never,
});
const host = {
id: "1",
name: "web",
ip: "10.0.0.2",
port: 22,
pluginSettings: { snippets: { startupSnippetId: 3 } },
};
expect(
await rendered.app.invokeAction("snippets.startupCommand", host),
).toBe("deploy 10.0.0.2");
expect(
await rendered.app.invokeAction("snippets.startupCommand", {
...host,
pluginSettings: {},
}),
).toBeNull();
});
});
describe("the host editor's Snippets tab", () => {
it("writes the startup snippet and quick actions into this plugin's settings", async () => {
const api = { get: vi.fn(async () => ({ data: [deploy] })) };
rendered = await renderWithApp(plugin, {
manifest,
locales,
api: api as never,
});
let form: Record<string, unknown> = {
pluginSettings: { other: { keep: 1 } },
};
const updateForm = (
patch: (current: Record<string, unknown>) => Record<string, unknown>,
) => {
form = patch(form);
};
rendered.renderHostEditorSection("snippets", { form, updateForm });
const startup = await screen.findByRole("combobox", {
name: "Startup Snippet",
});
await screen.findAllByRole("option", { name: "Deploy" });
act(() => {
fireEvent.change(startup, { target: { value: "3" } });
});
expect(form.pluginSettings).toEqual({
other: { keep: 1 },
snippets: { startupSnippetId: 3 },
});
});
});
describe("the Host Metrics quick action buttons", () => {
it("draws a button per quick action and nothing without any", async () => {
rendered = await renderWithApp(plugin, {
manifest,
locales,
permissions: ["snippets.view"],
});
const host = {
id: 4,
pluginSettings: {
snippets: { quickActions: [{ name: "Restart", snippetId: 3 }] },
},
};
rendered.renderSlot("host-metrics.toolbar", { hostId: 4, host });
expect(await screen.findByRole("button", { name: "Restart" })).toBeTruthy();
});
});
describe("snippets panel", () => {
it("renders the empty state when the user has no snippets", async () => {
const api = {
get: vi.fn(async () => ({ data: [] })),
};
rendered = await renderWithApp(plugin, {
manifest,
locales,
api: api as never,
permissions: ["snippets.view", "snippets.create"],
});
rendered.renderPanel("snippets", { active: true });
await expect(screen.findByPlaceholderText(/search/i)).resolves.toBeTruthy();
});
it("renders nothing without the view permission", async () => {
rendered = await renderWithApp(plugin, {
manifest,
locales,
permissions: [],
});
const panel = rendered.renderPanel("snippets", { active: true });
expect(panel.textContent).toBe("");
});
});
@@ -0,0 +1,86 @@
import { afterEach, describe, expect, it, vi } from "vitest";
import { fireEvent, screen, waitFor } from "@testing-library/react";
import {
renderWithApp,
type RenderedPluginApp,
} from "@termix/plugin-sdk/testing";
import type { PluginManifest } from "@termix/plugin-sdk/manifest";
import type { PluginApiClient } from "@termix/plugin-sdk/frontend";
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 TARGET = { headers: { "X-Admin-Target-User": "u2" } };
function fakeApi(rows: unknown[]) {
const api = {
get: vi.fn(async () => ({ data: rows })),
post: vi.fn(async () => ({ data: {} })),
put: vi.fn(async () => ({ data: {} })),
patch: vi.fn(async () => ({ data: {} })),
delete: vi.fn(async () => ({ data: {} })),
};
return api as typeof api & PluginApiClient;
}
let rendered: RenderedPluginApp | null = null;
afterEach(async () => {
await rendered?.deactivate();
rendered = null;
});
describe("snippet pickers while an admin edits another user's host", () => {
it("list the user's own snippets", async () => {
const api = fakeApi([{ id: 1, name: "a", content: "ls", isNote: true }]);
rendered = await renderWithApp(plugin, { manifest, locales, api });
rendered.renderHostEditorSection("snippets", { form: {} });
await screen.findAllByRole("option", { name: "a" });
expect(api.get).toHaveBeenCalledWith("/");
});
it("list the target user's snippets", async () => {
const api = fakeApi([]);
rendered = await renderWithApp(plugin, { manifest, locales, api });
rendered.renderHostEditorSection("snippets", {
form: {},
adminTargetUserId: "u2",
});
await waitFor(() => expect(api.get).toHaveBeenCalledWith("/", TARGET));
});
});
describe("admin user snippets tab", () => {
it("fills the admin.userTabs slot", async () => {
rendered = await renderWithApp(plugin, { manifest, locales });
expect(rendered.registered.slot("admin.userTabs")).toEqual([
"snippets.adminUserTab",
]);
});
it("creates a snippet for the target user", async () => {
const api = fakeApi([]);
rendered = await renderWithApp(plugin, { manifest, locales, api });
rendered.renderSlot("admin.userTabs", {
user: { id: "u2", username: "bob" },
});
fireEvent.click(await screen.findByText("Add Snippet"));
fireEvent.change(screen.getByPlaceholderText("Snippet name"), {
target: { value: "restart" },
});
fireEvent.change(screen.getByPlaceholderText("Command content"), {
target: { value: "systemctl restart nginx" },
});
fireEvent.click(screen.getByText("Save"));
await waitFor(() =>
expect(api.post).toHaveBeenCalledWith(
"/",
{ name: "restart", content: "systemctl restart nginx", folder: null },
TARGET,
),
);
});
});
@@ -0,0 +1,26 @@
import { describe, expect, it } from "vitest";
import { readSnippetSettings } from "../../src/frontend/settings";
describe("readSnippetSettings", () => {
it("falls back to the manifest defaults", () => {
expect(readSnippetSettings({})).toEqual({
foldersCollapsed: true,
showCommands: true,
confirmExecution: false,
});
});
it("reads saved values", () => {
expect(
readSnippetSettings({
foldersCollapsed: false,
showCommands: false,
confirmExecution: true,
}),
).toEqual({
foldersCollapsed: false,
showCommands: false,
confirmExecution: true,
});
});
});
@@ -0,0 +1,246 @@
import { afterEach, describe, expect, it, vi } from "vitest";
import { fireEvent, screen, waitFor } from "@testing-library/react";
import {
renderWithApp,
type RenderedPluginApp,
} from "@termix/plugin-sdk/testing";
import type { PluginManifest } from "@termix/plugin-sdk/manifest";
import type { PluginApiClient } from "@termix/plugin-sdk/frontend";
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 PERMISSIONS = [
"snippets.view",
"snippets.create",
"snippets.edit",
"snippets.delete",
"snippets.share",
];
const HOSTS = [
{ id: "5", name: "web-1", ip: "10.0.0.5", port: 22, username: "root" },
];
function snippet(overrides: Record<string, unknown>) {
return {
id: 1,
userId: "u1",
name: "List files",
content: "ls -la",
description: null,
folder: null,
order: 0,
hostFilter: null,
isNote: false,
createdAt: "",
updatedAt: "",
...overrides,
};
}
function fakeApi(snippets: unknown[], folders: unknown[] = []) {
const api = {
get: vi.fn(async (path: string) => {
if (path === "/folders") return { data: folders };
if (path === "/share-targets/users")
return { data: { users: [{ id: "u2", username: "bob" }] } };
if (path === "/share-targets/roles") return { data: { roles: [] } };
if (path.endsWith("/access")) return { data: [] };
return { data: snippets };
}),
post: vi.fn(async (path: string) => ({
data: path === "/execute" ? { success: true, output: "up 3 days" } : {},
})),
put: vi.fn(async () => ({ data: {} })),
patch: vi.fn(async () => ({ data: {} })),
delete: vi.fn(async () => ({ data: {} })),
};
return api as typeof api & PluginApiClient;
}
let rendered: RenderedPluginApp | null = null;
afterEach(async () => {
await rendered?.deactivate();
rendered = null;
});
async function renderPanel(api: PluginApiClient) {
rendered = await renderWithApp(plugin, {
manifest,
locales,
api,
permissions: PERMISSIONS,
hosts: HOSTS as never,
});
rendered.renderPanel("snippets", { active: true });
}
describe("snippets panel", () => {
it("lists root snippets with their command", async () => {
await renderPanel(fakeApi([snippet({})]));
expect(await screen.findByText("List files")).toBeTruthy();
expect(screen.getByText("ls -la")).toBeTruthy();
});
it("shows empty folders and opens them on click", async () => {
const api = fakeApi(
[snippet({ id: 2, name: "Restart nginx", folder: "Web" })],
[
{ id: 1, name: "Web", color: null, icon: "server" },
{ id: 2, name: "Empty", color: null, icon: null },
],
);
await renderPanel(api);
fireEvent.click(await screen.findByText("Web"));
expect(await screen.findByText("Restart nginx")).toBeTruthy();
expect(screen.getByText("Empty")).toBeTruthy();
});
it("filters by content and opens matching folders", async () => {
const api = fakeApi([
snippet({ id: 1, name: "One", content: "uptime" }),
snippet({ id: 2, name: "Two", content: "df -h", folder: "Disk" }),
]);
await renderPanel(api);
await screen.findByText("One");
fireEvent.change(screen.getByPlaceholderText(/search snippets/i), {
target: { value: "df" },
});
expect(await screen.findByText("Two")).toBeTruthy();
expect(screen.queryByText("One")).toBeNull();
});
it("creates a snippet in the inline editor", async () => {
const api = fakeApi([]);
await renderPanel(api);
await screen.findByText(locales.emptyTitle);
fireEvent.click(screen.getByTitle(locales.newSnippet));
fireEvent.change(screen.getByPlaceholderText(locales.namePlaceholder), {
target: { value: "Uptime" },
});
fireEvent.change(screen.getByPlaceholderText(locales.commandPlaceholder), {
target: { value: "uptime" },
});
fireEvent.click(
screen.getByRole("button", { name: locales.createSnippetButton }),
);
await waitFor(() =>
expect(api.post).toHaveBeenCalledWith("/", {
name: "Uptime",
content: "uptime",
description: null,
folder: null,
isNote: false,
hostFilter: null,
}),
);
expect(await screen.findByPlaceholderText(/search snippets/i)).toBeTruthy();
});
it("opens the settings page and goes back", async () => {
await renderPanel(fakeApi([]));
await screen.findByText(locales.emptyTitle);
fireEvent.click(screen.getByTitle(locales.settingsTitle));
expect(
await screen.findByText(locales.settings.foldersCollapsed.label),
).toBeTruthy();
fireEvent.click(screen.getByText(locales.backToSnippets));
expect(await screen.findByText(locales.emptyTitle)).toBeTruthy();
});
it("shares a snippet with a user", async () => {
const api = fakeApi([snippet({})]);
await renderPanel(api);
await screen.findByText("List files");
fireEvent.click(screen.getByTitle(locales.shareSnippet));
fireEvent.click(await screen.findByText("bob"));
fireEvent.click(screen.getByRole("button", { name: /share with 1/i }));
await waitFor(() =>
expect(api.post).toHaveBeenCalledWith("/1/share", {
targetType: "user",
targetUserId: "u2",
expiresAt: null,
}),
);
expect(await screen.findByText(locales.notSharedYet)).toBeTruthy();
fireEvent.click(screen.getByText(/share "list files"/i));
expect(await screen.findByText("List files")).toBeTruthy();
});
it("runs a snippet with target hosts on those hosts", async () => {
const api = fakeApi([snippet({ hostFilter: "[5]" })]);
await renderPanel(api);
expect(await screen.findByText("web-1")).toBeTruthy();
fireEvent.click(screen.getByTitle(locales.runOnTargets));
await waitFor(() =>
expect(api.post).toHaveBeenCalledWith("/execute", {
snippetId: 1,
hostId: 5,
inputValues: undefined,
}),
);
expect(await screen.findByText("up 3 days")).toBeTruthy();
});
it("reorders snippets by dragging", async () => {
const api = fakeApi([
snippet({ id: 1, name: "First", order: 0 }),
snippet({ id: 2, name: "Second", order: 1 }),
]);
await renderPanel(api);
const row = (name: string) =>
screen.getByText(name).closest("[draggable]") as HTMLElement;
await screen.findByText("First");
// jsdom has no layout, so a drop always lands below the target row.
fireEvent.dragStart(row("First"), {
dataTransfer: { effectAllowed: "" },
});
fireEvent.dragOver(row("Second"));
fireEvent.drop(row("Second"));
await waitFor(() =>
expect(api.put).toHaveBeenCalledWith("/reorder", {
snippets: [
{ id: 2, order: 0, folder: "" },
{ id: 1, order: 1, folder: "" },
],
}),
);
});
});
describe("snippet target terminals", () => {
it("runs a snippet in every picked terminal", async () => {
const sent: Array<[string, string]> = [];
rendered = await renderWithApp(plugin, {
manifest,
locales,
api: fakeApi([snippet({})]),
permissions: PERMISSIONS,
hosts: HOSTS as never,
});
rendered.app.registerAction("terminal.listSessions", () => [
{ id: "s1", label: "web-1", hostName: "web-1" },
{ id: "s2", label: "web-2", hostName: "web-2" },
]);
rendered.app.registerAction("terminal.sendToSession", ((
id: string,
text: string,
) => {
sent.push([id, text]);
return true;
}) as never);
rendered.renderPanel("snippets", { active: true });
fireEvent.click(await screen.findByText(locales.selectAll));
fireEvent.click(screen.getAllByTitle(locales.run)[0]);
await waitFor(() =>
expect(sent).toEqual([
["s1", "ls -la"],
["s2", "ls -la"],
]),
);
});
});
@@ -0,0 +1,16 @@
import { describe, expect, it } from "vitest";
import { parseHostFilter } from "../../src/frontend/types";
describe("parseHostFilter", () => {
it("reads a stored list of host ids", () => {
expect(parseHostFilter("[1,5]")).toEqual([1, 5]);
});
it("treats empty, malformed or non-numeric values as no targets", () => {
expect(parseHostFilter(null)).toEqual([]);
expect(parseHostFilter("")).toEqual([]);
expect(parseHostFilter("not json")).toEqual([]);
expect(parseHostFilter('{"a":1}')).toEqual([]);
expect(parseHostFilter('[1,"x",2]')).toEqual([1, 2]);
});
});
+4
View File
@@ -0,0 +1,4 @@
{
"extends": "@termix/plugin-sdk/tsconfig.plugin.json",
"include": ["src/**/*.ts", "src/**/*.tsx", "tests/**/*.ts", "tests/**/*.tsx"]
}
+3
View File
@@ -0,0 +1,3 @@
import { pluginVitestConfig } from "@termix/plugin-sdk/vitest-preset";
export default pluginVitestConfig(import.meta.url);