fix(ui): завершить локальную приёмку администрирования
This commit is contained in:
1 parent
271291a910
commit
1a9966ec95
48 files changed
+74
-12
No files matched your search
@@ -2577,10 +2577,10 @@ function AlertsContent() {
|
||||
</span>
|
||||
</div>
|
||||
|
||||
{/* ── main layout ── */}
|
||||
<div className="grid grid-cols-1 xl:grid-cols-[minmax(0,1fr)_300px] gap-5 items-start">
|
||||
|
||||
{/* ── rules card ── */}
|
||||
</>:null}
|
||||
<div className={cn("grid gap-5 items-start",known?"grid-cols-1 xl:grid-cols-[minmax(0,1fr)_300px]":"grid-cols-1")}>
|
||||
<div className="min-w-0 flex flex-col gap-5">
|
||||
{known?<>
|
||||
<OpsPanel
|
||||
title={
|
||||
<span className="flex items-center gap-2">
|
||||
@@ -2629,14 +2629,20 @@ function AlertsContent() {
|
||||
</div>
|
||||
</OpsPanel>
|
||||
|
||||
{/* ── right sidebar ── */}
|
||||
</>:null}
|
||||
{isLive?<AlertsOutboxPanel base={backendUrl} available={backendStatus===true} operationsBusy={operationBusy} beginOperation={beginOperation} endOperation={endOperation}/>:null}
|
||||
{isLive?<AlertsTargetsStatus catalogs={catalogs}/>:null}
|
||||
</div>
|
||||
{known?
|
||||
<div className="flex flex-col gap-5">
|
||||
<AlertsTelegramForm initial={tg} tokenConfigured={tokenConfigured} base={backendUrl} live={isLive} available={backendStatus===true&&!operationBusy}
|
||||
onBegin={beginOperation} onEnd={endOperation}
|
||||
onSaved={(value,configured)=>{setTg(value);setTokenConfigured(configured)}}/>
|
||||
<HistoryCard entries={history} />
|
||||
</div>
|
||||
:null}
|
||||
</div>
|
||||
{known?<>
|
||||
{/* ── presets + groups (свёрнуто по умолчанию) ── */}
|
||||
<Collapsible open={extrasExpanded} onOpenChange={setExtrasExpanded} className="rounded-lg border border-border bg-card shadow-sm">
|
||||
<CollapsibleTrigger
|
||||
@@ -2765,8 +2771,6 @@ function AlertsContent() {
|
||||
</Collapsible>
|
||||
|
||||
</>:null}
|
||||
{isLive?<AlertsTargetsStatus catalogs={catalogs}/>:null}
|
||||
{isLive?<AlertsOutboxPanel base={backendUrl} available={backendStatus===true} operationsBusy={operationBusy} beginOperation={beginOperation} endOperation={endOperation}/>:null}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in new issue
Block a user