From 0bc8335eefd7c723530e5a4aab39bbae81e51dc8 Mon Sep 17 00:00:00 2001 From: tiny-craft <137850705+tiny-craft@users.noreply.github.com> Date: Fri, 14 Jul 2023 16:17:59 +0800 Subject: [PATCH] perf: move server status pane into browser pane, add server node to the top of database tree list --- backend/services/connection_service.go | 4 +- .../src/components/content/ContentPane.vue | 56 +++++++-- .../components/content/ContentServerPane.vue | 45 +------- .../content_value/ContentServerStatus.vue | 4 +- .../src/components/sidebar/BrowserTree.vue | 106 +++++++++++++----- .../src/components/sidebar/ConnectionTree.vue | 12 -- frontend/src/langs/en.json | 1 - frontend/src/langs/zh-cn.json | 1 - frontend/src/stores/connections.js | 60 +++++----- 9 files changed, 164 insertions(+), 125 deletions(-) diff --git a/backend/services/connection_service.go b/backend/services/connection_service.go index db72843..cc698e8 100644 --- a/backend/services/connection_service.go +++ b/backend/services/connection_service.go @@ -129,7 +129,7 @@ func (c *connectionService) SaveSortedConnection(sortedConns types.Connections) return } -// CreateGroup create new group +// CreateGroup create a new group func (c *connectionService) CreateGroup(name string) (resp types.JSResp) { err := c.conns.CreateGroup(name) if err != nil { @@ -151,7 +151,7 @@ func (c *connectionService) RenameGroup(name, newName string) (resp types.JSResp return } -// DeleteGroup remove group by name +// DeleteGroup remove a group by name func (c *connectionService) DeleteGroup(name string, includeConn bool) (resp types.JSResp) { err := c.conns.DeleteGroup(name, includeConn) if err != nil { diff --git a/frontend/src/components/content/ContentPane.vue b/frontend/src/components/content/ContentPane.vue index bf07bc3..3015602 100644 --- a/frontend/src/components/content/ContentPane.vue +++ b/frontend/src/components/content/ContentPane.vue @@ -1,5 +1,5 @@