fdb2 1.0.33 → 1.0.35
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 +4 -2
- package/dist/public/explorer.css +152 -272
- package/dist/public/explorer.js +354 -465
- package/dist/public/index.js +3 -1
- package/dist/public/layout.css +265 -54
- package/dist/public/layout.js +184 -19
- package/dist/public/vue.js +1 -1
- package/dist/server/core/db-api.js +5 -0
- package/dist/server/core/db-api.js.map +1 -1
- package/dist/server/core/db-api.ts +5 -0
- package/dist/server/core/dialect.d.ts +1 -1
- package/dist/server/core/dialect.d.ts.map +1 -1
- package/dist/server/core/dialect.js +21 -1
- package/dist/server/core/dialect.js.map +1 -1
- package/dist/server/core/dialect.ts +23 -2
- package/dist/server/service/connection.service.d.ts.map +1 -1
- package/dist/server/service/connection.service.js +17 -1
- package/dist/server/service/connection.service.js.map +1 -1
- package/dist/server/service/connection.service.ts +17 -1
- package/dist/server/service/database/clickhouse-connection.d.ts +44 -0
- package/dist/server/service/database/clickhouse-connection.d.ts.map +1 -0
- package/dist/server/service/database/clickhouse-connection.js +210 -0
- package/dist/server/service/database/clickhouse-connection.js.map +1 -0
- package/dist/server/service/database/clickhouse-connection.ts +182 -0
- package/dist/server/service/database/clickhouse.service.d.ts +138 -0
- package/dist/server/service/database/clickhouse.service.d.ts.map +1 -0
- package/dist/server/service/database/clickhouse.service.js +794 -0
- package/dist/server/service/database/clickhouse.service.js.map +1 -0
- package/dist/server/service/database/clickhouse.service.ts +853 -0
- package/dist/server/service/database/database.service.d.ts +42 -0
- package/dist/server/service/database/database.service.d.ts.map +1 -1
- package/dist/server/service/database/database.service.js +37 -0
- package/dist/server/service/database/database.service.js.map +1 -1
- package/dist/server/service/database/database.service.ts +37 -0
- package/dist/server/service/database/index.d.ts +1 -0
- package/dist/server/service/database/index.d.ts.map +1 -1
- package/dist/server/service/database/index.js +3 -1
- package/dist/server/service/database/index.js.map +1 -1
- package/dist/server/service/database/index.ts +1 -0
- package/package.json +1 -4
package/dist/public/explorer.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { i as __require, n as __esmMin, t as __commonJSMin } from "./rolldown-runtime.js";
|
|
2
|
-
import { C as
|
|
3
|
-
import { _ as init_i18n, a as dataGrid_default, b as defineStore, c as modal_default, d as toast, f as init_toast, g as getT, h as init__plugin_vue_export_helper, i as showConfirm, l as init_loading, m as _plugin_vue_export_helper_default, n as init_modal$2, o as init_dataGrid, p as toast_default, r as showAlert, s as init_modal$1, t as getModalInstance, u as init_toast
|
|
2
|
+
import { A as defineComponent, B as renderList, C as createBlock, D as createStaticVNode, E as createSlots, F as nextTick, G as withCtx, I as onBeforeUnmount, K as withDirectives, L as onMounted, O as createTextVNode, S as createBaseVNode, T as createElementBlock, W as watch, _ as vModelText, a as init_vue_router, b as Fragment, ct as toDisplayString, d as init_vue_runtime_esm_bundler, g as vModelSelect, h as vModelCheckbox, k as createVNode, l as init_vue_i18n, o as useRoute, ot as normalizeClass, s as useRouter, st as normalizeStyle, tt as ref, u as useI18n, v as vShow, w as createCommentVNode, x as computed, y as withModifiers, z as openBlock } from "./vue.js";
|
|
3
|
+
import { _ as init_i18n, a as dataGrid_default, b as defineStore, c as modal_default, d as toast, f as init_toast$1, g as getT, h as init__plugin_vue_export_helper, i as showConfirm, l as init_loading, m as _plugin_vue_export_helper_default, n as init_modal$2, o as init_dataGrid, p as toast_default, r as showAlert, s as init_modal$1, t as getModalInstance, u as init_toast, v as init_base, x as init_pinia, y as request } from "./index.js";
|
|
4
4
|
//#region src/service/database.ts
|
|
5
5
|
var ConnectionService, DatabaseService;
|
|
6
6
|
var init_database = __esmMin((() => {
|
|
@@ -414,32 +414,32 @@ var init_database = __esmMin((() => {
|
|
|
414
414
|
}));
|
|
415
415
|
//#endregion
|
|
416
416
|
//#region src/components/connection-editor/index.vue?vue&type=script&setup=true&lang.ts
|
|
417
|
-
var _hoisted_1$
|
|
417
|
+
var _hoisted_1$9, _hoisted_2$9, _hoisted_3$9, _hoisted_4$9, _hoisted_5$9, _hoisted_6$9, _hoisted_7$9, _hoisted_8$9, _hoisted_9$9, _hoisted_10$9, _hoisted_11$9, _hoisted_12$9, _hoisted_13$9, _hoisted_14$9, _hoisted_15$9, _hoisted_16$9, _hoisted_17$9, _hoisted_18$9, _hoisted_19$9, _hoisted_20$8, _hoisted_21$8, _hoisted_22$8, _hoisted_23$8, _hoisted_24$8, _hoisted_25$7, _hoisted_26$7, _hoisted_27$7, _hoisted_28$7, _hoisted_29$7, _hoisted_30$6, _hoisted_31$6, _hoisted_32$6, _hoisted_33$6, _hoisted_34$6, _hoisted_35$6, _hoisted_36$6, _hoisted_37$6, _hoisted_38$6, _hoisted_39$6, _hoisted_40$6, _hoisted_41$6, _hoisted_42$6, _hoisted_43$6, _hoisted_44$6, _hoisted_45$6, _hoisted_46$6, _hoisted_47$6, _hoisted_48$5, _hoisted_49$5, _hoisted_50$5, _hoisted_51$5, _hoisted_52$5, _hoisted_53$4, _hoisted_54$4, _hoisted_55$4, _hoisted_56$4, _hoisted_57$4, _hoisted_58$4, _hoisted_59$4, _hoisted_60$4, _hoisted_61$4, index_vue_vue_type_script_setup_true_lang_default;
|
|
418
418
|
var init_index_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
419
419
|
init_vue_runtime_esm_bundler();
|
|
420
420
|
init_vue_i18n();
|
|
421
421
|
init_database();
|
|
422
422
|
init_modal$1();
|
|
423
423
|
init_toast();
|
|
424
|
-
_hoisted_1$
|
|
425
|
-
_hoisted_2$
|
|
426
|
-
_hoisted_3$
|
|
427
|
-
_hoisted_4$
|
|
428
|
-
_hoisted_5$
|
|
429
|
-
_hoisted_6$
|
|
430
|
-
_hoisted_7$
|
|
431
|
-
_hoisted_8$
|
|
432
|
-
_hoisted_9$
|
|
433
|
-
_hoisted_10$
|
|
434
|
-
_hoisted_11$
|
|
435
|
-
_hoisted_12$
|
|
436
|
-
_hoisted_13$
|
|
424
|
+
_hoisted_1$9 = { class: "form-section" };
|
|
425
|
+
_hoisted_2$9 = { class: "section-header" };
|
|
426
|
+
_hoisted_3$9 = { class: "section-title" };
|
|
427
|
+
_hoisted_4$9 = { class: "section-content" };
|
|
428
|
+
_hoisted_5$9 = { class: "form-grid" };
|
|
429
|
+
_hoisted_6$9 = { class: "form-group-modern" };
|
|
430
|
+
_hoisted_7$9 = { class: "form-label-modern" };
|
|
431
|
+
_hoisted_8$9 = ["placeholder"];
|
|
432
|
+
_hoisted_9$9 = { class: "form-group-modern" };
|
|
433
|
+
_hoisted_10$9 = { class: "form-label-modern" };
|
|
434
|
+
_hoisted_11$9 = { value: "" };
|
|
435
|
+
_hoisted_12$9 = ["value"];
|
|
436
|
+
_hoisted_13$9 = {
|
|
437
437
|
key: 0,
|
|
438
438
|
class: "form-section"
|
|
439
439
|
};
|
|
440
|
-
_hoisted_14$
|
|
441
|
-
_hoisted_15$
|
|
442
|
-
_hoisted_16$
|
|
440
|
+
_hoisted_14$9 = { class: "section-header" };
|
|
441
|
+
_hoisted_15$9 = { class: "section-title" };
|
|
442
|
+
_hoisted_16$9 = { class: "section-content" };
|
|
443
443
|
_hoisted_17$9 = { class: "form-grid" };
|
|
444
444
|
_hoisted_18$9 = { class: "form-group-modern" };
|
|
445
445
|
_hoisted_19$9 = { class: "form-label-modern" };
|
|
@@ -474,8 +474,8 @@ var init_index_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
|
474
474
|
_hoisted_45$6 = ["placeholder"];
|
|
475
475
|
_hoisted_46$6 = { class: "form-group-modern" };
|
|
476
476
|
_hoisted_47$6 = { class: "form-label-modern" };
|
|
477
|
-
_hoisted_48$
|
|
478
|
-
_hoisted_49$
|
|
477
|
+
_hoisted_48$5 = ["placeholder"];
|
|
478
|
+
_hoisted_49$5 = { class: "form-section" };
|
|
479
479
|
_hoisted_50$5 = { class: "section-header" };
|
|
480
480
|
_hoisted_51$5 = { class: "section-title" };
|
|
481
481
|
_hoisted_52$5 = { class: "section-content" };
|
|
@@ -510,7 +510,6 @@ var init_index_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
|
510
510
|
const props = __props;
|
|
511
511
|
const emit = __emit;
|
|
512
512
|
const connectionModal = ref();
|
|
513
|
-
const toastRef = ref();
|
|
514
513
|
const errorModal = ref();
|
|
515
514
|
const errorMessage = ref("");
|
|
516
515
|
const editingConnection = ref(null);
|
|
@@ -621,26 +620,32 @@ var init_index_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
|
621
620
|
async function saveAndTestConnection() {
|
|
622
621
|
try {
|
|
623
622
|
await saveConnection(false);
|
|
624
|
-
await testConnection(connectionForm.value)
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
console.error("保存并测试连接失败:", error);
|
|
630
|
-
if (error.message && error.message.includes("连接测试失败")) {
|
|
623
|
+
if (await testConnection(connectionForm.value)) {
|
|
624
|
+
hide();
|
|
625
|
+
emit("saved", connectionForm.value);
|
|
626
|
+
showToast("", editingConnection.value ? t("connection.configUpdateAndTestSuccess") : t("connection.configAddAndTestSuccess"));
|
|
627
|
+
} else {
|
|
631
628
|
showToast(t("common.warning"), t("connection.configSavedButTestFailed"), "warning");
|
|
632
629
|
hide();
|
|
633
630
|
emit("saved", connectionForm.value);
|
|
634
631
|
}
|
|
632
|
+
} catch (error) {
|
|
633
|
+
console.error("保存并测试连接失败:", error);
|
|
635
634
|
}
|
|
636
635
|
}
|
|
637
636
|
async function testConnection(connection) {
|
|
638
637
|
try {
|
|
639
|
-
|
|
640
|
-
|
|
638
|
+
const body = await new ConnectionService().testConnection(connection) || {};
|
|
639
|
+
if (body.ret === 0 && body.data === true) {
|
|
640
|
+
showToast("", `"${connection.name}" 连接测试成功`, "success");
|
|
641
|
+
return true;
|
|
642
|
+
}
|
|
643
|
+
showToast("", `"${connection.name}" 连接测试失败`, "error");
|
|
644
|
+
return false;
|
|
641
645
|
} catch (error) {
|
|
642
646
|
console.error("测试连接失败:", error);
|
|
643
|
-
showToast("", `"${connection.name}" 连接测试失败: ${error
|
|
647
|
+
showToast("", `"${connection.name}" 连接测试失败: ${error?.message || "未知错误"}`, "error");
|
|
648
|
+
return false;
|
|
644
649
|
}
|
|
645
650
|
}
|
|
646
651
|
function handleModalClose() {
|
|
@@ -651,7 +656,9 @@ var init_index_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
|
651
656
|
if (selectedType?.defaultPort) connectionForm.value.port = selectedType.defaultPort;
|
|
652
657
|
}
|
|
653
658
|
function showToast(title, message, type) {
|
|
654
|
-
|
|
659
|
+
if (type === "error") toast.error(message, title);
|
|
660
|
+
else if (type === "warning") toast.warning(message, title);
|
|
661
|
+
else toast.success(message, title);
|
|
655
662
|
}
|
|
656
663
|
async function loadDatabaseTypes() {
|
|
657
664
|
try {
|
|
@@ -717,7 +724,7 @@ var init_index_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
|
717
724
|
onSubmit: withModifiers(saveConnection, ["prevent"]),
|
|
718
725
|
class: "connection-form-modern"
|
|
719
726
|
}, [
|
|
720
|
-
createBaseVNode("div", _hoisted_1$
|
|
727
|
+
createBaseVNode("div", _hoisted_1$9, [createBaseVNode("div", _hoisted_2$9, [_cache[11] || (_cache[11] = createBaseVNode("div", { class: "section-icon" }, [createBaseVNode("i", { class: "bi bi-info-circle" })], -1)), createBaseVNode("h3", _hoisted_3$9, toDisplayString(_ctx.$t("connection.basicInfo")), 1)]), createBaseVNode("div", _hoisted_4$9, [createBaseVNode("div", _hoisted_5$9, [createBaseVNode("div", _hoisted_6$9, [createBaseVNode("label", _hoisted_7$9, [
|
|
721
728
|
_cache[12] || (_cache[12] = createBaseVNode("i", { class: "bi bi-tag me-2" }, null, -1)),
|
|
722
729
|
createTextVNode(toDisplayString(_ctx.$t("connection.connectionName")) + " ", 1),
|
|
723
730
|
_cache[13] || (_cache[13] = createBaseVNode("span", { class: "required" }, "*", -1))
|
|
@@ -727,7 +734,7 @@ var init_index_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
|
727
734
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => connectionForm.value.name = $event),
|
|
728
735
|
placeholder: _ctx.$t("connection.connectionNamePlaceholder"),
|
|
729
736
|
required: ""
|
|
730
|
-
}, null, 8, _hoisted_8$
|
|
737
|
+
}, null, 8, _hoisted_8$9), [[vModelText, connectionForm.value.name]])]), createBaseVNode("div", _hoisted_9$9, [createBaseVNode("label", _hoisted_10$9, [
|
|
731
738
|
_cache[14] || (_cache[14] = createBaseVNode("i", { class: "bi bi-diagram-3 me-2" }, null, -1)),
|
|
732
739
|
createTextVNode(toDisplayString(_ctx.$t("connection.databaseType")) + " ", 1),
|
|
733
740
|
_cache[15] || (_cache[15] = createBaseVNode("span", { class: "required" }, "*", -1))
|
|
@@ -736,13 +743,13 @@ var init_index_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
|
736
743
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => connectionForm.value.type = $event),
|
|
737
744
|
onChange: onTypeChange,
|
|
738
745
|
required: ""
|
|
739
|
-
}, [createBaseVNode("option", _hoisted_11$
|
|
746
|
+
}, [createBaseVNode("option", _hoisted_11$9, toDisplayString(_ctx.$t("connection.selectDatabaseType")), 1), (openBlock(true), createElementBlock(Fragment, null, renderList(databaseTypes.value, (dbType) => {
|
|
740
747
|
return openBlock(), createElementBlock("option", {
|
|
741
748
|
key: dbType.value,
|
|
742
749
|
value: dbType.value
|
|
743
|
-
}, toDisplayString(dbType.label), 9, _hoisted_12$
|
|
750
|
+
}, toDisplayString(dbType.label), 9, _hoisted_12$9);
|
|
744
751
|
}), 128))], 544), [[vModelSelect, connectionForm.value.type]])])])])]),
|
|
745
|
-
connectionForm.value.type !== "sqlite" ? (openBlock(), createElementBlock("div", _hoisted_13$
|
|
752
|
+
connectionForm.value.type !== "sqlite" ? (openBlock(), createElementBlock("div", _hoisted_13$9, [createBaseVNode("div", _hoisted_14$9, [_cache[16] || (_cache[16] = createBaseVNode("div", { class: "section-icon" }, [createBaseVNode("i", { class: "bi bi-hdd-network" })], -1)), createBaseVNode("h3", _hoisted_15$9, toDisplayString(_ctx.$t("connection.connectionConfig")), 1)]), createBaseVNode("div", _hoisted_16$9, [createBaseVNode("div", _hoisted_17$9, [
|
|
746
753
|
createBaseVNode("div", _hoisted_18$9, [createBaseVNode("label", _hoisted_19$9, [
|
|
747
754
|
_cache[17] || (_cache[17] = createBaseVNode("i", { class: "bi bi-server me-2" }, null, -1)),
|
|
748
755
|
createTextVNode(toDisplayString(_ctx.$t("connection.host")) + " ", 1),
|
|
@@ -817,8 +824,8 @@ var init_index_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
|
817
824
|
class: "form-control-modern",
|
|
818
825
|
"onUpdate:modelValue": _cache[8] || (_cache[8] = ($event) => connectionForm.value.password = $event),
|
|
819
826
|
placeholder: _ctx.$t("connection.passwordPlaceholder")
|
|
820
|
-
}, null, 8, _hoisted_48$
|
|
821
|
-
createBaseVNode("div", _hoisted_49$
|
|
827
|
+
}, null, 8, _hoisted_48$5), [[vModelText, connectionForm.value.password]])])])])]),
|
|
828
|
+
createBaseVNode("div", _hoisted_49$5, [createBaseVNode("div", _hoisted_50$5, [_cache[30] || (_cache[30] = createBaseVNode("div", { class: "section-icon" }, [createBaseVNode("i", { class: "bi bi-gear" })], -1)), createBaseVNode("h3", _hoisted_51$5, toDisplayString(_ctx.$t("connection.otherOptions")), 1)]), createBaseVNode("div", _hoisted_52$5, [createBaseVNode("div", _hoisted_53$4, [createBaseVNode("label", _hoisted_54$4, [_cache[31] || (_cache[31] = createBaseVNode("i", { class: "bi bi-toggle-on me-2" }, null, -1)), createTextVNode(toDisplayString(_ctx.$t("connection.connectionStatus")), 1)]), createBaseVNode("div", _hoisted_55$4, [withDirectives(createBaseVNode("input", {
|
|
822
829
|
class: "form-check-input-modern",
|
|
823
830
|
type: "checkbox",
|
|
824
831
|
"onUpdate:modelValue": _cache[9] || (_cache[9] = ($event) => connectionForm.value.enabled = $event),
|
|
@@ -852,17 +859,17 @@ var init_index_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
|
852
859
|
});
|
|
853
860
|
}));
|
|
854
861
|
//#endregion
|
|
855
|
-
//#region src/components/connection-editor/index.vue?vue&type=style&index=0&scoped=
|
|
856
|
-
var
|
|
862
|
+
//#region src/components/connection-editor/index.vue?vue&type=style&index=0&scoped=3a550e2d&lang.css
|
|
863
|
+
var init_index_vue_vue_type_style_index_0_scoped_3a550e2d_lang = __esmMin((() => {}));
|
|
857
864
|
//#endregion
|
|
858
865
|
//#region src/components/connection-editor/index.vue
|
|
859
866
|
var connection_editor_default;
|
|
860
867
|
var init_connection_editor = __esmMin((() => {
|
|
861
868
|
init_index_vue_vue_type_script_setup_true_lang();
|
|
862
869
|
init_index_vue_vue_type_script_setup_true_lang();
|
|
863
|
-
|
|
870
|
+
init_index_vue_vue_type_style_index_0_scoped_3a550e2d_lang();
|
|
864
871
|
init__plugin_vue_export_helper();
|
|
865
|
-
connection_editor_default = /*#__PURE__*/ _plugin_vue_export_helper_default(index_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-
|
|
872
|
+
connection_editor_default = /*#__PURE__*/ _plugin_vue_export_helper_default(index_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-3a550e2d"]]);
|
|
866
873
|
})), ModalHelper, modal;
|
|
867
874
|
var init_modal = __esmMin((() => {
|
|
868
875
|
init_vue_runtime_esm_bundler();
|
|
@@ -971,7 +978,7 @@ var init_connection = __esmMin((() => {
|
|
|
971
978
|
init_pinia();
|
|
972
979
|
init_database();
|
|
973
980
|
init_modal();
|
|
974
|
-
init_toast
|
|
981
|
+
init_toast();
|
|
975
982
|
init_i18n();
|
|
976
983
|
databaseService = new DatabaseService();
|
|
977
984
|
connectionService = new ConnectionService();
|
|
@@ -53051,7 +53058,7 @@ var init_export = __esmMin((() => {
|
|
|
53051
53058
|
}));
|
|
53052
53059
|
//#endregion
|
|
53053
53060
|
//#region src/platform/database/components/sql-executor.vue?vue&type=script&setup=true&lang.ts
|
|
53054
|
-
var _hoisted_1$
|
|
53061
|
+
var _hoisted_1$8, _hoisted_2$8, _hoisted_3$8, _hoisted_4$8, _hoisted_5$8, _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$8, _hoisted_18$8, _hoisted_19$8, sql_executor_vue_vue_type_script_setup_true_lang_default;
|
|
53055
53062
|
var init_sql_executor_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
53056
53063
|
init_vue_runtime_esm_bundler();
|
|
53057
53064
|
init_dist$11();
|
|
@@ -53065,37 +53072,37 @@ var init_sql_executor_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
|
53065
53072
|
init_database();
|
|
53066
53073
|
init_modal();
|
|
53067
53074
|
init_export();
|
|
53068
|
-
_hoisted_1$
|
|
53069
|
-
_hoisted_2$
|
|
53070
|
-
_hoisted_3$
|
|
53071
|
-
_hoisted_4$
|
|
53072
|
-
_hoisted_5$
|
|
53073
|
-
_hoisted_6$
|
|
53074
|
-
_hoisted_7$
|
|
53075
|
-
_hoisted_8$
|
|
53076
|
-
_hoisted_9$
|
|
53077
|
-
_hoisted_10$
|
|
53078
|
-
_hoisted_11$
|
|
53075
|
+
_hoisted_1$8 = { class: "sql-executor" };
|
|
53076
|
+
_hoisted_2$8 = { class: "sql-toolbar" };
|
|
53077
|
+
_hoisted_3$8 = { class: "toolbar-left" };
|
|
53078
|
+
_hoisted_4$8 = ["disabled"];
|
|
53079
|
+
_hoisted_5$8 = { class: "toolbar-right" };
|
|
53080
|
+
_hoisted_6$8 = { class: "sql-editor" };
|
|
53081
|
+
_hoisted_7$8 = { class: "sql-result" };
|
|
53082
|
+
_hoisted_8$8 = { class: "result-content" };
|
|
53083
|
+
_hoisted_9$8 = { class: "result-header" };
|
|
53084
|
+
_hoisted_10$8 = { class: "result-title" };
|
|
53085
|
+
_hoisted_11$8 = {
|
|
53079
53086
|
key: 0,
|
|
53080
53087
|
class: "sql-loading"
|
|
53081
53088
|
};
|
|
53082
|
-
_hoisted_12$
|
|
53089
|
+
_hoisted_12$8 = {
|
|
53083
53090
|
key: 0,
|
|
53084
53091
|
class: "bi bi-check-circle-fill text-success"
|
|
53085
53092
|
};
|
|
53086
|
-
_hoisted_13$
|
|
53093
|
+
_hoisted_13$8 = {
|
|
53087
53094
|
key: 1,
|
|
53088
53095
|
class: "bi bi-x-circle-fill text-danger"
|
|
53089
53096
|
};
|
|
53090
|
-
_hoisted_14$
|
|
53097
|
+
_hoisted_14$8 = {
|
|
53091
53098
|
key: 0,
|
|
53092
53099
|
class: "result-actions"
|
|
53093
53100
|
};
|
|
53094
|
-
_hoisted_15$
|
|
53101
|
+
_hoisted_15$8 = {
|
|
53095
53102
|
key: 0,
|
|
53096
53103
|
class: "sql-loading-state"
|
|
53097
53104
|
};
|
|
53098
|
-
_hoisted_16$
|
|
53105
|
+
_hoisted_16$8 = { class: "d-flex align-items-center justify-content-center py-4" };
|
|
53099
53106
|
_hoisted_17$8 = { class: "fw-bold" };
|
|
53100
53107
|
_hoisted_18$8 = { class: "text-muted small" };
|
|
53101
53108
|
_hoisted_19$8 = { class: "json-result" };
|
|
@@ -53372,14 +53379,14 @@ var init_sql_executor_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
|
53372
53379
|
if (sqlResult.value && resultEditor.value) updateResultEditor();
|
|
53373
53380
|
});
|
|
53374
53381
|
return (_ctx, _cache) => {
|
|
53375
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
53382
|
+
return openBlock(), createElementBlock("div", _hoisted_1$8, [createBaseVNode("div", _hoisted_2$8, [createBaseVNode("div", _hoisted_3$8, [createBaseVNode("button", {
|
|
53376
53383
|
class: "btn btn-primary btn-sm",
|
|
53377
53384
|
onClick: executeSql,
|
|
53378
53385
|
disabled: loading.value
|
|
53379
|
-
}, [_cache[1] || (_cache[1] = createBaseVNode("i", { class: "bi bi-play-fill" }, null, -1)), createTextVNode(" " + toDisplayString(_ctx.$t("sqlExecutor.executeSQL")), 1)], 8, _hoisted_4$
|
|
53386
|
+
}, [_cache[1] || (_cache[1] = createBaseVNode("i", { class: "bi bi-play-fill" }, null, -1)), createTextVNode(" " + toDisplayString(_ctx.$t("sqlExecutor.executeSQL")), 1)], 8, _hoisted_4$8), createBaseVNode("button", {
|
|
53380
53387
|
class: "btn btn-outline-secondary btn-sm",
|
|
53381
53388
|
onClick: formatSql
|
|
53382
|
-
}, [_cache[2] || (_cache[2] = createBaseVNode("i", { class: "bi bi-braces" }, null, -1)), createTextVNode(" " + toDisplayString(_ctx.$t("common.format")), 1)])]), createBaseVNode("div", _hoisted_5$
|
|
53389
|
+
}, [_cache[2] || (_cache[2] = createBaseVNode("i", { class: "bi bi-braces" }, null, -1)), createTextVNode(" " + toDisplayString(_ctx.$t("common.format")), 1)])]), createBaseVNode("div", _hoisted_5$8, [createBaseVNode("button", {
|
|
53383
53390
|
class: "btn btn-outline-primary btn-sm",
|
|
53384
53391
|
onClick: clearSql
|
|
53385
53392
|
}, [_cache[3] || (_cache[3] = createBaseVNode("i", { class: "bi bi-trash" }, null, -1)), createTextVNode(" " + toDisplayString(_ctx.$t("sqlExecutor.clearBtn")), 1)])])]), createBaseVNode("div", {
|
|
@@ -53387,7 +53394,7 @@ var init_sql_executor_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
|
53387
53394
|
ref_key: "containerRef",
|
|
53388
53395
|
ref: containerRef
|
|
53389
53396
|
}, [
|
|
53390
|
-
createBaseVNode("div", _hoisted_6$
|
|
53397
|
+
createBaseVNode("div", _hoisted_6$8, [createBaseVNode("div", {
|
|
53391
53398
|
ref_key: "editorRef",
|
|
53392
53399
|
ref: editorRef,
|
|
53393
53400
|
class: "codemirror-editor"
|
|
@@ -53396,15 +53403,15 @@ var init_sql_executor_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
|
53396
53403
|
class: normalizeClass(["resizer", { "resizing": isResizing.value }]),
|
|
53397
53404
|
onMousedown: startResize
|
|
53398
53405
|
}, null, 34),
|
|
53399
|
-
createBaseVNode("div", _hoisted_7$
|
|
53400
|
-
createBaseVNode("div", _hoisted_9$
|
|
53406
|
+
createBaseVNode("div", _hoisted_7$8, [createBaseVNode("div", _hoisted_8$8, [
|
|
53407
|
+
createBaseVNode("div", _hoisted_9$8, [createBaseVNode("h6", _hoisted_10$8, [loading.value ? (openBlock(), createElementBlock("div", _hoisted_11$8, [_cache[4] || (_cache[4] = createBaseVNode("div", { class: "spinner-border spinner-border-sm me-2" }, null, -1)), createTextVNode(" " + toDisplayString(_ctx.$t("sqlExecutor.executing")), 1)])) : sqlResult.value ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [sqlResult.value.success ? (openBlock(), createElementBlock("i", _hoisted_12$8)) : (openBlock(), createElementBlock("i", _hoisted_13$8)), createTextVNode(" " + toDisplayString(_ctx.$t("sqlExecutor.resultTitle")), 1)], 64)) : (openBlock(), createElementBlock(Fragment, { key: 2 }, [createTextVNode(toDisplayString(_ctx.$t("sqlExecutor.resultTitle")), 1)], 64))]), sqlResult.value && !loading.value ? (openBlock(), createElementBlock("div", _hoisted_14$8, [createBaseVNode("button", {
|
|
53401
53408
|
class: "btn btn-sm btn-outline-secondary me-2",
|
|
53402
53409
|
onClick: formatJsonResult
|
|
53403
53410
|
}, [_cache[5] || (_cache[5] = createBaseVNode("i", { class: "bi bi-braces" }, null, -1)), createTextVNode(" " + toDisplayString(_ctx.$t("common.format")), 1)]), createBaseVNode("button", {
|
|
53404
53411
|
class: "btn btn-sm btn-outline-secondary",
|
|
53405
53412
|
onClick: _cache[0] || (_cache[0] = ($event) => exportResult("json"))
|
|
53406
53413
|
}, [_cache[6] || (_cache[6] = createBaseVNode("i", { class: "bi bi-file-earmark-code" }, null, -1)), createTextVNode(" " + toDisplayString(_ctx.$t("sqlExecutor.exportJSON")), 1)])])) : createCommentVNode("", true)]),
|
|
53407
|
-
loading.value ? (openBlock(), createElementBlock("div", _hoisted_15$
|
|
53414
|
+
loading.value ? (openBlock(), createElementBlock("div", _hoisted_15$8, [createBaseVNode("div", _hoisted_16$8, [_cache[7] || (_cache[7] = createBaseVNode("div", { class: "spinner-border text-primary me-3" }, null, -1)), createBaseVNode("div", null, [createBaseVNode("div", _hoisted_17$8, toDisplayString(_ctx.$t("sqlExecutor.executingSQL")), 1), createBaseVNode("div", _hoisted_18$8, toDisplayString(_ctx.$t("sqlExecutor.executingHint")), 1)])])])) : createCommentVNode("", true),
|
|
53408
53415
|
createBaseVNode("div", _hoisted_19$8, [createBaseVNode("div", {
|
|
53409
53416
|
ref_key: "resultEditorRef",
|
|
53410
53417
|
ref: resultEditorRef,
|
|
@@ -53431,7 +53438,7 @@ var init_sql_executor = __esmMin((() => {
|
|
|
53431
53438
|
}));
|
|
53432
53439
|
//#endregion
|
|
53433
53440
|
//#region src/platform/database/components/connection-detail.vue?vue&type=script&setup=true&lang.ts
|
|
53434
|
-
var _hoisted_1$
|
|
53441
|
+
var _hoisted_1$7, _hoisted_2$7, _hoisted_3$7, _hoisted_4$7, _hoisted_5$7, _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$7, _hoisted_18$7, _hoisted_19$7, _hoisted_20$7, _hoisted_21$7, _hoisted_22$7, _hoisted_23$7, _hoisted_24$7, _hoisted_25$6, _hoisted_26$6, _hoisted_27$6, _hoisted_28$6, _hoisted_29$6, _hoisted_30$5, _hoisted_31$5, _hoisted_32$5, _hoisted_33$5, _hoisted_34$5, _hoisted_35$5, _hoisted_36$5, _hoisted_37$5, _hoisted_38$5, _hoisted_39$5, _hoisted_40$5, _hoisted_41$5, _hoisted_42$5, _hoisted_43$5, _hoisted_44$5, _hoisted_45$5, _hoisted_46$5, _hoisted_47$5, _hoisted_48$4, _hoisted_49$4, _hoisted_50$4, _hoisted_51$4, _hoisted_52$4, _hoisted_53$3, _hoisted_54$3, _hoisted_55$3, _hoisted_56$3, _hoisted_57$3, _hoisted_58$3, _hoisted_59$3, _hoisted_60$3, _hoisted_61$3, _hoisted_62$3, _hoisted_63$3, _hoisted_64$3, _hoisted_65$3, _hoisted_66$3, _hoisted_67$3, _hoisted_68$3, _hoisted_69$3, _hoisted_70$3, _hoisted_71$3, _hoisted_72$3, _hoisted_73$3, _hoisted_74$2, _hoisted_75$2, _hoisted_76$2, _hoisted_77$2, _hoisted_78$2, _hoisted_79$2, _hoisted_80$2, _hoisted_81$2, _hoisted_82$2, _hoisted_83$2, _hoisted_84$2, _hoisted_85$2, _hoisted_86$2, _hoisted_87$2, _hoisted_88$2, _hoisted_89$2, _hoisted_90$2, _hoisted_91$2, _hoisted_92$2, _hoisted_93$2, _hoisted_94$2, _hoisted_95$2, _hoisted_96$2, _hoisted_97$2, _hoisted_98$2, _hoisted_99$2, _hoisted_100$2, _hoisted_101$2, _hoisted_102$2, _hoisted_103$2, _hoisted_104$2, _hoisted_105$2, _hoisted_106$2, _hoisted_107$2, _hoisted_108$2, _hoisted_109$1, _hoisted_110$1, _hoisted_111$1, _hoisted_112$1, connection_detail_vue_vue_type_script_setup_true_lang_default;
|
|
53435
53442
|
var init_connection_detail_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
53436
53443
|
init_vue_runtime_esm_bundler();
|
|
53437
53444
|
init_vue_router();
|
|
@@ -53439,25 +53446,25 @@ var init_connection_detail_vue_vue_type_script_setup_true_lang = __esmMin((() =>
|
|
|
53439
53446
|
init_sql_executor();
|
|
53440
53447
|
init_vue_i18n();
|
|
53441
53448
|
init_modal();
|
|
53442
|
-
_hoisted_1$
|
|
53443
|
-
_hoisted_2$
|
|
53444
|
-
_hoisted_3$
|
|
53445
|
-
_hoisted_4$
|
|
53446
|
-
_hoisted_5$
|
|
53447
|
-
_hoisted_6$
|
|
53448
|
-
_hoisted_7$
|
|
53449
|
-
_hoisted_8$
|
|
53450
|
-
_hoisted_9$
|
|
53451
|
-
_hoisted_10$
|
|
53452
|
-
_hoisted_11$
|
|
53449
|
+
_hoisted_1$7 = { class: "connection-detail" };
|
|
53450
|
+
_hoisted_2$7 = { class: "connection-header" };
|
|
53451
|
+
_hoisted_3$7 = { class: "connection-info" };
|
|
53452
|
+
_hoisted_4$7 = { class: "connection-avatar" };
|
|
53453
|
+
_hoisted_5$7 = { class: "connection-meta" };
|
|
53454
|
+
_hoisted_6$7 = { class: "connection-name" };
|
|
53455
|
+
_hoisted_7$7 = { class: "connection-type-info" };
|
|
53456
|
+
_hoisted_8$7 = { class: "db-type" };
|
|
53457
|
+
_hoisted_9$7 = { class: "connection-actions" };
|
|
53458
|
+
_hoisted_10$7 = ["title"];
|
|
53459
|
+
_hoisted_11$7 = {
|
|
53453
53460
|
key: 0,
|
|
53454
53461
|
class: "connection-details-panel"
|
|
53455
53462
|
};
|
|
53456
|
-
_hoisted_12$
|
|
53457
|
-
_hoisted_13$
|
|
53458
|
-
_hoisted_14$
|
|
53459
|
-
_hoisted_15$
|
|
53460
|
-
_hoisted_16$
|
|
53463
|
+
_hoisted_12$7 = { class: "detail-card" };
|
|
53464
|
+
_hoisted_13$7 = { class: "card-body" };
|
|
53465
|
+
_hoisted_14$7 = { class: "row" };
|
|
53466
|
+
_hoisted_15$7 = { class: "col-md-6" };
|
|
53467
|
+
_hoisted_16$7 = { class: "section-title" };
|
|
53461
53468
|
_hoisted_17$7 = { class: "info-grid" };
|
|
53462
53469
|
_hoisted_18$7 = { class: "info-item" };
|
|
53463
53470
|
_hoisted_19$7 = { class: "info-label" };
|
|
@@ -53489,8 +53496,8 @@ var init_connection_detail_vue_vue_type_script_setup_true_lang = __esmMin((() =>
|
|
|
53489
53496
|
_hoisted_45$5 = { class: "quick-actions" };
|
|
53490
53497
|
_hoisted_46$5 = { class: "actions-header" };
|
|
53491
53498
|
_hoisted_47$5 = { class: "actions-title" };
|
|
53492
|
-
_hoisted_48$
|
|
53493
|
-
_hoisted_49$
|
|
53499
|
+
_hoisted_48$4 = { class: "actions-grid" };
|
|
53500
|
+
_hoisted_49$4 = { class: "action-text" };
|
|
53494
53501
|
_hoisted_50$4 = { class: "action-text" };
|
|
53495
53502
|
_hoisted_51$4 = { class: "action-text" };
|
|
53496
53503
|
_hoisted_52$4 = { class: "connection-tabs" };
|
|
@@ -53768,13 +53775,13 @@ var init_connection_detail_vue_vue_type_script_setup_true_lang = __esmMin((() =>
|
|
|
53768
53775
|
}[type || ""] || "DB";
|
|
53769
53776
|
}
|
|
53770
53777
|
return (_ctx, _cache) => {
|
|
53771
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
53772
|
-
createBaseVNode("div", _hoisted_2$
|
|
53778
|
+
return openBlock(), createElementBlock("div", _hoisted_1$7, [
|
|
53779
|
+
createBaseVNode("div", _hoisted_2$7, [createBaseVNode("div", _hoisted_3$7, [createBaseVNode("div", _hoisted_4$7, [createBaseVNode("div", { class: normalizeClass(["db-logo", getDbLogoClass(__props.connection?.type)]) }, toDisplayString(getDbLogoText(__props.connection?.type)), 3)]), createBaseVNode("div", _hoisted_5$7, [createBaseVNode("h4", _hoisted_6$7, toDisplayString(__props.connection?.name), 1), createBaseVNode("div", _hoisted_7$7, [createBaseVNode("span", _hoisted_8$7, toDisplayString(getDbTypeLabel(__props.connection?.type)), 1), createBaseVNode("span", { class: normalizeClass(["connection-status", connectionStatusClass.value]) }, [_cache[14] || (_cache[14] = createBaseVNode("div", { class: "status-dot" }, null, -1)), createTextVNode(" " + toDisplayString(connectionStatusText.value), 1)], 2)])])]), createBaseVNode("div", _hoisted_9$7, [
|
|
53773
53780
|
createBaseVNode("button", {
|
|
53774
53781
|
class: "btn btn-sm btn-outline-info",
|
|
53775
53782
|
onClick: toggleDetails,
|
|
53776
53783
|
title: _ctx.$t("connection.toggleDetails")
|
|
53777
|
-
}, [createBaseVNode("i", { class: normalizeClass(["bi", isDetailsExpanded.value ? "bi-chevron-up" : "bi-chevron-down"]) }, null, 2), createTextVNode(" " + toDisplayString(_ctx.$t("connection.details")), 1)], 8, _hoisted_10$
|
|
53784
|
+
}, [createBaseVNode("i", { class: normalizeClass(["bi", isDetailsExpanded.value ? "bi-chevron-up" : "bi-chevron-down"]) }, null, 2), createTextVNode(" " + toDisplayString(_ctx.$t("connection.details")), 1)], 8, _hoisted_10$7),
|
|
53778
53785
|
createBaseVNode("button", {
|
|
53779
53786
|
class: "btn btn-sm btn-outline-primary",
|
|
53780
53787
|
onClick: testConnection
|
|
@@ -53784,7 +53791,7 @@ var init_connection_detail_vue_vue_type_script_setup_true_lang = __esmMin((() =>
|
|
|
53784
53791
|
onClick: editConnection
|
|
53785
53792
|
}, [_cache[16] || (_cache[16] = createBaseVNode("i", { class: "bi bi-pencil" }, null, -1)), createTextVNode(" " + toDisplayString(_ctx.$t("common.edit")), 1)])
|
|
53786
53793
|
])]),
|
|
53787
|
-
isDetailsExpanded.value ? (openBlock(), createElementBlock("div", _hoisted_11$
|
|
53794
|
+
isDetailsExpanded.value ? (openBlock(), createElementBlock("div", _hoisted_11$7, [createBaseVNode("div", _hoisted_12$7, [createBaseVNode("div", _hoisted_13$7, [createBaseVNode("div", _hoisted_14$7, [createBaseVNode("div", _hoisted_15$7, [createBaseVNode("h6", _hoisted_16$7, [_cache[17] || (_cache[17] = createBaseVNode("i", { class: "bi bi-info-circle" }, null, -1)), createTextVNode(" " + toDisplayString(_ctx.$t("connection.basicInfo")), 1)]), createBaseVNode("div", _hoisted_17$7, [
|
|
53788
53795
|
createBaseVNode("div", _hoisted_18$7, [createBaseVNode("label", _hoisted_19$7, toDisplayString(_ctx.$t("connection.host")), 1), createBaseVNode("div", _hoisted_20$7, toDisplayString(__props.connection?.host), 1)]),
|
|
53789
53796
|
createBaseVNode("div", _hoisted_21$7, [createBaseVNode("label", _hoisted_22$7, toDisplayString(_ctx.$t("connection.port")), 1), createBaseVNode("div", _hoisted_23$7, toDisplayString(__props.connection?.port), 1)]),
|
|
53790
53797
|
createBaseVNode("div", _hoisted_24$7, [createBaseVNode("label", _hoisted_25$6, toDisplayString(_ctx.$t("connection.username")), 1), createBaseVNode("div", _hoisted_26$6, toDisplayString(__props.connection?.username), 1)]),
|
|
@@ -53795,11 +53802,11 @@ var init_connection_detail_vue_vue_type_script_setup_true_lang = __esmMin((() =>
|
|
|
53795
53802
|
createBaseVNode("div", _hoisted_39$5, [createBaseVNode("div", _hoisted_40$5, toDisplayString(formatFileSize(connectionStats.value.totalSize || 0)), 1), createBaseVNode("div", _hoisted_41$5, toDisplayString(_ctx.$t("connection.totalSize")), 1)]),
|
|
53796
53803
|
createBaseVNode("div", _hoisted_42$5, [createBaseVNode("div", _hoisted_43$5, toDisplayString(connectionStats.value.lastConnected || _ctx.$t("common.never")), 1), createBaseVNode("div", _hoisted_44$5, toDisplayString(_ctx.$t("connection.lastConnected")), 1)])
|
|
53797
53804
|
])])])])])])) : createCommentVNode("", true),
|
|
53798
|
-
createBaseVNode("div", _hoisted_45$5, [createBaseVNode("div", _hoisted_46$5, [createBaseVNode("h6", _hoisted_47$5, [_cache[19] || (_cache[19] = createBaseVNode("i", { class: "bi bi-lightning" }, null, -1)), createTextVNode(" " + toDisplayString(_ctx.$t("connection.quickActions")), 1)])]), createBaseVNode("div", _hoisted_48$
|
|
53805
|
+
createBaseVNode("div", _hoisted_45$5, [createBaseVNode("div", _hoisted_46$5, [createBaseVNode("h6", _hoisted_47$5, [_cache[19] || (_cache[19] = createBaseVNode("i", { class: "bi bi-lightning" }, null, -1)), createTextVNode(" " + toDisplayString(_ctx.$t("connection.quickActions")), 1)])]), createBaseVNode("div", _hoisted_48$4, [
|
|
53799
53806
|
createBaseVNode("button", {
|
|
53800
53807
|
class: "action-btn",
|
|
53801
53808
|
onClick: showCreateDatabaseModal
|
|
53802
|
-
}, [_cache[20] || (_cache[20] = createBaseVNode("div", { class: "action-icon" }, [createBaseVNode("i", { class: "bi bi-plus-circle" })], -1)), createBaseVNode("div", _hoisted_49$
|
|
53809
|
+
}, [_cache[20] || (_cache[20] = createBaseVNode("div", { class: "action-icon" }, [createBaseVNode("i", { class: "bi bi-plus-circle" })], -1)), createBaseVNode("div", _hoisted_49$4, toDisplayString(_ctx.$t("connection.createDatabase")), 1)]),
|
|
53803
53810
|
createBaseVNode("button", {
|
|
53804
53811
|
class: "action-btn",
|
|
53805
53812
|
onClick: exportSchema
|
|
@@ -55184,7 +55191,7 @@ var init_database_types = __esmMin((() => {
|
|
|
55184
55191
|
}));
|
|
55185
55192
|
//#endregion
|
|
55186
55193
|
//#region src/platform/database/components/table-editor.vue?vue&type=script&setup=true&lang.ts
|
|
55187
|
-
var _hoisted_1$
|
|
55194
|
+
var _hoisted_1$6, _hoisted_2$6, _hoisted_3$6, _hoisted_4$6, _hoisted_5$6, _hoisted_6$6, _hoisted_7$6, _hoisted_8$6, _hoisted_9$6, _hoisted_10$6, _hoisted_11$6, _hoisted_12$6, _hoisted_13$6, _hoisted_14$6, _hoisted_15$6, _hoisted_16$6, _hoisted_17$6, _hoisted_18$6, _hoisted_19$6, _hoisted_20$6, _hoisted_21$6, _hoisted_22$6, _hoisted_23$6, _hoisted_24$6, _hoisted_25$5, _hoisted_26$5, _hoisted_27$5, _hoisted_28$5, _hoisted_29$5, _hoisted_30$4, _hoisted_31$4, _hoisted_32$4, _hoisted_33$4, _hoisted_34$4, _hoisted_35$4, _hoisted_36$4, _hoisted_37$4, _hoisted_38$4, _hoisted_39$4, _hoisted_40$4, _hoisted_41$4, _hoisted_42$4, _hoisted_43$4, _hoisted_44$4, _hoisted_45$4, _hoisted_46$4, _hoisted_47$4, _hoisted_48$3, _hoisted_49$3, _hoisted_50$3, _hoisted_51$3, _hoisted_52$3, table_editor_vue_vue_type_script_setup_true_lang_default;
|
|
55188
55195
|
var init_table_editor_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
55189
55196
|
init_vue_runtime_esm_bundler();
|
|
55190
55197
|
init_vue_i18n();
|
|
@@ -55192,22 +55199,22 @@ var init_table_editor_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
|
55192
55199
|
init_modal();
|
|
55193
55200
|
init_database_types$1();
|
|
55194
55201
|
init_database_types();
|
|
55195
|
-
_hoisted_1$
|
|
55196
|
-
_hoisted_2$
|
|
55197
|
-
_hoisted_3$
|
|
55198
|
-
_hoisted_4$
|
|
55199
|
-
_hoisted_5$
|
|
55200
|
-
_hoisted_6$
|
|
55201
|
-
_hoisted_7$
|
|
55202
|
-
_hoisted_8$
|
|
55203
|
-
_hoisted_9$
|
|
55204
|
-
_hoisted_10$
|
|
55205
|
-
_hoisted_11$
|
|
55206
|
-
_hoisted_12$
|
|
55207
|
-
_hoisted_13$
|
|
55208
|
-
_hoisted_14$
|
|
55209
|
-
_hoisted_15$
|
|
55210
|
-
_hoisted_16$
|
|
55202
|
+
_hoisted_1$6 = { class: "modal-content" };
|
|
55203
|
+
_hoisted_2$6 = { class: "modal-header" };
|
|
55204
|
+
_hoisted_3$6 = { class: "modal-title" };
|
|
55205
|
+
_hoisted_4$6 = { class: "modal-body" };
|
|
55206
|
+
_hoisted_5$6 = { class: "table-info-section mb-4" };
|
|
55207
|
+
_hoisted_6$6 = { class: "section-title" };
|
|
55208
|
+
_hoisted_7$6 = { class: "row" };
|
|
55209
|
+
_hoisted_8$6 = { class: "col-md-6" };
|
|
55210
|
+
_hoisted_9$6 = { class: "mb-3" };
|
|
55211
|
+
_hoisted_10$6 = { class: "form-label" };
|
|
55212
|
+
_hoisted_11$6 = ["disabled", "placeholder"];
|
|
55213
|
+
_hoisted_12$6 = { class: "col-md-6" };
|
|
55214
|
+
_hoisted_13$6 = { class: "mb-3" };
|
|
55215
|
+
_hoisted_14$6 = { class: "form-label" };
|
|
55216
|
+
_hoisted_15$6 = ["placeholder"];
|
|
55217
|
+
_hoisted_16$6 = { class: "columns-section" };
|
|
55211
55218
|
_hoisted_17$6 = { class: "section-header d-flex justify-content-between align-items-center mb-3" };
|
|
55212
55219
|
_hoisted_18$6 = { class: "section-title mb-0" };
|
|
55213
55220
|
_hoisted_19$6 = { class: "table-responsive" };
|
|
@@ -55245,8 +55252,8 @@ var init_table_editor_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
|
55245
55252
|
_hoisted_45$4 = { class: "form-check" };
|
|
55246
55253
|
_hoisted_46$4 = ["onUpdate:modelValue", "disabled"];
|
|
55247
55254
|
_hoisted_47$4 = ["onUpdate:modelValue", "placeholder"];
|
|
55248
|
-
_hoisted_48$
|
|
55249
|
-
_hoisted_49$
|
|
55255
|
+
_hoisted_48$3 = ["onClick", "disabled"];
|
|
55256
|
+
_hoisted_49$3 = { class: "sql-preview-section mt-4" };
|
|
55250
55257
|
_hoisted_50$3 = { class: "section-title" };
|
|
55251
55258
|
_hoisted_51$3 = { class: "sql-preview bg-light p-3 rounded" };
|
|
55252
55259
|
_hoisted_52$3 = { class: "modal-footer" };
|
|
@@ -55679,26 +55686,26 @@ var init_table_editor_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
|
55679
55686
|
"max-width": "none"
|
|
55680
55687
|
},
|
|
55681
55688
|
onClick: _cache[2] || (_cache[2] = withModifiers(() => {}, ["stop"]))
|
|
55682
|
-
}, [createBaseVNode("div", _hoisted_1$
|
|
55683
|
-
createBaseVNode("div", _hoisted_2$
|
|
55689
|
+
}, [createBaseVNode("div", _hoisted_1$6, [
|
|
55690
|
+
createBaseVNode("div", _hoisted_2$6, [createBaseVNode("h5", _hoisted_3$6, [_cache[3] || (_cache[3] = createBaseVNode("i", { class: "bi bi-pencil-square me-2" }, null, -1)), createTextVNode(" " + toDisplayString(__props.mode === "create" ? _ctx.$t("tableEditor.createNewTable") : _ctx.$t("tableEditor.modifyStructure")), 1)]), createBaseVNode("button", {
|
|
55684
55691
|
type: "button",
|
|
55685
55692
|
class: "btn-close",
|
|
55686
55693
|
onClick: close
|
|
55687
55694
|
})]),
|
|
55688
|
-
createBaseVNode("div", _hoisted_4$
|
|
55689
|
-
createBaseVNode("div", _hoisted_5$
|
|
55695
|
+
createBaseVNode("div", _hoisted_4$6, [
|
|
55696
|
+
createBaseVNode("div", _hoisted_5$6, [createBaseVNode("h6", _hoisted_6$6, toDisplayString(_ctx.$t("tableEditor.tableInfo")), 1), createBaseVNode("div", _hoisted_7$6, [createBaseVNode("div", _hoisted_8$6, [createBaseVNode("div", _hoisted_9$6, [createBaseVNode("label", _hoisted_10$6, toDisplayString(_ctx.$t("tableEditor.tableNameLabel")), 1), withDirectives(createBaseVNode("input", {
|
|
55690
55697
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => formData.value.tableName = $event),
|
|
55691
55698
|
type: "text",
|
|
55692
55699
|
class: "form-control",
|
|
55693
55700
|
disabled: __props.mode === "edit",
|
|
55694
55701
|
placeholder: _ctx.$t("tableEditor.tableNamePlaceholder")
|
|
55695
|
-
}, null, 8, _hoisted_11$
|
|
55702
|
+
}, null, 8, _hoisted_11$6), [[vModelText, formData.value.tableName]])])]), createBaseVNode("div", _hoisted_12$6, [createBaseVNode("div", _hoisted_13$6, [createBaseVNode("label", _hoisted_14$6, toDisplayString(_ctx.$t("tableEditor.tableCommentLabel")), 1), withDirectives(createBaseVNode("input", {
|
|
55696
55703
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => formData.value.tableComment = $event),
|
|
55697
55704
|
type: "text",
|
|
55698
55705
|
class: "form-control",
|
|
55699
55706
|
placeholder: _ctx.$t("tableEditor.tableCommentPlaceholder")
|
|
55700
|
-
}, null, 8, _hoisted_15$
|
|
55701
|
-
createBaseVNode("div", _hoisted_16$
|
|
55707
|
+
}, null, 8, _hoisted_15$6), [[vModelText, formData.value.tableComment]])])])])]),
|
|
55708
|
+
createBaseVNode("div", _hoisted_16$6, [createBaseVNode("div", _hoisted_17$6, [createBaseVNode("h6", _hoisted_18$6, toDisplayString(_ctx.$t("tableEditor.columnManagement")), 1), createBaseVNode("button", {
|
|
55702
55709
|
class: "btn btn-success btn-sm",
|
|
55703
55710
|
onClick: addColumn
|
|
55704
55711
|
}, [_cache[4] || (_cache[4] = createBaseVNode("i", { class: "bi bi-plus-lg" }, null, -1)), createTextVNode(" " + toDisplayString(_ctx.$t("tableEditor.addColumn")), 1)])]), createBaseVNode("div", _hoisted_19$6, [createBaseVNode("table", _hoisted_20$6, [createBaseVNode("thead", _hoisted_21$6, [createBaseVNode("tr", null, [
|
|
@@ -55789,10 +55796,10 @@ var init_table_editor_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
|
55789
55796
|
class: "btn btn-outline-danger btn-sm",
|
|
55790
55797
|
onClick: ($event) => removeColumn(index),
|
|
55791
55798
|
disabled: formData.value.columns.length <= 1
|
|
55792
|
-
}, [..._cache[5] || (_cache[5] = [createBaseVNode("i", { class: "bi bi-trash" }, null, -1)])], 8, _hoisted_48$
|
|
55799
|
+
}, [..._cache[5] || (_cache[5] = [createBaseVNode("i", { class: "bi bi-trash" }, null, -1)])], 8, _hoisted_48$3)])
|
|
55793
55800
|
]);
|
|
55794
55801
|
}), 128))])])])]),
|
|
55795
|
-
createBaseVNode("div", _hoisted_49$
|
|
55802
|
+
createBaseVNode("div", _hoisted_49$3, [createBaseVNode("h6", _hoisted_50$3, toDisplayString(_ctx.$t("tableEditor.sqlPreview")), 1), createBaseVNode("pre", _hoisted_51$3, toDisplayString(generateSQL()), 1)])
|
|
55796
55803
|
]),
|
|
55797
55804
|
createBaseVNode("div", _hoisted_52$3, [createBaseVNode("button", {
|
|
55798
55805
|
type: "button",
|
|
@@ -55823,29 +55830,29 @@ var init_table_editor = __esmMin((() => {
|
|
|
55823
55830
|
}));
|
|
55824
55831
|
//#endregion
|
|
55825
55832
|
//#region src/platform/database/components/db-tools.vue?vue&type=script&setup=true&lang.ts
|
|
55826
|
-
var _hoisted_1$
|
|
55833
|
+
var _hoisted_1$5, _hoisted_2$5, _hoisted_3$5, _hoisted_4$5, _hoisted_5$5, _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$5, _hoisted_18$5, _hoisted_19$5, _hoisted_20$5, _hoisted_21$5, _hoisted_22$5, _hoisted_23$5, _hoisted_24$5, _hoisted_25$4, _hoisted_26$4, _hoisted_27$4, _hoisted_28$4, _hoisted_29$4, _hoisted_30$3, _hoisted_31$3, _hoisted_32$3, _hoisted_33$3, _hoisted_34$3, _hoisted_35$3, _hoisted_36$3, _hoisted_37$3, _hoisted_38$3, _hoisted_39$3, _hoisted_40$3, _hoisted_41$3, _hoisted_42$3, _hoisted_43$3, _hoisted_44$3, _hoisted_45$3, _hoisted_46$3, _hoisted_47$3, _hoisted_48$2, _hoisted_49$2, _hoisted_50$2, _hoisted_51$2, _hoisted_52$2, _hoisted_53$2, _hoisted_54$2, _hoisted_55$2, _hoisted_56$2, _hoisted_57$2, _hoisted_58$2, _hoisted_59$2, _hoisted_60$2, _hoisted_61$2, _hoisted_62$2, _hoisted_63$2, _hoisted_64$2, _hoisted_65$2, _hoisted_66$2, _hoisted_67$2, _hoisted_68$2, _hoisted_69$2, _hoisted_70$2, _hoisted_71$2, _hoisted_72$2, _hoisted_73$2, _hoisted_74$1, _hoisted_75$1, _hoisted_76$1, _hoisted_77$1, _hoisted_78$1, _hoisted_79$1, _hoisted_80$1, _hoisted_81$1, _hoisted_82$1, _hoisted_83$1, _hoisted_84$1, _hoisted_85$1, _hoisted_86$1, _hoisted_87$1, _hoisted_88$1, _hoisted_89$1, _hoisted_90$1, _hoisted_91$1, _hoisted_92$1, _hoisted_93$1, _hoisted_94$1, _hoisted_95$1, _hoisted_96$1, _hoisted_97$1, _hoisted_98$1, _hoisted_99$1, _hoisted_100$1, _hoisted_101$1, _hoisted_102$1, _hoisted_103$1, _hoisted_104$1, _hoisted_105$1, _hoisted_106$1, _hoisted_107$1, _hoisted_108$1, db_tools_vue_vue_type_script_setup_true_lang_default;
|
|
55827
55834
|
var init_db_tools_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
55828
55835
|
init_vue_runtime_esm_bundler();
|
|
55829
55836
|
init_vue_i18n();
|
|
55830
55837
|
init_database();
|
|
55831
55838
|
init_modal();
|
|
55832
|
-
init_toast
|
|
55833
|
-
_hoisted_1$
|
|
55834
|
-
_hoisted_2$
|
|
55835
|
-
_hoisted_3$
|
|
55836
|
-
_hoisted_4$
|
|
55837
|
-
_hoisted_5$
|
|
55838
|
-
_hoisted_6$
|
|
55839
|
-
_hoisted_7$
|
|
55840
|
-
_hoisted_8$
|
|
55841
|
-
_hoisted_9$
|
|
55842
|
-
_hoisted_10$
|
|
55843
|
-
_hoisted_11$
|
|
55844
|
-
_hoisted_12$
|
|
55845
|
-
_hoisted_13$
|
|
55846
|
-
_hoisted_14$
|
|
55847
|
-
_hoisted_15$
|
|
55848
|
-
_hoisted_16$
|
|
55839
|
+
init_toast();
|
|
55840
|
+
_hoisted_1$5 = { class: "db-tools" };
|
|
55841
|
+
_hoisted_2$5 = { class: "tools-header" };
|
|
55842
|
+
_hoisted_3$5 = { class: "tools-title" };
|
|
55843
|
+
_hoisted_4$5 = { class: "tools-content" };
|
|
55844
|
+
_hoisted_5$5 = { class: "tool-section" };
|
|
55845
|
+
_hoisted_6$5 = { class: "section-title" };
|
|
55846
|
+
_hoisted_7$5 = { class: "tool-actions" };
|
|
55847
|
+
_hoisted_8$5 = { class: "tool-section" };
|
|
55848
|
+
_hoisted_9$5 = { class: "section-title" };
|
|
55849
|
+
_hoisted_10$5 = { class: "tool-actions" };
|
|
55850
|
+
_hoisted_11$5 = { class: "tool-section" };
|
|
55851
|
+
_hoisted_12$5 = { class: "section-title" };
|
|
55852
|
+
_hoisted_13$5 = { class: "tool-actions" };
|
|
55853
|
+
_hoisted_14$5 = { class: "tool-section" };
|
|
55854
|
+
_hoisted_15$5 = { class: "section-title" };
|
|
55855
|
+
_hoisted_16$5 = { class: "tool-actions" };
|
|
55849
55856
|
_hoisted_17$5 = { class: "tool-section" };
|
|
55850
55857
|
_hoisted_18$5 = { class: "section-title" };
|
|
55851
55858
|
_hoisted_19$5 = { class: "tool-actions" };
|
|
@@ -55889,8 +55896,8 @@ var init_db_tools_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
|
55889
55896
|
_hoisted_45$3 = ["value"];
|
|
55890
55897
|
_hoisted_46$3 = { class: "col-md-6" };
|
|
55891
55898
|
_hoisted_47$3 = { class: "form-label" };
|
|
55892
|
-
_hoisted_48$
|
|
55893
|
-
_hoisted_49$
|
|
55899
|
+
_hoisted_48$2 = { value: "" };
|
|
55900
|
+
_hoisted_49$2 = ["value"];
|
|
55894
55901
|
_hoisted_50$2 = { class: "col-md-12" };
|
|
55895
55902
|
_hoisted_51$2 = { class: "form-label" };
|
|
55896
55903
|
_hoisted_52$2 = {
|
|
@@ -56410,10 +56417,10 @@ var init_db_tools_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
|
56410
56417
|
addExecutionResult(t("dbTools.scheduledBackup"), "info", { message: t("dbTools.featureInDev", { feature: t("dbTools.scheduledBackup") }) });
|
|
56411
56418
|
}
|
|
56412
56419
|
return (_ctx, _cache) => {
|
|
56413
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
56414
|
-
createBaseVNode("div", _hoisted_2$
|
|
56415
|
-
createBaseVNode("div", _hoisted_4$
|
|
56416
|
-
createBaseVNode("div", _hoisted_5$
|
|
56420
|
+
return openBlock(), createElementBlock("div", _hoisted_1$5, [
|
|
56421
|
+
createBaseVNode("div", _hoisted_2$5, [createBaseVNode("h5", _hoisted_3$5, [_cache[22] || (_cache[22] = createBaseVNode("i", { class: "bi bi-tools" }, null, -1)), createTextVNode(" " + toDisplayString(_ctx.$t("dbTools.title")), 1)])]),
|
|
56422
|
+
createBaseVNode("div", _hoisted_4$5, [
|
|
56423
|
+
createBaseVNode("div", _hoisted_5$5, [createBaseVNode("h6", _hoisted_6$5, [_cache[23] || (_cache[23] = createBaseVNode("i", { class: "bi bi-shield-check" }, null, -1)), createTextVNode(" " + toDisplayString(_ctx.$t("dbTools.dataBackup")), 1)]), createBaseVNode("div", _hoisted_7$5, [
|
|
56417
56424
|
createBaseVNode("button", {
|
|
56418
56425
|
class: "btn btn-outline-primary btn-sm",
|
|
56419
56426
|
onClick: backupDatabase
|
|
@@ -56427,7 +56434,7 @@ var init_db_tools_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
|
56427
56434
|
onClick: showScheduleModal
|
|
56428
56435
|
}, [_cache[26] || (_cache[26] = createBaseVNode("i", { class: "bi bi-clock" }, null, -1)), createTextVNode(" " + toDisplayString(_ctx.$t("dbTools.scheduledBackup")), 1)])
|
|
56429
56436
|
])]),
|
|
56430
|
-
createBaseVNode("div", _hoisted_8$
|
|
56437
|
+
createBaseVNode("div", _hoisted_8$5, [createBaseVNode("h6", _hoisted_9$5, [_cache[27] || (_cache[27] = createBaseVNode("i", { class: "bi bi-people" }, null, -1)), createTextVNode(" " + toDisplayString(_ctx.$t("dbTools.userManagement")), 1)]), createBaseVNode("div", _hoisted_10$5, [
|
|
56431
56438
|
createBaseVNode("button", {
|
|
56432
56439
|
class: "btn btn-outline-success btn-sm",
|
|
56433
56440
|
onClick: showUsersList
|
|
@@ -56441,7 +56448,7 @@ var init_db_tools_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
|
56441
56448
|
onClick: showPermissionsModal
|
|
56442
56449
|
}, [_cache[30] || (_cache[30] = createBaseVNode("i", { class: "bi bi-key" }, null, -1)), createTextVNode(" " + toDisplayString(_ctx.$t("dbTools.permissionMgmt")), 1)])
|
|
56443
56450
|
])]),
|
|
56444
|
-
createBaseVNode("div", _hoisted_11$
|
|
56451
|
+
createBaseVNode("div", _hoisted_11$5, [createBaseVNode("h6", _hoisted_12$5, [_cache[31] || (_cache[31] = createBaseVNode("i", { class: "bi bi-speedometer2" }, null, -1)), createTextVNode(" " + toDisplayString(_ctx.$t("dbTools.perfMonitor")), 1)]), createBaseVNode("div", _hoisted_13$5, [
|
|
56445
56452
|
createBaseVNode("button", {
|
|
56446
56453
|
class: "btn btn-outline-info btn-sm",
|
|
56447
56454
|
onClick: showProcessList
|
|
@@ -56455,7 +56462,7 @@ var init_db_tools_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
|
56455
56462
|
onClick: showConnectionsList
|
|
56456
56463
|
}, [_cache[34] || (_cache[34] = createBaseVNode("i", { class: "bi bi-diagram-3" }, null, -1)), createTextVNode(" " + toDisplayString(_ctx.$t("dbTools.connectionCount")), 1)])
|
|
56457
56464
|
])]),
|
|
56458
|
-
createBaseVNode("div", _hoisted_14$
|
|
56465
|
+
createBaseVNode("div", _hoisted_14$5, [createBaseVNode("h6", _hoisted_15$5, [_cache[35] || (_cache[35] = createBaseVNode("i", { class: "bi bi-gear-wide-connected" }, null, -1)), createTextVNode(" " + toDisplayString(_ctx.$t("dbTools.dbOptimization")), 1)]), createBaseVNode("div", _hoisted_16$5, [
|
|
56459
56466
|
createBaseVNode("button", {
|
|
56460
56467
|
class: "btn btn-outline-success btn-sm",
|
|
56461
56468
|
onClick: optimizeDatabase
|
|
@@ -56541,11 +56548,11 @@ var init_db_tools_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
|
56541
56548
|
createBaseVNode("div", _hoisted_46$3, [createBaseVNode("label", _hoisted_47$3, toDisplayString(_ctx.$t("dbTools.selectDatabaseLabel")), 1), withDirectives(createBaseVNode("select", {
|
|
56542
56549
|
class: "form-select",
|
|
56543
56550
|
"onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => selectedDatabaseName.value = $event)
|
|
56544
|
-
}, [createBaseVNode("option", _hoisted_48$
|
|
56551
|
+
}, [createBaseVNode("option", _hoisted_48$2, toDisplayString(_ctx.$t("dbTools.selectDatabasePlaceholder")), 1), (openBlock(true), createElementBlock(Fragment, null, renderList(databases.value, (db) => {
|
|
56545
56552
|
return openBlock(), createElementBlock("option", {
|
|
56546
56553
|
key: db,
|
|
56547
56554
|
value: db
|
|
56548
|
-
}, toDisplayString(db), 9, _hoisted_49$
|
|
56555
|
+
}, toDisplayString(db), 9, _hoisted_49$2);
|
|
56549
56556
|
}), 128))], 512), [[vModelSelect, selectedDatabaseName.value]])]),
|
|
56550
56557
|
createBaseVNode("div", _hoisted_50$2, [createBaseVNode("label", _hoisted_51$2, toDisplayString(_ctx.$t("dbTools.targetTableName")), 1), withDirectives(createBaseVNode("input", {
|
|
56551
56558
|
type: "text",
|
|
@@ -56710,7 +56717,7 @@ var init_db_tools = __esmMin((() => {
|
|
|
56710
56717
|
}));
|
|
56711
56718
|
//#endregion
|
|
56712
56719
|
//#region src/platform/database/components/database-detail.vue?vue&type=script&setup=true&lang.ts
|
|
56713
|
-
var _hoisted_1$
|
|
56720
|
+
var _hoisted_1$4, _hoisted_2$4, _hoisted_3$4, _hoisted_4$4, _hoisted_5$4, _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$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$3, _hoisted_27$3, _hoisted_28$3, _hoisted_29$3, _hoisted_30$2, _hoisted_31$2, _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, _hoisted_42$2, _hoisted_43$2, _hoisted_44$2, _hoisted_45$2, _hoisted_46$2, _hoisted_47$2, _hoisted_48$1, _hoisted_49$1, _hoisted_50$1, _hoisted_51$1, _hoisted_52$1, _hoisted_53$1, _hoisted_54$1, _hoisted_55$1, _hoisted_56$1, _hoisted_57$1, _hoisted_58$1, _hoisted_59$1, _hoisted_60$1, _hoisted_61$1, _hoisted_62$1, _hoisted_63$1, _hoisted_64$1, _hoisted_65$1, _hoisted_66$1, _hoisted_67$1, _hoisted_68$1, _hoisted_69$1, _hoisted_70$1, _hoisted_71$1, _hoisted_72$1, _hoisted_73$1, _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, _hoisted_119, _hoisted_120, _hoisted_121, _hoisted_122, _hoisted_123, _hoisted_124, _hoisted_125, _hoisted_126, database_detail_vue_vue_type_script_setup_true_lang_default;
|
|
56714
56721
|
var init_database_detail_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
56715
56722
|
init_vue_runtime_esm_bundler();
|
|
56716
56723
|
init_vue_i18n();
|
|
@@ -56719,22 +56726,22 @@ var init_database_detail_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
|
56719
56726
|
init_db_tools();
|
|
56720
56727
|
init_modal();
|
|
56721
56728
|
init_database();
|
|
56722
|
-
_hoisted_1$
|
|
56723
|
-
_hoisted_2$
|
|
56724
|
-
_hoisted_3$
|
|
56725
|
-
_hoisted_4$
|
|
56726
|
-
_hoisted_5$
|
|
56727
|
-
_hoisted_6$
|
|
56728
|
-
_hoisted_7$
|
|
56729
|
-
_hoisted_8$
|
|
56730
|
-
_hoisted_9$
|
|
56731
|
-
_hoisted_10$
|
|
56732
|
-
_hoisted_11$
|
|
56733
|
-
_hoisted_12$
|
|
56734
|
-
_hoisted_13$
|
|
56735
|
-
_hoisted_14$
|
|
56736
|
-
_hoisted_15$
|
|
56737
|
-
_hoisted_16$
|
|
56729
|
+
_hoisted_1$4 = { class: "database-detail" };
|
|
56730
|
+
_hoisted_2$4 = { class: "database-header" };
|
|
56731
|
+
_hoisted_3$4 = { class: "database-header-content" };
|
|
56732
|
+
_hoisted_4$4 = { class: "database-info" };
|
|
56733
|
+
_hoisted_5$4 = { class: "database-meta" };
|
|
56734
|
+
_hoisted_6$4 = { class: "database-name" };
|
|
56735
|
+
_hoisted_7$4 = { class: "connection-info" };
|
|
56736
|
+
_hoisted_8$4 = { class: "connection-name" };
|
|
56737
|
+
_hoisted_9$4 = { class: "connection-type" };
|
|
56738
|
+
_hoisted_10$4 = { class: "database-stats" };
|
|
56739
|
+
_hoisted_11$4 = { class: "stat-item" };
|
|
56740
|
+
_hoisted_12$4 = { class: "stat-value" };
|
|
56741
|
+
_hoisted_13$4 = { class: "stat-label" };
|
|
56742
|
+
_hoisted_14$4 = { class: "stat-item" };
|
|
56743
|
+
_hoisted_15$4 = { class: "stat-value" };
|
|
56744
|
+
_hoisted_16$4 = { class: "stat-label" };
|
|
56738
56745
|
_hoisted_17$4 = { class: "database-tabs" };
|
|
56739
56746
|
_hoisted_18$4 = { class: "nav nav-tabs" };
|
|
56740
56747
|
_hoisted_19$4 = { class: "nav-item" };
|
|
@@ -56778,8 +56785,8 @@ var init_database_detail_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
|
56778
56785
|
_hoisted_45$2 = { class: "stat-label" };
|
|
56779
56786
|
_hoisted_46$2 = { class: "stat-value" };
|
|
56780
56787
|
_hoisted_47$2 = { class: "table-actions" };
|
|
56781
|
-
_hoisted_48$
|
|
56782
|
-
_hoisted_49$
|
|
56788
|
+
_hoisted_48$1 = ["onClick"];
|
|
56789
|
+
_hoisted_49$1 = {
|
|
56783
56790
|
key: 0,
|
|
56784
56791
|
class: "empty-state"
|
|
56785
56792
|
};
|
|
@@ -57151,8 +57158,8 @@ var init_database_detail_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
|
57151
57158
|
emit("execute-sql", sql);
|
|
57152
57159
|
}
|
|
57153
57160
|
return (_ctx, _cache) => {
|
|
57154
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
57155
|
-
createBaseVNode("div", _hoisted_2$
|
|
57161
|
+
return openBlock(), createElementBlock("div", _hoisted_1$4, [
|
|
57162
|
+
createBaseVNode("div", _hoisted_2$4, [createBaseVNode("div", _hoisted_3$4, [createBaseVNode("div", _hoisted_4$4, [_cache[19] || (_cache[19] = createBaseVNode("div", { class: "database-icon" }, [createBaseVNode("i", { class: "bi bi-database" })], -1)), createBaseVNode("div", _hoisted_5$4, [createBaseVNode("h4", _hoisted_6$4, toDisplayString(__props.database), 1), createBaseVNode("div", _hoisted_7$4, [createBaseVNode("span", _hoisted_8$4, toDisplayString(__props.connection?.name), 1), createBaseVNode("span", _hoisted_9$4, toDisplayString(getDbTypeLabel(__props.connection?.type)), 1)])])]), createBaseVNode("div", _hoisted_10$4, [createBaseVNode("div", _hoisted_11$4, [createBaseVNode("div", _hoisted_12$4, toDisplayString(__props.databaseInfo?.tableCount || 0), 1), createBaseVNode("div", _hoisted_13$4, toDisplayString(_ctx.$t("connection.tableCount")), 1)]), createBaseVNode("div", _hoisted_14$4, [createBaseVNode("div", _hoisted_15$4, toDisplayString(formatSize(__props.databaseInfo?.size || 0)), 1), createBaseVNode("div", _hoisted_16$4, toDisplayString(_ctx.$t("databaseDetail.size")), 1)])])])]),
|
|
57156
57163
|
createBaseVNode("div", _hoisted_17$4, [createBaseVNode("ul", _hoisted_18$4, [
|
|
57157
57164
|
createBaseVNode("li", _hoisted_19$4, [createBaseVNode("button", {
|
|
57158
57165
|
class: normalizeClass(["nav-link", { active: activeTab.value === "tables" }]),
|
|
@@ -57196,8 +57203,8 @@ var init_database_detail_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
|
57196
57203
|
}, toDisplayString(table.comment), 9, _hoisted_38$2)) : createCommentVNode("", true)])]), createBaseVNode("div", _hoisted_39$2, [createBaseVNode("div", _hoisted_40$2, [table.rowCount !== void 0 ? (openBlock(), createElementBlock("div", _hoisted_41$2, [createBaseVNode("span", _hoisted_42$2, toDisplayString(_ctx.$t("databaseDetail.rowCountLabel")), 1), createBaseVNode("span", _hoisted_43$2, toDisplayString(formatNumber(table.rowCount)), 1)])) : createCommentVNode("", true), table.dataSize !== void 0 ? (openBlock(), createElementBlock("div", _hoisted_44$2, [createBaseVNode("span", _hoisted_45$2, toDisplayString(_ctx.$t("databaseDetail.size")), 1), createBaseVNode("span", _hoisted_46$2, toDisplayString(formatSize(table.dataSize)), 1)])) : createCommentVNode("", true)]), createBaseVNode("div", _hoisted_47$2, [createBaseVNode("button", {
|
|
57197
57204
|
class: "btn btn-sm btn-outline-primary",
|
|
57198
57205
|
onClick: withModifiers(($event) => editTable(table), ["stop"])
|
|
57199
|
-
}, [..._cache[28] || (_cache[28] = [createBaseVNode("i", { class: "bi bi-pencil" }, null, -1)])], 8, _hoisted_48$
|
|
57200
|
-
}), 128))]), !tables.value || tables.value.length === 0 ? (openBlock(), createElementBlock("div", _hoisted_49$
|
|
57206
|
+
}, [..._cache[28] || (_cache[28] = [createBaseVNode("i", { class: "bi bi-pencil" }, null, -1)])], 8, _hoisted_48$1)])])], 8, _hoisted_32$2);
|
|
57207
|
+
}), 128))]), !tables.value || tables.value.length === 0 ? (openBlock(), createElementBlock("div", _hoisted_49$1, [
|
|
57201
57208
|
_cache[30] || (_cache[30] = createBaseVNode("i", { class: "bi bi-inbox" }, null, -1)),
|
|
57202
57209
|
createBaseVNode("p", null, toDisplayString(_ctx.$t("databaseDetail.noTable")), 1),
|
|
57203
57210
|
createBaseVNode("button", {
|
|
@@ -57404,7 +57411,7 @@ var init_database_detail = __esmMin((() => {
|
|
|
57404
57411
|
}));
|
|
57405
57412
|
//#endregion
|
|
57406
57413
|
//#region src/platform/database/components/data-editor.vue?vue&type=script&setup=true&lang.ts
|
|
57407
|
-
var _hoisted_1$
|
|
57414
|
+
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$3, _hoisted_18$3, _hoisted_19$3, _hoisted_20$3, _hoisted_21$3, _hoisted_22$3, _hoisted_23$3, _hoisted_24$3, _hoisted_25$2, _hoisted_26$2, _hoisted_27$2, _hoisted_28$2, _hoisted_29$2, data_editor_vue_vue_type_script_setup_true_lang_default;
|
|
57408
57415
|
var init_data_editor_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
57409
57416
|
init_vue_runtime_esm_bundler();
|
|
57410
57417
|
init_vue_i18n();
|
|
@@ -57416,39 +57423,39 @@ var init_data_editor_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
|
57416
57423
|
init_dist$6();
|
|
57417
57424
|
init_dist$1();
|
|
57418
57425
|
init_dist$7();
|
|
57419
|
-
_hoisted_1$
|
|
57420
|
-
_hoisted_2$
|
|
57421
|
-
_hoisted_3$
|
|
57426
|
+
_hoisted_1$3 = { class: "modal-dialog modal-lg" };
|
|
57427
|
+
_hoisted_2$3 = { class: "modal-content" };
|
|
57428
|
+
_hoisted_3$3 = {
|
|
57422
57429
|
class: "modal-header",
|
|
57423
57430
|
style: { "padding": "15px" }
|
|
57424
57431
|
};
|
|
57425
|
-
_hoisted_4$
|
|
57426
|
-
_hoisted_5$
|
|
57432
|
+
_hoisted_4$3 = { class: "modal-title" };
|
|
57433
|
+
_hoisted_5$3 = {
|
|
57427
57434
|
key: 0,
|
|
57428
57435
|
class: "bi bi-pencil-square"
|
|
57429
57436
|
};
|
|
57430
|
-
_hoisted_6$
|
|
57437
|
+
_hoisted_6$3 = {
|
|
57431
57438
|
key: 1,
|
|
57432
57439
|
class: "bi bi-plus-circle"
|
|
57433
57440
|
};
|
|
57434
|
-
_hoisted_7$
|
|
57435
|
-
_hoisted_8$
|
|
57436
|
-
_hoisted_9$
|
|
57437
|
-
_hoisted_10$
|
|
57438
|
-
_hoisted_11$
|
|
57441
|
+
_hoisted_7$3 = { class: "modal-body" };
|
|
57442
|
+
_hoisted_8$3 = { class: "row g-3" };
|
|
57443
|
+
_hoisted_9$3 = ["data-type"];
|
|
57444
|
+
_hoisted_10$3 = { class: "form-label" };
|
|
57445
|
+
_hoisted_11$3 = {
|
|
57439
57446
|
key: 0,
|
|
57440
57447
|
class: "text-danger"
|
|
57441
57448
|
};
|
|
57442
|
-
_hoisted_12$
|
|
57443
|
-
_hoisted_13$
|
|
57444
|
-
_hoisted_14$
|
|
57449
|
+
_hoisted_12$3 = { class: "text-muted ms-2" };
|
|
57450
|
+
_hoisted_13$3 = ["value"];
|
|
57451
|
+
_hoisted_14$3 = [
|
|
57445
57452
|
"onUpdate:modelValue",
|
|
57446
57453
|
"placeholder",
|
|
57447
57454
|
"required",
|
|
57448
57455
|
"step"
|
|
57449
57456
|
];
|
|
57450
|
-
_hoisted_15$
|
|
57451
|
-
_hoisted_16$
|
|
57457
|
+
_hoisted_15$3 = ["onUpdate:modelValue", "required"];
|
|
57458
|
+
_hoisted_16$3 = [
|
|
57452
57459
|
"onUpdate:modelValue",
|
|
57453
57460
|
"placeholder",
|
|
57454
57461
|
"required"
|
|
@@ -57745,21 +57752,21 @@ var init_data_editor_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
|
57745
57752
|
return openBlock(), createElementBlock("div", {
|
|
57746
57753
|
class: normalizeClass(["modal fade", { show: __props.visible }]),
|
|
57747
57754
|
style: normalizeStyle({ display: __props.visible ? "block" : "none" })
|
|
57748
|
-
}, [createBaseVNode("div", _hoisted_1$
|
|
57749
|
-
createBaseVNode("div", _hoisted_3$
|
|
57755
|
+
}, [createBaseVNode("div", _hoisted_1$3, [createBaseVNode("div", _hoisted_2$3, [
|
|
57756
|
+
createBaseVNode("div", _hoisted_3$3, [createBaseVNode("h5", _hoisted_4$3, [__props.isEdit ? (openBlock(), createElementBlock("i", _hoisted_5$3)) : (openBlock(), createElementBlock("i", _hoisted_6$3)), createTextVNode(" " + toDisplayString(__props.isEdit ? _ctx.$t("dataEditor.editData") : _ctx.$t("dataEditor.addData")), 1)]), createBaseVNode("button", {
|
|
57750
57757
|
type: "button",
|
|
57751
57758
|
class: "btn-close",
|
|
57752
57759
|
onClick: closeModal
|
|
57753
57760
|
})]),
|
|
57754
|
-
createBaseVNode("div", _hoisted_7$
|
|
57761
|
+
createBaseVNode("div", _hoisted_7$3, [createBaseVNode("form", { onSubmit: withModifiers(handleSubmit, ["prevent"]) }, [createBaseVNode("div", _hoisted_8$3, [(openBlock(true), createElementBlock(Fragment, null, renderList(__props.columns, (column) => {
|
|
57755
57762
|
return openBlock(), createElementBlock("div", {
|
|
57756
57763
|
key: column.name,
|
|
57757
57764
|
"data-type": column.type,
|
|
57758
57765
|
class: "col-md-6"
|
|
57759
|
-
}, [createBaseVNode("label", _hoisted_10$
|
|
57766
|
+
}, [createBaseVNode("label", _hoisted_10$3, [
|
|
57760
57767
|
createTextVNode(toDisplayString(column.name) + " ", 1),
|
|
57761
|
-
column.isPrimary ? (openBlock(), createElementBlock("span", _hoisted_11$
|
|
57762
|
-
createBaseVNode("small", _hoisted_12$
|
|
57768
|
+
column.isPrimary ? (openBlock(), createElementBlock("span", _hoisted_11$3, "*")) : createCommentVNode("", true),
|
|
57769
|
+
createBaseVNode("small", _hoisted_12$3, toDisplayString(column.type), 1)
|
|
57763
57770
|
]), column.isPrimary && column.isAutoIncrement ? (openBlock(), createElementBlock("input", {
|
|
57764
57771
|
key: 0,
|
|
57765
57772
|
type: "text",
|
|
@@ -57768,7 +57775,7 @@ var init_data_editor_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
|
57768
57775
|
value: __props.isEdit ? formData.value[column.name] : _ctx.$t("dataEditor.autoGenerate"),
|
|
57769
57776
|
disabled: "",
|
|
57770
57777
|
readonly: ""
|
|
57771
|
-
}, null, 8, _hoisted_13$
|
|
57778
|
+
}, null, 8, _hoisted_13$3)) : isNumberInput(column.type) ? withDirectives((openBlock(), createElementBlock("input", {
|
|
57772
57779
|
key: 1,
|
|
57773
57780
|
type: "number",
|
|
57774
57781
|
"data-type": "number",
|
|
@@ -57777,14 +57784,14 @@ var init_data_editor_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
|
57777
57784
|
placeholder: _ctx.$t("dataEditor.inputPlaceholder", { name: column.name }),
|
|
57778
57785
|
required: !column.nullable,
|
|
57779
57786
|
step: isDecimalInput(column.type) ? "0.01" : "1"
|
|
57780
|
-
}, null, 8, _hoisted_14$
|
|
57787
|
+
}, null, 8, _hoisted_14$3)), [[vModelText, formData.value[column.name]]]) : isDateInput(column.type) ? withDirectives((openBlock(), createElementBlock("input", {
|
|
57781
57788
|
key: 2,
|
|
57782
57789
|
type: "datetime-local",
|
|
57783
57790
|
class: "form-control",
|
|
57784
57791
|
"data-type": "date",
|
|
57785
57792
|
"onUpdate:modelValue": ($event) => formData.value[column.name] = $event,
|
|
57786
57793
|
required: !column.nullable
|
|
57787
|
-
}, null, 8, _hoisted_15$
|
|
57794
|
+
}, null, 8, _hoisted_15$3)), [[vModelText, formData.value[column.name]]]) : isTextArea(column.type) ? withDirectives((openBlock(), createElementBlock("textarea", {
|
|
57788
57795
|
key: 3,
|
|
57789
57796
|
class: "form-control",
|
|
57790
57797
|
"data-type": "textarea",
|
|
@@ -57792,7 +57799,7 @@ var init_data_editor_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
|
57792
57799
|
placeholder: _ctx.$t("dataEditor.inputPlaceholder", { name: column.name }),
|
|
57793
57800
|
required: !column.nullable,
|
|
57794
57801
|
rows: "3"
|
|
57795
|
-
}, null, 8, _hoisted_16$
|
|
57802
|
+
}, null, 8, _hoisted_16$3)), [[vModelText, formData.value[column.name]]]) : isEnumInput(column.type) ? withDirectives((openBlock(), createElementBlock("select", {
|
|
57796
57803
|
key: 4,
|
|
57797
57804
|
class: "form-select",
|
|
57798
57805
|
"data-type": "select",
|
|
@@ -57830,7 +57837,7 @@ var init_data_editor_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
|
57830
57837
|
"onUpdate:modelValue": ($event) => formData.value[column.name] = $event,
|
|
57831
57838
|
placeholder: _ctx.$t("dataEditor.inputPlaceholder", { name: column.name }),
|
|
57832
57839
|
required: !column.nullable
|
|
57833
|
-
}, null, 8, _hoisted_26$2)), [[vModelText, formData.value[column.name]]])], 8, _hoisted_9$
|
|
57840
|
+
}, null, 8, _hoisted_26$2)), [[vModelText, formData.value[column.name]]])], 8, _hoisted_9$3);
|
|
57834
57841
|
}), 128))])], 32)]),
|
|
57835
57842
|
createBaseVNode("div", _hoisted_27$2, [createBaseVNode("button", {
|
|
57836
57843
|
type: "button",
|
|
@@ -57862,40 +57869,40 @@ var init_data_editor = __esmMin((() => {
|
|
|
57862
57869
|
}));
|
|
57863
57870
|
//#endregion
|
|
57864
57871
|
//#region src/platform/database/components/table-data-grid.vue?vue&type=script&setup=true&lang.ts
|
|
57865
|
-
var _hoisted_1$
|
|
57872
|
+
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$2, _hoisted_18$2, _hoisted_19$2, _hoisted_20$2, _hoisted_21$2, _hoisted_22$2, _hoisted_23$2, _hoisted_24$2, table_data_grid_vue_vue_type_script_setup_true_lang_default;
|
|
57866
57873
|
var init_table_data_grid_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
57867
57874
|
init_vue_runtime_esm_bundler();
|
|
57868
57875
|
init_dataGrid();
|
|
57869
57876
|
init_database();
|
|
57870
|
-
_hoisted_1$
|
|
57871
|
-
_hoisted_2$
|
|
57872
|
-
_hoisted_3$
|
|
57873
|
-
_hoisted_4$
|
|
57874
|
-
_hoisted_5$
|
|
57875
|
-
_hoisted_6$
|
|
57876
|
-
_hoisted_7$
|
|
57877
|
-
_hoisted_8$
|
|
57878
|
-
_hoisted_9$
|
|
57877
|
+
_hoisted_1$2 = { class: "table-data-grid" };
|
|
57878
|
+
_hoisted_2$2 = { class: "data-grid-wrapper" };
|
|
57879
|
+
_hoisted_3$2 = { class: "btn-group btn-group-sm" };
|
|
57880
|
+
_hoisted_4$2 = ["onClick"];
|
|
57881
|
+
_hoisted_5$2 = ["onClick"];
|
|
57882
|
+
_hoisted_6$2 = ["onClick", "title"];
|
|
57883
|
+
_hoisted_7$2 = { class: "header-main" };
|
|
57884
|
+
_hoisted_8$2 = { class: "column-name" };
|
|
57885
|
+
_hoisted_9$2 = {
|
|
57879
57886
|
key: 0,
|
|
57880
57887
|
class: "column-key text-primary ms-1",
|
|
57881
57888
|
title: "主键"
|
|
57882
57889
|
};
|
|
57883
|
-
_hoisted_10$
|
|
57884
|
-
_hoisted_11$
|
|
57890
|
+
_hoisted_10$2 = { class: "sort-icon ms-1" };
|
|
57891
|
+
_hoisted_11$2 = {
|
|
57885
57892
|
key: 0,
|
|
57886
57893
|
class: "bi bi-caret-up-fill"
|
|
57887
57894
|
};
|
|
57888
|
-
_hoisted_12$
|
|
57895
|
+
_hoisted_12$2 = {
|
|
57889
57896
|
key: 1,
|
|
57890
57897
|
class: "bi bi-caret-down-fill"
|
|
57891
57898
|
};
|
|
57892
|
-
_hoisted_13$
|
|
57899
|
+
_hoisted_13$2 = {
|
|
57893
57900
|
key: 2,
|
|
57894
57901
|
class: "bi bi-caret-up text-muted opacity-50"
|
|
57895
57902
|
};
|
|
57896
|
-
_hoisted_14$
|
|
57897
|
-
_hoisted_15$
|
|
57898
|
-
_hoisted_16$
|
|
57903
|
+
_hoisted_14$2 = { class: "header-sub" };
|
|
57904
|
+
_hoisted_15$2 = { class: "text-muted column-type" };
|
|
57905
|
+
_hoisted_16$2 = {
|
|
57899
57906
|
key: 0,
|
|
57900
57907
|
class: "text-muted column-comment ms-1"
|
|
57901
57908
|
};
|
|
@@ -58035,7 +58042,7 @@ var init_table_data_grid_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
|
58035
58042
|
loadData();
|
|
58036
58043
|
});
|
|
58037
58044
|
return (_ctx, _cache) => {
|
|
58038
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
58045
|
+
return openBlock(), createElementBlock("div", _hoisted_1$2, [createBaseVNode("div", _hoisted_2$2, [createVNode(dataGrid_default, {
|
|
58039
58046
|
data: tableData.value,
|
|
58040
58047
|
columns: gridColumns.value,
|
|
58041
58048
|
"is-loading": loading.value,
|
|
@@ -58046,13 +58053,13 @@ var init_table_data_grid_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
|
58046
58053
|
onPageChanged: handlePageChange,
|
|
58047
58054
|
onSortChanged: handleSortChange
|
|
58048
58055
|
}, createSlots({
|
|
58049
|
-
actions: withCtx(({ row }) => [createBaseVNode("div", _hoisted_3$
|
|
58056
|
+
actions: withCtx(({ row }) => [createBaseVNode("div", _hoisted_3$2, [createBaseVNode("button", {
|
|
58050
58057
|
class: "btn btn-outline-primary btn-sm",
|
|
58051
58058
|
onClick: withModifiers(($event) => emits("edit-row", row), ["stop"])
|
|
58052
|
-
}, [..._cache[1] || (_cache[1] = [createBaseVNode("i", { class: "bi bi-pencil" }, null, -1)])], 8, _hoisted_4$
|
|
58059
|
+
}, [..._cache[1] || (_cache[1] = [createBaseVNode("i", { class: "bi bi-pencil" }, null, -1)])], 8, _hoisted_4$2), createBaseVNode("button", {
|
|
58053
58060
|
class: "btn btn-outline-danger btn-sm",
|
|
58054
58061
|
onClick: withModifiers(($event) => emits("delete-row", row), ["stop"])
|
|
58055
|
-
}, [..._cache[2] || (_cache[2] = [createBaseVNode("i", { class: "bi bi-trash" }, null, -1)])], 8, _hoisted_5$
|
|
58062
|
+
}, [..._cache[2] || (_cache[2] = [createBaseVNode("i", { class: "bi bi-trash" }, null, -1)])], 8, _hoisted_5$2)])]),
|
|
58056
58063
|
_: 2
|
|
58057
58064
|
}, [
|
|
58058
58065
|
renderList(props.columns, (column) => {
|
|
@@ -58065,11 +58072,11 @@ var init_table_data_grid_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
|
58065
58072
|
order: sortField.value === column.name ? sortOrder.value === "ASC" ? "DESC" : sortOrder.value === "DESC" ? "" : "ASC" : "ASC"
|
|
58066
58073
|
}),
|
|
58067
58074
|
title: column.comment || column.name
|
|
58068
|
-
}, [createBaseVNode("div", _hoisted_7$
|
|
58069
|
-
createBaseVNode("span", _hoisted_8$
|
|
58070
|
-
column.isPrimary ? (openBlock(), createElementBlock("span", _hoisted_9$
|
|
58071
|
-
createBaseVNode("span", _hoisted_10$
|
|
58072
|
-
]), createBaseVNode("div", _hoisted_14$
|
|
58075
|
+
}, [createBaseVNode("div", _hoisted_7$2, [
|
|
58076
|
+
createBaseVNode("span", _hoisted_8$2, toDisplayString(column.name), 1),
|
|
58077
|
+
column.isPrimary ? (openBlock(), createElementBlock("span", _hoisted_9$2, [..._cache[3] || (_cache[3] = [createBaseVNode("i", { class: "bi bi-key-fill" }, null, -1)])])) : createCommentVNode("", true),
|
|
58078
|
+
createBaseVNode("span", _hoisted_10$2, [sortField.value === column.name && sortOrder.value === "ASC" ? (openBlock(), createElementBlock("i", _hoisted_11$2)) : sortField.value === column.name && sortOrder.value === "DESC" ? (openBlock(), createElementBlock("i", _hoisted_12$2)) : (openBlock(), createElementBlock("i", _hoisted_13$2))])
|
|
58079
|
+
]), createBaseVNode("div", _hoisted_14$2, [createBaseVNode("small", _hoisted_15$2, toDisplayString(column.type), 1), column.comment ? (openBlock(), createElementBlock("small", _hoisted_16$2, "- " + toDisplayString(column.comment), 1)) : createCommentVNode("", true)])], 8, _hoisted_6$2)])
|
|
58073
58080
|
};
|
|
58074
58081
|
}),
|
|
58075
58082
|
renderList(props.columns, (column) => {
|
|
@@ -58127,7 +58134,7 @@ var init_table_data_grid = __esmMin((() => {
|
|
|
58127
58134
|
}));
|
|
58128
58135
|
//#endregion
|
|
58129
58136
|
//#region src/platform/database/components/table-detail.vue?vue&type=script&setup=true&lang.ts
|
|
58130
|
-
var _hoisted_1$
|
|
58137
|
+
var _hoisted_1$1, _hoisted_2$1, _hoisted_3$1, _hoisted_4$1, _hoisted_5$1, _hoisted_6$1, _hoisted_7$1, _hoisted_8$1, _hoisted_9$1, _hoisted_10$1, _hoisted_11$1, _hoisted_12$1, _hoisted_13$1, _hoisted_14$1, _hoisted_15$1, _hoisted_16$1, _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, _hoisted_26$1, _hoisted_27$1, _hoisted_28$1, _hoisted_29$1, _hoisted_30$1, _hoisted_31$1, _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, _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, table_detail_vue_vue_type_script_setup_true_lang_default;
|
|
58131
58138
|
var init_table_detail_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
58132
58139
|
init_vue_runtime_esm_bundler();
|
|
58133
58140
|
init_vue_i18n();
|
|
@@ -58139,25 +58146,25 @@ var init_table_detail_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
|
58139
58146
|
init_export();
|
|
58140
58147
|
init_modal();
|
|
58141
58148
|
init_database_types();
|
|
58142
|
-
_hoisted_1$
|
|
58143
|
-
_hoisted_2$
|
|
58144
|
-
_hoisted_3$
|
|
58145
|
-
_hoisted_4$
|
|
58146
|
-
_hoisted_5$
|
|
58147
|
-
_hoisted_6$
|
|
58148
|
-
_hoisted_7$
|
|
58149
|
-
_hoisted_8$
|
|
58150
|
-
_hoisted_9$
|
|
58151
|
-
_hoisted_10$
|
|
58152
|
-
_hoisted_11$
|
|
58153
|
-
_hoisted_12$
|
|
58149
|
+
_hoisted_1$1 = { class: "table-detail" };
|
|
58150
|
+
_hoisted_2$1 = { class: "table-header" };
|
|
58151
|
+
_hoisted_3$1 = { class: "table-header-content" };
|
|
58152
|
+
_hoisted_4$1 = { class: "table-info" };
|
|
58153
|
+
_hoisted_5$1 = { class: "table-meta" };
|
|
58154
|
+
_hoisted_6$1 = { class: "table-name" };
|
|
58155
|
+
_hoisted_7$1 = { class: "table-breadcrumb" };
|
|
58156
|
+
_hoisted_8$1 = { class: "connection" };
|
|
58157
|
+
_hoisted_9$1 = { class: "database" };
|
|
58158
|
+
_hoisted_10$1 = { class: "table" };
|
|
58159
|
+
_hoisted_11$1 = { class: "table-stats" };
|
|
58160
|
+
_hoisted_12$1 = {
|
|
58154
58161
|
key: 0,
|
|
58155
58162
|
class: "stat-item"
|
|
58156
58163
|
};
|
|
58157
|
-
_hoisted_13$
|
|
58158
|
-
_hoisted_14$
|
|
58159
|
-
_hoisted_15$
|
|
58160
|
-
_hoisted_16$
|
|
58164
|
+
_hoisted_13$1 = { class: "stat-value" };
|
|
58165
|
+
_hoisted_14$1 = { class: "stat-label" };
|
|
58166
|
+
_hoisted_15$1 = { class: "stat-item" };
|
|
58167
|
+
_hoisted_16$1 = { class: "stat-value" };
|
|
58161
58168
|
_hoisted_17$1 = { class: "stat-label" };
|
|
58162
58169
|
_hoisted_18$1 = { class: "stat-item" };
|
|
58163
58170
|
_hoisted_19$1 = { class: "stat-value" };
|
|
@@ -58201,8 +58208,8 @@ var init_table_detail_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
|
58201
58208
|
key: 0,
|
|
58202
58209
|
class: "badge bg-primary"
|
|
58203
58210
|
};
|
|
58204
|
-
_hoisted_48
|
|
58205
|
-
_hoisted_49
|
|
58211
|
+
_hoisted_48 = { key: 1 };
|
|
58212
|
+
_hoisted_49 = {
|
|
58206
58213
|
key: 0,
|
|
58207
58214
|
class: "badge bg-success"
|
|
58208
58215
|
};
|
|
@@ -58574,16 +58581,16 @@ var init_table_detail_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
|
58574
58581
|
}
|
|
58575
58582
|
}
|
|
58576
58583
|
return (_ctx, _cache) => {
|
|
58577
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
58578
|
-
createBaseVNode("div", _hoisted_2$
|
|
58579
|
-
createBaseVNode("span", _hoisted_8$
|
|
58584
|
+
return openBlock(), createElementBlock("div", _hoisted_1$1, [
|
|
58585
|
+
createBaseVNode("div", _hoisted_2$1, [createBaseVNode("div", _hoisted_3$1, [createBaseVNode("div", _hoisted_4$1, [_cache[13] || (_cache[13] = createBaseVNode("div", { class: "table-icon" }, [createBaseVNode("i", { class: "bi bi-table" })], -1)), createBaseVNode("div", _hoisted_5$1, [createBaseVNode("h4", _hoisted_6$1, toDisplayString(__props.table?.name), 1), createBaseVNode("div", _hoisted_7$1, [
|
|
58586
|
+
createBaseVNode("span", _hoisted_8$1, toDisplayString(__props.connection?.name), 1),
|
|
58580
58587
|
_cache[11] || (_cache[11] = createBaseVNode("i", { class: "bi bi-chevron-right" }, null, -1)),
|
|
58581
|
-
createBaseVNode("span", _hoisted_9$
|
|
58588
|
+
createBaseVNode("span", _hoisted_9$1, toDisplayString(__props.database), 1),
|
|
58582
58589
|
_cache[12] || (_cache[12] = createBaseVNode("i", { class: "bi bi-chevron-right" }, null, -1)),
|
|
58583
|
-
createBaseVNode("span", _hoisted_10$
|
|
58584
|
-
])])]), createBaseVNode("div", _hoisted_11$
|
|
58585
|
-
__props.table?.rowCount !== void 0 ? (openBlock(), createElementBlock("div", _hoisted_12$
|
|
58586
|
-
createBaseVNode("div", _hoisted_15$
|
|
58590
|
+
createBaseVNode("span", _hoisted_10$1, toDisplayString(__props.table?.name), 1)
|
|
58591
|
+
])])]), createBaseVNode("div", _hoisted_11$1, [
|
|
58592
|
+
__props.table?.rowCount !== void 0 ? (openBlock(), createElementBlock("div", _hoisted_12$1, [createBaseVNode("div", _hoisted_13$1, toDisplayString(formatNumber(__props.table?.rowCount)), 1), createBaseVNode("div", _hoisted_14$1, toDisplayString(_ctx.$t("tableDetail.rowData")), 1)])) : createCommentVNode("", true),
|
|
58593
|
+
createBaseVNode("div", _hoisted_15$1, [createBaseVNode("div", _hoisted_16$1, toDisplayString(__props.tableStructure?.columns?.length || 0), 1), createBaseVNode("div", _hoisted_17$1, toDisplayString(_ctx.$t("common.columns")), 1)]),
|
|
58587
58594
|
createBaseVNode("div", _hoisted_18$1, [createBaseVNode("div", _hoisted_19$1, toDisplayString(__props.tableStructure?.indexes?.length || 0), 1), createBaseVNode("div", _hoisted_20$1, toDisplayString(_ctx.$t("database.indexes")), 1)]),
|
|
58588
58595
|
__props.table?.dataSize !== void 0 ? (openBlock(), createElementBlock("div", _hoisted_21$1, [createBaseVNode("div", _hoisted_22$1, toDisplayString(formatSize(__props.table?.dataSize)), 1), createBaseVNode("div", _hoisted_23$1, toDisplayString(_ctx.$t("databaseDetail.size")), 1)])) : createCommentVNode("", true)
|
|
58589
58596
|
])])]),
|
|
@@ -58693,8 +58700,8 @@ var init_table_detail_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
|
58693
58700
|
createBaseVNode("td", null, [createBaseVNode("code", null, toDisplayString(column.type), 1)]),
|
|
58694
58701
|
createBaseVNode("td", null, [createBaseVNode("span", { class: normalizeClass(column.nullable ? "text-warning" : "text-success") }, [createBaseVNode("i", { class: normalizeClass(column.nullable ? "bi bi-unlock" : "bi bi-lock-fill") }, null, 2), createTextVNode(" " + toDisplayString(column.nullable ? "YES" : "NO"), 1)], 2)]),
|
|
58695
58702
|
createBaseVNode("td", null, toDisplayString(column.defaultValue || "-"), 1),
|
|
58696
|
-
createBaseVNode("td", null, [column.isPrimary ? (openBlock(), createElementBlock("span", _hoisted_47$1, [_cache[33] || (_cache[33] = createBaseVNode("i", { class: "bi bi-key-fill" }, null, -1)), createTextVNode(" " + toDisplayString(_ctx.$t("tableDetail.primaryKeyHeader")), 1)])) : (openBlock(), createElementBlock("span", _hoisted_48
|
|
58697
|
-
createBaseVNode("td", null, [column.isAutoIncrement ? (openBlock(), createElementBlock("span", _hoisted_49
|
|
58703
|
+
createBaseVNode("td", null, [column.isPrimary ? (openBlock(), createElementBlock("span", _hoisted_47$1, [_cache[33] || (_cache[33] = createBaseVNode("i", { class: "bi bi-key-fill" }, null, -1)), createTextVNode(" " + toDisplayString(_ctx.$t("tableDetail.primaryKeyHeader")), 1)])) : (openBlock(), createElementBlock("span", _hoisted_48, "-"))]),
|
|
58704
|
+
createBaseVNode("td", null, [column.isAutoIncrement ? (openBlock(), createElementBlock("span", _hoisted_49, [_cache[34] || (_cache[34] = createBaseVNode("i", { class: "bi bi-arrow-up-circle" }, null, -1)), createTextVNode(" " + toDisplayString(_ctx.$t("tableDetail.autoIncHeader")), 1)])) : (openBlock(), createElementBlock("span", _hoisted_50, "-"))]),
|
|
58698
58705
|
createBaseVNode("td", null, toDisplayString(column.comment || "-"), 1),
|
|
58699
58706
|
createBaseVNode("td", null, [createBaseVNode("div", _hoisted_51, [createBaseVNode("button", {
|
|
58700
58707
|
class: "btn btn-outline-primary btn-sm",
|
|
@@ -58808,123 +58815,18 @@ var init_table_detail = __esmMin((() => {
|
|
|
58808
58815
|
table_detail_default = /*#__PURE__*/ _plugin_vue_export_helper_default(table_detail_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-7e9c9695"]]);
|
|
58809
58816
|
}));
|
|
58810
58817
|
//#endregion
|
|
58811
|
-
//#region src/platform/database/components/about.vue?vue&type=script&setup=true&lang.ts
|
|
58812
|
-
var _hoisted_1$1, _hoisted_2$1, _hoisted_3$1, _hoisted_4$1, _hoisted_5$1, _hoisted_6$1, _hoisted_7$1, _hoisted_8$1, _hoisted_9$1, _hoisted_10$1, _hoisted_11$1, _hoisted_12$1, _hoisted_13$1, _hoisted_14$1, _hoisted_15$1, _hoisted_16$1, about_vue_vue_type_script_setup_true_lang_default;
|
|
58813
|
-
var init_about_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
58814
|
-
init_vue_runtime_esm_bundler();
|
|
58815
|
-
init_vue_i18n();
|
|
58816
|
-
_hoisted_1$1 = { class: "about-page" };
|
|
58817
|
-
_hoisted_2$1 = { class: "about-header" };
|
|
58818
|
-
_hoisted_3$1 = { class: "about-title" };
|
|
58819
|
-
_hoisted_4$1 = { class: "about-content" };
|
|
58820
|
-
_hoisted_5$1 = { class: "about-section" };
|
|
58821
|
-
_hoisted_6$1 = { class: "about-section" };
|
|
58822
|
-
_hoisted_7$1 = { class: "about-links" };
|
|
58823
|
-
_hoisted_8$1 = {
|
|
58824
|
-
href: "https://surl.fit/tools/tools/fdb2",
|
|
58825
|
-
target: "_blank",
|
|
58826
|
-
class: "about-link"
|
|
58827
|
-
};
|
|
58828
|
-
_hoisted_9$1 = {
|
|
58829
|
-
href: "https://github.com/fefeding/fdb2/",
|
|
58830
|
-
target: "_blank",
|
|
58831
|
-
class: "about-link"
|
|
58832
|
-
};
|
|
58833
|
-
_hoisted_10$1 = { class: "about-section" };
|
|
58834
|
-
_hoisted_11$1 = { class: "feature-list" };
|
|
58835
|
-
_hoisted_12$1 = { class: "about-section" };
|
|
58836
|
-
_hoisted_13$1 = { class: "database-types" };
|
|
58837
|
-
_hoisted_14$1 = { class: "db-name" };
|
|
58838
|
-
_hoisted_15$1 = { class: "db-port" };
|
|
58839
|
-
_hoisted_16$1 = { class: "about-section" };
|
|
58840
|
-
about_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComponent({
|
|
58841
|
-
__name: "about",
|
|
58842
|
-
setup(__props) {
|
|
58843
|
-
const { t } = useI18n();
|
|
58844
|
-
const databaseTypes = [
|
|
58845
|
-
{
|
|
58846
|
-
name: "MySQL",
|
|
58847
|
-
port: "3306"
|
|
58848
|
-
},
|
|
58849
|
-
{
|
|
58850
|
-
name: "PostgreSQL",
|
|
58851
|
-
port: "5432"
|
|
58852
|
-
},
|
|
58853
|
-
{
|
|
58854
|
-
name: "SQLite",
|
|
58855
|
-
port: "-"
|
|
58856
|
-
},
|
|
58857
|
-
{
|
|
58858
|
-
name: "SQL Server",
|
|
58859
|
-
port: "1433"
|
|
58860
|
-
},
|
|
58861
|
-
{
|
|
58862
|
-
name: "Oracle",
|
|
58863
|
-
port: "1521"
|
|
58864
|
-
},
|
|
58865
|
-
{
|
|
58866
|
-
name: "CockroachDB",
|
|
58867
|
-
port: "26257"
|
|
58868
|
-
},
|
|
58869
|
-
{
|
|
58870
|
-
name: "MongoDB",
|
|
58871
|
-
port: "27017"
|
|
58872
|
-
},
|
|
58873
|
-
{
|
|
58874
|
-
name: "SAP HANA",
|
|
58875
|
-
port: "39013"
|
|
58876
|
-
}
|
|
58877
|
-
];
|
|
58878
|
-
return (_ctx, _cache) => {
|
|
58879
|
-
return openBlock(), createElementBlock("div", _hoisted_1$1, [createBaseVNode("div", _hoisted_2$1, [_cache[1] || (_cache[1] = createBaseVNode("div", { class: "about-logo" }, [createBaseVNode("i", { class: "bi bi-database" })], -1)), createBaseVNode("div", _hoisted_3$1, [_cache[0] || (_cache[0] = createBaseVNode("h2", null, "fdb2", -1)), createBaseVNode("p", null, toDisplayString(_ctx.$t("aboutPage.subtitle")), 1)])]), createBaseVNode("div", _hoisted_4$1, [
|
|
58880
|
-
createBaseVNode("section", _hoisted_5$1, [createBaseVNode("h3", null, toDisplayString(_ctx.$t("aboutPage.aboutTitle")), 1), createBaseVNode("p", null, toDisplayString(_ctx.$t("aboutPage.aboutDesc")), 1)]),
|
|
58881
|
-
createBaseVNode("section", _hoisted_6$1, [createBaseVNode("h3", null, toDisplayString(_ctx.$t("aboutPage.getMoreInfo")), 1), createBaseVNode("div", _hoisted_7$1, [createBaseVNode("a", _hoisted_8$1, [_cache[2] || (_cache[2] = createBaseVNode("i", { class: "bi bi-globe" }, null, -1)), createBaseVNode("span", null, toDisplayString(_ctx.$t("aboutPage.officialWebsite")), 1)]), createBaseVNode("a", _hoisted_9$1, [_cache[3] || (_cache[3] = createBaseVNode("i", { class: "bi bi-github" }, null, -1)), createBaseVNode("span", null, toDisplayString(_ctx.$t("aboutPage.githubRepo")), 1)])])]),
|
|
58882
|
-
createBaseVNode("section", _hoisted_10$1, [createBaseVNode("h3", null, toDisplayString(_ctx.$t("aboutPage.coreAdvantages")), 1), createBaseVNode("ul", _hoisted_11$1, [
|
|
58883
|
-
createBaseVNode("li", null, [_cache[4] || (_cache[4] = createBaseVNode("i", { class: "bi bi-check-circle" }, null, -1)), createTextVNode(" " + toDisplayString(_ctx.$t("aboutPage.advZeroConfig")), 1)]),
|
|
58884
|
-
createBaseVNode("li", null, [_cache[5] || (_cache[5] = createBaseVNode("i", { class: "bi bi-check-circle" }, null, -1)), createTextVNode(" " + toDisplayString(_ctx.$t("aboutPage.advCrossPlatform")), 1)]),
|
|
58885
|
-
createBaseVNode("li", null, [_cache[6] || (_cache[6] = createBaseVNode("i", { class: "bi bi-check-circle" }, null, -1)), createTextVNode(" " + toDisplayString(_ctx.$t("aboutPage.advLightweight")), 1)]),
|
|
58886
|
-
createBaseVNode("li", null, [_cache[7] || (_cache[7] = createBaseVNode("i", { class: "bi bi-check-circle" }, null, -1)), createTextVNode(" " + toDisplayString(_ctx.$t("aboutPage.advLocal")), 1)]),
|
|
58887
|
-
createBaseVNode("li", null, [_cache[8] || (_cache[8] = createBaseVNode("i", { class: "bi bi-check-circle" }, null, -1)), createTextVNode(" " + toDisplayString(_ctx.$t("aboutPage.advOffline")), 1)])
|
|
58888
|
-
])]),
|
|
58889
|
-
createBaseVNode("section", _hoisted_12$1, [createBaseVNode("h3", null, toDisplayString(_ctx.$t("aboutPage.supportedDbTypes")), 1), createBaseVNode("div", _hoisted_13$1, [(openBlock(), createElementBlock(Fragment, null, renderList(databaseTypes, (db) => {
|
|
58890
|
-
return createBaseVNode("div", {
|
|
58891
|
-
class: "db-type",
|
|
58892
|
-
key: db.name
|
|
58893
|
-
}, [createBaseVNode("span", _hoisted_14$1, toDisplayString(db.name), 1), createBaseVNode("span", _hoisted_15$1, toDisplayString(db.port), 1)]);
|
|
58894
|
-
}), 64))])]),
|
|
58895
|
-
createBaseVNode("section", _hoisted_16$1, [createBaseVNode("h3", null, toDisplayString(_ctx.$t("aboutPage.license")), 1), createBaseVNode("p", null, toDisplayString(_ctx.$t("aboutPage.licenseDesc")), 1)])
|
|
58896
|
-
])]);
|
|
58897
|
-
};
|
|
58898
|
-
}
|
|
58899
|
-
});
|
|
58900
|
-
}));
|
|
58901
|
-
//#endregion
|
|
58902
|
-
//#region src/platform/database/components/about.vue?vue&type=style&index=0&scoped=9b3e61a1&lang.css
|
|
58903
|
-
var init_about_vue_vue_type_style_index_0_scoped_9b3e61a1_lang = __esmMin((() => {}));
|
|
58904
|
-
//#endregion
|
|
58905
|
-
//#region src/platform/database/components/about.vue
|
|
58906
|
-
var about_default;
|
|
58907
|
-
var init_about = __esmMin((() => {
|
|
58908
|
-
init_about_vue_vue_type_script_setup_true_lang();
|
|
58909
|
-
init_about_vue_vue_type_script_setup_true_lang();
|
|
58910
|
-
init_about_vue_vue_type_style_index_0_scoped_9b3e61a1_lang();
|
|
58911
|
-
init__plugin_vue_export_helper();
|
|
58912
|
-
about_default = /*#__PURE__*/ _plugin_vue_export_helper_default(about_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-9b3e61a1"]]);
|
|
58913
|
-
}));
|
|
58914
|
-
//#endregion
|
|
58915
58818
|
//#region src/platform/database/explorer.vue?vue&type=script&setup=true&lang.ts
|
|
58916
|
-
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,
|
|
58819
|
+
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, explorer_vue_vue_type_script_setup_true_lang_default;
|
|
58917
58820
|
var init_explorer_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
58918
58821
|
init_vue_runtime_esm_bundler();
|
|
58919
58822
|
init_vue_router();
|
|
58920
58823
|
init_database();
|
|
58921
58824
|
init_connection_editor();
|
|
58922
|
-
init_toast();
|
|
58825
|
+
init_toast$1();
|
|
58923
58826
|
init_loading();
|
|
58924
58827
|
init_connection_detail();
|
|
58925
58828
|
init_database_detail();
|
|
58926
58829
|
init_table_detail();
|
|
58927
|
-
init_about();
|
|
58928
58830
|
init_modal();
|
|
58929
58831
|
_hoisted_1 = { class: "database-explorer" };
|
|
58930
58832
|
_hoisted_2 = { class: "explorer-layout" };
|
|
@@ -58988,14 +58890,12 @@ var init_explorer_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
|
58988
58890
|
class: "empty-state"
|
|
58989
58891
|
};
|
|
58990
58892
|
_hoisted_44 = { class: "empty-text" };
|
|
58991
|
-
_hoisted_45 = { class: "
|
|
58992
|
-
_hoisted_46 = {
|
|
58993
|
-
|
|
58994
|
-
_hoisted_48 = {
|
|
58995
|
-
key: 4,
|
|
58893
|
+
_hoisted_45 = { class: "explorer-main" };
|
|
58894
|
+
_hoisted_46 = {
|
|
58895
|
+
key: 3,
|
|
58996
58896
|
class: "default-state"
|
|
58997
58897
|
};
|
|
58998
|
-
|
|
58898
|
+
_hoisted_47 = { class: "default-content" };
|
|
58999
58899
|
explorer_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComponent({
|
|
59000
58900
|
__name: "explorer",
|
|
59001
58901
|
setup(__props) {
|
|
@@ -59030,7 +58930,6 @@ var init_explorer_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
|
59030
58930
|
const loadingMessage = ref("加载中...");
|
|
59031
58931
|
const connectionEditorRef = ref();
|
|
59032
58932
|
const toastRef = ref();
|
|
59033
|
-
const showAbout = ref(false);
|
|
59034
58933
|
const databaseInfo = computed(() => {
|
|
59035
58934
|
if (!selectedConnection.value || !selectedDatabase.value) return null;
|
|
59036
58935
|
return databaseInfoCache.value.get(`${selectedConnection.value.id}-${selectedDatabase.value}`);
|
|
@@ -59561,9 +59460,6 @@ var init_explorer_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
|
59561
59460
|
function showToast(title, message, type = "success") {
|
|
59562
59461
|
toastRef.value?.addToast(title, message, type);
|
|
59563
59462
|
}
|
|
59564
|
-
function showAboutPage() {
|
|
59565
|
-
showAbout.value = true;
|
|
59566
|
-
}
|
|
59567
59463
|
return (_ctx, _cache) => {
|
|
59568
59464
|
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
59569
59465
|
createBaseVNode("div", _hoisted_2, [createBaseVNode("div", _hoisted_3, [createBaseVNode("div", _hoisted_4, [createBaseVNode("h5", _hoisted_5, [_cache[0] || (_cache[0] = createBaseVNode("i", { class: "bi bi-diagram-3" }, null, -1)), createTextVNode(" " + toDisplayString(_ctx.$t("explorer.title")), 1)]), createBaseVNode("div", _hoisted_6, [createBaseVNode("button", {
|
|
@@ -59574,99 +59470,92 @@ var init_explorer_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
|
59574
59470
|
class: "btn btn-sm btn-outline-success",
|
|
59575
59471
|
onClick: showAddConnectionModal,
|
|
59576
59472
|
title: _ctx.$t("explorer.addConnection")
|
|
59577
|
-
}, [..._cache[2] || (_cache[2] = [createBaseVNode("i", { class: "bi bi-plus" }, null, -1)])], 8, _hoisted_8)])]), createBaseVNode("div", _hoisted_9, [
|
|
59578
|
-
|
|
59473
|
+
}, [..._cache[2] || (_cache[2] = [createBaseVNode("i", { class: "bi bi-plus" }, null, -1)])], 8, _hoisted_8)])]), createBaseVNode("div", _hoisted_9, [createBaseVNode("div", _hoisted_10, [(openBlock(true), createElementBlock(Fragment, null, renderList(connections.value, (connection) => {
|
|
59474
|
+
return openBlock(), createElementBlock("div", {
|
|
59475
|
+
key: connection.id,
|
|
59476
|
+
class: normalizeClass(["tree-node connection-node", { "selected": selectedConnection.value?.id === connection.id && !selectedDatabase.value && !selectedTable.value }])
|
|
59477
|
+
}, [createBaseVNode("div", _hoisted_11, [
|
|
59478
|
+
createBaseVNode("div", {
|
|
59479
|
+
class: "node-expand",
|
|
59480
|
+
onClick: ($event) => toggleConnection(connection)
|
|
59481
|
+
}, [createBaseVNode("i", { class: normalizeClass(["bi bi-chevron-right", { "expanded": expandedConnections.value.has(connection.id) }]) }, null, 2)], 8, _hoisted_12),
|
|
59482
|
+
createBaseVNode("div", {
|
|
59483
|
+
class: "node-main",
|
|
59484
|
+
onClick: ($event) => selectConnection(connection)
|
|
59485
|
+
}, [createBaseVNode("div", _hoisted_14, [createBaseVNode("div", { class: normalizeClass(["db-logo", getDbLogoClass(connection.type)]) }, toDisplayString(getDbLogoText(connection.type)), 3)]), createBaseVNode("div", _hoisted_15, [createBaseVNode("span", _hoisted_16, toDisplayString(connection.name), 1), createBaseVNode("span", _hoisted_17, toDisplayString(getDbTypeLabel(connection.type)), 1)])], 8, _hoisted_13),
|
|
59486
|
+
createBaseVNode("div", _hoisted_18, [
|
|
59487
|
+
createBaseVNode("button", {
|
|
59488
|
+
class: "btn btn-sm btn-icon",
|
|
59489
|
+
onClick: withModifiers(($event) => refreshConnection(connection), ["stop"]),
|
|
59490
|
+
title: _ctx.$t("connection.refreshConnection")
|
|
59491
|
+
}, [..._cache[3] || (_cache[3] = [createBaseVNode("i", { class: "bi bi-arrow-clockwise" }, null, -1)])], 8, _hoisted_19),
|
|
59492
|
+
createBaseVNode("button", {
|
|
59493
|
+
class: "btn btn-sm btn-icon",
|
|
59494
|
+
onClick: withModifiers(($event) => editConnection(connection), ["stop"]),
|
|
59495
|
+
title: _ctx.$t("connection.editConnectionTitle")
|
|
59496
|
+
}, [..._cache[4] || (_cache[4] = [createBaseVNode("i", { class: "bi bi-pencil" }, null, -1)])], 8, _hoisted_20),
|
|
59497
|
+
createBaseVNode("button", {
|
|
59498
|
+
class: "btn btn-sm btn-icon",
|
|
59499
|
+
onClick: withModifiers(($event) => testConnection(connection), ["stop"]),
|
|
59500
|
+
title: _ctx.$t("connection.testConnection")
|
|
59501
|
+
}, [..._cache[5] || (_cache[5] = [createBaseVNode("i", { class: "bi bi-wifi" }, null, -1)])], 8, _hoisted_21),
|
|
59502
|
+
createBaseVNode("button", {
|
|
59503
|
+
class: "btn btn-sm btn-icon btn-icon-danger",
|
|
59504
|
+
onClick: withModifiers(($event) => deleteConnection(connection), ["stop"]),
|
|
59505
|
+
title: _ctx.$t("connection.deleteConnection")
|
|
59506
|
+
}, [..._cache[6] || (_cache[6] = [createBaseVNode("i", { class: "bi bi-trash" }, null, -1)])], 8, _hoisted_22)
|
|
59507
|
+
]),
|
|
59508
|
+
loadingConnections.value.has(connection.id) ? (openBlock(), createElementBlock("div", _hoisted_23, [..._cache[7] || (_cache[7] = [createBaseVNode("div", { class: "spinner-border spinner-border-sm" }, null, -1)])])) : createCommentVNode("", true)
|
|
59509
|
+
]), expandedConnections.value.has(connection.id) ? (openBlock(), createElementBlock("div", _hoisted_24, [(openBlock(true), createElementBlock(Fragment, null, renderList(getDatabasesForConnection(connection.id), (database) => {
|
|
59579
59510
|
return openBlock(), createElementBlock("div", {
|
|
59580
|
-
key: connection.id
|
|
59581
|
-
class: normalizeClass(["tree-node
|
|
59582
|
-
}, [createBaseVNode("div",
|
|
59511
|
+
key: `${connection.id}-${database}`,
|
|
59512
|
+
class: normalizeClass(["tree-node database-node", { "selected": selectedDatabase.value === database && selectedConnection.value?.id === connection.id && !selectedTable.value }])
|
|
59513
|
+
}, [createBaseVNode("div", _hoisted_25, [
|
|
59583
59514
|
createBaseVNode("div", {
|
|
59584
59515
|
class: "node-expand",
|
|
59585
|
-
onClick: ($event) =>
|
|
59586
|
-
}, [createBaseVNode("i", { class: normalizeClass(["bi bi-chevron-right", { "expanded":
|
|
59516
|
+
onClick: ($event) => toggleDatabase(connection, database)
|
|
59517
|
+
}, [createBaseVNode("i", { class: normalizeClass(["bi bi-chevron-right", { "expanded": expandedDatabases.value.has(`${connection.id}-${database}`) }]) }, null, 2)], 8, _hoisted_26),
|
|
59587
59518
|
createBaseVNode("div", {
|
|
59588
59519
|
class: "node-main",
|
|
59589
|
-
onClick: ($event) =>
|
|
59590
|
-
}, [createBaseVNode("div",
|
|
59591
|
-
createBaseVNode("div",
|
|
59592
|
-
|
|
59593
|
-
|
|
59594
|
-
|
|
59595
|
-
|
|
59596
|
-
|
|
59597
|
-
|
|
59598
|
-
|
|
59599
|
-
|
|
59600
|
-
|
|
59601
|
-
|
|
59602
|
-
createBaseVNode("button", {
|
|
59603
|
-
class: "btn btn-sm btn-icon",
|
|
59604
|
-
onClick: withModifiers(($event) => testConnection(connection), ["stop"]),
|
|
59605
|
-
title: _ctx.$t("connection.testConnection")
|
|
59606
|
-
}, [..._cache[5] || (_cache[5] = [createBaseVNode("i", { class: "bi bi-wifi" }, null, -1)])], 8, _hoisted_21),
|
|
59607
|
-
createBaseVNode("button", {
|
|
59608
|
-
class: "btn btn-sm btn-icon btn-icon-danger",
|
|
59609
|
-
onClick: withModifiers(($event) => deleteConnection(connection), ["stop"]),
|
|
59610
|
-
title: _ctx.$t("connection.deleteConnection")
|
|
59611
|
-
}, [..._cache[6] || (_cache[6] = [createBaseVNode("i", { class: "bi bi-trash" }, null, -1)])], 8, _hoisted_22)
|
|
59612
|
-
]),
|
|
59613
|
-
loadingConnections.value.has(connection.id) ? (openBlock(), createElementBlock("div", _hoisted_23, [..._cache[7] || (_cache[7] = [createBaseVNode("div", { class: "spinner-border spinner-border-sm" }, null, -1)])])) : createCommentVNode("", true)
|
|
59614
|
-
]), expandedConnections.value.has(connection.id) ? (openBlock(), createElementBlock("div", _hoisted_24, [(openBlock(true), createElementBlock(Fragment, null, renderList(getDatabasesForConnection(connection.id), (database) => {
|
|
59520
|
+
onClick: ($event) => selectDatabase(connection, database)
|
|
59521
|
+
}, [_cache[8] || (_cache[8] = createBaseVNode("div", { class: "node-icon" }, [createBaseVNode("i", { class: "bi bi-database" })], -1)), createBaseVNode("div", _hoisted_28, [createBaseVNode("span", _hoisted_29, toDisplayString(database), 1)])], 8, _hoisted_27),
|
|
59522
|
+
createBaseVNode("div", _hoisted_30, [createBaseVNode("button", {
|
|
59523
|
+
class: "btn btn-sm btn-icon",
|
|
59524
|
+
onClick: withModifiers(($event) => refreshDatabase(connection, database), ["stop"]),
|
|
59525
|
+
title: _ctx.$t("explorer.refreshDatabase")
|
|
59526
|
+
}, [..._cache[9] || (_cache[9] = [createBaseVNode("i", { class: "bi bi-arrow-clockwise" }, null, -1)])], 8, _hoisted_31), createBaseVNode("button", {
|
|
59527
|
+
class: "btn btn-sm btn-icon btn-icon-danger",
|
|
59528
|
+
onClick: withModifiers(($event) => deleteDatabase(connection, database), ["stop"]),
|
|
59529
|
+
title: _ctx.$t("explorer.deleteDatabase")
|
|
59530
|
+
}, [..._cache[10] || (_cache[10] = [createBaseVNode("i", { class: "bi bi-trash" }, null, -1)])], 8, _hoisted_32)]),
|
|
59531
|
+
loadingDatabases.value.has(`${connection.id}-${database}`) ? (openBlock(), createElementBlock("div", _hoisted_33, [..._cache[11] || (_cache[11] = [createBaseVNode("div", { class: "spinner-border spinner-border-sm" }, null, -1)])])) : createCommentVNode("", true)
|
|
59532
|
+
]), expandedDatabases.value.has(`${connection.id}-${database}`) ? (openBlock(), createElementBlock("div", _hoisted_34, [(openBlock(true), createElementBlock(Fragment, null, renderList(getTablesForDatabase(connection.id, database), (table) => {
|
|
59615
59533
|
return openBlock(), createElementBlock("div", {
|
|
59616
|
-
key: `${connection.id}-${database}`,
|
|
59617
|
-
class: normalizeClass(["tree-node
|
|
59618
|
-
}, [createBaseVNode("div",
|
|
59619
|
-
createBaseVNode("div", {
|
|
59620
|
-
class: "node-expand",
|
|
59621
|
-
onClick: ($event) => toggleDatabase(connection, database)
|
|
59622
|
-
}, [createBaseVNode("i", { class: normalizeClass(["bi bi-chevron-right", { "expanded": expandedDatabases.value.has(`${connection.id}-${database}`) }]) }, null, 2)], 8, _hoisted_26),
|
|
59534
|
+
key: `${connection.id}-${database}-${table.name}`,
|
|
59535
|
+
class: normalizeClass(["tree-node table-node", { "selected": selectedTable.value?.name === table.name && selectedDatabase.value === database && selectedConnection.value?.id === connection.id }])
|
|
59536
|
+
}, [createBaseVNode("div", _hoisted_35, [
|
|
59537
|
+
_cache[14] || (_cache[14] = createBaseVNode("div", { class: "node-icon" }, [createBaseVNode("i", { class: "bi bi-table" })], -1)),
|
|
59623
59538
|
createBaseVNode("div", {
|
|
59624
59539
|
class: "node-main",
|
|
59625
|
-
onClick: ($event) =>
|
|
59626
|
-
}, [
|
|
59627
|
-
createBaseVNode("div",
|
|
59540
|
+
onClick: ($event) => selectTable(connection, database, table)
|
|
59541
|
+
}, [createBaseVNode("div", _hoisted_37, [createBaseVNode("span", _hoisted_38, toDisplayString(table.name), 1), table.rowCount !== void 0 ? (openBlock(), createElementBlock("span", _hoisted_39, toDisplayString(formatNumber(table.rowCount)) + " " + toDisplayString(_ctx.$t("explorer.rowsSuffix")), 1)) : createCommentVNode("", true)])], 8, _hoisted_36),
|
|
59542
|
+
createBaseVNode("div", _hoisted_40, [createBaseVNode("button", {
|
|
59543
|
+
class: "btn btn-sm btn-icon",
|
|
59544
|
+
onClick: withModifiers(($event) => refreshTable(connection, database, table), ["stop"]),
|
|
59545
|
+
title: _ctx.$t("explorer.refreshTable")
|
|
59546
|
+
}, [..._cache[12] || (_cache[12] = [createBaseVNode("i", { class: "bi bi-arrow-clockwise" }, null, -1)])], 8, _hoisted_41), createBaseVNode("button", {
|
|
59628
59547
|
class: "btn btn-sm btn-icon",
|
|
59629
|
-
onClick: withModifiers(($event) =>
|
|
59630
|
-
title: _ctx.$t("explorer.
|
|
59631
|
-
}, [..._cache[
|
|
59632
|
-
|
|
59633
|
-
onClick: withModifiers(($event) => deleteDatabase(connection, database), ["stop"]),
|
|
59634
|
-
title: _ctx.$t("explorer.deleteDatabase")
|
|
59635
|
-
}, [..._cache[10] || (_cache[10] = [createBaseVNode("i", { class: "bi bi-trash" }, null, -1)])], 8, _hoisted_32)]),
|
|
59636
|
-
loadingDatabases.value.has(`${connection.id}-${database}`) ? (openBlock(), createElementBlock("div", _hoisted_33, [..._cache[11] || (_cache[11] = [createBaseVNode("div", { class: "spinner-border spinner-border-sm" }, null, -1)])])) : createCommentVNode("", true)
|
|
59637
|
-
]), expandedDatabases.value.has(`${connection.id}-${database}`) ? (openBlock(), createElementBlock("div", _hoisted_34, [(openBlock(true), createElementBlock(Fragment, null, renderList(getTablesForDatabase(connection.id, database), (table) => {
|
|
59638
|
-
return openBlock(), createElementBlock("div", {
|
|
59639
|
-
key: `${connection.id}-${database}-${table.name}`,
|
|
59640
|
-
class: normalizeClass(["tree-node table-node", { "selected": selectedTable.value?.name === table.name && selectedDatabase.value === database && selectedConnection.value?.id === connection.id }])
|
|
59641
|
-
}, [createBaseVNode("div", _hoisted_35, [
|
|
59642
|
-
_cache[14] || (_cache[14] = createBaseVNode("div", { class: "node-icon" }, [createBaseVNode("i", { class: "bi bi-table" })], -1)),
|
|
59643
|
-
createBaseVNode("div", {
|
|
59644
|
-
class: "node-main",
|
|
59645
|
-
onClick: ($event) => selectTable(connection, database, table)
|
|
59646
|
-
}, [createBaseVNode("div", _hoisted_37, [createBaseVNode("span", _hoisted_38, toDisplayString(table.name), 1), table.rowCount !== void 0 ? (openBlock(), createElementBlock("span", _hoisted_39, toDisplayString(formatNumber(table.rowCount)) + " " + toDisplayString(_ctx.$t("explorer.rowsSuffix")), 1)) : createCommentVNode("", true)])], 8, _hoisted_36),
|
|
59647
|
-
createBaseVNode("div", _hoisted_40, [createBaseVNode("button", {
|
|
59648
|
-
class: "btn btn-sm btn-icon",
|
|
59649
|
-
onClick: withModifiers(($event) => refreshTable(connection, database, table), ["stop"]),
|
|
59650
|
-
title: _ctx.$t("explorer.refreshTable")
|
|
59651
|
-
}, [..._cache[12] || (_cache[12] = [createBaseVNode("i", { class: "bi bi-arrow-clockwise" }, null, -1)])], 8, _hoisted_41), createBaseVNode("button", {
|
|
59652
|
-
class: "btn btn-sm btn-icon",
|
|
59653
|
-
onClick: withModifiers(($event) => viewTableStructure(connection, database, table), ["stop"]),
|
|
59654
|
-
title: _ctx.$t("explorer.viewStructure")
|
|
59655
|
-
}, [..._cache[13] || (_cache[13] = [createBaseVNode("i", { class: "bi bi-diagram-3" }, null, -1)])], 8, _hoisted_42)])
|
|
59656
|
-
])], 2);
|
|
59657
|
-
}), 128))])) : createCommentVNode("", true)], 2);
|
|
59548
|
+
onClick: withModifiers(($event) => viewTableStructure(connection, database, table), ["stop"]),
|
|
59549
|
+
title: _ctx.$t("explorer.viewStructure")
|
|
59550
|
+
}, [..._cache[13] || (_cache[13] = [createBaseVNode("i", { class: "bi bi-diagram-3" }, null, -1)])], 8, _hoisted_42)])
|
|
59551
|
+
])], 2);
|
|
59658
59552
|
}), 128))])) : createCommentVNode("", true)], 2);
|
|
59659
|
-
}), 128))]),
|
|
59660
|
-
|
|
59661
|
-
|
|
59662
|
-
|
|
59663
|
-
|
|
59664
|
-
|
|
59665
|
-
class: "sidebar-tool-info",
|
|
59666
|
-
onClick: showAboutPage
|
|
59667
|
-
}, [_cache[18] || (_cache[18] = createBaseVNode("div", { class: "tool-logo" }, [createBaseVNode("i", { class: "bi bi-info-circle" })], -1)), createBaseVNode("div", _hoisted_45, [_cache[17] || (_cache[17] = createBaseVNode("div", { class: "tool-name" }, "fdb2", -1)), createBaseVNode("div", _hoisted_46, toDisplayString(_ctx.$t("connection.aboutTool")), 1)])])
|
|
59668
|
-
])]), createBaseVNode("div", _hoisted_47, [showAbout.value ? (openBlock(), createBlock(about_default, { key: 0 })) : selectedConnection.value && !selectedDatabase.value && !selectedTable.value ? (openBlock(), createBlock(connection_detail_default, {
|
|
59669
|
-
key: 1,
|
|
59553
|
+
}), 128))])) : createCommentVNode("", true)], 2);
|
|
59554
|
+
}), 128))]), connections.value.length === 0 ? (openBlock(), createElementBlock("div", _hoisted_43, [_cache[16] || (_cache[16] = createBaseVNode("div", { class: "empty-icon" }, [createBaseVNode("i", { class: "bi bi-inbox" })], -1)), createBaseVNode("div", _hoisted_44, [createBaseVNode("p", null, toDisplayString(_ctx.$t("connection.noConnectionYet")), 1), createBaseVNode("button", {
|
|
59555
|
+
class: "btn btn-primary btn-sm",
|
|
59556
|
+
onClick: showAddConnectionModal
|
|
59557
|
+
}, [_cache[15] || (_cache[15] = createBaseVNode("i", { class: "bi bi-plus" }, null, -1)), createTextVNode(" " + toDisplayString(_ctx.$t("explorer.addConnection")), 1)])])])) : createCommentVNode("", true)])]), createBaseVNode("div", _hoisted_45, [selectedConnection.value && !selectedDatabase.value && !selectedTable.value ? (openBlock(), createBlock(connection_detail_default, {
|
|
59558
|
+
key: 0,
|
|
59670
59559
|
connection: selectedConnection.value,
|
|
59671
59560
|
onTestConnection: handleTestConnection,
|
|
59672
59561
|
onEditConnection: handleEditConnection,
|
|
@@ -59676,7 +59565,7 @@ var init_explorer_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
|
59676
59565
|
onViewLogs: handleViewLogs,
|
|
59677
59566
|
onCreateDatabase: handleCreateDatabase
|
|
59678
59567
|
}, null, 8, ["connection"])) : selectedConnection.value && selectedDatabase.value && !selectedTable.value ? (openBlock(), createBlock(database_detail_default, {
|
|
59679
|
-
key:
|
|
59568
|
+
key: 1,
|
|
59680
59569
|
connection: selectedConnection.value,
|
|
59681
59570
|
database: selectedDatabase.value,
|
|
59682
59571
|
tables: getTablesForDatabase(selectedConnection.value.id || "", selectedDatabase.value),
|
|
@@ -59693,7 +59582,7 @@ var init_explorer_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
|
59693
59582
|
"database-info",
|
|
59694
59583
|
"loading"
|
|
59695
59584
|
])) : selectedConnection.value && selectedDatabase.value && selectedTable.value ? (openBlock(), createBlock(table_detail_default, {
|
|
59696
|
-
key:
|
|
59585
|
+
key: 2,
|
|
59697
59586
|
connection: selectedConnection.value,
|
|
59698
59587
|
database: selectedDatabase.value,
|
|
59699
59588
|
table: selectedTable.value,
|
|
@@ -59722,8 +59611,8 @@ var init_explorer_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
|
59722
59611
|
"total",
|
|
59723
59612
|
"sql-result",
|
|
59724
59613
|
"sql-executing"
|
|
59725
|
-
])) : (openBlock(), createElementBlock("div",
|
|
59726
|
-
_cache[
|
|
59614
|
+
])) : (openBlock(), createElementBlock("div", _hoisted_46, [createBaseVNode("div", _hoisted_47, [
|
|
59615
|
+
_cache[17] || (_cache[17] = createBaseVNode("div", { class: "default-icon" }, [createBaseVNode("i", { class: "bi bi-diagram-3" })], -1)),
|
|
59727
59616
|
createBaseVNode("h5", null, toDisplayString(_ctx.$t("explorer.defaultTitle")), 1),
|
|
59728
59617
|
createBaseVNode("p", null, toDisplayString(_ctx.$t("explorer.defaultDesc")), 1)
|
|
59729
59618
|
])]))])]),
|
|
@@ -59742,8 +59631,8 @@ var init_explorer_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
|
59742
59631
|
});
|
|
59743
59632
|
}));
|
|
59744
59633
|
//#endregion
|
|
59745
|
-
//#region src/platform/database/explorer.vue?vue&type=style&index=0&scoped=
|
|
59746
|
-
var
|
|
59634
|
+
//#region src/platform/database/explorer.vue?vue&type=style&index=0&scoped=96b10f51&lang.css
|
|
59635
|
+
var init_explorer_vue_vue_type_style_index_0_scoped_96b10f51_lang = __esmMin((() => {}));
|
|
59747
59636
|
//#endregion
|
|
59748
59637
|
//#region src/platform/database/explorer.vue
|
|
59749
59638
|
var explorer_default;
|
|
@@ -59751,8 +59640,8 @@ var explorer_default;
|
|
|
59751
59640
|
__esmMin((() => {
|
|
59752
59641
|
init_explorer_vue_vue_type_script_setup_true_lang();
|
|
59753
59642
|
init_explorer_vue_vue_type_script_setup_true_lang();
|
|
59754
|
-
|
|
59643
|
+
init_explorer_vue_vue_type_style_index_0_scoped_96b10f51_lang();
|
|
59755
59644
|
init__plugin_vue_export_helper();
|
|
59756
|
-
explorer_default = /*#__PURE__*/ _plugin_vue_export_helper_default(explorer_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-
|
|
59645
|
+
explorer_default = /*#__PURE__*/ _plugin_vue_export_helper_default(explorer_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-96b10f51"]]);
|
|
59757
59646
|
}))();
|
|
59758
59647
|
export { explorer_default as default };
|