feat(uxdb): add UXDB database support

This commit is contained in:
t8y2 committed 2026-07-24 21:15:06 +08:00
1 parent 3035800658
commit 7ee335e38a
65 files changed
+697 -96

No files matched your search

@@ -1,11 +1,13 @@
<script setup lang="ts">
import { computed } from "vue";
import { Database } from "@lucide/vue";
import { useTheme } from "@/composables/useTheme";
import { webPath } from "@/lib/common/webPath";
const props = defineProps<{
dbType: string;
}>();
const { isDark } = useTheme();
const assetIcons: Record<string, string> = {
mysql: "mysql",
@@ -38,6 +40,7 @@ const assetIcons: Record<string, string> = {
kwdb: "kwdb",
kingbase: "kingbase",
highgo: "highgo.png",
uxdb: "uxdb",
goldendb: "goldendb.png",
databend: "databend",
vastbase: "vastbase.png",
@@ -106,6 +109,7 @@ const normalizedType = computed(() => props.dbType.toLowerCase().replace(/[\s-]+
const assetName = computed(() => assetIcons[normalizedType.value]);
const assetSrc = computed(() => {
if (!assetName.value) return "";
if (normalizedType.value === "uxdb" && isDark.value) return webPath("/icons/database/uxdb-dark.svg");
return webPath(assetName.value.includes(".") ? `/icons/database/${assetName.value}` : `/icons/database/${assetName.value}.svg`);
});
const letter = computed(() => letterIcons[normalizedType.value]);