71cddd6a91
Manage Telegram instances through Kubernetes with legacy adoption for forust and anna. Build and deploy the panel image alongside the runtime.
18 lines
434 B
Svelte
18 lines
434 B
Svelte
<script lang="ts">
|
|
import type { InstanceStatus } from '../lib/types';
|
|
|
|
export let status: InstanceStatus;
|
|
|
|
const labels: Record<InstanceStatus, string> = {
|
|
running: 'Работает',
|
|
stopped: 'Остановлен',
|
|
pending: 'Запускается',
|
|
error: 'Ошибка',
|
|
};
|
|
</script>
|
|
|
|
<span class="status status-{status}">
|
|
<span class="status-dot" aria-hidden="true"></span>
|
|
{labels[status]}
|
|
</span>
|