feat(gui): implement polished vanilla dashboard with CVSS severity palette and SVG charts
This commit is contained in:
1 parent
3e41c169d0
commit
bc72dbffbd
8 files changed
+2833
-64
No files matched your search
@@ -189,12 +189,41 @@ alvos = ["127.0.0.1/32"]
|
||||
"changes events: {body}"
|
||||
);
|
||||
|
||||
// 10. Verify / and /dashboard return HTML
|
||||
// 10. Verify / and /dashboard return HTML, and static assets are served
|
||||
let (status, body) = http_get(&server_addr, "/");
|
||||
assert_eq!(status, 200);
|
||||
assert!(body.contains("Xexéu"), "dashboard html: {body}");
|
||||
assert!(body.contains("app.css"), "dashboard html links css: {body}");
|
||||
|
||||
let (status, body) = http_get(&server_addr, "/dashboard");
|
||||
assert_eq!(status, 200);
|
||||
assert!(body.contains("Xexéu"), "dashboard html: {body}");
|
||||
|
||||
let (status, body) = http_get(&server_addr, "/app.css");
|
||||
assert_eq!(status, 200);
|
||||
assert!(
|
||||
body.contains("--sev-critical"),
|
||||
"app.css contains severity tokens"
|
||||
);
|
||||
|
||||
let (status, body) = http_get(&server_addr, "/app.js");
|
||||
assert_eq!(status, 200);
|
||||
assert!(
|
||||
body.contains("renderSeverityChart"),
|
||||
"app.js contains chart logic"
|
||||
);
|
||||
|
||||
let (status, body) = http_get(&server_addr, "/i18n.js");
|
||||
assert_eq!(status, 200);
|
||||
assert!(
|
||||
body.contains("export function tr"),
|
||||
"i18n.js contains tr function"
|
||||
);
|
||||
|
||||
let (status, body) = http_get(&server_addr, "/i18n-en.js");
|
||||
assert_eq!(status, 200);
|
||||
assert!(
|
||||
body.contains("export const EN"),
|
||||
"i18n-en.js contains dictionary"
|
||||
);
|
||||
}
|
||||
Reference in new issue
Block a user