@fefeding/aicmd 1.0.27 → 1.0.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -0
- package/README.zh.md +2 -0
- package/dist/public/ai-settings.css +22 -22
- package/dist/public/ai-settings.js +57 -4
- package/dist/public/connection-editor.css +2 -2
- package/dist/public/connection-editor.js +162 -43
- package/dist/public/selection-copy.js +42 -3
- package/dist/public/src/term.html +6 -6
- package/dist/public/src/vscode-edit.html +10 -10
- package/dist/public/src/vscode-term.html +13 -13
- package/dist/server/model/connection.entity.d.ts +17 -0
- package/dist/server/model/connection.entity.d.ts.map +1 -1
- package/dist/server/model/connection.entity.js +2 -0
- package/dist/server/model/connection.entity.js.map +1 -1
- package/dist/server/model/connection.entity.ts +19 -0
- package/dist/server/service/connection.service.d.ts +1 -1
- package/dist/server/service/connection.service.d.ts.map +1 -1
- package/dist/server/service/connection.service.js +32 -3
- package/dist/server/service/connection.service.js.map +1 -1
- package/dist/server/service/connection.service.ts +30 -3
- package/dist/server/service/monitor.service.d.ts.map +1 -1
- package/dist/server/service/monitor.service.js +8 -1
- package/dist/server/service/monitor.service.js.map +1 -1
- package/dist/server/service/monitor.service.ts +8 -1
- package/dist/server/service/rdp-tunnel.service.d.ts.map +1 -1
- package/dist/server/service/rdp-tunnel.service.js +50 -40
- package/dist/server/service/rdp-tunnel.service.js.map +1 -1
- package/dist/server/service/rdp-tunnel.service.ts +50 -39
- package/dist/server/service/ssh.service.d.ts.map +1 -1
- package/dist/server/service/ssh.service.js +3 -2
- package/dist/server/service/ssh.service.js.map +1 -1
- package/dist/server/service/ssh.service.ts +3 -2
- package/dist/server/utils/proxy.d.ts +28 -0
- package/dist/server/utils/proxy.d.ts.map +1 -0
- package/dist/server/utils/proxy.js +596 -0
- package/dist/server/utils/proxy.js.map +1 -0
- package/dist/server/utils/proxy.ts +556 -0
- package/dist/view/index.html +9 -9
- package/package.json +1 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { m as __esmMin } from "./vscode-clipboard.js";
|
|
2
|
-
import { C as createBlock, E as createTextVNode, H as withCtx, L as openBlock, N as nextTick, O as defineComponent, Q as ref, S as createBaseVNode, T as createElementBlock, U as withDirectives, V as watch, Z as reactive, _ as vShow, at as toDisplayString, c as useI18n, f as vModelCheckbox, g as vModelText, h as vModelSelect, l as init_vue_runtime_esm_bundler, m as vModelRadio, rt as normalizeClass, s as init_vue_i18n, tt as unref, w as createCommentVNode, x as computed, y as withModifiers } from "./vue.js";
|
|
2
|
+
import { C as createBlock, E as createTextVNode, H as withCtx, L as openBlock, N as nextTick, O as defineComponent, Q as ref, S as createBaseVNode, T as createElementBlock, U as withDirectives, V as watch, Z as reactive, _ as vShow, at as toDisplayString, b as Fragment, c as useI18n, f as vModelCheckbox, g as vModelText, h as vModelSelect, l as init_vue_runtime_esm_bundler, m as vModelRadio, rt as normalizeClass, s as init_vue_i18n, tt as unref, w as createCommentVNode, x as computed, y as withModifiers } from "./vue.js";
|
|
3
3
|
import { D as init_toast, O as toast, c as init_modal, f as _plugin_vue_export_helper_default, l as modal_default, p as init__plugin_vue_export_helper } from "./selection-copy.js";
|
|
4
4
|
import { n as init_connection, t as ConnectionService } from "./connection.js";
|
|
5
5
|
// src/components/connection-editor/index.vue?vue&type=script&setup=true&lang.ts
|
|
6
|
-
var _hoisted_1, _hoisted_2, _hoisted_3, _hoisted_4, _hoisted_5, _hoisted_6, _hoisted_7, _hoisted_8, _hoisted_9, _hoisted_10, _hoisted_11, _hoisted_12, _hoisted_13, _hoisted_14, _hoisted_15, _hoisted_16, _hoisted_17, _hoisted_18, _hoisted_19, _hoisted_20, _hoisted_21, _hoisted_22, _hoisted_23, _hoisted_24, _hoisted_25, _hoisted_26, _hoisted_27, _hoisted_28, _hoisted_29, _hoisted_30, _hoisted_31, _hoisted_32, _hoisted_33, _hoisted_34, _hoisted_35, _hoisted_36, _hoisted_37, _hoisted_38, _hoisted_39, _hoisted_40, _hoisted_41, _hoisted_42, _hoisted_43, _hoisted_44, _hoisted_45, _hoisted_46, _hoisted_47, _hoisted_48, _hoisted_49, _hoisted_50, _hoisted_51, _hoisted_52, _hoisted_53, _hoisted_54, _hoisted_55, _hoisted_56, _hoisted_57, _hoisted_58, _hoisted_59, _hoisted_60, _hoisted_61, _hoisted_62, _hoisted_63, _hoisted_64, _hoisted_65, _hoisted_66, _hoisted_67, _hoisted_68, _hoisted_69, _hoisted_70, _hoisted_71, _hoisted_72, _hoisted_73, _hoisted_74, _hoisted_75, _hoisted_76, _hoisted_77, _hoisted_78, _hoisted_79, _hoisted_80, _hoisted_81, _hoisted_82, _hoisted_83, _hoisted_84, _hoisted_85, _hoisted_86, _hoisted_87, _hoisted_88, _hoisted_89, _hoisted_90, _hoisted_91, _hoisted_92, _hoisted_93, _hoisted_94, _hoisted_95, _hoisted_96, index_vue_vue_type_script_setup_true_lang_default;
|
|
6
|
+
var _hoisted_1, _hoisted_2, _hoisted_3, _hoisted_4, _hoisted_5, _hoisted_6, _hoisted_7, _hoisted_8, _hoisted_9, _hoisted_10, _hoisted_11, _hoisted_12, _hoisted_13, _hoisted_14, _hoisted_15, _hoisted_16, _hoisted_17, _hoisted_18, _hoisted_19, _hoisted_20, _hoisted_21, _hoisted_22, _hoisted_23, _hoisted_24, _hoisted_25, _hoisted_26, _hoisted_27, _hoisted_28, _hoisted_29, _hoisted_30, _hoisted_31, _hoisted_32, _hoisted_33, _hoisted_34, _hoisted_35, _hoisted_36, _hoisted_37, _hoisted_38, _hoisted_39, _hoisted_40, _hoisted_41, _hoisted_42, _hoisted_43, _hoisted_44, _hoisted_45, _hoisted_46, _hoisted_47, _hoisted_48, _hoisted_49, _hoisted_50, _hoisted_51, _hoisted_52, _hoisted_53, _hoisted_54, _hoisted_55, _hoisted_56, _hoisted_57, _hoisted_58, _hoisted_59, _hoisted_60, _hoisted_61, _hoisted_62, _hoisted_63, _hoisted_64, _hoisted_65, _hoisted_66, _hoisted_67, _hoisted_68, _hoisted_69, _hoisted_70, _hoisted_71, _hoisted_72, _hoisted_73, _hoisted_74, _hoisted_75, _hoisted_76, _hoisted_77, _hoisted_78, _hoisted_79, _hoisted_80, _hoisted_81, _hoisted_82, _hoisted_83, _hoisted_84, _hoisted_85, _hoisted_86, _hoisted_87, _hoisted_88, _hoisted_89, _hoisted_90, _hoisted_91, _hoisted_92, _hoisted_93, _hoisted_94, _hoisted_95, _hoisted_96, _hoisted_97, _hoisted_98, _hoisted_99, _hoisted_100, _hoisted_101, _hoisted_102, _hoisted_103, _hoisted_104, _hoisted_105, _hoisted_106, _hoisted_107, _hoisted_108, _hoisted_109, _hoisted_110, _hoisted_111, _hoisted_112, _hoisted_113, _hoisted_114, _hoisted_115, _hoisted_116, _hoisted_117, _hoisted_118, index_vue_vue_type_script_setup_true_lang_default;
|
|
7
7
|
var init_index_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
8
8
|
init_vue_runtime_esm_bundler();
|
|
9
9
|
init_vue_i18n();
|
|
@@ -157,18 +157,46 @@ var init_index_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
|
157
157
|
_hoisted_88 = { value: "light" };
|
|
158
158
|
_hoisted_89 = { class: "col-6" };
|
|
159
159
|
_hoisted_90 = { class: "form-label" };
|
|
160
|
-
_hoisted_91 = { class: "
|
|
161
|
-
_hoisted_92 =
|
|
162
|
-
|
|
160
|
+
_hoisted_91 = { class: "card mb-3" };
|
|
161
|
+
_hoisted_92 = {
|
|
162
|
+
key: 0,
|
|
163
|
+
class: "badge bg-secondary ms-2"
|
|
164
|
+
};
|
|
165
|
+
_hoisted_93 = { class: "card-body" };
|
|
166
|
+
_hoisted_94 = { class: "form-label" };
|
|
167
|
+
_hoisted_95 = { value: "direct" };
|
|
168
|
+
_hoisted_96 = { value: "system" };
|
|
169
|
+
_hoisted_97 = { value: "custom" };
|
|
170
|
+
_hoisted_98 = { class: "form-text text-muted d-block" };
|
|
171
|
+
_hoisted_99 = { class: "row g-2 mt-2" };
|
|
172
|
+
_hoisted_100 = { class: "col-md-8" };
|
|
173
|
+
_hoisted_101 = { class: "form-label" };
|
|
174
|
+
_hoisted_102 = ["placeholder"];
|
|
175
|
+
_hoisted_103 = { class: "col-md-4" };
|
|
176
|
+
_hoisted_104 = { class: "form-label" };
|
|
177
|
+
_hoisted_105 = { class: "row g-2 mt-2" };
|
|
178
|
+
_hoisted_106 = { class: "col-md-6" };
|
|
179
|
+
_hoisted_107 = { class: "form-label" };
|
|
180
|
+
_hoisted_108 = { class: "col-md-6" };
|
|
181
|
+
_hoisted_109 = { class: "form-label" };
|
|
182
|
+
_hoisted_110 = {
|
|
183
|
+
key: 0,
|
|
184
|
+
class: "mt-2"
|
|
185
|
+
};
|
|
186
|
+
_hoisted_111 = { class: "form-label" };
|
|
187
|
+
_hoisted_112 = { class: "form-text text-muted d-block mt-2" };
|
|
188
|
+
_hoisted_113 = { class: "d-flex justify-content-between" };
|
|
189
|
+
_hoisted_114 = ["disabled"];
|
|
190
|
+
_hoisted_115 = {
|
|
163
191
|
key: 0,
|
|
164
192
|
class: "spinner-border spinner-border-sm me-1"
|
|
165
193
|
};
|
|
166
|
-
|
|
194
|
+
_hoisted_116 = {
|
|
167
195
|
key: 1,
|
|
168
196
|
class: "bi bi-plug me-1"
|
|
169
197
|
};
|
|
170
|
-
|
|
171
|
-
|
|
198
|
+
_hoisted_117 = ["disabled"];
|
|
199
|
+
_hoisted_118 = {
|
|
172
200
|
key: 0,
|
|
173
201
|
class: "spinner-border spinner-border-sm me-1"
|
|
174
202
|
};
|
|
@@ -187,6 +215,7 @@ var init_index_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
|
187
215
|
const showTerminalConfig = ref(false);
|
|
188
216
|
const showStartupScript = ref(false);
|
|
189
217
|
const showKeepaliveConfig = ref(false);
|
|
218
|
+
const showProxyConfig = ref(false);
|
|
190
219
|
const testing = ref(false);
|
|
191
220
|
const saving = ref(false);
|
|
192
221
|
const keepaliveEnabled = ref(true);
|
|
@@ -217,6 +246,28 @@ var init_index_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
|
217
246
|
enabled: true
|
|
218
247
|
});
|
|
219
248
|
const form = reactive(defaultForm());
|
|
249
|
+
const defaultProxy = () => ({
|
|
250
|
+
mode: "system",
|
|
251
|
+
type: "http",
|
|
252
|
+
host: "",
|
|
253
|
+
port: 8080,
|
|
254
|
+
username: "",
|
|
255
|
+
password: ""
|
|
256
|
+
});
|
|
257
|
+
const proxyOptions = reactive(defaultProxy());
|
|
258
|
+
const proxyModeLabel = computed(() => {
|
|
259
|
+
if (proxyOptions.mode === "system") return t("connection.proxyModeSystem");
|
|
260
|
+
if (proxyOptions.mode === "custom") return t("connection.proxyModeCustom");
|
|
261
|
+
return "";
|
|
262
|
+
});
|
|
263
|
+
function syncProxyToForm() {
|
|
264
|
+
form.proxy = { ...proxyOptions };
|
|
265
|
+
}
|
|
266
|
+
function proxyValid() {
|
|
267
|
+
if (proxyOptions.mode !== "custom" || proxyOptions.host.trim()) return true;
|
|
268
|
+
toast.warning(t("connection.proxyHostRequired"));
|
|
269
|
+
return false;
|
|
270
|
+
}
|
|
220
271
|
let skipTypeWatch = false;
|
|
221
272
|
watch(() => form.type, (newType, oldType) => {
|
|
222
273
|
if (skipTypeWatch || newType === oldType) return;
|
|
@@ -242,6 +293,7 @@ var init_index_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
|
242
293
|
if (connection) {
|
|
243
294
|
editingConnection.value = connection.id;
|
|
244
295
|
Object.assign(form, defaultForm(), connection);
|
|
296
|
+
Object.assign(proxyOptions, defaultProxy(), connection.proxy || {});
|
|
245
297
|
if (!form.platform) form.platform = "auto";
|
|
246
298
|
showStartupScript.value = !!connection.startupScript || !!connection.forwardAgent;
|
|
247
299
|
if (connection.options?.keepaliveInterval !== void 0) keepaliveInterval.value = connection.options.keepaliveInterval;
|
|
@@ -258,6 +310,7 @@ var init_index_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
|
258
310
|
} else {
|
|
259
311
|
editingConnection.value = null;
|
|
260
312
|
Object.assign(form, defaultForm());
|
|
313
|
+
Object.assign(proxyOptions, defaultProxy());
|
|
261
314
|
showStartupScript.value = false;
|
|
262
315
|
showKeepaliveConfig.value = false;
|
|
263
316
|
keepaliveEnabled.value = true;
|
|
@@ -267,6 +320,7 @@ var init_index_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
|
267
320
|
rdpOptions.width = 1280;
|
|
268
321
|
rdpOptions.height = 800;
|
|
269
322
|
}
|
|
323
|
+
showProxyConfig.value = false;
|
|
270
324
|
nextTick(() => {
|
|
271
325
|
skipTypeWatch = false;
|
|
272
326
|
});
|
|
@@ -294,6 +348,8 @@ var init_index_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
|
294
348
|
toast.warning(t("connection.hostUsernameRequired"));
|
|
295
349
|
return;
|
|
296
350
|
}
|
|
351
|
+
if (!proxyValid()) return;
|
|
352
|
+
syncProxyToForm();
|
|
297
353
|
saving.value = true;
|
|
298
354
|
try {
|
|
299
355
|
if (form.type === "rdp") {
|
|
@@ -330,6 +386,8 @@ var init_index_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
|
330
386
|
toast.warning(t("connection.hostUsernameTestRequired"));
|
|
331
387
|
return;
|
|
332
388
|
}
|
|
389
|
+
if (!proxyValid()) return;
|
|
390
|
+
syncProxyToForm();
|
|
333
391
|
testing.value = true;
|
|
334
392
|
try {
|
|
335
393
|
if (await connectionService.testConnection({ ...form })) toast.success(t("connection.testSuccess"));
|
|
@@ -390,9 +448,9 @@ var init_index_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
|
390
448
|
class: "connection-form"
|
|
391
449
|
}, [
|
|
392
450
|
createBaseVNode("div", _hoisted_1, [createBaseVNode("label", _hoisted_2, [
|
|
393
|
-
_cache[
|
|
451
|
+
_cache[35] || (_cache[35] = createBaseVNode("i", { class: "bi bi-tag me-1" }, null, -1)),
|
|
394
452
|
createTextVNode(toDisplayString(unref(t)("connection.name")) + " ", 1),
|
|
395
|
-
_cache[
|
|
453
|
+
_cache[36] || (_cache[36] = createBaseVNode("span", { class: "text-danger" }, "*", -1))
|
|
396
454
|
]), withDirectives(createBaseVNode("input", {
|
|
397
455
|
type: "text",
|
|
398
456
|
class: "form-control",
|
|
@@ -400,7 +458,7 @@ var init_index_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
|
400
458
|
placeholder: unref(t)("connection.namePlaceholder"),
|
|
401
459
|
required: ""
|
|
402
460
|
}, null, 8, _hoisted_3), [[vModelText, form.name]])]),
|
|
403
|
-
createBaseVNode("div", _hoisted_4, [createBaseVNode("label", _hoisted_5, [_cache[
|
|
461
|
+
createBaseVNode("div", _hoisted_4, [createBaseVNode("label", _hoisted_5, [_cache[37] || (_cache[37] = createBaseVNode("i", { class: "bi bi-diagram-3 me-1" }, null, -1)), createTextVNode(toDisplayString(unref(t)("connection.connType")), 1)]), createBaseVNode("div", _hoisted_6, [
|
|
404
462
|
withDirectives(createBaseVNode("input", {
|
|
405
463
|
type: "radio",
|
|
406
464
|
class: "btn-check",
|
|
@@ -409,7 +467,7 @@ var init_index_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
|
409
467
|
value: "ssh",
|
|
410
468
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => form.type = $event)
|
|
411
469
|
}, null, 512), [[vModelRadio, form.type]]),
|
|
412
|
-
createBaseVNode("label", _hoisted_7, [_cache[
|
|
470
|
+
createBaseVNode("label", _hoisted_7, [_cache[38] || (_cache[38] = createBaseVNode("i", { class: "bi bi-terminal me-1" }, null, -1)), createTextVNode(toDisplayString(unref(t)("connection.typeSsh")), 1)]),
|
|
413
471
|
withDirectives(createBaseVNode("input", {
|
|
414
472
|
type: "radio",
|
|
415
473
|
class: "btn-check",
|
|
@@ -418,19 +476,19 @@ var init_index_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
|
418
476
|
value: "rdp",
|
|
419
477
|
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => form.type = $event)
|
|
420
478
|
}, null, 512), [[vModelRadio, form.type]]),
|
|
421
|
-
createBaseVNode("label", _hoisted_8, [_cache[
|
|
479
|
+
createBaseVNode("label", _hoisted_8, [_cache[39] || (_cache[39] = createBaseVNode("i", { class: "bi bi-display me-1" }, null, -1)), createTextVNode(toDisplayString(unref(t)("connection.typeRdp")), 1)])
|
|
422
480
|
])]),
|
|
423
481
|
createBaseVNode("div", _hoisted_9, [createBaseVNode("div", _hoisted_10, [createBaseVNode("label", _hoisted_11, [
|
|
424
|
-
_cache[
|
|
482
|
+
_cache[40] || (_cache[40] = createBaseVNode("i", { class: "bi bi-server me-1" }, null, -1)),
|
|
425
483
|
createTextVNode(toDisplayString(unref(t)("connection.host")) + " ", 1),
|
|
426
|
-
_cache[
|
|
484
|
+
_cache[41] || (_cache[41] = createBaseVNode("span", { class: "text-danger" }, "*", -1))
|
|
427
485
|
]), withDirectives(createBaseVNode("input", {
|
|
428
486
|
type: "text",
|
|
429
487
|
class: "form-control",
|
|
430
488
|
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => form.host = $event),
|
|
431
489
|
placeholder: unref(t)("connection.hostPlaceholder"),
|
|
432
490
|
required: form.type !== "local"
|
|
433
|
-
}, null, 8, _hoisted_12), [[vModelText, form.host]])]), createBaseVNode("div", _hoisted_13, [createBaseVNode("label", _hoisted_14, [_cache[
|
|
491
|
+
}, null, 8, _hoisted_12), [[vModelText, form.host]])]), createBaseVNode("div", _hoisted_13, [createBaseVNode("label", _hoisted_14, [_cache[42] || (_cache[42] = createBaseVNode("i", { class: "bi bi-door-closed me-1" }, null, -1)), createTextVNode(toDisplayString(unref(t)("connection.port")), 1)]), withDirectives(createBaseVNode("input", {
|
|
434
492
|
type: "number",
|
|
435
493
|
class: "form-control",
|
|
436
494
|
"onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => form.port = $event),
|
|
@@ -443,7 +501,7 @@ var init_index_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
|
443
501
|
{ number: true }
|
|
444
502
|
]])])]),
|
|
445
503
|
form.type === "ssh" ? (openBlock(), createElementBlock("div", _hoisted_15, [
|
|
446
|
-
createBaseVNode("label", _hoisted_16, [_cache[
|
|
504
|
+
createBaseVNode("label", _hoisted_16, [_cache[43] || (_cache[43] = createBaseVNode("i", { class: "bi bi-cpu me-1" }, null, -1)), createTextVNode(toDisplayString(unref(t)("connection.platform")), 1)]),
|
|
447
505
|
withDirectives(createBaseVNode("select", {
|
|
448
506
|
class: "form-select",
|
|
449
507
|
"onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => form.platform = $event)
|
|
@@ -453,12 +511,12 @@ var init_index_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
|
453
511
|
createBaseVNode("option", _hoisted_19, toDisplayString(unref(t)("connection.platformMacos")), 1),
|
|
454
512
|
createBaseVNode("option", _hoisted_20, toDisplayString(unref(t)("connection.platformWindows")), 1)
|
|
455
513
|
], 512), [[vModelSelect, form.platform]]),
|
|
456
|
-
createBaseVNode("small", _hoisted_21, [_cache[
|
|
514
|
+
createBaseVNode("small", _hoisted_21, [_cache[44] || (_cache[44] = createBaseVNode("i", { class: "bi bi-info-circle me-1" }, null, -1)), createTextVNode(toDisplayString(unref(t)("connection.platformHint")), 1)])
|
|
457
515
|
])) : createCommentVNode("", true),
|
|
458
516
|
createBaseVNode("div", _hoisted_22, [createBaseVNode("label", _hoisted_23, [
|
|
459
|
-
_cache[
|
|
517
|
+
_cache[45] || (_cache[45] = createBaseVNode("i", { class: "bi bi-person me-1" }, null, -1)),
|
|
460
518
|
createTextVNode(toDisplayString(unref(t)("connection.username")) + " ", 1),
|
|
461
|
-
_cache[
|
|
519
|
+
_cache[46] || (_cache[46] = createBaseVNode("span", { class: "text-danger" }, "*", -1))
|
|
462
520
|
]), withDirectives(createBaseVNode("input", {
|
|
463
521
|
type: "text",
|
|
464
522
|
class: "form-control",
|
|
@@ -467,7 +525,7 @@ var init_index_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
|
467
525
|
required: form.type !== "local"
|
|
468
526
|
}, null, 8, _hoisted_24), [[vModelText, form.username]])]),
|
|
469
527
|
form.type === "rdp" ? (openBlock(), createElementBlock("div", _hoisted_25, [
|
|
470
|
-
createBaseVNode("div", _hoisted_26, [_cache[
|
|
528
|
+
createBaseVNode("div", _hoisted_26, [_cache[47] || (_cache[47] = createBaseVNode("i", { class: "bi bi-display me-1" }, null, -1)), createTextVNode(toDisplayString(unref(t)("connection.rdpSettings")), 1)]),
|
|
471
529
|
createBaseVNode("div", _hoisted_27, [
|
|
472
530
|
createBaseVNode("div", _hoisted_28, [createBaseVNode("label", _hoisted_29, toDisplayString(unref(t)("connection.rdpDomain")), 1), withDirectives(createBaseVNode("input", {
|
|
473
531
|
type: "text",
|
|
@@ -500,10 +558,10 @@ var init_index_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
|
500
558
|
{ number: true }
|
|
501
559
|
]])])
|
|
502
560
|
]),
|
|
503
|
-
createBaseVNode("small", _hoisted_35, [_cache[
|
|
561
|
+
createBaseVNode("small", _hoisted_35, [_cache[48] || (_cache[48] = createBaseVNode("i", { class: "bi bi-info-circle me-1" }, null, -1)), createTextVNode(toDisplayString(unref(t)("connection.rdpHint")), 1)])
|
|
504
562
|
])) : createCommentVNode("", true),
|
|
505
563
|
form.type === "ssh" ? (openBlock(), createElementBlock("div", _hoisted_36, [
|
|
506
|
-
createBaseVNode("label", _hoisted_37, [_cache[
|
|
564
|
+
createBaseVNode("label", _hoisted_37, [_cache[49] || (_cache[49] = createBaseVNode("i", { class: "bi bi-shield-lock me-1" }, null, -1)), createTextVNode(toDisplayString(unref(t)("connection.authType")), 1)]),
|
|
507
565
|
createBaseVNode("div", _hoisted_38, [
|
|
508
566
|
withDirectives(createBaseVNode("input", {
|
|
509
567
|
type: "radio",
|
|
@@ -513,7 +571,7 @@ var init_index_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
|
513
571
|
value: "auto",
|
|
514
572
|
"onUpdate:modelValue": _cache[10] || (_cache[10] = ($event) => form.authType = $event)
|
|
515
573
|
}, null, 512), [[vModelRadio, form.authType]]),
|
|
516
|
-
createBaseVNode("label", _hoisted_39, [_cache[
|
|
574
|
+
createBaseVNode("label", _hoisted_39, [_cache[50] || (_cache[50] = createBaseVNode("i", { class: "bi bi-magic me-1" }, null, -1)), createTextVNode(toDisplayString(unref(t)("connection.auto")), 1)]),
|
|
517
575
|
withDirectives(createBaseVNode("input", {
|
|
518
576
|
type: "radio",
|
|
519
577
|
class: "btn-check",
|
|
@@ -522,7 +580,7 @@ var init_index_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
|
522
580
|
value: "password",
|
|
523
581
|
"onUpdate:modelValue": _cache[11] || (_cache[11] = ($event) => form.authType = $event)
|
|
524
582
|
}, null, 512), [[vModelRadio, form.authType]]),
|
|
525
|
-
createBaseVNode("label", _hoisted_40, [_cache[
|
|
583
|
+
createBaseVNode("label", _hoisted_40, [_cache[51] || (_cache[51] = createBaseVNode("i", { class: "bi bi-key me-1" }, null, -1)), createTextVNode(toDisplayString(unref(t)("connection.password")), 1)]),
|
|
526
584
|
withDirectives(createBaseVNode("input", {
|
|
527
585
|
type: "radio",
|
|
528
586
|
class: "btn-check",
|
|
@@ -531,9 +589,9 @@ var init_index_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
|
531
589
|
value: "privateKey",
|
|
532
590
|
"onUpdate:modelValue": _cache[12] || (_cache[12] = ($event) => form.authType = $event)
|
|
533
591
|
}, null, 512), [[vModelRadio, form.authType]]),
|
|
534
|
-
createBaseVNode("label", _hoisted_41, [_cache[
|
|
592
|
+
createBaseVNode("label", _hoisted_41, [_cache[52] || (_cache[52] = createBaseVNode("i", { class: "bi bi-file-earmark-lock me-1" }, null, -1)), createTextVNode(toDisplayString(unref(t)("connection.privateKey")), 1)])
|
|
535
593
|
]),
|
|
536
|
-
form.authType === "auto" ? (openBlock(), createElementBlock("small", _hoisted_42, [_cache[
|
|
594
|
+
form.authType === "auto" ? (openBlock(), createElementBlock("small", _hoisted_42, [_cache[53] || (_cache[53] = createBaseVNode("i", { class: "bi bi-info-circle me-1" }, null, -1)), createTextVNode(toDisplayString(unref(t)("connection.autoHint")), 1)])) : createCommentVNode("", true)
|
|
537
595
|
])) : createCommentVNode("", true),
|
|
538
596
|
isRdp.value || form.authType === "password" ? (openBlock(), createElementBlock("div", _hoisted_43, [createBaseVNode("label", _hoisted_44, toDisplayString(unref(t)("connection.passwordLabel")), 1), withDirectives(createBaseVNode("input", {
|
|
539
597
|
type: "password",
|
|
@@ -559,14 +617,14 @@ var init_index_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
|
559
617
|
type: "button",
|
|
560
618
|
class: "btn btn-sm btn-outline-secondary",
|
|
561
619
|
onClick: loadPrivateKey
|
|
562
|
-
}, [_cache[
|
|
620
|
+
}, [_cache[54] || (_cache[54] = createBaseVNode("i", { class: "bi bi-folder-open me-1" }, null, -1)), createTextVNode(toDisplayString(unref(t)("connection.loadFromFile")), 1)])])
|
|
563
621
|
])) : createCommentVNode("", true),
|
|
564
622
|
form.type === "ssh" ? (openBlock(), createElementBlock("div", _hoisted_53, [createBaseVNode("div", {
|
|
565
623
|
class: "card-header",
|
|
566
624
|
onClick: _cache[16] || (_cache[16] = ($event) => showStartupScript.value = !showStartupScript.value),
|
|
567
625
|
style: { "cursor": "pointer" }
|
|
568
626
|
}, [
|
|
569
|
-
_cache[
|
|
627
|
+
_cache[55] || (_cache[55] = createBaseVNode("i", { class: "bi bi-lightning-charge me-1" }, null, -1)),
|
|
570
628
|
createTextVNode(toDisplayString(unref(t)("connection.startupScript")) + " ", 1),
|
|
571
629
|
createBaseVNode("i", { class: normalizeClass(showStartupScript.value ? "bi bi-chevron-up float-end" : "bi bi-chevron-down float-end") }, null, 2)
|
|
572
630
|
]), withDirectives(createBaseVNode("div", _hoisted_54, [
|
|
@@ -577,8 +635,8 @@ var init_index_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
|
577
635
|
"onUpdate:modelValue": _cache[17] || (_cache[17] = ($event) => form.forwardAgent = $event),
|
|
578
636
|
id: "forwardAgent"
|
|
579
637
|
}, null, 512), [[vModelCheckbox, form.forwardAgent]]),
|
|
580
|
-
createBaseVNode("label", _hoisted_56, [_cache[
|
|
581
|
-
createBaseVNode("small", _hoisted_57, [_cache[
|
|
638
|
+
createBaseVNode("label", _hoisted_56, [_cache[56] || (_cache[56] = createBaseVNode("i", { class: "bi bi-arrow-repeat me-1" }, null, -1)), createTextVNode(toDisplayString(unref(t)("connection.forwardAgent")), 1)]),
|
|
639
|
+
createBaseVNode("small", _hoisted_57, [_cache[57] || (_cache[57] = createBaseVNode("i", { class: "bi bi-info-circle me-1" }, null, -1)), createTextVNode(toDisplayString(unref(t)("connection.forwardAgentHint")), 1)])
|
|
582
640
|
]),
|
|
583
641
|
withDirectives(createBaseVNode("textarea", {
|
|
584
642
|
class: "form-control",
|
|
@@ -586,14 +644,14 @@ var init_index_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
|
586
644
|
rows: "3",
|
|
587
645
|
placeholder: unref(t)("connection.startupScriptPlaceholder")
|
|
588
646
|
}, null, 8, _hoisted_58), [[vModelText, form.startupScript]]),
|
|
589
|
-
createBaseVNode("small", _hoisted_59, [_cache[
|
|
647
|
+
createBaseVNode("small", _hoisted_59, [_cache[58] || (_cache[58] = createBaseVNode("i", { class: "bi bi-info-circle me-1" }, null, -1)), createTextVNode(toDisplayString(unref(t)("connection.startupScriptHint")), 1)])
|
|
590
648
|
], 512), [[vShow, showStartupScript.value]])])) : createCommentVNode("", true),
|
|
591
649
|
form.type === "ssh" ? (openBlock(), createElementBlock("div", _hoisted_60, [createBaseVNode("div", {
|
|
592
650
|
class: "card-header",
|
|
593
651
|
onClick: _cache[19] || (_cache[19] = ($event) => showKeepaliveConfig.value = !showKeepaliveConfig.value),
|
|
594
652
|
style: { "cursor": "pointer" }
|
|
595
653
|
}, [
|
|
596
|
-
_cache[
|
|
654
|
+
_cache[59] || (_cache[59] = createBaseVNode("i", { class: "bi bi-heart-pulse me-1" }, null, -1)),
|
|
597
655
|
createTextVNode(toDisplayString(unref(t)("connection.keepaliveConfig")) + " ", 1),
|
|
598
656
|
createBaseVNode("i", { class: normalizeClass(showKeepaliveConfig.value ? "bi bi-chevron-up float-end" : "bi bi-chevron-down float-end") }, null, 2)
|
|
599
657
|
]), withDirectives(createBaseVNode("div", _hoisted_61, [createBaseVNode("div", _hoisted_62, [
|
|
@@ -603,8 +661,8 @@ var init_index_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
|
603
661
|
"onUpdate:modelValue": _cache[20] || (_cache[20] = ($event) => keepaliveEnabled.value = $event),
|
|
604
662
|
id: "keepaliveEnabled"
|
|
605
663
|
}, null, 512), [[vModelCheckbox, keepaliveEnabled.value]]),
|
|
606
|
-
createBaseVNode("label", _hoisted_63, [_cache[
|
|
607
|
-
createBaseVNode("small", _hoisted_64, [_cache[
|
|
664
|
+
createBaseVNode("label", _hoisted_63, [_cache[60] || (_cache[60] = createBaseVNode("i", { class: "bi bi-toggle-on me-1" }, null, -1)), createTextVNode(toDisplayString(unref(t)("connection.keepaliveEnabled")), 1)]),
|
|
665
|
+
createBaseVNode("small", _hoisted_64, [_cache[61] || (_cache[61] = createBaseVNode("i", { class: "bi bi-info-circle me-1" }, null, -1)), createTextVNode(toDisplayString(unref(t)("connection.keepaliveEnabledHint")), 1)])
|
|
608
666
|
]), keepaliveEnabled.value ? (openBlock(), createElementBlock("div", _hoisted_65, [createBaseVNode("div", _hoisted_66, [
|
|
609
667
|
createBaseVNode("label", _hoisted_67, toDisplayString(unref(t)("connection.keepaliveInterval")), 1),
|
|
610
668
|
withDirectives(createBaseVNode("input", {
|
|
@@ -643,7 +701,7 @@ var init_index_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
|
643
701
|
onClick: _cache[23] || (_cache[23] = ($event) => showTerminalConfig.value = !showTerminalConfig.value),
|
|
644
702
|
style: { "cursor": "pointer" }
|
|
645
703
|
}, [
|
|
646
|
-
_cache[
|
|
704
|
+
_cache[62] || (_cache[62] = createBaseVNode("i", { class: "bi bi-terminal me-1" }, null, -1)),
|
|
647
705
|
createTextVNode(toDisplayString(unref(t)("connection.terminalConfig")) + " ", 1),
|
|
648
706
|
createBaseVNode("i", { class: normalizeClass(showTerminalConfig.value ? "bi bi-chevron-up float-end" : "bi bi-chevron-down float-end") }, null, 2)
|
|
649
707
|
]), withDirectives(createBaseVNode("div", _hoisted_75, [createBaseVNode("div", _hoisted_76, [createBaseVNode("div", _hoisted_77, [createBaseVNode("label", _hoisted_78, toDisplayString(unref(t)("connection.fontSize")), 1), withDirectives(createBaseVNode("input", {
|
|
@@ -673,12 +731,73 @@ var init_index_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
|
673
731
|
"onUpdate:modelValue": _cache[27] || (_cache[27] = ($event) => form.terminal.fontFamily = $event),
|
|
674
732
|
placeholder: "字体"
|
|
675
733
|
}, null, 512), [[vModelText, form.terminal.fontFamily]])])])], 512), [[vShow, showTerminalConfig.value]])])) : createCommentVNode("", true),
|
|
676
|
-
createBaseVNode("div", _hoisted_91, [createBaseVNode("
|
|
734
|
+
createBaseVNode("div", _hoisted_91, [createBaseVNode("div", {
|
|
735
|
+
class: "card-header",
|
|
736
|
+
onClick: _cache[28] || (_cache[28] = ($event) => showProxyConfig.value = !showProxyConfig.value),
|
|
737
|
+
style: { "cursor": "pointer" }
|
|
738
|
+
}, [
|
|
739
|
+
_cache[63] || (_cache[63] = createBaseVNode("i", { class: "bi bi-shuffle me-1" }, null, -1)),
|
|
740
|
+
createTextVNode(toDisplayString(unref(t)("connection.proxyConfig")) + " ", 1),
|
|
741
|
+
proxyOptions.mode !== "direct" ? (openBlock(), createElementBlock("span", _hoisted_92, toDisplayString(proxyModeLabel.value), 1)) : createCommentVNode("", true),
|
|
742
|
+
createBaseVNode("i", { class: normalizeClass(showProxyConfig.value ? "bi bi-chevron-up float-end" : "bi bi-chevron-down float-end") }, null, 2)
|
|
743
|
+
]), withDirectives(createBaseVNode("div", _hoisted_93, [
|
|
744
|
+
createBaseVNode("label", _hoisted_94, toDisplayString(unref(t)("connection.proxyMode")), 1),
|
|
745
|
+
withDirectives(createBaseVNode("select", {
|
|
746
|
+
class: "form-select form-select-sm",
|
|
747
|
+
"onUpdate:modelValue": _cache[29] || (_cache[29] = ($event) => proxyOptions.mode = $event)
|
|
748
|
+
}, [
|
|
749
|
+
createBaseVNode("option", _hoisted_95, toDisplayString(unref(t)("connection.proxyModeDirect")), 1),
|
|
750
|
+
createBaseVNode("option", _hoisted_96, toDisplayString(unref(t)("connection.proxyModeSystem")), 1),
|
|
751
|
+
createBaseVNode("option", _hoisted_97, toDisplayString(unref(t)("connection.proxyModeCustom")), 1)
|
|
752
|
+
], 512), [[vModelSelect, proxyOptions.mode]]),
|
|
753
|
+
createBaseVNode("small", _hoisted_98, [_cache[64] || (_cache[64] = createBaseVNode("i", { class: "bi bi-info-circle me-1" }, null, -1)), createTextVNode(toDisplayString(unref(t)("connection.proxyModeHint")), 1)]),
|
|
754
|
+
proxyOptions.mode === "custom" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
|
|
755
|
+
createBaseVNode("div", _hoisted_99, [createBaseVNode("div", _hoisted_100, [createBaseVNode("label", _hoisted_101, [createTextVNode(toDisplayString(unref(t)("connection.proxyHost")) + " ", 1), _cache[65] || (_cache[65] = createBaseVNode("span", { class: "text-danger" }, "*", -1))]), withDirectives(createBaseVNode("input", {
|
|
756
|
+
type: "text",
|
|
757
|
+
class: "form-control form-control-sm",
|
|
758
|
+
"onUpdate:modelValue": _cache[30] || (_cache[30] = ($event) => proxyOptions.host = $event),
|
|
759
|
+
placeholder: unref(t)("connection.proxyHostPlaceholder")
|
|
760
|
+
}, null, 8, _hoisted_102), [[vModelText, proxyOptions.host]])]), createBaseVNode("div", _hoisted_103, [createBaseVNode("label", _hoisted_104, toDisplayString(unref(t)("connection.proxyPort")), 1), withDirectives(createBaseVNode("input", {
|
|
761
|
+
type: "number",
|
|
762
|
+
class: "form-control form-control-sm",
|
|
763
|
+
"onUpdate:modelValue": _cache[31] || (_cache[31] = ($event) => proxyOptions.port = $event),
|
|
764
|
+
min: "1",
|
|
765
|
+
max: "65535"
|
|
766
|
+
}, null, 512), [[
|
|
767
|
+
vModelText,
|
|
768
|
+
proxyOptions.port,
|
|
769
|
+
void 0,
|
|
770
|
+
{ number: true }
|
|
771
|
+
]])])]),
|
|
772
|
+
createBaseVNode("div", _hoisted_105, [createBaseVNode("div", _hoisted_106, [createBaseVNode("label", _hoisted_107, toDisplayString(unref(t)("connection.proxyType")), 1), withDirectives(createBaseVNode("select", {
|
|
773
|
+
class: "form-select form-select-sm",
|
|
774
|
+
"onUpdate:modelValue": _cache[32] || (_cache[32] = ($event) => proxyOptions.type = $event)
|
|
775
|
+
}, [..._cache[66] || (_cache[66] = [
|
|
776
|
+
createBaseVNode("option", { value: "http" }, "HTTP", -1),
|
|
777
|
+
createBaseVNode("option", { value: "https" }, "HTTPS", -1),
|
|
778
|
+
createBaseVNode("option", { value: "socks4" }, "SOCKS4", -1),
|
|
779
|
+
createBaseVNode("option", { value: "socks5" }, "SOCKS5", -1)
|
|
780
|
+
])], 512), [[vModelSelect, proxyOptions.type]])]), createBaseVNode("div", _hoisted_108, [createBaseVNode("label", _hoisted_109, toDisplayString(unref(t)("connection.proxyUsername")), 1), withDirectives(createBaseVNode("input", {
|
|
781
|
+
type: "text",
|
|
782
|
+
class: "form-control form-control-sm",
|
|
783
|
+
"onUpdate:modelValue": _cache[33] || (_cache[33] = ($event) => proxyOptions.username = $event),
|
|
784
|
+
autocomplete: "off"
|
|
785
|
+
}, null, 512), [[vModelText, proxyOptions.username]])])]),
|
|
786
|
+
proxyOptions.type !== "socks4" ? (openBlock(), createElementBlock("div", _hoisted_110, [createBaseVNode("label", _hoisted_111, toDisplayString(unref(t)("connection.proxyPassword")), 1), withDirectives(createBaseVNode("input", {
|
|
787
|
+
type: "password",
|
|
788
|
+
class: "form-control form-control-sm",
|
|
789
|
+
"onUpdate:modelValue": _cache[34] || (_cache[34] = ($event) => proxyOptions.password = $event),
|
|
790
|
+
autocomplete: "new-password"
|
|
791
|
+
}, null, 512), [[vModelText, proxyOptions.password]])])) : createCommentVNode("", true),
|
|
792
|
+
createBaseVNode("small", _hoisted_112, [_cache[67] || (_cache[67] = createBaseVNode("i", { class: "bi bi-info-circle me-1" }, null, -1)), createTextVNode(toDisplayString(unref(t)("connection.proxyCustomHint")), 1)])
|
|
793
|
+
], 64)) : createCommentVNode("", true)
|
|
794
|
+
], 512), [[vShow, showProxyConfig.value]])]),
|
|
795
|
+
createBaseVNode("div", _hoisted_113, [createBaseVNode("button", {
|
|
677
796
|
type: "button",
|
|
678
797
|
class: "btn btn-outline-secondary",
|
|
679
798
|
onClick: testConn,
|
|
680
799
|
disabled: testing.value
|
|
681
|
-
}, [testing.value ? (openBlock(), createElementBlock("span",
|
|
800
|
+
}, [testing.value ? (openBlock(), createElementBlock("span", _hoisted_115)) : (openBlock(), createElementBlock("i", _hoisted_116)), createTextVNode(" " + toDisplayString(testing.value ? unref(t)("connection.testing") : unref(t)("connection.testConnection")), 1)], 8, _hoisted_114), createBaseVNode("div", null, [createBaseVNode("button", {
|
|
682
801
|
type: "button",
|
|
683
802
|
class: "btn btn-secondary me-2",
|
|
684
803
|
onClick: cancel
|
|
@@ -686,7 +805,7 @@ var init_index_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
|
686
805
|
type: "submit",
|
|
687
806
|
class: "btn btn-primary",
|
|
688
807
|
disabled: saving.value
|
|
689
|
-
}, [saving.value ? (openBlock(), createElementBlock("span",
|
|
808
|
+
}, [saving.value ? (openBlock(), createElementBlock("span", _hoisted_118)) : createCommentVNode("", true), createTextVNode(" " + toDisplayString(saving.value ? unref(t)("connection.saving") : unref(t)("common.save")), 1)], 8, _hoisted_117)])])
|
|
690
809
|
], 32)]),
|
|
691
810
|
_: 1
|
|
692
811
|
}, 8, [
|
|
@@ -698,15 +817,15 @@ var init_index_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
|
698
817
|
}
|
|
699
818
|
});
|
|
700
819
|
}));
|
|
701
|
-
// src/components/connection-editor/index.vue?vue&type=style&index=0&scoped=
|
|
702
|
-
var
|
|
820
|
+
// src/components/connection-editor/index.vue?vue&type=style&index=0&scoped=85ecc05c&lang.css
|
|
821
|
+
var init_index_vue_vue_type_style_index_0_scoped_85ecc05c_lang = __esmMin((() => {}));
|
|
703
822
|
// src/components/connection-editor/index.vue
|
|
704
823
|
var connection_editor_default;
|
|
705
824
|
var init_connection_editor = __esmMin((() => {
|
|
706
825
|
init_index_vue_vue_type_script_setup_true_lang();
|
|
707
826
|
init_index_vue_vue_type_script_setup_true_lang();
|
|
708
|
-
|
|
827
|
+
init_index_vue_vue_type_style_index_0_scoped_85ecc05c_lang();
|
|
709
828
|
init__plugin_vue_export_helper();
|
|
710
|
-
connection_editor_default = /*#__PURE__*/ _plugin_vue_export_helper_default(index_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-
|
|
829
|
+
connection_editor_default = /*#__PURE__*/ _plugin_vue_export_helper_default(index_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-85ecc05c"]]);
|
|
711
830
|
}));
|
|
712
831
|
export { init_connection_editor as n, connection_editor_default as t };
|
|
@@ -3792,7 +3792,21 @@ var init_zh_CN = __esmMin((() => {
|
|
|
3792
3792
|
keepaliveCountMaxPlaceholder: "3",
|
|
3793
3793
|
keepaliveCountMaxHint: "连续多少次心跳失败后断开连接(默认 3 次)",
|
|
3794
3794
|
keepaliveEnabled: "启用保活",
|
|
3795
|
-
keepaliveEnabledHint: "定期发送心跳包保持 SSH 连接活跃,防止因长时间无操作而断开"
|
|
3795
|
+
keepaliveEnabledHint: "定期发送心跳包保持 SSH 连接活跃,防止因长时间无操作而断开",
|
|
3796
|
+
proxyConfig: "代理设置",
|
|
3797
|
+
proxyMode: "代理模式",
|
|
3798
|
+
proxyModeDirect: "直连(不使用代理)",
|
|
3799
|
+
proxyModeSystem: "系统代理",
|
|
3800
|
+
proxyModeCustom: "自定义代理",
|
|
3801
|
+
proxyModeHint: "新连接默认使用系统代理。系统代理优先读取 ALL_PROXY / HTTPS_PROXY / HTTP_PROXY 环境变量,未设置时自动使用 macOS / Windows / Linux 系统代理设置(与浏览器「使用系统代理」一致),并遵循 NO_PROXY 及系统绕过列表;直连始终不走代理。",
|
|
3802
|
+
proxyType: "代理类型",
|
|
3803
|
+
proxyHost: "代理地址",
|
|
3804
|
+
proxyHostPlaceholder: "代理 IP 或域名",
|
|
3805
|
+
proxyHostRequired: "请填写代理地址",
|
|
3806
|
+
proxyPort: "代理端口",
|
|
3807
|
+
proxyUsername: "代理用户名(可选)",
|
|
3808
|
+
proxyPassword: "代理密码(可选)",
|
|
3809
|
+
proxyCustomHint: "HTTP / HTTPS / SOCKS5 支持用户名密码认证,SOCKS4 仅使用用户名。HTTPS 握手失败时会自动降级为明文 CONNECT;本地代理软件的 Mixed / HTTP 端口也可直接选 HTTP 或 SOCKS5。代理密码加密保存。"
|
|
3796
3810
|
},
|
|
3797
3811
|
fileTransfer: {
|
|
3798
3812
|
title: "文件传输",
|
|
@@ -4158,7 +4172,21 @@ var init_en_US = __esmMin((() => {
|
|
|
4158
4172
|
keepaliveCountMaxPlaceholder: "3",
|
|
4159
4173
|
keepaliveCountMaxHint: "Disconnect after this many consecutive keepalive failures (default: 3)",
|
|
4160
4174
|
keepaliveEnabled: "Enable Keepalive",
|
|
4161
|
-
keepaliveEnabledHint: "Send periodic keepalive packets to maintain SSH connection and prevent timeout"
|
|
4175
|
+
keepaliveEnabledHint: "Send periodic keepalive packets to maintain SSH connection and prevent timeout",
|
|
4176
|
+
proxyConfig: "Proxy Settings",
|
|
4177
|
+
proxyMode: "Proxy Mode",
|
|
4178
|
+
proxyModeDirect: "Direct (no proxy)",
|
|
4179
|
+
proxyModeSystem: "System Proxy",
|
|
4180
|
+
proxyModeCustom: "Custom Proxy",
|
|
4181
|
+
proxyModeHint: "System proxy is the default for new connections. It first reads ALL_PROXY / HTTPS_PROXY / HTTP_PROXY environment variables; if unset, it uses the OS proxy settings (macOS / Windows / Linux, same as browser \"Use system proxy\"). NO_PROXY and OS bypass lists are honored. Direct never uses a proxy.",
|
|
4182
|
+
proxyType: "Proxy Type",
|
|
4183
|
+
proxyHost: "Proxy Address",
|
|
4184
|
+
proxyHostPlaceholder: "Proxy IP or domain",
|
|
4185
|
+
proxyHostRequired: "Please enter the proxy address",
|
|
4186
|
+
proxyPort: "Proxy Port",
|
|
4187
|
+
proxyUsername: "Proxy Username (optional)",
|
|
4188
|
+
proxyPassword: "Proxy Password (optional)",
|
|
4189
|
+
proxyCustomHint: "HTTP / HTTPS / SOCKS5 support username and password; SOCKS4 uses the username only. If a TLS handshake to an HTTPS proxy fails, it automatically falls back to plain CONNECT; local proxy tools with a Mixed / HTTP port can also use HTTP or SOCKS5. The proxy password is stored encrypted."
|
|
4162
4190
|
},
|
|
4163
4191
|
fileTransfer: {
|
|
4164
4192
|
title: "File Transfer",
|
|
@@ -4371,6 +4399,17 @@ var init_en_US = __esmMin((() => {
|
|
|
4371
4399
|
};
|
|
4372
4400
|
}));
|
|
4373
4401
|
// src/utils/i18n.ts
|
|
4402
|
+
function normalizeLocale(value) {
|
|
4403
|
+
if (!value) return void 0;
|
|
4404
|
+
const id = value.trim().toLowerCase().replace("_", "-");
|
|
4405
|
+
if (id === "zh" || id === "zh-cn" || id === "zh-hans") return "zh-CN";
|
|
4406
|
+
if (id === "en" || id === "en-us") return "en-US";
|
|
4407
|
+
}
|
|
4408
|
+
function initialLocale() {
|
|
4409
|
+
const saved = normalizeLocale(localStorage.getItem("aicmd-locale"));
|
|
4410
|
+
if (saved) return saved;
|
|
4411
|
+
return (typeof window !== "undefined" ? normalizeLocale(new URLSearchParams(window.location.search).get("locale")) : void 0) || "en-US";
|
|
4412
|
+
}
|
|
4374
4413
|
function setLocale(locale) {
|
|
4375
4414
|
i18n.global.locale.value = locale;
|
|
4376
4415
|
localStorage.setItem("aicmd-locale", locale);
|
|
@@ -4383,7 +4422,7 @@ var init_i18n = __esmMin((() => {
|
|
|
4383
4422
|
init_vue_i18n();
|
|
4384
4423
|
init_zh_CN();
|
|
4385
4424
|
init_en_US();
|
|
4386
|
-
savedLocale =
|
|
4425
|
+
savedLocale = initialLocale();
|
|
4387
4426
|
i18n = createI18n({
|
|
4388
4427
|
locale: savedLocale,
|
|
4389
4428
|
fallbackLocale: "en-US",
|
|
@@ -4,12 +4,12 @@
|
|
|
4
4
|
<meta charset="UTF-8" />
|
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
6
6
|
<title>AICmd Terminal</title>
|
|
7
|
-
<script type="module" crossorigin src="/public/term.js?v=
|
|
8
|
-
<link rel="modulepreload" crossorigin href="/public/vscode-clipboard.js?v=
|
|
9
|
-
<link rel="modulepreload" crossorigin href="/public/xterm.js?v=
|
|
10
|
-
<link rel="modulepreload" crossorigin href="/public/zmodem.js?v=
|
|
11
|
-
<link rel="stylesheet" crossorigin href="/public/xterm.css?v=
|
|
12
|
-
<link rel="stylesheet" crossorigin href="/public/term.css?v=
|
|
7
|
+
<script type="module" crossorigin src="/public/term.js?v=mww88qi9"></script>
|
|
8
|
+
<link rel="modulepreload" crossorigin href="/public/vscode-clipboard.js?v=mww88qi9">
|
|
9
|
+
<link rel="modulepreload" crossorigin href="/public/xterm.js?v=mww88qi9">
|
|
10
|
+
<link rel="modulepreload" crossorigin href="/public/zmodem.js?v=mww88qi9">
|
|
11
|
+
<link rel="stylesheet" crossorigin href="/public/xterm.css?v=mww88qi9">
|
|
12
|
+
<link rel="stylesheet" crossorigin href="/public/term.css?v=mww88qi9">
|
|
13
13
|
</head>
|
|
14
14
|
<body>
|
|
15
15
|
<div id="terminal"></div>
|
|
@@ -4,16 +4,16 @@
|
|
|
4
4
|
<meta charset="UTF-8" />
|
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
6
6
|
<title>AICmd 连接编辑</title>
|
|
7
|
-
<script type="module" crossorigin src="/public/vscode-edit.js?v=
|
|
8
|
-
<link rel="modulepreload" crossorigin href="/public/vscode-clipboard.js?v=
|
|
9
|
-
<link rel="modulepreload" crossorigin href="/public/vue.js?v=
|
|
10
|
-
<link rel="modulepreload" crossorigin href="/public/bootstrap.js?v=
|
|
11
|
-
<link rel="modulepreload" crossorigin href="/public/selection-copy.js?v=
|
|
12
|
-
<link rel="modulepreload" crossorigin href="/public/connection.js?v=
|
|
13
|
-
<link rel="modulepreload" crossorigin href="/public/connection-editor.js?v=
|
|
14
|
-
<link rel="stylesheet" crossorigin href="/public/bootstrap.css?v=
|
|
15
|
-
<link rel="stylesheet" crossorigin href="/public/selection-copy.css?v=
|
|
16
|
-
<link rel="stylesheet" crossorigin href="/public/connection-editor.css?v=
|
|
7
|
+
<script type="module" crossorigin src="/public/vscode-edit.js?v=mww88qi9"></script>
|
|
8
|
+
<link rel="modulepreload" crossorigin href="/public/vscode-clipboard.js?v=mww88qi9">
|
|
9
|
+
<link rel="modulepreload" crossorigin href="/public/vue.js?v=mww88qi9">
|
|
10
|
+
<link rel="modulepreload" crossorigin href="/public/bootstrap.js?v=mww88qi9">
|
|
11
|
+
<link rel="modulepreload" crossorigin href="/public/selection-copy.js?v=mww88qi9">
|
|
12
|
+
<link rel="modulepreload" crossorigin href="/public/connection.js?v=mww88qi9">
|
|
13
|
+
<link rel="modulepreload" crossorigin href="/public/connection-editor.js?v=mww88qi9">
|
|
14
|
+
<link rel="stylesheet" crossorigin href="/public/bootstrap.css?v=mww88qi9">
|
|
15
|
+
<link rel="stylesheet" crossorigin href="/public/selection-copy.css?v=mww88qi9">
|
|
16
|
+
<link rel="stylesheet" crossorigin href="/public/connection-editor.css?v=mww88qi9">
|
|
17
17
|
</head>
|
|
18
18
|
<body>
|
|
19
19
|
<div id="app" style="height: 100vh;"></div>
|
|
@@ -4,19 +4,19 @@
|
|
|
4
4
|
<meta charset="UTF-8" />
|
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
6
6
|
<title>AICmd Terminal</title>
|
|
7
|
-
<script type="module" crossorigin src="/public/vscode-term.js?v=
|
|
8
|
-
<link rel="modulepreload" crossorigin href="/public/vscode-clipboard.js?v=
|
|
9
|
-
<link rel="modulepreload" crossorigin href="/public/vue.js?v=
|
|
10
|
-
<link rel="modulepreload" crossorigin href="/public/bootstrap.js?v=
|
|
11
|
-
<link rel="modulepreload" crossorigin href="/public/selection-copy.js?v=
|
|
12
|
-
<link rel="modulepreload" crossorigin href="/public/connection.js?v=
|
|
13
|
-
<link rel="modulepreload" crossorigin href="/public/xterm.js?v=
|
|
14
|
-
<link rel="modulepreload" crossorigin href="/public/zmodem.js?v=
|
|
15
|
-
<link rel="modulepreload" crossorigin href="/public/ai-settings.js?v=
|
|
16
|
-
<link rel="stylesheet" crossorigin href="/public/bootstrap.css?v=
|
|
17
|
-
<link rel="stylesheet" crossorigin href="/public/selection-copy.css?v=
|
|
18
|
-
<link rel="stylesheet" crossorigin href="/public/xterm.css?v=
|
|
19
|
-
<link rel="stylesheet" crossorigin href="/public/ai-settings.css?v=
|
|
7
|
+
<script type="module" crossorigin src="/public/vscode-term.js?v=mww88qi9"></script>
|
|
8
|
+
<link rel="modulepreload" crossorigin href="/public/vscode-clipboard.js?v=mww88qi9">
|
|
9
|
+
<link rel="modulepreload" crossorigin href="/public/vue.js?v=mww88qi9">
|
|
10
|
+
<link rel="modulepreload" crossorigin href="/public/bootstrap.js?v=mww88qi9">
|
|
11
|
+
<link rel="modulepreload" crossorigin href="/public/selection-copy.js?v=mww88qi9">
|
|
12
|
+
<link rel="modulepreload" crossorigin href="/public/connection.js?v=mww88qi9">
|
|
13
|
+
<link rel="modulepreload" crossorigin href="/public/xterm.js?v=mww88qi9">
|
|
14
|
+
<link rel="modulepreload" crossorigin href="/public/zmodem.js?v=mww88qi9">
|
|
15
|
+
<link rel="modulepreload" crossorigin href="/public/ai-settings.js?v=mww88qi9">
|
|
16
|
+
<link rel="stylesheet" crossorigin href="/public/bootstrap.css?v=mww88qi9">
|
|
17
|
+
<link rel="stylesheet" crossorigin href="/public/selection-copy.css?v=mww88qi9">
|
|
18
|
+
<link rel="stylesheet" crossorigin href="/public/xterm.css?v=mww88qi9">
|
|
19
|
+
<link rel="stylesheet" crossorigin href="/public/ai-settings.css?v=mww88qi9">
|
|
20
20
|
</head>
|
|
21
21
|
<body>
|
|
22
22
|
<div id="app" style="height: 100vh;"></div>
|