This commit is contained in:
Mateusz Gruszczyński committed 2026-11-26 17:28:30 +01:00
1 parent bfbeedfad7
commit 385db5dfcf
35 files changed
+1131 -5065

No files matched your search

+4
View File
@@ -88,6 +88,8 @@ pub enum Kind {
Html,
Builtin,
Cloudflare,
CloudflareWelcome,
CloudflarePlaceholder,
}
#[derive(Debug, Clone, Default, Serialize, Deserialize)]
#[serde(default, deny_unknown_fields)]
@@ -183,6 +185,8 @@ impl Page {
Kind::Html => self.html.clone(),
Kind::Welcome => include_str!("../admin/web/demo.html").to_owned(),
Kind::Builtin => builtin_application_page(status),
Kind::CloudflareWelcome => include_str!("../admin/web/cf_page/welcome.html").to_owned(),
Kind::CloudflarePlaceholder => include_str!("../admin/web/cf_page/placeholder.html").to_owned(),
Kind::Cloudflare => cloudflare_style_page(status)
.map(str::to_owned)
.unwrap_or_else(|| builtin_application_page(status)),