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: make GitHub link clickable in settings about page

t8y2043bd5dd8d40
diff --git a/src/components/editor/EditorSettingsDialog.vue b/src/components/editor/EditorSettingsDialog.vue
index d40a734916..78a35b4873 100644
--- a/src/components/editor/EditorSettingsDialog.vue
+++ b/src/components/editor/EditorSettingsDialog.vue
@@ -102,6 +102,15 @@ function setAppLayout(value: "separated" | "classic") {
const activeSettingsTab = ref("editor");
const isWeb = !isTauriRuntime();
+
+function openExternalUrl(url: string) {
+ if (isTauriRuntime()) {
+ import("@tauri-apps/plugin-shell").then(({ open }) => open(url));
+ } else {
+ window.open(url, "_blank", "noopener,noreferrer");
+ }
+}
+
const jdbcDrivers = ref<JdbcDriverInfo[]>([]);
const isLoadingJdbcDrivers = ref(false);
const jdbcPluginStatus = ref<JdbcPluginStatus | null>(null);
@@ -713,7 +722,12 @@ watch(
{{ t("settings.project") }}
</div>
<div class="mt-2 text-sm font-medium">{{ t("settings.openSource") }}</div>
- <div class="mt-1 text-sm text-muted-foreground">github.com/t8y2/dbx</div>
+ <div
+ class="mt-1 text-sm text-primary cursor-pointer hover:underline"
+ @click="openExternalUrl('https://github.com/t8y2/dbx')"
+ >
+ github.com/t8y2/dbx
+ </div>
</div>
</div>