From bffad6129366d496168e1add78c647d17bb7e037 Mon Sep 17 00:00:00 2001 From: Mock Date: Wed, 8 Apr 2026 23:02:54 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=89=8D=E7=AB=AF=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E6=8E=A7=E5=88=B6=E5=8F=8D=E9=A6=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/components/ControlFeedback.vue | 488 +++++++++++++++++ frontend/src/components/ControlPanel.vue | 251 +-------- frontend/src/components/VideoPanel.vue | 36 ++ .../src/composables/useControlInterface.ts | 494 ++++++++++++++++++ 4 files changed, 1026 insertions(+), 243 deletions(-) create mode 100644 frontend/src/components/ControlFeedback.vue create mode 100644 frontend/src/composables/useControlInterface.ts diff --git a/frontend/src/components/ControlFeedback.vue b/frontend/src/components/ControlFeedback.vue new file mode 100644 index 0000000..0b8f015 --- /dev/null +++ b/frontend/src/components/ControlFeedback.vue @@ -0,0 +1,488 @@ + + + + + diff --git a/frontend/src/components/ControlPanel.vue b/frontend/src/components/ControlPanel.vue index 74a9b23..c7ba0b1 100644 --- a/frontend/src/components/ControlPanel.vue +++ b/frontend/src/components/ControlPanel.vue @@ -1,188 +1,5 @@ @@ -241,45 +51,6 @@ h2 { font-size: 24px; } -.badge { - padding: 8px 12px; - border-radius: 999px; - background: rgba(40, 199, 111, 0.16); - color: #63e6a9; - font-size: 12px; - font-weight: 700; -} - -.badge.warm { - background: rgba(255, 176, 87, 0.16); - color: #ffcf97; -} - -.grid { - display: grid; - grid-template-columns: repeat(2, minmax(0, 1fr)); - gap: 12px; -} - -.stat-card { - padding: 14px; - border-radius: 16px; - background: rgba(7, 14, 26, 0.78); - border: 1px solid rgba(133, 147, 169, 0.2); -} - -.stat-card span { - display: block; - margin-bottom: 8px; - color: #8d99b3; - font-size: 12px; -} - -.stat-card strong { - font-size: 18px; - word-break: break-word; -} - .hint { margin: 0; color: #d5dbee; @@ -289,10 +60,4 @@ h2 { .hint.subtle { color: #96a5c3; } - -@media (max-width: 640px) { - .grid { - grid-template-columns: 1fr; - } -} diff --git a/frontend/src/components/VideoPanel.vue b/frontend/src/components/VideoPanel.vue index 6a701aa..3113805 100644 --- a/frontend/src/components/VideoPanel.vue +++ b/frontend/src/components/VideoPanel.vue @@ -1,6 +1,7 @@