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 {
|
export interface GlobalComponents {
|
||||||
'Carbon:caretDown': typeof import('~icons/carbon/caret-down')['default']
|
'Carbon:caretDown': typeof import('~icons/carbon/caret-down')['default']
|
||||||
'Cil:checkCircle': typeof import('~icons/cil/check-circle')['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:columns': typeof import('~icons/cil/columns')['default']
|
||||||
'Cil:findInPage': typeof import('~icons/cil/find-in-page')['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']
|
ComplexLogItem: typeof import('./components/LogViewer/ComplexLogItem.vue')['default']
|
||||||
ContainerStat: typeof import('./components/LogViewer/ContainerStat.vue')['default']
|
ContainerStat: typeof import('./components/LogViewer/ContainerStat.vue')['default']
|
||||||
ContainerTitle: typeof import('./components/LogViewer/ContainerTitle.vue')['default']
|
ContainerTitle: typeof import('./components/LogViewer/ContainerTitle.vue')['default']
|
||||||
|
|||||||
@@ -1,6 +1,11 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="columns is-marginless has-text-weight-bold is-family-monospace">
|
<div class="columns is-marginless has-text-weight-bold is-family-monospace">
|
||||||
<span class="column is-ellipsis">
|
<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 }}
|
{{ container.name }}
|
||||||
<span class="tag is-dark">{{ container.image.replace(/@sha.*/, "") }}</span>
|
<span class="tag is-dark">{{ container.image.replace(/@sha.*/, "") }}</span>
|
||||||
</span>
|
</span>
|
||||||
@@ -14,4 +19,18 @@ import { type ComputedRef } from "vue";
|
|||||||
const container = inject("container") as ComputedRef<Container>;
|
const container = inject("container") as ComputedRef<Container>;
|
||||||
</script>
|
</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 }}
|
{{ item.name }}
|
||||||
</div>
|
</div>
|
||||||
<div class="is-flex-shrink-1 is-flex icons">
|
<div class="is-flex-shrink-1 is-flex icons">
|
||||||
<span
|
<div
|
||||||
class="icon is-small pin"
|
class="icon is-small pin"
|
||||||
@click.stop.prevent="store.appendActiveContainer(item)"
|
@click.stop.prevent="store.appendActiveContainer(item)"
|
||||||
v-show="!activeContainersById[item.id]"
|
v-show="!activeContainersById[item.id]"
|
||||||
:title="$t('tooltip.pin-column')"
|
:title="$t('tooltip.pin-column')"
|
||||||
>
|
>
|
||||||
<cil:columns />
|
<cil:columns />
|
||||||
</span>
|
</div>
|
||||||
|
|
||||||
<span class="icon is-small health" :health="item.health" v-if="item.health">
|
<div class="icon is-small health" :health="item.health" v-if="item.health" :title="item.health">
|
||||||
<cil:check-circle />
|
<cil:check-circle v-if="item.health == 'healthy'" />
|
||||||
</span>
|
<cil:x-circle v-else-if="item.health == 'unhealthy'" />
|
||||||
|
<cil:circle v-else />
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</router-link>
|
</router-link>
|
||||||
@@ -142,7 +144,10 @@ li.exited a {
|
|||||||
color: var(--green-color);
|
color: var(--green-color);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
.icons {
|
||||||
|
column-gap: 0.35em;
|
||||||
|
align-items: baseline;
|
||||||
|
}
|
||||||
a {
|
a {
|
||||||
.pin {
|
.pin {
|
||||||
display: none;
|
display: none;
|
||||||
@@ -156,10 +161,6 @@ a {
|
|||||||
.pin {
|
.pin {
|
||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
|
|
||||||
.health {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
Reference in New Issue
Block a user