fdb2 1.0.34 → 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 +130 -250
- package/dist/public/explorer.js +327 -449
- package/dist/public/index.js +1 -1
- package/dist/public/layout.css +251 -55
- package/dist/public/layout.js +181 -23
- package/dist/public/vue.js +1 -1
- package/package.json +1 -1
package/dist/public/explorer.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { i as __require, n as __esmMin, t as __commonJSMin } from "./rolldown-runtime.js";
|
|
2
|
-
import { C as
|
|
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
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;
|
|
@@ -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" };
|
|
@@ -724,7 +724,7 @@ var init_index_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
|
724
724
|
onSubmit: withModifiers(saveConnection, ["prevent"]),
|
|
725
725
|
class: "connection-form-modern"
|
|
726
726
|
}, [
|
|
727
|
-
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, [
|
|
728
728
|
_cache[12] || (_cache[12] = createBaseVNode("i", { class: "bi bi-tag me-2" }, null, -1)),
|
|
729
729
|
createTextVNode(toDisplayString(_ctx.$t("connection.connectionName")) + " ", 1),
|
|
730
730
|
_cache[13] || (_cache[13] = createBaseVNode("span", { class: "required" }, "*", -1))
|
|
@@ -734,7 +734,7 @@ var init_index_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
|
734
734
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => connectionForm.value.name = $event),
|
|
735
735
|
placeholder: _ctx.$t("connection.connectionNamePlaceholder"),
|
|
736
736
|
required: ""
|
|
737
|
-
}, null, 8, _hoisted_8$
|
|
737
|
+
}, null, 8, _hoisted_8$9), [[vModelText, connectionForm.value.name]])]), createBaseVNode("div", _hoisted_9$9, [createBaseVNode("label", _hoisted_10$9, [
|
|
738
738
|
_cache[14] || (_cache[14] = createBaseVNode("i", { class: "bi bi-diagram-3 me-2" }, null, -1)),
|
|
739
739
|
createTextVNode(toDisplayString(_ctx.$t("connection.databaseType")) + " ", 1),
|
|
740
740
|
_cache[15] || (_cache[15] = createBaseVNode("span", { class: "required" }, "*", -1))
|
|
@@ -743,13 +743,13 @@ var init_index_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
|
743
743
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => connectionForm.value.type = $event),
|
|
744
744
|
onChange: onTypeChange,
|
|
745
745
|
required: ""
|
|
746
|
-
}, [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) => {
|
|
747
747
|
return openBlock(), createElementBlock("option", {
|
|
748
748
|
key: dbType.value,
|
|
749
749
|
value: dbType.value
|
|
750
|
-
}, toDisplayString(dbType.label), 9, _hoisted_12$
|
|
750
|
+
}, toDisplayString(dbType.label), 9, _hoisted_12$9);
|
|
751
751
|
}), 128))], 544), [[vModelSelect, connectionForm.value.type]])])])])]),
|
|
752
|
-
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, [
|
|
753
753
|
createBaseVNode("div", _hoisted_18$9, [createBaseVNode("label", _hoisted_19$9, [
|
|
754
754
|
_cache[17] || (_cache[17] = createBaseVNode("i", { class: "bi bi-server me-2" }, null, -1)),
|
|
755
755
|
createTextVNode(toDisplayString(_ctx.$t("connection.host")) + " ", 1),
|
|
@@ -824,8 +824,8 @@ var init_index_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
|
824
824
|
class: "form-control-modern",
|
|
825
825
|
"onUpdate:modelValue": _cache[8] || (_cache[8] = ($event) => connectionForm.value.password = $event),
|
|
826
826
|
placeholder: _ctx.$t("connection.passwordPlaceholder")
|
|
827
|
-
}, null, 8, _hoisted_48$
|
|
828
|
-
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", {
|
|
829
829
|
class: "form-check-input-modern",
|
|
830
830
|
type: "checkbox",
|
|
831
831
|
"onUpdate:modelValue": _cache[9] || (_cache[9] = ($event) => connectionForm.value.enabled = $event),
|
|
@@ -53058,7 +53058,7 @@ var init_export = __esmMin((() => {
|
|
|
53058
53058
|
}));
|
|
53059
53059
|
//#endregion
|
|
53060
53060
|
//#region src/platform/database/components/sql-executor.vue?vue&type=script&setup=true&lang.ts
|
|
53061
|
-
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;
|
|
53062
53062
|
var init_sql_executor_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
53063
53063
|
init_vue_runtime_esm_bundler();
|
|
53064
53064
|
init_dist$11();
|
|
@@ -53072,37 +53072,37 @@ var init_sql_executor_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
|
53072
53072
|
init_database();
|
|
53073
53073
|
init_modal();
|
|
53074
53074
|
init_export();
|
|
53075
|
-
_hoisted_1$
|
|
53076
|
-
_hoisted_2$
|
|
53077
|
-
_hoisted_3$
|
|
53078
|
-
_hoisted_4$
|
|
53079
|
-
_hoisted_5$
|
|
53080
|
-
_hoisted_6$
|
|
53081
|
-
_hoisted_7$
|
|
53082
|
-
_hoisted_8$
|
|
53083
|
-
_hoisted_9$
|
|
53084
|
-
_hoisted_10$
|
|
53085
|
-
_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 = {
|
|
53086
53086
|
key: 0,
|
|
53087
53087
|
class: "sql-loading"
|
|
53088
53088
|
};
|
|
53089
|
-
_hoisted_12$
|
|
53089
|
+
_hoisted_12$8 = {
|
|
53090
53090
|
key: 0,
|
|
53091
53091
|
class: "bi bi-check-circle-fill text-success"
|
|
53092
53092
|
};
|
|
53093
|
-
_hoisted_13$
|
|
53093
|
+
_hoisted_13$8 = {
|
|
53094
53094
|
key: 1,
|
|
53095
53095
|
class: "bi bi-x-circle-fill text-danger"
|
|
53096
53096
|
};
|
|
53097
|
-
_hoisted_14$
|
|
53097
|
+
_hoisted_14$8 = {
|
|
53098
53098
|
key: 0,
|
|
53099
53099
|
class: "result-actions"
|
|
53100
53100
|
};
|
|
53101
|
-
_hoisted_15$
|
|
53101
|
+
_hoisted_15$8 = {
|
|
53102
53102
|
key: 0,
|
|
53103
53103
|
class: "sql-loading-state"
|
|
53104
53104
|
};
|
|
53105
|
-
_hoisted_16$
|
|
53105
|
+
_hoisted_16$8 = { class: "d-flex align-items-center justify-content-center py-4" };
|
|
53106
53106
|
_hoisted_17$8 = { class: "fw-bold" };
|
|
53107
53107
|
_hoisted_18$8 = { class: "text-muted small" };
|
|
53108
53108
|
_hoisted_19$8 = { class: "json-result" };
|
|
@@ -53379,14 +53379,14 @@ var init_sql_executor_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
|
53379
53379
|
if (sqlResult.value && resultEditor.value) updateResultEditor();
|
|
53380
53380
|
});
|
|
53381
53381
|
return (_ctx, _cache) => {
|
|
53382
|
-
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", {
|
|
53383
53383
|
class: "btn btn-primary btn-sm",
|
|
53384
53384
|
onClick: executeSql,
|
|
53385
53385
|
disabled: loading.value
|
|
53386
|
-
}, [_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", {
|
|
53387
53387
|
class: "btn btn-outline-secondary btn-sm",
|
|
53388
53388
|
onClick: formatSql
|
|
53389
|
-
}, [_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", {
|
|
53390
53390
|
class: "btn btn-outline-primary btn-sm",
|
|
53391
53391
|
onClick: clearSql
|
|
53392
53392
|
}, [_cache[3] || (_cache[3] = createBaseVNode("i", { class: "bi bi-trash" }, null, -1)), createTextVNode(" " + toDisplayString(_ctx.$t("sqlExecutor.clearBtn")), 1)])])]), createBaseVNode("div", {
|
|
@@ -53394,7 +53394,7 @@ var init_sql_executor_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
|
53394
53394
|
ref_key: "containerRef",
|
|
53395
53395
|
ref: containerRef
|
|
53396
53396
|
}, [
|
|
53397
|
-
createBaseVNode("div", _hoisted_6$
|
|
53397
|
+
createBaseVNode("div", _hoisted_6$8, [createBaseVNode("div", {
|
|
53398
53398
|
ref_key: "editorRef",
|
|
53399
53399
|
ref: editorRef,
|
|
53400
53400
|
class: "codemirror-editor"
|
|
@@ -53403,15 +53403,15 @@ var init_sql_executor_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
|
53403
53403
|
class: normalizeClass(["resizer", { "resizing": isResizing.value }]),
|
|
53404
53404
|
onMousedown: startResize
|
|
53405
53405
|
}, null, 34),
|
|
53406
|
-
createBaseVNode("div", _hoisted_7$
|
|
53407
|
-
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", {
|
|
53408
53408
|
class: "btn btn-sm btn-outline-secondary me-2",
|
|
53409
53409
|
onClick: formatJsonResult
|
|
53410
53410
|
}, [_cache[5] || (_cache[5] = createBaseVNode("i", { class: "bi bi-braces" }, null, -1)), createTextVNode(" " + toDisplayString(_ctx.$t("common.format")), 1)]), createBaseVNode("button", {
|
|
53411
53411
|
class: "btn btn-sm btn-outline-secondary",
|
|
53412
53412
|
onClick: _cache[0] || (_cache[0] = ($event) => exportResult("json"))
|
|
53413
53413
|
}, [_cache[6] || (_cache[6] = createBaseVNode("i", { class: "bi bi-file-earmark-code" }, null, -1)), createTextVNode(" " + toDisplayString(_ctx.$t("sqlExecutor.exportJSON")), 1)])])) : createCommentVNode("", true)]),
|
|
53414
|
-
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),
|
|
53415
53415
|
createBaseVNode("div", _hoisted_19$8, [createBaseVNode("div", {
|
|
53416
53416
|
ref_key: "resultEditorRef",
|
|
53417
53417
|
ref: resultEditorRef,
|
|
@@ -53438,7 +53438,7 @@ var init_sql_executor = __esmMin((() => {
|
|
|
53438
53438
|
}));
|
|
53439
53439
|
//#endregion
|
|
53440
53440
|
//#region src/platform/database/components/connection-detail.vue?vue&type=script&setup=true&lang.ts
|
|
53441
|
-
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;
|
|
53442
53442
|
var init_connection_detail_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
53443
53443
|
init_vue_runtime_esm_bundler();
|
|
53444
53444
|
init_vue_router();
|
|
@@ -53446,25 +53446,25 @@ var init_connection_detail_vue_vue_type_script_setup_true_lang = __esmMin((() =>
|
|
|
53446
53446
|
init_sql_executor();
|
|
53447
53447
|
init_vue_i18n();
|
|
53448
53448
|
init_modal();
|
|
53449
|
-
_hoisted_1$
|
|
53450
|
-
_hoisted_2$
|
|
53451
|
-
_hoisted_3$
|
|
53452
|
-
_hoisted_4$
|
|
53453
|
-
_hoisted_5$
|
|
53454
|
-
_hoisted_6$
|
|
53455
|
-
_hoisted_7$
|
|
53456
|
-
_hoisted_8$
|
|
53457
|
-
_hoisted_9$
|
|
53458
|
-
_hoisted_10$
|
|
53459
|
-
_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 = {
|
|
53460
53460
|
key: 0,
|
|
53461
53461
|
class: "connection-details-panel"
|
|
53462
53462
|
};
|
|
53463
|
-
_hoisted_12$
|
|
53464
|
-
_hoisted_13$
|
|
53465
|
-
_hoisted_14$
|
|
53466
|
-
_hoisted_15$
|
|
53467
|
-
_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" };
|
|
53468
53468
|
_hoisted_17$7 = { class: "info-grid" };
|
|
53469
53469
|
_hoisted_18$7 = { class: "info-item" };
|
|
53470
53470
|
_hoisted_19$7 = { class: "info-label" };
|
|
@@ -53496,8 +53496,8 @@ var init_connection_detail_vue_vue_type_script_setup_true_lang = __esmMin((() =>
|
|
|
53496
53496
|
_hoisted_45$5 = { class: "quick-actions" };
|
|
53497
53497
|
_hoisted_46$5 = { class: "actions-header" };
|
|
53498
53498
|
_hoisted_47$5 = { class: "actions-title" };
|
|
53499
|
-
_hoisted_48$
|
|
53500
|
-
_hoisted_49$
|
|
53499
|
+
_hoisted_48$4 = { class: "actions-grid" };
|
|
53500
|
+
_hoisted_49$4 = { class: "action-text" };
|
|
53501
53501
|
_hoisted_50$4 = { class: "action-text" };
|
|
53502
53502
|
_hoisted_51$4 = { class: "action-text" };
|
|
53503
53503
|
_hoisted_52$4 = { class: "connection-tabs" };
|
|
@@ -53775,13 +53775,13 @@ var init_connection_detail_vue_vue_type_script_setup_true_lang = __esmMin((() =>
|
|
|
53775
53775
|
}[type || ""] || "DB";
|
|
53776
53776
|
}
|
|
53777
53777
|
return (_ctx, _cache) => {
|
|
53778
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
53779
|
-
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, [
|
|
53780
53780
|
createBaseVNode("button", {
|
|
53781
53781
|
class: "btn btn-sm btn-outline-info",
|
|
53782
53782
|
onClick: toggleDetails,
|
|
53783
53783
|
title: _ctx.$t("connection.toggleDetails")
|
|
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$
|
|
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),
|
|
53785
53785
|
createBaseVNode("button", {
|
|
53786
53786
|
class: "btn btn-sm btn-outline-primary",
|
|
53787
53787
|
onClick: testConnection
|
|
@@ -53791,7 +53791,7 @@ var init_connection_detail_vue_vue_type_script_setup_true_lang = __esmMin((() =>
|
|
|
53791
53791
|
onClick: editConnection
|
|
53792
53792
|
}, [_cache[16] || (_cache[16] = createBaseVNode("i", { class: "bi bi-pencil" }, null, -1)), createTextVNode(" " + toDisplayString(_ctx.$t("common.edit")), 1)])
|
|
53793
53793
|
])]),
|
|
53794
|
-
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, [
|
|
53795
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)]),
|
|
53796
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)]),
|
|
53797
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)]),
|
|
@@ -53802,11 +53802,11 @@ var init_connection_detail_vue_vue_type_script_setup_true_lang = __esmMin((() =>
|
|
|
53802
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)]),
|
|
53803
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)])
|
|
53804
53804
|
])])])])])])) : createCommentVNode("", true),
|
|
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$
|
|
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, [
|
|
53806
53806
|
createBaseVNode("button", {
|
|
53807
53807
|
class: "action-btn",
|
|
53808
53808
|
onClick: showCreateDatabaseModal
|
|
53809
|
-
}, [_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)]),
|
|
53810
53810
|
createBaseVNode("button", {
|
|
53811
53811
|
class: "action-btn",
|
|
53812
53812
|
onClick: exportSchema
|
|
@@ -55191,7 +55191,7 @@ var init_database_types = __esmMin((() => {
|
|
|
55191
55191
|
}));
|
|
55192
55192
|
//#endregion
|
|
55193
55193
|
//#region src/platform/database/components/table-editor.vue?vue&type=script&setup=true&lang.ts
|
|
55194
|
-
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;
|
|
55195
55195
|
var init_table_editor_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
55196
55196
|
init_vue_runtime_esm_bundler();
|
|
55197
55197
|
init_vue_i18n();
|
|
@@ -55199,22 +55199,22 @@ var init_table_editor_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
|
55199
55199
|
init_modal();
|
|
55200
55200
|
init_database_types$1();
|
|
55201
55201
|
init_database_types();
|
|
55202
|
-
_hoisted_1$
|
|
55203
|
-
_hoisted_2$
|
|
55204
|
-
_hoisted_3$
|
|
55205
|
-
_hoisted_4$
|
|
55206
|
-
_hoisted_5$
|
|
55207
|
-
_hoisted_6$
|
|
55208
|
-
_hoisted_7$
|
|
55209
|
-
_hoisted_8$
|
|
55210
|
-
_hoisted_9$
|
|
55211
|
-
_hoisted_10$
|
|
55212
|
-
_hoisted_11$
|
|
55213
|
-
_hoisted_12$
|
|
55214
|
-
_hoisted_13$
|
|
55215
|
-
_hoisted_14$
|
|
55216
|
-
_hoisted_15$
|
|
55217
|
-
_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" };
|
|
55218
55218
|
_hoisted_17$6 = { class: "section-header d-flex justify-content-between align-items-center mb-3" };
|
|
55219
55219
|
_hoisted_18$6 = { class: "section-title mb-0" };
|
|
55220
55220
|
_hoisted_19$6 = { class: "table-responsive" };
|
|
@@ -55252,8 +55252,8 @@ var init_table_editor_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
|
55252
55252
|
_hoisted_45$4 = { class: "form-check" };
|
|
55253
55253
|
_hoisted_46$4 = ["onUpdate:modelValue", "disabled"];
|
|
55254
55254
|
_hoisted_47$4 = ["onUpdate:modelValue", "placeholder"];
|
|
55255
|
-
_hoisted_48$
|
|
55256
|
-
_hoisted_49$
|
|
55255
|
+
_hoisted_48$3 = ["onClick", "disabled"];
|
|
55256
|
+
_hoisted_49$3 = { class: "sql-preview-section mt-4" };
|
|
55257
55257
|
_hoisted_50$3 = { class: "section-title" };
|
|
55258
55258
|
_hoisted_51$3 = { class: "sql-preview bg-light p-3 rounded" };
|
|
55259
55259
|
_hoisted_52$3 = { class: "modal-footer" };
|
|
@@ -55686,26 +55686,26 @@ var init_table_editor_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
|
55686
55686
|
"max-width": "none"
|
|
55687
55687
|
},
|
|
55688
55688
|
onClick: _cache[2] || (_cache[2] = withModifiers(() => {}, ["stop"]))
|
|
55689
|
-
}, [createBaseVNode("div", _hoisted_1$
|
|
55690
|
-
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", {
|
|
55691
55691
|
type: "button",
|
|
55692
55692
|
class: "btn-close",
|
|
55693
55693
|
onClick: close
|
|
55694
55694
|
})]),
|
|
55695
|
-
createBaseVNode("div", _hoisted_4$
|
|
55696
|
-
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", {
|
|
55697
55697
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => formData.value.tableName = $event),
|
|
55698
55698
|
type: "text",
|
|
55699
55699
|
class: "form-control",
|
|
55700
55700
|
disabled: __props.mode === "edit",
|
|
55701
55701
|
placeholder: _ctx.$t("tableEditor.tableNamePlaceholder")
|
|
55702
|
-
}, 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", {
|
|
55703
55703
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => formData.value.tableComment = $event),
|
|
55704
55704
|
type: "text",
|
|
55705
55705
|
class: "form-control",
|
|
55706
55706
|
placeholder: _ctx.$t("tableEditor.tableCommentPlaceholder")
|
|
55707
|
-
}, null, 8, _hoisted_15$
|
|
55708
|
-
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", {
|
|
55709
55709
|
class: "btn btn-success btn-sm",
|
|
55710
55710
|
onClick: addColumn
|
|
55711
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, [
|
|
@@ -55796,10 +55796,10 @@ var init_table_editor_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
|
55796
55796
|
class: "btn btn-outline-danger btn-sm",
|
|
55797
55797
|
onClick: ($event) => removeColumn(index),
|
|
55798
55798
|
disabled: formData.value.columns.length <= 1
|
|
55799
|
-
}, [..._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)])
|
|
55800
55800
|
]);
|
|
55801
55801
|
}), 128))])])])]),
|
|
55802
|
-
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)])
|
|
55803
55803
|
]),
|
|
55804
55804
|
createBaseVNode("div", _hoisted_52$3, [createBaseVNode("button", {
|
|
55805
55805
|
type: "button",
|
|
@@ -55830,29 +55830,29 @@ var init_table_editor = __esmMin((() => {
|
|
|
55830
55830
|
}));
|
|
55831
55831
|
//#endregion
|
|
55832
55832
|
//#region src/platform/database/components/db-tools.vue?vue&type=script&setup=true&lang.ts
|
|
55833
|
-
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;
|
|
55834
55834
|
var init_db_tools_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
55835
55835
|
init_vue_runtime_esm_bundler();
|
|
55836
55836
|
init_vue_i18n();
|
|
55837
55837
|
init_database();
|
|
55838
55838
|
init_modal();
|
|
55839
55839
|
init_toast();
|
|
55840
|
-
_hoisted_1$
|
|
55841
|
-
_hoisted_2$
|
|
55842
|
-
_hoisted_3$
|
|
55843
|
-
_hoisted_4$
|
|
55844
|
-
_hoisted_5$
|
|
55845
|
-
_hoisted_6$
|
|
55846
|
-
_hoisted_7$
|
|
55847
|
-
_hoisted_8$
|
|
55848
|
-
_hoisted_9$
|
|
55849
|
-
_hoisted_10$
|
|
55850
|
-
_hoisted_11$
|
|
55851
|
-
_hoisted_12$
|
|
55852
|
-
_hoisted_13$
|
|
55853
|
-
_hoisted_14$
|
|
55854
|
-
_hoisted_15$
|
|
55855
|
-
_hoisted_16$
|
|
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" };
|
|
55856
55856
|
_hoisted_17$5 = { class: "tool-section" };
|
|
55857
55857
|
_hoisted_18$5 = { class: "section-title" };
|
|
55858
55858
|
_hoisted_19$5 = { class: "tool-actions" };
|
|
@@ -55896,8 +55896,8 @@ var init_db_tools_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
|
55896
55896
|
_hoisted_45$3 = ["value"];
|
|
55897
55897
|
_hoisted_46$3 = { class: "col-md-6" };
|
|
55898
55898
|
_hoisted_47$3 = { class: "form-label" };
|
|
55899
|
-
_hoisted_48$
|
|
55900
|
-
_hoisted_49$
|
|
55899
|
+
_hoisted_48$2 = { value: "" };
|
|
55900
|
+
_hoisted_49$2 = ["value"];
|
|
55901
55901
|
_hoisted_50$2 = { class: "col-md-12" };
|
|
55902
55902
|
_hoisted_51$2 = { class: "form-label" };
|
|
55903
55903
|
_hoisted_52$2 = {
|
|
@@ -56417,10 +56417,10 @@ var init_db_tools_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
|
56417
56417
|
addExecutionResult(t("dbTools.scheduledBackup"), "info", { message: t("dbTools.featureInDev", { feature: t("dbTools.scheduledBackup") }) });
|
|
56418
56418
|
}
|
|
56419
56419
|
return (_ctx, _cache) => {
|
|
56420
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
56421
|
-
createBaseVNode("div", _hoisted_2$
|
|
56422
|
-
createBaseVNode("div", _hoisted_4$
|
|
56423
|
-
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, [
|
|
56424
56424
|
createBaseVNode("button", {
|
|
56425
56425
|
class: "btn btn-outline-primary btn-sm",
|
|
56426
56426
|
onClick: backupDatabase
|
|
@@ -56434,7 +56434,7 @@ var init_db_tools_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
|
56434
56434
|
onClick: showScheduleModal
|
|
56435
56435
|
}, [_cache[26] || (_cache[26] = createBaseVNode("i", { class: "bi bi-clock" }, null, -1)), createTextVNode(" " + toDisplayString(_ctx.$t("dbTools.scheduledBackup")), 1)])
|
|
56436
56436
|
])]),
|
|
56437
|
-
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, [
|
|
56438
56438
|
createBaseVNode("button", {
|
|
56439
56439
|
class: "btn btn-outline-success btn-sm",
|
|
56440
56440
|
onClick: showUsersList
|
|
@@ -56448,7 +56448,7 @@ var init_db_tools_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
|
56448
56448
|
onClick: showPermissionsModal
|
|
56449
56449
|
}, [_cache[30] || (_cache[30] = createBaseVNode("i", { class: "bi bi-key" }, null, -1)), createTextVNode(" " + toDisplayString(_ctx.$t("dbTools.permissionMgmt")), 1)])
|
|
56450
56450
|
])]),
|
|
56451
|
-
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, [
|
|
56452
56452
|
createBaseVNode("button", {
|
|
56453
56453
|
class: "btn btn-outline-info btn-sm",
|
|
56454
56454
|
onClick: showProcessList
|
|
@@ -56462,7 +56462,7 @@ var init_db_tools_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
|
56462
56462
|
onClick: showConnectionsList
|
|
56463
56463
|
}, [_cache[34] || (_cache[34] = createBaseVNode("i", { class: "bi bi-diagram-3" }, null, -1)), createTextVNode(" " + toDisplayString(_ctx.$t("dbTools.connectionCount")), 1)])
|
|
56464
56464
|
])]),
|
|
56465
|
-
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, [
|
|
56466
56466
|
createBaseVNode("button", {
|
|
56467
56467
|
class: "btn btn-outline-success btn-sm",
|
|
56468
56468
|
onClick: optimizeDatabase
|
|
@@ -56548,11 +56548,11 @@ var init_db_tools_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
|
56548
56548
|
createBaseVNode("div", _hoisted_46$3, [createBaseVNode("label", _hoisted_47$3, toDisplayString(_ctx.$t("dbTools.selectDatabaseLabel")), 1), withDirectives(createBaseVNode("select", {
|
|
56549
56549
|
class: "form-select",
|
|
56550
56550
|
"onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => selectedDatabaseName.value = $event)
|
|
56551
|
-
}, [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) => {
|
|
56552
56552
|
return openBlock(), createElementBlock("option", {
|
|
56553
56553
|
key: db,
|
|
56554
56554
|
value: db
|
|
56555
|
-
}, toDisplayString(db), 9, _hoisted_49$
|
|
56555
|
+
}, toDisplayString(db), 9, _hoisted_49$2);
|
|
56556
56556
|
}), 128))], 512), [[vModelSelect, selectedDatabaseName.value]])]),
|
|
56557
56557
|
createBaseVNode("div", _hoisted_50$2, [createBaseVNode("label", _hoisted_51$2, toDisplayString(_ctx.$t("dbTools.targetTableName")), 1), withDirectives(createBaseVNode("input", {
|
|
56558
56558
|
type: "text",
|
|
@@ -56717,7 +56717,7 @@ var init_db_tools = __esmMin((() => {
|
|
|
56717
56717
|
}));
|
|
56718
56718
|
//#endregion
|
|
56719
56719
|
//#region src/platform/database/components/database-detail.vue?vue&type=script&setup=true&lang.ts
|
|
56720
|
-
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;
|
|
56721
56721
|
var init_database_detail_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
56722
56722
|
init_vue_runtime_esm_bundler();
|
|
56723
56723
|
init_vue_i18n();
|
|
@@ -56726,22 +56726,22 @@ var init_database_detail_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
|
56726
56726
|
init_db_tools();
|
|
56727
56727
|
init_modal();
|
|
56728
56728
|
init_database();
|
|
56729
|
-
_hoisted_1$
|
|
56730
|
-
_hoisted_2$
|
|
56731
|
-
_hoisted_3$
|
|
56732
|
-
_hoisted_4$
|
|
56733
|
-
_hoisted_5$
|
|
56734
|
-
_hoisted_6$
|
|
56735
|
-
_hoisted_7$
|
|
56736
|
-
_hoisted_8$
|
|
56737
|
-
_hoisted_9$
|
|
56738
|
-
_hoisted_10$
|
|
56739
|
-
_hoisted_11$
|
|
56740
|
-
_hoisted_12$
|
|
56741
|
-
_hoisted_13$
|
|
56742
|
-
_hoisted_14$
|
|
56743
|
-
_hoisted_15$
|
|
56744
|
-
_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" };
|
|
56745
56745
|
_hoisted_17$4 = { class: "database-tabs" };
|
|
56746
56746
|
_hoisted_18$4 = { class: "nav nav-tabs" };
|
|
56747
56747
|
_hoisted_19$4 = { class: "nav-item" };
|
|
@@ -56785,8 +56785,8 @@ var init_database_detail_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
|
56785
56785
|
_hoisted_45$2 = { class: "stat-label" };
|
|
56786
56786
|
_hoisted_46$2 = { class: "stat-value" };
|
|
56787
56787
|
_hoisted_47$2 = { class: "table-actions" };
|
|
56788
|
-
_hoisted_48$
|
|
56789
|
-
_hoisted_49$
|
|
56788
|
+
_hoisted_48$1 = ["onClick"];
|
|
56789
|
+
_hoisted_49$1 = {
|
|
56790
56790
|
key: 0,
|
|
56791
56791
|
class: "empty-state"
|
|
56792
56792
|
};
|
|
@@ -57158,8 +57158,8 @@ var init_database_detail_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
|
57158
57158
|
emit("execute-sql", sql);
|
|
57159
57159
|
}
|
|
57160
57160
|
return (_ctx, _cache) => {
|
|
57161
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
57162
|
-
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)])])])]),
|
|
57163
57163
|
createBaseVNode("div", _hoisted_17$4, [createBaseVNode("ul", _hoisted_18$4, [
|
|
57164
57164
|
createBaseVNode("li", _hoisted_19$4, [createBaseVNode("button", {
|
|
57165
57165
|
class: normalizeClass(["nav-link", { active: activeTab.value === "tables" }]),
|
|
@@ -57203,8 +57203,8 @@ var init_database_detail_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
|
57203
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", {
|
|
57204
57204
|
class: "btn btn-sm btn-outline-primary",
|
|
57205
57205
|
onClick: withModifiers(($event) => editTable(table), ["stop"])
|
|
57206
|
-
}, [..._cache[28] || (_cache[28] = [createBaseVNode("i", { class: "bi bi-pencil" }, null, -1)])], 8, _hoisted_48$
|
|
57207
|
-
}), 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, [
|
|
57208
57208
|
_cache[30] || (_cache[30] = createBaseVNode("i", { class: "bi bi-inbox" }, null, -1)),
|
|
57209
57209
|
createBaseVNode("p", null, toDisplayString(_ctx.$t("databaseDetail.noTable")), 1),
|
|
57210
57210
|
createBaseVNode("button", {
|
|
@@ -57411,7 +57411,7 @@ var init_database_detail = __esmMin((() => {
|
|
|
57411
57411
|
}));
|
|
57412
57412
|
//#endregion
|
|
57413
57413
|
//#region src/platform/database/components/data-editor.vue?vue&type=script&setup=true&lang.ts
|
|
57414
|
-
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;
|
|
57415
57415
|
var init_data_editor_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
57416
57416
|
init_vue_runtime_esm_bundler();
|
|
57417
57417
|
init_vue_i18n();
|
|
@@ -57423,39 +57423,39 @@ var init_data_editor_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
|
57423
57423
|
init_dist$6();
|
|
57424
57424
|
init_dist$1();
|
|
57425
57425
|
init_dist$7();
|
|
57426
|
-
_hoisted_1$
|
|
57427
|
-
_hoisted_2$
|
|
57428
|
-
_hoisted_3$
|
|
57426
|
+
_hoisted_1$3 = { class: "modal-dialog modal-lg" };
|
|
57427
|
+
_hoisted_2$3 = { class: "modal-content" };
|
|
57428
|
+
_hoisted_3$3 = {
|
|
57429
57429
|
class: "modal-header",
|
|
57430
57430
|
style: { "padding": "15px" }
|
|
57431
57431
|
};
|
|
57432
|
-
_hoisted_4$
|
|
57433
|
-
_hoisted_5$
|
|
57432
|
+
_hoisted_4$3 = { class: "modal-title" };
|
|
57433
|
+
_hoisted_5$3 = {
|
|
57434
57434
|
key: 0,
|
|
57435
57435
|
class: "bi bi-pencil-square"
|
|
57436
57436
|
};
|
|
57437
|
-
_hoisted_6$
|
|
57437
|
+
_hoisted_6$3 = {
|
|
57438
57438
|
key: 1,
|
|
57439
57439
|
class: "bi bi-plus-circle"
|
|
57440
57440
|
};
|
|
57441
|
-
_hoisted_7$
|
|
57442
|
-
_hoisted_8$
|
|
57443
|
-
_hoisted_9$
|
|
57444
|
-
_hoisted_10$
|
|
57445
|
-
_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 = {
|
|
57446
57446
|
key: 0,
|
|
57447
57447
|
class: "text-danger"
|
|
57448
57448
|
};
|
|
57449
|
-
_hoisted_12$
|
|
57450
|
-
_hoisted_13$
|
|
57451
|
-
_hoisted_14$
|
|
57449
|
+
_hoisted_12$3 = { class: "text-muted ms-2" };
|
|
57450
|
+
_hoisted_13$3 = ["value"];
|
|
57451
|
+
_hoisted_14$3 = [
|
|
57452
57452
|
"onUpdate:modelValue",
|
|
57453
57453
|
"placeholder",
|
|
57454
57454
|
"required",
|
|
57455
57455
|
"step"
|
|
57456
57456
|
];
|
|
57457
|
-
_hoisted_15$
|
|
57458
|
-
_hoisted_16$
|
|
57457
|
+
_hoisted_15$3 = ["onUpdate:modelValue", "required"];
|
|
57458
|
+
_hoisted_16$3 = [
|
|
57459
57459
|
"onUpdate:modelValue",
|
|
57460
57460
|
"placeholder",
|
|
57461
57461
|
"required"
|
|
@@ -57752,21 +57752,21 @@ var init_data_editor_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
|
57752
57752
|
return openBlock(), createElementBlock("div", {
|
|
57753
57753
|
class: normalizeClass(["modal fade", { show: __props.visible }]),
|
|
57754
57754
|
style: normalizeStyle({ display: __props.visible ? "block" : "none" })
|
|
57755
|
-
}, [createBaseVNode("div", _hoisted_1$
|
|
57756
|
-
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", {
|
|
57757
57757
|
type: "button",
|
|
57758
57758
|
class: "btn-close",
|
|
57759
57759
|
onClick: closeModal
|
|
57760
57760
|
})]),
|
|
57761
|
-
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) => {
|
|
57762
57762
|
return openBlock(), createElementBlock("div", {
|
|
57763
57763
|
key: column.name,
|
|
57764
57764
|
"data-type": column.type,
|
|
57765
57765
|
class: "col-md-6"
|
|
57766
|
-
}, [createBaseVNode("label", _hoisted_10$
|
|
57766
|
+
}, [createBaseVNode("label", _hoisted_10$3, [
|
|
57767
57767
|
createTextVNode(toDisplayString(column.name) + " ", 1),
|
|
57768
|
-
column.isPrimary ? (openBlock(), createElementBlock("span", _hoisted_11$
|
|
57769
|
-
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)
|
|
57770
57770
|
]), column.isPrimary && column.isAutoIncrement ? (openBlock(), createElementBlock("input", {
|
|
57771
57771
|
key: 0,
|
|
57772
57772
|
type: "text",
|
|
@@ -57775,7 +57775,7 @@ var init_data_editor_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
|
57775
57775
|
value: __props.isEdit ? formData.value[column.name] : _ctx.$t("dataEditor.autoGenerate"),
|
|
57776
57776
|
disabled: "",
|
|
57777
57777
|
readonly: ""
|
|
57778
|
-
}, null, 8, _hoisted_13$
|
|
57778
|
+
}, null, 8, _hoisted_13$3)) : isNumberInput(column.type) ? withDirectives((openBlock(), createElementBlock("input", {
|
|
57779
57779
|
key: 1,
|
|
57780
57780
|
type: "number",
|
|
57781
57781
|
"data-type": "number",
|
|
@@ -57784,14 +57784,14 @@ var init_data_editor_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
|
57784
57784
|
placeholder: _ctx.$t("dataEditor.inputPlaceholder", { name: column.name }),
|
|
57785
57785
|
required: !column.nullable,
|
|
57786
57786
|
step: isDecimalInput(column.type) ? "0.01" : "1"
|
|
57787
|
-
}, null, 8, _hoisted_14$
|
|
57787
|
+
}, null, 8, _hoisted_14$3)), [[vModelText, formData.value[column.name]]]) : isDateInput(column.type) ? withDirectives((openBlock(), createElementBlock("input", {
|
|
57788
57788
|
key: 2,
|
|
57789
57789
|
type: "datetime-local",
|
|
57790
57790
|
class: "form-control",
|
|
57791
57791
|
"data-type": "date",
|
|
57792
57792
|
"onUpdate:modelValue": ($event) => formData.value[column.name] = $event,
|
|
57793
57793
|
required: !column.nullable
|
|
57794
|
-
}, null, 8, _hoisted_15$
|
|
57794
|
+
}, null, 8, _hoisted_15$3)), [[vModelText, formData.value[column.name]]]) : isTextArea(column.type) ? withDirectives((openBlock(), createElementBlock("textarea", {
|
|
57795
57795
|
key: 3,
|
|
57796
57796
|
class: "form-control",
|
|
57797
57797
|
"data-type": "textarea",
|
|
@@ -57799,7 +57799,7 @@ var init_data_editor_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
|
57799
57799
|
placeholder: _ctx.$t("dataEditor.inputPlaceholder", { name: column.name }),
|
|
57800
57800
|
required: !column.nullable,
|
|
57801
57801
|
rows: "3"
|
|
57802
|
-
}, null, 8, _hoisted_16$
|
|
57802
|
+
}, null, 8, _hoisted_16$3)), [[vModelText, formData.value[column.name]]]) : isEnumInput(column.type) ? withDirectives((openBlock(), createElementBlock("select", {
|
|
57803
57803
|
key: 4,
|
|
57804
57804
|
class: "form-select",
|
|
57805
57805
|
"data-type": "select",
|
|
@@ -57837,7 +57837,7 @@ var init_data_editor_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
|
57837
57837
|
"onUpdate:modelValue": ($event) => formData.value[column.name] = $event,
|
|
57838
57838
|
placeholder: _ctx.$t("dataEditor.inputPlaceholder", { name: column.name }),
|
|
57839
57839
|
required: !column.nullable
|
|
57840
|
-
}, 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);
|
|
57841
57841
|
}), 128))])], 32)]),
|
|
57842
57842
|
createBaseVNode("div", _hoisted_27$2, [createBaseVNode("button", {
|
|
57843
57843
|
type: "button",
|
|
@@ -57869,40 +57869,40 @@ var init_data_editor = __esmMin((() => {
|
|
|
57869
57869
|
}));
|
|
57870
57870
|
//#endregion
|
|
57871
57871
|
//#region src/platform/database/components/table-data-grid.vue?vue&type=script&setup=true&lang.ts
|
|
57872
|
-
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;
|
|
57873
57873
|
var init_table_data_grid_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
57874
57874
|
init_vue_runtime_esm_bundler();
|
|
57875
57875
|
init_dataGrid();
|
|
57876
57876
|
init_database();
|
|
57877
|
-
_hoisted_1$
|
|
57878
|
-
_hoisted_2$
|
|
57879
|
-
_hoisted_3$
|
|
57880
|
-
_hoisted_4$
|
|
57881
|
-
_hoisted_5$
|
|
57882
|
-
_hoisted_6$
|
|
57883
|
-
_hoisted_7$
|
|
57884
|
-
_hoisted_8$
|
|
57885
|
-
_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 = {
|
|
57886
57886
|
key: 0,
|
|
57887
57887
|
class: "column-key text-primary ms-1",
|
|
57888
57888
|
title: "主键"
|
|
57889
57889
|
};
|
|
57890
|
-
_hoisted_10$
|
|
57891
|
-
_hoisted_11$
|
|
57890
|
+
_hoisted_10$2 = { class: "sort-icon ms-1" };
|
|
57891
|
+
_hoisted_11$2 = {
|
|
57892
57892
|
key: 0,
|
|
57893
57893
|
class: "bi bi-caret-up-fill"
|
|
57894
57894
|
};
|
|
57895
|
-
_hoisted_12$
|
|
57895
|
+
_hoisted_12$2 = {
|
|
57896
57896
|
key: 1,
|
|
57897
57897
|
class: "bi bi-caret-down-fill"
|
|
57898
57898
|
};
|
|
57899
|
-
_hoisted_13$
|
|
57899
|
+
_hoisted_13$2 = {
|
|
57900
57900
|
key: 2,
|
|
57901
57901
|
class: "bi bi-caret-up text-muted opacity-50"
|
|
57902
57902
|
};
|
|
57903
|
-
_hoisted_14$
|
|
57904
|
-
_hoisted_15$
|
|
57905
|
-
_hoisted_16$
|
|
57903
|
+
_hoisted_14$2 = { class: "header-sub" };
|
|
57904
|
+
_hoisted_15$2 = { class: "text-muted column-type" };
|
|
57905
|
+
_hoisted_16$2 = {
|
|
57906
57906
|
key: 0,
|
|
57907
57907
|
class: "text-muted column-comment ms-1"
|
|
57908
57908
|
};
|
|
@@ -58042,7 +58042,7 @@ var init_table_data_grid_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
|
58042
58042
|
loadData();
|
|
58043
58043
|
});
|
|
58044
58044
|
return (_ctx, _cache) => {
|
|
58045
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
58045
|
+
return openBlock(), createElementBlock("div", _hoisted_1$2, [createBaseVNode("div", _hoisted_2$2, [createVNode(dataGrid_default, {
|
|
58046
58046
|
data: tableData.value,
|
|
58047
58047
|
columns: gridColumns.value,
|
|
58048
58048
|
"is-loading": loading.value,
|
|
@@ -58053,13 +58053,13 @@ var init_table_data_grid_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
|
58053
58053
|
onPageChanged: handlePageChange,
|
|
58054
58054
|
onSortChanged: handleSortChange
|
|
58055
58055
|
}, createSlots({
|
|
58056
|
-
actions: withCtx(({ row }) => [createBaseVNode("div", _hoisted_3$
|
|
58056
|
+
actions: withCtx(({ row }) => [createBaseVNode("div", _hoisted_3$2, [createBaseVNode("button", {
|
|
58057
58057
|
class: "btn btn-outline-primary btn-sm",
|
|
58058
58058
|
onClick: withModifiers(($event) => emits("edit-row", row), ["stop"])
|
|
58059
|
-
}, [..._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", {
|
|
58060
58060
|
class: "btn btn-outline-danger btn-sm",
|
|
58061
58061
|
onClick: withModifiers(($event) => emits("delete-row", row), ["stop"])
|
|
58062
|
-
}, [..._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)])]),
|
|
58063
58063
|
_: 2
|
|
58064
58064
|
}, [
|
|
58065
58065
|
renderList(props.columns, (column) => {
|
|
@@ -58072,11 +58072,11 @@ var init_table_data_grid_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
|
58072
58072
|
order: sortField.value === column.name ? sortOrder.value === "ASC" ? "DESC" : sortOrder.value === "DESC" ? "" : "ASC" : "ASC"
|
|
58073
58073
|
}),
|
|
58074
58074
|
title: column.comment || column.name
|
|
58075
|
-
}, [createBaseVNode("div", _hoisted_7$
|
|
58076
|
-
createBaseVNode("span", _hoisted_8$
|
|
58077
|
-
column.isPrimary ? (openBlock(), createElementBlock("span", _hoisted_9$
|
|
58078
|
-
createBaseVNode("span", _hoisted_10$
|
|
58079
|
-
]), 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)])
|
|
58080
58080
|
};
|
|
58081
58081
|
}),
|
|
58082
58082
|
renderList(props.columns, (column) => {
|
|
@@ -58134,7 +58134,7 @@ var init_table_data_grid = __esmMin((() => {
|
|
|
58134
58134
|
}));
|
|
58135
58135
|
//#endregion
|
|
58136
58136
|
//#region src/platform/database/components/table-detail.vue?vue&type=script&setup=true&lang.ts
|
|
58137
|
-
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;
|
|
58138
58138
|
var init_table_detail_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
58139
58139
|
init_vue_runtime_esm_bundler();
|
|
58140
58140
|
init_vue_i18n();
|
|
@@ -58146,25 +58146,25 @@ var init_table_detail_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
|
58146
58146
|
init_export();
|
|
58147
58147
|
init_modal();
|
|
58148
58148
|
init_database_types();
|
|
58149
|
-
_hoisted_1$
|
|
58150
|
-
_hoisted_2$
|
|
58151
|
-
_hoisted_3$
|
|
58152
|
-
_hoisted_4$
|
|
58153
|
-
_hoisted_5$
|
|
58154
|
-
_hoisted_6$
|
|
58155
|
-
_hoisted_7$
|
|
58156
|
-
_hoisted_8$
|
|
58157
|
-
_hoisted_9$
|
|
58158
|
-
_hoisted_10$
|
|
58159
|
-
_hoisted_11$
|
|
58160
|
-
_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 = {
|
|
58161
58161
|
key: 0,
|
|
58162
58162
|
class: "stat-item"
|
|
58163
58163
|
};
|
|
58164
|
-
_hoisted_13$
|
|
58165
|
-
_hoisted_14$
|
|
58166
|
-
_hoisted_15$
|
|
58167
|
-
_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" };
|
|
58168
58168
|
_hoisted_17$1 = { class: "stat-label" };
|
|
58169
58169
|
_hoisted_18$1 = { class: "stat-item" };
|
|
58170
58170
|
_hoisted_19$1 = { class: "stat-value" };
|
|
@@ -58208,8 +58208,8 @@ var init_table_detail_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
|
58208
58208
|
key: 0,
|
|
58209
58209
|
class: "badge bg-primary"
|
|
58210
58210
|
};
|
|
58211
|
-
_hoisted_48
|
|
58212
|
-
_hoisted_49
|
|
58211
|
+
_hoisted_48 = { key: 1 };
|
|
58212
|
+
_hoisted_49 = {
|
|
58213
58213
|
key: 0,
|
|
58214
58214
|
class: "badge bg-success"
|
|
58215
58215
|
};
|
|
@@ -58581,16 +58581,16 @@ var init_table_detail_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
|
58581
58581
|
}
|
|
58582
58582
|
}
|
|
58583
58583
|
return (_ctx, _cache) => {
|
|
58584
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
58585
|
-
createBaseVNode("div", _hoisted_2$
|
|
58586
|
-
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),
|
|
58587
58587
|
_cache[11] || (_cache[11] = createBaseVNode("i", { class: "bi bi-chevron-right" }, null, -1)),
|
|
58588
|
-
createBaseVNode("span", _hoisted_9$
|
|
58588
|
+
createBaseVNode("span", _hoisted_9$1, toDisplayString(__props.database), 1),
|
|
58589
58589
|
_cache[12] || (_cache[12] = createBaseVNode("i", { class: "bi bi-chevron-right" }, null, -1)),
|
|
58590
|
-
createBaseVNode("span", _hoisted_10$
|
|
58591
|
-
])])]), createBaseVNode("div", _hoisted_11$
|
|
58592
|
-
__props.table?.rowCount !== void 0 ? (openBlock(), createElementBlock("div", _hoisted_12$
|
|
58593
|
-
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)]),
|
|
58594
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)]),
|
|
58595
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)
|
|
58596
58596
|
])])]),
|
|
@@ -58700,8 +58700,8 @@ var init_table_detail_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
|
58700
58700
|
createBaseVNode("td", null, [createBaseVNode("code", null, toDisplayString(column.type), 1)]),
|
|
58701
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)]),
|
|
58702
58702
|
createBaseVNode("td", null, toDisplayString(column.defaultValue || "-"), 1),
|
|
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
|
|
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, "-"))]),
|
|
58705
58705
|
createBaseVNode("td", null, toDisplayString(column.comment || "-"), 1),
|
|
58706
58706
|
createBaseVNode("td", null, [createBaseVNode("div", _hoisted_51, [createBaseVNode("button", {
|
|
58707
58707
|
class: "btn btn-outline-primary btn-sm",
|
|
@@ -58815,116 +58815,8 @@ var init_table_detail = __esmMin((() => {
|
|
|
58815
58815
|
table_detail_default = /*#__PURE__*/ _plugin_vue_export_helper_default(table_detail_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-7e9c9695"]]);
|
|
58816
58816
|
}));
|
|
58817
58817
|
//#endregion
|
|
58818
|
-
//#region src/platform/database/components/about.vue?vue&type=script&setup=true&lang.ts
|
|
58819
|
-
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;
|
|
58820
|
-
var init_about_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
58821
|
-
init_vue_runtime_esm_bundler();
|
|
58822
|
-
init_vue_i18n();
|
|
58823
|
-
_hoisted_1$1 = { class: "about-page" };
|
|
58824
|
-
_hoisted_2$1 = { class: "about-header" };
|
|
58825
|
-
_hoisted_3$1 = { class: "about-title" };
|
|
58826
|
-
_hoisted_4$1 = { class: "about-content" };
|
|
58827
|
-
_hoisted_5$1 = { class: "about-section" };
|
|
58828
|
-
_hoisted_6$1 = { class: "about-section" };
|
|
58829
|
-
_hoisted_7$1 = { class: "about-links" };
|
|
58830
|
-
_hoisted_8$1 = {
|
|
58831
|
-
href: "https://surl.fit/tools/tools/fdb2",
|
|
58832
|
-
target: "_blank",
|
|
58833
|
-
class: "about-link"
|
|
58834
|
-
};
|
|
58835
|
-
_hoisted_9$1 = {
|
|
58836
|
-
href: "https://github.com/fefeding/fdb2/",
|
|
58837
|
-
target: "_blank",
|
|
58838
|
-
class: "about-link"
|
|
58839
|
-
};
|
|
58840
|
-
_hoisted_10$1 = { class: "about-section" };
|
|
58841
|
-
_hoisted_11$1 = { class: "feature-list" };
|
|
58842
|
-
_hoisted_12$1 = { class: "about-section" };
|
|
58843
|
-
_hoisted_13$1 = { class: "database-types" };
|
|
58844
|
-
_hoisted_14$1 = { class: "db-name" };
|
|
58845
|
-
_hoisted_15$1 = { class: "db-port" };
|
|
58846
|
-
_hoisted_16$1 = { class: "about-section" };
|
|
58847
|
-
about_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComponent({
|
|
58848
|
-
__name: "about",
|
|
58849
|
-
setup(__props) {
|
|
58850
|
-
const { t } = useI18n();
|
|
58851
|
-
const databaseTypes = [
|
|
58852
|
-
{
|
|
58853
|
-
name: "MySQL",
|
|
58854
|
-
port: "3306"
|
|
58855
|
-
},
|
|
58856
|
-
{
|
|
58857
|
-
name: "PostgreSQL",
|
|
58858
|
-
port: "5432"
|
|
58859
|
-
},
|
|
58860
|
-
{
|
|
58861
|
-
name: "SQLite",
|
|
58862
|
-
port: "-"
|
|
58863
|
-
},
|
|
58864
|
-
{
|
|
58865
|
-
name: "SQL Server",
|
|
58866
|
-
port: "1433"
|
|
58867
|
-
},
|
|
58868
|
-
{
|
|
58869
|
-
name: "Oracle",
|
|
58870
|
-
port: "1521"
|
|
58871
|
-
},
|
|
58872
|
-
{
|
|
58873
|
-
name: "CockroachDB",
|
|
58874
|
-
port: "26257"
|
|
58875
|
-
},
|
|
58876
|
-
{
|
|
58877
|
-
name: "MongoDB",
|
|
58878
|
-
port: "27017"
|
|
58879
|
-
},
|
|
58880
|
-
{
|
|
58881
|
-
name: "SAP HANA",
|
|
58882
|
-
port: "39013"
|
|
58883
|
-
},
|
|
58884
|
-
{
|
|
58885
|
-
name: "ClickHouse",
|
|
58886
|
-
port: "8123"
|
|
58887
|
-
}
|
|
58888
|
-
];
|
|
58889
|
-
return (_ctx, _cache) => {
|
|
58890
|
-
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, [
|
|
58891
|
-
createBaseVNode("section", _hoisted_5$1, [createBaseVNode("h3", null, toDisplayString(_ctx.$t("aboutPage.aboutTitle")), 1), createBaseVNode("p", null, toDisplayString(_ctx.$t("aboutPage.aboutDesc")), 1)]),
|
|
58892
|
-
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)])])]),
|
|
58893
|
-
createBaseVNode("section", _hoisted_10$1, [createBaseVNode("h3", null, toDisplayString(_ctx.$t("aboutPage.coreAdvantages")), 1), createBaseVNode("ul", _hoisted_11$1, [
|
|
58894
|
-
createBaseVNode("li", null, [_cache[4] || (_cache[4] = createBaseVNode("i", { class: "bi bi-check-circle" }, null, -1)), createTextVNode(" " + toDisplayString(_ctx.$t("aboutPage.advZeroConfig")), 1)]),
|
|
58895
|
-
createBaseVNode("li", null, [_cache[5] || (_cache[5] = createBaseVNode("i", { class: "bi bi-check-circle" }, null, -1)), createTextVNode(" " + toDisplayString(_ctx.$t("aboutPage.advCrossPlatform")), 1)]),
|
|
58896
|
-
createBaseVNode("li", null, [_cache[6] || (_cache[6] = createBaseVNode("i", { class: "bi bi-check-circle" }, null, -1)), createTextVNode(" " + toDisplayString(_ctx.$t("aboutPage.advLightweight")), 1)]),
|
|
58897
|
-
createBaseVNode("li", null, [_cache[7] || (_cache[7] = createBaseVNode("i", { class: "bi bi-check-circle" }, null, -1)), createTextVNode(" " + toDisplayString(_ctx.$t("aboutPage.advLocal")), 1)]),
|
|
58898
|
-
createBaseVNode("li", null, [_cache[8] || (_cache[8] = createBaseVNode("i", { class: "bi bi-check-circle" }, null, -1)), createTextVNode(" " + toDisplayString(_ctx.$t("aboutPage.advOffline")), 1)])
|
|
58899
|
-
])]),
|
|
58900
|
-
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) => {
|
|
58901
|
-
return createBaseVNode("div", {
|
|
58902
|
-
class: "db-type",
|
|
58903
|
-
key: db.name
|
|
58904
|
-
}, [createBaseVNode("span", _hoisted_14$1, toDisplayString(db.name), 1), createBaseVNode("span", _hoisted_15$1, toDisplayString(db.port), 1)]);
|
|
58905
|
-
}), 64))])]),
|
|
58906
|
-
createBaseVNode("section", _hoisted_16$1, [createBaseVNode("h3", null, toDisplayString(_ctx.$t("aboutPage.license")), 1), createBaseVNode("p", null, toDisplayString(_ctx.$t("aboutPage.licenseDesc")), 1)])
|
|
58907
|
-
])]);
|
|
58908
|
-
};
|
|
58909
|
-
}
|
|
58910
|
-
});
|
|
58911
|
-
}));
|
|
58912
|
-
//#endregion
|
|
58913
|
-
//#region src/platform/database/components/about.vue?vue&type=style&index=0&scoped=5a974f04&lang.css
|
|
58914
|
-
var init_about_vue_vue_type_style_index_0_scoped_5a974f04_lang = __esmMin((() => {}));
|
|
58915
|
-
//#endregion
|
|
58916
|
-
//#region src/platform/database/components/about.vue
|
|
58917
|
-
var about_default;
|
|
58918
|
-
var init_about = __esmMin((() => {
|
|
58919
|
-
init_about_vue_vue_type_script_setup_true_lang();
|
|
58920
|
-
init_about_vue_vue_type_script_setup_true_lang();
|
|
58921
|
-
init_about_vue_vue_type_style_index_0_scoped_5a974f04_lang();
|
|
58922
|
-
init__plugin_vue_export_helper();
|
|
58923
|
-
about_default = /*#__PURE__*/ _plugin_vue_export_helper_default(about_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-5a974f04"]]);
|
|
58924
|
-
}));
|
|
58925
|
-
//#endregion
|
|
58926
58818
|
//#region src/platform/database/explorer.vue?vue&type=script&setup=true&lang.ts
|
|
58927
|
-
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;
|
|
58928
58820
|
var init_explorer_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
58929
58821
|
init_vue_runtime_esm_bundler();
|
|
58930
58822
|
init_vue_router();
|
|
@@ -58935,7 +58827,6 @@ var init_explorer_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
|
58935
58827
|
init_connection_detail();
|
|
58936
58828
|
init_database_detail();
|
|
58937
58829
|
init_table_detail();
|
|
58938
|
-
init_about();
|
|
58939
58830
|
init_modal();
|
|
58940
58831
|
_hoisted_1 = { class: "database-explorer" };
|
|
58941
58832
|
_hoisted_2 = { class: "explorer-layout" };
|
|
@@ -58999,14 +58890,12 @@ var init_explorer_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
|
58999
58890
|
class: "empty-state"
|
|
59000
58891
|
};
|
|
59001
58892
|
_hoisted_44 = { class: "empty-text" };
|
|
59002
|
-
_hoisted_45 = { class: "
|
|
59003
|
-
_hoisted_46 = {
|
|
59004
|
-
|
|
59005
|
-
_hoisted_48 = {
|
|
59006
|
-
key: 4,
|
|
58893
|
+
_hoisted_45 = { class: "explorer-main" };
|
|
58894
|
+
_hoisted_46 = {
|
|
58895
|
+
key: 3,
|
|
59007
58896
|
class: "default-state"
|
|
59008
58897
|
};
|
|
59009
|
-
|
|
58898
|
+
_hoisted_47 = { class: "default-content" };
|
|
59010
58899
|
explorer_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComponent({
|
|
59011
58900
|
__name: "explorer",
|
|
59012
58901
|
setup(__props) {
|
|
@@ -59041,7 +58930,6 @@ var init_explorer_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
|
59041
58930
|
const loadingMessage = ref("加载中...");
|
|
59042
58931
|
const connectionEditorRef = ref();
|
|
59043
58932
|
const toastRef = ref();
|
|
59044
|
-
const showAbout = ref(false);
|
|
59045
58933
|
const databaseInfo = computed(() => {
|
|
59046
58934
|
if (!selectedConnection.value || !selectedDatabase.value) return null;
|
|
59047
58935
|
return databaseInfoCache.value.get(`${selectedConnection.value.id}-${selectedDatabase.value}`);
|
|
@@ -59572,9 +59460,6 @@ var init_explorer_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
|
59572
59460
|
function showToast(title, message, type = "success") {
|
|
59573
59461
|
toastRef.value?.addToast(title, message, type);
|
|
59574
59462
|
}
|
|
59575
|
-
function showAboutPage() {
|
|
59576
|
-
showAbout.value = true;
|
|
59577
|
-
}
|
|
59578
59463
|
return (_ctx, _cache) => {
|
|
59579
59464
|
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
59580
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", {
|
|
@@ -59585,99 +59470,92 @@ var init_explorer_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
|
59585
59470
|
class: "btn btn-sm btn-outline-success",
|
|
59586
59471
|
onClick: showAddConnectionModal,
|
|
59587
59472
|
title: _ctx.$t("explorer.addConnection")
|
|
59588
|
-
}, [..._cache[2] || (_cache[2] = [createBaseVNode("i", { class: "bi bi-plus" }, null, -1)])], 8, _hoisted_8)])]), createBaseVNode("div", _hoisted_9, [
|
|
59589
|
-
|
|
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) => {
|
|
59590
59510
|
return openBlock(), createElementBlock("div", {
|
|
59591
|
-
key: connection.id
|
|
59592
|
-
class: normalizeClass(["tree-node
|
|
59593
|
-
}, [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, [
|
|
59594
59514
|
createBaseVNode("div", {
|
|
59595
59515
|
class: "node-expand",
|
|
59596
|
-
onClick: ($event) =>
|
|
59597
|
-
}, [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),
|
|
59598
59518
|
createBaseVNode("div", {
|
|
59599
59519
|
class: "node-main",
|
|
59600
|
-
onClick: ($event) =>
|
|
59601
|
-
}, [createBaseVNode("div",
|
|
59602
|
-
createBaseVNode("div",
|
|
59603
|
-
|
|
59604
|
-
|
|
59605
|
-
|
|
59606
|
-
|
|
59607
|
-
|
|
59608
|
-
|
|
59609
|
-
|
|
59610
|
-
|
|
59611
|
-
|
|
59612
|
-
|
|
59613
|
-
createBaseVNode("button", {
|
|
59614
|
-
class: "btn btn-sm btn-icon",
|
|
59615
|
-
onClick: withModifiers(($event) => testConnection(connection), ["stop"]),
|
|
59616
|
-
title: _ctx.$t("connection.testConnection")
|
|
59617
|
-
}, [..._cache[5] || (_cache[5] = [createBaseVNode("i", { class: "bi bi-wifi" }, null, -1)])], 8, _hoisted_21),
|
|
59618
|
-
createBaseVNode("button", {
|
|
59619
|
-
class: "btn btn-sm btn-icon btn-icon-danger",
|
|
59620
|
-
onClick: withModifiers(($event) => deleteConnection(connection), ["stop"]),
|
|
59621
|
-
title: _ctx.$t("connection.deleteConnection")
|
|
59622
|
-
}, [..._cache[6] || (_cache[6] = [createBaseVNode("i", { class: "bi bi-trash" }, null, -1)])], 8, _hoisted_22)
|
|
59623
|
-
]),
|
|
59624
|
-
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)
|
|
59625
|
-
]), 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) => {
|
|
59626
59533
|
return openBlock(), createElementBlock("div", {
|
|
59627
|
-
key: `${connection.id}-${database}`,
|
|
59628
|
-
class: normalizeClass(["tree-node
|
|
59629
|
-
}, [createBaseVNode("div",
|
|
59630
|
-
createBaseVNode("div", {
|
|
59631
|
-
class: "node-expand",
|
|
59632
|
-
onClick: ($event) => toggleDatabase(connection, database)
|
|
59633
|
-
}, [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)),
|
|
59634
59538
|
createBaseVNode("div", {
|
|
59635
59539
|
class: "node-main",
|
|
59636
|
-
onClick: ($event) =>
|
|
59637
|
-
}, [
|
|
59638
|
-
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", {
|
|
59639
59547
|
class: "btn btn-sm btn-icon",
|
|
59640
|
-
onClick: withModifiers(($event) =>
|
|
59641
|
-
title: _ctx.$t("explorer.
|
|
59642
|
-
}, [..._cache[
|
|
59643
|
-
|
|
59644
|
-
onClick: withModifiers(($event) => deleteDatabase(connection, database), ["stop"]),
|
|
59645
|
-
title: _ctx.$t("explorer.deleteDatabase")
|
|
59646
|
-
}, [..._cache[10] || (_cache[10] = [createBaseVNode("i", { class: "bi bi-trash" }, null, -1)])], 8, _hoisted_32)]),
|
|
59647
|
-
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)
|
|
59648
|
-
]), expandedDatabases.value.has(`${connection.id}-${database}`) ? (openBlock(), createElementBlock("div", _hoisted_34, [(openBlock(true), createElementBlock(Fragment, null, renderList(getTablesForDatabase(connection.id, database), (table) => {
|
|
59649
|
-
return openBlock(), createElementBlock("div", {
|
|
59650
|
-
key: `${connection.id}-${database}-${table.name}`,
|
|
59651
|
-
class: normalizeClass(["tree-node table-node", { "selected": selectedTable.value?.name === table.name && selectedDatabase.value === database && selectedConnection.value?.id === connection.id }])
|
|
59652
|
-
}, [createBaseVNode("div", _hoisted_35, [
|
|
59653
|
-
_cache[14] || (_cache[14] = createBaseVNode("div", { class: "node-icon" }, [createBaseVNode("i", { class: "bi bi-table" })], -1)),
|
|
59654
|
-
createBaseVNode("div", {
|
|
59655
|
-
class: "node-main",
|
|
59656
|
-
onClick: ($event) => selectTable(connection, database, table)
|
|
59657
|
-
}, [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),
|
|
59658
|
-
createBaseVNode("div", _hoisted_40, [createBaseVNode("button", {
|
|
59659
|
-
class: "btn btn-sm btn-icon",
|
|
59660
|
-
onClick: withModifiers(($event) => refreshTable(connection, database, table), ["stop"]),
|
|
59661
|
-
title: _ctx.$t("explorer.refreshTable")
|
|
59662
|
-
}, [..._cache[12] || (_cache[12] = [createBaseVNode("i", { class: "bi bi-arrow-clockwise" }, null, -1)])], 8, _hoisted_41), createBaseVNode("button", {
|
|
59663
|
-
class: "btn btn-sm btn-icon",
|
|
59664
|
-
onClick: withModifiers(($event) => viewTableStructure(connection, database, table), ["stop"]),
|
|
59665
|
-
title: _ctx.$t("explorer.viewStructure")
|
|
59666
|
-
}, [..._cache[13] || (_cache[13] = [createBaseVNode("i", { class: "bi bi-diagram-3" }, null, -1)])], 8, _hoisted_42)])
|
|
59667
|
-
])], 2);
|
|
59668
|
-
}), 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);
|
|
59669
59552
|
}), 128))])) : createCommentVNode("", true)], 2);
|
|
59670
|
-
}), 128))]),
|
|
59671
|
-
|
|
59672
|
-
|
|
59673
|
-
|
|
59674
|
-
|
|
59675
|
-
|
|
59676
|
-
class: "sidebar-tool-info",
|
|
59677
|
-
onClick: showAboutPage
|
|
59678
|
-
}, [_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)])])
|
|
59679
|
-
])]), createBaseVNode("div", _hoisted_47, [showAbout.value ? (openBlock(), createBlock(about_default, { key: 0 })) : selectedConnection.value && !selectedDatabase.value && !selectedTable.value ? (openBlock(), createBlock(connection_detail_default, {
|
|
59680
|
-
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,
|
|
59681
59559
|
connection: selectedConnection.value,
|
|
59682
59560
|
onTestConnection: handleTestConnection,
|
|
59683
59561
|
onEditConnection: handleEditConnection,
|
|
@@ -59687,7 +59565,7 @@ var init_explorer_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
|
59687
59565
|
onViewLogs: handleViewLogs,
|
|
59688
59566
|
onCreateDatabase: handleCreateDatabase
|
|
59689
59567
|
}, null, 8, ["connection"])) : selectedConnection.value && selectedDatabase.value && !selectedTable.value ? (openBlock(), createBlock(database_detail_default, {
|
|
59690
|
-
key:
|
|
59568
|
+
key: 1,
|
|
59691
59569
|
connection: selectedConnection.value,
|
|
59692
59570
|
database: selectedDatabase.value,
|
|
59693
59571
|
tables: getTablesForDatabase(selectedConnection.value.id || "", selectedDatabase.value),
|
|
@@ -59704,7 +59582,7 @@ var init_explorer_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
|
59704
59582
|
"database-info",
|
|
59705
59583
|
"loading"
|
|
59706
59584
|
])) : selectedConnection.value && selectedDatabase.value && selectedTable.value ? (openBlock(), createBlock(table_detail_default, {
|
|
59707
|
-
key:
|
|
59585
|
+
key: 2,
|
|
59708
59586
|
connection: selectedConnection.value,
|
|
59709
59587
|
database: selectedDatabase.value,
|
|
59710
59588
|
table: selectedTable.value,
|
|
@@ -59733,8 +59611,8 @@ var init_explorer_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
|
59733
59611
|
"total",
|
|
59734
59612
|
"sql-result",
|
|
59735
59613
|
"sql-executing"
|
|
59736
|
-
])) : (openBlock(), createElementBlock("div",
|
|
59737
|
-
_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)),
|
|
59738
59616
|
createBaseVNode("h5", null, toDisplayString(_ctx.$t("explorer.defaultTitle")), 1),
|
|
59739
59617
|
createBaseVNode("p", null, toDisplayString(_ctx.$t("explorer.defaultDesc")), 1)
|
|
59740
59618
|
])]))])]),
|
|
@@ -59753,8 +59631,8 @@ var init_explorer_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
|
59753
59631
|
});
|
|
59754
59632
|
}));
|
|
59755
59633
|
//#endregion
|
|
59756
|
-
//#region src/platform/database/explorer.vue?vue&type=style&index=0&scoped=
|
|
59757
|
-
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((() => {}));
|
|
59758
59636
|
//#endregion
|
|
59759
59637
|
//#region src/platform/database/explorer.vue
|
|
59760
59638
|
var explorer_default;
|
|
@@ -59762,8 +59640,8 @@ var explorer_default;
|
|
|
59762
59640
|
__esmMin((() => {
|
|
59763
59641
|
init_explorer_vue_vue_type_script_setup_true_lang();
|
|
59764
59642
|
init_explorer_vue_vue_type_script_setup_true_lang();
|
|
59765
|
-
|
|
59643
|
+
init_explorer_vue_vue_type_style_index_0_scoped_96b10f51_lang();
|
|
59766
59644
|
init__plugin_vue_export_helper();
|
|
59767
|
-
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"]]);
|
|
59768
59646
|
}))();
|
|
59769
59647
|
export { explorer_default as default };
|