mirror of
https://github.com/amir20/dozzle.git
synced 2025-12-21 13:23:07 +01:00
* Adds asset changes for i18n * Adds asset changes for i18n * Adds vite configs * Adds auto import and cleans up props * Initital localzation * Fixes dockerfile * Fixes tests * Updates fixutres * Updates default lang
34 lines
988 B
Vue
34 lines
988 B
Vue
<template>
|
|
<div class="is-size-7 is-uppercase columns is-marginless is-mobile" v-if="container.stat">
|
|
<div class="column is-narrow has-text-weight-bold">
|
|
{{ container.state }}
|
|
</div>
|
|
<div class="column is-narrow" v-if="container.stat.memoryUsage !== null">
|
|
<span class="has-text-weight-light has-spacer">mem</span>
|
|
<span class="has-text-weight-bold">
|
|
{{ formatBytes(container.stat.memoryUsage) }}
|
|
</span>
|
|
</div>
|
|
|
|
<div class="column is-narrow" v-if="container.stat.cpu !== null">
|
|
<span class="has-text-weight-light has-spacer">load</span>
|
|
<span class="has-text-weight-bold"> {{ container.stat.cpu }}% </span>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
|
|
<script lang="ts" setup>
|
|
import { type Container } from "@/types/Container";
|
|
import { type ComputedRef } from "vue";
|
|
|
|
const container = inject("container") as ComputedRef<Container>;
|
|
</script>
|
|
|
|
<style lang="scss" scoped>
|
|
.has-spacer {
|
|
&::after {
|
|
content: " ";
|
|
}
|
|
}
|
|
</style>
|