feat(workflow): example stats page with embedded Chart.js, inline form validation errors

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-24 01:59:27 +02:00
co-authored by Claude Sonnet 5.5
parent 16a0bb0de4
commit 00af65613d
36 changed files with 1274 additions and 138 deletions
+5
View File
@@ -47,6 +47,11 @@ double Metrics::get(const std::string& name) const {
return it == values_.end() ? 0.0 : it->second;
}
std::map<std::string, double> Metrics::snapshot() const {
std::lock_guard<std::mutex> lock(mu_);
return values_;
}
std::string Metrics::render_prometheus() const {
std::lock_guard<std::mutex> lock(mu_);
std::string out;