feat(jdbc): add dedicated connection entry

This commit is contained in:
zipg authored and GitHub committed 2026-07-14 18:03:36 +08:00
1 parent 358a736c6e
commit 0bbaf33d92
12 files changed
+76 -11

No files matched your search

+6 -3
View File
@@ -135,6 +135,7 @@ const settingsInitialSection = ref<string | undefined>(undefined);
const showQueryEditorDdlDialog = ref(false);
const driverStoreTabOpen = ref(false);
const driverStoreActive = ref(false);
const driverStoreActiveTab = ref<"agent" | "jdbc" | "storage" | "runtime">("agent");
const settingsReturnSurface = ref<"query" | "driverStore" | "welcome">("welcome");
const showDriverStore = computed(() => driverStoreTabOpen.value && driverStoreActive.value);
const showSettingsPage = computed(() => settingsPageTabOpen.value && settingsStore.settingsPageActive);
@@ -316,7 +317,8 @@ function closeSettingsPage() {
driverStoreActive.value = false;
}
function openDriverStorePage() {
function openDriverStorePage(tab?: "agent" | "jdbc" | "storage" | "runtime") {
if (tab) driverStoreActiveTab.value = tab;
driverStoreTabOpen.value = true;
driverStoreActive.value = true;
settingsStore.settingsPageActive = false;
@@ -325,6 +327,7 @@ function openDriverStorePage() {
function closeDriverStorePage() {
driverStoreTabOpen.value = false;
driverStoreActive.value = false;
driverStoreActiveTab.value = "agent";
}
const toolbarAgentDriverUpdateCount = computed(() => (updateNotificationsEnabled.value ? agentDriverUpdateCount.value : 0));
const toolbarHasUpdateAvailable = computed(() => updateNotificationsEnabled.value && hasUpdateAvailable.value);
@@ -1898,7 +1901,7 @@ onUnmounted(() => {
@discard-all-tab-close="handleDiscardAllPendingTabClose"
@cancel-tab-close="cancelPendingAppClose"
/>
<DriverStorePage v-if="driverStoreTabOpen" v-show="driverStoreActive" class="flex-1 min-h-0" :update-notifications-enabled="updateNotificationsEnabled" @update-count-change="updateAgentDriverUpdateCount" />
<DriverStorePage v-if="driverStoreTabOpen" v-show="driverStoreActive" v-model:active-tab="driverStoreActiveTab" class="flex-1 min-h-0" :update-notifications-enabled="updateNotificationsEnabled" @update-count-change="updateAgentDriverUpdateCount" />
<EditorSettingsPage
v-if="settingsPageTabOpen"
v-show="settingsStore.settingsPageActive"
@@ -2104,7 +2107,7 @@ onUnmounted(() => {
"
@open-driver-store="
setConnectionDialogOpen(false);
openDriverStorePage();
openDriverStorePage($event);
"
@open-tunnel-profile-settings="
setConnectionDialogOpen(false);