Add archive helpers and harden task runtime

This commit is contained in:
udo
2026-05-21 00:00:23 +00:00
parent 9f7625c7fd
commit 02e153a6a7
71 changed files with 12817 additions and 305 deletions
+1 -4
View File
@@ -1,7 +1,4 @@
#load "../../lib/app.uce"
COMPONENT(Request& context)
{
starter_boot(context);
print(starter_page_main_html(context));
print(component("page_helpers.uce:MAIN_HTML", context.props, context));
}
+3 -4
View File
@@ -1,12 +1,11 @@
#load "../../lib/app.uce"
COMPONENT(Request& context)
{
starter_boot(context);
context.header["Content-Type"] = "application/json";
context.header["Cache-Control"] = "no-cache, no-store, must-revalidate";
if(context.props["json"].get_type_name() == "array")
print(json_encode(context.props["json"]));
else if(context.call["info"]["json"].get_type_name() == "array")
print(json_encode(context.call["info"]["json"]));
else
print(starter_page_main_html(context));
print(component("page_helpers.uce:MAIN_HTML", context.props, context));
}
+9
View File
@@ -0,0 +1,9 @@
COMPONENT:MAIN_HTML(Request& context)
{
String main_html = context.props["main_html"].to_string();
if(main_html == "")
main_html = context.props["main"].to_string();
if(main_html == "")
main_html = context.call["info"]["fragments"]["main"].to_string();
print(main_html);
}