feat(userbot): add Kubernetes control panel
Manage Telegram instances through Kubernetes with legacy adoption for forust and anna. Build and deploy the panel image alongside the runtime.
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
<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>
|
||||
Reference in New Issue
Block a user