mirror of
https://github.com/Termix-SSH/Termix.git
synced 2026-10-28 22:25:24 +00:00
fix: proxmox guest sync, startup snippet sync, drop dead cloudflare ssh transport
This commit is contained in:
1 parent
44062e30d1
commit
ffa872ebd3
19 files changed
+270
-292
No files matched your search
@@ -3,7 +3,7 @@ import type { KeyCombo } from "@/types/keybindings";
|
||||
export interface DefaultKeybindingInfo {
|
||||
id: string;
|
||||
combo: KeyCombo;
|
||||
description: string;
|
||||
descriptionKey: string;
|
||||
}
|
||||
|
||||
export const BUILT_IN_DEFAULTS: DefaultKeybindingInfo[] = [
|
||||
@@ -17,7 +17,7 @@ export const BUILT_IN_DEFAULTS: DefaultKeybindingInfo[] = [
|
||||
shift: false,
|
||||
meta: false,
|
||||
},
|
||||
description: "Copy selection (Ctrl+C, only when text is selected)",
|
||||
descriptionKey: "newUi.sidebar.keybindings.builtIn.copyCtrlC",
|
||||
},
|
||||
{
|
||||
id: "default-copy-ctrlshiftc",
|
||||
@@ -29,7 +29,7 @@ export const BUILT_IN_DEFAULTS: DefaultKeybindingInfo[] = [
|
||||
shift: true,
|
||||
meta: false,
|
||||
},
|
||||
description: "Copy selection (Ctrl+Shift+C)",
|
||||
descriptionKey: "newUi.sidebar.keybindings.builtIn.copyCtrlShiftC",
|
||||
},
|
||||
{
|
||||
id: "default-copy-cmdc",
|
||||
@@ -41,7 +41,7 @@ export const BUILT_IN_DEFAULTS: DefaultKeybindingInfo[] = [
|
||||
shift: false,
|
||||
meta: true,
|
||||
},
|
||||
description: "Copy selection (Cmd+C)",
|
||||
descriptionKey: "newUi.sidebar.keybindings.builtIn.copyCmdC",
|
||||
},
|
||||
{
|
||||
id: "default-paste-ctrlshiftv",
|
||||
@@ -53,7 +53,7 @@ export const BUILT_IN_DEFAULTS: DefaultKeybindingInfo[] = [
|
||||
shift: true,
|
||||
meta: false,
|
||||
},
|
||||
description: "Paste from clipboard (Ctrl+Shift+V)",
|
||||
descriptionKey: "newUi.sidebar.keybindings.builtIn.pasteCtrlShiftV",
|
||||
},
|
||||
{
|
||||
id: "default-ctrlaltw",
|
||||
@@ -65,7 +65,7 @@ export const BUILT_IN_DEFAULTS: DefaultKeybindingInfo[] = [
|
||||
shift: false,
|
||||
meta: false,
|
||||
},
|
||||
description: "Send Ctrl+W to shell (blocked from closing browser tab)",
|
||||
descriptionKey: "newUi.sidebar.keybindings.builtIn.ctrlW",
|
||||
},
|
||||
{
|
||||
id: "default-ctrlaltt",
|
||||
@@ -77,7 +77,7 @@ export const BUILT_IN_DEFAULTS: DefaultKeybindingInfo[] = [
|
||||
shift: false,
|
||||
meta: false,
|
||||
},
|
||||
description: "Send Ctrl+T to shell (blocked from opening browser tab)",
|
||||
descriptionKey: "newUi.sidebar.keybindings.builtIn.ctrlT",
|
||||
},
|
||||
{
|
||||
id: "default-ctrlaltn",
|
||||
@@ -89,7 +89,7 @@ export const BUILT_IN_DEFAULTS: DefaultKeybindingInfo[] = [
|
||||
shift: false,
|
||||
meta: false,
|
||||
},
|
||||
description: "Send Ctrl+N to shell (blocked from opening browser window)",
|
||||
descriptionKey: "newUi.sidebar.keybindings.builtIn.ctrlN",
|
||||
},
|
||||
{
|
||||
id: "default-ctrlaltq",
|
||||
@@ -101,6 +101,6 @@ export const BUILT_IN_DEFAULTS: DefaultKeybindingInfo[] = [
|
||||
shift: false,
|
||||
meta: false,
|
||||
},
|
||||
description: "Send Ctrl+Q to shell (blocked from quitting browser)",
|
||||
descriptionKey: "newUi.sidebar.keybindings.builtIn.ctrlQ",
|
||||
},
|
||||
];
|
||||
@@ -815,22 +815,26 @@ export function resolveTerminalFontFamily(fontFamily?: string): string {
|
||||
}
|
||||
|
||||
export const CURSOR_STYLES = [
|
||||
{ value: "block", label: "Block" },
|
||||
{ value: "underline", label: "Underline" },
|
||||
{ value: "bar", label: "Bar" },
|
||||
{ value: "block", label: "Block", labelKey: "hosts.cursorStyleBlock" },
|
||||
{
|
||||
value: "underline",
|
||||
label: "Underline",
|
||||
labelKey: "hosts.cursorStyleUnderline",
|
||||
},
|
||||
{ value: "bar", label: "Bar", labelKey: "hosts.cursorStyleBar" },
|
||||
] as const;
|
||||
|
||||
export const BELL_STYLES = [
|
||||
{ value: "none", label: "None" },
|
||||
{ value: "sound", label: "Sound" },
|
||||
{ value: "visual", label: "Visual" },
|
||||
{ value: "both", label: "Both" },
|
||||
{ value: "none", label: "None", labelKey: "hosts.bellStyleNone" },
|
||||
{ value: "sound", label: "Sound", labelKey: "hosts.bellStyleSound" },
|
||||
{ value: "visual", label: "Visual", labelKey: "hosts.bellStyleVisual" },
|
||||
{ value: "both", label: "Both", labelKey: "hosts.bellStyleBoth" },
|
||||
] as const;
|
||||
|
||||
export const FAST_SCROLL_MODIFIERS = [
|
||||
{ value: "alt", label: "Alt" },
|
||||
{ value: "ctrl", label: "Ctrl" },
|
||||
{ value: "shift", label: "Shift" },
|
||||
{ value: "alt", label: "Alt", labelKey: "hosts.fastScrollModifierAlt" },
|
||||
{ value: "ctrl", label: "Ctrl", labelKey: "hosts.fastScrollModifierCtrl" },
|
||||
{ value: "shift", label: "Shift", labelKey: "hosts.fastScrollModifierShift" },
|
||||
] as const;
|
||||
|
||||
export const DEFAULT_TERMINAL_CONFIG = {
|
||||
|
||||
+24
-2
@@ -1008,7 +1008,19 @@
|
||||
"localOnly": "Keep on this device only",
|
||||
"localOnlyDesc": "This host is not sent to the server and does not appear on your other devices.",
|
||||
"folderLocalOnly": "Keep on this device only",
|
||||
"folderLocalOnlyDesc": "This folder and every host in it stay on this device and are not sent to the server."
|
||||
"folderLocalOnlyDesc": "This folder and every host in it stay on this device and are not sent to the server.",
|
||||
"cursorStyleBlock": "Block",
|
||||
"cursorStyleUnderline": "Underline",
|
||||
"cursorStyleBar": "Bar",
|
||||
"bellStyleNone": "None",
|
||||
"bellStyleSound": "Sound",
|
||||
"bellStyleVisual": "Visual",
|
||||
"bellStyleBoth": "Both",
|
||||
"fastScrollModifierAlt": "Alt",
|
||||
"fastScrollModifierCtrl": "Ctrl",
|
||||
"fastScrollModifierShift": "Shift",
|
||||
"backspaceModeNormal": "Normal (DEL)",
|
||||
"backspaceModeControlH": "Control-H (BS)"
|
||||
},
|
||||
"commandPalette": {
|
||||
"searchPlaceholder": "Search hosts, commands, or settings...",
|
||||
@@ -2008,7 +2020,17 @@
|
||||
"snippetLabel": "Snippet",
|
||||
"selectSnippetPlaceholder": "Select a snippet",
|
||||
"orphanedSnippetWarning": "snippet not found",
|
||||
"clipboardPermissionNote": "May prompt for clipboard permission on first use in some browsers."
|
||||
"clipboardPermissionNote": "May prompt for clipboard permission on first use in some browsers.",
|
||||
"builtIn": {
|
||||
"copyCtrlC": "Copy selection (Ctrl+C, only when text is selected)",
|
||||
"copyCtrlShiftC": "Copy selection (Ctrl+Shift+C)",
|
||||
"copyCmdC": "Copy selection (Cmd+C)",
|
||||
"pasteCtrlShiftV": "Paste from clipboard (Ctrl+Shift+V)",
|
||||
"ctrlW": "Send Ctrl+W to shell (blocked from closing browser tab)",
|
||||
"ctrlT": "Send Ctrl+T to shell (blocked from opening browser tab)",
|
||||
"ctrlN": "Send Ctrl+N to shell (blocked from opening browser window)",
|
||||
"ctrlQ": "Send Ctrl+Q to shell (blocked from quitting browser)"
|
||||
}
|
||||
},
|
||||
"connectionDefaults": {
|
||||
"title": "Connection Defaults",
|
||||
|
||||
@@ -278,7 +278,7 @@ export function ConnectionDefaultsSettings() {
|
||||
<option value="">{inheritLabel}</option>
|
||||
{CURSOR_STYLES.map((style) => (
|
||||
<option key={style.value} value={style.value}>
|
||||
{style.label}
|
||||
{t(style.labelKey)}
|
||||
</option>
|
||||
))}
|
||||
</select>
|
||||
|
||||
@@ -270,7 +270,7 @@ export function HostTerminalSettings({
|
||||
>
|
||||
{CURSOR_STYLES.map((s) => (
|
||||
<option key={s.value} value={s.value}>
|
||||
{s.label}
|
||||
{t(s.labelKey)}
|
||||
</option>
|
||||
))}
|
||||
</Select2>
|
||||
@@ -322,7 +322,7 @@ export function HostTerminalSettings({
|
||||
>
|
||||
{BELL_STYLES.map((b) => (
|
||||
<option key={b.value} value={b.value}>
|
||||
{b.label}
|
||||
{t(b.labelKey)}
|
||||
</option>
|
||||
))}
|
||||
</Select2>
|
||||
@@ -341,8 +341,12 @@ export function HostTerminalSettings({
|
||||
}
|
||||
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="normal">Normal (DEL)</option>
|
||||
<option value="control-h">Control-H (BS)</option>
|
||||
<option value="normal">
|
||||
{t("hosts.backspaceModeNormal")}
|
||||
</option>
|
||||
<option value="control-h">
|
||||
{t("hosts.backspaceModeControlH")}
|
||||
</option>
|
||||
</Select2>
|
||||
</div>
|
||||
</div>
|
||||
@@ -850,7 +854,7 @@ export function HostTerminalSettings({
|
||||
>
|
||||
{FAST_SCROLL_MODIFIERS.map((m) => (
|
||||
<option key={m.value} value={m.value}>
|
||||
{m.label}
|
||||
{t(m.labelKey)}
|
||||
</option>
|
||||
))}
|
||||
</Select2>
|
||||
|
||||
@@ -299,7 +299,7 @@ export function KeybindingsDialog({
|
||||
: formatCombo(def.combo)}
|
||||
</span>
|
||||
<span className="text-xs text-muted-foreground truncate">
|
||||
{def.description}
|
||||
{t(def.descriptionKey)}
|
||||
</span>
|
||||
</div>
|
||||
<div className="flex items-center gap-1 shrink-0">
|
||||
|
||||
File renamed without changes.
Reference in new issue
Block a user