@fefeding/aicmd 1.0.5 → 1.0.7
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/dist/public/index.css +34 -148
- package/dist/public/index.js +59 -162
- package/dist/public/views.css +5 -5
- package/dist/public/views.js +283 -137
- package/dist/server/service/ai.service.d.ts +1 -0
- package/dist/server/service/ai.service.d.ts.map +1 -1
- package/dist/server/service/ai.service.js +14 -7
- package/dist/server/service/ai.service.js.map +1 -1
- package/dist/server/service/ai.service.ts +17 -6
- package/dist/server/service/connection.service.d.ts.map +1 -1
- package/dist/server/service/connection.service.js +3 -2
- package/dist/server/service/connection.service.js.map +1 -1
- package/dist/server/service/connection.service.ts +3 -2
- package/electron/updater.js +12 -66
- package/package.json +1 -1
package/dist/public/views.js
CHANGED
|
@@ -361,7 +361,7 @@ var init_terminal = __esmMin((() => {
|
|
|
361
361
|
}));
|
|
362
362
|
//#endregion
|
|
363
363
|
//#region src/components/terminal-sidebar.vue?vue&type=script&setup=true&lang.ts
|
|
364
|
-
var _hoisted_1$9, _hoisted_2$9, _hoisted_3$9, _hoisted_4$9, _hoisted_5$9, _hoisted_6$8, _hoisted_7$8, _hoisted_8$8, _hoisted_9$8, _hoisted_10$8, _hoisted_11$8, _hoisted_12$8, _hoisted_13$8, _hoisted_14$8, _hoisted_15$8, _hoisted_16$8, _hoisted_17$7, _hoisted_18$7, _hoisted_19$7, _hoisted_20$7, _hoisted_21$6, _hoisted_22$6, _hoisted_23$
|
|
364
|
+
var _hoisted_1$9, _hoisted_2$9, _hoisted_3$9, _hoisted_4$9, _hoisted_5$9, _hoisted_6$8, _hoisted_7$8, _hoisted_8$8, _hoisted_9$8, _hoisted_10$8, _hoisted_11$8, _hoisted_12$8, _hoisted_13$8, _hoisted_14$8, _hoisted_15$8, _hoisted_16$8, _hoisted_17$7, _hoisted_18$7, _hoisted_19$7, _hoisted_20$7, _hoisted_21$6, _hoisted_22$6, _hoisted_23$6, _hoisted_24$6, terminal_sidebar_vue_vue_type_script_setup_true_lang_default;
|
|
365
365
|
var init_terminal_sidebar_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
366
366
|
init_vue_runtime_esm_bundler();
|
|
367
367
|
init_vue_i18n();
|
|
@@ -415,8 +415,8 @@ var init_terminal_sidebar_vue_vue_type_script_setup_true_lang = __esmMin((() =>
|
|
|
415
415
|
};
|
|
416
416
|
_hoisted_21$6 = { class: "d-flex gap-1 align-items-center" };
|
|
417
417
|
_hoisted_22$6 = ["title"];
|
|
418
|
-
_hoisted_23$
|
|
419
|
-
_hoisted_24$
|
|
418
|
+
_hoisted_23$6 = ["title"];
|
|
419
|
+
_hoisted_24$6 = ["title"];
|
|
420
420
|
terminal_sidebar_vue_vue_type_script_setup_true_lang_default = /* @__PURE__ */ defineComponent({
|
|
421
421
|
__name: "terminal-sidebar",
|
|
422
422
|
props: {
|
|
@@ -539,12 +539,12 @@ var init_terminal_sidebar_vue_vue_type_script_setup_true_lang = __esmMin((() =>
|
|
|
539
539
|
class: "btn-ai-settings",
|
|
540
540
|
onClick: _cache[7] || (_cache[7] = ($event) => _ctx.$emit("open-batch")),
|
|
541
541
|
title: unref(t)("batch.title")
|
|
542
|
-
}, [..._cache[19] || (_cache[19] = [createBaseVNode("i", { class: "bi bi-hdd-rack" }, null, -1)])], 8, _hoisted_23$
|
|
542
|
+
}, [..._cache[19] || (_cache[19] = [createBaseVNode("i", { class: "bi bi-hdd-rack" }, null, -1)])], 8, _hoisted_23$6),
|
|
543
543
|
createBaseVNode("button", {
|
|
544
544
|
class: "btn-lang-switch",
|
|
545
545
|
onClick: toggleLocale,
|
|
546
546
|
title: currentLocale.value === "zh-CN" ? "Switch to English" : "切换到中文"
|
|
547
|
-
}, toDisplayString(currentLocale.value === "zh-CN" ? "EN" : "中"), 9, _hoisted_24$
|
|
547
|
+
}, toDisplayString(currentLocale.value === "zh-CN" ? "EN" : "中"), 9, _hoisted_24$6)
|
|
548
548
|
])])
|
|
549
549
|
], 4);
|
|
550
550
|
};
|
|
@@ -3393,7 +3393,7 @@ async function copy(text) {
|
|
|
3393
3393
|
var init_clipboard = __esmMin((() => {}));
|
|
3394
3394
|
//#endregion
|
|
3395
3395
|
//#region src/components/audit-panel/index.vue?vue&type=script&setup=true&lang.ts
|
|
3396
|
-
var _hoisted_1$8, _hoisted_2$8, _hoisted_3$8, _hoisted_4$8, _hoisted_5$8, _hoisted_6$7, _hoisted_7$7, _hoisted_8$7, _hoisted_9$7, _hoisted_10$7, _hoisted_11$7, _hoisted_12$7, _hoisted_13$7, _hoisted_14$7, _hoisted_15$7, _hoisted_16$7, _hoisted_17$6, _hoisted_18$6, _hoisted_19$6, _hoisted_20$6, _hoisted_21$5, _hoisted_22$5, _hoisted_23$
|
|
3396
|
+
var _hoisted_1$8, _hoisted_2$8, _hoisted_3$8, _hoisted_4$8, _hoisted_5$8, _hoisted_6$7, _hoisted_7$7, _hoisted_8$7, _hoisted_9$7, _hoisted_10$7, _hoisted_11$7, _hoisted_12$7, _hoisted_13$7, _hoisted_14$7, _hoisted_15$7, _hoisted_16$7, _hoisted_17$6, _hoisted_18$6, _hoisted_19$6, _hoisted_20$6, _hoisted_21$5, _hoisted_22$5, _hoisted_23$5, _hoisted_24$5, _hoisted_25$4, _hoisted_26$3, _hoisted_27$3, _hoisted_28$3, _hoisted_29$3, _hoisted_30$3, _hoisted_31$3, _hoisted_32$2, _hoisted_33$2, _hoisted_34$2, _hoisted_35$2, _hoisted_36$2, _hoisted_37$2, _hoisted_38$2, _hoisted_39$2, _hoisted_40$2, _hoisted_41$2, index_vue_vue_type_script_setup_true_lang_default$6;
|
|
3397
3397
|
var init_index_vue_vue_type_script_setup_true_lang$6 = __esmMin((() => {
|
|
3398
3398
|
init_vue_runtime_esm_bundler();
|
|
3399
3399
|
init_vue_i18n();
|
|
@@ -3436,9 +3436,9 @@ var init_index_vue_vue_type_script_setup_true_lang$6 = __esmMin((() => {
|
|
|
3436
3436
|
};
|
|
3437
3437
|
_hoisted_21$5 = ["onClick"];
|
|
3438
3438
|
_hoisted_22$5 = { class: "entry-header" };
|
|
3439
|
-
_hoisted_23$
|
|
3440
|
-
_hoisted_24$
|
|
3441
|
-
_hoisted_25$
|
|
3439
|
+
_hoisted_23$5 = { class: "entry-status" };
|
|
3440
|
+
_hoisted_24$5 = { class: "entry-command" };
|
|
3441
|
+
_hoisted_25$4 = { class: "entry-meta" };
|
|
3442
3442
|
_hoisted_26$3 = { class: "entry-duration" };
|
|
3443
3443
|
_hoisted_27$3 = { class: "entry-time" };
|
|
3444
3444
|
_hoisted_28$3 = {
|
|
@@ -3610,9 +3610,9 @@ var init_index_vue_vue_type_script_setup_true_lang$6 = __esmMin((() => {
|
|
|
3610
3610
|
class: normalizeClass(["audit-entry", "status-" + entry.status]),
|
|
3611
3611
|
onClick: ($event) => toggleExpand(entry.id)
|
|
3612
3612
|
}, [createBaseVNode("div", _hoisted_22$5, [
|
|
3613
|
-
createBaseVNode("span", _hoisted_23$
|
|
3614
|
-
createBaseVNode("code", _hoisted_24$
|
|
3615
|
-
createBaseVNode("span", _hoisted_25$
|
|
3613
|
+
createBaseVNode("span", _hoisted_23$5, [createBaseVNode("i", { class: normalizeClass(statusIcon(entry.status)) }, null, 2)]),
|
|
3614
|
+
createBaseVNode("code", _hoisted_24$5, toDisplayString(entry.command || entry.tool), 1),
|
|
3615
|
+
createBaseVNode("span", _hoisted_25$4, [createBaseVNode("span", _hoisted_26$3, toDisplayString(formatDuration(entry.duration)), 1), createBaseVNode("span", _hoisted_27$3, toDisplayString(formatTime(entry.timestamp)), 1)])
|
|
3616
3616
|
]), expandedIds.has(entry.id) ? (openBlock(), createElementBlock("div", _hoisted_28$3, [
|
|
3617
3617
|
createBaseVNode("div", _hoisted_29$3, [createBaseVNode("span", _hoisted_30$3, toDisplayString(unref(t)("audit.session")) + ":", 1), createBaseVNode("span", null, toDisplayString(entry.sessionName || entry.sessionId), 1)]),
|
|
3618
3618
|
createBaseVNode("div", _hoisted_31$3, [createBaseVNode("span", _hoisted_32$2, toDisplayString(unref(t)("audit.userRequest")) + ":", 1), createBaseVNode("span", null, toDisplayString(entry.userMessage), 1)]),
|
|
@@ -4028,7 +4028,7 @@ var init_log_monitor = __esmMin((() => {
|
|
|
4028
4028
|
}));
|
|
4029
4029
|
//#endregion
|
|
4030
4030
|
//#region src/components/ai-chat/index.vue?vue&type=script&setup=true&lang.ts
|
|
4031
|
-
var _hoisted_1$6, _hoisted_2$6, _hoisted_3$6, _hoisted_4$6, _hoisted_5$6, _hoisted_6$5, _hoisted_7$5, _hoisted_8$5, _hoisted_9$5, _hoisted_10$5, _hoisted_11$5, _hoisted_12$5, _hoisted_13$5, _hoisted_14$5, _hoisted_15$5, _hoisted_16$5, _hoisted_17$4, _hoisted_18$4, _hoisted_19$4, _hoisted_20$4, _hoisted_21$4, _hoisted_22$4, _hoisted_23$
|
|
4031
|
+
var _hoisted_1$6, _hoisted_2$6, _hoisted_3$6, _hoisted_4$6, _hoisted_5$6, _hoisted_6$5, _hoisted_7$5, _hoisted_8$5, _hoisted_9$5, _hoisted_10$5, _hoisted_11$5, _hoisted_12$5, _hoisted_13$5, _hoisted_14$5, _hoisted_15$5, _hoisted_16$5, _hoisted_17$4, _hoisted_18$4, _hoisted_19$4, _hoisted_20$4, _hoisted_21$4, _hoisted_22$4, _hoisted_23$4, _hoisted_24$4, _hoisted_25$3, _hoisted_26$2, _hoisted_27$2, _hoisted_28$2, _hoisted_29$2, _hoisted_30$2, _hoisted_31$2, _hoisted_32$1, _hoisted_33$1, _hoisted_34$1, _hoisted_35$1, _hoisted_36$1, _hoisted_37$1, _hoisted_38$1, _hoisted_39$1, _hoisted_40$1, _hoisted_41$1, _hoisted_42$1, _hoisted_43$1, _hoisted_44$1, _hoisted_45$1, _hoisted_46$1, _hoisted_47$1, _hoisted_48$1, index_vue_vue_type_script_setup_true_lang_default$4;
|
|
4032
4032
|
var init_index_vue_vue_type_script_setup_true_lang$4 = __esmMin((() => {
|
|
4033
4033
|
init_vue_runtime_esm_bundler();
|
|
4034
4034
|
init_vue_i18n();
|
|
@@ -4079,9 +4079,9 @@ var init_index_vue_vue_type_script_setup_true_lang$4 = __esmMin((() => {
|
|
|
4079
4079
|
key: 0,
|
|
4080
4080
|
class: "skills-panel"
|
|
4081
4081
|
};
|
|
4082
|
-
_hoisted_23$
|
|
4083
|
-
_hoisted_24$
|
|
4084
|
-
_hoisted_25$
|
|
4082
|
+
_hoisted_23$4 = { class: "skills-panel-header" };
|
|
4083
|
+
_hoisted_24$4 = { class: "skills-grid" };
|
|
4084
|
+
_hoisted_25$3 = ["onClick"];
|
|
4085
4085
|
_hoisted_26$2 = { class: "skill-item-header" };
|
|
4086
4086
|
_hoisted_27$2 = { class: "skill-name" };
|
|
4087
4087
|
_hoisted_28$2 = {
|
|
@@ -4572,10 +4572,10 @@ var init_index_vue_vue_type_script_setup_true_lang$4 = __esmMin((() => {
|
|
|
4572
4572
|
}, null, 8, _hoisted_21$4)) : createCommentVNode("", true)
|
|
4573
4573
|
])], 2);
|
|
4574
4574
|
}), 128))], 512), [[vShow, activeTab.value === "chat"]]),
|
|
4575
|
-
showSkillsPanel.value ? (openBlock(), createElementBlock("div", _hoisted_22$4, [createBaseVNode("div", _hoisted_23$
|
|
4575
|
+
showSkillsPanel.value ? (openBlock(), createElementBlock("div", _hoisted_22$4, [createBaseVNode("div", _hoisted_23$4, [createBaseVNode("span", null, toDisplayString(unref(t)("ai.selectSkill")), 1), createBaseVNode("button", {
|
|
4576
4576
|
class: "btn-ai-action",
|
|
4577
4577
|
onClick: _cache[2] || (_cache[2] = ($event) => showSkillsPanel.value = false)
|
|
4578
|
-
}, [..._cache[17] || (_cache[17] = [createBaseVNode("i", { class: "bi bi-x" }, null, -1)])])]), createBaseVNode("div", _hoisted_24$
|
|
4578
|
+
}, [..._cache[17] || (_cache[17] = [createBaseVNode("i", { class: "bi bi-x" }, null, -1)])])]), createBaseVNode("div", _hoisted_24$4, [(openBlock(true), createElementBlock(Fragment, null, renderList(skills.value, (skill) => {
|
|
4579
4579
|
return openBlock(), createElementBlock("div", {
|
|
4580
4580
|
key: skill.id,
|
|
4581
4581
|
class: normalizeClass(["skill-item", { active: selectedSkill.value?.id === skill.id }]),
|
|
@@ -4584,7 +4584,7 @@ var init_index_vue_vue_type_script_setup_true_lang$4 = __esmMin((() => {
|
|
|
4584
4584
|
_cache[18] || (_cache[18] = createBaseVNode("i", { class: "bi bi-lightning-charge-fill" }, null, -1)),
|
|
4585
4585
|
createBaseVNode("span", _hoisted_27$2, toDisplayString(skill.name), 1),
|
|
4586
4586
|
skill.source === "user" ? (openBlock(), createElementBlock("span", _hoisted_28$2, toDisplayString(unref(t)("ai.userSkill")), 1)) : createCommentVNode("", true)
|
|
4587
|
-
]), skill.description ? (openBlock(), createElementBlock("div", _hoisted_29$2, toDisplayString(skill.description), 1)) : createCommentVNode("", true)], 10, _hoisted_25$
|
|
4587
|
+
]), skill.description ? (openBlock(), createElementBlock("div", _hoisted_29$2, toDisplayString(skill.description), 1)) : createCommentVNode("", true)], 10, _hoisted_25$3);
|
|
4588
4588
|
}), 128)), skills.value.length === 0 ? (openBlock(), createElementBlock("div", _hoisted_30$2, toDisplayString(unref(t)("ai.noSkills")), 1)) : createCommentVNode("", true)])])) : createCommentVNode("", true),
|
|
4589
4589
|
showHistoryPanel.value ? (openBlock(), createElementBlock("div", _hoisted_31$2, [createBaseVNode("div", _hoisted_32$1, [createBaseVNode("span", null, toDisplayString(unref(t)("ai.history")), 1), createBaseVNode("button", {
|
|
4590
4590
|
class: "btn-ai-action",
|
|
@@ -4661,7 +4661,7 @@ var init_ai_chat = __esmMin((() => {
|
|
|
4661
4661
|
}));
|
|
4662
4662
|
//#endregion
|
|
4663
4663
|
//#region src/components/file-transfer.vue?vue&type=script&setup=true&lang.ts
|
|
4664
|
-
var _hoisted_1$5, _hoisted_2$5, _hoisted_3$5, _hoisted_4$5, _hoisted_5$5, _hoisted_6$4, _hoisted_7$4, _hoisted_8$4, _hoisted_9$4, _hoisted_10$4, _hoisted_11$4, _hoisted_12$4, _hoisted_13$4, _hoisted_14$4, _hoisted_15$4, _hoisted_16$4, _hoisted_17$3, _hoisted_18$3, _hoisted_19$3, _hoisted_20$3, _hoisted_21$3, _hoisted_22$3, _hoisted_23$
|
|
4664
|
+
var _hoisted_1$5, _hoisted_2$5, _hoisted_3$5, _hoisted_4$5, _hoisted_5$5, _hoisted_6$4, _hoisted_7$4, _hoisted_8$4, _hoisted_9$4, _hoisted_10$4, _hoisted_11$4, _hoisted_12$4, _hoisted_13$4, _hoisted_14$4, _hoisted_15$4, _hoisted_16$4, _hoisted_17$3, _hoisted_18$3, _hoisted_19$3, _hoisted_20$3, _hoisted_21$3, _hoisted_22$3, _hoisted_23$3, _hoisted_24$3, file_transfer_vue_vue_type_script_setup_true_lang_default;
|
|
4665
4665
|
var init_file_transfer_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
4666
4666
|
init_vue_runtime_esm_bundler();
|
|
4667
4667
|
init_vue_i18n();
|
|
@@ -4717,11 +4717,11 @@ var init_file_transfer_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
|
4717
4717
|
style: { "font-size": "11px" }
|
|
4718
4718
|
};
|
|
4719
4719
|
_hoisted_22$3 = { class: "d-flex align-items-center justify-content-between" };
|
|
4720
|
-
_hoisted_23$
|
|
4720
|
+
_hoisted_23$3 = {
|
|
4721
4721
|
class: "text-truncate",
|
|
4722
4722
|
style: { "font-size": "12px" }
|
|
4723
4723
|
};
|
|
4724
|
-
_hoisted_24$
|
|
4724
|
+
_hoisted_24$3 = {
|
|
4725
4725
|
key: 4,
|
|
4726
4726
|
class: "mt-2 text-center"
|
|
4727
4727
|
};
|
|
@@ -5204,12 +5204,12 @@ var init_file_transfer_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
|
5204
5204
|
return openBlock(), createElementBlock("div", {
|
|
5205
5205
|
key: idx,
|
|
5206
5206
|
class: "transfer-item"
|
|
5207
|
-
}, [createBaseVNode("div", _hoisted_22$3, [createBaseVNode("span", _hoisted_23$
|
|
5207
|
+
}, [createBaseVNode("div", _hoisted_22$3, [createBaseVNode("span", _hoisted_23$3, [createBaseVNode("i", { class: normalizeClass([item.direction === "upload" ? "bi bi-upload" : "bi bi-download", "me-1"]) }, null, 2), createTextVNode(" " + toDisplayString(item.fileName), 1)]), createBaseVNode("span", {
|
|
5208
5208
|
style: { "font-size": "11px" },
|
|
5209
5209
|
class: normalizeClass(item.state === "complete" ? "text-success" : "text-danger")
|
|
5210
5210
|
}, toDisplayString(item.state === "complete" ? unref(t)("fileTransfer.complete") : unref(t)("fileTransfer.failed")), 3)])]);
|
|
5211
5211
|
}), 128))])])) : createCommentVNode("", true),
|
|
5212
|
-
transferring.value ? (openBlock(), createElementBlock("div", _hoisted_24$
|
|
5212
|
+
transferring.value ? (openBlock(), createElementBlock("div", _hoisted_24$3, [createBaseVNode("button", {
|
|
5213
5213
|
class: "btn btn-outline-danger btn-sm",
|
|
5214
5214
|
onClick: cancelTransfer
|
|
5215
5215
|
}, [_cache[14] || (_cache[14] = createBaseVNode("i", { class: "bi bi-x-circle me-1" }, null, -1)), createTextVNode(toDisplayString(unref(t)("fileTransfer.cancelTransfer")), 1)])])) : createCommentVNode("", true)
|
|
@@ -6056,7 +6056,7 @@ var init_terminal_tab = __esmMin((() => {
|
|
|
6056
6056
|
}));
|
|
6057
6057
|
//#endregion
|
|
6058
6058
|
//#region src/components/connection-editor/index.vue?vue&type=script&setup=true&lang.ts
|
|
6059
|
-
var _hoisted_1$3, _hoisted_2$3, _hoisted_3$3, _hoisted_4$3, _hoisted_5$3, _hoisted_6$3, _hoisted_7$3, _hoisted_8$3, _hoisted_9$3, _hoisted_10$3, _hoisted_11$3, _hoisted_12$3, _hoisted_13$3, _hoisted_14$3, _hoisted_15$3, _hoisted_16$3, _hoisted_17$2, _hoisted_18$2, _hoisted_19$2, _hoisted_20$2, _hoisted_21$2, _hoisted_22$2, _hoisted_23$
|
|
6059
|
+
var _hoisted_1$3, _hoisted_2$3, _hoisted_3$3, _hoisted_4$3, _hoisted_5$3, _hoisted_6$3, _hoisted_7$3, _hoisted_8$3, _hoisted_9$3, _hoisted_10$3, _hoisted_11$3, _hoisted_12$3, _hoisted_13$3, _hoisted_14$3, _hoisted_15$3, _hoisted_16$3, _hoisted_17$2, _hoisted_18$2, _hoisted_19$2, _hoisted_20$2, _hoisted_21$2, _hoisted_22$2, _hoisted_23$2, _hoisted_24$2, _hoisted_25$2, _hoisted_26$1, _hoisted_27$1, _hoisted_28$1, _hoisted_29$1, _hoisted_30$1, _hoisted_31$1, _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, index_vue_vue_type_script_setup_true_lang_default$3;
|
|
6060
6060
|
var init_index_vue_vue_type_script_setup_true_lang$3 = __esmMin((() => {
|
|
6061
6061
|
init_vue_runtime_esm_bundler();
|
|
6062
6062
|
init_vue_i18n();
|
|
@@ -6103,12 +6103,12 @@ var init_index_vue_vue_type_script_setup_true_lang$3 = __esmMin((() => {
|
|
|
6103
6103
|
};
|
|
6104
6104
|
_hoisted_21$2 = { class: "form-label fw-bold" };
|
|
6105
6105
|
_hoisted_22$2 = ["placeholder"];
|
|
6106
|
-
_hoisted_23$
|
|
6106
|
+
_hoisted_23$2 = {
|
|
6107
6107
|
key: 1,
|
|
6108
6108
|
class: "mb-3"
|
|
6109
6109
|
};
|
|
6110
|
-
_hoisted_24$
|
|
6111
|
-
_hoisted_25$
|
|
6110
|
+
_hoisted_24$2 = { class: "form-label fw-bold" };
|
|
6111
|
+
_hoisted_25$2 = ["placeholder"];
|
|
6112
6112
|
_hoisted_26$1 = { class: "mt-2" };
|
|
6113
6113
|
_hoisted_27$1 = { class: "form-label" };
|
|
6114
6114
|
_hoisted_28$1 = ["placeholder"];
|
|
@@ -6125,33 +6125,53 @@ var init_index_vue_vue_type_script_setup_true_lang$3 = __esmMin((() => {
|
|
|
6125
6125
|
_hoisted_36 = { class: "form-text text-muted mt-1 d-block" };
|
|
6126
6126
|
_hoisted_37 = { class: "card mb-3" };
|
|
6127
6127
|
_hoisted_38 = { class: "card-body" };
|
|
6128
|
-
_hoisted_39 = { class: "
|
|
6129
|
-
_hoisted_40 = {
|
|
6130
|
-
|
|
6131
|
-
|
|
6132
|
-
|
|
6133
|
-
|
|
6134
|
-
|
|
6135
|
-
|
|
6136
|
-
|
|
6137
|
-
|
|
6138
|
-
|
|
6139
|
-
|
|
6140
|
-
|
|
6141
|
-
|
|
6142
|
-
|
|
6143
|
-
|
|
6144
|
-
|
|
6145
|
-
|
|
6128
|
+
_hoisted_39 = { class: "form-check mb-2" };
|
|
6129
|
+
_hoisted_40 = {
|
|
6130
|
+
class: "form-check-label",
|
|
6131
|
+
for: "keepaliveEnabled"
|
|
6132
|
+
};
|
|
6133
|
+
_hoisted_41 = { class: "form-text text-muted d-block" };
|
|
6134
|
+
_hoisted_42 = {
|
|
6135
|
+
key: 0,
|
|
6136
|
+
class: "row mb-2"
|
|
6137
|
+
};
|
|
6138
|
+
_hoisted_43 = { class: "col-6" };
|
|
6139
|
+
_hoisted_44 = { class: "form-label" };
|
|
6140
|
+
_hoisted_45 = ["placeholder"];
|
|
6141
|
+
_hoisted_46 = { class: "form-text text-muted" };
|
|
6142
|
+
_hoisted_47 = { class: "col-6" };
|
|
6143
|
+
_hoisted_48 = { class: "form-label" };
|
|
6144
|
+
_hoisted_49 = ["placeholder"];
|
|
6145
|
+
_hoisted_50 = { class: "form-text text-muted" };
|
|
6146
|
+
_hoisted_51 = { class: "card mb-3" };
|
|
6147
|
+
_hoisted_52 = { class: "card-body" };
|
|
6148
|
+
_hoisted_53 = { class: "row mb-2" };
|
|
6149
|
+
_hoisted_54 = { class: "col-6" };
|
|
6150
|
+
_hoisted_55 = { class: "form-label" };
|
|
6151
|
+
_hoisted_56 = { class: "col-6" };
|
|
6152
|
+
_hoisted_57 = { class: "form-label" };
|
|
6153
|
+
_hoisted_58 = { value: "block" };
|
|
6154
|
+
_hoisted_59 = { value: "underline" };
|
|
6155
|
+
_hoisted_60 = { value: "bar" };
|
|
6156
|
+
_hoisted_61 = { class: "row mb-2" };
|
|
6157
|
+
_hoisted_62 = { class: "col-6" };
|
|
6158
|
+
_hoisted_63 = { class: "form-label" };
|
|
6159
|
+
_hoisted_64 = { value: "dark" };
|
|
6160
|
+
_hoisted_65 = { value: "light" };
|
|
6161
|
+
_hoisted_66 = { class: "col-6" };
|
|
6162
|
+
_hoisted_67 = { class: "form-label" };
|
|
6163
|
+
_hoisted_68 = { class: "d-flex justify-content-between" };
|
|
6164
|
+
_hoisted_69 = ["disabled"];
|
|
6165
|
+
_hoisted_70 = {
|
|
6146
6166
|
key: 0,
|
|
6147
6167
|
class: "spinner-border spinner-border-sm me-1"
|
|
6148
6168
|
};
|
|
6149
|
-
|
|
6169
|
+
_hoisted_71 = {
|
|
6150
6170
|
key: 1,
|
|
6151
6171
|
class: "bi bi-plug me-1"
|
|
6152
6172
|
};
|
|
6153
|
-
|
|
6154
|
-
|
|
6173
|
+
_hoisted_72 = ["disabled"];
|
|
6174
|
+
_hoisted_73 = {
|
|
6155
6175
|
key: 0,
|
|
6156
6176
|
class: "spinner-border spinner-border-sm me-1"
|
|
6157
6177
|
};
|
|
@@ -6164,8 +6184,12 @@ var init_index_vue_vue_type_script_setup_true_lang$3 = __esmMin((() => {
|
|
|
6164
6184
|
const editingConnection = ref(null);
|
|
6165
6185
|
const showTerminalConfig = ref(false);
|
|
6166
6186
|
const showStartupScript = ref(false);
|
|
6187
|
+
const showKeepaliveConfig = ref(false);
|
|
6167
6188
|
const testing = ref(false);
|
|
6168
6189
|
const saving = ref(false);
|
|
6190
|
+
const keepaliveEnabled = ref(true);
|
|
6191
|
+
const keepaliveInterval = ref(1e4);
|
|
6192
|
+
const keepaliveCountMax = ref(3);
|
|
6169
6193
|
const defaultForm = () => ({
|
|
6170
6194
|
name: "",
|
|
6171
6195
|
type: "ssh",
|
|
@@ -6196,10 +6220,20 @@ var init_index_vue_vue_type_script_setup_true_lang$3 = __esmMin((() => {
|
|
|
6196
6220
|
editingConnection.value = connection.id;
|
|
6197
6221
|
Object.assign(form, defaultForm(), connection);
|
|
6198
6222
|
showStartupScript.value = !!connection.startupScript || !!connection.forwardAgent;
|
|
6223
|
+
if (connection.options?.keepaliveInterval !== void 0) keepaliveInterval.value = connection.options.keepaliveInterval;
|
|
6224
|
+
else keepaliveInterval.value = 1e4;
|
|
6225
|
+
if (connection.options?.keepaliveCountMax !== void 0) keepaliveCountMax.value = connection.options.keepaliveCountMax;
|
|
6226
|
+
else keepaliveCountMax.value = 3;
|
|
6227
|
+
keepaliveEnabled.value = connection.options?.keepaliveInterval !== void 0 || connection.options?.keepaliveCountMax !== void 0;
|
|
6228
|
+
showKeepaliveConfig.value = keepaliveEnabled.value;
|
|
6199
6229
|
} else {
|
|
6200
6230
|
editingConnection.value = null;
|
|
6201
6231
|
Object.assign(form, defaultForm());
|
|
6202
6232
|
showStartupScript.value = false;
|
|
6233
|
+
showKeepaliveConfig.value = false;
|
|
6234
|
+
keepaliveEnabled.value = true;
|
|
6235
|
+
keepaliveInterval.value = 1e4;
|
|
6236
|
+
keepaliveCountMax.value = 3;
|
|
6203
6237
|
}
|
|
6204
6238
|
connectionModal.value?.show();
|
|
6205
6239
|
}
|
|
@@ -6220,6 +6254,16 @@ var init_index_vue_vue_type_script_setup_true_lang$3 = __esmMin((() => {
|
|
|
6220
6254
|
}
|
|
6221
6255
|
saving.value = true;
|
|
6222
6256
|
try {
|
|
6257
|
+
if (keepaliveEnabled.value) form.options = {
|
|
6258
|
+
...form.options,
|
|
6259
|
+
keepaliveInterval: keepaliveInterval.value,
|
|
6260
|
+
keepaliveCountMax: keepaliveCountMax.value
|
|
6261
|
+
};
|
|
6262
|
+
else form.options = {
|
|
6263
|
+
...form.options,
|
|
6264
|
+
keepaliveInterval: 0,
|
|
6265
|
+
keepaliveCountMax: 0
|
|
6266
|
+
};
|
|
6223
6267
|
if (editingConnection.value) await connectionService.updateConnection(editingConnection.value, { ...form });
|
|
6224
6268
|
else await connectionService.addConnection({ ...form });
|
|
6225
6269
|
toast.success(t("connection.saveSuccess"));
|
|
@@ -6294,9 +6338,9 @@ var init_index_vue_vue_type_script_setup_true_lang$3 = __esmMin((() => {
|
|
|
6294
6338
|
class: "connection-form"
|
|
6295
6339
|
}, [
|
|
6296
6340
|
createBaseVNode("div", _hoisted_1$3, [createBaseVNode("label", _hoisted_2$3, [
|
|
6297
|
-
_cache[
|
|
6341
|
+
_cache[22] || (_cache[22] = createBaseVNode("i", { class: "bi bi-tag me-1" }, null, -1)),
|
|
6298
6342
|
createTextVNode(toDisplayString(unref(t)("connection.name")) + " ", 1),
|
|
6299
|
-
_cache[
|
|
6343
|
+
_cache[23] || (_cache[23] = createBaseVNode("span", { class: "text-danger" }, "*", -1))
|
|
6300
6344
|
]), withDirectives(createBaseVNode("input", {
|
|
6301
6345
|
type: "text",
|
|
6302
6346
|
class: "form-control",
|
|
@@ -6305,16 +6349,16 @@ var init_index_vue_vue_type_script_setup_true_lang$3 = __esmMin((() => {
|
|
|
6305
6349
|
required: ""
|
|
6306
6350
|
}, null, 8, _hoisted_3$3), [[vModelText, form.name]])]),
|
|
6307
6351
|
createBaseVNode("div", _hoisted_4$3, [createBaseVNode("div", _hoisted_5$3, [createBaseVNode("label", _hoisted_6$3, [
|
|
6308
|
-
_cache[
|
|
6352
|
+
_cache[24] || (_cache[24] = createBaseVNode("i", { class: "bi bi-server me-1" }, null, -1)),
|
|
6309
6353
|
createTextVNode(toDisplayString(unref(t)("connection.host")) + " ", 1),
|
|
6310
|
-
_cache[
|
|
6354
|
+
_cache[25] || (_cache[25] = createBaseVNode("span", { class: "text-danger" }, "*", -1))
|
|
6311
6355
|
]), withDirectives(createBaseVNode("input", {
|
|
6312
6356
|
type: "text",
|
|
6313
6357
|
class: "form-control",
|
|
6314
6358
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => form.host = $event),
|
|
6315
6359
|
placeholder: unref(t)("connection.hostPlaceholder"),
|
|
6316
6360
|
required: form.type === "ssh"
|
|
6317
|
-
}, null, 8, _hoisted_7$3), [[vModelText, form.host]])]), createBaseVNode("div", _hoisted_8$3, [createBaseVNode("label", _hoisted_9$3, [_cache[
|
|
6361
|
+
}, null, 8, _hoisted_7$3), [[vModelText, form.host]])]), createBaseVNode("div", _hoisted_8$3, [createBaseVNode("label", _hoisted_9$3, [_cache[26] || (_cache[26] = createBaseVNode("i", { class: "bi bi-door-closed me-1" }, null, -1)), createTextVNode(toDisplayString(unref(t)("connection.port")), 1)]), withDirectives(createBaseVNode("input", {
|
|
6318
6362
|
type: "number",
|
|
6319
6363
|
class: "form-control",
|
|
6320
6364
|
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => form.port = $event),
|
|
@@ -6327,9 +6371,9 @@ var init_index_vue_vue_type_script_setup_true_lang$3 = __esmMin((() => {
|
|
|
6327
6371
|
{ number: true }
|
|
6328
6372
|
]])])]),
|
|
6329
6373
|
createBaseVNode("div", _hoisted_10$3, [createBaseVNode("label", _hoisted_11$3, [
|
|
6330
|
-
_cache[
|
|
6374
|
+
_cache[27] || (_cache[27] = createBaseVNode("i", { class: "bi bi-person me-1" }, null, -1)),
|
|
6331
6375
|
createTextVNode(toDisplayString(unref(t)("connection.username")) + " ", 1),
|
|
6332
|
-
_cache[
|
|
6376
|
+
_cache[28] || (_cache[28] = createBaseVNode("span", { class: "text-danger" }, "*", -1))
|
|
6333
6377
|
]), withDirectives(createBaseVNode("input", {
|
|
6334
6378
|
type: "text",
|
|
6335
6379
|
class: "form-control",
|
|
@@ -6338,7 +6382,7 @@ var init_index_vue_vue_type_script_setup_true_lang$3 = __esmMin((() => {
|
|
|
6338
6382
|
required: form.type === "ssh"
|
|
6339
6383
|
}, null, 8, _hoisted_12$3), [[vModelText, form.username]])]),
|
|
6340
6384
|
createBaseVNode("div", _hoisted_13$3, [
|
|
6341
|
-
createBaseVNode("label", _hoisted_14$3, [_cache[
|
|
6385
|
+
createBaseVNode("label", _hoisted_14$3, [_cache[29] || (_cache[29] = createBaseVNode("i", { class: "bi bi-shield-lock me-1" }, null, -1)), createTextVNode(toDisplayString(unref(t)("connection.authType")), 1)]),
|
|
6342
6386
|
createBaseVNode("div", _hoisted_15$3, [
|
|
6343
6387
|
withDirectives(createBaseVNode("input", {
|
|
6344
6388
|
type: "radio",
|
|
@@ -6348,7 +6392,7 @@ var init_index_vue_vue_type_script_setup_true_lang$3 = __esmMin((() => {
|
|
|
6348
6392
|
value: "auto",
|
|
6349
6393
|
"onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => form.authType = $event)
|
|
6350
6394
|
}, null, 512), [[vModelRadio, form.authType]]),
|
|
6351
|
-
createBaseVNode("label", _hoisted_16$3, [_cache[
|
|
6395
|
+
createBaseVNode("label", _hoisted_16$3, [_cache[30] || (_cache[30] = createBaseVNode("i", { class: "bi bi-magic me-1" }, null, -1)), createTextVNode(toDisplayString(unref(t)("connection.auto")), 1)]),
|
|
6352
6396
|
withDirectives(createBaseVNode("input", {
|
|
6353
6397
|
type: "radio",
|
|
6354
6398
|
class: "btn-check",
|
|
@@ -6357,7 +6401,7 @@ var init_index_vue_vue_type_script_setup_true_lang$3 = __esmMin((() => {
|
|
|
6357
6401
|
value: "password",
|
|
6358
6402
|
"onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => form.authType = $event)
|
|
6359
6403
|
}, null, 512), [[vModelRadio, form.authType]]),
|
|
6360
|
-
createBaseVNode("label", _hoisted_17$2, [_cache[
|
|
6404
|
+
createBaseVNode("label", _hoisted_17$2, [_cache[31] || (_cache[31] = createBaseVNode("i", { class: "bi bi-key me-1" }, null, -1)), createTextVNode(toDisplayString(unref(t)("connection.password")), 1)]),
|
|
6361
6405
|
withDirectives(createBaseVNode("input", {
|
|
6362
6406
|
type: "radio",
|
|
6363
6407
|
class: "btn-check",
|
|
@@ -6366,9 +6410,9 @@ var init_index_vue_vue_type_script_setup_true_lang$3 = __esmMin((() => {
|
|
|
6366
6410
|
value: "privateKey",
|
|
6367
6411
|
"onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) => form.authType = $event)
|
|
6368
6412
|
}, null, 512), [[vModelRadio, form.authType]]),
|
|
6369
|
-
createBaseVNode("label", _hoisted_18$2, [_cache[
|
|
6413
|
+
createBaseVNode("label", _hoisted_18$2, [_cache[32] || (_cache[32] = createBaseVNode("i", { class: "bi bi-file-earmark-lock me-1" }, null, -1)), createTextVNode(toDisplayString(unref(t)("connection.privateKey")), 1)])
|
|
6370
6414
|
]),
|
|
6371
|
-
form.authType === "auto" ? (openBlock(), createElementBlock("small", _hoisted_19$2, [_cache[
|
|
6415
|
+
form.authType === "auto" ? (openBlock(), createElementBlock("small", _hoisted_19$2, [_cache[33] || (_cache[33] = createBaseVNode("i", { class: "bi bi-info-circle me-1" }, null, -1)), createTextVNode(toDisplayString(unref(t)("connection.autoHint")), 1)])) : createCommentVNode("", true)
|
|
6372
6416
|
]),
|
|
6373
6417
|
form.authType === "password" ? (openBlock(), createElementBlock("div", _hoisted_20$2, [createBaseVNode("label", _hoisted_21$2, toDisplayString(unref(t)("connection.passwordLabel")), 1), withDirectives(createBaseVNode("input", {
|
|
6374
6418
|
type: "password",
|
|
@@ -6376,14 +6420,14 @@ var init_index_vue_vue_type_script_setup_true_lang$3 = __esmMin((() => {
|
|
|
6376
6420
|
"onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) => form.password = $event),
|
|
6377
6421
|
placeholder: unref(t)("connection.passwordPlaceholder")
|
|
6378
6422
|
}, null, 8, _hoisted_22$2), [[vModelText, form.password]])])) : createCommentVNode("", true),
|
|
6379
|
-
form.authType === "privateKey" ? (openBlock(), createElementBlock("div", _hoisted_23$
|
|
6380
|
-
createBaseVNode("label", _hoisted_24$
|
|
6423
|
+
form.authType === "privateKey" ? (openBlock(), createElementBlock("div", _hoisted_23$2, [
|
|
6424
|
+
createBaseVNode("label", _hoisted_24$2, toDisplayString(unref(t)("connection.privateKeyContent")), 1),
|
|
6381
6425
|
withDirectives(createBaseVNode("textarea", {
|
|
6382
6426
|
class: "form-control",
|
|
6383
6427
|
"onUpdate:modelValue": _cache[8] || (_cache[8] = ($event) => form.privateKey = $event),
|
|
6384
6428
|
rows: "5",
|
|
6385
6429
|
placeholder: unref(t)("connection.privateKeyPlaceholder")
|
|
6386
|
-
}, null, 8, _hoisted_25$
|
|
6430
|
+
}, null, 8, _hoisted_25$2), [[vModelText, form.privateKey]]),
|
|
6387
6431
|
createBaseVNode("div", _hoisted_26$1, [createBaseVNode("label", _hoisted_27$1, toDisplayString(unref(t)("connection.passphrase")), 1), withDirectives(createBaseVNode("input", {
|
|
6388
6432
|
type: "password",
|
|
6389
6433
|
class: "form-control",
|
|
@@ -6394,14 +6438,14 @@ var init_index_vue_vue_type_script_setup_true_lang$3 = __esmMin((() => {
|
|
|
6394
6438
|
type: "button",
|
|
6395
6439
|
class: "btn btn-sm btn-outline-secondary",
|
|
6396
6440
|
onClick: loadPrivateKey
|
|
6397
|
-
}, [_cache[
|
|
6441
|
+
}, [_cache[34] || (_cache[34] = createBaseVNode("i", { class: "bi bi-folder-open me-1" }, null, -1)), createTextVNode(toDisplayString(unref(t)("connection.loadFromFile")), 1)])])
|
|
6398
6442
|
])) : createCommentVNode("", true),
|
|
6399
6443
|
createBaseVNode("div", _hoisted_30$1, [createBaseVNode("div", {
|
|
6400
6444
|
class: "card-header",
|
|
6401
6445
|
onClick: _cache[10] || (_cache[10] = ($event) => showStartupScript.value = !showStartupScript.value),
|
|
6402
6446
|
style: { "cursor": "pointer" }
|
|
6403
6447
|
}, [
|
|
6404
|
-
_cache[
|
|
6448
|
+
_cache[35] || (_cache[35] = createBaseVNode("i", { class: "bi bi-lightning-charge me-1" }, null, -1)),
|
|
6405
6449
|
createTextVNode(toDisplayString(unref(t)("connection.startupScript")) + " ", 1),
|
|
6406
6450
|
createBaseVNode("i", { class: normalizeClass(showStartupScript.value ? "bi bi-chevron-up float-end" : "bi bi-chevron-down float-end") }, null, 2)
|
|
6407
6451
|
]), withDirectives(createBaseVNode("div", _hoisted_31$1, [
|
|
@@ -6412,8 +6456,8 @@ var init_index_vue_vue_type_script_setup_true_lang$3 = __esmMin((() => {
|
|
|
6412
6456
|
"onUpdate:modelValue": _cache[11] || (_cache[11] = ($event) => form.forwardAgent = $event),
|
|
6413
6457
|
id: "forwardAgent"
|
|
6414
6458
|
}, null, 512), [[vModelCheckbox, form.forwardAgent]]),
|
|
6415
|
-
createBaseVNode("label", _hoisted_33, [_cache[
|
|
6416
|
-
createBaseVNode("small", _hoisted_34, [_cache[
|
|
6459
|
+
createBaseVNode("label", _hoisted_33, [_cache[36] || (_cache[36] = createBaseVNode("i", { class: "bi bi-arrow-repeat me-1" }, null, -1)), createTextVNode(toDisplayString(unref(t)("connection.forwardAgent")), 1)]),
|
|
6460
|
+
createBaseVNode("small", _hoisted_34, [_cache[37] || (_cache[37] = createBaseVNode("i", { class: "bi bi-info-circle me-1" }, null, -1)), createTextVNode(toDisplayString(unref(t)("connection.forwardAgentHint")), 1)])
|
|
6417
6461
|
]),
|
|
6418
6462
|
withDirectives(createBaseVNode("textarea", {
|
|
6419
6463
|
class: "form-control",
|
|
@@ -6421,20 +6465,70 @@ var init_index_vue_vue_type_script_setup_true_lang$3 = __esmMin((() => {
|
|
|
6421
6465
|
rows: "3",
|
|
6422
6466
|
placeholder: unref(t)("connection.startupScriptPlaceholder")
|
|
6423
6467
|
}, null, 8, _hoisted_35), [[vModelText, form.startupScript]]),
|
|
6424
|
-
createBaseVNode("small", _hoisted_36, [_cache[
|
|
6468
|
+
createBaseVNode("small", _hoisted_36, [_cache[38] || (_cache[38] = createBaseVNode("i", { class: "bi bi-info-circle me-1" }, null, -1)), createTextVNode(toDisplayString(unref(t)("connection.startupScriptHint")), 1)])
|
|
6425
6469
|
], 512), [[vShow, showStartupScript.value]])]),
|
|
6426
6470
|
createBaseVNode("div", _hoisted_37, [createBaseVNode("div", {
|
|
6427
6471
|
class: "card-header",
|
|
6428
|
-
onClick: _cache[13] || (_cache[13] = ($event) =>
|
|
6472
|
+
onClick: _cache[13] || (_cache[13] = ($event) => showKeepaliveConfig.value = !showKeepaliveConfig.value),
|
|
6473
|
+
style: { "cursor": "pointer" }
|
|
6474
|
+
}, [
|
|
6475
|
+
_cache[39] || (_cache[39] = createBaseVNode("i", { class: "bi bi-heart-pulse me-1" }, null, -1)),
|
|
6476
|
+
createTextVNode(toDisplayString(unref(t)("connection.keepaliveConfig")) + " ", 1),
|
|
6477
|
+
createBaseVNode("i", { class: normalizeClass(showKeepaliveConfig.value ? "bi bi-chevron-up float-end" : "bi bi-chevron-down float-end") }, null, 2)
|
|
6478
|
+
]), withDirectives(createBaseVNode("div", _hoisted_38, [createBaseVNode("div", _hoisted_39, [
|
|
6479
|
+
withDirectives(createBaseVNode("input", {
|
|
6480
|
+
class: "form-check-input",
|
|
6481
|
+
type: "checkbox",
|
|
6482
|
+
"onUpdate:modelValue": _cache[14] || (_cache[14] = ($event) => keepaliveEnabled.value = $event),
|
|
6483
|
+
id: "keepaliveEnabled"
|
|
6484
|
+
}, null, 512), [[vModelCheckbox, keepaliveEnabled.value]]),
|
|
6485
|
+
createBaseVNode("label", _hoisted_40, [_cache[40] || (_cache[40] = createBaseVNode("i", { class: "bi bi-toggle-on me-1" }, null, -1)), createTextVNode(toDisplayString(unref(t)("connection.keepaliveEnabled")), 1)]),
|
|
6486
|
+
createBaseVNode("small", _hoisted_41, [_cache[41] || (_cache[41] = createBaseVNode("i", { class: "bi bi-info-circle me-1" }, null, -1)), createTextVNode(toDisplayString(unref(t)("connection.keepaliveEnabledHint")), 1)])
|
|
6487
|
+
]), keepaliveEnabled.value ? (openBlock(), createElementBlock("div", _hoisted_42, [createBaseVNode("div", _hoisted_43, [
|
|
6488
|
+
createBaseVNode("label", _hoisted_44, toDisplayString(unref(t)("connection.keepaliveInterval")), 1),
|
|
6489
|
+
withDirectives(createBaseVNode("input", {
|
|
6490
|
+
type: "number",
|
|
6491
|
+
class: "form-control form-control-sm",
|
|
6492
|
+
"onUpdate:modelValue": _cache[15] || (_cache[15] = ($event) => keepaliveInterval.value = $event),
|
|
6493
|
+
min: "1000",
|
|
6494
|
+
max: "300000",
|
|
6495
|
+
placeholder: unref(t)("connection.keepaliveIntervalPlaceholder")
|
|
6496
|
+
}, null, 8, _hoisted_45), [[
|
|
6497
|
+
vModelText,
|
|
6498
|
+
keepaliveInterval.value,
|
|
6499
|
+
void 0,
|
|
6500
|
+
{ number: true }
|
|
6501
|
+
]]),
|
|
6502
|
+
createBaseVNode("small", _hoisted_46, toDisplayString(unref(t)("connection.keepaliveIntervalHint")), 1)
|
|
6503
|
+
]), createBaseVNode("div", _hoisted_47, [
|
|
6504
|
+
createBaseVNode("label", _hoisted_48, toDisplayString(unref(t)("connection.keepaliveCountMax")), 1),
|
|
6505
|
+
withDirectives(createBaseVNode("input", {
|
|
6506
|
+
type: "number",
|
|
6507
|
+
class: "form-control form-control-sm",
|
|
6508
|
+
"onUpdate:modelValue": _cache[16] || (_cache[16] = ($event) => keepaliveCountMax.value = $event),
|
|
6509
|
+
min: "1",
|
|
6510
|
+
max: "10",
|
|
6511
|
+
placeholder: unref(t)("connection.keepaliveCountMaxPlaceholder")
|
|
6512
|
+
}, null, 8, _hoisted_49), [[
|
|
6513
|
+
vModelText,
|
|
6514
|
+
keepaliveCountMax.value,
|
|
6515
|
+
void 0,
|
|
6516
|
+
{ number: true }
|
|
6517
|
+
]]),
|
|
6518
|
+
createBaseVNode("small", _hoisted_50, toDisplayString(unref(t)("connection.keepaliveCountMaxHint")), 1)
|
|
6519
|
+
])])) : createCommentVNode("", true)], 512), [[vShow, showKeepaliveConfig.value]])]),
|
|
6520
|
+
createBaseVNode("div", _hoisted_51, [createBaseVNode("div", {
|
|
6521
|
+
class: "card-header",
|
|
6522
|
+
onClick: _cache[17] || (_cache[17] = ($event) => showTerminalConfig.value = !showTerminalConfig.value),
|
|
6429
6523
|
style: { "cursor": "pointer" }
|
|
6430
6524
|
}, [
|
|
6431
|
-
_cache[
|
|
6525
|
+
_cache[42] || (_cache[42] = createBaseVNode("i", { class: "bi bi-terminal me-1" }, null, -1)),
|
|
6432
6526
|
createTextVNode(toDisplayString(unref(t)("connection.terminalConfig")) + " ", 1),
|
|
6433
6527
|
createBaseVNode("i", { class: normalizeClass(showTerminalConfig.value ? "bi bi-chevron-up float-end" : "bi bi-chevron-down float-end") }, null, 2)
|
|
6434
|
-
]), withDirectives(createBaseVNode("div",
|
|
6528
|
+
]), withDirectives(createBaseVNode("div", _hoisted_52, [createBaseVNode("div", _hoisted_53, [createBaseVNode("div", _hoisted_54, [createBaseVNode("label", _hoisted_55, toDisplayString(unref(t)("connection.fontSize")), 1), withDirectives(createBaseVNode("input", {
|
|
6435
6529
|
type: "number",
|
|
6436
6530
|
class: "form-control form-control-sm",
|
|
6437
|
-
"onUpdate:modelValue": _cache[
|
|
6531
|
+
"onUpdate:modelValue": _cache[18] || (_cache[18] = ($event) => form.terminal.fontSize = $event),
|
|
6438
6532
|
min: "8",
|
|
6439
6533
|
max: "32"
|
|
6440
6534
|
}, null, 512), [[
|
|
@@ -6442,28 +6536,28 @@ var init_index_vue_vue_type_script_setup_true_lang$3 = __esmMin((() => {
|
|
|
6442
6536
|
form.terminal.fontSize,
|
|
6443
6537
|
void 0,
|
|
6444
6538
|
{ number: true }
|
|
6445
|
-
]])]), createBaseVNode("div",
|
|
6539
|
+
]])]), createBaseVNode("div", _hoisted_56, [createBaseVNode("label", _hoisted_57, toDisplayString(unref(t)("connection.cursorStyle")), 1), withDirectives(createBaseVNode("select", {
|
|
6446
6540
|
class: "form-select form-select-sm",
|
|
6447
|
-
"onUpdate:modelValue": _cache[
|
|
6541
|
+
"onUpdate:modelValue": _cache[19] || (_cache[19] = ($event) => form.terminal.cursorStyle = $event)
|
|
6448
6542
|
}, [
|
|
6449
|
-
createBaseVNode("option",
|
|
6450
|
-
createBaseVNode("option",
|
|
6451
|
-
createBaseVNode("option",
|
|
6452
|
-
], 512), [[vModelSelect, form.terminal.cursorStyle]])])]), createBaseVNode("div",
|
|
6543
|
+
createBaseVNode("option", _hoisted_58, toDisplayString(unref(t)("connection.cursorBlock")), 1),
|
|
6544
|
+
createBaseVNode("option", _hoisted_59, toDisplayString(unref(t)("connection.cursorUnderline")), 1),
|
|
6545
|
+
createBaseVNode("option", _hoisted_60, toDisplayString(unref(t)("connection.cursorBar")), 1)
|
|
6546
|
+
], 512), [[vModelSelect, form.terminal.cursorStyle]])])]), createBaseVNode("div", _hoisted_61, [createBaseVNode("div", _hoisted_62, [createBaseVNode("label", _hoisted_63, toDisplayString(unref(t)("connection.theme")), 1), withDirectives(createBaseVNode("select", {
|
|
6453
6547
|
class: "form-select form-select-sm",
|
|
6454
|
-
"onUpdate:modelValue": _cache[
|
|
6455
|
-
}, [createBaseVNode("option",
|
|
6548
|
+
"onUpdate:modelValue": _cache[20] || (_cache[20] = ($event) => form.terminal.theme = $event)
|
|
6549
|
+
}, [createBaseVNode("option", _hoisted_64, toDisplayString(unref(t)("connection.themeDark")), 1), createBaseVNode("option", _hoisted_65, toDisplayString(unref(t)("connection.themeLight")), 1)], 512), [[vModelSelect, form.terminal.theme]])]), createBaseVNode("div", _hoisted_66, [createBaseVNode("label", _hoisted_67, toDisplayString(unref(t)("connection.fontFamily")), 1), withDirectives(createBaseVNode("input", {
|
|
6456
6550
|
type: "text",
|
|
6457
6551
|
class: "form-control form-control-sm",
|
|
6458
|
-
"onUpdate:modelValue": _cache[
|
|
6552
|
+
"onUpdate:modelValue": _cache[21] || (_cache[21] = ($event) => form.terminal.fontFamily = $event),
|
|
6459
6553
|
placeholder: "字体"
|
|
6460
6554
|
}, null, 512), [[vModelText, form.terminal.fontFamily]])])])], 512), [[vShow, showTerminalConfig.value]])]),
|
|
6461
|
-
createBaseVNode("div",
|
|
6555
|
+
createBaseVNode("div", _hoisted_68, [createBaseVNode("button", {
|
|
6462
6556
|
type: "button",
|
|
6463
6557
|
class: "btn btn-outline-secondary",
|
|
6464
6558
|
onClick: testConn,
|
|
6465
6559
|
disabled: testing.value
|
|
6466
|
-
}, [testing.value ? (openBlock(), createElementBlock("span",
|
|
6560
|
+
}, [testing.value ? (openBlock(), createElementBlock("span", _hoisted_70)) : (openBlock(), createElementBlock("i", _hoisted_71)), createTextVNode(" " + toDisplayString(testing.value ? unref(t)("connection.testing") : unref(t)("connection.testConnection")), 1)], 8, _hoisted_69), createBaseVNode("div", null, [createBaseVNode("button", {
|
|
6467
6561
|
type: "button",
|
|
6468
6562
|
class: "btn btn-secondary me-2",
|
|
6469
6563
|
onClick: close
|
|
@@ -6471,7 +6565,7 @@ var init_index_vue_vue_type_script_setup_true_lang$3 = __esmMin((() => {
|
|
|
6471
6565
|
type: "submit",
|
|
6472
6566
|
class: "btn btn-primary",
|
|
6473
6567
|
disabled: saving.value
|
|
6474
|
-
}, [saving.value ? (openBlock(), createElementBlock("span",
|
|
6568
|
+
}, [saving.value ? (openBlock(), createElementBlock("span", _hoisted_73)) : createCommentVNode("", true), createTextVNode(" " + toDisplayString(saving.value ? unref(t)("connection.saving") : unref(t)("common.save")), 1)], 8, _hoisted_72)])])
|
|
6475
6569
|
], 32)]),
|
|
6476
6570
|
_: 1
|
|
6477
6571
|
}, 8, ["title", "closeButton"]);
|
|
@@ -6480,21 +6574,21 @@ var init_index_vue_vue_type_script_setup_true_lang$3 = __esmMin((() => {
|
|
|
6480
6574
|
});
|
|
6481
6575
|
}));
|
|
6482
6576
|
//#endregion
|
|
6483
|
-
//#region src/components/connection-editor/index.vue?vue&type=style&index=0&scoped=
|
|
6484
|
-
var
|
|
6577
|
+
//#region src/components/connection-editor/index.vue?vue&type=style&index=0&scoped=0db4df7c&lang.css
|
|
6578
|
+
var init_index_vue_vue_type_style_index_0_scoped_0db4df7c_lang = __esmMin((() => {}));
|
|
6485
6579
|
//#endregion
|
|
6486
6580
|
//#region src/components/connection-editor/index.vue
|
|
6487
6581
|
var connection_editor_default;
|
|
6488
6582
|
var init_connection_editor = __esmMin((() => {
|
|
6489
6583
|
init_index_vue_vue_type_script_setup_true_lang$3();
|
|
6490
6584
|
init_index_vue_vue_type_script_setup_true_lang$3();
|
|
6491
|
-
|
|
6585
|
+
init_index_vue_vue_type_style_index_0_scoped_0db4df7c_lang();
|
|
6492
6586
|
init__plugin_vue_export_helper();
|
|
6493
|
-
connection_editor_default = /* @__PURE__ */ _plugin_vue_export_helper_default(index_vue_vue_type_script_setup_true_lang_default$3, [["__scopeId", "data-v-
|
|
6587
|
+
connection_editor_default = /* @__PURE__ */ _plugin_vue_export_helper_default(index_vue_vue_type_script_setup_true_lang_default$3, [["__scopeId", "data-v-0db4df7c"]]);
|
|
6494
6588
|
}));
|
|
6495
6589
|
//#endregion
|
|
6496
6590
|
//#region src/components/ai-settings/index.vue?vue&type=script&setup=true&lang.ts
|
|
6497
|
-
var _hoisted_1$2, _hoisted_2$2, _hoisted_3$2, _hoisted_4$2, _hoisted_5$2, _hoisted_6$2, _hoisted_7$2, _hoisted_8$2, _hoisted_9$2, _hoisted_10$2, _hoisted_11$2, _hoisted_12$2, _hoisted_13$2, _hoisted_14$2, _hoisted_15$2, _hoisted_16$2, _hoisted_17$1, _hoisted_18$1, _hoisted_19$1, _hoisted_20$1, _hoisted_21$1, _hoisted_22$1, index_vue_vue_type_script_setup_true_lang_default$2;
|
|
6591
|
+
var _hoisted_1$2, _hoisted_2$2, _hoisted_3$2, _hoisted_4$2, _hoisted_5$2, _hoisted_6$2, _hoisted_7$2, _hoisted_8$2, _hoisted_9$2, _hoisted_10$2, _hoisted_11$2, _hoisted_12$2, _hoisted_13$2, _hoisted_14$2, _hoisted_15$2, _hoisted_16$2, _hoisted_17$1, _hoisted_18$1, _hoisted_19$1, _hoisted_20$1, _hoisted_21$1, _hoisted_22$1, _hoisted_23$1, _hoisted_24$1, _hoisted_25$1, index_vue_vue_type_script_setup_true_lang_default$2;
|
|
6498
6592
|
var init_index_vue_vue_type_script_setup_true_lang$2 = __esmMin((() => {
|
|
6499
6593
|
init_vue_runtime_esm_bundler();
|
|
6500
6594
|
init_vue_i18n();
|
|
@@ -6503,26 +6597,29 @@ var init_index_vue_vue_type_script_setup_true_lang$2 = __esmMin((() => {
|
|
|
6503
6597
|
init_toast();
|
|
6504
6598
|
_hoisted_1$2 = { class: "mb-3" };
|
|
6505
6599
|
_hoisted_2$2 = { class: "form-label fw-bold" };
|
|
6506
|
-
_hoisted_3$2 = { class: "
|
|
6507
|
-
_hoisted_4$2 =
|
|
6508
|
-
_hoisted_5$2 = { class: "form-
|
|
6509
|
-
_hoisted_6$2 = { class: "
|
|
6510
|
-
_hoisted_7$2 =
|
|
6511
|
-
_hoisted_8$2 =
|
|
6512
|
-
_hoisted_9$2 = { class: "
|
|
6513
|
-
_hoisted_10$2 = { class: "
|
|
6514
|
-
_hoisted_11$2 =
|
|
6515
|
-
_hoisted_12$2 =
|
|
6516
|
-
_hoisted_13$2 = { class: "
|
|
6517
|
-
_hoisted_14$2 = { class: "
|
|
6518
|
-
_hoisted_15$2 =
|
|
6519
|
-
_hoisted_16$2 = { class: "form-
|
|
6520
|
-
_hoisted_17$1 = { class: "
|
|
6521
|
-
_hoisted_18$1 = { class: "
|
|
6522
|
-
_hoisted_19$1 = { class: "
|
|
6523
|
-
_hoisted_20$1 = { class: "
|
|
6524
|
-
_hoisted_21$1 =
|
|
6525
|
-
_hoisted_22$1 = {
|
|
6600
|
+
_hoisted_3$2 = { class: "form-text text-muted" };
|
|
6601
|
+
_hoisted_4$2 = { class: "mb-3" };
|
|
6602
|
+
_hoisted_5$2 = { class: "form-label fw-bold" };
|
|
6603
|
+
_hoisted_6$2 = { class: "input-group" };
|
|
6604
|
+
_hoisted_7$2 = ["type", "placeholder"];
|
|
6605
|
+
_hoisted_8$2 = { class: "form-text text-muted" };
|
|
6606
|
+
_hoisted_9$2 = { class: "mb-3" };
|
|
6607
|
+
_hoisted_10$2 = { class: "form-label fw-bold" };
|
|
6608
|
+
_hoisted_11$2 = ["placeholder"];
|
|
6609
|
+
_hoisted_12$2 = { class: "form-text text-muted" };
|
|
6610
|
+
_hoisted_13$2 = { class: "mb-3" };
|
|
6611
|
+
_hoisted_14$2 = { class: "form-label fw-bold" };
|
|
6612
|
+
_hoisted_15$2 = ["placeholder"];
|
|
6613
|
+
_hoisted_16$2 = { class: "form-text text-muted" };
|
|
6614
|
+
_hoisted_17$1 = { class: "row mb-3" };
|
|
6615
|
+
_hoisted_18$1 = { class: "col-6" };
|
|
6616
|
+
_hoisted_19$1 = { class: "form-label" };
|
|
6617
|
+
_hoisted_20$1 = { class: "col-6" };
|
|
6618
|
+
_hoisted_21$1 = { class: "form-label" };
|
|
6619
|
+
_hoisted_22$1 = { class: "d-flex justify-content-between" };
|
|
6620
|
+
_hoisted_23$1 = { class: "ms-auto" };
|
|
6621
|
+
_hoisted_24$1 = ["disabled"];
|
|
6622
|
+
_hoisted_25$1 = {
|
|
6526
6623
|
key: 0,
|
|
6527
6624
|
class: "spinner-border spinner-border-sm me-1"
|
|
6528
6625
|
};
|
|
@@ -6537,6 +6634,7 @@ var init_index_vue_vue_type_script_setup_true_lang$2 = __esmMin((() => {
|
|
|
6537
6634
|
const saving = ref(false);
|
|
6538
6635
|
const defaultForm = () => ({
|
|
6539
6636
|
enabled: true,
|
|
6637
|
+
provider: "openai",
|
|
6540
6638
|
apiKey: "",
|
|
6541
6639
|
baseUrl: "https://api.openai.com/v1",
|
|
6542
6640
|
model: "gpt-4o-mini",
|
|
@@ -6575,6 +6673,35 @@ var init_index_vue_vue_type_script_setup_true_lang$2 = __esmMin((() => {
|
|
|
6575
6673
|
}
|
|
6576
6674
|
}
|
|
6577
6675
|
const emit = __emit;
|
|
6676
|
+
const providerPresets = {
|
|
6677
|
+
openai: {
|
|
6678
|
+
baseUrl: "https://api.openai.com/v1",
|
|
6679
|
+
model: "gpt-4o-mini"
|
|
6680
|
+
},
|
|
6681
|
+
anthropic: {
|
|
6682
|
+
baseUrl: "https://api.anthropic.com",
|
|
6683
|
+
model: "claude-3-5-sonnet-20241022"
|
|
6684
|
+
},
|
|
6685
|
+
tencent: {
|
|
6686
|
+
baseUrl: "https://api.hunyuan.cloud.tencent.com/v1",
|
|
6687
|
+
model: "hunyuan-lite"
|
|
6688
|
+
},
|
|
6689
|
+
azure: {
|
|
6690
|
+
baseUrl: "",
|
|
6691
|
+
model: "gpt-4o-mini"
|
|
6692
|
+
},
|
|
6693
|
+
custom: {
|
|
6694
|
+
baseUrl: "",
|
|
6695
|
+
model: ""
|
|
6696
|
+
}
|
|
6697
|
+
};
|
|
6698
|
+
function onProviderChange() {
|
|
6699
|
+
const preset = providerPresets[form.provider];
|
|
6700
|
+
if (preset) {
|
|
6701
|
+
form.baseUrl = preset.baseUrl;
|
|
6702
|
+
form.model = preset.model;
|
|
6703
|
+
}
|
|
6704
|
+
}
|
|
6578
6705
|
__expose({
|
|
6579
6706
|
open,
|
|
6580
6707
|
close
|
|
@@ -6604,47 +6731,66 @@ var init_index_vue_vue_type_script_setup_true_lang$2 = __esmMin((() => {
|
|
|
6604
6731
|
}, [
|
|
6605
6732
|
createBaseVNode("div", _hoisted_1$2, [
|
|
6606
6733
|
createBaseVNode("label", _hoisted_2$2, [
|
|
6607
|
-
_cache[
|
|
6734
|
+
_cache[7] || (_cache[7] = createBaseVNode("i", { class: "bi bi-cloud me-1" }, null, -1)),
|
|
6735
|
+
createTextVNode(toDisplayString(unref(t)("ai.provider")) + " ", 1),
|
|
6736
|
+
_cache[8] || (_cache[8] = createBaseVNode("span", { class: "text-danger" }, "*", -1))
|
|
6737
|
+
]),
|
|
6738
|
+
withDirectives(createBaseVNode("select", {
|
|
6739
|
+
class: "form-select",
|
|
6740
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => form.provider = $event),
|
|
6741
|
+
onChange: onProviderChange
|
|
6742
|
+
}, [..._cache[9] || (_cache[9] = [
|
|
6743
|
+
createBaseVNode("option", { value: "openai" }, "OpenAI", -1),
|
|
6744
|
+
createBaseVNode("option", { value: "anthropic" }, "Anthropic (Claude)", -1),
|
|
6745
|
+
createBaseVNode("option", { value: "tencent" }, "腾讯云", -1),
|
|
6746
|
+
createBaseVNode("option", { value: "azure" }, "Azure OpenAI", -1),
|
|
6747
|
+
createBaseVNode("option", { value: "custom" }, "自定义", -1)
|
|
6748
|
+
])], 544), [[vModelSelect, form.provider]]),
|
|
6749
|
+
createBaseVNode("small", _hoisted_3$2, toDisplayString(unref(t)("ai.providerHint")), 1)
|
|
6750
|
+
]),
|
|
6751
|
+
createBaseVNode("div", _hoisted_4$2, [
|
|
6752
|
+
createBaseVNode("label", _hoisted_5$2, [
|
|
6753
|
+
_cache[10] || (_cache[10] = createBaseVNode("i", { class: "bi bi-key me-1" }, null, -1)),
|
|
6608
6754
|
createTextVNode(toDisplayString(unref(t)("ai.apiKey")) + " ", 1),
|
|
6609
|
-
_cache[
|
|
6755
|
+
_cache[11] || (_cache[11] = createBaseVNode("span", { class: "text-danger" }, "*", -1))
|
|
6610
6756
|
]),
|
|
6611
|
-
createBaseVNode("div",
|
|
6757
|
+
createBaseVNode("div", _hoisted_6$2, [withDirectives(createBaseVNode("input", {
|
|
6612
6758
|
type: showApiKey.value ? "text" : "password",
|
|
6613
6759
|
class: "form-control",
|
|
6614
|
-
"onUpdate:modelValue": _cache[
|
|
6760
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => form.apiKey = $event),
|
|
6615
6761
|
placeholder: unref(t)("ai.apiKeyPlaceholder"),
|
|
6616
6762
|
required: ""
|
|
6617
|
-
}, null, 8,
|
|
6763
|
+
}, null, 8, _hoisted_7$2), [[vModelDynamic, form.apiKey]]), createBaseVNode("button", {
|
|
6618
6764
|
type: "button",
|
|
6619
6765
|
class: "btn btn-outline-secondary",
|
|
6620
|
-
onClick: _cache[
|
|
6766
|
+
onClick: _cache[2] || (_cache[2] = ($event) => showApiKey.value = !showApiKey.value)
|
|
6621
6767
|
}, [createBaseVNode("i", { class: normalizeClass(showApiKey.value ? "bi bi-eye-slash" : "bi bi-eye") }, null, 2)])]),
|
|
6622
|
-
createBaseVNode("small",
|
|
6768
|
+
createBaseVNode("small", _hoisted_8$2, toDisplayString(unref(t)("ai.apiKeyHint")), 1)
|
|
6623
6769
|
]),
|
|
6624
|
-
createBaseVNode("div",
|
|
6625
|
-
createBaseVNode("label",
|
|
6770
|
+
createBaseVNode("div", _hoisted_9$2, [
|
|
6771
|
+
createBaseVNode("label", _hoisted_10$2, [_cache[12] || (_cache[12] = createBaseVNode("i", { class: "bi bi-globe me-1" }, null, -1)), createTextVNode(toDisplayString(unref(t)("ai.baseUrl")), 1)]),
|
|
6626
6772
|
withDirectives(createBaseVNode("input", {
|
|
6627
6773
|
type: "text",
|
|
6628
6774
|
class: "form-control",
|
|
6629
|
-
"onUpdate:modelValue": _cache[
|
|
6775
|
+
"onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => form.baseUrl = $event),
|
|
6630
6776
|
placeholder: unref(t)("ai.baseUrlPlaceholder")
|
|
6631
|
-
}, null, 8,
|
|
6632
|
-
createBaseVNode("small",
|
|
6777
|
+
}, null, 8, _hoisted_11$2), [[vModelText, form.baseUrl]]),
|
|
6778
|
+
createBaseVNode("small", _hoisted_12$2, toDisplayString(unref(t)("ai.baseUrlHint")), 1)
|
|
6633
6779
|
]),
|
|
6634
|
-
createBaseVNode("div",
|
|
6635
|
-
createBaseVNode("label",
|
|
6780
|
+
createBaseVNode("div", _hoisted_13$2, [
|
|
6781
|
+
createBaseVNode("label", _hoisted_14$2, [_cache[13] || (_cache[13] = createBaseVNode("i", { class: "bi bi-cpu me-1" }, null, -1)), createTextVNode(toDisplayString(unref(t)("ai.model")), 1)]),
|
|
6636
6782
|
withDirectives(createBaseVNode("input", {
|
|
6637
6783
|
type: "text",
|
|
6638
6784
|
class: "form-control",
|
|
6639
|
-
"onUpdate:modelValue": _cache[
|
|
6785
|
+
"onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => form.model = $event),
|
|
6640
6786
|
placeholder: unref(t)("ai.modelPlaceholder")
|
|
6641
|
-
}, null, 8,
|
|
6642
|
-
createBaseVNode("small",
|
|
6787
|
+
}, null, 8, _hoisted_15$2), [[vModelText, form.model]]),
|
|
6788
|
+
createBaseVNode("small", _hoisted_16$2, toDisplayString(unref(t)("ai.modelHint")), 1)
|
|
6643
6789
|
]),
|
|
6644
|
-
createBaseVNode("div",
|
|
6790
|
+
createBaseVNode("div", _hoisted_17$1, [createBaseVNode("div", _hoisted_18$1, [createBaseVNode("label", _hoisted_19$1, toDisplayString(unref(t)("ai.maxTokens")), 1), withDirectives(createBaseVNode("input", {
|
|
6645
6791
|
type: "number",
|
|
6646
6792
|
class: "form-control form-control-sm",
|
|
6647
|
-
"onUpdate:modelValue": _cache[
|
|
6793
|
+
"onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => form.maxTokens = $event),
|
|
6648
6794
|
min: "100",
|
|
6649
6795
|
max: "8000"
|
|
6650
6796
|
}, null, 512), [[
|
|
@@ -6652,10 +6798,10 @@ var init_index_vue_vue_type_script_setup_true_lang$2 = __esmMin((() => {
|
|
|
6652
6798
|
form.maxTokens,
|
|
6653
6799
|
void 0,
|
|
6654
6800
|
{ number: true }
|
|
6655
|
-
]])]), createBaseVNode("div",
|
|
6801
|
+
]])]), createBaseVNode("div", _hoisted_20$1, [createBaseVNode("label", _hoisted_21$1, toDisplayString(unref(t)("ai.temperature")), 1), withDirectives(createBaseVNode("input", {
|
|
6656
6802
|
type: "number",
|
|
6657
6803
|
class: "form-control form-control-sm",
|
|
6658
|
-
"onUpdate:modelValue": _cache[
|
|
6804
|
+
"onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) => form.temperature = $event),
|
|
6659
6805
|
min: "0",
|
|
6660
6806
|
max: "2",
|
|
6661
6807
|
step: "0.1"
|
|
@@ -6665,7 +6811,7 @@ var init_index_vue_vue_type_script_setup_true_lang$2 = __esmMin((() => {
|
|
|
6665
6811
|
void 0,
|
|
6666
6812
|
{ number: true }
|
|
6667
6813
|
]])])]),
|
|
6668
|
-
createBaseVNode("div",
|
|
6814
|
+
createBaseVNode("div", _hoisted_22$1, [createBaseVNode("div", _hoisted_23$1, [createBaseVNode("button", {
|
|
6669
6815
|
type: "button",
|
|
6670
6816
|
class: "btn btn-secondary me-2",
|
|
6671
6817
|
onClick: close
|
|
@@ -6673,7 +6819,7 @@ var init_index_vue_vue_type_script_setup_true_lang$2 = __esmMin((() => {
|
|
|
6673
6819
|
type: "submit",
|
|
6674
6820
|
class: "btn btn-primary",
|
|
6675
6821
|
disabled: saving.value
|
|
6676
|
-
}, [saving.value ? (openBlock(), createElementBlock("span",
|
|
6822
|
+
}, [saving.value ? (openBlock(), createElementBlock("span", _hoisted_25$1)) : createCommentVNode("", true), createTextVNode(" " + toDisplayString(saving.value ? unref(t)("common.processing") : unref(t)("common.save")), 1)], 8, _hoisted_24$1)])])
|
|
6677
6823
|
], 32)]),
|
|
6678
6824
|
_: 1
|
|
6679
6825
|
}, 8, ["title", "closeButton"]);
|
|
@@ -6682,17 +6828,17 @@ var init_index_vue_vue_type_script_setup_true_lang$2 = __esmMin((() => {
|
|
|
6682
6828
|
});
|
|
6683
6829
|
}));
|
|
6684
6830
|
//#endregion
|
|
6685
|
-
//#region src/components/ai-settings/index.vue?vue&type=style&index=0&scoped=
|
|
6686
|
-
var
|
|
6831
|
+
//#region src/components/ai-settings/index.vue?vue&type=style&index=0&scoped=226da730&lang.css
|
|
6832
|
+
var init_index_vue_vue_type_style_index_0_scoped_226da730_lang = __esmMin((() => {}));
|
|
6687
6833
|
//#endregion
|
|
6688
6834
|
//#region src/components/ai-settings/index.vue
|
|
6689
6835
|
var ai_settings_default;
|
|
6690
6836
|
var init_ai_settings = __esmMin((() => {
|
|
6691
6837
|
init_index_vue_vue_type_script_setup_true_lang$2();
|
|
6692
6838
|
init_index_vue_vue_type_script_setup_true_lang$2();
|
|
6693
|
-
|
|
6839
|
+
init_index_vue_vue_type_style_index_0_scoped_226da730_lang();
|
|
6694
6840
|
init__plugin_vue_export_helper();
|
|
6695
|
-
ai_settings_default = /* @__PURE__ */ _plugin_vue_export_helper_default(index_vue_vue_type_script_setup_true_lang_default$2, [["__scopeId", "data-v-
|
|
6841
|
+
ai_settings_default = /* @__PURE__ */ _plugin_vue_export_helper_default(index_vue_vue_type_script_setup_true_lang_default$2, [["__scopeId", "data-v-226da730"]]);
|
|
6696
6842
|
}));
|
|
6697
6843
|
//#endregion
|
|
6698
6844
|
//#region src/service/batch.ts
|