diff --git a/web/src/views/Dashboard.vue b/web/src/views/Dashboard.vue index 6516bdd..608cbd2 100644 --- a/web/src/views/Dashboard.vue +++ b/web/src/views/Dashboard.vue @@ -192,17 +192,8 @@ const topRequestsTab = ref<'general' | 'errors'>('general')

Active Agents

Errors - -
-
-
+ +
{{ displayStats.activeAgents }}
@@ -394,3 +385,13 @@ const topRequestsTab = ref<'general' | 'errors'>('general') + + diff --git a/web/src/views/database/types.ts b/web/src/views/database/types.ts index 64a65fe..9458415 100644 --- a/web/src/views/database/types.ts +++ b/web/src/views/database/types.ts @@ -43,3 +43,89 @@ export interface DbForm { password: string database: string } + +// Neo4j 图谱相关类型 +export interface Neo4jLabel { + name: string + count: number +} + +export interface Neo4jRelType { + name: string + count: number +} + +export interface Neo4jGraphData { + labels: Neo4jLabel[] + relationshipTypes: Neo4jRelType[] +} + +export interface Neo4jCheckResponse { + success: boolean + message: string + version?: string + databases?: string[] + databaseId?: string + name?: string + description?: string + graphs?: Neo4jGraphData +} + +export interface Neo4jNodeProperty { + label: string + properties: { + name: string + type: string + }[] +} + +export interface Neo4jRelProperty { + type: string + properties: { + name: string + type: string + }[] +} + +export interface Neo4jNodeRequest { + uri?: string + host?: string + port?: number + username: string + password: string + database: string + label: string + limit?: number +} + +export interface Neo4jNodesResponse { + success: boolean + message: string + nodes: any[] + properties: { + name: string + type: string + }[] +} + +export interface Neo4jRelRequest { + uri?: string + host?: string + port?: number + username: string + password: string + database: string + relationshipType: string + limit?: number +} + +export interface Neo4jRelationshipsResponse { + success: boolean + message: string + relationships: { + id: string + source: string + target: string + properties: any + }[] +}