mirror of
https://github.com/amir20/dozzle.git
synced 2025-12-24 06:28:42 +01:00
@@ -1,6 +1,11 @@
|
||||
<template>
|
||||
<div class="columns is-marginless has-text-weight-bold is-family-monospace">
|
||||
<span class="column is-ellipsis">
|
||||
<span class="icon is-small health" :health="container.health" v-if="container.health" :title="container.health">
|
||||
<cil:check-circle v-if="container.health == 'healthy'" />
|
||||
<cil:x-circle v-else-if="container.health == 'unhealthy'" />
|
||||
<cil:circle v-else />
|
||||
</span>
|
||||
{{ container.name }}
|
||||
<span class="tag is-dark">{{ container.image.replace(/@sha.*/, "") }}</span>
|
||||
</span>
|
||||
@@ -14,4 +19,18 @@ import { type ComputedRef } from "vue";
|
||||
const container = inject("container") as ComputedRef<Container>;
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped></style>
|
||||
<style lang="scss" scoped>
|
||||
.icon {
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
.health {
|
||||
&[health="unhealthy"] {
|
||||
color: var(--red-color);
|
||||
}
|
||||
|
||||
&[health="healthy"] {
|
||||
color: var(--green-color);
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user