From dadde8d090df5fc5750097761db8c680023dd066 Mon Sep 17 00:00:00 2001
From: tiny-craft <137850705+tiny-craft@users.noreply.github.com>
Date: Sat, 1 Jul 2023 02:05:30 +0800
Subject: [PATCH] Refactor server and database save structure, support multiple
server detail tab
---
frontend/src/AppContent.vue | 73 +-
frontend/src/components/ContentToolbar.vue | 6 +-
frontend/src/components/NavMenu.vue | 45 +-
.../{ => common}/EditableTableColumn.vue | 8 +-
.../{ => common}/EditableTableRow.vue | 0
.../components/{ => common}/IconButton.vue | 0
.../components/{ => common}/RedisTypeTag.vue | 2 +-
.../src/components/{ => common}/Toolbar.vue | 0
.../components/{ => content}/ContentPane.vue | 62 +-
.../components/content/ContentServerPane.vue | 43 +
.../ContentValueTab.vue} | 11 +-
frontend/src/components/content/content.scss | 16 +
.../content_value/ContentValueHash.vue | 4 +-
.../content_value/ContentValueList.vue | 4 +-
.../content_value/ContentValueSet.vue | 4 +-
.../content_value/ContentValueString.vue | 2 +-
.../content_value/ContentValueZSet.vue | 4 +-
.../components/dialogs/AddFieldsDialog.vue | 2 +-
.../src/components/dialogs/NewKeyDialog.vue | 2 +-
.../components/dialogs/RenameKeyDialog.vue | 2 +-
.../src/components/dialogs/SetTtlDialog.vue | 2 +-
frontend/src/components/icons/Log.vue | 46 +
.../src/components/new_value/AddHashValue.vue | 2 +-
.../src/components/new_value/AddListValue.vue | 2 +-
.../src/components/new_value/AddZSetValue.vue | 2 +-
.../src/components/new_value/NewHashValue.vue | 2 +-
.../src/components/new_value/NewListValue.vue | 2 +-
.../src/components/new_value/NewSetValue.vue | 2 +-
.../src/components/new_value/NewZSetValue.vue | 2 +-
.../ConnectionPane.vue} | 18 +-
.../src/components/sidebar/ConnectionTree.vue | 271 ++++++
.../components/sidebar/ConnectionTreeItem.vue | 26 +
.../src/components/sidebar/DatabasePane.vue | 44 +
.../DatabaseTree.vue} | 163 +---
frontend/src/langs/en.json | 11 +-
frontend/src/langs/zh-cn.json | 9 +-
frontend/src/stores/connections.js | 921 ++++++++++++++++++
.../src/stores/{connection.js => database.js} | 63 +-
frontend/src/stores/tab.js | 60 +-
frontend/src/style.scss | 2 +-
40 files changed, 1634 insertions(+), 306 deletions(-)
rename frontend/src/components/{ => common}/EditableTableColumn.vue (86%)
rename frontend/src/components/{ => common}/EditableTableRow.vue (100%)
rename frontend/src/components/{ => common}/IconButton.vue (100%)
rename frontend/src/components/{ => common}/RedisTypeTag.vue (93%)
rename frontend/src/components/{ => common}/Toolbar.vue (100%)
rename frontend/src/components/{ => content}/ContentPane.vue (61%)
create mode 100644 frontend/src/components/content/ContentServerPane.vue
rename frontend/src/components/{ContentTab.vue => content/ContentValueTab.vue} (92%)
create mode 100644 frontend/src/components/content/content.scss
create mode 100644 frontend/src/components/icons/Log.vue
rename frontend/src/components/{NavigationPane.vue => sidebar/ConnectionPane.vue} (78%)
create mode 100644 frontend/src/components/sidebar/ConnectionTree.vue
create mode 100644 frontend/src/components/sidebar/ConnectionTreeItem.vue
create mode 100644 frontend/src/components/sidebar/DatabasePane.vue
rename frontend/src/components/{ConnectionsTree.vue => sidebar/DatabaseTree.vue} (68%)
create mode 100644 frontend/src/stores/connections.js
rename frontend/src/stores/{connection.js => database.js} (92%)
diff --git a/frontend/src/AppContent.vue b/frontend/src/AppContent.vue
index e3aefe4..3991122 100644
--- a/frontend/src/AppContent.vue
+++ b/frontend/src/AppContent.vue
@@ -1,21 +1,25 @@
-