feat: Add WebSocket and background update functionality to ASNs, Domains, and IPRanges managers; integrate WsUpdateModal for real-time updates
Publish Fast Tabler Docker image / build-and-push-fast (push) Successful in 5m33s

This commit is contained in:
2025-08-12 22:33:57 +07:00
parent 79038a3981
commit 459b02f756
6 changed files with 155 additions and 27 deletions
+15 -1
View File
@@ -3,7 +3,9 @@ import {
IconRefresh,
IconUpload,
IconDownload,
IconDeviceFloppy
IconDeviceFloppy,
IconPlayerPlay,
IconBolt
} from '@tabler/icons-react';
function PageHeaderActions({
@@ -20,9 +22,21 @@ function PageHeaderActions({
onSave,
disableSave = false,
onHistory,
onOnlineUpdate,
onBackgroundUpdate,
}) {
return (
<div className="btn-list">
{onOnlineUpdate && (
<button className="btn btn-outline-warning" onClick={onOnlineUpdate} title="Online-обновление BGP (WebSocket)">
<IconBolt className="me-1" /> Online-обновление
</button>
)}
{onBackgroundUpdate && (
<button className="btn btn-outline-success" onClick={onBackgroundUpdate} title="Фоновое обновление BGP (POST)">
<IconPlayerPlay className="me-1" /> Фоновое обновление
</button>
)}
{onPreview && (
<button className="btn btn-outline-secondary" onClick={onPreview} disabled={disablePreview} title="Предпросмотр изменений">
<IconEye className="me-1" /> Предпросмотр