v0.42.3
This commit is contained in:
1 parent
bfbeedfad7
commit
385db5dfcf
35 files changed
+1131
-5065
No files matched your search
@@ -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)),
|
||||
|
||||
Reference in new issue
Block a user