feat(ui): 补充国产数据库中文品牌名称

Co-authored-by: zipg <4047349+zipg@users.noreply.github.com>
This commit is contained in:
zipgandzipg authored and GitHub committed 2026-08-05 23:15:53 +08:00
1 parent a6d335fff9
commit e1822cb704
7 files changed
+39 -36

No files matched your search

@@ -924,7 +924,7 @@ const driverProfiles: Record<
label: "OceanBase Oracle Mode",
icon: "oceanbase",
},
goldendb: { type: "goldendb", port: 3306, user: "root", label: "GoldenDB", icon: "goldendb" },
goldendb: { type: "goldendb", port: 3306, user: "root", label: "金篆 GoldenDB", icon: "goldendb" },
databend: { type: "databend", port: 8000, user: "databend", label: "Databend", icon: "databend" },
tdsql: { type: "mysql", port: 3306, user: "root", label: "TDSQL", icon: "tdsql" },
polardb: { type: "mysql", port: 3306, user: "root", label: "PolarDB", icon: "polardb" },
@@ -935,9 +935,9 @@ const driverProfiles: Record<
vertica: { type: "vertica", port: 5433, user: "dbadmin", label: "Vertica", icon: "vertica" },
firebird: { type: "firebird", port: 3050, user: "SYSDBA", label: "Firebird", icon: "firebird" },
exasol: { type: "exasol", port: 8563, user: "sys", label: "Exasol", icon: "exasol" },
gbase: { type: "gbase", port: 5258, user: "gbasedbt", label: "GBase 8a", icon: "gbase" },
gbase8a: { type: "gbase", port: 5258, user: "gbasedbt", label: "GBase 8a", icon: "gbase" },
gbase8s: { type: "gbase", port: 9088, user: "gbasedbt", label: "GBase 8s", icon: "gbase" },
gbase: { type: "gbase", port: 5258, user: "gbasedbt", label: "南大通用 GBase 8a", icon: "gbase" },
gbase8a: { type: "gbase", port: 5258, user: "gbasedbt", label: "南大通用 GBase 8a", icon: "gbase" },
gbase8s: { type: "gbase", port: 9088, user: "gbasedbt", label: "南大通用 GBase 8s", icon: "gbase" },
opengauss: {
type: "opengauss",
port: 5432,
@@ -948,11 +948,11 @@ const driverProfiles: Record<
gaussdb: { type: "gaussdb", port: 5432, user: "gaussdb", label: "GaussDB", icon: "gaussdb" },
kwdb: { type: "kwdb", port: 26257, user: "root", label: "KWDB", icon: "kwdb" },
questdb: { type: "questdb", port: 8812, user: "questdb", label: "QuestDB", icon: "questdb" },
kingbase: { type: "kingbase", port: 54321, user: "system", label: "KingBase", icon: "kingbase" },
kingbase: { type: "kingbase", port: 54321, user: "system", label: "人大金仓 KingbaseES", icon: "kingbase" },
highgo: { type: "highgo", port: 5866, user: "highgo", label: "瀚高 HighGo", icon: "highgo" },
uxdb: { type: "uxdb", port: 52025, user: "uxdb", label: "优炫 UXDB", icon: "uxdb" },
yashandb: { type: "yashandb", port: 1688, user: "sys", label: "崖山 YashanDB", icon: "yashandb" },
vastbase: { type: "vastbase", port: 5432, user: "vastbase", label: "Vastbase", icon: "vastbase" },
vastbase: { type: "vastbase", port: 5432, user: "vastbase", label: "海量 Vastbase", icon: "vastbase" },
doris: { type: "mysql", port: 9030, user: "root", label: "Doris", icon: "doris", urlParams: "" },
selectdb: {
type: "mysql",
@@ -1009,7 +1009,7 @@ const driverProfiles: Record<
host: "https://www.googleapis.com/bigquery/v2",
},
kylin: { type: "kylin", port: 7070, user: "ADMIN", label: "Apache Kylin", icon: "kylin" },
sundb: { type: "sundb", port: 22000, user: "root", label: "SunDB", icon: "sundb" },
sundb: { type: "sundb", port: 22000, user: "root", label: "科蓝 SUNDB", icon: "sundb" },
oscar: { type: "oscar", port: 2003, user: "SYSDBA", label: "神通 OSCAR", icon: "oscar" },
jdbc: { type: "jdbc", port: 0, user: "", label: "JDBC", icon: "jdbc" },
tdengine: { type: "tdengine", port: 6041, user: "root", label: "TDengine", icon: "tdengine" },
@@ -2471,7 +2471,7 @@ const dbOptions: DbOption[] = [
{ value: "questdb", label: "QuestDB" },
{ value: "tidb", label: "TiDB" },
{ value: "oceanbase", label: "OceanBase" },
{ value: "goldendb", label: "GoldenDB" },
{ value: "goldendb", label: "金篆 GoldenDB" },
{ value: "databend", label: "Databend" },
{ value: "tdsql", label: "TDSQL" },
{ value: "polardb", label: "PolarDB" },
@@ -2486,12 +2486,12 @@ const dbOptions: DbOption[] = [
{ value: "vertica", label: "Vertica" },
{ value: "firebird", label: "Firebird" },
{ value: "exasol", label: "Exasol" },
{ value: "gbase", label: "GBase" },
{ value: "kingbase", label: "KingBase" },
{ value: "gbase", label: "南大通用 GBase" },
{ value: "kingbase", label: "人大金仓 KingbaseES" },
{ value: "highgo", label: "瀚高 HighGo" },
{ value: "uxdb", label: "优炫 UXDB" },
{ value: "yashandb", label: "崖山 YashanDB" },
{ value: "vastbase", label: "Vastbase" },
{ value: "vastbase", label: "海量 Vastbase" },
{ value: "redshift", label: "Redshift" },
{ value: "cockroachdb", label: "CockroachDB" },
{ value: "h2", label: "H2" },
@@ -2506,7 +2506,7 @@ const dbOptions: DbOption[] = [
{ value: "cassandra", label: "Cassandra" },
{ value: "bigquery", label: "BigQuery" },
{ value: "kylin", label: "Kylin" },
{ value: "sundb", label: "SunDB" },
{ value: "sundb", label: "科蓝 SUNDB" },
{ value: "oscar", label: "神通 OSCAR" },
{ value: "xugu", label: "虚谷 XuguDB" },
{ value: "iotdb", label: "Apache IoTDB" },
@@ -4943,6 +4943,7 @@ function openExternalUrl(url: string) {
v-for="opt in category.options"
:key="opt.value"
type="button"
:title="opt.label"
class="connection-db-picker-option group flex min-h-24 flex-col items-center justify-center gap-2 rounded-[4px] border bg-background/70 p-3 text-center transition hover:border-primary/40 hover:bg-muted/40 hover:shadow-sm focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring"
:class="selectedType === opt.value ? 'dbx-tile-selected shadow-sm' : 'border-border'"
:aria-pressed="selectedType === opt.value"
@@ -4952,7 +4953,9 @@ function openExternalUrl(url: string) {
<span class="flex h-10 w-10 items-center justify-center rounded-xl bg-muted/60 transition group-hover:bg-background">
<DatabaseIcon :db-type="iconTypeMap[opt.value]" class="h-6 w-6" />
</span>
<span class="max-w-full truncate text-sm font-medium">{{ opt.label }}</span>
<span class="flex min-h-8 max-w-full items-center justify-center">
<span class="line-clamp-2 text-sm leading-4 font-medium">{{ opt.label }}</span>
</span>
</button>
</div>
@@ -52,12 +52,12 @@ const SCHEME_PROFILES: Record<string, ConnectionProfile> = {
chromadb: { type: "chromadb", profile: "chromadb", label: "ChromaDB", defaultPort: 8000 },
dm: { type: "dameng", profile: "dm", label: "达梦 Dameng", defaultPort: 5236 },
dameng: { type: "dameng", profile: "dm", label: "达梦 Dameng", defaultPort: 5236 },
kingbase: { type: "kingbase", profile: "kingbase", label: "KingBase", defaultPort: 54321 },
kingbase8: { type: "kingbase", profile: "kingbase", label: "KingBase", defaultPort: 54321 },
kingbase: { type: "kingbase", profile: "kingbase", label: "人大金仓 KingbaseES", defaultPort: 54321 },
kingbase8: { type: "kingbase", profile: "kingbase", label: "人大金仓 KingbaseES", defaultPort: 54321 },
gaussdb: { type: "gaussdb", profile: "gaussdb", label: "GaussDB", defaultPort: 5432 },
kwdb: { type: "kwdb", profile: "kwdb", label: "KWDB", defaultPort: 26257 },
gbase: { type: "gbase", profile: "gbase", label: "GBase", defaultPort: 5258 },
"gbasedbt-sqli": { type: "gbase", profile: "gbase8s", label: "GBase 8s", defaultPort: 9088 },
gbase: { type: "gbase", profile: "gbase", label: "南大通用 GBase", defaultPort: 5258 },
"gbasedbt-sqli": { type: "gbase", profile: "gbase8s", label: "南大通用 GBase 8s", defaultPort: 9088 },
"informix-sqli": { type: "informix", profile: "informix", label: "Informix", defaultPort: 9088 },
yashandb: { type: "yashandb", profile: "yashandb", label: "YashanDB", defaultPort: 1688 },
opengauss: { type: "gaussdb", profile: "opengauss", label: "openGauss", defaultPort: 5432 },
@@ -453,7 +453,7 @@ function parseJdbcGbase8sUrl(source: string): ParsedConnectionUrl | null {
return {
dbType: "gbase",
driverProfile: "gbase8s",
driverLabel: "GBase 8s",
driverLabel: "南大通用 GBase 8s",
host,
port: match.groups.port ? Number(match.groups.port) : 9088,
username: decodeUrlPart(rawUser),
+4 -4
View File
@@ -989,12 +989,12 @@ export const useConnectionStore = defineStore("connection", () => {
gaussdb: "GaussDB",
questdb: "QuestDB",
kwdb: "KWDB",
kingbase: "KingBase",
kingbase: "人大金仓 KingbaseES",
highgo: "瀚高 HighGo",
uxdb: "优炫 UXDB",
yashandb: "崖山 YashanDB",
vastbase: "Vastbase",
goldendb: "GoldenDB",
vastbase: "海量 Vastbase",
goldendb: "金篆 GoldenDB",
access: "Microsoft Access",
h2: "H2",
snowflake: "Snowflake",
@@ -1008,7 +1008,7 @@ export const useConnectionStore = defineStore("connection", () => {
cassandra: "Cassandra",
bigquery: "BigQuery",
kylin: "Kylin",
sundb: "SunDB",
sundb: "科蓝 SUNDB",
oscar: "神通 OSCAR",
influxdb: "InfluxDB",
};