From 484e6a5f6b02c6f07c3426f7b1f08e31447361cb Mon Sep 17 00:00:00 2001
From: tiny-craft <137850705+tiny-craft@users.noreply.github.com>
Date: Thu, 24 Aug 2023 20:26:18 +0800
Subject: [PATCH] feat: add icon function buttons to connection tree items
fix: error cause when close non-connected connection
---
frontend/.prettierrc | 3 +-
.../src/components/content/ContentPane.vue | 1 -
.../content_value/ContentServerStatus.vue | 1 -
.../src/components/sidebar/BrowserTree.vue | 12 +-
.../src/components/sidebar/ConnectionTree.vue | 132 +++++++++++++++---
frontend/src/langs/en.json | 1 +
frontend/src/langs/zh-cn.json | 1 +
frontend/src/stores/connections.js | 12 +-
frontend/src/stores/dialog.js | 1 +
frontend/src/utils/rgb.js | 58 ++++++++
10 files changed, 184 insertions(+), 38 deletions(-)
create mode 100644 frontend/src/utils/rgb.js
diff --git a/frontend/.prettierrc b/frontend/.prettierrc
index e1a4a2a..176be84 100644
--- a/frontend/.prettierrc
+++ b/frontend/.prettierrc
@@ -4,5 +4,6 @@
"singleQuote": true,
"semi": false,
"bracketSameLine": true,
- "endOfLine": "auto"
+ "endOfLine": "auto",
+ "htmlWhitespaceSensitivity": "ignore"
}
diff --git a/frontend/src/components/content/ContentPane.vue b/frontend/src/components/content/ContentPane.vue
index 84e3ca2..be94a31 100644
--- a/frontend/src/components/content/ContentPane.vue
+++ b/frontend/src/components/content/ContentPane.vue
@@ -65,7 +65,6 @@ const valueComponents = {
[types.STREAM]: ContentValueStream,
}
-const dialog = useDialog()
const connectionStore = useConnectionStore()
const tabStore = useTabStore()
const tab = computed(() =>
diff --git a/frontend/src/components/content_value/ContentServerStatus.vue b/frontend/src/components/content_value/ContentServerStatus.vue
index 56e24c3..49ffcf4 100644
--- a/frontend/src/components/content_value/ContentServerStatus.vue
+++ b/frontend/src/components/content_value/ContentServerStatus.vue
@@ -134,7 +134,6 @@ const infoFilter = ref('')
{{ $t('total_keys') }}
-
diff --git a/frontend/src/components/sidebar/BrowserTree.vue b/frontend/src/components/sidebar/BrowserTree.vue
index e10534a..064ad13 100644
--- a/frontend/src/components/sidebar/BrowserTree.vue
+++ b/frontend/src/components/sidebar/BrowserTree.vue
@@ -1,7 +1,7 @@