From 3e45bb212a3f4e9f3ef58f71439ed76d5a11de7c Mon Sep 17 00:00:00 2001 From: yangsy Date: Wed, 3 Sep 2025 14:56:33 +0800 Subject: [PATCH] refactor: reorganize device card components --- .../{ => device-card}/camera-card.vue | 13 +++++----- .../current-diag-card}/device-common-card.vue | 0 .../device-hardware-card.vue | 2 +- .../current-diag-card}/device-header-card.vue | 0 .../current-diag-card}/nvr-disk-card.vue | 2 +- .../nvr-record-diag-card.vue | 4 +-- .../security-box-circuit-card.vue} | 0 .../security-box-info-card.vue} | 0 .../current-diag-card}/switch-port-card.vue | 7 ------ .../{ => device-card}/decoder-card.vue | 17 +++++++------ .../{ => device-card}/keyboard-card.vue | 7 +++--- .../{ => device-card}/nvr-card.vue | 24 ++++++++++-------- .../{ => device-card}/security-box-card.vue | 25 ++++++++++--------- .../{ => device-card}/server-card.vue | 7 +++--- .../{ => device-card}/switch-card.vue | 17 +++++++------ 15 files changed, 64 insertions(+), 61 deletions(-) rename src/components/device-page/{ => device-card}/camera-card.vue (89%) rename src/components/device-page/{ => device-card/current-diag-card}/device-common-card.vue (100%) rename src/components/device-page/{ => device-card/current-diag-card}/device-hardware-card.vue (100%) rename src/components/device-page/{ => device-card/current-diag-card}/device-header-card.vue (100%) rename src/components/device-page/{ => device-card/current-diag-card}/nvr-disk-card.vue (100%) rename src/components/device-page/{ => device-card/current-diag-card}/nvr-record-diag-card.vue (100%) rename src/components/device-page/{box-circuit-card.vue => device-card/current-diag-card/security-box-circuit-card.vue} (100%) rename src/components/device-page/{box-info-card.vue => device-card/current-diag-card/security-box-info-card.vue} (100%) rename src/components/device-page/{ => device-card/current-diag-card}/switch-port-card.vue (99%) rename src/components/device-page/{ => device-card}/decoder-card.vue (86%) rename src/components/device-page/{ => device-card}/keyboard-card.vue (84%) rename src/components/device-page/{ => device-card}/nvr-card.vue (80%) rename src/components/device-page/{ => device-card}/security-box-card.vue (71%) rename src/components/device-page/{ => device-card}/server-card.vue (88%) rename src/components/device-page/{ => device-card}/switch-card.vue (84%) diff --git a/src/components/device-page/camera-card.vue b/src/components/device-page/device-card/camera-card.vue similarity index 89% rename from src/components/device-page/camera-card.vue rename to src/components/device-page/device-card/camera-card.vue index b03684b..d8373f6 100644 --- a/src/components/device-page/camera-card.vue +++ b/src/components/device-page/device-card/camera-card.vue @@ -1,10 +1,11 @@