mirror of
https://github.com/hansjone/netx.git
synced 2026-10-09 02:00:46 +08:00
Fix NE connect detail crash and dark pre text contrast.
This commit is contained in:
parent
af29977878
commit
a5d88f8a24
2 changed files with 10 additions and 1 deletions
|
|
@ -557,7 +557,8 @@ th {
|
|||
pre {
|
||||
white-space: pre-wrap;
|
||||
margin: 0;
|
||||
background: #091425;
|
||||
background: #0f172a;
|
||||
color: #e2e8f0;
|
||||
border: 1px solid #223651;
|
||||
border-radius: 8px;
|
||||
padding: 10px;
|
||||
|
|
|
|||
|
|
@ -140,6 +140,14 @@ function connectStatusClass(status: string): string {
|
|||
return "pt-list-status--unknown";
|
||||
}
|
||||
|
||||
function connectPillLevel(status: string): "up" | "down" | "unknown" | "warn" {
|
||||
const s = String(status || "").toLowerCase();
|
||||
if (s === "pass" || s === "ok") return "up";
|
||||
if (s === "fail" || s === "error") return "down";
|
||||
if (s === "testing") return "warn";
|
||||
return "unknown";
|
||||
}
|
||||
|
||||
export function NePage() {
|
||||
const { t } = useI18n();
|
||||
const { showOk, showError } = useToast();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue