fdb2 1.0.34 → 1.0.36
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 +24 -3
- package/dist/public/explorer.css +1322 -1235
- package/dist/public/explorer.js +908 -872
- package/dist/public/index.css +717 -118
- package/dist/public/index.js +277 -27
- package/dist/public/layout.css +320 -125
- package/dist/public/layout.js +186 -28
- package/dist/public/vue.js +1 -1
- package/dist/server/index.d.ts.map +1 -1
- package/dist/server/index.js.map +1 -1
- package/dist/server/index.ts +0 -1
- package/dist/server/service/database/clickhouse-connection.d.ts.map +1 -1
- package/dist/server/service/database/clickhouse-connection.js +3 -3
- package/dist/server/service/database/clickhouse-connection.js.map +1 -1
- package/dist/server/service/database/clickhouse-connection.ts +3 -3
- package/package.json +6 -2
- package/public/fdb2.png +0 -0
package/dist/public/explorer.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { i as __require, n as __esmMin, t as __commonJSMin } from "./rolldown-runtime.js";
|
|
2
|
-
import { C as
|
|
3
|
-
import { _ as
|
|
2
|
+
import { A as defineComponent, B as renderList, C as createBlock, D as createStaticVNode, E as createSlots, F as nextTick, G as withCtx, I as onBeforeUnmount, K as withDirectives, L as onMounted, O as createTextVNode, S as createBaseVNode, T as createElementBlock, W as watch, _ as vModelText, a as init_vue_router, b as Fragment, ct as toDisplayString, d as init_vue_runtime_esm_bundler, g as vModelSelect, h as vModelCheckbox, k as createVNode, l as init_vue_i18n, o as useRoute, ot as normalizeClass, s as useRouter, st as normalizeStyle, tt as ref, u as useI18n, v as vShow, w as createCommentVNode, x as computed, y as withModifiers, z as openBlock } from "./vue.js";
|
|
3
|
+
import { A as defineStore, C as init_rpc, D as vscodeSaveFile, E as vscodePickSaveFolder, O as init_detect, S as blobToBase64, T as vscodeNotifyExported, _ as init__plugin_vue_export_helper, a as dataGrid_default, b as init_base, c as pagination_default, d as init_loading, f as init_toast, g as _plugin_vue_export_helper_default, h as toast_default, i as showConfirm, j as init_pinia, k as isVSCode, l as init_modal$1, m as init_toast$1, n as init_modal$2, o as init_dataGrid, p as toast, r as showAlert, s as init_pagination, t as getModalInstance, u as modal_default, v as getT, w as isVscodeWebview, x as request, y as init_i18n } from "./index.js";
|
|
4
4
|
//#region src/service/database.ts
|
|
5
5
|
var ConnectionService, DatabaseService;
|
|
6
6
|
var init_database = __esmMin((() => {
|
|
@@ -414,32 +414,32 @@ var init_database = __esmMin((() => {
|
|
|
414
414
|
}));
|
|
415
415
|
//#endregion
|
|
416
416
|
//#region src/components/connection-editor/index.vue?vue&type=script&setup=true&lang.ts
|
|
417
|
-
var _hoisted_1$
|
|
417
|
+
var _hoisted_1$9, _hoisted_2$9, _hoisted_3$9, _hoisted_4$9, _hoisted_5$9, _hoisted_6$9, _hoisted_7$9, _hoisted_8$9, _hoisted_9$9, _hoisted_10$9, _hoisted_11$9, _hoisted_12$9, _hoisted_13$9, _hoisted_14$9, _hoisted_15$9, _hoisted_16$9, _hoisted_17$9, _hoisted_18$9, _hoisted_19$9, _hoisted_20$8, _hoisted_21$8, _hoisted_22$8, _hoisted_23$8, _hoisted_24$8, _hoisted_25$8, _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$4, _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" };
|
|
@@ -448,7 +448,7 @@ var init_index_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
|
448
448
|
_hoisted_22$8 = { class: "form-label-modern" };
|
|
449
449
|
_hoisted_23$8 = ["placeholder"];
|
|
450
450
|
_hoisted_24$8 = { class: "form-group-modern" };
|
|
451
|
-
_hoisted_25$
|
|
451
|
+
_hoisted_25$8 = { class: "form-label-modern" };
|
|
452
452
|
_hoisted_26$7 = ["placeholder"];
|
|
453
453
|
_hoisted_27$7 = { class: "form-group-modern" };
|
|
454
454
|
_hoisted_28$7 = { class: "form-label-modern" };
|
|
@@ -474,11 +474,11 @@ 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
|
-
_hoisted_52$
|
|
481
|
+
_hoisted_52$4 = { class: "section-content" };
|
|
482
482
|
_hoisted_53$4 = { class: "form-group-modern" };
|
|
483
483
|
_hoisted_54$4 = { class: "form-label-modern" };
|
|
484
484
|
_hoisted_55$4 = { class: "form-check-modern" };
|
|
@@ -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),
|
|
@@ -779,7 +779,7 @@ var init_index_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
|
779
779
|
void 0,
|
|
780
780
|
{ number: true }
|
|
781
781
|
]])]),
|
|
782
|
-
createBaseVNode("div", _hoisted_24$8, [createBaseVNode("label", _hoisted_25$
|
|
782
|
+
createBaseVNode("div", _hoisted_24$8, [createBaseVNode("label", _hoisted_25$8, [
|
|
783
783
|
_cache[21] || (_cache[21] = createBaseVNode("i", { class: "bi bi-database me-2" }, null, -1)),
|
|
784
784
|
createTextVNode(toDisplayString(_ctx.$t("connection.databaseName")) + " ", 1),
|
|
785
785
|
_cache[22] || (_cache[22] = createBaseVNode("span", { class: "required" }, "*", -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$4, [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),
|
|
@@ -859,17 +859,17 @@ var init_index_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
|
859
859
|
});
|
|
860
860
|
}));
|
|
861
861
|
//#endregion
|
|
862
|
-
//#region src/components/connection-editor/index.vue?vue&type=style&index=0&scoped=
|
|
863
|
-
var
|
|
862
|
+
//#region src/components/connection-editor/index.vue?vue&type=style&index=0&scoped=7681a313&lang.css
|
|
863
|
+
var init_index_vue_vue_type_style_index_0_scoped_7681a313_lang = __esmMin((() => {}));
|
|
864
864
|
//#endregion
|
|
865
865
|
//#region src/components/connection-editor/index.vue
|
|
866
866
|
var connection_editor_default;
|
|
867
867
|
var init_connection_editor = __esmMin((() => {
|
|
868
868
|
init_index_vue_vue_type_script_setup_true_lang();
|
|
869
869
|
init_index_vue_vue_type_script_setup_true_lang();
|
|
870
|
-
|
|
870
|
+
init_index_vue_vue_type_style_index_0_scoped_7681a313_lang();
|
|
871
871
|
init__plugin_vue_export_helper();
|
|
872
|
-
connection_editor_default = /*#__PURE__*/ _plugin_vue_export_helper_default(index_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-
|
|
872
|
+
connection_editor_default = /*#__PURE__*/ _plugin_vue_export_helper_default(index_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-7681a313"]]);
|
|
873
873
|
})), ModalHelper, modal;
|
|
874
874
|
var init_modal = __esmMin((() => {
|
|
875
875
|
init_vue_runtime_esm_bundler();
|
|
@@ -53039,7 +53039,20 @@ function exportDataToJSON(data, filename = "export.json") {
|
|
|
53039
53039
|
const jsonContent = JSON.stringify(data, null, 2);
|
|
53040
53040
|
downloadFile(new Blob([jsonContent], { type: "application/json;charset=utf-8;" }), filename);
|
|
53041
53041
|
}
|
|
53042
|
-
function downloadFile(blob, filename) {
|
|
53042
|
+
async function downloadFile(blob, filename) {
|
|
53043
|
+
if (isVscodeWebview()) {
|
|
53044
|
+
const ext = (filename.split(".").pop() || "").toLowerCase();
|
|
53045
|
+
try {
|
|
53046
|
+
await vscodeSaveFile({
|
|
53047
|
+
filename,
|
|
53048
|
+
base64: await blobToBase64(blob),
|
|
53049
|
+
filters: ext ? { [`${ext.toUpperCase()} 文件`]: [ext] } : void 0
|
|
53050
|
+
});
|
|
53051
|
+
} catch (e) {
|
|
53052
|
+
console.error("[vscode] 保存文件失败:", e);
|
|
53053
|
+
}
|
|
53054
|
+
return;
|
|
53055
|
+
}
|
|
53043
53056
|
const url = URL.createObjectURL(blob);
|
|
53044
53057
|
const link = document.createElement("a");
|
|
53045
53058
|
link.href = url;
|
|
@@ -53055,10 +53068,57 @@ function formatFileName(baseName, extension) {
|
|
|
53055
53068
|
}
|
|
53056
53069
|
var init_export = __esmMin((() => {
|
|
53057
53070
|
init_xlsx();
|
|
53071
|
+
init_rpc();
|
|
53058
53072
|
}));
|
|
53059
53073
|
//#endregion
|
|
53074
|
+
//#region src/platform/database/utils/theme.ts
|
|
53075
|
+
function isDarkTheme() {
|
|
53076
|
+
if (typeof document === "undefined") return false;
|
|
53077
|
+
const cls = document.body?.classList;
|
|
53078
|
+
if (cls && (cls.contains("vscode-light") || cls.contains("vscode-dark") || cls.contains("vscode-high-contrast"))) return cls.contains("vscode-dark") || cls.contains("vscode-high-contrast");
|
|
53079
|
+
if (cls?.contains("platform-desktop")) return true;
|
|
53080
|
+
return typeof window !== "undefined" && !!window.matchMedia?.("(prefers-color-scheme: dark)").matches;
|
|
53081
|
+
}
|
|
53082
|
+
/** 监听主题变化(webview 切主题 / OS 切深色),返回取消函数 */
|
|
53083
|
+
function onThemeChange(cb) {
|
|
53084
|
+
if (typeof window === "undefined") return () => void 0;
|
|
53085
|
+
let disposed = false;
|
|
53086
|
+
const off = [];
|
|
53087
|
+
if (typeof MutationObserver !== "undefined" && document.body) {
|
|
53088
|
+
let last = isDarkTheme();
|
|
53089
|
+
const observer = new MutationObserver(() => {
|
|
53090
|
+
const now = isDarkTheme();
|
|
53091
|
+
if (now !== last) {
|
|
53092
|
+
last = now;
|
|
53093
|
+
cb();
|
|
53094
|
+
}
|
|
53095
|
+
});
|
|
53096
|
+
observer.observe(document.body, {
|
|
53097
|
+
attributes: true,
|
|
53098
|
+
attributeFilter: ["class"]
|
|
53099
|
+
});
|
|
53100
|
+
off.push(() => observer.disconnect());
|
|
53101
|
+
}
|
|
53102
|
+
const mq = window.matchMedia?.("(prefers-color-scheme: dark)");
|
|
53103
|
+
if (mq?.addEventListener) {
|
|
53104
|
+
const handler = () => !disposed && cb();
|
|
53105
|
+
mq.addEventListener("change", handler);
|
|
53106
|
+
off.push(() => mq.removeEventListener("change", handler));
|
|
53107
|
+
}
|
|
53108
|
+
const onMsg = (event) => {
|
|
53109
|
+
if (!disposed && event.data?.command === "themeChanged") cb();
|
|
53110
|
+
};
|
|
53111
|
+
window.addEventListener("message", onMsg);
|
|
53112
|
+
off.push(() => window.removeEventListener("message", onMsg));
|
|
53113
|
+
return () => {
|
|
53114
|
+
disposed = true;
|
|
53115
|
+
off.forEach((fn) => fn());
|
|
53116
|
+
};
|
|
53117
|
+
}
|
|
53118
|
+
var init_theme = __esmMin((() => {}));
|
|
53119
|
+
//#endregion
|
|
53060
53120
|
//#region src/platform/database/components/sql-executor.vue?vue&type=script&setup=true&lang.ts
|
|
53061
|
-
var _hoisted_1$
|
|
53121
|
+
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
53122
|
var init_sql_executor_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
53063
53123
|
init_vue_runtime_esm_bundler();
|
|
53064
53124
|
init_dist$11();
|
|
@@ -53072,37 +53132,38 @@ var init_sql_executor_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
|
53072
53132
|
init_database();
|
|
53073
53133
|
init_modal();
|
|
53074
53134
|
init_export();
|
|
53075
|
-
|
|
53076
|
-
|
|
53077
|
-
|
|
53078
|
-
|
|
53079
|
-
|
|
53080
|
-
|
|
53081
|
-
|
|
53082
|
-
|
|
53083
|
-
|
|
53084
|
-
|
|
53085
|
-
|
|
53135
|
+
init_theme();
|
|
53136
|
+
_hoisted_1$8 = { class: "sql-executor" };
|
|
53137
|
+
_hoisted_2$8 = { class: "sql-toolbar" };
|
|
53138
|
+
_hoisted_3$8 = { class: "toolbar-left" };
|
|
53139
|
+
_hoisted_4$8 = ["disabled"];
|
|
53140
|
+
_hoisted_5$8 = { class: "toolbar-right" };
|
|
53141
|
+
_hoisted_6$8 = { class: "sql-editor" };
|
|
53142
|
+
_hoisted_7$8 = { class: "sql-result" };
|
|
53143
|
+
_hoisted_8$8 = { class: "result-content" };
|
|
53144
|
+
_hoisted_9$8 = { class: "result-header" };
|
|
53145
|
+
_hoisted_10$8 = { class: "result-title" };
|
|
53146
|
+
_hoisted_11$8 = {
|
|
53086
53147
|
key: 0,
|
|
53087
53148
|
class: "sql-loading"
|
|
53088
53149
|
};
|
|
53089
|
-
_hoisted_12$
|
|
53150
|
+
_hoisted_12$8 = {
|
|
53090
53151
|
key: 0,
|
|
53091
53152
|
class: "bi bi-check-circle-fill text-success"
|
|
53092
53153
|
};
|
|
53093
|
-
_hoisted_13$
|
|
53154
|
+
_hoisted_13$8 = {
|
|
53094
53155
|
key: 1,
|
|
53095
53156
|
class: "bi bi-x-circle-fill text-danger"
|
|
53096
53157
|
};
|
|
53097
|
-
_hoisted_14$
|
|
53158
|
+
_hoisted_14$8 = {
|
|
53098
53159
|
key: 0,
|
|
53099
53160
|
class: "result-actions"
|
|
53100
53161
|
};
|
|
53101
|
-
_hoisted_15$
|
|
53162
|
+
_hoisted_15$8 = {
|
|
53102
53163
|
key: 0,
|
|
53103
53164
|
class: "sql-loading-state"
|
|
53104
53165
|
};
|
|
53105
|
-
_hoisted_16$
|
|
53166
|
+
_hoisted_16$8 = { class: "d-flex align-items-center justify-content-center py-4" };
|
|
53106
53167
|
_hoisted_17$8 = { class: "fw-bold" };
|
|
53107
53168
|
_hoisted_18$8 = { class: "text-muted small" };
|
|
53108
53169
|
_hoisted_19$8 = { class: "json-result" };
|
|
@@ -53252,7 +53313,7 @@ var init_sql_executor_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
|
53252
53313
|
drawSelection(),
|
|
53253
53314
|
placeholder(t("sqlExecutor.inputSQLPlaceholder")),
|
|
53254
53315
|
sql(),
|
|
53255
|
-
oneDark,
|
|
53316
|
+
...isDarkTheme() ? [oneDark] : [],
|
|
53256
53317
|
keymap.of(defaultKeymap),
|
|
53257
53318
|
EditorView.updateListener.of((update) => {
|
|
53258
53319
|
if (update.docChanged) sqlQuery.value = update.state.doc.toString();
|
|
@@ -53269,12 +53330,12 @@ var init_sql_executor_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
|
53269
53330
|
minHeight: "100%"
|
|
53270
53331
|
},
|
|
53271
53332
|
".cm-gutters": {
|
|
53272
|
-
backgroundColor: "
|
|
53273
|
-
color: "
|
|
53333
|
+
backgroundColor: "var(--db-code-bg)",
|
|
53334
|
+
color: "var(--db-code-fg)",
|
|
53274
53335
|
border: "none"
|
|
53275
53336
|
},
|
|
53276
|
-
".cm-activeLineGutter": { backgroundColor: "
|
|
53277
|
-
".cm-activeLine": { backgroundColor: "rgba(255, 255, 255, 0.1)" }
|
|
53337
|
+
".cm-activeLineGutter": { backgroundColor: "var(--db-code-bg)" },
|
|
53338
|
+
".cm-activeLine": { backgroundColor: isDarkTheme() ? "rgba(255, 255, 255, 0.1)" : "rgba(0, 0, 0, 0.06)" }
|
|
53278
53339
|
})
|
|
53279
53340
|
]
|
|
53280
53341
|
});
|
|
@@ -53303,26 +53364,26 @@ var init_sql_executor_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
|
53303
53364
|
height: "100%",
|
|
53304
53365
|
fontSize: "14px",
|
|
53305
53366
|
fontFamily: "Monaco, Menlo, Consolas, \"Courier New\", monospace",
|
|
53306
|
-
backgroundColor: "
|
|
53307
|
-
color: "
|
|
53367
|
+
backgroundColor: "var(--db-bg-soft2)",
|
|
53368
|
+
color: "var(--db-text-body)"
|
|
53308
53369
|
},
|
|
53309
53370
|
".cm-content": {
|
|
53310
53371
|
padding: "10px",
|
|
53311
53372
|
minHeight: "100%",
|
|
53312
|
-
backgroundColor: "
|
|
53313
|
-
color: "
|
|
53314
|
-
border: "1px solid
|
|
53373
|
+
backgroundColor: "var(--db-surface)",
|
|
53374
|
+
color: "var(--db-text-body)",
|
|
53375
|
+
border: "1px solid var(--db-border-lighter)"
|
|
53315
53376
|
},
|
|
53316
53377
|
".cm-gutters": {
|
|
53317
|
-
backgroundColor: "
|
|
53318
|
-
color: "
|
|
53319
|
-
border: "1px solid
|
|
53378
|
+
backgroundColor: "var(--db-bg-soft2)",
|
|
53379
|
+
color: "var(--db-text-muted)",
|
|
53380
|
+
border: "1px solid var(--db-border-lighter)",
|
|
53320
53381
|
borderRight: "none"
|
|
53321
53382
|
},
|
|
53322
|
-
".cm-activeLineGutter": { backgroundColor: "
|
|
53323
|
-
".cm-activeLine": { backgroundColor: "
|
|
53324
|
-
".cm-selectionBackground": { backgroundColor: "
|
|
53325
|
-
".cm-line": { color: "
|
|
53383
|
+
".cm-activeLineGutter": { backgroundColor: "var(--db-border-soft)" },
|
|
53384
|
+
".cm-activeLine": { backgroundColor: "var(--db-border-soft)" },
|
|
53385
|
+
".cm-selectionBackground": { backgroundColor: "var(--db-info-bg)" },
|
|
53386
|
+
".cm-line": { color: "var(--db-text-body)" }
|
|
53326
53387
|
})
|
|
53327
53388
|
]
|
|
53328
53389
|
});
|
|
@@ -53371,22 +53432,36 @@ var init_sql_executor_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
|
53371
53432
|
} });
|
|
53372
53433
|
}
|
|
53373
53434
|
}
|
|
53435
|
+
let offTheme = null;
|
|
53374
53436
|
onMounted(() => {
|
|
53375
53437
|
initEditor();
|
|
53376
53438
|
initResultEditor();
|
|
53439
|
+
offTheme = onThemeChange(() => {
|
|
53440
|
+
editor.value?.destroy();
|
|
53441
|
+
editor.value = null;
|
|
53442
|
+
resultEditor.value?.destroy();
|
|
53443
|
+
resultEditor.value = null;
|
|
53444
|
+
initEditor();
|
|
53445
|
+
initResultEditor();
|
|
53446
|
+
});
|
|
53447
|
+
});
|
|
53448
|
+
onBeforeUnmount(() => {
|
|
53449
|
+
offTheme?.();
|
|
53450
|
+
editor.value?.destroy();
|
|
53451
|
+
resultEditor.value?.destroy();
|
|
53377
53452
|
});
|
|
53378
53453
|
watch(sqlResult, () => {
|
|
53379
53454
|
if (sqlResult.value && resultEditor.value) updateResultEditor();
|
|
53380
53455
|
});
|
|
53381
53456
|
return (_ctx, _cache) => {
|
|
53382
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
53457
|
+
return openBlock(), createElementBlock("div", _hoisted_1$8, [createBaseVNode("div", _hoisted_2$8, [createBaseVNode("div", _hoisted_3$8, [createBaseVNode("button", {
|
|
53383
53458
|
class: "btn btn-primary btn-sm",
|
|
53384
53459
|
onClick: executeSql,
|
|
53385
53460
|
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$
|
|
53461
|
+
}, [_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
53462
|
class: "btn btn-outline-secondary btn-sm",
|
|
53388
53463
|
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$
|
|
53464
|
+
}, [_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
53465
|
class: "btn btn-outline-primary btn-sm",
|
|
53391
53466
|
onClick: clearSql
|
|
53392
53467
|
}, [_cache[3] || (_cache[3] = createBaseVNode("i", { class: "bi bi-trash" }, null, -1)), createTextVNode(" " + toDisplayString(_ctx.$t("sqlExecutor.clearBtn")), 1)])])]), createBaseVNode("div", {
|
|
@@ -53394,7 +53469,7 @@ var init_sql_executor_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
|
53394
53469
|
ref_key: "containerRef",
|
|
53395
53470
|
ref: containerRef
|
|
53396
53471
|
}, [
|
|
53397
|
-
createBaseVNode("div", _hoisted_6$
|
|
53472
|
+
createBaseVNode("div", _hoisted_6$8, [createBaseVNode("div", {
|
|
53398
53473
|
ref_key: "editorRef",
|
|
53399
53474
|
ref: editorRef,
|
|
53400
53475
|
class: "codemirror-editor"
|
|
@@ -53403,15 +53478,15 @@ var init_sql_executor_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
|
53403
53478
|
class: normalizeClass(["resizer", { "resizing": isResizing.value }]),
|
|
53404
53479
|
onMousedown: startResize
|
|
53405
53480
|
}, null, 34),
|
|
53406
|
-
createBaseVNode("div", _hoisted_7$
|
|
53407
|
-
createBaseVNode("div", _hoisted_9$
|
|
53481
|
+
createBaseVNode("div", _hoisted_7$8, [createBaseVNode("div", _hoisted_8$8, [
|
|
53482
|
+
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
53483
|
class: "btn btn-sm btn-outline-secondary me-2",
|
|
53409
53484
|
onClick: formatJsonResult
|
|
53410
53485
|
}, [_cache[5] || (_cache[5] = createBaseVNode("i", { class: "bi bi-braces" }, null, -1)), createTextVNode(" " + toDisplayString(_ctx.$t("common.format")), 1)]), createBaseVNode("button", {
|
|
53411
53486
|
class: "btn btn-sm btn-outline-secondary",
|
|
53412
53487
|
onClick: _cache[0] || (_cache[0] = ($event) => exportResult("json"))
|
|
53413
53488
|
}, [_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$
|
|
53489
|
+
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
53490
|
createBaseVNode("div", _hoisted_19$8, [createBaseVNode("div", {
|
|
53416
53491
|
ref_key: "resultEditorRef",
|
|
53417
53492
|
ref: resultEditorRef,
|
|
@@ -53424,21 +53499,21 @@ var init_sql_executor_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
|
53424
53499
|
});
|
|
53425
53500
|
}));
|
|
53426
53501
|
//#endregion
|
|
53427
|
-
//#region src/platform/database/components/sql-executor.vue?vue&type=style&index=0&scoped=
|
|
53428
|
-
var
|
|
53502
|
+
//#region src/platform/database/components/sql-executor.vue?vue&type=style&index=0&scoped=4b956460&lang.css
|
|
53503
|
+
var init_sql_executor_vue_vue_type_style_index_0_scoped_4b956460_lang = __esmMin((() => {}));
|
|
53429
53504
|
//#endregion
|
|
53430
53505
|
//#region src/platform/database/components/sql-executor.vue
|
|
53431
53506
|
var sql_executor_default;
|
|
53432
53507
|
var init_sql_executor = __esmMin((() => {
|
|
53433
53508
|
init_sql_executor_vue_vue_type_script_setup_true_lang();
|
|
53434
53509
|
init_sql_executor_vue_vue_type_script_setup_true_lang();
|
|
53435
|
-
|
|
53510
|
+
init_sql_executor_vue_vue_type_style_index_0_scoped_4b956460_lang();
|
|
53436
53511
|
init__plugin_vue_export_helper();
|
|
53437
|
-
sql_executor_default = /*#__PURE__*/ _plugin_vue_export_helper_default(sql_executor_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-
|
|
53512
|
+
sql_executor_default = /*#__PURE__*/ _plugin_vue_export_helper_default(sql_executor_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-4b956460"]]);
|
|
53438
53513
|
}));
|
|
53439
53514
|
//#endregion
|
|
53440
53515
|
//#region src/platform/database/components/connection-detail.vue?vue&type=script&setup=true&lang.ts
|
|
53441
|
-
var _hoisted_1$
|
|
53516
|
+
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$7, _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$3, _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
53517
|
var init_connection_detail_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
53443
53518
|
init_vue_runtime_esm_bundler();
|
|
53444
53519
|
init_vue_router();
|
|
@@ -53446,25 +53521,25 @@ var init_connection_detail_vue_vue_type_script_setup_true_lang = __esmMin((() =>
|
|
|
53446
53521
|
init_sql_executor();
|
|
53447
53522
|
init_vue_i18n();
|
|
53448
53523
|
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$
|
|
53524
|
+
_hoisted_1$7 = { class: "connection-detail" };
|
|
53525
|
+
_hoisted_2$7 = { class: "connection-header" };
|
|
53526
|
+
_hoisted_3$7 = { class: "connection-info" };
|
|
53527
|
+
_hoisted_4$7 = { class: "connection-avatar" };
|
|
53528
|
+
_hoisted_5$7 = { class: "connection-meta" };
|
|
53529
|
+
_hoisted_6$7 = { class: "connection-name" };
|
|
53530
|
+
_hoisted_7$7 = { class: "connection-type-info" };
|
|
53531
|
+
_hoisted_8$7 = { class: "db-type" };
|
|
53532
|
+
_hoisted_9$7 = { class: "connection-actions" };
|
|
53533
|
+
_hoisted_10$7 = ["title"];
|
|
53534
|
+
_hoisted_11$7 = {
|
|
53460
53535
|
key: 0,
|
|
53461
53536
|
class: "connection-details-panel"
|
|
53462
53537
|
};
|
|
53463
|
-
_hoisted_12$
|
|
53464
|
-
_hoisted_13$
|
|
53465
|
-
_hoisted_14$
|
|
53466
|
-
_hoisted_15$
|
|
53467
|
-
_hoisted_16$
|
|
53538
|
+
_hoisted_12$7 = { class: "detail-card" };
|
|
53539
|
+
_hoisted_13$7 = { class: "card-body" };
|
|
53540
|
+
_hoisted_14$7 = { class: "row" };
|
|
53541
|
+
_hoisted_15$7 = { class: "col-md-6" };
|
|
53542
|
+
_hoisted_16$7 = { class: "section-title" };
|
|
53468
53543
|
_hoisted_17$7 = { class: "info-grid" };
|
|
53469
53544
|
_hoisted_18$7 = { class: "info-item" };
|
|
53470
53545
|
_hoisted_19$7 = { class: "info-label" };
|
|
@@ -53473,7 +53548,7 @@ var init_connection_detail_vue_vue_type_script_setup_true_lang = __esmMin((() =>
|
|
|
53473
53548
|
_hoisted_22$7 = { class: "info-label" };
|
|
53474
53549
|
_hoisted_23$7 = { class: "info-value" };
|
|
53475
53550
|
_hoisted_24$7 = { class: "info-item" };
|
|
53476
|
-
_hoisted_25$
|
|
53551
|
+
_hoisted_25$7 = { class: "info-label" };
|
|
53477
53552
|
_hoisted_26$6 = { class: "info-value" };
|
|
53478
53553
|
_hoisted_27$6 = { class: "info-item" };
|
|
53479
53554
|
_hoisted_28$6 = { class: "info-label" };
|
|
@@ -53496,11 +53571,11 @@ var init_connection_detail_vue_vue_type_script_setup_true_lang = __esmMin((() =>
|
|
|
53496
53571
|
_hoisted_45$5 = { class: "quick-actions" };
|
|
53497
53572
|
_hoisted_46$5 = { class: "actions-header" };
|
|
53498
53573
|
_hoisted_47$5 = { class: "actions-title" };
|
|
53499
|
-
_hoisted_48$
|
|
53500
|
-
_hoisted_49$
|
|
53574
|
+
_hoisted_48$4 = { class: "actions-grid" };
|
|
53575
|
+
_hoisted_49$4 = { class: "action-text" };
|
|
53501
53576
|
_hoisted_50$4 = { class: "action-text" };
|
|
53502
53577
|
_hoisted_51$4 = { class: "action-text" };
|
|
53503
|
-
_hoisted_52$
|
|
53578
|
+
_hoisted_52$3 = { class: "connection-tabs" };
|
|
53504
53579
|
_hoisted_53$3 = { class: "nav nav-tabs" };
|
|
53505
53580
|
_hoisted_54$3 = { class: "nav-item" };
|
|
53506
53581
|
_hoisted_55$3 = { class: "badge bg-primary ms-1" };
|
|
@@ -53509,13 +53584,16 @@ var init_connection_detail_vue_vue_type_script_setup_true_lang = __esmMin((() =>
|
|
|
53509
53584
|
_hoisted_58$3 = { class: "tab-panel" };
|
|
53510
53585
|
_hoisted_59$3 = { class: "databases-section" };
|
|
53511
53586
|
_hoisted_60$3 = { class: "section-header" };
|
|
53512
|
-
_hoisted_61$3 = { class: "
|
|
53513
|
-
_hoisted_62$3 =
|
|
53514
|
-
_hoisted_63$3 = ["
|
|
53515
|
-
_hoisted_64$3 =
|
|
53516
|
-
_hoisted_65$3 = {
|
|
53587
|
+
_hoisted_61$3 = { class: "db-search" };
|
|
53588
|
+
_hoisted_62$3 = ["placeholder"];
|
|
53589
|
+
_hoisted_63$3 = ["disabled", "title"];
|
|
53590
|
+
_hoisted_64$3 = {
|
|
53517
53591
|
key: 0,
|
|
53518
|
-
class: "spinner-border spinner-border-sm
|
|
53592
|
+
class: "spinner-border spinner-border-sm"
|
|
53593
|
+
};
|
|
53594
|
+
_hoisted_65$3 = {
|
|
53595
|
+
key: 1,
|
|
53596
|
+
class: "bi bi-arrow-clockwise"
|
|
53519
53597
|
};
|
|
53520
53598
|
_hoisted_66$3 = { class: "databases-list" };
|
|
53521
53599
|
_hoisted_67$3 = {
|
|
@@ -53775,13 +53853,13 @@ var init_connection_detail_vue_vue_type_script_setup_true_lang = __esmMin((() =>
|
|
|
53775
53853
|
}[type || ""] || "DB";
|
|
53776
53854
|
}
|
|
53777
53855
|
return (_ctx, _cache) => {
|
|
53778
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
53779
|
-
createBaseVNode("div", _hoisted_2$
|
|
53856
|
+
return openBlock(), createElementBlock("div", _hoisted_1$7, [
|
|
53857
|
+
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
53858
|
createBaseVNode("button", {
|
|
53781
53859
|
class: "btn btn-sm btn-outline-info",
|
|
53782
53860
|
onClick: toggleDetails,
|
|
53783
53861
|
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$
|
|
53862
|
+
}, [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
53863
|
createBaseVNode("button", {
|
|
53786
53864
|
class: "btn btn-sm btn-outline-primary",
|
|
53787
53865
|
onClick: testConnection
|
|
@@ -53791,10 +53869,10 @@ var init_connection_detail_vue_vue_type_script_setup_true_lang = __esmMin((() =>
|
|
|
53791
53869
|
onClick: editConnection
|
|
53792
53870
|
}, [_cache[16] || (_cache[16] = createBaseVNode("i", { class: "bi bi-pencil" }, null, -1)), createTextVNode(" " + toDisplayString(_ctx.$t("common.edit")), 1)])
|
|
53793
53871
|
])]),
|
|
53794
|
-
isDetailsExpanded.value ? (openBlock(), createElementBlock("div", _hoisted_11$
|
|
53872
|
+
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
53873
|
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
53874
|
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
|
-
createBaseVNode("div", _hoisted_24$7, [createBaseVNode("label", _hoisted_25$
|
|
53875
|
+
createBaseVNode("div", _hoisted_24$7, [createBaseVNode("label", _hoisted_25$7, toDisplayString(_ctx.$t("connection.username")), 1), createBaseVNode("div", _hoisted_26$6, toDisplayString(__props.connection?.username), 1)]),
|
|
53798
53876
|
createBaseVNode("div", _hoisted_27$6, [createBaseVNode("label", _hoisted_28$6, toDisplayString(_ctx.$t("connection.databaseType")), 1), createBaseVNode("div", _hoisted_29$6, [createBaseVNode("span", { class: normalizeClass(["db-type-badge", getDbLogoClass(__props.connection?.type)]) }, toDisplayString(getDbTypeLabel(__props.connection?.type)), 3)])])
|
|
53799
53877
|
])]), createBaseVNode("div", _hoisted_30$5, [createBaseVNode("h6", _hoisted_31$5, [_cache[18] || (_cache[18] = createBaseVNode("i", { class: "bi bi-bar-chart" }, null, -1)), createTextVNode(" " + toDisplayString(_ctx.$t("connection.connectionStats")), 1)]), createBaseVNode("div", _hoisted_32$5, [
|
|
53800
53878
|
createBaseVNode("div", _hoisted_33$5, [createBaseVNode("div", _hoisted_34$5, toDisplayString(connectionStats.value.databaseCount || 0), 1), createBaseVNode("div", _hoisted_35$5, toDisplayString(_ctx.$t("connection.databaseCount")), 1)]),
|
|
@@ -53802,11 +53880,11 @@ var init_connection_detail_vue_vue_type_script_setup_true_lang = __esmMin((() =>
|
|
|
53802
53880
|
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
53881
|
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
53882
|
])])])])])])) : 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$
|
|
53883
|
+
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
53884
|
createBaseVNode("button", {
|
|
53807
53885
|
class: "action-btn",
|
|
53808
53886
|
onClick: showCreateDatabaseModal
|
|
53809
|
-
}, [_cache[20] || (_cache[20] = createBaseVNode("div", { class: "action-icon" }, [createBaseVNode("i", { class: "bi bi-plus-circle" })], -1)), createBaseVNode("div", _hoisted_49$
|
|
53887
|
+
}, [_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
53888
|
createBaseVNode("button", {
|
|
53811
53889
|
class: "action-btn",
|
|
53812
53890
|
onClick: exportSchema
|
|
@@ -53816,7 +53894,7 @@ var init_connection_detail_vue_vue_type_script_setup_true_lang = __esmMin((() =>
|
|
|
53816
53894
|
onClick: viewLogs
|
|
53817
53895
|
}, [_cache[22] || (_cache[22] = createBaseVNode("div", { class: "action-icon" }, [createBaseVNode("i", { class: "bi bi-file-text" })], -1)), createBaseVNode("div", _hoisted_51$4, toDisplayString(_ctx.$t("connection.viewLogs")), 1)])
|
|
53818
53896
|
])]),
|
|
53819
|
-
createBaseVNode("div", _hoisted_52$
|
|
53897
|
+
createBaseVNode("div", _hoisted_52$3, [createBaseVNode("ul", _hoisted_53$3, [createBaseVNode("li", _hoisted_54$3, [createBaseVNode("button", {
|
|
53820
53898
|
class: normalizeClass(["nav-link", { active: activeTab.value === "databases" }]),
|
|
53821
53899
|
onClick: _cache[0] || (_cache[0] = ($event) => activeTab.value = "databases")
|
|
53822
53900
|
}, [
|
|
@@ -53826,21 +53904,17 @@ var init_connection_detail_vue_vue_type_script_setup_true_lang = __esmMin((() =>
|
|
|
53826
53904
|
], 2)]), createBaseVNode("li", _hoisted_56$3, [createBaseVNode("button", {
|
|
53827
53905
|
class: normalizeClass(["nav-link", { active: activeTab.value === "sql" }]),
|
|
53828
53906
|
onClick: _cache[1] || (_cache[1] = ($event) => activeTab.value = "sql")
|
|
53829
|
-
}, [_cache[24] || (_cache[24] = createBaseVNode("i", { class: "bi bi-terminal" }, null, -1)), createTextVNode(" " + toDisplayString(_ctx.$t("nav.sqlQuery")), 1)], 2)])]), createBaseVNode("div", _hoisted_57$3, [withDirectives(createBaseVNode("div", _hoisted_58$3, [createBaseVNode("div", _hoisted_59$3, [createBaseVNode("div", _hoisted_60$3, [createBaseVNode("div", _hoisted_61$3, [createBaseVNode("
|
|
53907
|
+
}, [_cache[24] || (_cache[24] = createBaseVNode("i", { class: "bi bi-terminal" }, null, -1)), createTextVNode(" " + toDisplayString(_ctx.$t("nav.sqlQuery")), 1)], 2)])]), createBaseVNode("div", _hoisted_57$3, [withDirectives(createBaseVNode("div", _hoisted_58$3, [createBaseVNode("div", _hoisted_59$3, [createBaseVNode("div", _hoisted_60$3, [createBaseVNode("div", _hoisted_61$3, [_cache[25] || (_cache[25] = createBaseVNode("i", { class: "bi bi-search" }, null, -1)), withDirectives(createBaseVNode("input", {
|
|
53830
53908
|
type: "text",
|
|
53831
|
-
class: "
|
|
53909
|
+
class: "db-search-input",
|
|
53832
53910
|
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => searchKeyword.value = $event),
|
|
53833
|
-
placeholder: _ctx.$t("connection.searchDatabase")
|
|
53834
|
-
|
|
53835
|
-
|
|
53836
|
-
class: "btn btn-sm btn-outline-primary ms-2",
|
|
53911
|
+
placeholder: _ctx.$t("connection.searchDatabase")
|
|
53912
|
+
}, null, 8, _hoisted_62$3), [[vModelText, searchKeyword.value]])]), createBaseVNode("button", {
|
|
53913
|
+
class: "db-refresh-btn",
|
|
53837
53914
|
onClick: loadDatabases,
|
|
53838
|
-
disabled: loadingDatabases.value
|
|
53839
|
-
|
|
53840
|
-
|
|
53841
|
-
_cache[25] || (_cache[25] = createBaseVNode("i", { class: "bi bi-arrow-clockwise" }, null, -1)),
|
|
53842
|
-
createTextVNode(" " + toDisplayString(_ctx.$t("common.refresh")), 1)
|
|
53843
|
-
], 8, _hoisted_64$3)])]), createBaseVNode("div", _hoisted_66$3, [loadingDatabases.value ? (openBlock(), createElementBlock("div", _hoisted_67$3, [_cache[26] || (_cache[26] = createBaseVNode("div", { class: "spinner-border text-primary" }, null, -1)), createBaseVNode("span", null, toDisplayString(_ctx.$t("connection.loadingDatabases")), 1)])) : filteredDatabases.value.length === 0 ? (openBlock(), createElementBlock("div", _hoisted_68$3, [
|
|
53915
|
+
disabled: loadingDatabases.value,
|
|
53916
|
+
title: _ctx.$t("common.refresh")
|
|
53917
|
+
}, [loadingDatabases.value ? (openBlock(), createElementBlock("span", _hoisted_64$3)) : (openBlock(), createElementBlock("i", _hoisted_65$3))], 8, _hoisted_63$3)]), createBaseVNode("div", _hoisted_66$3, [loadingDatabases.value ? (openBlock(), createElementBlock("div", _hoisted_67$3, [_cache[26] || (_cache[26] = createBaseVNode("div", { class: "spinner-border text-primary" }, null, -1)), createBaseVNode("span", null, toDisplayString(_ctx.$t("connection.loadingDatabases")), 1)])) : filteredDatabases.value.length === 0 ? (openBlock(), createElementBlock("div", _hoisted_68$3, [
|
|
53844
53918
|
_cache[28] || (_cache[28] = createBaseVNode("i", { class: "bi bi-database" }, null, -1)),
|
|
53845
53919
|
createBaseVNode("p", null, toDisplayString(searchKeyword.value ? _ctx.$t("connection.noMatchDatabase") : _ctx.$t("connection.noDatabase")), 1),
|
|
53846
53920
|
createBaseVNode("button", {
|
|
@@ -53947,17 +54021,17 @@ var init_connection_detail_vue_vue_type_script_setup_true_lang = __esmMin((() =>
|
|
|
53947
54021
|
});
|
|
53948
54022
|
}));
|
|
53949
54023
|
//#endregion
|
|
53950
|
-
//#region src/platform/database/components/connection-detail.vue?vue&type=style&index=0&scoped=
|
|
53951
|
-
var
|
|
54024
|
+
//#region src/platform/database/components/connection-detail.vue?vue&type=style&index=0&scoped=ef9effac&lang.css
|
|
54025
|
+
var init_connection_detail_vue_vue_type_style_index_0_scoped_ef9effac_lang = __esmMin((() => {}));
|
|
53952
54026
|
//#endregion
|
|
53953
54027
|
//#region src/platform/database/components/connection-detail.vue
|
|
53954
54028
|
var connection_detail_default;
|
|
53955
54029
|
var init_connection_detail = __esmMin((() => {
|
|
53956
54030
|
init_connection_detail_vue_vue_type_script_setup_true_lang();
|
|
53957
54031
|
init_connection_detail_vue_vue_type_script_setup_true_lang();
|
|
53958
|
-
|
|
54032
|
+
init_connection_detail_vue_vue_type_style_index_0_scoped_ef9effac_lang();
|
|
53959
54033
|
init__plugin_vue_export_helper();
|
|
53960
|
-
connection_detail_default = /*#__PURE__*/ _plugin_vue_export_helper_default(connection_detail_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-
|
|
54034
|
+
connection_detail_default = /*#__PURE__*/ _plugin_vue_export_helper_default(connection_detail_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-ef9effac"]]);
|
|
53961
54035
|
}));
|
|
53962
54036
|
//#endregion
|
|
53963
54037
|
//#region src/typings/database-types.ts
|
|
@@ -55191,7 +55265,7 @@ var init_database_types = __esmMin((() => {
|
|
|
55191
55265
|
}));
|
|
55192
55266
|
//#endregion
|
|
55193
55267
|
//#region src/platform/database/components/table-editor.vue?vue&type=script&setup=true&lang.ts
|
|
55194
|
-
var _hoisted_1$
|
|
55268
|
+
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$6, _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, table_editor_vue_vue_type_script_setup_true_lang_default;
|
|
55195
55269
|
var init_table_editor_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
55196
55270
|
init_vue_runtime_esm_bundler();
|
|
55197
55271
|
init_vue_i18n();
|
|
@@ -55199,64 +55273,63 @@ var init_table_editor_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
|
55199
55273
|
init_modal();
|
|
55200
55274
|
init_database_types$1();
|
|
55201
55275
|
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$
|
|
55276
|
+
_hoisted_1$6 = { class: "modal-content" };
|
|
55277
|
+
_hoisted_2$6 = { class: "modal-header" };
|
|
55278
|
+
_hoisted_3$6 = { class: "modal-title" };
|
|
55279
|
+
_hoisted_4$6 = { class: "modal-body" };
|
|
55280
|
+
_hoisted_5$6 = { class: "table-info-section mb-4" };
|
|
55281
|
+
_hoisted_6$6 = { class: "section-title" };
|
|
55282
|
+
_hoisted_7$6 = { class: "row" };
|
|
55283
|
+
_hoisted_8$6 = { class: "col-md-6" };
|
|
55284
|
+
_hoisted_9$6 = { class: "mb-3" };
|
|
55285
|
+
_hoisted_10$6 = { class: "form-label" };
|
|
55286
|
+
_hoisted_11$6 = ["disabled", "placeholder"];
|
|
55287
|
+
_hoisted_12$6 = { class: "col-md-6" };
|
|
55288
|
+
_hoisted_13$6 = { class: "mb-3" };
|
|
55289
|
+
_hoisted_14$6 = { class: "form-label" };
|
|
55290
|
+
_hoisted_15$6 = ["placeholder"];
|
|
55291
|
+
_hoisted_16$6 = { class: "columns-section" };
|
|
55218
55292
|
_hoisted_17$6 = { class: "section-header d-flex justify-content-between align-items-center mb-3" };
|
|
55219
55293
|
_hoisted_18$6 = { class: "section-title mb-0" };
|
|
55220
55294
|
_hoisted_19$6 = { class: "table-responsive" };
|
|
55221
55295
|
_hoisted_20$6 = { class: "table table-sm table-bordered" };
|
|
55222
|
-
_hoisted_21$6 = {
|
|
55223
|
-
_hoisted_22$6 = { width: "
|
|
55224
|
-
_hoisted_23$6 = { width: "
|
|
55225
|
-
_hoisted_24$6 = { width: "
|
|
55226
|
-
_hoisted_25$
|
|
55227
|
-
_hoisted_26$5 = { width: "
|
|
55296
|
+
_hoisted_21$6 = { width: "120" };
|
|
55297
|
+
_hoisted_22$6 = { width: "140" };
|
|
55298
|
+
_hoisted_23$6 = { width: "120" };
|
|
55299
|
+
_hoisted_24$6 = { width: "80" };
|
|
55300
|
+
_hoisted_25$6 = { width: "100" };
|
|
55301
|
+
_hoisted_26$5 = { width: "80" };
|
|
55228
55302
|
_hoisted_27$5 = { width: "80" };
|
|
55229
|
-
_hoisted_28$5 = { width: "
|
|
55230
|
-
_hoisted_29$5 =
|
|
55231
|
-
_hoisted_30$4 = ["onUpdate:modelValue"
|
|
55232
|
-
_hoisted_31$4 =
|
|
55233
|
-
_hoisted_32$4 =
|
|
55234
|
-
_hoisted_33$4 = ["
|
|
55235
|
-
_hoisted_34$4 =
|
|
55236
|
-
_hoisted_35$4 = {
|
|
55303
|
+
_hoisted_28$5 = { width: "100" };
|
|
55304
|
+
_hoisted_29$5 = ["onUpdate:modelValue", "placeholder"];
|
|
55305
|
+
_hoisted_30$4 = ["onUpdate:modelValue"];
|
|
55306
|
+
_hoisted_31$4 = { value: "" };
|
|
55307
|
+
_hoisted_32$4 = ["label"];
|
|
55308
|
+
_hoisted_33$4 = ["value"];
|
|
55309
|
+
_hoisted_34$4 = {
|
|
55237
55310
|
key: 0,
|
|
55238
55311
|
class: "input-group input-group-sm"
|
|
55239
55312
|
};
|
|
55313
|
+
_hoisted_35$4 = ["onUpdate:modelValue", "placeholder"];
|
|
55240
55314
|
_hoisted_36$4 = ["onUpdate:modelValue", "placeholder"];
|
|
55241
55315
|
_hoisted_37$4 = ["onUpdate:modelValue", "placeholder"];
|
|
55242
|
-
_hoisted_38$4 =
|
|
55243
|
-
_hoisted_39$4 = {
|
|
55316
|
+
_hoisted_38$4 = {
|
|
55244
55317
|
key: 1,
|
|
55245
55318
|
class: "text-muted"
|
|
55246
55319
|
};
|
|
55247
|
-
|
|
55248
|
-
|
|
55249
|
-
|
|
55250
|
-
|
|
55251
|
-
|
|
55252
|
-
|
|
55253
|
-
|
|
55254
|
-
|
|
55255
|
-
|
|
55256
|
-
|
|
55257
|
-
|
|
55258
|
-
|
|
55259
|
-
|
|
55320
|
+
_hoisted_39$4 = { class: "form-check" };
|
|
55321
|
+
_hoisted_40$4 = ["onUpdate:modelValue"];
|
|
55322
|
+
_hoisted_41$4 = ["onUpdate:modelValue", "placeholder"];
|
|
55323
|
+
_hoisted_42$4 = { class: "form-check" };
|
|
55324
|
+
_hoisted_43$4 = ["onUpdate:modelValue", "onChange"];
|
|
55325
|
+
_hoisted_44$4 = { class: "form-check" };
|
|
55326
|
+
_hoisted_45$4 = ["onUpdate:modelValue", "disabled"];
|
|
55327
|
+
_hoisted_46$4 = ["onUpdate:modelValue", "placeholder"];
|
|
55328
|
+
_hoisted_47$4 = ["onClick", "disabled"];
|
|
55329
|
+
_hoisted_48$3 = { class: "sql-preview-section mt-4" };
|
|
55330
|
+
_hoisted_49$3 = { class: "section-title" };
|
|
55331
|
+
_hoisted_50$3 = { class: "sql-preview bg-light p-3 rounded" };
|
|
55332
|
+
_hoisted_51$3 = { class: "modal-footer" };
|
|
55260
55333
|
table_editor_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComponent({
|
|
55261
55334
|
__name: "table-editor",
|
|
55262
55335
|
props: {
|
|
@@ -55686,38 +55759,38 @@ var init_table_editor_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
|
55686
55759
|
"max-width": "none"
|
|
55687
55760
|
},
|
|
55688
55761
|
onClick: _cache[2] || (_cache[2] = withModifiers(() => {}, ["stop"]))
|
|
55689
|
-
}, [createBaseVNode("div", _hoisted_1$
|
|
55690
|
-
createBaseVNode("div", _hoisted_2$
|
|
55762
|
+
}, [createBaseVNode("div", _hoisted_1$6, [
|
|
55763
|
+
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
55764
|
type: "button",
|
|
55692
55765
|
class: "btn-close",
|
|
55693
55766
|
onClick: close
|
|
55694
55767
|
})]),
|
|
55695
|
-
createBaseVNode("div", _hoisted_4$
|
|
55696
|
-
createBaseVNode("div", _hoisted_5$
|
|
55768
|
+
createBaseVNode("div", _hoisted_4$6, [
|
|
55769
|
+
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
55770
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => formData.value.tableName = $event),
|
|
55698
55771
|
type: "text",
|
|
55699
55772
|
class: "form-control",
|
|
55700
55773
|
disabled: __props.mode === "edit",
|
|
55701
55774
|
placeholder: _ctx.$t("tableEditor.tableNamePlaceholder")
|
|
55702
|
-
}, null, 8, _hoisted_11$
|
|
55775
|
+
}, 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
55776
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => formData.value.tableComment = $event),
|
|
55704
55777
|
type: "text",
|
|
55705
55778
|
class: "form-control",
|
|
55706
55779
|
placeholder: _ctx.$t("tableEditor.tableCommentPlaceholder")
|
|
55707
|
-
}, null, 8, _hoisted_15$
|
|
55708
|
-
createBaseVNode("div", _hoisted_16$
|
|
55780
|
+
}, null, 8, _hoisted_15$6), [[vModelText, formData.value.tableComment]])])])])]),
|
|
55781
|
+
createBaseVNode("div", _hoisted_16$6, [createBaseVNode("div", _hoisted_17$6, [createBaseVNode("h6", _hoisted_18$6, toDisplayString(_ctx.$t("tableEditor.columnManagement")), 1), createBaseVNode("button", {
|
|
55709
55782
|
class: "btn btn-success btn-sm",
|
|
55710
55783
|
onClick: addColumn
|
|
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",
|
|
55712
|
-
createBaseVNode("th",
|
|
55713
|
-
createBaseVNode("th",
|
|
55714
|
-
createBaseVNode("th",
|
|
55715
|
-
createBaseVNode("th",
|
|
55716
|
-
createBaseVNode("th",
|
|
55717
|
-
createBaseVNode("th",
|
|
55718
|
-
createBaseVNode("th",
|
|
55784
|
+
}, [_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", null, [createBaseVNode("tr", null, [
|
|
55785
|
+
createBaseVNode("th", _hoisted_21$6, toDisplayString(_ctx.$t("tableEditor.columnNameHeader")), 1),
|
|
55786
|
+
createBaseVNode("th", _hoisted_22$6, toDisplayString(_ctx.$t("tableEditor.dataTypeHeader")), 1),
|
|
55787
|
+
createBaseVNode("th", _hoisted_23$6, toDisplayString(_ctx.$t("tableEditor.lengthPrecisionHeader")), 1),
|
|
55788
|
+
createBaseVNode("th", _hoisted_24$6, toDisplayString(_ctx.$t("tableEditor.nullableHeader")), 1),
|
|
55789
|
+
createBaseVNode("th", _hoisted_25$6, toDisplayString(_ctx.$t("tableEditor.defaultHeader")), 1),
|
|
55790
|
+
createBaseVNode("th", _hoisted_26$5, toDisplayString(_ctx.$t("tableEditor.primaryKeyHeader")), 1),
|
|
55791
|
+
createBaseVNode("th", _hoisted_27$5, toDisplayString(_ctx.$t("tableEditor.autoIncHeader")), 1),
|
|
55719
55792
|
createBaseVNode("th", null, toDisplayString(_ctx.$t("tableEditor.commentHeader")), 1),
|
|
55720
|
-
createBaseVNode("th",
|
|
55793
|
+
createBaseVNode("th", _hoisted_28$5, toDisplayString(_ctx.$t("tableEditor.operationsHeader")), 1)
|
|
55721
55794
|
])]), createBaseVNode("tbody", null, [(openBlock(true), createElementBlock(Fragment, null, renderList(formData.value.columns, (column, index) => {
|
|
55722
55795
|
return openBlock(), createElementBlock("tr", { key: index }, [
|
|
55723
55796
|
createBaseVNode("td", null, [withDirectives(createBaseVNode("input", {
|
|
@@ -55725,11 +55798,11 @@ var init_table_editor_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
|
55725
55798
|
type: "text",
|
|
55726
55799
|
class: "form-control form-control-sm",
|
|
55727
55800
|
placeholder: _ctx.$t("tableEditor.columnNamePlaceholder")
|
|
55728
|
-
}, null, 8,
|
|
55801
|
+
}, null, 8, _hoisted_29$5), [[vModelText, column.name]])]),
|
|
55729
55802
|
createBaseVNode("td", null, [withDirectives(createBaseVNode("select", {
|
|
55730
55803
|
"onUpdate:modelValue": ($event) => column.type = $event,
|
|
55731
55804
|
class: "form-select form-select-sm"
|
|
55732
|
-
}, [createBaseVNode("option",
|
|
55805
|
+
}, [createBaseVNode("option", _hoisted_31$4, toDisplayString(_ctx.$t("tableEditor.selectType")), 1), (openBlock(true), createElementBlock(Fragment, null, renderList(columnTypesByCategory.value, (types, category) => {
|
|
55733
55806
|
return openBlock(), createElementBlock("optgroup", {
|
|
55734
55807
|
key: category,
|
|
55735
55808
|
label: getCategoryLabel(category)
|
|
@@ -55737,71 +55810,71 @@ var init_table_editor_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
|
55737
55810
|
return openBlock(), createElementBlock("option", {
|
|
55738
55811
|
key: type.name,
|
|
55739
55812
|
value: type.name
|
|
55740
|
-
}, toDisplayString(type.label), 9,
|
|
55741
|
-
}), 128))], 8,
|
|
55742
|
-
}), 128))], 8,
|
|
55743
|
-
createBaseVNode("td", null, [needsLength(column) || needsPrecision(column) ? (openBlock(), createElementBlock("div",
|
|
55813
|
+
}, toDisplayString(type.label), 9, _hoisted_33$4);
|
|
55814
|
+
}), 128))], 8, _hoisted_32$4);
|
|
55815
|
+
}), 128))], 8, _hoisted_30$4), [[vModelSelect, column.type]])]),
|
|
55816
|
+
createBaseVNode("td", null, [needsLength(column) || needsPrecision(column) ? (openBlock(), createElementBlock("div", _hoisted_34$4, [
|
|
55744
55817
|
needsLength(column) ? withDirectives((openBlock(), createElementBlock("input", {
|
|
55745
55818
|
key: 0,
|
|
55746
55819
|
"onUpdate:modelValue": ($event) => column.length = $event,
|
|
55747
55820
|
type: "number",
|
|
55748
55821
|
class: "form-control form-control-sm",
|
|
55749
55822
|
placeholder: _ctx.$t("tableEditor.lengthPlaceholder")
|
|
55750
|
-
}, null, 8,
|
|
55823
|
+
}, null, 8, _hoisted_35$4)), [[vModelText, column.length]]) : createCommentVNode("", true),
|
|
55751
55824
|
needsPrecision(column) ? withDirectives((openBlock(), createElementBlock("input", {
|
|
55752
55825
|
key: 1,
|
|
55753
55826
|
"onUpdate:modelValue": ($event) => column.precision = $event,
|
|
55754
55827
|
type: "number",
|
|
55755
55828
|
class: "form-control form-control-sm",
|
|
55756
55829
|
placeholder: _ctx.$t("tableEditor.precisionPlaceholder")
|
|
55757
|
-
}, null, 8,
|
|
55830
|
+
}, null, 8, _hoisted_36$4)), [[vModelText, column.precision]]) : createCommentVNode("", true),
|
|
55758
55831
|
needsScale(column) ? withDirectives((openBlock(), createElementBlock("input", {
|
|
55759
55832
|
key: 2,
|
|
55760
55833
|
"onUpdate:modelValue": ($event) => column.scale = $event,
|
|
55761
55834
|
type: "number",
|
|
55762
55835
|
class: "form-control form-control-sm",
|
|
55763
55836
|
placeholder: _ctx.$t("tableEditor.scalePlaceholder")
|
|
55764
|
-
}, null, 8,
|
|
55765
|
-
])) : (openBlock(), createElementBlock("span",
|
|
55766
|
-
createBaseVNode("td", null, [createBaseVNode("div",
|
|
55837
|
+
}, null, 8, _hoisted_37$4)), [[vModelText, column.scale]]) : createCommentVNode("", true)
|
|
55838
|
+
])) : (openBlock(), createElementBlock("span", _hoisted_38$4, "-"))]),
|
|
55839
|
+
createBaseVNode("td", null, [createBaseVNode("div", _hoisted_39$4, [withDirectives(createBaseVNode("input", {
|
|
55767
55840
|
"onUpdate:modelValue": ($event) => column.nullable = $event,
|
|
55768
55841
|
type: "checkbox",
|
|
55769
55842
|
class: "form-check-input"
|
|
55770
|
-
}, null, 8,
|
|
55843
|
+
}, null, 8, _hoisted_40$4), [[vModelCheckbox, column.nullable]])])]),
|
|
55771
55844
|
createBaseVNode("td", null, [withDirectives(createBaseVNode("input", {
|
|
55772
55845
|
"onUpdate:modelValue": ($event) => column.defaultValue = $event,
|
|
55773
55846
|
type: "text",
|
|
55774
55847
|
class: "form-control form-control-sm",
|
|
55775
55848
|
placeholder: _ctx.$t("tableEditor.defaultHeader")
|
|
55776
|
-
}, null, 8,
|
|
55777
|
-
createBaseVNode("td", null, [createBaseVNode("div",
|
|
55849
|
+
}, null, 8, _hoisted_41$4), [[vModelText, column.defaultValue]])]),
|
|
55850
|
+
createBaseVNode("td", null, [createBaseVNode("div", _hoisted_42$4, [withDirectives(createBaseVNode("input", {
|
|
55778
55851
|
"onUpdate:modelValue": ($event) => column.isPrimary = $event,
|
|
55779
55852
|
type: "checkbox",
|
|
55780
55853
|
class: "form-check-input",
|
|
55781
55854
|
onChange: ($event) => onPrimaryKeyChange(column, index)
|
|
55782
|
-
}, null, 40,
|
|
55783
|
-
createBaseVNode("td", null, [createBaseVNode("div",
|
|
55855
|
+
}, null, 40, _hoisted_43$4), [[vModelCheckbox, column.isPrimary]])])]),
|
|
55856
|
+
createBaseVNode("td", null, [createBaseVNode("div", _hoisted_44$4, [withDirectives(createBaseVNode("input", {
|
|
55784
55857
|
"onUpdate:modelValue": ($event) => column.isAutoIncrement = $event,
|
|
55785
55858
|
type: "checkbox",
|
|
55786
55859
|
class: "form-check-input",
|
|
55787
55860
|
disabled: !column.isPrimary || !supportsAutoIncrement(column)
|
|
55788
|
-
}, null, 8,
|
|
55861
|
+
}, null, 8, _hoisted_45$4), [[vModelCheckbox, column.isAutoIncrement]])])]),
|
|
55789
55862
|
createBaseVNode("td", null, [withDirectives(createBaseVNode("input", {
|
|
55790
55863
|
"onUpdate:modelValue": ($event) => column.comment = $event,
|
|
55791
55864
|
type: "text",
|
|
55792
55865
|
class: "form-control form-control-sm",
|
|
55793
55866
|
placeholder: _ctx.$t("tableEditor.fieldComment")
|
|
55794
|
-
}, null, 8,
|
|
55867
|
+
}, null, 8, _hoisted_46$4), [[vModelText, column.comment]])]),
|
|
55795
55868
|
createBaseVNode("td", null, [createBaseVNode("button", {
|
|
55796
55869
|
class: "btn btn-outline-danger btn-sm",
|
|
55797
55870
|
onClick: ($event) => removeColumn(index),
|
|
55798
55871
|
disabled: formData.value.columns.length <= 1
|
|
55799
|
-
}, [..._cache[5] || (_cache[5] = [createBaseVNode("i", { class: "bi bi-trash" }, null, -1)])], 8,
|
|
55872
|
+
}, [..._cache[5] || (_cache[5] = [createBaseVNode("i", { class: "bi bi-trash" }, null, -1)])], 8, _hoisted_47$4)])
|
|
55800
55873
|
]);
|
|
55801
55874
|
}), 128))])])])]),
|
|
55802
|
-
createBaseVNode("div",
|
|
55875
|
+
createBaseVNode("div", _hoisted_48$3, [createBaseVNode("h6", _hoisted_49$3, toDisplayString(_ctx.$t("tableEditor.sqlPreview")), 1), createBaseVNode("pre", _hoisted_50$3, toDisplayString(generateSQL()), 1)])
|
|
55803
55876
|
]),
|
|
55804
|
-
createBaseVNode("div",
|
|
55877
|
+
createBaseVNode("div", _hoisted_51$3, [createBaseVNode("button", {
|
|
55805
55878
|
type: "button",
|
|
55806
55879
|
class: "btn btn-secondary",
|
|
55807
55880
|
onClick: close
|
|
@@ -55816,43 +55889,43 @@ var init_table_editor_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
|
55816
55889
|
});
|
|
55817
55890
|
}));
|
|
55818
55891
|
//#endregion
|
|
55819
|
-
//#region src/platform/database/components/table-editor.vue?vue&type=style&index=0&scoped=
|
|
55820
|
-
var
|
|
55892
|
+
//#region src/platform/database/components/table-editor.vue?vue&type=style&index=0&scoped=0d3b1052&lang.css
|
|
55893
|
+
var init_table_editor_vue_vue_type_style_index_0_scoped_0d3b1052_lang = __esmMin((() => {}));
|
|
55821
55894
|
//#endregion
|
|
55822
55895
|
//#region src/platform/database/components/table-editor.vue
|
|
55823
55896
|
var table_editor_default;
|
|
55824
55897
|
var init_table_editor = __esmMin((() => {
|
|
55825
55898
|
init_table_editor_vue_vue_type_script_setup_true_lang();
|
|
55826
55899
|
init_table_editor_vue_vue_type_script_setup_true_lang();
|
|
55827
|
-
|
|
55900
|
+
init_table_editor_vue_vue_type_style_index_0_scoped_0d3b1052_lang();
|
|
55828
55901
|
init__plugin_vue_export_helper();
|
|
55829
|
-
table_editor_default = /*#__PURE__*/ _plugin_vue_export_helper_default(table_editor_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-
|
|
55902
|
+
table_editor_default = /*#__PURE__*/ _plugin_vue_export_helper_default(table_editor_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-0d3b1052"]]);
|
|
55830
55903
|
}));
|
|
55831
55904
|
//#endregion
|
|
55832
55905
|
//#region src/platform/database/components/db-tools.vue?vue&type=script&setup=true&lang.ts
|
|
55833
|
-
var _hoisted_1$
|
|
55906
|
+
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$5, _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
55907
|
var init_db_tools_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
55835
55908
|
init_vue_runtime_esm_bundler();
|
|
55836
55909
|
init_vue_i18n();
|
|
55837
55910
|
init_database();
|
|
55838
55911
|
init_modal();
|
|
55839
55912
|
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$
|
|
55913
|
+
_hoisted_1$5 = { class: "db-tools" };
|
|
55914
|
+
_hoisted_2$5 = { class: "tools-header" };
|
|
55915
|
+
_hoisted_3$5 = { class: "tools-title" };
|
|
55916
|
+
_hoisted_4$5 = { class: "tools-content" };
|
|
55917
|
+
_hoisted_5$5 = { class: "tool-section" };
|
|
55918
|
+
_hoisted_6$5 = { class: "section-title" };
|
|
55919
|
+
_hoisted_7$5 = { class: "tool-actions" };
|
|
55920
|
+
_hoisted_8$5 = { class: "tool-section" };
|
|
55921
|
+
_hoisted_9$5 = { class: "section-title" };
|
|
55922
|
+
_hoisted_10$5 = { class: "tool-actions" };
|
|
55923
|
+
_hoisted_11$5 = { class: "tool-section" };
|
|
55924
|
+
_hoisted_12$5 = { class: "section-title" };
|
|
55925
|
+
_hoisted_13$5 = { class: "tool-actions" };
|
|
55926
|
+
_hoisted_14$5 = { class: "tool-section" };
|
|
55927
|
+
_hoisted_15$5 = { class: "section-title" };
|
|
55928
|
+
_hoisted_16$5 = { class: "tool-actions" };
|
|
55856
55929
|
_hoisted_17$5 = { class: "tool-section" };
|
|
55857
55930
|
_hoisted_18$5 = { class: "section-title" };
|
|
55858
55931
|
_hoisted_19$5 = { class: "tool-actions" };
|
|
@@ -55864,7 +55937,7 @@ var init_db_tools_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
|
55864
55937
|
class: "tool-component-area"
|
|
55865
55938
|
};
|
|
55866
55939
|
_hoisted_24$5 = { class: "component-header" };
|
|
55867
|
-
_hoisted_25$
|
|
55940
|
+
_hoisted_25$5 = { class: "component-title" };
|
|
55868
55941
|
_hoisted_26$4 = {
|
|
55869
55942
|
key: 0,
|
|
55870
55943
|
class: "tool-component sync-component"
|
|
@@ -55896,8 +55969,8 @@ var init_db_tools_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
|
55896
55969
|
_hoisted_45$3 = ["value"];
|
|
55897
55970
|
_hoisted_46$3 = { class: "col-md-6" };
|
|
55898
55971
|
_hoisted_47$3 = { class: "form-label" };
|
|
55899
|
-
_hoisted_48$
|
|
55900
|
-
_hoisted_49$
|
|
55972
|
+
_hoisted_48$2 = { value: "" };
|
|
55973
|
+
_hoisted_49$2 = ["value"];
|
|
55901
55974
|
_hoisted_50$2 = { class: "col-md-12" };
|
|
55902
55975
|
_hoisted_51$2 = { class: "form-label" };
|
|
55903
55976
|
_hoisted_52$2 = {
|
|
@@ -56417,12 +56490,12 @@ var init_db_tools_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
|
56417
56490
|
addExecutionResult(t("dbTools.scheduledBackup"), "info", { message: t("dbTools.featureInDev", { feature: t("dbTools.scheduledBackup") }) });
|
|
56418
56491
|
}
|
|
56419
56492
|
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$
|
|
56493
|
+
return openBlock(), createElementBlock("div", _hoisted_1$5, [
|
|
56494
|
+
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)])]),
|
|
56495
|
+
createBaseVNode("div", _hoisted_4$5, [
|
|
56496
|
+
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
56497
|
createBaseVNode("button", {
|
|
56425
|
-
class: "btn btn-outline-
|
|
56498
|
+
class: "btn btn-outline-secondary btn-sm",
|
|
56426
56499
|
onClick: backupDatabase
|
|
56427
56500
|
}, [_cache[24] || (_cache[24] = createBaseVNode("i", { class: "bi bi-download" }, null, -1)), createTextVNode(" " + toDisplayString(_ctx.$t("dbTools.backupDatabase")), 1)]),
|
|
56428
56501
|
createBaseVNode("button", {
|
|
@@ -56430,45 +56503,45 @@ var init_db_tools_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
|
56430
56503
|
onClick: showRestoreModal
|
|
56431
56504
|
}, [_cache[25] || (_cache[25] = createBaseVNode("i", { class: "bi bi-upload" }, null, -1)), createTextVNode(" " + toDisplayString(_ctx.$t("dbTools.restoreDatabase")), 1)]),
|
|
56432
56505
|
createBaseVNode("button", {
|
|
56433
|
-
class: "btn btn-outline-
|
|
56506
|
+
class: "btn btn-outline-secondary btn-sm",
|
|
56434
56507
|
onClick: showScheduleModal
|
|
56435
56508
|
}, [_cache[26] || (_cache[26] = createBaseVNode("i", { class: "bi bi-clock" }, null, -1)), createTextVNode(" " + toDisplayString(_ctx.$t("dbTools.scheduledBackup")), 1)])
|
|
56436
56509
|
])]),
|
|
56437
|
-
createBaseVNode("div", _hoisted_8$
|
|
56510
|
+
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
56511
|
createBaseVNode("button", {
|
|
56439
|
-
class: "btn btn-outline-
|
|
56512
|
+
class: "btn btn-outline-secondary btn-sm",
|
|
56440
56513
|
onClick: showUsersList
|
|
56441
56514
|
}, [_cache[28] || (_cache[28] = createBaseVNode("i", { class: "bi bi-person-lines-fill" }, null, -1)), createTextVNode(" " + toDisplayString(_ctx.$t("dbTools.userList")), 1)]),
|
|
56442
56515
|
createBaseVNode("button", {
|
|
56443
|
-
class: "btn btn-outline-
|
|
56516
|
+
class: "btn btn-outline-secondary btn-sm",
|
|
56444
56517
|
onClick: showCreateUserModal
|
|
56445
56518
|
}, [_cache[29] || (_cache[29] = createBaseVNode("i", { class: "bi bi-person-plus" }, null, -1)), createTextVNode(" " + toDisplayString(_ctx.$t("dbTools.createUser")), 1)]),
|
|
56446
56519
|
createBaseVNode("button", {
|
|
56447
|
-
class: "btn btn-outline-
|
|
56520
|
+
class: "btn btn-outline-secondary btn-sm",
|
|
56448
56521
|
onClick: showPermissionsModal
|
|
56449
56522
|
}, [_cache[30] || (_cache[30] = createBaseVNode("i", { class: "bi bi-key" }, null, -1)), createTextVNode(" " + toDisplayString(_ctx.$t("dbTools.permissionMgmt")), 1)])
|
|
56450
56523
|
])]),
|
|
56451
|
-
createBaseVNode("div", _hoisted_11$
|
|
56524
|
+
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
56525
|
createBaseVNode("button", {
|
|
56453
|
-
class: "btn btn-outline-
|
|
56526
|
+
class: "btn btn-outline-secondary btn-sm",
|
|
56454
56527
|
onClick: showProcessList
|
|
56455
56528
|
}, [_cache[32] || (_cache[32] = createBaseVNode("i", { class: "bi bi-activity" }, null, -1)), createTextVNode(" " + toDisplayString(_ctx.$t("dbTools.processList")), 1)]),
|
|
56456
56529
|
createBaseVNode("button", {
|
|
56457
|
-
class: "btn btn-outline-
|
|
56530
|
+
class: "btn btn-outline-secondary btn-sm",
|
|
56458
56531
|
onClick: showSlowQueries
|
|
56459
56532
|
}, [_cache[33] || (_cache[33] = createBaseVNode("i", { class: "bi bi-hourglass-split" }, null, -1)), createTextVNode(" " + toDisplayString(_ctx.$t("dbTools.slowQueries")), 1)]),
|
|
56460
56533
|
createBaseVNode("button", {
|
|
56461
|
-
class: "btn btn-outline-
|
|
56534
|
+
class: "btn btn-outline-secondary btn-sm",
|
|
56462
56535
|
onClick: showConnectionsList
|
|
56463
56536
|
}, [_cache[34] || (_cache[34] = createBaseVNode("i", { class: "bi bi-diagram-3" }, null, -1)), createTextVNode(" " + toDisplayString(_ctx.$t("dbTools.connectionCount")), 1)])
|
|
56464
56537
|
])]),
|
|
56465
|
-
createBaseVNode("div", _hoisted_14$
|
|
56538
|
+
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
56539
|
createBaseVNode("button", {
|
|
56467
|
-
class: "btn btn-outline-
|
|
56540
|
+
class: "btn btn-outline-secondary btn-sm",
|
|
56468
56541
|
onClick: optimizeDatabase
|
|
56469
56542
|
}, [_cache[36] || (_cache[36] = createBaseVNode("i", { class: "bi bi-lightning-charge" }, null, -1)), createTextVNode(" " + toDisplayString(_ctx.$t("dbTools.optimizeDatabase")), 1)]),
|
|
56470
56543
|
createBaseVNode("button", {
|
|
56471
|
-
class: "btn btn-outline-
|
|
56544
|
+
class: "btn btn-outline-secondary btn-sm",
|
|
56472
56545
|
onClick: analyzeTables
|
|
56473
56546
|
}, [_cache[37] || (_cache[37] = createBaseVNode("i", { class: "bi bi-search" }, null, -1)), createTextVNode(" " + toDisplayString(_ctx.$t("dbTools.analyzeTables")), 1)]),
|
|
56474
56547
|
createBaseVNode("button", {
|
|
@@ -56476,27 +56549,27 @@ var init_db_tools_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
|
56476
56549
|
onClick: repairTables
|
|
56477
56550
|
}, [_cache[38] || (_cache[38] = createBaseVNode("i", { class: "bi bi-tools" }, null, -1)), createTextVNode(" " + toDisplayString(_ctx.$t("dbTools.repairTables")), 1)]),
|
|
56478
56551
|
createBaseVNode("button", {
|
|
56479
|
-
class: "btn btn-outline-
|
|
56552
|
+
class: "btn btn-outline-secondary btn-sm",
|
|
56480
56553
|
onClick: clearLogs
|
|
56481
56554
|
}, [_cache[39] || (_cache[39] = createBaseVNode("i", { class: "bi bi-trash" }, null, -1)), createTextVNode(" " + toDisplayString(_ctx.$t("dbTools.clearLogs")), 1)])
|
|
56482
56555
|
])]),
|
|
56483
56556
|
createBaseVNode("div", _hoisted_17$5, [createBaseVNode("h6", _hoisted_18$5, [_cache[40] || (_cache[40] = createBaseVNode("i", { class: "bi bi-arrow-left-right" }, null, -1)), createTextVNode(" " + toDisplayString(_ctx.$t("dbTools.dataMigration")), 1)]), createBaseVNode("div", _hoisted_19$5, [
|
|
56484
56557
|
createBaseVNode("button", {
|
|
56485
|
-
class: "btn btn-outline-
|
|
56558
|
+
class: "btn btn-outline-secondary btn-sm",
|
|
56486
56559
|
onClick: showExportModal
|
|
56487
56560
|
}, [_cache[41] || (_cache[41] = createBaseVNode("i", { class: "bi bi-box-arrow-up-right" }, null, -1)), createTextVNode(" " + toDisplayString(_ctx.$t("dbTools.exportStructure")), 1)]),
|
|
56488
56561
|
createBaseVNode("button", {
|
|
56489
|
-
class: "btn btn-outline-
|
|
56562
|
+
class: "btn btn-outline-secondary btn-sm",
|
|
56490
56563
|
onClick: showImportModal
|
|
56491
56564
|
}, [_cache[42] || (_cache[42] = createBaseVNode("i", { class: "bi bi-box-arrow-in-down" }, null, -1)), createTextVNode(" " + toDisplayString(_ctx.$t("dbTools.importStructure")), 1)]),
|
|
56492
56565
|
createBaseVNode("button", {
|
|
56493
|
-
class: "btn btn-outline-
|
|
56566
|
+
class: "btn btn-outline-secondary btn-sm",
|
|
56494
56567
|
onClick: _cache[0] || (_cache[0] = ($event) => selectTool("sync"))
|
|
56495
56568
|
}, [_cache[43] || (_cache[43] = createBaseVNode("i", { class: "bi bi-arrow-repeat" }, null, -1)), createTextVNode(" " + toDisplayString(_ctx.$t("dbTools.dataSync")), 1)])
|
|
56496
56569
|
])]),
|
|
56497
56570
|
createBaseVNode("div", _hoisted_20$5, [createBaseVNode("h6", _hoisted_21$5, [_cache[44] || (_cache[44] = createBaseVNode("i", { class: "bi bi-heart-pulse" }, null, -1)), createTextVNode(" " + toDisplayString(_ctx.$t("dbTools.healthCheck")), 1)]), createBaseVNode("div", _hoisted_22$5, [
|
|
56498
56571
|
createBaseVNode("button", {
|
|
56499
|
-
class: "btn btn-outline-
|
|
56572
|
+
class: "btn btn-outline-secondary btn-sm",
|
|
56500
56573
|
onClick: runHealthCheck
|
|
56501
56574
|
}, [_cache[45] || (_cache[45] = createBaseVNode("i", { class: "bi bi-clipboard-check" }, null, -1)), createTextVNode(" " + toDisplayString(_ctx.$t("dbTools.healthCheck")), 1)]),
|
|
56502
56575
|
createBaseVNode("button", {
|
|
@@ -56504,12 +56577,12 @@ var init_db_tools_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
|
56504
56577
|
onClick: showStatistics
|
|
56505
56578
|
}, [_cache[46] || (_cache[46] = createBaseVNode("i", { class: "bi bi-bar-chart" }, null, -1)), createTextVNode(" " + toDisplayString(_ctx.$t("dbTools.dataStatistics")), 1)]),
|
|
56506
56579
|
createBaseVNode("button", {
|
|
56507
|
-
class: "btn btn-outline-
|
|
56580
|
+
class: "btn btn-outline-secondary btn-sm",
|
|
56508
56581
|
onClick: showAuditLog
|
|
56509
56582
|
}, [_cache[47] || (_cache[47] = createBaseVNode("i", { class: "bi bi-journal-text" }, null, -1)), createTextVNode(" " + toDisplayString(_ctx.$t("dbTools.auditLog")), 1)])
|
|
56510
56583
|
])])
|
|
56511
56584
|
]),
|
|
56512
|
-
selectedTool.value ? (openBlock(), createElementBlock("div", _hoisted_23$5, [createBaseVNode("div", _hoisted_24$5, [createBaseVNode("h6", _hoisted_25$
|
|
56585
|
+
selectedTool.value ? (openBlock(), createElementBlock("div", _hoisted_23$5, [createBaseVNode("div", _hoisted_24$5, [createBaseVNode("h6", _hoisted_25$5, [createBaseVNode("i", { class: normalizeClass(getToolIcon(selectedTool.value)) }, null, 2), createTextVNode(" " + toDisplayString(getToolTitle(selectedTool.value)), 1)]), createBaseVNode("button", {
|
|
56513
56586
|
class: "btn btn-outline-secondary btn-sm",
|
|
56514
56587
|
onClick: closeTool
|
|
56515
56588
|
}, [_cache[48] || (_cache[48] = createBaseVNode("i", { class: "bi bi-x" }, null, -1)), createTextVNode(" " + toDisplayString(_ctx.$t("dbTools.closeBtn")), 1)])]), selectedTool.value === "sync" ? (openBlock(), createElementBlock("div", _hoisted_26$4, [
|
|
@@ -56548,11 +56621,11 @@ var init_db_tools_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
|
56548
56621
|
createBaseVNode("div", _hoisted_46$3, [createBaseVNode("label", _hoisted_47$3, toDisplayString(_ctx.$t("dbTools.selectDatabaseLabel")), 1), withDirectives(createBaseVNode("select", {
|
|
56549
56622
|
class: "form-select",
|
|
56550
56623
|
"onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => selectedDatabaseName.value = $event)
|
|
56551
|
-
}, [createBaseVNode("option", _hoisted_48$
|
|
56624
|
+
}, [createBaseVNode("option", _hoisted_48$2, toDisplayString(_ctx.$t("dbTools.selectDatabasePlaceholder")), 1), (openBlock(true), createElementBlock(Fragment, null, renderList(databases.value, (db) => {
|
|
56552
56625
|
return openBlock(), createElementBlock("option", {
|
|
56553
56626
|
key: db,
|
|
56554
56627
|
value: db
|
|
56555
|
-
}, toDisplayString(db), 9, _hoisted_49$
|
|
56628
|
+
}, toDisplayString(db), 9, _hoisted_49$2);
|
|
56556
56629
|
}), 128))], 512), [[vModelSelect, selectedDatabaseName.value]])]),
|
|
56557
56630
|
createBaseVNode("div", _hoisted_50$2, [createBaseVNode("label", _hoisted_51$2, toDisplayString(_ctx.$t("dbTools.targetTableName")), 1), withDirectives(createBaseVNode("input", {
|
|
56558
56631
|
type: "text",
|
|
@@ -56563,7 +56636,7 @@ var init_db_tools_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
|
56563
56636
|
createBaseVNode("div", _hoisted_53$2, [createBaseVNode("label", _hoisted_54$2, toDisplayString(_ctx.$t("dbTools.dbTypeLabel")), 1), withDirectives(createBaseVNode("select", {
|
|
56564
56637
|
class: "form-select",
|
|
56565
56638
|
"onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) => syncConfig.value.target.dbType = $event)
|
|
56566
|
-
}, [..._cache[51] || (_cache[51] = [createStaticVNode("<option value=\"mysql\" data-v-
|
|
56639
|
+
}, [..._cache[51] || (_cache[51] = [createStaticVNode("<option value=\"mysql\" data-v-c49117ce>MySQL</option><option value=\"postgresql\" data-v-c49117ce>PostgreSQL</option><option value=\"sqlite\" data-v-c49117ce>SQLite</option><option value=\"sqlserver\" data-v-c49117ce>SQL Server</option><option value=\"oracle\" data-v-c49117ce>Oracle</option>", 5)])], 512), [[vModelSelect, syncConfig.value.target.dbType]])]),
|
|
56567
56640
|
createBaseVNode("div", _hoisted_55$2, [createBaseVNode("label", _hoisted_56$2, toDisplayString(_ctx.$t("dbTools.hostLabel")), 1), withDirectives(createBaseVNode("input", {
|
|
56568
56641
|
type: "text",
|
|
56569
56642
|
class: "form-control",
|
|
@@ -56703,21 +56776,21 @@ var init_db_tools_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
|
56703
56776
|
});
|
|
56704
56777
|
}));
|
|
56705
56778
|
//#endregion
|
|
56706
|
-
//#region src/platform/database/components/db-tools.vue?vue&type=style&index=0&scoped=
|
|
56707
|
-
var
|
|
56779
|
+
//#region src/platform/database/components/db-tools.vue?vue&type=style&index=0&scoped=c49117ce&lang.css
|
|
56780
|
+
var init_db_tools_vue_vue_type_style_index_0_scoped_c49117ce_lang = __esmMin((() => {}));
|
|
56708
56781
|
//#endregion
|
|
56709
56782
|
//#region src/platform/database/components/db-tools.vue
|
|
56710
56783
|
var db_tools_default;
|
|
56711
56784
|
var init_db_tools = __esmMin((() => {
|
|
56712
56785
|
init_db_tools_vue_vue_type_script_setup_true_lang();
|
|
56713
56786
|
init_db_tools_vue_vue_type_script_setup_true_lang();
|
|
56714
|
-
|
|
56787
|
+
init_db_tools_vue_vue_type_style_index_0_scoped_c49117ce_lang();
|
|
56715
56788
|
init__plugin_vue_export_helper();
|
|
56716
|
-
db_tools_default = /*#__PURE__*/ _plugin_vue_export_helper_default(db_tools_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-
|
|
56789
|
+
db_tools_default = /*#__PURE__*/ _plugin_vue_export_helper_default(db_tools_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-c49117ce"]]);
|
|
56717
56790
|
}));
|
|
56718
56791
|
//#endregion
|
|
56719
56792
|
//#region src/platform/database/components/database-detail.vue?vue&type=script&setup=true&lang.ts
|
|
56720
|
-
var _hoisted_1$
|
|
56793
|
+
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$4, _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, _hoisted_127, database_detail_vue_vue_type_script_setup_true_lang_default;
|
|
56721
56794
|
var init_database_detail_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
56722
56795
|
init_vue_runtime_esm_bundler();
|
|
56723
56796
|
init_vue_i18n();
|
|
@@ -56726,180 +56799,181 @@ var init_database_detail_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
|
56726
56799
|
init_db_tools();
|
|
56727
56800
|
init_modal();
|
|
56728
56801
|
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$
|
|
56745
|
-
_hoisted_17$4 = { class: "
|
|
56746
|
-
_hoisted_18$4 = { class: "
|
|
56747
|
-
_hoisted_19$4 = { class: "nav-
|
|
56802
|
+
_hoisted_1$4 = { class: "database-detail" };
|
|
56803
|
+
_hoisted_2$4 = { class: "database-header" };
|
|
56804
|
+
_hoisted_3$4 = { class: "database-header-content" };
|
|
56805
|
+
_hoisted_4$4 = { class: "database-info" };
|
|
56806
|
+
_hoisted_5$4 = { class: "database-meta" };
|
|
56807
|
+
_hoisted_6$4 = { class: "database-name" };
|
|
56808
|
+
_hoisted_7$4 = { class: "connection-info" };
|
|
56809
|
+
_hoisted_8$4 = ["title"];
|
|
56810
|
+
_hoisted_9$4 = { class: "crumb crumb-current" };
|
|
56811
|
+
_hoisted_10$4 = { class: "connection-type ms-2" };
|
|
56812
|
+
_hoisted_11$4 = { class: "database-stats" };
|
|
56813
|
+
_hoisted_12$4 = { class: "stat-item" };
|
|
56814
|
+
_hoisted_13$4 = { class: "stat-value" };
|
|
56815
|
+
_hoisted_14$4 = { class: "stat-label" };
|
|
56816
|
+
_hoisted_15$4 = { class: "stat-item" };
|
|
56817
|
+
_hoisted_16$4 = { class: "stat-value" };
|
|
56818
|
+
_hoisted_17$4 = { class: "stat-label" };
|
|
56819
|
+
_hoisted_18$4 = { class: "database-tabs" };
|
|
56820
|
+
_hoisted_19$4 = { class: "nav nav-tabs" };
|
|
56748
56821
|
_hoisted_20$4 = { class: "nav-item" };
|
|
56749
56822
|
_hoisted_21$4 = { class: "nav-item" };
|
|
56750
56823
|
_hoisted_22$4 = { class: "nav-item" };
|
|
56751
56824
|
_hoisted_23$4 = { class: "nav-item" };
|
|
56752
|
-
_hoisted_24$4 = { class: "
|
|
56753
|
-
_hoisted_25$
|
|
56754
|
-
_hoisted_26$3 = { class: "
|
|
56755
|
-
_hoisted_27$3 = {
|
|
56825
|
+
_hoisted_24$4 = { class: "nav-item" };
|
|
56826
|
+
_hoisted_25$4 = { class: "tab-content" };
|
|
56827
|
+
_hoisted_26$3 = { class: "tab-panel" };
|
|
56828
|
+
_hoisted_27$3 = { class: "tables-actions mb-3" };
|
|
56829
|
+
_hoisted_28$3 = {
|
|
56756
56830
|
key: 0,
|
|
56757
56831
|
class: "loading-state"
|
|
56758
56832
|
};
|
|
56759
|
-
|
|
56833
|
+
_hoisted_29$3 = {
|
|
56760
56834
|
class: "spinner-border",
|
|
56761
56835
|
role: "status"
|
|
56762
56836
|
};
|
|
56763
|
-
|
|
56764
|
-
|
|
56765
|
-
|
|
56766
|
-
|
|
56767
|
-
|
|
56768
|
-
|
|
56769
|
-
|
|
56770
|
-
|
|
56771
|
-
|
|
56772
|
-
|
|
56773
|
-
|
|
56774
|
-
|
|
56775
|
-
|
|
56837
|
+
_hoisted_30$2 = { class: "visually-hidden" };
|
|
56838
|
+
_hoisted_31$2 = { key: 1 };
|
|
56839
|
+
_hoisted_32$2 = { class: "table-grid" };
|
|
56840
|
+
_hoisted_33$2 = ["onClick"];
|
|
56841
|
+
_hoisted_34$2 = { class: "card-header" };
|
|
56842
|
+
_hoisted_35$2 = { class: "table-info" };
|
|
56843
|
+
_hoisted_36$2 = { class: "table-name-wrapper" };
|
|
56844
|
+
_hoisted_37$2 = ["title"];
|
|
56845
|
+
_hoisted_38$2 = { class: "table-engine" };
|
|
56846
|
+
_hoisted_39$2 = ["title"];
|
|
56847
|
+
_hoisted_40$2 = { class: "card-body" };
|
|
56848
|
+
_hoisted_41$2 = { class: "table-stats" };
|
|
56849
|
+
_hoisted_42$2 = {
|
|
56776
56850
|
key: 0,
|
|
56777
56851
|
class: "stat"
|
|
56778
56852
|
};
|
|
56779
|
-
|
|
56780
|
-
|
|
56781
|
-
|
|
56853
|
+
_hoisted_43$2 = { class: "stat-label" };
|
|
56854
|
+
_hoisted_44$2 = { class: "stat-value" };
|
|
56855
|
+
_hoisted_45$2 = {
|
|
56782
56856
|
key: 1,
|
|
56783
56857
|
class: "stat"
|
|
56784
56858
|
};
|
|
56785
|
-
|
|
56786
|
-
|
|
56787
|
-
|
|
56788
|
-
|
|
56789
|
-
|
|
56859
|
+
_hoisted_46$2 = { class: "stat-label" };
|
|
56860
|
+
_hoisted_47$2 = { class: "stat-value" };
|
|
56861
|
+
_hoisted_48$1 = { class: "table-actions" };
|
|
56862
|
+
_hoisted_49$1 = ["onClick"];
|
|
56863
|
+
_hoisted_50$1 = {
|
|
56790
56864
|
key: 0,
|
|
56791
56865
|
class: "empty-state"
|
|
56792
56866
|
};
|
|
56793
|
-
|
|
56794
|
-
|
|
56795
|
-
|
|
56867
|
+
_hoisted_51$1 = { class: "tab-panel" };
|
|
56868
|
+
_hoisted_52$1 = { class: "views-actions mb-3" };
|
|
56869
|
+
_hoisted_53$1 = {
|
|
56796
56870
|
key: 0,
|
|
56797
56871
|
class: "views-grid"
|
|
56798
56872
|
};
|
|
56799
|
-
|
|
56800
|
-
|
|
56801
|
-
|
|
56802
|
-
|
|
56873
|
+
_hoisted_54$1 = { class: "card-header" };
|
|
56874
|
+
_hoisted_55$1 = { class: "view-info" };
|
|
56875
|
+
_hoisted_56$1 = { class: "view-name" };
|
|
56876
|
+
_hoisted_57$1 = {
|
|
56803
56877
|
key: 0,
|
|
56804
56878
|
class: "view-comment"
|
|
56805
56879
|
};
|
|
56806
|
-
|
|
56807
|
-
|
|
56808
|
-
_hoisted_59$1 = ["onClick"];
|
|
56880
|
+
_hoisted_58$1 = { class: "card-body" };
|
|
56881
|
+
_hoisted_59$1 = { class: "view-actions" };
|
|
56809
56882
|
_hoisted_60$1 = ["onClick"];
|
|
56810
|
-
_hoisted_61$1 =
|
|
56883
|
+
_hoisted_61$1 = ["onClick"];
|
|
56884
|
+
_hoisted_62$1 = {
|
|
56811
56885
|
key: 1,
|
|
56812
56886
|
class: "empty-state"
|
|
56813
56887
|
};
|
|
56814
|
-
|
|
56815
|
-
|
|
56816
|
-
|
|
56888
|
+
_hoisted_63$1 = { class: "tab-panel" };
|
|
56889
|
+
_hoisted_64$1 = { class: "procedures-actions mb-3" };
|
|
56890
|
+
_hoisted_65$1 = {
|
|
56817
56891
|
key: 0,
|
|
56818
56892
|
class: "procedures-grid"
|
|
56819
56893
|
};
|
|
56820
|
-
|
|
56821
|
-
|
|
56822
|
-
|
|
56823
|
-
|
|
56894
|
+
_hoisted_66$1 = { class: "card-header" };
|
|
56895
|
+
_hoisted_67$1 = { class: "procedure-info" };
|
|
56896
|
+
_hoisted_68$1 = { class: "procedure-name" };
|
|
56897
|
+
_hoisted_69$1 = {
|
|
56824
56898
|
key: 0,
|
|
56825
56899
|
class: "procedure-comment"
|
|
56826
56900
|
};
|
|
56827
|
-
|
|
56828
|
-
|
|
56829
|
-
|
|
56901
|
+
_hoisted_70$1 = { class: "procedure-type" };
|
|
56902
|
+
_hoisted_71$1 = { class: "badge bg-info" };
|
|
56903
|
+
_hoisted_72$1 = {
|
|
56830
56904
|
key: 0,
|
|
56831
56905
|
class: "badge bg-secondary ms-1"
|
|
56832
56906
|
};
|
|
56833
|
-
|
|
56834
|
-
|
|
56835
|
-
_hoisted_74 = ["onClick"];
|
|
56907
|
+
_hoisted_73$1 = { class: "card-body" };
|
|
56908
|
+
_hoisted_74 = { class: "procedure-actions" };
|
|
56836
56909
|
_hoisted_75 = ["onClick"];
|
|
56837
|
-
_hoisted_76 =
|
|
56910
|
+
_hoisted_76 = ["onClick"];
|
|
56911
|
+
_hoisted_77 = {
|
|
56838
56912
|
key: 1,
|
|
56839
56913
|
class: "empty-state"
|
|
56840
56914
|
};
|
|
56841
|
-
|
|
56842
|
-
|
|
56843
|
-
|
|
56844
|
-
|
|
56845
|
-
|
|
56846
|
-
|
|
56915
|
+
_hoisted_78 = { class: "tab-panel" };
|
|
56916
|
+
_hoisted_79 = { class: "empty-state" };
|
|
56917
|
+
_hoisted_80 = { class: "tab-panel" };
|
|
56918
|
+
_hoisted_81 = { class: "sql-executor-section" };
|
|
56919
|
+
_hoisted_82 = { class: "tab-panel" };
|
|
56920
|
+
_hoisted_83 = {
|
|
56847
56921
|
key: 0,
|
|
56848
56922
|
class: "modal fade show d-block",
|
|
56849
56923
|
style: { "background": "rgba(0,0,0,0.5)" }
|
|
56850
56924
|
};
|
|
56851
|
-
|
|
56852
|
-
|
|
56853
|
-
|
|
56854
|
-
|
|
56855
|
-
|
|
56856
|
-
|
|
56857
|
-
|
|
56858
|
-
|
|
56859
|
-
|
|
56860
|
-
|
|
56861
|
-
|
|
56862
|
-
|
|
56863
|
-
|
|
56925
|
+
_hoisted_84 = { class: "modal-dialog modal-lg" };
|
|
56926
|
+
_hoisted_85 = { class: "modal-content" };
|
|
56927
|
+
_hoisted_86 = { class: "modal-header" };
|
|
56928
|
+
_hoisted_87 = { class: "modal-title" };
|
|
56929
|
+
_hoisted_88 = { class: "modal-body" };
|
|
56930
|
+
_hoisted_89 = { class: "mb-3" };
|
|
56931
|
+
_hoisted_90 = { class: "form-label" };
|
|
56932
|
+
_hoisted_91 = ["placeholder"];
|
|
56933
|
+
_hoisted_92 = { class: "mb-3" };
|
|
56934
|
+
_hoisted_93 = { class: "form-label" };
|
|
56935
|
+
_hoisted_94 = ["placeholder"];
|
|
56936
|
+
_hoisted_95 = { class: "modal-footer" };
|
|
56937
|
+
_hoisted_96 = {
|
|
56864
56938
|
key: 1,
|
|
56865
56939
|
class: "modal fade show d-block",
|
|
56866
56940
|
style: { "background": "rgba(0,0,0,0.5)" }
|
|
56867
56941
|
};
|
|
56868
|
-
|
|
56869
|
-
|
|
56870
|
-
|
|
56871
|
-
|
|
56872
|
-
|
|
56873
|
-
|
|
56874
|
-
|
|
56875
|
-
|
|
56876
|
-
|
|
56877
|
-
|
|
56878
|
-
|
|
56879
|
-
|
|
56880
|
-
|
|
56881
|
-
|
|
56882
|
-
|
|
56883
|
-
|
|
56942
|
+
_hoisted_97 = { class: "modal-dialog modal-lg" };
|
|
56943
|
+
_hoisted_98 = { class: "modal-content" };
|
|
56944
|
+
_hoisted_99 = { class: "modal-header" };
|
|
56945
|
+
_hoisted_100 = { class: "modal-title" };
|
|
56946
|
+
_hoisted_101 = { class: "modal-body" };
|
|
56947
|
+
_hoisted_102 = { class: "mb-3" };
|
|
56948
|
+
_hoisted_103 = { class: "form-label" };
|
|
56949
|
+
_hoisted_104 = ["placeholder"];
|
|
56950
|
+
_hoisted_105 = { class: "mb-3" };
|
|
56951
|
+
_hoisted_106 = { class: "form-label" };
|
|
56952
|
+
_hoisted_107 = ["placeholder"];
|
|
56953
|
+
_hoisted_108 = { class: "mb-3" };
|
|
56954
|
+
_hoisted_109 = { class: "form-label" };
|
|
56955
|
+
_hoisted_110 = ["placeholder"];
|
|
56956
|
+
_hoisted_111 = { class: "modal-footer" };
|
|
56957
|
+
_hoisted_112 = {
|
|
56884
56958
|
key: 2,
|
|
56885
56959
|
class: "modal fade show d-block",
|
|
56886
56960
|
style: { "background": "rgba(0,0,0,0.5)" }
|
|
56887
56961
|
};
|
|
56888
|
-
|
|
56889
|
-
|
|
56890
|
-
|
|
56891
|
-
|
|
56892
|
-
|
|
56893
|
-
|
|
56894
|
-
|
|
56895
|
-
|
|
56896
|
-
|
|
56897
|
-
|
|
56898
|
-
|
|
56899
|
-
|
|
56900
|
-
|
|
56901
|
-
|
|
56902
|
-
|
|
56962
|
+
_hoisted_113 = { class: "modal-dialog modal-lg" };
|
|
56963
|
+
_hoisted_114 = { class: "modal-content" };
|
|
56964
|
+
_hoisted_115 = { class: "modal-header" };
|
|
56965
|
+
_hoisted_116 = { class: "modal-title" };
|
|
56966
|
+
_hoisted_117 = { class: "modal-body" };
|
|
56967
|
+
_hoisted_118 = { class: "mb-3" };
|
|
56968
|
+
_hoisted_119 = { class: "form-label" };
|
|
56969
|
+
_hoisted_120 = ["placeholder"];
|
|
56970
|
+
_hoisted_121 = { class: "mb-3" };
|
|
56971
|
+
_hoisted_122 = { class: "form-label" };
|
|
56972
|
+
_hoisted_123 = ["placeholder"];
|
|
56973
|
+
_hoisted_124 = { class: "mb-3" };
|
|
56974
|
+
_hoisted_125 = { class: "form-label" };
|
|
56975
|
+
_hoisted_126 = ["placeholder"];
|
|
56976
|
+
_hoisted_127 = { class: "modal-footer" };
|
|
56903
56977
|
database_detail_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComponent({
|
|
56904
56978
|
__name: "database-detail",
|
|
56905
56979
|
props: {
|
|
@@ -56913,7 +56987,8 @@ var init_database_detail_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
|
56913
56987
|
"select-table",
|
|
56914
56988
|
"refresh-database",
|
|
56915
56989
|
"create-table",
|
|
56916
|
-
"execute-sql"
|
|
56990
|
+
"execute-sql",
|
|
56991
|
+
"navigate-connection"
|
|
56917
56992
|
],
|
|
56918
56993
|
setup(__props, { emit: __emit }) {
|
|
56919
56994
|
const props = __props;
|
|
@@ -57158,217 +57233,226 @@ var init_database_detail_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
|
57158
57233
|
emit("execute-sql", sql);
|
|
57159
57234
|
}
|
|
57160
57235
|
return (_ctx, _cache) => {
|
|
57161
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
57162
|
-
createBaseVNode("div", _hoisted_2$
|
|
57163
|
-
|
|
57164
|
-
|
|
57165
|
-
|
|
57166
|
-
|
|
57167
|
-
}, [_cache[20] || (_cache[20] = createBaseVNode("i", { class: "bi bi-
|
|
57236
|
+
return openBlock(), createElementBlock("div", _hoisted_1$4, [
|
|
57237
|
+
createBaseVNode("div", _hoisted_2$4, [createBaseVNode("div", _hoisted_3$4, [createBaseVNode("div", _hoisted_4$4, [_cache[22] || (_cache[22] = 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, [
|
|
57238
|
+
createBaseVNode("span", {
|
|
57239
|
+
class: "crumb crumb-link",
|
|
57240
|
+
onClick: _cache[0] || (_cache[0] = ($event) => emit("navigate-connection")),
|
|
57241
|
+
title: _ctx.$t("databaseDetail.backToConnection")
|
|
57242
|
+
}, [_cache[20] || (_cache[20] = createBaseVNode("i", { class: "bi bi-hdd-network me-1" }, null, -1)), createTextVNode(toDisplayString(__props.connection?.name), 1)], 8, _hoisted_8$4),
|
|
57243
|
+
_cache[21] || (_cache[21] = createBaseVNode("i", { class: "bi bi-chevron-right" }, null, -1)),
|
|
57244
|
+
createBaseVNode("span", _hoisted_9$4, toDisplayString(__props.database), 1),
|
|
57245
|
+
createBaseVNode("span", _hoisted_10$4, toDisplayString(getDbTypeLabel(__props.connection?.type)), 1)
|
|
57246
|
+
])])]), createBaseVNode("div", _hoisted_11$4, [createBaseVNode("div", _hoisted_12$4, [createBaseVNode("div", _hoisted_13$4, toDisplayString(__props.databaseInfo?.tableCount || 0), 1), createBaseVNode("div", _hoisted_14$4, toDisplayString(_ctx.$t("connection.tableCount")), 1)]), createBaseVNode("div", _hoisted_15$4, [createBaseVNode("div", _hoisted_16$4, toDisplayString(formatSize(__props.databaseInfo?.size || 0)), 1), createBaseVNode("div", _hoisted_17$4, toDisplayString(_ctx.$t("databaseDetail.size")), 1)])])])]),
|
|
57247
|
+
createBaseVNode("div", _hoisted_18$4, [createBaseVNode("ul", _hoisted_19$4, [
|
|
57168
57248
|
createBaseVNode("li", _hoisted_20$4, [createBaseVNode("button", {
|
|
57169
|
-
class: normalizeClass(["nav-link", { active: activeTab.value === "
|
|
57170
|
-
onClick: _cache[1] || (_cache[1] = ($event) => activeTab.value = "
|
|
57171
|
-
}, [_cache[
|
|
57249
|
+
class: normalizeClass(["nav-link", { active: activeTab.value === "tables" }]),
|
|
57250
|
+
onClick: _cache[1] || (_cache[1] = ($event) => activeTab.value = "tables")
|
|
57251
|
+
}, [_cache[23] || (_cache[23] = createBaseVNode("i", { class: "bi bi-table" }, null, -1)), createTextVNode(" " + toDisplayString(_ctx.$t("databaseDetail.tables")), 1)], 2)]),
|
|
57172
57252
|
createBaseVNode("li", _hoisted_21$4, [createBaseVNode("button", {
|
|
57173
|
-
class: normalizeClass(["nav-link", { active: activeTab.value === "
|
|
57174
|
-
onClick: _cache[2] || (_cache[2] = ($event) => activeTab.value = "
|
|
57175
|
-
}, [_cache[
|
|
57253
|
+
class: normalizeClass(["nav-link", { active: activeTab.value === "views" }]),
|
|
57254
|
+
onClick: _cache[2] || (_cache[2] = ($event) => activeTab.value = "views")
|
|
57255
|
+
}, [_cache[24] || (_cache[24] = createBaseVNode("i", { class: "bi bi-eye" }, null, -1)), createTextVNode(" " + toDisplayString(_ctx.$t("databaseDetail.views")), 1)], 2)]),
|
|
57176
57256
|
createBaseVNode("li", _hoisted_22$4, [createBaseVNode("button", {
|
|
57177
|
-
class: normalizeClass(["nav-link", { active: activeTab.value === "
|
|
57178
|
-
onClick: _cache[3] || (_cache[3] = ($event) => activeTab.value = "
|
|
57179
|
-
}, [_cache[
|
|
57257
|
+
class: normalizeClass(["nav-link", { active: activeTab.value === "procedures" }]),
|
|
57258
|
+
onClick: _cache[3] || (_cache[3] = ($event) => activeTab.value = "procedures")
|
|
57259
|
+
}, [_cache[25] || (_cache[25] = createBaseVNode("i", { class: "bi bi-gear" }, null, -1)), createTextVNode(" " + toDisplayString(_ctx.$t("databaseDetail.procedures")), 1)], 2)]),
|
|
57180
57260
|
createBaseVNode("li", _hoisted_23$4, [createBaseVNode("button", {
|
|
57261
|
+
class: normalizeClass(["nav-link", { active: activeTab.value === "sql" }]),
|
|
57262
|
+
onClick: _cache[4] || (_cache[4] = ($event) => activeTab.value = "sql")
|
|
57263
|
+
}, [_cache[26] || (_cache[26] = createBaseVNode("i", { class: "bi bi-terminal" }, null, -1)), createTextVNode(" " + toDisplayString(_ctx.$t("databaseDetail.executeSQL")), 1)], 2)]),
|
|
57264
|
+
createBaseVNode("li", _hoisted_24$4, [createBaseVNode("button", {
|
|
57181
57265
|
class: normalizeClass(["nav-link", { active: activeTab.value === "tools" }]),
|
|
57182
|
-
onClick: _cache[
|
|
57183
|
-
}, [_cache[
|
|
57184
|
-
]), createBaseVNode("div",
|
|
57185
|
-
withDirectives(createBaseVNode("div",
|
|
57266
|
+
onClick: _cache[5] || (_cache[5] = ($event) => activeTab.value = "tools")
|
|
57267
|
+
}, [_cache[27] || (_cache[27] = createBaseVNode("i", { class: "bi bi-tools" }, null, -1)), createTextVNode(" " + toDisplayString(_ctx.$t("databaseDetail.tools")), 1)], 2)])
|
|
57268
|
+
]), createBaseVNode("div", _hoisted_25$4, [
|
|
57269
|
+
withDirectives(createBaseVNode("div", _hoisted_26$3, [createBaseVNode("div", _hoisted_27$3, [createBaseVNode("button", {
|
|
57186
57270
|
class: "btn btn-primary btn-sm",
|
|
57187
57271
|
onClick: createNewTable
|
|
57188
|
-
}, [_cache[
|
|
57272
|
+
}, [_cache[28] || (_cache[28] = createBaseVNode("i", { class: "bi bi-plus-lg" }, null, -1)), createTextVNode(" " + toDisplayString(_ctx.$t("databaseDetail.createTable")), 1)]), createBaseVNode("button", {
|
|
57189
57273
|
class: "btn btn-outline-secondary btn-sm",
|
|
57190
57274
|
onClick: handleRefreshDatabase
|
|
57191
|
-
}, [_cache[
|
|
57275
|
+
}, [_cache[29] || (_cache[29] = createBaseVNode("i", { class: "bi bi-arrow-clockwise" }, null, -1)), createTextVNode(" " + toDisplayString(_ctx.$t("common.refresh")), 1)])]), __props.loading ? (openBlock(), createElementBlock("div", _hoisted_28$3, [createBaseVNode("div", _hoisted_29$3, [createBaseVNode("span", _hoisted_30$2, toDisplayString(_ctx.$t("common.loading")), 1)]), createBaseVNode("p", null, toDisplayString(_ctx.$t("databaseDetail.loadingTables")), 1)])) : (openBlock(), createElementBlock("div", _hoisted_31$2, [createBaseVNode("div", _hoisted_32$2, [(openBlock(true), createElementBlock(Fragment, null, renderList(tables.value, (table) => {
|
|
57192
57276
|
return openBlock(), createElementBlock("div", {
|
|
57193
57277
|
key: table.name,
|
|
57194
57278
|
class: "table-card",
|
|
57195
57279
|
onClick: ($event) => selectTable(table)
|
|
57196
|
-
}, [createBaseVNode("div",
|
|
57280
|
+
}, [createBaseVNode("div", _hoisted_34$2, [_cache[30] || (_cache[30] = createBaseVNode("div", { class: "table-icon" }, [createBaseVNode("i", { class: "bi bi-table" })], -1)), createBaseVNode("div", _hoisted_35$2, [createBaseVNode("div", _hoisted_36$2, [createBaseVNode("div", {
|
|
57197
57281
|
class: "table-name",
|
|
57198
57282
|
title: table.name
|
|
57199
|
-
}, toDisplayString(table.name), 9,
|
|
57283
|
+
}, toDisplayString(table.name), 9, _hoisted_37$2), createBaseVNode("div", _hoisted_38$2, toDisplayString(table.engine || "-"), 1)]), table.comment ? (openBlock(), createElementBlock("div", {
|
|
57200
57284
|
key: 0,
|
|
57201
57285
|
class: "table-comment-header",
|
|
57202
57286
|
title: table.comment
|
|
57203
|
-
}, toDisplayString(table.comment), 9,
|
|
57287
|
+
}, toDisplayString(table.comment), 9, _hoisted_39$2)) : createCommentVNode("", true)])]), createBaseVNode("div", _hoisted_40$2, [createBaseVNode("div", _hoisted_41$2, [table.rowCount !== void 0 ? (openBlock(), createElementBlock("div", _hoisted_42$2, [createBaseVNode("span", _hoisted_43$2, toDisplayString(_ctx.$t("databaseDetail.rowCountLabel")), 1), createBaseVNode("span", _hoisted_44$2, toDisplayString(formatNumber(table.rowCount)), 1)])) : createCommentVNode("", true), table.dataSize !== void 0 ? (openBlock(), createElementBlock("div", _hoisted_45$2, [createBaseVNode("span", _hoisted_46$2, toDisplayString(_ctx.$t("databaseDetail.size")), 1), createBaseVNode("span", _hoisted_47$2, toDisplayString(formatSize(table.dataSize)), 1)])) : createCommentVNode("", true)]), createBaseVNode("div", _hoisted_48$1, [createBaseVNode("button", {
|
|
57204
57288
|
class: "btn btn-sm btn-outline-primary",
|
|
57205
57289
|
onClick: withModifiers(($event) => editTable(table), ["stop"])
|
|
57206
|
-
}, [..._cache[
|
|
57207
|
-
}), 128))]), !tables.value || tables.value.length === 0 ? (openBlock(), createElementBlock("div",
|
|
57208
|
-
_cache[
|
|
57290
|
+
}, [..._cache[31] || (_cache[31] = [createBaseVNode("i", { class: "bi bi-pencil" }, null, -1)])], 8, _hoisted_49$1)])])], 8, _hoisted_33$2);
|
|
57291
|
+
}), 128))]), !tables.value || tables.value.length === 0 ? (openBlock(), createElementBlock("div", _hoisted_50$1, [
|
|
57292
|
+
_cache[33] || (_cache[33] = createBaseVNode("i", { class: "bi bi-inbox" }, null, -1)),
|
|
57209
57293
|
createBaseVNode("p", null, toDisplayString(_ctx.$t("databaseDetail.noTable")), 1),
|
|
57210
57294
|
createBaseVNode("button", {
|
|
57211
57295
|
class: "btn btn-primary",
|
|
57212
57296
|
onClick: createNewTable
|
|
57213
|
-
}, [_cache[
|
|
57297
|
+
}, [_cache[32] || (_cache[32] = createBaseVNode("i", { class: "bi bi-plus" }, null, -1)), createTextVNode(" " + toDisplayString(_ctx.$t("databaseDetail.createTable")), 1)])
|
|
57214
57298
|
])) : createCommentVNode("", true)]))], 512), [[vShow, activeTab.value === "tables"]]),
|
|
57215
|
-
withDirectives(createBaseVNode("div",
|
|
57299
|
+
withDirectives(createBaseVNode("div", _hoisted_51$1, [createBaseVNode("div", _hoisted_52$1, [createBaseVNode("button", {
|
|
57216
57300
|
class: "btn btn-success btn-sm",
|
|
57217
57301
|
onClick: showCreateViewModal
|
|
57218
|
-
}, [_cache[
|
|
57302
|
+
}, [_cache[34] || (_cache[34] = createBaseVNode("i", { class: "bi bi-plus-lg" }, null, -1)), createTextVNode(" " + toDisplayString(_ctx.$t("databaseDetail.createView")), 1)]), createBaseVNode("button", {
|
|
57219
57303
|
class: "btn btn-info btn-sm",
|
|
57220
57304
|
onClick: refreshViews
|
|
57221
|
-
}, [_cache[
|
|
57305
|
+
}, [_cache[35] || (_cache[35] = createBaseVNode("i", { class: "bi bi-arrow-clockwise" }, null, -1)), createTextVNode(" " + toDisplayString(_ctx.$t("common.refresh")), 1)])]), views.value.length > 0 ? (openBlock(), createElementBlock("div", _hoisted_53$1, [(openBlock(true), createElementBlock(Fragment, null, renderList(views.value, (view) => {
|
|
57222
57306
|
return openBlock(), createElementBlock("div", {
|
|
57223
57307
|
key: view.name,
|
|
57224
57308
|
class: "view-card"
|
|
57225
|
-
}, [createBaseVNode("div",
|
|
57309
|
+
}, [createBaseVNode("div", _hoisted_54$1, [_cache[36] || (_cache[36] = createBaseVNode("div", { class: "view-icon" }, [createBaseVNode("i", { class: "bi bi-eye" })], -1)), createBaseVNode("div", _hoisted_55$1, [createBaseVNode("div", _hoisted_56$1, toDisplayString(view.name), 1), view.comment ? (openBlock(), createElementBlock("div", _hoisted_57$1, toDisplayString(view.comment), 1)) : createCommentVNode("", true)])]), createBaseVNode("div", _hoisted_58$1, [createBaseVNode("div", _hoisted_59$1, [createBaseVNode("button", {
|
|
57226
57310
|
class: "btn btn-sm btn-outline-primary",
|
|
57227
57311
|
onClick: ($event) => editView(view)
|
|
57228
|
-
}, [_cache[
|
|
57312
|
+
}, [_cache[37] || (_cache[37] = createBaseVNode("i", { class: "bi bi-pencil" }, null, -1)), createTextVNode(" " + toDisplayString(_ctx.$t("common.edit")), 1)], 8, _hoisted_60$1), createBaseVNode("button", {
|
|
57229
57313
|
class: "btn btn-sm btn-outline-danger",
|
|
57230
57314
|
onClick: ($event) => deleteView(view)
|
|
57231
|
-
}, [_cache[
|
|
57232
|
-
}), 128))])) : (openBlock(), createElementBlock("div",
|
|
57233
|
-
_cache[
|
|
57315
|
+
}, [_cache[38] || (_cache[38] = createBaseVNode("i", { class: "bi bi-trash" }, null, -1)), createTextVNode(" " + toDisplayString(_ctx.$t("common.delete")), 1)], 8, _hoisted_61$1)])])]);
|
|
57316
|
+
}), 128))])) : (openBlock(), createElementBlock("div", _hoisted_62$1, [
|
|
57317
|
+
_cache[40] || (_cache[40] = createBaseVNode("i", { class: "bi bi-eye" }, null, -1)),
|
|
57234
57318
|
createBaseVNode("p", null, toDisplayString(_ctx.$t("databaseDetail.noView")), 1),
|
|
57235
57319
|
createBaseVNode("button", {
|
|
57236
57320
|
class: "btn btn-success",
|
|
57237
57321
|
onClick: showCreateViewModal
|
|
57238
|
-
}, [_cache[
|
|
57322
|
+
}, [_cache[39] || (_cache[39] = createBaseVNode("i", { class: "bi bi-plus" }, null, -1)), createTextVNode(" " + toDisplayString(_ctx.$t("databaseDetail.createView")), 1)])
|
|
57239
57323
|
]))], 512), [[vShow, activeTab.value === "views"]]),
|
|
57240
|
-
withDirectives(createBaseVNode("div",
|
|
57324
|
+
withDirectives(createBaseVNode("div", _hoisted_63$1, [createBaseVNode("div", _hoisted_64$1, [createBaseVNode("button", {
|
|
57241
57325
|
class: "btn btn-info btn-sm",
|
|
57242
57326
|
onClick: showCreateProcedureModal
|
|
57243
|
-
}, [_cache[
|
|
57327
|
+
}, [_cache[41] || (_cache[41] = createBaseVNode("i", { class: "bi bi-plus-lg" }, null, -1)), createTextVNode(" " + toDisplayString(_ctx.$t("databaseDetail.createProcedure")), 1)]), createBaseVNode("button", {
|
|
57244
57328
|
class: "btn btn-info btn-sm",
|
|
57245
57329
|
onClick: refreshProcedures
|
|
57246
|
-
}, [_cache[
|
|
57330
|
+
}, [_cache[42] || (_cache[42] = createBaseVNode("i", { class: "bi bi-arrow-clockwise" }, null, -1)), createTextVNode(" " + toDisplayString(_ctx.$t("common.refresh")), 1)])]), procedures.value.length > 0 ? (openBlock(), createElementBlock("div", _hoisted_65$1, [(openBlock(true), createElementBlock(Fragment, null, renderList(procedures.value, (procedure) => {
|
|
57247
57331
|
return openBlock(), createElementBlock("div", {
|
|
57248
57332
|
key: procedure.name,
|
|
57249
57333
|
class: "procedure-card"
|
|
57250
|
-
}, [createBaseVNode("div",
|
|
57251
|
-
createBaseVNode("div",
|
|
57252
|
-
procedure.comment ? (openBlock(), createElementBlock("div",
|
|
57253
|
-
createBaseVNode("div",
|
|
57254
|
-
])]), createBaseVNode("div",
|
|
57334
|
+
}, [createBaseVNode("div", _hoisted_66$1, [_cache[43] || (_cache[43] = createBaseVNode("div", { class: "procedure-icon" }, [createBaseVNode("i", { class: "bi bi-gear" })], -1)), createBaseVNode("div", _hoisted_67$1, [
|
|
57335
|
+
createBaseVNode("div", _hoisted_68$1, toDisplayString(procedure.name), 1),
|
|
57336
|
+
procedure.comment ? (openBlock(), createElementBlock("div", _hoisted_69$1, toDisplayString(procedure.comment), 1)) : createCommentVNode("", true),
|
|
57337
|
+
createBaseVNode("div", _hoisted_70$1, [createBaseVNode("span", _hoisted_71$1, toDisplayString(procedure.type), 1), procedure.returnType ? (openBlock(), createElementBlock("span", _hoisted_72$1, toDisplayString(procedure.returnType), 1)) : createCommentVNode("", true)])
|
|
57338
|
+
])]), createBaseVNode("div", _hoisted_73$1, [createBaseVNode("div", _hoisted_74, [createBaseVNode("button", {
|
|
57255
57339
|
class: "btn btn-sm btn-outline-primary",
|
|
57256
57340
|
onClick: ($event) => editProcedure(procedure)
|
|
57257
|
-
}, [_cache[
|
|
57341
|
+
}, [_cache[44] || (_cache[44] = createBaseVNode("i", { class: "bi bi-pencil" }, null, -1)), createTextVNode(" " + toDisplayString(_ctx.$t("common.edit")), 1)], 8, _hoisted_75), createBaseVNode("button", {
|
|
57258
57342
|
class: "btn btn-sm btn-outline-danger",
|
|
57259
57343
|
onClick: ($event) => deleteProcedure(procedure)
|
|
57260
|
-
}, [_cache[
|
|
57261
|
-
}), 128))])) : (openBlock(), createElementBlock("div",
|
|
57262
|
-
_cache[
|
|
57344
|
+
}, [_cache[45] || (_cache[45] = createBaseVNode("i", { class: "bi bi-trash" }, null, -1)), createTextVNode(" " + toDisplayString(_ctx.$t("common.delete")), 1)], 8, _hoisted_76)])])]);
|
|
57345
|
+
}), 128))])) : (openBlock(), createElementBlock("div", _hoisted_77, [
|
|
57346
|
+
_cache[47] || (_cache[47] = createBaseVNode("i", { class: "bi bi-gear" }, null, -1)),
|
|
57263
57347
|
createBaseVNode("p", null, toDisplayString(_ctx.$t("databaseDetail.noProcedure")), 1),
|
|
57264
57348
|
createBaseVNode("button", {
|
|
57265
57349
|
class: "btn btn-info",
|
|
57266
57350
|
onClick: showCreateProcedureModal
|
|
57267
|
-
}, [_cache[
|
|
57351
|
+
}, [_cache[46] || (_cache[46] = createBaseVNode("i", { class: "bi bi-plus" }, null, -1)), createTextVNode(" " + toDisplayString(_ctx.$t("databaseDetail.createProcedure")), 1)])
|
|
57268
57352
|
]))], 512), [[vShow, activeTab.value === "procedures"]]),
|
|
57269
|
-
withDirectives(createBaseVNode("div",
|
|
57270
|
-
withDirectives(createBaseVNode("div",
|
|
57353
|
+
withDirectives(createBaseVNode("div", _hoisted_78, [createBaseVNode("div", _hoisted_79, [_cache[48] || (_cache[48] = createBaseVNode("i", { class: "bi bi-code-slash" }, null, -1)), createBaseVNode("p", null, toDisplayString(_ctx.$t("databaseDetail.functionInDev")), 1)])], 512), [[vShow, activeTab.value === "functions"]]),
|
|
57354
|
+
withDirectives(createBaseVNode("div", _hoisted_80, [createBaseVNode("div", _hoisted_81, [createVNode(sql_executor_default, {
|
|
57271
57355
|
connection: __props.connection,
|
|
57272
57356
|
database: __props.database
|
|
57273
57357
|
}, null, 8, ["connection", "database"])])], 512), [[vShow, activeTab.value === "sql"]]),
|
|
57274
|
-
withDirectives(createBaseVNode("div",
|
|
57358
|
+
withDirectives(createBaseVNode("div", _hoisted_82, [createVNode(db_tools_default, {
|
|
57275
57359
|
connection: __props.connection,
|
|
57276
57360
|
database: __props.database,
|
|
57277
57361
|
onExecuteSql: handleExecuteSQL
|
|
57278
57362
|
}, null, 8, ["connection", "database"])], 512), [[vShow, activeTab.value === "tools"]])
|
|
57279
57363
|
])]),
|
|
57280
|
-
showCreateTable.value ? (openBlock(), createElementBlock("div",
|
|
57281
|
-
createBaseVNode("div",
|
|
57364
|
+
showCreateTable.value ? (openBlock(), createElementBlock("div", _hoisted_83, [createBaseVNode("div", _hoisted_84, [createBaseVNode("div", _hoisted_85, [
|
|
57365
|
+
createBaseVNode("div", _hoisted_86, [createBaseVNode("h5", _hoisted_87, toDisplayString(_ctx.$t("databaseDetail.createTableTitle")), 1), createBaseVNode("button", {
|
|
57282
57366
|
type: "button",
|
|
57283
57367
|
class: "btn-close",
|
|
57284
|
-
onClick: _cache[
|
|
57368
|
+
onClick: _cache[6] || (_cache[6] = ($event) => showCreateTable.value = false)
|
|
57285
57369
|
})]),
|
|
57286
|
-
createBaseVNode("div",
|
|
57370
|
+
createBaseVNode("div", _hoisted_88, [createBaseVNode("form", null, [createBaseVNode("div", _hoisted_89, [createBaseVNode("label", _hoisted_90, toDisplayString(_ctx.$t("databaseDetail.tableNameLabel")), 1), withDirectives(createBaseVNode("input", {
|
|
57287
57371
|
type: "text",
|
|
57288
57372
|
class: "form-control",
|
|
57289
|
-
"onUpdate:modelValue": _cache[
|
|
57373
|
+
"onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) => newTable.value.name = $event),
|
|
57290
57374
|
placeholder: _ctx.$t("databaseDetail.enterTableName")
|
|
57291
|
-
}, null, 8,
|
|
57375
|
+
}, null, 8, _hoisted_91), [[vModelText, newTable.value.name]])]), createBaseVNode("div", _hoisted_92, [createBaseVNode("label", _hoisted_93, toDisplayString(_ctx.$t("databaseDetail.commentLabel")), 1), withDirectives(createBaseVNode("textarea", {
|
|
57292
57376
|
class: "form-control",
|
|
57293
|
-
"onUpdate:modelValue": _cache[
|
|
57377
|
+
"onUpdate:modelValue": _cache[8] || (_cache[8] = ($event) => newTable.value.comment = $event),
|
|
57294
57378
|
placeholder: _ctx.$t("databaseDetail.enterTableComment")
|
|
57295
|
-
}, null, 8,
|
|
57296
|
-
createBaseVNode("div",
|
|
57379
|
+
}, null, 8, _hoisted_94), [[vModelText, newTable.value.comment]])])])]),
|
|
57380
|
+
createBaseVNode("div", _hoisted_95, [createBaseVNode("button", {
|
|
57297
57381
|
type: "button",
|
|
57298
57382
|
class: "btn btn-secondary",
|
|
57299
|
-
onClick: _cache[
|
|
57383
|
+
onClick: _cache[9] || (_cache[9] = ($event) => showCreateTable.value = false)
|
|
57300
57384
|
}, toDisplayString(_ctx.$t("common.cancel")), 1), createBaseVNode("button", {
|
|
57301
57385
|
type: "button",
|
|
57302
57386
|
class: "btn btn-primary",
|
|
57303
57387
|
onClick: createTable
|
|
57304
57388
|
}, toDisplayString(_ctx.$t("common.create")), 1)])
|
|
57305
57389
|
])])])) : createCommentVNode("", true),
|
|
57306
|
-
showCreateView.value && editingView.value ? (openBlock(), createElementBlock("div",
|
|
57307
|
-
createBaseVNode("div",
|
|
57390
|
+
showCreateView.value && editingView.value ? (openBlock(), createElementBlock("div", _hoisted_96, [createBaseVNode("div", _hoisted_97, [createBaseVNode("div", _hoisted_98, [
|
|
57391
|
+
createBaseVNode("div", _hoisted_99, [createBaseVNode("h5", _hoisted_100, toDisplayString(views.value.some((v) => v.name === editingView.value.name) ? _ctx.$t("databaseDetail.editView") : _ctx.$t("databaseDetail.createViewTitle")), 1), createBaseVNode("button", {
|
|
57308
57392
|
type: "button",
|
|
57309
57393
|
class: "btn-close",
|
|
57310
|
-
onClick: _cache[
|
|
57394
|
+
onClick: _cache[10] || (_cache[10] = ($event) => showCreateView.value = false)
|
|
57311
57395
|
})]),
|
|
57312
|
-
createBaseVNode("div",
|
|
57313
|
-
createBaseVNode("div",
|
|
57396
|
+
createBaseVNode("div", _hoisted_101, [createBaseVNode("form", null, [
|
|
57397
|
+
createBaseVNode("div", _hoisted_102, [createBaseVNode("label", _hoisted_103, toDisplayString(_ctx.$t("databaseDetail.viewNameLabel")), 1), withDirectives(createBaseVNode("input", {
|
|
57314
57398
|
type: "text",
|
|
57315
57399
|
class: "form-control",
|
|
57316
|
-
"onUpdate:modelValue": _cache[
|
|
57400
|
+
"onUpdate:modelValue": _cache[11] || (_cache[11] = ($event) => editingView.value.name = $event),
|
|
57317
57401
|
placeholder: _ctx.$t("databaseDetail.enterViewName")
|
|
57318
|
-
}, null, 8,
|
|
57319
|
-
createBaseVNode("div",
|
|
57402
|
+
}, null, 8, _hoisted_104), [[vModelText, editingView.value.name]])]),
|
|
57403
|
+
createBaseVNode("div", _hoisted_105, [createBaseVNode("label", _hoisted_106, toDisplayString(_ctx.$t("databaseDetail.viewDefinition")), 1), withDirectives(createBaseVNode("textarea", {
|
|
57320
57404
|
class: "form-control",
|
|
57321
57405
|
rows: "8",
|
|
57322
|
-
"onUpdate:modelValue": _cache[
|
|
57406
|
+
"onUpdate:modelValue": _cache[12] || (_cache[12] = ($event) => editingView.value.definition = $event),
|
|
57323
57407
|
placeholder: _ctx.$t("databaseDetail.viewDefinitionPlaceholder")
|
|
57324
|
-
}, null, 8,
|
|
57325
|
-
createBaseVNode("div",
|
|
57408
|
+
}, null, 8, _hoisted_107), [[vModelText, editingView.value.definition]])]),
|
|
57409
|
+
createBaseVNode("div", _hoisted_108, [createBaseVNode("label", _hoisted_109, toDisplayString(_ctx.$t("databaseDetail.commentLabel")), 1), withDirectives(createBaseVNode("input", {
|
|
57326
57410
|
type: "text",
|
|
57327
57411
|
class: "form-control",
|
|
57328
|
-
"onUpdate:modelValue": _cache[
|
|
57412
|
+
"onUpdate:modelValue": _cache[13] || (_cache[13] = ($event) => editingView.value.comment = $event),
|
|
57329
57413
|
placeholder: _ctx.$t("databaseDetail.enterTableComment")
|
|
57330
|
-
}, null, 8,
|
|
57414
|
+
}, null, 8, _hoisted_110), [[vModelText, editingView.value.comment]])])
|
|
57331
57415
|
])]),
|
|
57332
|
-
createBaseVNode("div",
|
|
57416
|
+
createBaseVNode("div", _hoisted_111, [createBaseVNode("button", {
|
|
57333
57417
|
type: "button",
|
|
57334
57418
|
class: "btn btn-secondary",
|
|
57335
|
-
onClick: _cache[
|
|
57419
|
+
onClick: _cache[14] || (_cache[14] = ($event) => showCreateView.value = false)
|
|
57336
57420
|
}, toDisplayString(_ctx.$t("common.cancel")), 1), createBaseVNode("button", {
|
|
57337
57421
|
type: "button",
|
|
57338
57422
|
class: "btn btn-primary",
|
|
57339
57423
|
onClick: createOrUpdateView
|
|
57340
57424
|
}, toDisplayString(_ctx.$t("common.save")), 1)])
|
|
57341
57425
|
])])])) : createCommentVNode("", true),
|
|
57342
|
-
showCreateProcedure.value && editingProcedure.value ? (openBlock(), createElementBlock("div",
|
|
57343
|
-
createBaseVNode("div",
|
|
57426
|
+
showCreateProcedure.value && editingProcedure.value ? (openBlock(), createElementBlock("div", _hoisted_112, [createBaseVNode("div", _hoisted_113, [createBaseVNode("div", _hoisted_114, [
|
|
57427
|
+
createBaseVNode("div", _hoisted_115, [createBaseVNode("h5", _hoisted_116, toDisplayString(procedures.value.some((p) => p.name === editingProcedure.value.name) ? _ctx.$t("databaseDetail.editProcedure") : _ctx.$t("databaseDetail.createProcedureTitle")), 1), createBaseVNode("button", {
|
|
57344
57428
|
type: "button",
|
|
57345
57429
|
class: "btn-close",
|
|
57346
|
-
onClick: _cache[
|
|
57430
|
+
onClick: _cache[15] || (_cache[15] = ($event) => showCreateProcedure.value = false)
|
|
57347
57431
|
})]),
|
|
57348
|
-
createBaseVNode("div",
|
|
57349
|
-
createBaseVNode("div",
|
|
57432
|
+
createBaseVNode("div", _hoisted_117, [createBaseVNode("form", null, [
|
|
57433
|
+
createBaseVNode("div", _hoisted_118, [createBaseVNode("label", _hoisted_119, toDisplayString(_ctx.$t("databaseDetail.procedureNameLabel")), 1), withDirectives(createBaseVNode("input", {
|
|
57350
57434
|
type: "text",
|
|
57351
57435
|
class: "form-control",
|
|
57352
|
-
"onUpdate:modelValue": _cache[
|
|
57436
|
+
"onUpdate:modelValue": _cache[16] || (_cache[16] = ($event) => editingProcedure.value.name = $event),
|
|
57353
57437
|
placeholder: _ctx.$t("databaseDetail.enterProcedureName")
|
|
57354
|
-
}, null, 8,
|
|
57355
|
-
createBaseVNode("div",
|
|
57438
|
+
}, null, 8, _hoisted_120), [[vModelText, editingProcedure.value.name]])]),
|
|
57439
|
+
createBaseVNode("div", _hoisted_121, [createBaseVNode("label", _hoisted_122, toDisplayString(_ctx.$t("databaseDetail.procedureDefinition")), 1), withDirectives(createBaseVNode("textarea", {
|
|
57356
57440
|
class: "form-control",
|
|
57357
57441
|
rows: "12",
|
|
57358
|
-
"onUpdate:modelValue": _cache[
|
|
57442
|
+
"onUpdate:modelValue": _cache[17] || (_cache[17] = ($event) => editingProcedure.value.definition = $event),
|
|
57359
57443
|
placeholder: _ctx.$t("databaseDetail.procedureDefPlaceholder")
|
|
57360
|
-
}, null, 8,
|
|
57361
|
-
createBaseVNode("div",
|
|
57444
|
+
}, null, 8, _hoisted_123), [[vModelText, editingProcedure.value.definition]])]),
|
|
57445
|
+
createBaseVNode("div", _hoisted_124, [createBaseVNode("label", _hoisted_125, toDisplayString(_ctx.$t("databaseDetail.commentLabel")), 1), withDirectives(createBaseVNode("input", {
|
|
57362
57446
|
type: "text",
|
|
57363
57447
|
class: "form-control",
|
|
57364
|
-
"onUpdate:modelValue": _cache[
|
|
57448
|
+
"onUpdate:modelValue": _cache[18] || (_cache[18] = ($event) => editingProcedure.value.comment = $event),
|
|
57365
57449
|
placeholder: _ctx.$t("databaseDetail.enterTableComment")
|
|
57366
|
-
}, null, 8,
|
|
57450
|
+
}, null, 8, _hoisted_126), [[vModelText, editingProcedure.value.comment]])])
|
|
57367
57451
|
])]),
|
|
57368
|
-
createBaseVNode("div",
|
|
57452
|
+
createBaseVNode("div", _hoisted_127, [createBaseVNode("button", {
|
|
57369
57453
|
type: "button",
|
|
57370
57454
|
class: "btn btn-secondary",
|
|
57371
|
-
onClick: _cache[
|
|
57455
|
+
onClick: _cache[19] || (_cache[19] = ($event) => showCreateProcedure.value = false)
|
|
57372
57456
|
}, toDisplayString(_ctx.$t("common.cancel")), 1), createBaseVNode("button", {
|
|
57373
57457
|
type: "button",
|
|
57374
57458
|
class: "btn btn-primary",
|
|
@@ -57397,21 +57481,21 @@ var init_database_detail_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
|
57397
57481
|
});
|
|
57398
57482
|
}));
|
|
57399
57483
|
//#endregion
|
|
57400
|
-
//#region src/platform/database/components/database-detail.vue?vue&type=style&index=0&scoped=
|
|
57401
|
-
var
|
|
57484
|
+
//#region src/platform/database/components/database-detail.vue?vue&type=style&index=0&scoped=822c95b7&lang.css
|
|
57485
|
+
var init_database_detail_vue_vue_type_style_index_0_scoped_822c95b7_lang = __esmMin((() => {}));
|
|
57402
57486
|
//#endregion
|
|
57403
57487
|
//#region src/platform/database/components/database-detail.vue
|
|
57404
57488
|
var database_detail_default;
|
|
57405
57489
|
var init_database_detail = __esmMin((() => {
|
|
57406
57490
|
init_database_detail_vue_vue_type_script_setup_true_lang();
|
|
57407
57491
|
init_database_detail_vue_vue_type_script_setup_true_lang();
|
|
57408
|
-
|
|
57492
|
+
init_database_detail_vue_vue_type_style_index_0_scoped_822c95b7_lang();
|
|
57409
57493
|
init__plugin_vue_export_helper();
|
|
57410
|
-
database_detail_default = /*#__PURE__*/ _plugin_vue_export_helper_default(database_detail_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-
|
|
57494
|
+
database_detail_default = /*#__PURE__*/ _plugin_vue_export_helper_default(database_detail_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-822c95b7"]]);
|
|
57411
57495
|
}));
|
|
57412
57496
|
//#endregion
|
|
57413
57497
|
//#region src/platform/database/components/data-editor.vue?vue&type=script&setup=true&lang.ts
|
|
57414
|
-
var _hoisted_1$
|
|
57498
|
+
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$3, _hoisted_26$2, _hoisted_27$2, _hoisted_28$2, _hoisted_29$2, data_editor_vue_vue_type_script_setup_true_lang_default;
|
|
57415
57499
|
var init_data_editor_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
57416
57500
|
init_vue_runtime_esm_bundler();
|
|
57417
57501
|
init_vue_i18n();
|
|
@@ -57423,39 +57507,39 @@ var init_data_editor_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
|
57423
57507
|
init_dist$6();
|
|
57424
57508
|
init_dist$1();
|
|
57425
57509
|
init_dist$7();
|
|
57426
|
-
_hoisted_1$
|
|
57427
|
-
_hoisted_2$
|
|
57428
|
-
_hoisted_3$
|
|
57510
|
+
_hoisted_1$3 = { class: "modal-dialog modal-lg" };
|
|
57511
|
+
_hoisted_2$3 = { class: "modal-content" };
|
|
57512
|
+
_hoisted_3$3 = {
|
|
57429
57513
|
class: "modal-header",
|
|
57430
57514
|
style: { "padding": "15px" }
|
|
57431
57515
|
};
|
|
57432
|
-
_hoisted_4$
|
|
57433
|
-
_hoisted_5$
|
|
57516
|
+
_hoisted_4$3 = { class: "modal-title" };
|
|
57517
|
+
_hoisted_5$3 = {
|
|
57434
57518
|
key: 0,
|
|
57435
57519
|
class: "bi bi-pencil-square"
|
|
57436
57520
|
};
|
|
57437
|
-
_hoisted_6$
|
|
57521
|
+
_hoisted_6$3 = {
|
|
57438
57522
|
key: 1,
|
|
57439
57523
|
class: "bi bi-plus-circle"
|
|
57440
57524
|
};
|
|
57441
|
-
_hoisted_7$
|
|
57442
|
-
_hoisted_8$
|
|
57443
|
-
_hoisted_9$
|
|
57444
|
-
_hoisted_10$
|
|
57445
|
-
_hoisted_11$
|
|
57525
|
+
_hoisted_7$3 = { class: "modal-body" };
|
|
57526
|
+
_hoisted_8$3 = { class: "row g-3" };
|
|
57527
|
+
_hoisted_9$3 = ["data-type"];
|
|
57528
|
+
_hoisted_10$3 = { class: "form-label" };
|
|
57529
|
+
_hoisted_11$3 = {
|
|
57446
57530
|
key: 0,
|
|
57447
57531
|
class: "text-danger"
|
|
57448
57532
|
};
|
|
57449
|
-
_hoisted_12$
|
|
57450
|
-
_hoisted_13$
|
|
57451
|
-
_hoisted_14$
|
|
57533
|
+
_hoisted_12$3 = { class: "text-muted ms-2" };
|
|
57534
|
+
_hoisted_13$3 = ["value"];
|
|
57535
|
+
_hoisted_14$3 = [
|
|
57452
57536
|
"onUpdate:modelValue",
|
|
57453
57537
|
"placeholder",
|
|
57454
57538
|
"required",
|
|
57455
57539
|
"step"
|
|
57456
57540
|
];
|
|
57457
|
-
_hoisted_15$
|
|
57458
|
-
_hoisted_16$
|
|
57541
|
+
_hoisted_15$3 = ["onUpdate:modelValue", "required"];
|
|
57542
|
+
_hoisted_16$3 = [
|
|
57459
57543
|
"onUpdate:modelValue",
|
|
57460
57544
|
"placeholder",
|
|
57461
57545
|
"required"
|
|
@@ -57471,7 +57555,7 @@ var init_data_editor_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
|
57471
57555
|
class: "json-editor"
|
|
57472
57556
|
};
|
|
57473
57557
|
_hoisted_24$3 = { class: "d-flex justify-content-between mt-1" };
|
|
57474
|
-
_hoisted_25$
|
|
57558
|
+
_hoisted_25$3 = ["onClick"];
|
|
57475
57559
|
_hoisted_26$2 = [
|
|
57476
57560
|
"onUpdate:modelValue",
|
|
57477
57561
|
"placeholder",
|
|
@@ -57546,20 +57630,20 @@ var init_data_editor_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
|
57546
57630
|
height: "100%",
|
|
57547
57631
|
fontSize: "14px",
|
|
57548
57632
|
fontFamily: "Monaco, Menlo, Consolas, \"Courier New\", monospace",
|
|
57549
|
-
backgroundColor: "
|
|
57633
|
+
backgroundColor: "var(--db-bg-soft2)"
|
|
57550
57634
|
},
|
|
57551
57635
|
".cm-content": {
|
|
57552
57636
|
padding: "10px",
|
|
57553
57637
|
minHeight: "100%",
|
|
57554
|
-
backgroundColor: "
|
|
57638
|
+
backgroundColor: "var(--db-surface)"
|
|
57555
57639
|
},
|
|
57556
57640
|
".cm-gutters": {
|
|
57557
|
-
backgroundColor: "
|
|
57558
|
-
color: "
|
|
57559
|
-
borderRight: "1px solid
|
|
57641
|
+
backgroundColor: "var(--db-bg-soft2)",
|
|
57642
|
+
color: "var(--db-text-muted)",
|
|
57643
|
+
borderRight: "1px solid var(--db-border-lighter)"
|
|
57560
57644
|
},
|
|
57561
|
-
".cm-activeLineGutter": { backgroundColor: "
|
|
57562
|
-
".cm-activeLine": { backgroundColor: "
|
|
57645
|
+
".cm-activeLineGutter": { backgroundColor: "var(--db-border-soft)" },
|
|
57646
|
+
".cm-activeLine": { backgroundColor: "var(--db-border-soft)" }
|
|
57563
57647
|
})
|
|
57564
57648
|
]
|
|
57565
57649
|
}),
|
|
@@ -57752,21 +57836,21 @@ var init_data_editor_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
|
57752
57836
|
return openBlock(), createElementBlock("div", {
|
|
57753
57837
|
class: normalizeClass(["modal fade", { show: __props.visible }]),
|
|
57754
57838
|
style: normalizeStyle({ display: __props.visible ? "block" : "none" })
|
|
57755
|
-
}, [createBaseVNode("div", _hoisted_1$
|
|
57756
|
-
createBaseVNode("div", _hoisted_3$
|
|
57839
|
+
}, [createBaseVNode("div", _hoisted_1$3, [createBaseVNode("div", _hoisted_2$3, [
|
|
57840
|
+
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
57841
|
type: "button",
|
|
57758
57842
|
class: "btn-close",
|
|
57759
57843
|
onClick: closeModal
|
|
57760
57844
|
})]),
|
|
57761
|
-
createBaseVNode("div", _hoisted_7$
|
|
57845
|
+
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
57846
|
return openBlock(), createElementBlock("div", {
|
|
57763
57847
|
key: column.name,
|
|
57764
57848
|
"data-type": column.type,
|
|
57765
57849
|
class: "col-md-6"
|
|
57766
|
-
}, [createBaseVNode("label", _hoisted_10$
|
|
57850
|
+
}, [createBaseVNode("label", _hoisted_10$3, [
|
|
57767
57851
|
createTextVNode(toDisplayString(column.name) + " ", 1),
|
|
57768
|
-
column.isPrimary ? (openBlock(), createElementBlock("span", _hoisted_11$
|
|
57769
|
-
createBaseVNode("small", _hoisted_12$
|
|
57852
|
+
column.isPrimary ? (openBlock(), createElementBlock("span", _hoisted_11$3, "*")) : createCommentVNode("", true),
|
|
57853
|
+
createBaseVNode("small", _hoisted_12$3, toDisplayString(column.type), 1)
|
|
57770
57854
|
]), column.isPrimary && column.isAutoIncrement ? (openBlock(), createElementBlock("input", {
|
|
57771
57855
|
key: 0,
|
|
57772
57856
|
type: "text",
|
|
@@ -57775,7 +57859,7 @@ var init_data_editor_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
|
57775
57859
|
value: __props.isEdit ? formData.value[column.name] : _ctx.$t("dataEditor.autoGenerate"),
|
|
57776
57860
|
disabled: "",
|
|
57777
57861
|
readonly: ""
|
|
57778
|
-
}, null, 8, _hoisted_13$
|
|
57862
|
+
}, null, 8, _hoisted_13$3)) : isNumberInput(column.type) ? withDirectives((openBlock(), createElementBlock("input", {
|
|
57779
57863
|
key: 1,
|
|
57780
57864
|
type: "number",
|
|
57781
57865
|
"data-type": "number",
|
|
@@ -57784,14 +57868,14 @@ var init_data_editor_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
|
57784
57868
|
placeholder: _ctx.$t("dataEditor.inputPlaceholder", { name: column.name }),
|
|
57785
57869
|
required: !column.nullable,
|
|
57786
57870
|
step: isDecimalInput(column.type) ? "0.01" : "1"
|
|
57787
|
-
}, null, 8, _hoisted_14$
|
|
57871
|
+
}, null, 8, _hoisted_14$3)), [[vModelText, formData.value[column.name]]]) : isDateInput(column.type) ? withDirectives((openBlock(), createElementBlock("input", {
|
|
57788
57872
|
key: 2,
|
|
57789
57873
|
type: "datetime-local",
|
|
57790
57874
|
class: "form-control",
|
|
57791
57875
|
"data-type": "date",
|
|
57792
57876
|
"onUpdate:modelValue": ($event) => formData.value[column.name] = $event,
|
|
57793
57877
|
required: !column.nullable
|
|
57794
|
-
}, null, 8, _hoisted_15$
|
|
57878
|
+
}, null, 8, _hoisted_15$3)), [[vModelText, formData.value[column.name]]]) : isTextArea(column.type) ? withDirectives((openBlock(), createElementBlock("textarea", {
|
|
57795
57879
|
key: 3,
|
|
57796
57880
|
class: "form-control",
|
|
57797
57881
|
"data-type": "textarea",
|
|
@@ -57799,7 +57883,7 @@ var init_data_editor_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
|
57799
57883
|
placeholder: _ctx.$t("dataEditor.inputPlaceholder", { name: column.name }),
|
|
57800
57884
|
required: !column.nullable,
|
|
57801
57885
|
rows: "3"
|
|
57802
|
-
}, null, 8, _hoisted_16$
|
|
57886
|
+
}, null, 8, _hoisted_16$3)), [[vModelText, formData.value[column.name]]]) : isEnumInput(column.type) ? withDirectives((openBlock(), createElementBlock("select", {
|
|
57803
57887
|
key: 4,
|
|
57804
57888
|
class: "form-select",
|
|
57805
57889
|
"data-type": "select",
|
|
@@ -57820,7 +57904,7 @@ var init_data_editor_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
|
57820
57904
|
ref_for: true,
|
|
57821
57905
|
ref: (el) => setJsonEditorRef(el, column.name),
|
|
57822
57906
|
style: {
|
|
57823
|
-
"border": "1px solid
|
|
57907
|
+
"border": "1px solid var(--db-border-lighter)",
|
|
57824
57908
|
"border-radius": "0.375rem",
|
|
57825
57909
|
"overflow": "hidden",
|
|
57826
57910
|
"height": "200px"
|
|
@@ -57829,7 +57913,7 @@ var init_data_editor_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
|
57829
57913
|
type: "button",
|
|
57830
57914
|
class: "btn btn-sm btn-outline-primary",
|
|
57831
57915
|
onClick: ($event) => formatJson(column.name)
|
|
57832
|
-
}, toDisplayString(_ctx.$t("common.format")), 9, _hoisted_25$
|
|
57916
|
+
}, toDisplayString(_ctx.$t("common.format")), 9, _hoisted_25$3)])])) : withDirectives((openBlock(), createElementBlock("input", {
|
|
57833
57917
|
key: 7,
|
|
57834
57918
|
type: "text",
|
|
57835
57919
|
"data-type": "normal",
|
|
@@ -57837,7 +57921,7 @@ var init_data_editor_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
|
57837
57921
|
"onUpdate:modelValue": ($event) => formData.value[column.name] = $event,
|
|
57838
57922
|
placeholder: _ctx.$t("dataEditor.inputPlaceholder", { name: column.name }),
|
|
57839
57923
|
required: !column.nullable
|
|
57840
|
-
}, null, 8, _hoisted_26$2)), [[vModelText, formData.value[column.name]]])], 8, _hoisted_9$
|
|
57924
|
+
}, null, 8, _hoisted_26$2)), [[vModelText, formData.value[column.name]]])], 8, _hoisted_9$3);
|
|
57841
57925
|
}), 128))])], 32)]),
|
|
57842
57926
|
createBaseVNode("div", _hoisted_27$2, [createBaseVNode("button", {
|
|
57843
57927
|
type: "button",
|
|
@@ -57855,54 +57939,55 @@ var init_data_editor_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
|
57855
57939
|
});
|
|
57856
57940
|
}));
|
|
57857
57941
|
//#endregion
|
|
57858
|
-
//#region src/platform/database/components/data-editor.vue?vue&type=style&index=0&scoped=
|
|
57859
|
-
var
|
|
57942
|
+
//#region src/platform/database/components/data-editor.vue?vue&type=style&index=0&scoped=d9b3ed26&lang.css
|
|
57943
|
+
var init_data_editor_vue_vue_type_style_index_0_scoped_d9b3ed26_lang = __esmMin((() => {}));
|
|
57860
57944
|
//#endregion
|
|
57861
57945
|
//#region src/platform/database/components/data-editor.vue
|
|
57862
57946
|
var data_editor_default;
|
|
57863
57947
|
var init_data_editor = __esmMin((() => {
|
|
57864
57948
|
init_data_editor_vue_vue_type_script_setup_true_lang();
|
|
57865
57949
|
init_data_editor_vue_vue_type_script_setup_true_lang();
|
|
57866
|
-
|
|
57950
|
+
init_data_editor_vue_vue_type_style_index_0_scoped_d9b3ed26_lang();
|
|
57867
57951
|
init__plugin_vue_export_helper();
|
|
57868
|
-
data_editor_default = /*#__PURE__*/ _plugin_vue_export_helper_default(data_editor_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-
|
|
57952
|
+
data_editor_default = /*#__PURE__*/ _plugin_vue_export_helper_default(data_editor_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-d9b3ed26"]]);
|
|
57869
57953
|
}));
|
|
57870
57954
|
//#endregion
|
|
57871
57955
|
//#region src/platform/database/components/table-data-grid.vue?vue&type=script&setup=true&lang.ts
|
|
57872
|
-
var _hoisted_1$
|
|
57956
|
+
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, _hoisted_25$2, table_data_grid_vue_vue_type_script_setup_true_lang_default;
|
|
57873
57957
|
var init_table_data_grid_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
57874
57958
|
init_vue_runtime_esm_bundler();
|
|
57875
57959
|
init_dataGrid();
|
|
57960
|
+
init_pagination();
|
|
57876
57961
|
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$
|
|
57962
|
+
_hoisted_1$2 = { class: "table-data-grid" };
|
|
57963
|
+
_hoisted_2$2 = { class: "data-grid-wrapper" };
|
|
57964
|
+
_hoisted_3$2 = { class: "btn-group btn-group-sm" };
|
|
57965
|
+
_hoisted_4$2 = ["onClick"];
|
|
57966
|
+
_hoisted_5$2 = ["onClick"];
|
|
57967
|
+
_hoisted_6$2 = ["onClick", "title"];
|
|
57968
|
+
_hoisted_7$2 = { class: "header-main" };
|
|
57969
|
+
_hoisted_8$2 = { class: "column-name" };
|
|
57970
|
+
_hoisted_9$2 = {
|
|
57886
57971
|
key: 0,
|
|
57887
57972
|
class: "column-key text-primary ms-1",
|
|
57888
57973
|
title: "主键"
|
|
57889
57974
|
};
|
|
57890
|
-
_hoisted_10$
|
|
57891
|
-
_hoisted_11$
|
|
57975
|
+
_hoisted_10$2 = { class: "sort-icon ms-1" };
|
|
57976
|
+
_hoisted_11$2 = {
|
|
57892
57977
|
key: 0,
|
|
57893
57978
|
class: "bi bi-caret-up-fill"
|
|
57894
57979
|
};
|
|
57895
|
-
_hoisted_12$
|
|
57980
|
+
_hoisted_12$2 = {
|
|
57896
57981
|
key: 1,
|
|
57897
57982
|
class: "bi bi-caret-down-fill"
|
|
57898
57983
|
};
|
|
57899
|
-
_hoisted_13$
|
|
57984
|
+
_hoisted_13$2 = {
|
|
57900
57985
|
key: 2,
|
|
57901
57986
|
class: "bi bi-caret-up text-muted opacity-50"
|
|
57902
57987
|
};
|
|
57903
|
-
_hoisted_14$
|
|
57904
|
-
_hoisted_15$
|
|
57905
|
-
_hoisted_16$
|
|
57988
|
+
_hoisted_14$2 = { class: "header-sub" };
|
|
57989
|
+
_hoisted_15$2 = { class: "text-muted column-type" };
|
|
57990
|
+
_hoisted_16$2 = {
|
|
57906
57991
|
key: 0,
|
|
57907
57992
|
class: "text-muted column-comment ms-1"
|
|
57908
57993
|
};
|
|
@@ -57912,8 +57997,9 @@ var init_table_data_grid_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
|
57912
57997
|
_hoisted_20$2 = { class: "mt-2 text-muted" };
|
|
57913
57998
|
_hoisted_21$2 = { class: "grid-footer-bar mt-2 d-flex justify-content-between align-items-center px-3" };
|
|
57914
57999
|
_hoisted_22$2 = { class: "pagination-info text-muted small" };
|
|
57915
|
-
_hoisted_23$2 = { class: "
|
|
57916
|
-
_hoisted_24$2 = { class: "
|
|
58000
|
+
_hoisted_23$2 = { class: "footer-pagination flex-grow-1 d-flex justify-content-center" };
|
|
58001
|
+
_hoisted_24$2 = { class: "page-size-selector d-flex align-items-center" };
|
|
58002
|
+
_hoisted_25$2 = { class: "small text-muted me-2" };
|
|
57917
58003
|
table_data_grid_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComponent({
|
|
57918
58004
|
__name: "table-data-grid",
|
|
57919
58005
|
props: {
|
|
@@ -58042,7 +58128,7 @@ var init_table_data_grid_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
|
58042
58128
|
loadData();
|
|
58043
58129
|
});
|
|
58044
58130
|
return (_ctx, _cache) => {
|
|
58045
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
58131
|
+
return openBlock(), createElementBlock("div", _hoisted_1$2, [createBaseVNode("div", _hoisted_2$2, [createVNode(dataGrid_default, {
|
|
58046
58132
|
data: tableData.value,
|
|
58047
58133
|
columns: gridColumns.value,
|
|
58048
58134
|
"is-loading": loading.value,
|
|
@@ -58050,16 +58136,17 @@ var init_table_data_grid_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
|
58050
58136
|
"current-page": currentPage.value,
|
|
58051
58137
|
"sort-field": sortField.value,
|
|
58052
58138
|
"sort-order": sortOrder.value,
|
|
58139
|
+
"show-pagination": false,
|
|
58053
58140
|
onPageChanged: handlePageChange,
|
|
58054
58141
|
onSortChanged: handleSortChange
|
|
58055
58142
|
}, createSlots({
|
|
58056
|
-
actions: withCtx(({ row }) => [createBaseVNode("div", _hoisted_3$
|
|
58143
|
+
actions: withCtx(({ row }) => [createBaseVNode("div", _hoisted_3$2, [createBaseVNode("button", {
|
|
58057
58144
|
class: "btn btn-outline-primary btn-sm",
|
|
58058
58145
|
onClick: withModifiers(($event) => emits("edit-row", row), ["stop"])
|
|
58059
|
-
}, [..._cache[1] || (_cache[1] = [createBaseVNode("i", { class: "bi bi-pencil" }, null, -1)])], 8, _hoisted_4$
|
|
58146
|
+
}, [..._cache[1] || (_cache[1] = [createBaseVNode("i", { class: "bi bi-pencil" }, null, -1)])], 8, _hoisted_4$2), createBaseVNode("button", {
|
|
58060
58147
|
class: "btn btn-outline-danger btn-sm",
|
|
58061
58148
|
onClick: withModifiers(($event) => emits("delete-row", row), ["stop"])
|
|
58062
|
-
}, [..._cache[2] || (_cache[2] = [createBaseVNode("i", { class: "bi bi-trash" }, null, -1)])], 8, _hoisted_5$
|
|
58149
|
+
}, [..._cache[2] || (_cache[2] = [createBaseVNode("i", { class: "bi bi-trash" }, null, -1)])], 8, _hoisted_5$2)])]),
|
|
58063
58150
|
_: 2
|
|
58064
58151
|
}, [
|
|
58065
58152
|
renderList(props.columns, (column) => {
|
|
@@ -58072,11 +58159,11 @@ var init_table_data_grid_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
|
58072
58159
|
order: sortField.value === column.name ? sortOrder.value === "ASC" ? "DESC" : sortOrder.value === "DESC" ? "" : "ASC" : "ASC"
|
|
58073
58160
|
}),
|
|
58074
58161
|
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$
|
|
58162
|
+
}, [createBaseVNode("div", _hoisted_7$2, [
|
|
58163
|
+
createBaseVNode("span", _hoisted_8$2, toDisplayString(column.name), 1),
|
|
58164
|
+
column.isPrimary ? (openBlock(), createElementBlock("span", _hoisted_9$2, [..._cache[3] || (_cache[3] = [createBaseVNode("i", { class: "bi bi-key-fill" }, null, -1)])])) : createCommentVNode("", true),
|
|
58165
|
+
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))])
|
|
58166
|
+
]), 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
58167
|
};
|
|
58081
58168
|
}),
|
|
58082
58169
|
renderList(props.columns, (column) => {
|
|
@@ -58104,37 +58191,45 @@ var init_table_data_grid_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
|
58104
58191
|
"current-page",
|
|
58105
58192
|
"sort-field",
|
|
58106
58193
|
"sort-order"
|
|
58107
|
-
])]), createBaseVNode("div", _hoisted_21$2, [
|
|
58108
|
-
|
|
58109
|
-
"
|
|
58110
|
-
|
|
58111
|
-
|
|
58112
|
-
|
|
58113
|
-
|
|
58114
|
-
createBaseVNode("
|
|
58115
|
-
|
|
58116
|
-
|
|
58117
|
-
|
|
58194
|
+
])]), createBaseVNode("div", _hoisted_21$2, [
|
|
58195
|
+
createBaseVNode("div", _hoisted_22$2, toDisplayString(_ctx.$t("common.totalRecords", { count: total.value })), 1),
|
|
58196
|
+
createBaseVNode("div", _hoisted_23$2, [createVNode(pagination_default, {
|
|
58197
|
+
"current-page": currentPage.value,
|
|
58198
|
+
"total-pages": totalPages.value,
|
|
58199
|
+
onPageChanged: handlePageChange
|
|
58200
|
+
}, null, 8, ["current-page", "total-pages"])]),
|
|
58201
|
+
createBaseVNode("div", _hoisted_24$2, [createBaseVNode("label", _hoisted_25$2, toDisplayString(_ctx.$t("common.pageSizeLabel")), 1), withDirectives(createBaseVNode("select", {
|
|
58202
|
+
class: "form-select form-select-sm",
|
|
58203
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => pageSize.value = $event),
|
|
58204
|
+
onChange: handlePageSizeChange,
|
|
58205
|
+
style: { "width": "80px" }
|
|
58206
|
+
}, [..._cache[5] || (_cache[5] = [
|
|
58207
|
+
createBaseVNode("option", { value: 10 }, "10", -1),
|
|
58208
|
+
createBaseVNode("option", { value: 20 }, "20", -1),
|
|
58209
|
+
createBaseVNode("option", { value: 50 }, "50", -1),
|
|
58210
|
+
createBaseVNode("option", { value: 100 }, "100", -1)
|
|
58211
|
+
])], 544), [[vModelSelect, pageSize.value]])])
|
|
58212
|
+
])]);
|
|
58118
58213
|
};
|
|
58119
58214
|
}
|
|
58120
58215
|
});
|
|
58121
58216
|
}));
|
|
58122
58217
|
//#endregion
|
|
58123
|
-
//#region src/platform/database/components/table-data-grid.vue?vue&type=style&index=0&scoped=
|
|
58124
|
-
var
|
|
58218
|
+
//#region src/platform/database/components/table-data-grid.vue?vue&type=style&index=0&scoped=f6763da8&lang.css
|
|
58219
|
+
var init_table_data_grid_vue_vue_type_style_index_0_scoped_f6763da8_lang = __esmMin((() => {}));
|
|
58125
58220
|
//#endregion
|
|
58126
58221
|
//#region src/platform/database/components/table-data-grid.vue
|
|
58127
58222
|
var table_data_grid_default;
|
|
58128
58223
|
var init_table_data_grid = __esmMin((() => {
|
|
58129
58224
|
init_table_data_grid_vue_vue_type_script_setup_true_lang();
|
|
58130
58225
|
init_table_data_grid_vue_vue_type_script_setup_true_lang();
|
|
58131
|
-
|
|
58226
|
+
init_table_data_grid_vue_vue_type_style_index_0_scoped_f6763da8_lang();
|
|
58132
58227
|
init__plugin_vue_export_helper();
|
|
58133
|
-
table_data_grid_default = /*#__PURE__*/ _plugin_vue_export_helper_default(table_data_grid_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-
|
|
58228
|
+
table_data_grid_default = /*#__PURE__*/ _plugin_vue_export_helper_default(table_data_grid_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-f6763da8"]]);
|
|
58134
58229
|
}));
|
|
58135
58230
|
//#endregion
|
|
58136
58231
|
//#region src/platform/database/components/table-detail.vue?vue&type=script&setup=true&lang.ts
|
|
58137
|
-
var _hoisted_1$
|
|
58232
|
+
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
58233
|
var init_table_detail_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
58139
58234
|
init_vue_runtime_esm_bundler();
|
|
58140
58235
|
init_vue_i18n();
|
|
@@ -58146,25 +58241,27 @@ var init_table_detail_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
|
58146
58241
|
init_export();
|
|
58147
58242
|
init_modal();
|
|
58148
58243
|
init_database_types();
|
|
58149
|
-
|
|
58150
|
-
|
|
58151
|
-
|
|
58152
|
-
|
|
58153
|
-
|
|
58154
|
-
|
|
58155
|
-
|
|
58156
|
-
|
|
58157
|
-
|
|
58158
|
-
|
|
58159
|
-
|
|
58160
|
-
|
|
58244
|
+
init_detect();
|
|
58245
|
+
init_rpc();
|
|
58246
|
+
_hoisted_1$1 = { class: "table-detail" };
|
|
58247
|
+
_hoisted_2$1 = { class: "table-header" };
|
|
58248
|
+
_hoisted_3$1 = { class: "table-header-content" };
|
|
58249
|
+
_hoisted_4$1 = { class: "table-info" };
|
|
58250
|
+
_hoisted_5$1 = { class: "table-meta" };
|
|
58251
|
+
_hoisted_6$1 = { class: "table-name" };
|
|
58252
|
+
_hoisted_7$1 = { class: "table-breadcrumb" };
|
|
58253
|
+
_hoisted_8$1 = ["title"];
|
|
58254
|
+
_hoisted_9$1 = ["title"];
|
|
58255
|
+
_hoisted_10$1 = { class: "crumb crumb-current" };
|
|
58256
|
+
_hoisted_11$1 = { class: "table-stats" };
|
|
58257
|
+
_hoisted_12$1 = {
|
|
58161
58258
|
key: 0,
|
|
58162
58259
|
class: "stat-item"
|
|
58163
58260
|
};
|
|
58164
|
-
_hoisted_13$
|
|
58165
|
-
_hoisted_14$
|
|
58166
|
-
_hoisted_15$
|
|
58167
|
-
_hoisted_16$
|
|
58261
|
+
_hoisted_13$1 = { class: "stat-value" };
|
|
58262
|
+
_hoisted_14$1 = { class: "stat-label" };
|
|
58263
|
+
_hoisted_15$1 = { class: "stat-item" };
|
|
58264
|
+
_hoisted_16$1 = { class: "stat-value" };
|
|
58168
58265
|
_hoisted_17$1 = { class: "stat-label" };
|
|
58169
58266
|
_hoisted_18$1 = { class: "stat-item" };
|
|
58170
58267
|
_hoisted_19$1 = { class: "stat-value" };
|
|
@@ -58208,8 +58305,8 @@ var init_table_detail_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
|
58208
58305
|
key: 0,
|
|
58209
58306
|
class: "badge bg-primary"
|
|
58210
58307
|
};
|
|
58211
|
-
_hoisted_48
|
|
58212
|
-
_hoisted_49
|
|
58308
|
+
_hoisted_48 = { key: 1 };
|
|
58309
|
+
_hoisted_49 = {
|
|
58213
58310
|
key: 0,
|
|
58214
58311
|
class: "badge bg-success"
|
|
58215
58312
|
};
|
|
@@ -58260,7 +58357,9 @@ var init_table_detail_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
|
58260
58357
|
"insert-data",
|
|
58261
58358
|
"export-table",
|
|
58262
58359
|
"edit-row",
|
|
58263
|
-
"execute-sql"
|
|
58360
|
+
"execute-sql",
|
|
58361
|
+
"navigate-connection",
|
|
58362
|
+
"navigate-database"
|
|
58264
58363
|
],
|
|
58265
58364
|
setup(__props, { emit: __emit }) {
|
|
58266
58365
|
const props = __props;
|
|
@@ -58504,20 +58603,27 @@ var init_table_detail_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
|
58504
58603
|
await modal.warning(t("tableDetail.missingConnectionInfo"));
|
|
58505
58604
|
return;
|
|
58506
58605
|
}
|
|
58606
|
+
let options;
|
|
58607
|
+
if (isVSCode) {
|
|
58608
|
+
const dir = await vscodePickSaveFolder();
|
|
58609
|
+
if (dir === null) return;
|
|
58610
|
+
options = { path: dir };
|
|
58611
|
+
}
|
|
58507
58612
|
let response;
|
|
58508
58613
|
switch (format) {
|
|
58509
58614
|
case "csv":
|
|
58510
|
-
response = await databaseService.exportTableDataToCSV(props.connection.id, props.database, props.table.name);
|
|
58615
|
+
response = await databaseService.exportTableDataToCSV(props.connection.id, props.database, props.table.name, options);
|
|
58511
58616
|
break;
|
|
58512
58617
|
case "json":
|
|
58513
|
-
response = await databaseService.exportTableDataToJSON(props.connection.id, props.database, props.table.name);
|
|
58618
|
+
response = await databaseService.exportTableDataToJSON(props.connection.id, props.database, props.table.name, options);
|
|
58514
58619
|
break;
|
|
58515
58620
|
case "excel":
|
|
58516
|
-
response = await databaseService.exportTableDataToExcel(props.connection.id, props.database, props.table.name);
|
|
58621
|
+
response = await databaseService.exportTableDataToExcel(props.connection.id, props.database, props.table.name, options);
|
|
58517
58622
|
break;
|
|
58518
58623
|
default: throw new Error(t("tableDetail.unsupportedFormat"));
|
|
58519
58624
|
}
|
|
58520
|
-
if (response.ret === 0)
|
|
58625
|
+
if (response.ret === 0) if (isVscodeWebview() && response.data) vscodeNotifyExported(response.data);
|
|
58626
|
+
else await modal.success(t("tableDetail.exportSuccess", { path: response.data }));
|
|
58521
58627
|
else await modal.error(t("tableDetail.exportFailed") + ": " + response.msg);
|
|
58522
58628
|
} catch (error) {
|
|
58523
58629
|
console.error("导出表数据失败:", error);
|
|
@@ -58559,15 +58665,31 @@ var init_table_detail_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
|
58559
58665
|
await modal.warning(t("tableDetail.missingConnectionInfo"));
|
|
58560
58666
|
return;
|
|
58561
58667
|
}
|
|
58562
|
-
|
|
58563
|
-
if (
|
|
58668
|
+
let options;
|
|
58669
|
+
if (isVSCode) {
|
|
58670
|
+
const dir = await vscodePickSaveFolder();
|
|
58671
|
+
if (dir === null) return;
|
|
58672
|
+
options = { path: dir };
|
|
58673
|
+
}
|
|
58674
|
+
const response = await databaseService.exportTableDataToSQL(props.connection.id, props.database, props.table.name, options);
|
|
58675
|
+
if (response.ret === 0) if (isVscodeWebview() && response.data) vscodeNotifyExported(response.data);
|
|
58676
|
+
else await modal.success(t("tableDetail.exportSuccess", { path: response.data }));
|
|
58564
58677
|
else await modal.error(t("tableDetail.exportFailed") + ": " + response.msg);
|
|
58565
58678
|
} catch (error) {
|
|
58566
58679
|
console.error("导出表数据失败:", error);
|
|
58567
58680
|
modal.error(t("tableDetail.exportFailed") + ": " + error.message);
|
|
58568
58681
|
}
|
|
58569
58682
|
}
|
|
58570
|
-
function downloadSQLFile(content, filename) {
|
|
58683
|
+
async function downloadSQLFile(content, filename) {
|
|
58684
|
+
if (isVscodeWebview()) {
|
|
58685
|
+
const saved = await vscodeSaveFile({
|
|
58686
|
+
filename,
|
|
58687
|
+
content,
|
|
58688
|
+
filters: { "SQL 文件": ["sql"] }
|
|
58689
|
+
});
|
|
58690
|
+
if (saved) vscodeNotifyExported(saved);
|
|
58691
|
+
return;
|
|
58692
|
+
}
|
|
58571
58693
|
const blob = new Blob([content], { type: "text/sql;charset=utf-8;" });
|
|
58572
58694
|
const link = document.createElement("a");
|
|
58573
58695
|
if (link.download !== void 0) {
|
|
@@ -58581,16 +58703,24 @@ var init_table_detail_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
|
58581
58703
|
}
|
|
58582
58704
|
}
|
|
58583
58705
|
return (_ctx, _cache) => {
|
|
58584
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
58585
|
-
createBaseVNode("div", _hoisted_2$
|
|
58586
|
-
createBaseVNode("span",
|
|
58587
|
-
|
|
58588
|
-
|
|
58589
|
-
|
|
58590
|
-
createBaseVNode("
|
|
58591
|
-
|
|
58592
|
-
|
|
58593
|
-
|
|
58706
|
+
return openBlock(), createElementBlock("div", _hoisted_1$1, [
|
|
58707
|
+
createBaseVNode("div", _hoisted_2$1, [createBaseVNode("div", _hoisted_3$1, [createBaseVNode("div", _hoisted_4$1, [_cache[17] || (_cache[17] = 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, [
|
|
58708
|
+
createBaseVNode("span", {
|
|
58709
|
+
class: "crumb crumb-link",
|
|
58710
|
+
onClick: _cache[0] || (_cache[0] = ($event) => emit("navigate-connection")),
|
|
58711
|
+
title: _ctx.$t("tableDetail.backToConnection")
|
|
58712
|
+
}, [_cache[13] || (_cache[13] = createBaseVNode("i", { class: "bi bi-hdd-network me-1" }, null, -1)), createTextVNode(toDisplayString(__props.connection?.name), 1)], 8, _hoisted_8$1),
|
|
58713
|
+
_cache[15] || (_cache[15] = createBaseVNode("i", { class: "bi bi-chevron-right" }, null, -1)),
|
|
58714
|
+
createBaseVNode("span", {
|
|
58715
|
+
class: "crumb crumb-link",
|
|
58716
|
+
onClick: _cache[1] || (_cache[1] = ($event) => emit("navigate-database")),
|
|
58717
|
+
title: _ctx.$t("tableDetail.backToDatabase")
|
|
58718
|
+
}, [_cache[14] || (_cache[14] = createBaseVNode("i", { class: "bi bi-database me-1" }, null, -1)), createTextVNode(toDisplayString(__props.database), 1)], 8, _hoisted_9$1),
|
|
58719
|
+
_cache[16] || (_cache[16] = createBaseVNode("i", { class: "bi bi-chevron-right" }, null, -1)),
|
|
58720
|
+
createBaseVNode("span", _hoisted_10$1, toDisplayString(__props.table?.name), 1)
|
|
58721
|
+
])])]), createBaseVNode("div", _hoisted_11$1, [
|
|
58722
|
+
__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),
|
|
58723
|
+
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
58724
|
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
58725
|
__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
58726
|
])])]),
|
|
@@ -58598,71 +58728,71 @@ var init_table_detail_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
|
58598
58728
|
createBaseVNode("button", {
|
|
58599
58729
|
class: "btn btn-primary btn-sm",
|
|
58600
58730
|
onClick: refreshData
|
|
58601
|
-
}, [_cache[
|
|
58731
|
+
}, [_cache[18] || (_cache[18] = createBaseVNode("i", { class: "bi bi-arrow-clockwise" }, null, -1)), createTextVNode(" " + toDisplayString(_ctx.$t("tableDetail.refreshData")), 1)]),
|
|
58602
58732
|
createBaseVNode("button", {
|
|
58603
58733
|
class: "btn btn-info btn-sm",
|
|
58604
58734
|
onClick: editTableStructure
|
|
58605
|
-
}, [_cache[
|
|
58735
|
+
}, [_cache[19] || (_cache[19] = createBaseVNode("i", { class: "bi bi-pencil-square" }, null, -1)), createTextVNode(" " + toDisplayString(_ctx.$t("tableDetail.modifyStructure")), 1)]),
|
|
58606
58736
|
createBaseVNode("button", {
|
|
58607
58737
|
class: "btn btn-success btn-sm",
|
|
58608
|
-
onClick: _cache[
|
|
58609
|
-
}, [_cache[
|
|
58610
|
-
createBaseVNode("div", _hoisted_26$1, [createBaseVNode("button", _hoisted_27$1, [_cache[
|
|
58738
|
+
onClick: _cache[2] || (_cache[2] = () => insertData())
|
|
58739
|
+
}, [_cache[20] || (_cache[20] = createBaseVNode("i", { class: "bi bi-plus-lg" }, null, -1)), createTextVNode(" " + toDisplayString(_ctx.$t("tableDetail.insertData")), 1)]),
|
|
58740
|
+
createBaseVNode("div", _hoisted_26$1, [createBaseVNode("button", _hoisted_27$1, [_cache[21] || (_cache[21] = createBaseVNode("i", { class: "bi bi-download" }, null, -1)), createTextVNode(" " + toDisplayString(_ctx.$t("tableDetail.exportMenu")), 1)]), createBaseVNode("ul", _hoisted_28$1, [
|
|
58611
58741
|
createBaseVNode("li", null, [createBaseVNode("button", {
|
|
58612
58742
|
class: "dropdown-item",
|
|
58613
|
-
onClick: _cache[
|
|
58614
|
-
}, [_cache[
|
|
58743
|
+
onClick: _cache[3] || (_cache[3] = ($event) => exportTableData("csv"))
|
|
58744
|
+
}, [_cache[22] || (_cache[22] = createBaseVNode("i", { class: "bi bi-file-earmark-spreadsheet me-2" }, null, -1)), createTextVNode(toDisplayString(_ctx.$t("tableDetail.exportCSV")), 1)])]),
|
|
58615
58745
|
createBaseVNode("li", null, [createBaseVNode("button", {
|
|
58616
58746
|
class: "dropdown-item",
|
|
58617
|
-
onClick: _cache[
|
|
58618
|
-
}, [_cache[
|
|
58747
|
+
onClick: _cache[4] || (_cache[4] = ($event) => exportTableData("json"))
|
|
58748
|
+
}, [_cache[23] || (_cache[23] = createBaseVNode("i", { class: "bi bi-file-earmark-code me-2" }, null, -1)), createTextVNode(toDisplayString(_ctx.$t("tableDetail.exportJSON")), 1)])]),
|
|
58619
58749
|
createBaseVNode("li", null, [createBaseVNode("button", {
|
|
58620
58750
|
class: "dropdown-item",
|
|
58621
|
-
onClick: _cache[
|
|
58622
|
-
}, [_cache[
|
|
58623
|
-
_cache[
|
|
58751
|
+
onClick: _cache[5] || (_cache[5] = ($event) => exportTableData("excel"))
|
|
58752
|
+
}, [_cache[24] || (_cache[24] = createBaseVNode("i", { class: "bi bi-file-earmark-excel me-2" }, null, -1)), createTextVNode(toDisplayString(_ctx.$t("tableDetail.exportExcel")), 1)])]),
|
|
58753
|
+
_cache[27] || (_cache[27] = createBaseVNode("li", null, [createBaseVNode("hr", { class: "dropdown-divider" })], -1)),
|
|
58624
58754
|
createBaseVNode("li", null, [createBaseVNode("button", {
|
|
58625
58755
|
class: "dropdown-item",
|
|
58626
|
-
onClick: _cache[
|
|
58627
|
-
}, [_cache[
|
|
58756
|
+
onClick: _cache[6] || (_cache[6] = ($event) => exportTableStructure())
|
|
58757
|
+
}, [_cache[25] || (_cache[25] = createBaseVNode("i", { class: "bi bi-file-earmark-text me-2" }, null, -1)), createTextVNode(toDisplayString(_ctx.$t("tableDetail.exportStructure")), 1)])]),
|
|
58628
58758
|
createBaseVNode("li", null, [createBaseVNode("button", {
|
|
58629
58759
|
class: "dropdown-item",
|
|
58630
|
-
onClick: _cache[
|
|
58631
|
-
}, [_cache[
|
|
58760
|
+
onClick: _cache[7] || (_cache[7] = ($event) => exportTableDataSQL())
|
|
58761
|
+
}, [_cache[26] || (_cache[26] = createBaseVNode("i", { class: "bi bi-file-earmark-code me-2" }, null, -1)), createTextVNode(toDisplayString(_ctx.$t("tableDetail.exportDataSQL")), 1)])])
|
|
58632
58762
|
])])
|
|
58633
58763
|
]), createBaseVNode("div", _hoisted_29$1, [__props.table?.rowCount ? (openBlock(), createElementBlock("button", {
|
|
58634
58764
|
key: 0,
|
|
58635
58765
|
class: "btn btn-outline-warning btn-sm",
|
|
58636
58766
|
onClick: truncateTable
|
|
58637
|
-
}, [_cache[
|
|
58767
|
+
}, [_cache[28] || (_cache[28] = createBaseVNode("i", { class: "bi bi-trash" }, null, -1)), createTextVNode(" " + toDisplayString(_ctx.$t("tableDetail.truncateTable")), 1)])) : createCommentVNode("", true), createBaseVNode("button", {
|
|
58638
58768
|
class: "btn btn-outline-danger btn-sm",
|
|
58639
58769
|
onClick: dropTable
|
|
58640
|
-
}, [_cache[
|
|
58770
|
+
}, [_cache[29] || (_cache[29] = createBaseVNode("i", { class: "bi bi-x-circle" }, null, -1)), createTextVNode(" " + toDisplayString(_ctx.$t("tableDetail.dropTable")), 1)])])]),
|
|
58641
58771
|
createBaseVNode("div", _hoisted_30$1, [createBaseVNode("ul", _hoisted_31$1, [
|
|
58642
58772
|
createBaseVNode("li", _hoisted_32$1, [createBaseVNode("button", {
|
|
58643
58773
|
class: normalizeClass(["nav-link", { active: activeTab.value === "data" }]),
|
|
58644
|
-
onClick: _cache[
|
|
58774
|
+
onClick: _cache[8] || (_cache[8] = ($event) => activeTab.value = "data")
|
|
58645
58775
|
}, [
|
|
58646
|
-
_cache[
|
|
58776
|
+
_cache[30] || (_cache[30] = createBaseVNode("i", { class: "bi bi-grid" }, null, -1)),
|
|
58647
58777
|
createTextVNode(" " + toDisplayString(_ctx.$t("tableDetail.dataTab")) + " ", 1),
|
|
58648
58778
|
__props.table?.rowCount ? (openBlock(), createElementBlock("span", _hoisted_33$1, toDisplayString(formatNumber(__props.table?.rowCount)), 1)) : createCommentVNode("", true)
|
|
58649
58779
|
], 2)]),
|
|
58650
58780
|
createBaseVNode("li", _hoisted_34$1, [createBaseVNode("button", {
|
|
58651
58781
|
class: normalizeClass(["nav-link", { active: activeTab.value === "structure" }]),
|
|
58652
|
-
onClick: _cache[
|
|
58653
|
-
}, [_cache[
|
|
58782
|
+
onClick: _cache[9] || (_cache[9] = ($event) => activeTab.value = "structure")
|
|
58783
|
+
}, [_cache[31] || (_cache[31] = createBaseVNode("i", { class: "bi bi-diagram-3" }, null, -1)), createTextVNode(" " + toDisplayString(_ctx.$t("tableDetail.structureTab")), 1)], 2)]),
|
|
58654
58784
|
createBaseVNode("li", _hoisted_35$1, [createBaseVNode("button", {
|
|
58655
58785
|
class: normalizeClass(["nav-link", { active: activeTab.value === "indexes" }]),
|
|
58656
|
-
onClick: _cache[
|
|
58657
|
-
}, [_cache[
|
|
58786
|
+
onClick: _cache[10] || (_cache[10] = ($event) => activeTab.value = "indexes")
|
|
58787
|
+
}, [_cache[32] || (_cache[32] = createBaseVNode("i", { class: "bi bi-key" }, null, -1)), createTextVNode(" " + toDisplayString(_ctx.$t("tableDetail.indexesTab")), 1)], 2)]),
|
|
58658
58788
|
createBaseVNode("li", _hoisted_36$1, [createBaseVNode("button", {
|
|
58659
58789
|
class: normalizeClass(["nav-link", { active: activeTab.value === "relations" }]),
|
|
58660
|
-
onClick: _cache[
|
|
58661
|
-
}, [_cache[
|
|
58790
|
+
onClick: _cache[11] || (_cache[11] = ($event) => activeTab.value = "relations")
|
|
58791
|
+
}, [_cache[33] || (_cache[33] = createBaseVNode("i", { class: "bi bi-link-45deg" }, null, -1)), createTextVNode(" " + toDisplayString(_ctx.$t("tableDetail.relationsTab")), 1)], 2)]),
|
|
58662
58792
|
createBaseVNode("li", _hoisted_37$1, [createBaseVNode("button", {
|
|
58663
58793
|
class: normalizeClass(["nav-link", { active: activeTab.value === "sql" }]),
|
|
58664
|
-
onClick: _cache[
|
|
58665
|
-
}, [..._cache[
|
|
58794
|
+
onClick: _cache[12] || (_cache[12] = ($event) => activeTab.value = "sql")
|
|
58795
|
+
}, [..._cache[34] || (_cache[34] = [createBaseVNode("i", { class: "bi bi-code-slash" }, null, -1), createTextVNode(" SQL ", -1)])], 2)])
|
|
58666
58796
|
]), createBaseVNode("div", _hoisted_38$1, [
|
|
58667
58797
|
withDirectives(createBaseVNode("div", _hoisted_39$1, [createVNode(table_data_grid_default, {
|
|
58668
58798
|
ref_key: "tableDataGridRef",
|
|
@@ -58682,10 +58812,10 @@ var init_table_detail_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
|
58682
58812
|
withDirectives(createBaseVNode("div", _hoisted_40$1, [createBaseVNode("div", _hoisted_41$1, [createBaseVNode("button", {
|
|
58683
58813
|
class: "btn btn-success btn-sm",
|
|
58684
58814
|
onClick: addColumn
|
|
58685
|
-
}, [_cache[
|
|
58815
|
+
}, [_cache[35] || (_cache[35] = createBaseVNode("i", { class: "bi bi-plus-lg" }, null, -1)), createTextVNode(" " + toDisplayString(_ctx.$t("tableDetail.addColumn")), 1)]), createBaseVNode("button", {
|
|
58686
58816
|
class: "btn btn-info btn-sm",
|
|
58687
58817
|
onClick: editTableStructure
|
|
58688
|
-
}, [_cache[
|
|
58818
|
+
}, [_cache[36] || (_cache[36] = createBaseVNode("i", { class: "bi bi-pencil-square" }, null, -1)), createTextVNode(" " + toDisplayString(_ctx.$t("tableDetail.modifyStructure")), 1)])]), createBaseVNode("div", _hoisted_42$1, [createBaseVNode("div", _hoisted_43$1, [createBaseVNode("table", _hoisted_44$1, [createBaseVNode("thead", _hoisted_45$1, [createBaseVNode("tr", null, [
|
|
58689
58819
|
createBaseVNode("th", null, toDisplayString(_ctx.$t("tableDetail.columnNameHeader")), 1),
|
|
58690
58820
|
createBaseVNode("th", null, toDisplayString(_ctx.$t("tableDetail.dataTypeHeader")), 1),
|
|
58691
58821
|
createBaseVNode("th", null, toDisplayString(_ctx.$t("tableDetail.nullableHeader")), 1),
|
|
@@ -58700,16 +58830,16 @@ var init_table_detail_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
|
58700
58830
|
createBaseVNode("td", null, [createBaseVNode("code", null, toDisplayString(column.type), 1)]),
|
|
58701
58831
|
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
58832
|
createBaseVNode("td", null, toDisplayString(column.defaultValue || "-"), 1),
|
|
58703
|
-
createBaseVNode("td", null, [column.isPrimary ? (openBlock(), createElementBlock("span", _hoisted_47$1, [_cache[
|
|
58704
|
-
createBaseVNode("td", null, [column.isAutoIncrement ? (openBlock(), createElementBlock("span", _hoisted_49
|
|
58833
|
+
createBaseVNode("td", null, [column.isPrimary ? (openBlock(), createElementBlock("span", _hoisted_47$1, [_cache[37] || (_cache[37] = createBaseVNode("i", { class: "bi bi-key-fill" }, null, -1)), createTextVNode(" " + toDisplayString(_ctx.$t("tableDetail.primaryKeyHeader")), 1)])) : (openBlock(), createElementBlock("span", _hoisted_48, "-"))]),
|
|
58834
|
+
createBaseVNode("td", null, [column.isAutoIncrement ? (openBlock(), createElementBlock("span", _hoisted_49, [_cache[38] || (_cache[38] = createBaseVNode("i", { class: "bi bi-arrow-up-circle" }, null, -1)), createTextVNode(" " + toDisplayString(_ctx.$t("tableDetail.autoIncHeader")), 1)])) : (openBlock(), createElementBlock("span", _hoisted_50, "-"))]),
|
|
58705
58835
|
createBaseVNode("td", null, toDisplayString(column.comment || "-"), 1),
|
|
58706
58836
|
createBaseVNode("td", null, [createBaseVNode("div", _hoisted_51, [createBaseVNode("button", {
|
|
58707
58837
|
class: "btn btn-outline-primary btn-sm",
|
|
58708
58838
|
onClick: ($event) => editColumn(column)
|
|
58709
|
-
}, [..._cache[
|
|
58839
|
+
}, [..._cache[39] || (_cache[39] = [createBaseVNode("i", { class: "bi bi-pencil" }, null, -1)])], 8, _hoisted_52), createBaseVNode("button", {
|
|
58710
58840
|
class: "btn btn-outline-danger btn-sm",
|
|
58711
58841
|
onClick: ($event) => deleteColumn(column)
|
|
58712
|
-
}, [..._cache[
|
|
58842
|
+
}, [..._cache[40] || (_cache[40] = [createBaseVNode("i", { class: "bi bi-trash" }, null, -1)])], 8, _hoisted_53)])])
|
|
58713
58843
|
]);
|
|
58714
58844
|
}), 128))])])])])], 512), [[vShow, activeTab.value === "structure"]]),
|
|
58715
58845
|
withDirectives(createBaseVNode("div", _hoisted_54, [createBaseVNode("div", _hoisted_55, [createBaseVNode("div", _hoisted_56, [createBaseVNode("table", _hoisted_57, [createBaseVNode("thead", _hoisted_58, [createBaseVNode("tr", null, [
|
|
@@ -58727,10 +58857,10 @@ var init_table_detail_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
|
58727
58857
|
createBaseVNode("td", null, [createBaseVNode("div", _hoisted_61, [createBaseVNode("button", {
|
|
58728
58858
|
class: "btn btn-outline-primary btn-sm",
|
|
58729
58859
|
onClick: ($event) => editIndex(index)
|
|
58730
|
-
}, [..._cache[
|
|
58860
|
+
}, [..._cache[41] || (_cache[41] = [createBaseVNode("i", { class: "bi bi-pencil" }, null, -1)])], 8, _hoisted_62), createBaseVNode("button", {
|
|
58731
58861
|
class: "btn btn-outline-danger btn-sm",
|
|
58732
58862
|
onClick: ($event) => deleteIndex(index)
|
|
58733
|
-
}, [..._cache[
|
|
58863
|
+
}, [..._cache[42] || (_cache[42] = [createBaseVNode("i", { class: "bi bi-trash" }, null, -1)])], 8, _hoisted_63)])])
|
|
58734
58864
|
]);
|
|
58735
58865
|
}), 128))])])])])], 512), [[vShow, activeTab.value === "indexes"]]),
|
|
58736
58866
|
withDirectives(createBaseVNode("div", _hoisted_64, [createBaseVNode("div", _hoisted_65, [createBaseVNode("div", _hoisted_66, [createBaseVNode("table", _hoisted_67, [createBaseVNode("thead", _hoisted_68, [createBaseVNode("tr", null, [
|
|
@@ -58752,7 +58882,7 @@ var init_table_detail_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
|
58752
58882
|
createBaseVNode("td", null, [createBaseVNode("div", _hoisted_70, [createBaseVNode("button", {
|
|
58753
58883
|
class: "btn btn-outline-danger btn-sm",
|
|
58754
58884
|
onClick: ($event) => deleteForeignKey(fk)
|
|
58755
|
-
}, [..._cache[
|
|
58885
|
+
}, [..._cache[43] || (_cache[43] = [createBaseVNode("i", { class: "bi bi-trash" }, null, -1)])], 8, _hoisted_71)])])
|
|
58756
58886
|
]);
|
|
58757
58887
|
}), 128))])])])])], 512), [[vShow, activeTab.value === "relations"]]),
|
|
58758
58888
|
withDirectives(createBaseVNode("div", _hoisted_72, [createBaseVNode("div", _hoisted_73, [createVNode(sql_executor_default, {
|
|
@@ -58802,129 +58932,21 @@ var init_table_detail_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
|
58802
58932
|
});
|
|
58803
58933
|
}));
|
|
58804
58934
|
//#endregion
|
|
58805
|
-
//#region src/platform/database/components/table-detail.vue?vue&type=style&index=0&scoped=
|
|
58806
|
-
var
|
|
58935
|
+
//#region src/platform/database/components/table-detail.vue?vue&type=style&index=0&scoped=15c7e3be&lang.css
|
|
58936
|
+
var init_table_detail_vue_vue_type_style_index_0_scoped_15c7e3be_lang = __esmMin((() => {}));
|
|
58807
58937
|
//#endregion
|
|
58808
58938
|
//#region src/platform/database/components/table-detail.vue
|
|
58809
58939
|
var table_detail_default;
|
|
58810
58940
|
var init_table_detail = __esmMin((() => {
|
|
58811
58941
|
init_table_detail_vue_vue_type_script_setup_true_lang();
|
|
58812
58942
|
init_table_detail_vue_vue_type_script_setup_true_lang();
|
|
58813
|
-
|
|
58943
|
+
init_table_detail_vue_vue_type_style_index_0_scoped_15c7e3be_lang();
|
|
58814
58944
|
init__plugin_vue_export_helper();
|
|
58815
|
-
table_detail_default = /*#__PURE__*/ _plugin_vue_export_helper_default(table_detail_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-
|
|
58816
|
-
}));
|
|
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"]]);
|
|
58945
|
+
table_detail_default = /*#__PURE__*/ _plugin_vue_export_helper_default(table_detail_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-15c7e3be"]]);
|
|
58924
58946
|
}));
|
|
58925
58947
|
//#endregion
|
|
58926
58948
|
//#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,
|
|
58949
|
+
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
58950
|
var init_explorer_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
58929
58951
|
init_vue_runtime_esm_bundler();
|
|
58930
58952
|
init_vue_router();
|
|
@@ -58935,7 +58957,6 @@ var init_explorer_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
|
58935
58957
|
init_connection_detail();
|
|
58936
58958
|
init_database_detail();
|
|
58937
58959
|
init_table_detail();
|
|
58938
|
-
init_about();
|
|
58939
58960
|
init_modal();
|
|
58940
58961
|
_hoisted_1 = { class: "database-explorer" };
|
|
58941
58962
|
_hoisted_2 = { class: "explorer-layout" };
|
|
@@ -58999,14 +59020,12 @@ var init_explorer_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
|
58999
59020
|
class: "empty-state"
|
|
59000
59021
|
};
|
|
59001
59022
|
_hoisted_44 = { class: "empty-text" };
|
|
59002
|
-
_hoisted_45 = { class: "
|
|
59003
|
-
_hoisted_46 = {
|
|
59004
|
-
|
|
59005
|
-
_hoisted_48 = {
|
|
59006
|
-
key: 4,
|
|
59023
|
+
_hoisted_45 = { class: "explorer-main" };
|
|
59024
|
+
_hoisted_46 = {
|
|
59025
|
+
key: 3,
|
|
59007
59026
|
class: "default-state"
|
|
59008
59027
|
};
|
|
59009
|
-
|
|
59028
|
+
_hoisted_47 = { class: "default-content" };
|
|
59010
59029
|
explorer_vue_vue_type_script_setup_true_lang_default = /*@__PURE__*/ defineComponent({
|
|
59011
59030
|
__name: "explorer",
|
|
59012
59031
|
setup(__props) {
|
|
@@ -59041,7 +59060,6 @@ var init_explorer_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
|
59041
59060
|
const loadingMessage = ref("加载中...");
|
|
59042
59061
|
const connectionEditorRef = ref();
|
|
59043
59062
|
const toastRef = ref();
|
|
59044
|
-
const showAbout = ref(false);
|
|
59045
59063
|
const databaseInfo = computed(() => {
|
|
59046
59064
|
if (!selectedConnection.value || !selectedDatabase.value) return null;
|
|
59047
59065
|
return databaseInfoCache.value.get(`${selectedConnection.value.id}-${selectedDatabase.value}`);
|
|
@@ -59063,6 +59081,7 @@ var init_explorer_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
|
59063
59081
|
function handleRouteQuery() {
|
|
59064
59082
|
const connectionId = route.query.connectionId;
|
|
59065
59083
|
const database = route.query.database;
|
|
59084
|
+
const tableName = route.query.table;
|
|
59066
59085
|
if (connectionId) {
|
|
59067
59086
|
const connection = connections.value.find((conn) => conn.id === connectionId);
|
|
59068
59087
|
if (connection) {
|
|
@@ -59080,12 +59099,15 @@ var init_explorer_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
|
59080
59099
|
selectedTable.value = null;
|
|
59081
59100
|
activeTab.value = "tables";
|
|
59082
59101
|
const dbKey = `${connectionId}-${database}`;
|
|
59083
|
-
|
|
59084
|
-
|
|
59085
|
-
|
|
59086
|
-
|
|
59087
|
-
|
|
59088
|
-
|
|
59102
|
+
expandedDatabases.value.add(dbKey);
|
|
59103
|
+
loadDatabaseInfo(connection, database);
|
|
59104
|
+
loadTablesForDatabase(connection, database, true);
|
|
59105
|
+
if (tableName) loadTablesForDatabase(connection, database, true).then(() => {
|
|
59106
|
+
const t = (tableCache.value.get(dbKey) || []).find((x) => x.name === tableName);
|
|
59107
|
+
if (t) selectTable(connection, database, t);
|
|
59108
|
+
isUpdatingFromUrl = false;
|
|
59109
|
+
});
|
|
59110
|
+
else isUpdatingFromUrl = false;
|
|
59089
59111
|
}, 100);
|
|
59090
59112
|
else isUpdatingFromUrl = false;
|
|
59091
59113
|
}
|
|
@@ -59219,6 +59241,27 @@ var init_explorer_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
|
59219
59241
|
loadTableData(connection, database, table.name);
|
|
59220
59242
|
loadTableStructure(connection, database, table.name);
|
|
59221
59243
|
}
|
|
59244
|
+
/**
|
|
59245
|
+
* 面包屑导航:点击「连接」返回连接概览(清除数据库与表选择)。
|
|
59246
|
+
* 同时同步 URL query,保证宿主侧标题与前进/后退一致。
|
|
59247
|
+
*/
|
|
59248
|
+
function goToConnection() {
|
|
59249
|
+
selectedDatabase.value = "";
|
|
59250
|
+
selectedTable.value = null;
|
|
59251
|
+
activeTab.value = "overview";
|
|
59252
|
+
if (!isUpdatingFromUrl) router.push({ query: { connectionId: selectedConnection.value?.id } });
|
|
59253
|
+
}
|
|
59254
|
+
/**
|
|
59255
|
+
* 面包屑导航:点击「数据库」返回数据库详情(清除表选择)。
|
|
59256
|
+
*/
|
|
59257
|
+
function goToDatabase() {
|
|
59258
|
+
selectedTable.value = null;
|
|
59259
|
+
activeTab.value = "tables";
|
|
59260
|
+
if (!isUpdatingFromUrl) router.push({ query: {
|
|
59261
|
+
connectionId: selectedConnection.value?.id,
|
|
59262
|
+
database: selectedDatabase.value
|
|
59263
|
+
} });
|
|
59264
|
+
}
|
|
59222
59265
|
async function loadTableData(connection, database, tableName, page = 1, pageSize = 50, searchQuery) {
|
|
59223
59266
|
try {
|
|
59224
59267
|
isGlobalLoading.value = true;
|
|
@@ -59572,9 +59615,6 @@ var init_explorer_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
|
59572
59615
|
function showToast(title, message, type = "success") {
|
|
59573
59616
|
toastRef.value?.addToast(title, message, type);
|
|
59574
59617
|
}
|
|
59575
|
-
function showAboutPage() {
|
|
59576
|
-
showAbout.value = true;
|
|
59577
|
-
}
|
|
59578
59618
|
return (_ctx, _cache) => {
|
|
59579
59619
|
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
59580
59620
|
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 +59625,92 @@ var init_explorer_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
|
59585
59625
|
class: "btn btn-sm btn-outline-success",
|
|
59586
59626
|
onClick: showAddConnectionModal,
|
|
59587
59627
|
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
|
-
|
|
59628
|
+
}, [..._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) => {
|
|
59629
|
+
return openBlock(), createElementBlock("div", {
|
|
59630
|
+
key: connection.id,
|
|
59631
|
+
class: normalizeClass(["tree-node connection-node", { "selected": selectedConnection.value?.id === connection.id && !selectedDatabase.value && !selectedTable.value }])
|
|
59632
|
+
}, [createBaseVNode("div", _hoisted_11, [
|
|
59633
|
+
createBaseVNode("div", {
|
|
59634
|
+
class: "node-expand",
|
|
59635
|
+
onClick: ($event) => toggleConnection(connection)
|
|
59636
|
+
}, [createBaseVNode("i", { class: normalizeClass(["bi bi-chevron-right", { "expanded": expandedConnections.value.has(connection.id) }]) }, null, 2)], 8, _hoisted_12),
|
|
59637
|
+
createBaseVNode("div", {
|
|
59638
|
+
class: "node-main",
|
|
59639
|
+
onClick: ($event) => selectConnection(connection)
|
|
59640
|
+
}, [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),
|
|
59641
|
+
createBaseVNode("div", _hoisted_18, [
|
|
59642
|
+
createBaseVNode("button", {
|
|
59643
|
+
class: "btn btn-sm btn-icon",
|
|
59644
|
+
onClick: withModifiers(($event) => refreshConnection(connection), ["stop"]),
|
|
59645
|
+
title: _ctx.$t("connection.refreshConnection")
|
|
59646
|
+
}, [..._cache[3] || (_cache[3] = [createBaseVNode("i", { class: "bi bi-arrow-clockwise" }, null, -1)])], 8, _hoisted_19),
|
|
59647
|
+
createBaseVNode("button", {
|
|
59648
|
+
class: "btn btn-sm btn-icon",
|
|
59649
|
+
onClick: withModifiers(($event) => editConnection(connection), ["stop"]),
|
|
59650
|
+
title: _ctx.$t("connection.editConnectionTitle")
|
|
59651
|
+
}, [..._cache[4] || (_cache[4] = [createBaseVNode("i", { class: "bi bi-pencil" }, null, -1)])], 8, _hoisted_20),
|
|
59652
|
+
createBaseVNode("button", {
|
|
59653
|
+
class: "btn btn-sm btn-icon",
|
|
59654
|
+
onClick: withModifiers(($event) => testConnection(connection), ["stop"]),
|
|
59655
|
+
title: _ctx.$t("connection.testConnection")
|
|
59656
|
+
}, [..._cache[5] || (_cache[5] = [createBaseVNode("i", { class: "bi bi-wifi" }, null, -1)])], 8, _hoisted_21),
|
|
59657
|
+
createBaseVNode("button", {
|
|
59658
|
+
class: "btn btn-sm btn-icon btn-icon-danger",
|
|
59659
|
+
onClick: withModifiers(($event) => deleteConnection(connection), ["stop"]),
|
|
59660
|
+
title: _ctx.$t("connection.deleteConnection")
|
|
59661
|
+
}, [..._cache[6] || (_cache[6] = [createBaseVNode("i", { class: "bi bi-trash" }, null, -1)])], 8, _hoisted_22)
|
|
59662
|
+
]),
|
|
59663
|
+
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)
|
|
59664
|
+
]), expandedConnections.value.has(connection.id) ? (openBlock(), createElementBlock("div", _hoisted_24, [(openBlock(true), createElementBlock(Fragment, null, renderList(getDatabasesForConnection(connection.id), (database) => {
|
|
59590
59665
|
return openBlock(), createElementBlock("div", {
|
|
59591
|
-
key: connection.id
|
|
59592
|
-
class: normalizeClass(["tree-node
|
|
59593
|
-
}, [createBaseVNode("div",
|
|
59666
|
+
key: `${connection.id}-${database}`,
|
|
59667
|
+
class: normalizeClass(["tree-node database-node", { "selected": selectedDatabase.value === database && selectedConnection.value?.id === connection.id && !selectedTable.value }])
|
|
59668
|
+
}, [createBaseVNode("div", _hoisted_25, [
|
|
59594
59669
|
createBaseVNode("div", {
|
|
59595
59670
|
class: "node-expand",
|
|
59596
|
-
onClick: ($event) =>
|
|
59597
|
-
}, [createBaseVNode("i", { class: normalizeClass(["bi bi-chevron-right", { "expanded":
|
|
59671
|
+
onClick: ($event) => toggleDatabase(connection, database)
|
|
59672
|
+
}, [createBaseVNode("i", { class: normalizeClass(["bi bi-chevron-right", { "expanded": expandedDatabases.value.has(`${connection.id}-${database}`) }]) }, null, 2)], 8, _hoisted_26),
|
|
59598
59673
|
createBaseVNode("div", {
|
|
59599
59674
|
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) => {
|
|
59675
|
+
onClick: ($event) => selectDatabase(connection, database)
|
|
59676
|
+
}, [_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),
|
|
59677
|
+
createBaseVNode("div", _hoisted_30, [createBaseVNode("button", {
|
|
59678
|
+
class: "btn btn-sm btn-icon",
|
|
59679
|
+
onClick: withModifiers(($event) => refreshDatabase(connection, database), ["stop"]),
|
|
59680
|
+
title: _ctx.$t("explorer.refreshDatabase")
|
|
59681
|
+
}, [..._cache[9] || (_cache[9] = [createBaseVNode("i", { class: "bi bi-arrow-clockwise" }, null, -1)])], 8, _hoisted_31), createBaseVNode("button", {
|
|
59682
|
+
class: "btn btn-sm btn-icon btn-icon-danger",
|
|
59683
|
+
onClick: withModifiers(($event) => deleteDatabase(connection, database), ["stop"]),
|
|
59684
|
+
title: _ctx.$t("explorer.deleteDatabase")
|
|
59685
|
+
}, [..._cache[10] || (_cache[10] = [createBaseVNode("i", { class: "bi bi-trash" }, null, -1)])], 8, _hoisted_32)]),
|
|
59686
|
+
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)
|
|
59687
|
+
]), expandedDatabases.value.has(`${connection.id}-${database}`) ? (openBlock(), createElementBlock("div", _hoisted_34, [(openBlock(true), createElementBlock(Fragment, null, renderList(getTablesForDatabase(connection.id, database), (table) => {
|
|
59626
59688
|
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),
|
|
59689
|
+
key: `${connection.id}-${database}-${table.name}`,
|
|
59690
|
+
class: normalizeClass(["tree-node table-node", { "selected": selectedTable.value?.name === table.name && selectedDatabase.value === database && selectedConnection.value?.id === connection.id }])
|
|
59691
|
+
}, [createBaseVNode("div", _hoisted_35, [
|
|
59692
|
+
_cache[14] || (_cache[14] = createBaseVNode("div", { class: "node-icon" }, [createBaseVNode("i", { class: "bi bi-table" })], -1)),
|
|
59634
59693
|
createBaseVNode("div", {
|
|
59635
59694
|
class: "node-main",
|
|
59636
|
-
onClick: ($event) =>
|
|
59637
|
-
}, [
|
|
59638
|
-
createBaseVNode("div",
|
|
59695
|
+
onClick: ($event) => selectTable(connection, database, table)
|
|
59696
|
+
}, [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),
|
|
59697
|
+
createBaseVNode("div", _hoisted_40, [createBaseVNode("button", {
|
|
59639
59698
|
class: "btn btn-sm btn-icon",
|
|
59640
|
-
onClick: withModifiers(($event) =>
|
|
59641
|
-
title: _ctx.$t("explorer.
|
|
59642
|
-
}, [..._cache[
|
|
59643
|
-
class: "btn btn-sm btn-icon
|
|
59644
|
-
onClick: withModifiers(($event) =>
|
|
59645
|
-
title: _ctx.$t("explorer.
|
|
59646
|
-
}, [..._cache[
|
|
59647
|
-
|
|
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);
|
|
59699
|
+
onClick: withModifiers(($event) => refreshTable(connection, database, table), ["stop"]),
|
|
59700
|
+
title: _ctx.$t("explorer.refreshTable")
|
|
59701
|
+
}, [..._cache[12] || (_cache[12] = [createBaseVNode("i", { class: "bi bi-arrow-clockwise" }, null, -1)])], 8, _hoisted_41), createBaseVNode("button", {
|
|
59702
|
+
class: "btn btn-sm btn-icon",
|
|
59703
|
+
onClick: withModifiers(($event) => viewTableStructure(connection, database, table), ["stop"]),
|
|
59704
|
+
title: _ctx.$t("explorer.viewStructure")
|
|
59705
|
+
}, [..._cache[13] || (_cache[13] = [createBaseVNode("i", { class: "bi bi-diagram-3" }, null, -1)])], 8, _hoisted_42)])
|
|
59706
|
+
])], 2);
|
|
59669
59707
|
}), 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,
|
|
59708
|
+
}), 128))])) : createCommentVNode("", true)], 2);
|
|
59709
|
+
}), 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", {
|
|
59710
|
+
class: "btn btn-primary btn-sm",
|
|
59711
|
+
onClick: showAddConnectionModal
|
|
59712
|
+
}, [_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, {
|
|
59713
|
+
key: 0,
|
|
59681
59714
|
connection: selectedConnection.value,
|
|
59682
59715
|
onTestConnection: handleTestConnection,
|
|
59683
59716
|
onEditConnection: handleEditConnection,
|
|
@@ -59687,7 +59720,7 @@ var init_explorer_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
|
59687
59720
|
onViewLogs: handleViewLogs,
|
|
59688
59721
|
onCreateDatabase: handleCreateDatabase
|
|
59689
59722
|
}, null, 8, ["connection"])) : selectedConnection.value && selectedDatabase.value && !selectedTable.value ? (openBlock(), createBlock(database_detail_default, {
|
|
59690
|
-
key:
|
|
59723
|
+
key: 1,
|
|
59691
59724
|
connection: selectedConnection.value,
|
|
59692
59725
|
database: selectedDatabase.value,
|
|
59693
59726
|
tables: getTablesForDatabase(selectedConnection.value.id || "", selectedDatabase.value),
|
|
@@ -59696,7 +59729,8 @@ var init_explorer_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
|
59696
59729
|
onSelectTable: selectTable,
|
|
59697
59730
|
onRefreshDatabase: handleRefreshDatabase,
|
|
59698
59731
|
onCreateTable: handleCreateTable,
|
|
59699
|
-
onExecuteSql: handleExecuteSql
|
|
59732
|
+
onExecuteSql: handleExecuteSql,
|
|
59733
|
+
onNavigateConnection: goToConnection
|
|
59700
59734
|
}, null, 8, [
|
|
59701
59735
|
"connection",
|
|
59702
59736
|
"database",
|
|
@@ -59704,7 +59738,7 @@ var init_explorer_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
|
59704
59738
|
"database-info",
|
|
59705
59739
|
"loading"
|
|
59706
59740
|
])) : selectedConnection.value && selectedDatabase.value && selectedTable.value ? (openBlock(), createBlock(table_detail_default, {
|
|
59707
|
-
key:
|
|
59741
|
+
key: 2,
|
|
59708
59742
|
connection: selectedConnection.value,
|
|
59709
59743
|
database: selectedDatabase.value,
|
|
59710
59744
|
table: selectedTable.value,
|
|
@@ -59722,7 +59756,9 @@ var init_explorer_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
|
59722
59756
|
onTruncateTable: handleTruncateTable,
|
|
59723
59757
|
onEditRow: handleEditRow,
|
|
59724
59758
|
onDeleteRow: handleDeleteRow,
|
|
59725
|
-
onExecuteSql: handleExecuteSql
|
|
59759
|
+
onExecuteSql: handleExecuteSql,
|
|
59760
|
+
onNavigateConnection: goToConnection,
|
|
59761
|
+
onNavigateDatabase: goToDatabase
|
|
59726
59762
|
}, null, 8, [
|
|
59727
59763
|
"connection",
|
|
59728
59764
|
"database",
|
|
@@ -59733,8 +59769,8 @@ var init_explorer_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
|
59733
59769
|
"total",
|
|
59734
59770
|
"sql-result",
|
|
59735
59771
|
"sql-executing"
|
|
59736
|
-
])) : (openBlock(), createElementBlock("div",
|
|
59737
|
-
_cache[
|
|
59772
|
+
])) : (openBlock(), createElementBlock("div", _hoisted_46, [createBaseVNode("div", _hoisted_47, [
|
|
59773
|
+
_cache[17] || (_cache[17] = createBaseVNode("div", { class: "default-icon" }, [createBaseVNode("i", { class: "bi bi-diagram-3" })], -1)),
|
|
59738
59774
|
createBaseVNode("h5", null, toDisplayString(_ctx.$t("explorer.defaultTitle")), 1),
|
|
59739
59775
|
createBaseVNode("p", null, toDisplayString(_ctx.$t("explorer.defaultDesc")), 1)
|
|
59740
59776
|
])]))])]),
|
|
@@ -59753,8 +59789,8 @@ var init_explorer_vue_vue_type_script_setup_true_lang = __esmMin((() => {
|
|
|
59753
59789
|
});
|
|
59754
59790
|
}));
|
|
59755
59791
|
//#endregion
|
|
59756
|
-
//#region src/platform/database/explorer.vue?vue&type=style&index=0&scoped=
|
|
59757
|
-
var
|
|
59792
|
+
//#region src/platform/database/explorer.vue?vue&type=style&index=0&scoped=50189218&lang.css
|
|
59793
|
+
var init_explorer_vue_vue_type_style_index_0_scoped_50189218_lang = __esmMin((() => {}));
|
|
59758
59794
|
//#endregion
|
|
59759
59795
|
//#region src/platform/database/explorer.vue
|
|
59760
59796
|
var explorer_default;
|
|
@@ -59762,8 +59798,8 @@ var explorer_default;
|
|
|
59762
59798
|
__esmMin((() => {
|
|
59763
59799
|
init_explorer_vue_vue_type_script_setup_true_lang();
|
|
59764
59800
|
init_explorer_vue_vue_type_script_setup_true_lang();
|
|
59765
|
-
|
|
59801
|
+
init_explorer_vue_vue_type_style_index_0_scoped_50189218_lang();
|
|
59766
59802
|
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-
|
|
59803
|
+
explorer_default = /*#__PURE__*/ _plugin_vue_export_helper_default(explorer_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-50189218"]]);
|
|
59768
59804
|
}))();
|
|
59769
59805
|
export { explorer_default as default };
|