#load "helpers.uce" COMPONENT(Request& context) { starter_register_js("components/gauges/common.js", context); starter_register_css("themes/common/css/gauges.css", context); String gauge_id = first(context.call["id"].to_string(), "progressbar-" + std::to_string((u64)time())); String style = context.call["style"].to_string(); String item_style = context.call["item-style"].to_string(); String label_style = context.call["label-style"].to_string(); String value_style = context.call["value-style"].to_string(); String bar_style = context.call["bar-style"].to_string(); String title = context.call["title"].to_string(); String subtitle = context.call["subtitle"].to_string(); String layout = first(context.call["layout"].to_string(), "horizontal"); String bar_color_default = context.call["bar-color"].to_string(); DTree scale = context.call["scale"]; DTree markers = context.call["markers"]; StringList default_palette; default_palette.push_back("var(--success, #10b981)"); default_palette.push_back("var(--primary, #60a5fa)"); default_palette.push_back("var(--accent, #22d3ee)"); default_palette.push_back("var(--warning, #f59e0b)"); u32 auto_color_counter = 0; <>

" style="left: %; background: ;">
px;">
" style="bottom: %; background: ;">
}