mirror of
https://github.com/amir20/dozzle.git
synced 2025-12-21 21:33:18 +01:00
2
assets/components.d.ts
vendored
2
assets/components.d.ts
vendored
@@ -11,8 +11,10 @@ declare module '@vue/runtime-core' {
|
||||
export interface GlobalComponents {
|
||||
'Carbon:caretDown': typeof import('~icons/carbon/caret-down')['default']
|
||||
'Cil:checkCircle': typeof import('~icons/cil/check-circle')['default']
|
||||
'Cil:circle': typeof import('~icons/cil/circle')['default']
|
||||
'Cil:columns': typeof import('~icons/cil/columns')['default']
|
||||
'Cil:findInPage': typeof import('~icons/cil/find-in-page')['default']
|
||||
'Cil:xCircle': typeof import('~icons/cil/x-circle')['default']
|
||||
ComplexLogItem: typeof import('./components/LogViewer/ComplexLogItem.vue')['default']
|
||||
ContainerStat: typeof import('./components/LogViewer/ContainerStat.vue')['default']
|
||||
ContainerTitle: typeof import('./components/LogViewer/ContainerTitle.vue')['default']
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -67,18 +67,20 @@
|
||||
{{ item.name }}
|
||||
</div>
|
||||
<div class="is-flex-shrink-1 is-flex icons">
|
||||
<span
|
||||
<div
|
||||
class="icon is-small pin"
|
||||
@click.stop.prevent="store.appendActiveContainer(item)"
|
||||
v-show="!activeContainersById[item.id]"
|
||||
:title="$t('tooltip.pin-column')"
|
||||
>
|
||||
<cil:columns />
|
||||
</span>
|
||||
</div>
|
||||
|
||||
<span class="icon is-small health" :health="item.health" v-if="item.health">
|
||||
<cil:check-circle />
|
||||
</span>
|
||||
<div class="icon is-small health" :health="item.health" v-if="item.health" :title="item.health">
|
||||
<cil:check-circle v-if="item.health == 'healthy'" />
|
||||
<cil:x-circle v-else-if="item.health == 'unhealthy'" />
|
||||
<cil:circle v-else />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</router-link>
|
||||
@@ -142,7 +144,10 @@ li.exited a {
|
||||
color: var(--green-color);
|
||||
}
|
||||
}
|
||||
|
||||
.icons {
|
||||
column-gap: 0.35em;
|
||||
align-items: baseline;
|
||||
}
|
||||
a {
|
||||
.pin {
|
||||
display: none;
|
||||
@@ -156,10 +161,6 @@ a {
|
||||
.pin {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.health {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user