Skip to content

armgit / dbx

Public Imported from GitHub
0

25 MB lightweight cross-platform database client for 100+ databases, including MySQL, PostgreSQL, SQLite, Redis, MongoDB, DuckDB, SQL Server, and Dameng. Built-in AI, MCP Server, CLI, desktop and Docker. | 轻量级跨平台数据库管理工具,支持 MySQL、PostgreSQL、SQLite、Redis、MongoDB、达梦等 100+ 数据库,提供桌面端、Docker、CLI、内置 AI 助手和 MCP。

fix(ci): make Emitter import unconditional and update defineExpose test regex

t8y2e15e99aeb599
diff --git a/packages/app-tests/queryEditorSearchReplace.test.ts b/packages/app-tests/queryEditorSearchReplace.test.ts
index 908973ca0b..07fc017b14 100644
--- a/packages/app-tests/queryEditorSearchReplace.test.ts
+++ b/packages/app-tests/queryEditorSearchReplace.test.ts
@@ -14,7 +14,7 @@ test("query editor opens search and replace with configurable shortcuts", () =>
assert.match(source, /shortcutToCodeMirrorKey\(shortcuts\.find\)/);
assert.match(source, /shortcutToCodeMirrorKey\(shortcuts\.replace\)/);
assert.match(source, /run:\s*openReplace/);
- assert.match(source, /defineExpose\(\{\s*openSearch,\s*openReplace\s*\}\)/);
+ assert.match(source, /defineExpose\(\{\s*openSearch,\s*openReplace,\s*scrollCursorIntoView\s*\}\)/);
assert.match(searchPanelSource, /showReplace\.value\s*=\s*true/);
assert.match(searchPanelSource, /replaceInputRef\.value\?\.focus\(\)/);
assert.match(searchPanelSource, /defineExpose\(\{\s*openSearch,\s*openReplace,\s*closeSearch\s*\}\)/);
diff --git a/src-tauri/src/lib.rs b/src-tauri/src/lib.rs
index 179eb1454d..ee5751433c 100644
--- a/src-tauri/src/lib.rs
+++ b/src-tauri/src/lib.rs
@@ -8,13 +8,13 @@ use commands::connection::AppState;
use dbx_core::storage::Storage;
use std::sync::Arc;
use std::time::Instant;
-use tauri::Manager;
+#[cfg(target_os = "macos")]
+use tauri::RunEvent;
use tauri::{
menu::MenuBuilder,
tray::{MouseButton, MouseButtonState, TrayIconBuilder, TrayIconEvent},
};
-#[cfg(target_os = "macos")]
-use tauri::{Emitter, RunEvent};
+use tauri::{Emitter, Manager};
#[cfg(any(windows, target_os = "linux"))]
use tauri_plugin_deep_link::DeepLinkExt;