feat(solr): add Apache Solr connection support
This commit is contained in:
1 parent
7b407ccbfc
commit
3687a9cbfb
75 files changed
+5596
-82
No files matched your search
@@ -3278,6 +3278,29 @@ export const useQueryStore = defineStore("query", () => {
|
||||
return registerOpenTab(tab);
|
||||
}
|
||||
|
||||
function openSolrAdmin(connectionId: string) {
|
||||
const existing = tabs.value.find((tab) => tab.mode === "solr-admin" && tab.connectionId === connectionId);
|
||||
if (existing) {
|
||||
switchTab(existing.id);
|
||||
return existing.id;
|
||||
}
|
||||
|
||||
const conn = useConnectionStore().getConfig(connectionId);
|
||||
const id = uuid();
|
||||
const tab: QueryTab = {
|
||||
id,
|
||||
title: conn?.name ? `${conn.name} - ${t("solrAdmin.title")}` : t("solrAdmin.title"),
|
||||
connectionId,
|
||||
database: "",
|
||||
sql: "",
|
||||
isExecuting: false,
|
||||
isCancelling: false,
|
||||
isExplaining: false,
|
||||
mode: "solr-admin",
|
||||
};
|
||||
return registerOpenTab(tab);
|
||||
}
|
||||
|
||||
function openDamengJobAdmin(connectionId: string) {
|
||||
const existing = tabs.value.find((tab) => tab.mode === "dameng-jobs" && tab.connectionId === connectionId);
|
||||
if (existing) {
|
||||
@@ -8997,6 +9020,7 @@ export const useQueryStore = defineStore("query", () => {
|
||||
openPostgresDashboard,
|
||||
openXuguDashboard,
|
||||
openNacosDashboard,
|
||||
openSolrAdmin,
|
||||
openDamengUsers,
|
||||
openDamengRoles,
|
||||
openDamengJobAdmin,
|
||||
|
||||
Reference in new issue
Block a user