mirror of
https://github.com/openclaw/openclaw.git
synced 2026-02-19 18:39:20 -05:00
style: format gateway health state and ui render
This commit is contained in:
@@ -2,8 +2,8 @@ import { resolveDefaultAgentId } from "../../agents/agent-scope.js";
|
||||
import { getHealthSnapshot, type HealthSummary } from "../../commands/health.js";
|
||||
import { CONFIG_PATH, STATE_DIR, loadConfig } from "../../config/config.js";
|
||||
import { resolveMainSessionKey } from "../../config/sessions.js";
|
||||
import { getUpdateAvailable } from "../../infra/update-startup.js";
|
||||
import { listSystemPresence } from "../../infra/system-presence.js";
|
||||
import { getUpdateAvailable } from "../../infra/update-startup.js";
|
||||
import { normalizeMainKey } from "../../routing/session-key.js";
|
||||
import { resolveGatewayAuth } from "../auth.js";
|
||||
import type { Snapshot } from "../protocol/index.js";
|
||||
|
||||
@@ -188,8 +188,9 @@ export function renderApp(state: AppViewState) {
|
||||
</div>
|
||||
</aside>
|
||||
<main class="content ${isChat ? "content--chat" : ""}">
|
||||
${state.updateAvailable
|
||||
? html`<div class="update-banner callout danger" role="alert">
|
||||
${
|
||||
state.updateAvailable
|
||||
? html`<div class="update-banner callout danger" role="alert">
|
||||
<strong>Update available:</strong> v${state.updateAvailable.latestVersion}
|
||||
(running v${state.updateAvailable.currentVersion}).
|
||||
<button
|
||||
@@ -198,7 +199,8 @@ export function renderApp(state: AppViewState) {
|
||||
@click=${() => runUpdate(state)}
|
||||
>${state.updateRunning ? "Updating…" : "Update now"}</button>
|
||||
</div>`
|
||||
: nothing}
|
||||
: nothing
|
||||
}
|
||||
<section class="content-header">
|
||||
<div>
|
||||
${state.tab === "usage" ? nothing : html`<div class="page-title">${titleForTab(state.tab)}</div>`}
|
||||
|
||||
Reference in New Issue
Block a user