1
0
mirror of https://github.com/amir20/dozzle.git synced 2025-12-30 17:47:28 +01:00

chore(refactor): creates new popup component for containers

This commit is contained in:
Amir Raminfar
2023-04-27 12:31:12 -07:00
parent 6076c4eb63
commit 2dbbe47c5c
2 changed files with 3 additions and 14 deletions

View File

@@ -18,8 +18,10 @@ declare module '@vue/runtime-core' {
'Cil:xCircle': typeof import('~icons/cil/x-circle')['default']
ComplexLogItem: typeof import('./components/LogViewer/ComplexLogItem.vue')['default']
ContainerHealth: typeof import('./components/LogViewer/ContainerHealth.vue')['default']
ContainerPopup: typeof import('./components/LogViewer/ContainerPopup.vue')['default']
ContainerStat: typeof import('./components/LogViewer/ContainerStat.vue')['default']
ContainerTitle: typeof import('./components/LogViewer/ContainerTitle.vue')['default']
copy: typeof import('./components/LogViewer/ContainerStat copy.vue')['default']
DateTime: typeof import('./components/DateTime.vue')['default']
DistanceTime: typeof import('./components/DistanceTime.vue')['default']
DockerEventLogItem: typeof import('./components/LogViewer/DockerEventLogItem.vue')['default']

View File

@@ -83,20 +83,7 @@
</div>
</router-link>
<template #content>
<div>
<span class="has-text-weight-light"> RUNNING </span>
<span class="has-text-weight-semibold">
<distance-time :date="item.created" strict :suffix="false"></distance-time>
</span>
</div>
<div>
<span class="has-text-weight-light"> LOAD </span>
<span class="has-text-weight-semibold"> {{ item.getLastStat().snapshot.cpu }}% </span>
</div>
<div>
<span class="has-text-weight-light"> MEM </span>
<span class="has-text-weight-semibold"> {{ formatBytes(item.getLastStat().snapshot.memoryUsage) }} </span>
</div>
<container-popup :container="item"></container-popup>
</template>
</popup>
</li>