feat(instances): command palette, unified nav, расширенное меню инстанса и правки табов
All checks were successful
Deploy to Production / Trigger production update (push) Successful in 8s
All checks were successful
Deploy to Production / Trigger production update (push) Successful in 8s
- Командная палитра (Ctrl+K) с общим реестром nav-items и его store - Новые общие UI-примитивы: alert, breadcrumb, checkbox, progress, switch, textarea - Меню инстанса: добавлены «Параметры», «Мигрировать», «Изменить ресурсы», «Создать резервную копию» (новый BackupDialog) и «Удалить»; исправлено закрытие меню при живом обновлении списка (стабильные columns + getRowId) - Вкладки инстанса: «Вычислительные ресурсы», «Опции CPU», «Управление дисками» и «Изменение размера диска» перенесены с «Настройки» на «Оборудование» для VM (для LXC, у которых нет вкладки «Оборудование», ресурсы и ресайз диска остаются в «Настройках»); общие карточки вынесены в ResourceCards.tsx - Локализация: новые ключи ru/en для добавленных пунктов меню и бэкапа Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
This commit is contained in:
@@ -9,6 +9,7 @@ import {
|
||||
DialogFooter,
|
||||
} from '@/components/ui/dialog';
|
||||
import { Button } from '@/components/ui/button';
|
||||
import { Checkbox } from '@/components/ui/checkbox';
|
||||
import { Input } from '@/components/ui/input';
|
||||
import { Label } from '@/components/ui/label';
|
||||
import {
|
||||
@@ -171,7 +172,7 @@ export default function DownloadImageDialog({ open, onClose, serverId, node, ima
|
||||
|
||||
{isQcow2 && (
|
||||
<label className="flex items-center gap-2 text-sm">
|
||||
<input type="checkbox" checked={toTemplate} onChange={(e) => setToTemplate(e.target.checked)} />
|
||||
<Checkbox checked={toTemplate} onChange={(e) => setToTemplate(e.target.checked)} />
|
||||
<span>Сделать VM-шаблоном после загрузки (импорт диска + cloud-init)</span>
|
||||
</label>
|
||||
)}
|
||||
|
||||
@@ -2,6 +2,7 @@ import { useEffect, useState } from 'react';
|
||||
import { Plus, Pencil, Trash2, Loader2 } from 'lucide-react';
|
||||
import { Card, CardContent } from '@/components/ui/card';
|
||||
import { Button } from '@/components/ui/button';
|
||||
import { Checkbox } from '@/components/ui/checkbox';
|
||||
import { Input } from '@/components/ui/input';
|
||||
import { Label } from '@/components/ui/label';
|
||||
import { Badge } from '@/components/ui/badge';
|
||||
@@ -165,7 +166,7 @@ function MirrorFormDialog({
|
||||
<Input id="m-desc" value={form.description} onChange={(e) => set('description', e.target.value)} />
|
||||
</div>
|
||||
<label className="flex items-center gap-2 text-sm">
|
||||
<input type="checkbox" checked={form.enabled} onChange={(e) => set('enabled', e.target.checked)} />
|
||||
<Checkbox checked={form.enabled} onChange={(e) => set('enabled', e.target.checked)} />
|
||||
<span>Включено (показывать в каталоге)</span>
|
||||
</label>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user