From 297286f150cceca7030f634ce36d7a10b6d6f034 Mon Sep 17 00:00:00 2001 From: tiny-craft <137850705+tiny-craft@users.noreply.github.com> Date: Fri, 27 Oct 2023 10:50:22 +0800 Subject: [PATCH] perf: create "content-pane" component for each tab to maintain data and status easily --- frontend/src/AppContent.vue | 7 +- .../src/components/content/ContentLogPane.vue | 4 +- .../src/components/content/ContentPane.vue | 184 ++++-------------- .../components/content/ContentValueTab.vue | 4 +- .../components/content_value/ContentCli.vue | 15 +- .../content_value/ContentServerStatus.vue | 79 +++++--- .../content_value/ContentValueWrapper.vue | 41 ++-- .../src/components/sidebar/BrowserPane.vue | 3 - frontend/src/stores/tab.js | 2 +- 9 files changed, 132 insertions(+), 207 deletions(-) diff --git a/frontend/src/AppContent.vue b/frontend/src/AppContent.vue index 8089343..cb716a4 100644 --- a/frontend/src/AppContent.vue +++ b/frontend/src/AppContent.vue @@ -208,7 +208,12 @@ onMounted(async () => { @mouseout="data.hoverResize = false" @mouseover="data.hoverResize = true" /> - + diff --git a/frontend/src/components/content/ContentLogPane.vue b/frontend/src/components/content/ContentLogPane.vue index d4cd9b9..85442fb 100644 --- a/frontend/src/components/content/ContentLogPane.vue +++ b/frontend/src/components/content/ContentLogPane.vue @@ -73,10 +73,10 @@ defineExpose({