diff --git a/frontend/src/components/card-with-header/index.vue b/frontend/src/components/card-with-header/index.vue index eb7c87319..46169fe56 100644 --- a/frontend/src/components/card-with-header/index.vue +++ b/frontend/src/components/card-with-header/index.vue @@ -1,9 +1,14 @@ - - - {{ header }} - + + + + {{ header }} + + + + + @@ -17,13 +22,26 @@ defineProps({ diff --git a/frontend/src/views/home/app/index.vue b/frontend/src/views/home/app/index.vue index efef1ee01..8c07f4b24 100644 --- a/frontend/src/views/home/app/index.vue +++ b/frontend/src/views/home/app/index.vue @@ -1,140 +1,52 @@ - - - - - - - Halo - - {{ $t('app.install') }} - - - {{ $t('home.haloInfo') }} - - - - - - - - - - - Dataease - - {{ $t('app.install') }} - - - {{ $t('home.deInfo') }} - - - - - - - - - - - JumpServer - - {{ $t('app.install') }} - - - {{ $t('home.jsInfo') }} - - - - - - - - - - - MeterSphere - - {{ $t('app.install') }} - - - {{ $t('home.msInfo') }} - - - - - - - - - - - KubeOperator - - {{ $t('app.install') }} - - - {{ $t('home.koInfo') }} - - - - - - - - - - - KubePi - - {{ $t('app.install') }} - - - {{ $t('home.kubepiInfo') }} - - - - + + + + + + + + + + + + {{ app.name }} + + + + {{ app.shortDesc }} + + + + + + + {{ $t('app.install') }} + + + + + + - diff --git a/frontend/src/views/home/index.vue b/frontend/src/views/home/index.vue index a5592f883..ba2e7b08a 100644 --- a/frontend/src/views/home/index.vue +++ b/frontend/src/views/home/index.vue @@ -10,52 +10,48 @@ /> - + - - - - {{ $t('menu.website') }} - - - {{ baseInfo?.websiteNumber }} - + + + + {{ $t('menu.website') }} + + {{ baseInfo?.websiteNumber }} - - {{ $t('menu.database') }} - - - {{ baseInfo?.databaseNumber }} - + + {{ $t('menu.database') }} + + {{ baseInfo?.databaseNumber }} - - {{ $t('menu.cronjob') }} - - + + {{ $t('menu.cronjob') }} + + {{ baseInfo?.cronjobNumber }} - + - - {{ $t('home.appInstalled') }} - - + + {{ $t('home.appInstalled') }} + + {{ baseInfo?.appInstalldNumber }} - + - + - + - + - + {{ $t('monitor.up') }}: {{ currentChartInfo.netBytesSent }} KB/s - - {{ $t('monitor.down') }}: {{ currentChartInfo.netBytesRecv }} KB/s - - - {{ $t('home.totalSend') }}: {{ computeSize(currentInfo.netBytesSent) }} - - - {{ $t('home.totalRecv') }}: {{ computeSize(currentInfo.netBytesRecv) }} - + {{ $t('monitor.down') }}: {{ currentChartInfo.netBytesRecv }} KB/s + {{ $t('home.totalSend') }}: {{ computeSize(currentInfo.netBytesSent) }} + {{ $t('home.totalRecv') }}: {{ computeSize(currentInfo.netBytesRecv) }} - + {{ $t('monitor.read') }}: {{ currentChartInfo.ioReadBytes }} MB - - {{ $t('monitor.write') }}: {{ currentChartInfo.ioWriteBytes }} MB - - + {{ $t('monitor.write') }}: {{ currentChartInfo.ioWriteBytes }} MB + {{ $t('home.rwPerSecond') }}: {{ currentChartInfo.ioCount }} {{ $t('home.time') }} - - {{ $t('home.rwPerSecond') }}: {{ currentInfo.ioTime }} ms - + {{ $t('home.rwPerSecond') }}: {{ currentInfo.ioTime }} ms - + - - + + + + + {{ $t('home.hostname') }} + + {{ baseInfo.hostname }} - - + + + + + {{ $t('home.platformVersion') }} + + {{ baseInfo.platform }}-{{ baseInfo.platformVersion }} - - + + + + + {{ $t('home.kernelVersion') }} + + {{ baseInfo.kernelVersion }} - - {{ baseInfo.kernelArch }} - {{ currentInfo.timeSinceUptime }} - + + + + + {{ $t('home.kernelArch') }} + + + {{ baseInfo.kernelArch }} + + + + + {{ $t('home.uptime') }} + + + {{ currentInfo.timeSinceUptime }} + + + + + {{ $t('home.runningTime') }} + + {{ loadUpTime(currentInfo.uptime) }} - - + + - + @@ -546,10 +566,54 @@ onBeforeUnmount(() => { }); -