From 979bf1b431a85d408f2ad1c338695baf406e0f40 Mon Sep 17 00:00:00 2001 From: dap <15891557205@163.com> Date: Thu, 14 Nov 2024 15:09:09 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E6=9B=B4=E6=94=B9=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../cache/components/{CommandChart.vue => command-chart.vue} | 0 apps/web-antd/src/views/monitor/cache/components/index.ts | 3 +++ .../cache/components/{MemoryChart.vue => memory-chart.vue} | 0 .../{RedisDescription.vue => redis-description.vue} | 0 apps/web-antd/src/views/monitor/cache/index.vue | 4 +--- 5 files changed, 4 insertions(+), 3 deletions(-) rename apps/web-antd/src/views/monitor/cache/components/{CommandChart.vue => command-chart.vue} (100%) create mode 100644 apps/web-antd/src/views/monitor/cache/components/index.ts rename apps/web-antd/src/views/monitor/cache/components/{MemoryChart.vue => memory-chart.vue} (100%) rename apps/web-antd/src/views/monitor/cache/components/{RedisDescription.vue => redis-description.vue} (100%) diff --git a/apps/web-antd/src/views/monitor/cache/components/CommandChart.vue b/apps/web-antd/src/views/monitor/cache/components/command-chart.vue similarity index 100% rename from apps/web-antd/src/views/monitor/cache/components/CommandChart.vue rename to apps/web-antd/src/views/monitor/cache/components/command-chart.vue diff --git a/apps/web-antd/src/views/monitor/cache/components/index.ts b/apps/web-antd/src/views/monitor/cache/components/index.ts new file mode 100644 index 00000000..1978212c --- /dev/null +++ b/apps/web-antd/src/views/monitor/cache/components/index.ts @@ -0,0 +1,3 @@ +export { default as CommandChart } from './command-chart.vue'; +export { default as MemoryChart } from './memory-chart.vue'; +export { default as RedisDescription } from './redis-description.vue'; diff --git a/apps/web-antd/src/views/monitor/cache/components/MemoryChart.vue b/apps/web-antd/src/views/monitor/cache/components/memory-chart.vue similarity index 100% rename from apps/web-antd/src/views/monitor/cache/components/MemoryChart.vue rename to apps/web-antd/src/views/monitor/cache/components/memory-chart.vue diff --git a/apps/web-antd/src/views/monitor/cache/components/RedisDescription.vue b/apps/web-antd/src/views/monitor/cache/components/redis-description.vue similarity index 100% rename from apps/web-antd/src/views/monitor/cache/components/RedisDescription.vue rename to apps/web-antd/src/views/monitor/cache/components/redis-description.vue diff --git a/apps/web-antd/src/views/monitor/cache/index.vue b/apps/web-antd/src/views/monitor/cache/index.vue index 43bf13f5..7b892ca8 100644 --- a/apps/web-antd/src/views/monitor/cache/index.vue +++ b/apps/web-antd/src/views/monitor/cache/index.vue @@ -8,9 +8,7 @@ import { Button, Card, Col, Row } from 'ant-design-vue'; import { redisCacheInfo, type RedisInfo } from '#/api/monitor/cache'; -import CommandChart from './components/CommandChart.vue'; -import MemoryChart from './components/MemoryChart.vue'; -import RedisDescription from './components/RedisDescription.vue'; +import { CommandChart, MemoryChart, RedisDescription } from './components'; const baseSpan = { lg: 12, md: 24, sm: 24, xl: 12, xs: 24 };