Deploying to gh-pages from @ f4b454a8782baa86d1692297ca27803017b50967 🚀

This commit is contained in:
realaravinth
2023-07-04 13:48:18 +00:00
parent b8d2d0ef37
commit 1cfed10e43
415 changed files with 1906 additions and 5347 deletions

View File

@@ -1,4 +1,4 @@
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Source of the Rust file `/home/runner/work/mCaptcha/mCaptcha/target/debug/build/sailfish-compiler-a08f82bb5f15d474/out/templates/advance-0d54b688620d9fd0`."><title>advance-0d54b688620d9fd0 - source</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../../../../../../../../../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../../../../../../../../../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../../../../../../../../../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../../../../../../../../../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../../../../../../../../../../static.files/SourceSerif4-Bold-a2c9cd1067f8b328.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../../../../../../../../../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2"><link rel="stylesheet" href="../../../../../../../../../../../../../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../../../../../../../../../../../../../static.files/rustdoc-ba5701c5741a7b69.css" id="mainThemeStyle"><div id="rustdoc-vars" data-root-path="../../../../../../../../../../../../../" data-static-root-path="../../../../../../../../../../../../../static.files/" data-current-crate="mcaptcha" data-themes="" data-resource-suffix="" data-rustdoc-version="1.70.0 (90c541806 2023-05-31)" data-search-js="search-e077946657036a58.js" data-settings-js="settings-298e1ea74db45b39.js" data-settings-css="settings-7bfb4c59cc6bc502.css" data-theme-light-css="light-0f8c037637f9eb3e.css" data-theme-dark-css="dark-1097f8e92a01e3cf.css" data-theme-ayu-css="ayu-614652228113ac93.css" ></div><script src="../../../../../../../../../../../../../static.files/storage-62ce34ea385b278a.js"></script><script defer src="../../../../../../../../../../../../../static.files/source-script-905937fbbdc8e9ea.js"></script><script defer src="../../../../../../../../../../../../../source-files.js"></script><script defer src="../../../../../../../../../../../../../static.files/main-f61008743c98d196.js"></script><noscript><link rel="stylesheet" media="(prefers-color-scheme:light)" href="../../../../../../../../../../../../../static.files/light-0f8c037637f9eb3e.css"><link rel="stylesheet" media="(prefers-color-scheme:dark)" href="../../../../../../../../../../../../../static.files/dark-1097f8e92a01e3cf.css"><link rel="stylesheet" href="../../../../../../../../../../../../../static.files/noscript-13285aec31fa243e.css"></noscript><link rel="alternate icon" type="image/png" href="../../../../../../../../../../../../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link rel="alternate icon" type="image/png" href="../../../../../../../../../../../../../static.files/favicon-32x32-422f7d1d52889060.png"><link rel="icon" type="image/svg+xml" href="../../../../../../../../../../../../../static.files/favicon-2c020d218678b618.svg"></head><body class="rustdoc source"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"></nav><main><nav class="sub"><a class="sub-logo-container" href="../../../../../../../../../../../../../mcaptcha/index.html"><img class="rust-logo" src="../../../../../../../../../../../../../static.files/rust-logo-151179464ae7ed46.svg" alt="logo"></a><form class="search-form"><span></span><input class="search-input" name="search" aria-label="Run search in the documentation" autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"><div id="help-button" title="help" tabindex="-1"><a href="../../../../../../../../../../../../../help.html">?</a></div><div id="settings-menu" tabindex="-1"><a href="../../../../../../../../../../../../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../../../../../../../../../../../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section id="main-content" class="content"><div class="example-wrap"><div data-nosnippet><pre class="src-line-numbers"><a href="#1" id="1">1</a>
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Source of the Rust file `/home/runner/work/mCaptcha/mCaptcha/target/debug/build/sailfish-compiler-dd74b18f3fecf4f7/out/templates/advance-0d54b688620d9fd0`."><title>advance-0d54b688620d9fd0 - source</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../../../../../../../../../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../../../../../../../../../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../../../../../../../../../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../../../../../../../../../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../../../../../../../../../../static.files/SourceSerif4-Bold-a2c9cd1067f8b328.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../../../../../../../../../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2"><link rel="stylesheet" href="../../../../../../../../../../../../../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../../../../../../../../../../../../../static.files/rustdoc-ba5701c5741a7b69.css" id="mainThemeStyle"><div id="rustdoc-vars" data-root-path="../../../../../../../../../../../../../" data-static-root-path="../../../../../../../../../../../../../static.files/" data-current-crate="mcaptcha" data-themes="" data-resource-suffix="" data-rustdoc-version="1.70.0 (90c541806 2023-05-31)" data-search-js="search-e077946657036a58.js" data-settings-js="settings-298e1ea74db45b39.js" data-settings-css="settings-7bfb4c59cc6bc502.css" data-theme-light-css="light-0f8c037637f9eb3e.css" data-theme-dark-css="dark-1097f8e92a01e3cf.css" data-theme-ayu-css="ayu-614652228113ac93.css" ></div><script src="../../../../../../../../../../../../../static.files/storage-62ce34ea385b278a.js"></script><script defer src="../../../../../../../../../../../../../static.files/source-script-905937fbbdc8e9ea.js"></script><script defer src="../../../../../../../../../../../../../source-files.js"></script><script defer src="../../../../../../../../../../../../../static.files/main-f61008743c98d196.js"></script><noscript><link rel="stylesheet" media="(prefers-color-scheme:light)" href="../../../../../../../../../../../../../static.files/light-0f8c037637f9eb3e.css"><link rel="stylesheet" media="(prefers-color-scheme:dark)" href="../../../../../../../../../../../../../static.files/dark-1097f8e92a01e3cf.css"><link rel="stylesheet" href="../../../../../../../../../../../../../static.files/noscript-13285aec31fa243e.css"></noscript><link rel="alternate icon" type="image/png" href="../../../../../../../../../../../../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link rel="alternate icon" type="image/png" href="../../../../../../../../../../../../../static.files/favicon-32x32-422f7d1d52889060.png"><link rel="icon" type="image/svg+xml" href="../../../../../../../../../../../../../static.files/favicon-2c020d218678b618.svg"></head><body class="rustdoc source"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"></nav><main><nav class="sub"><a class="sub-logo-container" href="../../../../../../../../../../../../../mcaptcha/index.html"><img class="rust-logo" src="../../../../../../../../../../../../../static.files/rust-logo-151179464ae7ed46.svg" alt="logo"></a><form class="search-form"><span></span><input class="search-input" name="search" aria-label="Run search in the documentation" autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"><div id="help-button" title="help" tabindex="-1"><a href="../../../../../../../../../../../../../help.html">?</a></div><div id="settings-menu" tabindex="-1"><a href="../../../../../../../../../../../../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../../../../../../../../../../../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section id="main-content" class="content"><div class="example-wrap"><div data-nosnippet><pre class="src-line-numbers"><a href="#1" id="1">1</a>
<a href="#2" id="2">2</a>
<a href="#3" id="3">3</a>
<a href="#4" id="4">4</a>
@@ -341,8 +341,6 @@
<a href="#341" id="341">341</a>
<a href="#342" id="342">342</a>
<a href="#343" id="343">343</a>
<a href="#344" id="344">344</a>
<a href="#345" id="345">345</a>
</pre></div><pre class="rust"><code>{
__sf_rt :: render_text ! (__sf_buf , <span class="string">&quot;&lt;!--\nSPDX-FileCopyrightText: 2023 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;\nSPDX-License-Identifier: AGPL-3.0-or-later\n--&gt;\n&quot;</span>);
<span class="kw">const </span>URL: <span class="kw-2">&amp;</span>str = <span class="kw">crate</span>::V1_API_ROUTES.captcha.update;
@@ -386,13 +384,13 @@
.unwrap()
);
__sf_rt :: render_text ! (__sf_buf , <span class="string">&quot;\&quot;\n/&gt;\n&lt;meta\nproperty=\&quot;og:description\&quot;\ncontent=\&quot;mCaptcha is an AGPL&#39;d, privacy focued, proof-of-work based CAPTCHA System\&quot;\n/&gt;\n&lt;meta property=\&quot;og:site_name\&quot;\ncontent=\&quot;mCaptcha is an AGPL&#39;d, privacy focued, proof-of-work based CAPTCHA System\&quot;\n/&gt;&quot;</span>);
};
}
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">&quot;\n&quot;</span>);
{
__sf_rt :: render_text ! (__sf_buf , <span class="string">&quot;&lt;!--\nSPDX-FileCopyrightText: 2023 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;\nSPDX-License-Identifier: AGPL-3.0-or-later\n--&gt;\n&lt;link rel=\&quot;apple-touch-icon\&quot; sizes=\&quot;57x57\&quot; href=\&quot;/apple-icon-57x57.png\&quot;&gt;\n&lt;link rel=\&quot;apple-touch-icon\&quot; sizes=\&quot;60x60\&quot; href=\&quot;/apple-icon-60x60.png\&quot;&gt;\n&lt;link rel=\&quot;apple-touch-icon\&quot; sizes=\&quot;72x72\&quot; href=\&quot;/apple-icon-72x72.png\&quot;&gt;\n&lt;link rel=\&quot;apple-touch-icon\&quot; sizes=\&quot;76x76\&quot; href=\&quot;/apple-icon-76x76.png\&quot;&gt;\n&lt;link rel=\&quot;apple-touch-icon\&quot; sizes=\&quot;114x114\&quot; href=\&quot;/apple-icon-114x114.png\&quot;&gt;\n&lt;link rel=\&quot;apple-touch-icon\&quot; sizes=\&quot;120x120\&quot; href=\&quot;/apple-icon-120x120.png\&quot;&gt;\n&lt;link rel=\&quot;apple-touch-icon\&quot; sizes=\&quot;144x144\&quot; href=\&quot;/apple-icon-144x144.png\&quot;&gt;\n&lt;link rel=\&quot;apple-touch-icon\&quot; sizes=\&quot;152x152\&quot; href=\&quot;/apple-icon-152x152.png\&quot;&gt;\n&lt;link rel=\&quot;apple-touch-icon\&quot; sizes=\&quot;180x180\&quot; href=\&quot;/apple-icon-180x180.png\&quot;&gt;\n&lt;link rel=\&quot;icon\&quot; type=\&quot;image/png\&quot; sizes=\&quot;192x192\&quot; href=\&quot;/android-icon-192x192.png\&quot;&gt;\n&lt;link rel=\&quot;icon\&quot; type=\&quot;image/png\&quot; sizes=\&quot;32x32\&quot; href=\&quot;/favicon-32x32.png\&quot;&gt;\n&lt;link rel=\&quot;icon\&quot; type=\&quot;image/png\&quot; sizes=\&quot;96x96\&quot; href=\&quot;/favicon-96x96.png\&quot;&gt;\n&lt;link rel=\&quot;icon\&quot; type=\&quot;image/png\&quot; sizes=\&quot;16x16\&quot; href=\&quot;/favicon-16x16.png\&quot;&gt;\n&lt;link rel=\&quot;manifest\&quot; href=\&quot;/manifest.json\&quot;&gt;\n&lt;meta name=\&quot;msapplication-TileColor\&quot; content=\&quot;#ffffff\&quot;&gt;\n&lt;meta name=\&quot;msapplication-TileImage\&quot; content=\&quot;/ms-icon-144x144.png\&quot;&gt;\n&lt;meta name=\&quot;theme-color\&quot; content=\&quot;#ffffff\&quot;&gt;&quot;</span>);
};
}
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">&quot;\n&lt;/head&gt;&quot;</span>);
};
}
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">&quot;\n&lt;body class=\&quot;layout\&quot;&gt;&quot;</span>);
{
__sf_rt :: render_text ! (__sf_buf , <span class="string">&quot;&lt;!--\nSPDX-FileCopyrightText: 2023 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;\nSPDX-License-Identifier: AGPL-3.0-or-later\n--&gt;\n&lt;nav class=\&quot;secondary-menu\&quot;&gt;\n&lt;input type=\&quot;checkbox\&quot; class=\&quot;nav-toggle\&quot; id=\&quot;nav-toggle\&quot; &gt;\n&lt;div class=\&quot;secondary-menu__heading\&quot;&gt;\n&lt;a class=\&quot;novisit\&quot; href=\&quot;/\&quot;&gt;\n&lt;img class=\&quot;secondary-menu__logo\&quot; src=\&quot;&quot;</span>);
@@ -461,7 +459,7 @@
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">&quot;\&quot; alt=\&quot;&quot;</span>);
<span class="macro">__sf_rt::render_escaped!</span>(__sf_buf, <span class="kw">crate</span>::GITHUB.<span class="number">1</span>);
__sf_rt :: render_text ! (__sf_buf , <span class="string">&quot;\&quot; /&gt;\n&lt;div class=\&quot;secondary-menu__item-name\&quot;&gt;\nSource Code\n&lt;/div&gt;\n&lt;/a&gt;\n&lt;/li&gt;\n&lt;/ul&gt;\n&lt;/nav&gt;\n&lt;!-- Nav/Side/Secondary bar --&gt;&quot;</span>);
};
}
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">&quot;\n&lt;div class=\&quot;tmp-layout\&quot;&gt;&quot;</span>);
{
__sf_rt :: render_text ! (__sf_buf , <span class="string">&quot;&lt;!--\nSPDX-FileCopyrightText: 2023 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;\nSPDX-License-Identifier: AGPL-3.0-or-later\n--&gt;\n&lt;header&gt;\n&quot;</span>);
@@ -474,7 +472,7 @@
<span class="kw">crate</span>::PAGES.panel.sitekey.add_easy
);
__sf_rt :: render_text ! (__sf_buf , <span class="string">&quot;\&quot;&gt;\n&lt;button class=\&quot;taskbar__add-site\&quot;&gt;\n+ New Site\n&lt;/button&gt;\n&lt;/a&gt;&quot;</span>);
};
}
__sf_rt :: render_text ! (__sf_buf , <span class="string">&quot;\n&lt;/li&gt;\n&lt;li class=\&quot;taskbar__action\&quot;&gt;\n&lt;img class=\&quot;taskbar__icon\&quot; src=\&quot;&quot;</span>);
<span class="macro">__sf_rt::render_escaped!</span>(
__sf_buf,
@@ -506,17 +504,17 @@
__sf_buf,
<span class="string">&quot;\&quot;\nalt=\&quot;Profile\&quot; /&gt;&lt;/a\n&gt;\n&lt;/li&gt;\n&lt;/ul&gt;&quot;
</span>);
};
}
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">&quot;\n&lt;/header&gt;&quot;</span>);
};
}
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">&quot;\n&lt;main class=\&quot;panel-main\&quot;&gt;\n&quot;</span>);
{
__sf_rt :: render_text ! (__sf_buf , <span class="string">&quot;&lt;!--\nSPDX-FileCopyrightText: 2023 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;\nSPDX-License-Identifier: AGPL-3.0-or-later\n--&gt;\n&lt;ol class=\&quot;help-text\&quot;&gt;\n&lt;li class=\&quot;help-text__instructions\&quot;&gt;\nAdd sitekey\n&lt;/li&gt;\n&lt;li class=\&quot;help-text__instructions\&quot;&gt;\nAdd client-side code snippets to protect pages\n&lt;/li&gt;\n&lt;li class=\&quot;help-text__instructions\&quot;&gt;\nAdd server-side verification logic\n&lt;/li&gt;\n&lt;/ol&gt;&quot;</span>);
};
}
__sf_rt :: render_text ! (__sf_buf , <span class="string">&quot;\n&lt;!-- Main content container --&gt;\n&lt;div class=\&quot;inner-container\&quot;&gt;\n&lt;!-- Main menu/ important actions roaster --&gt;\n&lt;form class=\&quot;sitekey-form\&quot; action=\&quot;&quot;</span>);
<span class="macro">__sf_rt::render_escaped!</span>(__sf_buf, URL);
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">&quot;\&quot; method=\&quot;post\&quot;&gt;&quot;</span>);
};
}
__sf_rt :: render_text ! (__sf_buf , <span class="string">&quot;\n&lt;div class=\&quot;sitekey-form__advance-options-container\&quot;&gt;\n&lt;h1 class=\&quot;form__title\&quot;&gt;Sitekey: &quot;</span>);
<span class="macro">__sf_rt::render_escaped!</span>(__sf_buf, name);
<span class="macro">__sf_rt::render_text!</span>(
@@ -547,9 +545,10 @@
__sf_rt :: render_text ! (__sf_buf , <span class="string">&quot;\nclass=\&quot;sitekey-form__input\&quot;\ntype=\&quot;number\&quot;\nname=\&quot;duration\&quot;\nid=\&quot;duration\&quot;\nmin=0\nrequired\nvalue=\&quot;&quot;</span>);
<span class="macro">__sf_rt::render_escaped!</span>(__sf_buf, duration);
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">&quot;\&quot;\n/&gt;\n&lt;/label&gt;&quot;</span>);
};
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">&quot;\n\n&quot;</span>);
}
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">&quot;\n&quot;</span>);
<span class="kw">for </span>(count, level) <span class="kw">in </span>levels.iter().enumerate() {
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">&quot;\n&quot;</span>);
{
__sf_rt :: render_text ! (__sf_buf , <span class="string">&quot;&lt;!--\nSPDX-FileCopyrightText: 2023 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;\nSPDX-License-Identifier: AGPL-3.0-or-later\n--&gt;\n&quot;</span>);
<span class="kw">let </span>num = count + <span class="number">1</span>;
@@ -596,11 +595,8 @@
__sf_buf,
<span class="string">&quot;\&quot;\nid=\&quot;remove-level1\&quot;\nvalue=\&quot;x\&quot;\n/&gt;&lt;/label&gt;\n&lt;/fieldset&gt;&quot;
</span>);
};
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">&quot;\n\n&quot;</span>);
}
<span class="kw">unsafe </span>{
__sf_buf._set_len(__sf_buf.len() - <span class="number">1usize</span>);
}
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">&quot;\n&quot;</span>);
}
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">&quot;\n&quot;</span>);
<span class="kw">let </span>level = levels.len() + <span class="number">1</span>;
@@ -635,7 +631,7 @@
</span>);
<span class="macro">__sf_rt::render_escaped!</span>(__sf_buf, level);
__sf_rt :: render_text ! (__sf_buf , <span class="string">&quot;\&quot;\n/&gt;\n&lt;/label&gt;\n&lt;label class=\&quot;sitekey-form__level-label--hidden\&quot; for=\&quot;add\&quot;&gt;\n&lt;span class=\&quot;sitekey-form__add-level-btn-spacer\&quot;&gt;Add level&lt;/span&gt;\n&lt;input\nclass=\&quot;sitekey-form__level-add-level-button\&quot;\ntype=\&quot;button\&quot;\nname=\&quot;add\&quot;\nid=\&quot;add\&quot;\nvalue=\&quot;Add\&quot;\n/&gt;\n&lt;/label&gt;\n&lt;/fieldset&gt;&quot;</span>);
};
}
__sf_rt :: render_text ! (__sf_buf , <span class="string">&quot;\n&lt;label class=\&quot;sitekey-form__label\&quot; for=\&quot;publish_benchmarks\&quot;&gt;\nAnonymously publish CAPTCHA performance statistics to help other webmasters\n&lt;input\nclass=\&quot;sitekey-form__input\&quot;\ntype=\&quot;checkbox\&quot;\nid=\&quot;publish_benchmarks\&quot;\nname=\&quot;publish_benchmarks\&quot;\n&quot;</span>);
<span class="kw">if </span>publish_benchmarks {
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">&quot;\nchecked\n&quot;</span>);
@@ -672,7 +668,7 @@
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">&quot;-&quot;</span>);
<span class="macro">__sf_rt::render_escaped!</span>(__sf_buf, <span class="kw">crate</span>::GIT_COMMIT_HASH[<span class="number">0</span>..<span class="number">8</span>]);
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">&quot;\n&lt;/a&gt;\n&lt;/li&gt;\n&lt;/ul&gt;\n&lt;/footer&gt;&quot;</span>);
};
}
__sf_rt :: render_text ! (__sf_buf , <span class="string">&quot;\n&lt;/div&gt;\n&lt;link\nrel=\&quot;stylesheet\&quot;\nmedia=\&quot;all\&quot;\ntype=\&quot;text/css\&quot;\nhref=\&quot;&quot;</span>);
<span class="macro">__sf_rt::render_escaped!</span>(__sf_buf, <span class="kw-2">&amp;*</span><span class="kw">crate</span>::CSS);
__sf_rt :: render_text ! (__sf_buf , <span class="string">&quot;\&quot;\n/&gt;\n&lt;link\nrel=\&quot;stylesheet\&quot;\nmedia=\&quot;screen and (max-width: 1250px)\&quot;\ntype=\&quot;text/css\&quot;\nhref=\&quot;&quot;</span>);
@@ -682,10 +678,10 @@
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">&quot;\&quot;&gt;&lt;/script&gt;\n&quot;</span>);
{
__sf_rt :: render_text ! (__sf_buf , <span class="string">&quot;&lt;!--\nSPDX-FileCopyrightText: 2023 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;\nSPDX-License-Identifier: AGPL-3.0-or-later\n--&gt;\n&lt;div id=\&quot;err__container\&quot;&gt;&lt;/div&gt;&quot;</span>);
};
}
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">&quot;\n&lt;/body&gt;\n&lt;/html&gt;&quot;</span>);
};
};
}
}
}
</code></pre></div></section></main></body></html>

View File

@@ -1,4 +1,4 @@
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Source of the Rust file `/home/runner/work/mCaptcha/mCaptcha/target/debug/build/sailfish-compiler-a08f82bb5f15d474/out/templates/index-6532a29b204ddc0b`."><title>index-6532a29b204ddc0b - source</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../../../../../../../../../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../../../../../../../../../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../../../../../../../../../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../../../../../../../../../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../../../../../../../../../../static.files/SourceSerif4-Bold-a2c9cd1067f8b328.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../../../../../../../../../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2"><link rel="stylesheet" href="../../../../../../../../../../../../../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../../../../../../../../../../../../../static.files/rustdoc-ba5701c5741a7b69.css" id="mainThemeStyle"><div id="rustdoc-vars" data-root-path="../../../../../../../../../../../../../" data-static-root-path="../../../../../../../../../../../../../static.files/" data-current-crate="mcaptcha" data-themes="" data-resource-suffix="" data-rustdoc-version="1.70.0 (90c541806 2023-05-31)" data-search-js="search-e077946657036a58.js" data-settings-js="settings-298e1ea74db45b39.js" data-settings-css="settings-7bfb4c59cc6bc502.css" data-theme-light-css="light-0f8c037637f9eb3e.css" data-theme-dark-css="dark-1097f8e92a01e3cf.css" data-theme-ayu-css="ayu-614652228113ac93.css" ></div><script src="../../../../../../../../../../../../../static.files/storage-62ce34ea385b278a.js"></script><script defer src="../../../../../../../../../../../../../static.files/source-script-905937fbbdc8e9ea.js"></script><script defer src="../../../../../../../../../../../../../source-files.js"></script><script defer src="../../../../../../../../../../../../../static.files/main-f61008743c98d196.js"></script><noscript><link rel="stylesheet" media="(prefers-color-scheme:light)" href="../../../../../../../../../../../../../static.files/light-0f8c037637f9eb3e.css"><link rel="stylesheet" media="(prefers-color-scheme:dark)" href="../../../../../../../../../../../../../static.files/dark-1097f8e92a01e3cf.css"><link rel="stylesheet" href="../../../../../../../../../../../../../static.files/noscript-13285aec31fa243e.css"></noscript><link rel="alternate icon" type="image/png" href="../../../../../../../../../../../../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link rel="alternate icon" type="image/png" href="../../../../../../../../../../../../../static.files/favicon-32x32-422f7d1d52889060.png"><link rel="icon" type="image/svg+xml" href="../../../../../../../../../../../../../static.files/favicon-2c020d218678b618.svg"></head><body class="rustdoc source"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"></nav><main><nav class="sub"><a class="sub-logo-container" href="../../../../../../../../../../../../../mcaptcha/index.html"><img class="rust-logo" src="../../../../../../../../../../../../../static.files/rust-logo-151179464ae7ed46.svg" alt="logo"></a><form class="search-form"><span></span><input class="search-input" name="search" aria-label="Run search in the documentation" autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"><div id="help-button" title="help" tabindex="-1"><a href="../../../../../../../../../../../../../help.html">?</a></div><div id="settings-menu" tabindex="-1"><a href="../../../../../../../../../../../../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../../../../../../../../../../../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section id="main-content" class="content"><div class="example-wrap"><div data-nosnippet><pre class="src-line-numbers"><a href="#1" id="1">1</a>
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Source of the Rust file `/home/runner/work/mCaptcha/mCaptcha/target/debug/build/sailfish-compiler-dd74b18f3fecf4f7/out/templates/index-6532a29b204ddc0b`."><title>index-6532a29b204ddc0b - source</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../../../../../../../../../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../../../../../../../../../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../../../../../../../../../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../../../../../../../../../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../../../../../../../../../../static.files/SourceSerif4-Bold-a2c9cd1067f8b328.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../../../../../../../../../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2"><link rel="stylesheet" href="../../../../../../../../../../../../../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../../../../../../../../../../../../../static.files/rustdoc-ba5701c5741a7b69.css" id="mainThemeStyle"><div id="rustdoc-vars" data-root-path="../../../../../../../../../../../../../" data-static-root-path="../../../../../../../../../../../../../static.files/" data-current-crate="mcaptcha" data-themes="" data-resource-suffix="" data-rustdoc-version="1.70.0 (90c541806 2023-05-31)" data-search-js="search-e077946657036a58.js" data-settings-js="settings-298e1ea74db45b39.js" data-settings-css="settings-7bfb4c59cc6bc502.css" data-theme-light-css="light-0f8c037637f9eb3e.css" data-theme-dark-css="dark-1097f8e92a01e3cf.css" data-theme-ayu-css="ayu-614652228113ac93.css" ></div><script src="../../../../../../../../../../../../../static.files/storage-62ce34ea385b278a.js"></script><script defer src="../../../../../../../../../../../../../static.files/source-script-905937fbbdc8e9ea.js"></script><script defer src="../../../../../../../../../../../../../source-files.js"></script><script defer src="../../../../../../../../../../../../../static.files/main-f61008743c98d196.js"></script><noscript><link rel="stylesheet" media="(prefers-color-scheme:light)" href="../../../../../../../../../../../../../static.files/light-0f8c037637f9eb3e.css"><link rel="stylesheet" media="(prefers-color-scheme:dark)" href="../../../../../../../../../../../../../static.files/dark-1097f8e92a01e3cf.css"><link rel="stylesheet" href="../../../../../../../../../../../../../static.files/noscript-13285aec31fa243e.css"></noscript><link rel="alternate icon" type="image/png" href="../../../../../../../../../../../../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link rel="alternate icon" type="image/png" href="../../../../../../../../../../../../../static.files/favicon-32x32-422f7d1d52889060.png"><link rel="icon" type="image/svg+xml" href="../../../../../../../../../../../../../static.files/favicon-2c020d218678b618.svg"></head><body class="rustdoc source"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"></nav><main><nav class="sub"><a class="sub-logo-container" href="../../../../../../../../../../../../../mcaptcha/index.html"><img class="rust-logo" src="../../../../../../../../../../../../../static.files/rust-logo-151179464ae7ed46.svg" alt="logo"></a><form class="search-form"><span></span><input class="search-input" name="search" aria-label="Run search in the documentation" autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"><div id="help-button" title="help" tabindex="-1"><a href="../../../../../../../../../../../../../help.html">?</a></div><div id="settings-menu" tabindex="-1"><a href="../../../../../../../../../../../../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../../../../../../../../../../../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section id="main-content" class="content"><div class="example-wrap"><div data-nosnippet><pre class="src-line-numbers"><a href="#1" id="1">1</a>
<a href="#2" id="2">2</a>
<a href="#3" id="3">3</a>
<a href="#4" id="4">4</a>
@@ -371,9 +371,6 @@
<a href="#371" id="371">371</a>
<a href="#372" id="372">372</a>
<a href="#373" id="373">373</a>
<a href="#374" id="374">374</a>
<a href="#375" id="375">375</a>
<a href="#376" id="376">376</a>
</pre></div><pre class="rust"><code>{
__sf_rt :: render_text ! (__sf_buf , <span class="string">&quot;&lt;!--\nSPDX-FileCopyrightText: 2023 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;\nSPDX-License-Identifier: AGPL-3.0-or-later\n--&gt;\n&quot;</span>);
<span class="kw">const </span>URL: <span class="kw-2">&amp;</span>str = <span class="kw">crate</span>::V1_API_ROUTES.captcha.create;
@@ -417,13 +414,13 @@
.unwrap()
);
__sf_rt :: render_text ! (__sf_buf , <span class="string">&quot;\&quot;\n/&gt;\n&lt;meta\nproperty=\&quot;og:description\&quot;\ncontent=\&quot;mCaptcha is an AGPL&#39;d, privacy focued, proof-of-work based CAPTCHA System\&quot;\n/&gt;\n&lt;meta property=\&quot;og:site_name\&quot;\ncontent=\&quot;mCaptcha is an AGPL&#39;d, privacy focued, proof-of-work based CAPTCHA System\&quot;\n/&gt;&quot;</span>);
};
}
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">&quot;\n&quot;</span>);
{
__sf_rt :: render_text ! (__sf_buf , <span class="string">&quot;&lt;!--\nSPDX-FileCopyrightText: 2023 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;\nSPDX-License-Identifier: AGPL-3.0-or-later\n--&gt;\n&lt;link rel=\&quot;apple-touch-icon\&quot; sizes=\&quot;57x57\&quot; href=\&quot;/apple-icon-57x57.png\&quot;&gt;\n&lt;link rel=\&quot;apple-touch-icon\&quot; sizes=\&quot;60x60\&quot; href=\&quot;/apple-icon-60x60.png\&quot;&gt;\n&lt;link rel=\&quot;apple-touch-icon\&quot; sizes=\&quot;72x72\&quot; href=\&quot;/apple-icon-72x72.png\&quot;&gt;\n&lt;link rel=\&quot;apple-touch-icon\&quot; sizes=\&quot;76x76\&quot; href=\&quot;/apple-icon-76x76.png\&quot;&gt;\n&lt;link rel=\&quot;apple-touch-icon\&quot; sizes=\&quot;114x114\&quot; href=\&quot;/apple-icon-114x114.png\&quot;&gt;\n&lt;link rel=\&quot;apple-touch-icon\&quot; sizes=\&quot;120x120\&quot; href=\&quot;/apple-icon-120x120.png\&quot;&gt;\n&lt;link rel=\&quot;apple-touch-icon\&quot; sizes=\&quot;144x144\&quot; href=\&quot;/apple-icon-144x144.png\&quot;&gt;\n&lt;link rel=\&quot;apple-touch-icon\&quot; sizes=\&quot;152x152\&quot; href=\&quot;/apple-icon-152x152.png\&quot;&gt;\n&lt;link rel=\&quot;apple-touch-icon\&quot; sizes=\&quot;180x180\&quot; href=\&quot;/apple-icon-180x180.png\&quot;&gt;\n&lt;link rel=\&quot;icon\&quot; type=\&quot;image/png\&quot; sizes=\&quot;192x192\&quot; href=\&quot;/android-icon-192x192.png\&quot;&gt;\n&lt;link rel=\&quot;icon\&quot; type=\&quot;image/png\&quot; sizes=\&quot;32x32\&quot; href=\&quot;/favicon-32x32.png\&quot;&gt;\n&lt;link rel=\&quot;icon\&quot; type=\&quot;image/png\&quot; sizes=\&quot;96x96\&quot; href=\&quot;/favicon-96x96.png\&quot;&gt;\n&lt;link rel=\&quot;icon\&quot; type=\&quot;image/png\&quot; sizes=\&quot;16x16\&quot; href=\&quot;/favicon-16x16.png\&quot;&gt;\n&lt;link rel=\&quot;manifest\&quot; href=\&quot;/manifest.json\&quot;&gt;\n&lt;meta name=\&quot;msapplication-TileColor\&quot; content=\&quot;#ffffff\&quot;&gt;\n&lt;meta name=\&quot;msapplication-TileImage\&quot; content=\&quot;/ms-icon-144x144.png\&quot;&gt;\n&lt;meta name=\&quot;theme-color\&quot; content=\&quot;#ffffff\&quot;&gt;&quot;</span>);
};
}
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">&quot;\n&lt;/head&gt;&quot;</span>);
};
}
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">&quot;\n&lt;body class=\&quot;layout\&quot;&gt;&quot;</span>);
{
__sf_rt :: render_text ! (__sf_buf , <span class="string">&quot;&lt;!--\nSPDX-FileCopyrightText: 2023 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;\nSPDX-License-Identifier: AGPL-3.0-or-later\n--&gt;\n&lt;nav class=\&quot;secondary-menu\&quot;&gt;\n&lt;input type=\&quot;checkbox\&quot; class=\&quot;nav-toggle\&quot; id=\&quot;nav-toggle\&quot; &gt;\n&lt;div class=\&quot;secondary-menu__heading\&quot;&gt;\n&lt;a class=\&quot;novisit\&quot; href=\&quot;/\&quot;&gt;\n&lt;img class=\&quot;secondary-menu__logo\&quot; src=\&quot;&quot;</span>);
@@ -492,7 +489,7 @@
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">&quot;\&quot; alt=\&quot;&quot;</span>);
<span class="macro">__sf_rt::render_escaped!</span>(__sf_buf, <span class="kw">crate</span>::GITHUB.<span class="number">1</span>);
__sf_rt :: render_text ! (__sf_buf , <span class="string">&quot;\&quot; /&gt;\n&lt;div class=\&quot;secondary-menu__item-name\&quot;&gt;\nSource Code\n&lt;/div&gt;\n&lt;/a&gt;\n&lt;/li&gt;\n&lt;/ul&gt;\n&lt;/nav&gt;\n&lt;!-- Nav/Side/Secondary bar --&gt;&quot;</span>);
};
}
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">&quot;\n&lt;div class=\&quot;tmp-layout\&quot;&gt;&quot;</span>);
{
__sf_rt :: render_text ! (__sf_buf , <span class="string">&quot;&lt;!--\nSPDX-FileCopyrightText: 2023 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;\nSPDX-License-Identifier: AGPL-3.0-or-later\n--&gt;\n&lt;header&gt;\n&quot;</span>);
@@ -505,7 +502,7 @@
<span class="kw">crate</span>::PAGES.panel.sitekey.add_easy
);
__sf_rt :: render_text ! (__sf_buf , <span class="string">&quot;\&quot;&gt;\n&lt;button class=\&quot;taskbar__add-site\&quot;&gt;\n+ New Site\n&lt;/button&gt;\n&lt;/a&gt;&quot;</span>);
};
}
__sf_rt :: render_text ! (__sf_buf , <span class="string">&quot;\n&lt;/li&gt;\n&lt;li class=\&quot;taskbar__action\&quot;&gt;\n&lt;img class=\&quot;taskbar__icon\&quot; src=\&quot;&quot;</span>);
<span class="macro">__sf_rt::render_escaped!</span>(
__sf_buf,
@@ -537,17 +534,17 @@
__sf_buf,
<span class="string">&quot;\&quot;\nalt=\&quot;Profile\&quot; /&gt;&lt;/a\n&gt;\n&lt;/li&gt;\n&lt;/ul&gt;&quot;
</span>);
};
}
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">&quot;\n&lt;/header&gt;&quot;</span>);
};
}
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">&quot;\n&lt;main class=\&quot;panel-main\&quot;&gt;\n&quot;</span>);
{
__sf_rt :: render_text ! (__sf_buf , <span class="string">&quot;&lt;!--\nSPDX-FileCopyrightText: 2023 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;\nSPDX-License-Identifier: AGPL-3.0-or-later\n--&gt;\n&lt;ol class=\&quot;help-text\&quot;&gt;\n&lt;li class=\&quot;help-text__instructions\&quot;&gt;\nAdd sitekey\n&lt;/li&gt;\n&lt;li class=\&quot;help-text__instructions\&quot;&gt;\nAdd client-side code snippets to protect pages\n&lt;/li&gt;\n&lt;li class=\&quot;help-text__instructions\&quot;&gt;\nAdd server-side verification logic\n&lt;/li&gt;\n&lt;/ol&gt;&quot;</span>);
};
}
__sf_rt :: render_text ! (__sf_buf , <span class="string">&quot;\n&lt;!-- Main content container --&gt;\n&lt;div class=\&quot;inner-container\&quot;&gt;\n&lt;!-- Main menu/ important actions roaster --&gt;\n&lt;form class=\&quot;sitekey-form\&quot; action=\&quot;&quot;</span>);
<span class="macro">__sf_rt::render_escaped!</span>(__sf_buf, URL);
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">&quot;\&quot; method=\&quot;post\&quot;&gt;&quot;</span>);
};
}
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">&quot;\n&lt;h1 class=\&quot;form__title\&quot;&gt;Sitekey: &quot;</span>);
<span class="macro">__sf_rt::render_escaped!</span>(__sf_buf, name);
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">&quot;\n&lt;a\ntarget=\&quot;_blank\&quot;\nhref=\&quot;&quot;</span>);
@@ -581,7 +578,7 @@
<span class="kw">crate</span>::FILES.get(<span class="string">&quot;./static/cache/img/svg/edit.svg&quot;</span>).unwrap()
);
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">&quot;\&quot; alt=\&quot;Edit\nsitekey\&quot; /&gt;\n&lt;/a&gt;&quot;</span>);
};
}
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">&quot;\n&quot;</span>);
}
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">&quot;\n&quot;</span>);
@@ -599,7 +596,7 @@
.unwrap()
);
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">&quot;\&quot;\nalt=\&quot;Delete sitekey\&quot;\n/&gt;\n&lt;/a&gt;&quot;</span>);
};
}
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">&quot;\n&quot;</span>);
{
__sf_rt :: render_text ! (__sf_buf , <span class="string">&quot;&lt;!--\nSPDX-FileCopyrightText: 2023 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;\nSPDX-License-Identifier: AGPL-3.0-or-later\n--&gt;\n&lt;/h1&gt;\n&lt;label class=\&quot;sitekey-form__label\&quot; for=\&quot;description\&quot;&gt;\nDescription\n&lt;input\n&quot;</span>);
@@ -623,9 +620,10 @@
__sf_rt :: render_text ! (__sf_buf , <span class="string">&quot;\nclass=\&quot;sitekey-form__input\&quot;\ntype=\&quot;number\&quot;\nname=\&quot;duration\&quot;\nid=\&quot;duration\&quot;\nmin=0\nrequired\nvalue=\&quot;&quot;</span>);
<span class="macro">__sf_rt::render_escaped!</span>(__sf_buf, duration);
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">&quot;\&quot;\n/&gt;\n&lt;/label&gt;&quot;</span>);
};
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">&quot;\n\n&quot;</span>);
}
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">&quot;\n&quot;</span>);
<span class="kw">for </span>(count, level) <span class="kw">in </span>levels.iter().enumerate() {
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">&quot;\n&quot;</span>);
{
__sf_rt :: render_text ! (__sf_buf , <span class="string">&quot;&lt;!--\nSPDX-FileCopyrightText: 2023 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;\nSPDX-License-Identifier: AGPL-3.0-or-later\n--&gt;\n&quot;</span>);
<span class="kw">let </span>num = count + <span class="number">1</span>;
@@ -665,11 +663,8 @@
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">&quot;\&quot;\nreadonly\nid=\&quot;difficulty&quot;</span>);
<span class="macro">__sf_rt::render_escaped!</span>(__sf_buf, num);
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">&quot;\&quot;\n/&gt;\n&lt;/label&gt;\n&lt;/fieldset&gt;&quot;</span>);
};
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">&quot;\n\n&quot;</span>);
}
<span class="kw">unsafe </span>{
__sf_buf._set_len(__sf_buf.len() - <span class="number">1usize</span>);
}
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">&quot;\n&quot;</span>);
}
__sf_rt :: render_text ! (__sf_buf , <span class="string">&quot;\n&lt;label class=\&quot;sitekey-form__label\&quot; for=\&quot;publish_benchmarks\&quot;&gt;\nAnonymously publish CAPTCHA performance statistics to help other webmasters\n&lt;input\nclass=\&quot;sitekey-form__input\&quot;\ntype=\&quot;checkbox\&quot;\nid=\&quot;publish_benchmarks\&quot;\nreadonly=\&quot;readonly\&quot;\nname=\&quot;publish_benchmarks\&quot;\n&quot;</span>);
<span class="kw">if </span>publish_benchmarks {
@@ -684,29 +679,28 @@
(<span class="string">&quot;Proofs generated&quot;</span>, <span class="kw-2">&amp;</span>stats.solves),
(<span class="string">&quot;Grants Verified&quot;</span>, <span class="kw-2">&amp;</span>stats.confirms),
];
__sf_rt :: render_text ! (__sf_buf , <span class="string">&quot;\n\n&lt;table class=\&quot;notification__table\&quot;&gt;\n&lt;thead class=\&quot;notification__heading\&quot;&gt;\n&lt;tr&gt;\n&lt;th colspan=\&quot;4\&quot; class=\&quot;notification__title-text\&quot;&gt;&quot;</span>);
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">&quot;\n&quot;</span>);
<span class="kw">for </span>table <span class="kw">in </span>tables.iter() {
__sf_rt :: render_text ! (__sf_buf , <span class="string">&quot;\n&lt;table class=\&quot;notification__table\&quot;&gt;\n&lt;thead class=\&quot;notification__heading\&quot;&gt;\n&lt;tr&gt;\n&lt;th colspan=\&quot;4\&quot; class=\&quot;notification__title-text\&quot;&gt;&quot;</span>);
<span class="macro">__sf_rt::render_escaped!</span>(__sf_buf, table.<span class="number">0</span>);
__sf_rt :: render_text ! (__sf_buf , <span class="string">&quot;&lt;/th&gt;\n&lt;/tr&gt;\n&lt;/thead&gt;\n&lt;tbody class=\&quot;notification__body\&quot;&gt;\n\n&lt;tr class=\&quot;notification__item\&quot;&gt;\n&lt;td&gt;\n&lt;h3 class=\&quot;notification__item-heading\&quot;&gt;\n&quot;</span>);
<span class="macro">__sf_rt::render_text!</span>(
__sf_buf,
<span class="string">&quot;&lt;/th&gt;\n&lt;/tr&gt;\n&lt;/thead&gt;\n&lt;tbody class=\&quot;notification__body\&quot;&gt;\n&quot;
</span>);
<span class="kw">for </span>(count, val) <span class="kw">in </span>table.<span class="number">1</span>.iter().enumerate() {
__sf_rt :: render_text ! (__sf_buf , <span class="string">&quot;\n&lt;tr class=\&quot;notification__item\&quot;&gt;\n&lt;td&gt;\n&lt;h3 class=\&quot;notification__item-heading\&quot;&gt;\n&quot;</span>);
<span class="macro">__sf_rt::render_escaped!</span>(__sf_buf, count + <span class="number">1</span>);
<span class="macro">__sf_rt::render_text!</span>(
__sf_buf,
<span class="string">&quot;\n&lt;/h3&gt;\n&lt;/td&gt;\n&lt;td&gt;\n&lt;p class=\&quot;notification__item-text\&quot;&gt;&quot;
</span>);
<span class="macro">__sf_rt::render_escaped!</span>(__sf_buf, <span class="kw">crate</span>::date::Date::new(<span class="kw-2">*</span>val).date());
__sf_rt :: render_text ! (__sf_buf , <span class="string">&quot;&lt;/p&gt;\n&lt;/td&gt;\n&lt;/tr&gt;\n\n&lt;tr class=\&quot;notification__item\&quot;&gt;\n&lt;td&gt;\n&lt;h3 class=\&quot;notification__item-heading\&quot;&gt;\n&quot;</span>);
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">&quot;&lt;/p&gt;\n&lt;/td&gt;\n&lt;/tr&gt;\n&quot;</span>);
}
<span class="kw">unsafe </span>{
__sf_buf._set_len(__sf_buf.len() - <span class="number">78usize</span>);
}
__sf_rt :: render_text ! (__sf_buf , <span class="string">&quot;\n&lt;/tbody&gt;\n&lt;/table&gt;\n\n&lt;table class=\&quot;notification__table\&quot;&gt;\n&lt;thead class=\&quot;notification__heading\&quot;&gt;\n&lt;tr&gt;\n&lt;th colspan=\&quot;4\&quot; class=\&quot;notification__title-text\&quot;&gt;&quot;</span>);
}
<span class="kw">unsafe </span>{
__sf_buf._set_len(__sf_buf.len() - <span class="number">129usize</span>);
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">&quot;\n&lt;/tbody&gt;\n&lt;/table&gt;\n&quot;</span>);
}
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">&quot;\n&lt;/div&gt;&quot;</span>);
};
}
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">&quot;\n&lt;/div&gt;\n&lt;!-- end of container --&gt;\n&lt;/main&gt;&quot;</span>);
{
__sf_rt :: render_text ! (__sf_buf , <span class="string">&quot;&lt;!--\nSPDX-FileCopyrightText: 2023 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;\nSPDX-License-Identifier: AGPL-3.0-or-later\n--&gt;\n&lt;/main&gt;&quot;</span>);
@@ -735,7 +729,7 @@
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">&quot;-&quot;</span>);
<span class="macro">__sf_rt::render_escaped!</span>(__sf_buf, <span class="kw">crate</span>::GIT_COMMIT_HASH[<span class="number">0</span>..<span class="number">8</span>]);
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">&quot;\n&lt;/a&gt;\n&lt;/li&gt;\n&lt;/ul&gt;\n&lt;/footer&gt;&quot;</span>);
};
}
__sf_rt :: render_text ! (__sf_buf , <span class="string">&quot;\n&lt;/div&gt;\n&lt;link\nrel=\&quot;stylesheet\&quot;\nmedia=\&quot;all\&quot;\ntype=\&quot;text/css\&quot;\nhref=\&quot;&quot;</span>);
<span class="macro">__sf_rt::render_escaped!</span>(__sf_buf, <span class="kw-2">&amp;*</span><span class="kw">crate</span>::CSS);
__sf_rt :: render_text ! (__sf_buf , <span class="string">&quot;\&quot;\n/&gt;\n&lt;link\nrel=\&quot;stylesheet\&quot;\nmedia=\&quot;screen and (max-width: 1250px)\&quot;\ntype=\&quot;text/css\&quot;\nhref=\&quot;&quot;</span>);
@@ -745,9 +739,9 @@
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">&quot;\&quot;&gt;&lt;/script&gt;\n&quot;</span>);
{
__sf_rt :: render_text ! (__sf_buf , <span class="string">&quot;&lt;!--\nSPDX-FileCopyrightText: 2023 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;\nSPDX-License-Identifier: AGPL-3.0-or-later\n--&gt;\n&lt;div id=\&quot;err__container\&quot;&gt;&lt;/div&gt;&quot;</span>);
};
}
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">&quot;\n&lt;/body&gt;\n&lt;/html&gt;&quot;</span>);
};
}
}
</code></pre></div></section></main></body></html>

View File

@@ -1,4 +1,4 @@
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Source of the Rust file `/home/runner/work/mCaptcha/mCaptcha/target/debug/build/sailfish-compiler-a08f82bb5f15d474/out/templates/index-69dbd2cb3e3b897e`."><title>index-69dbd2cb3e3b897e - source</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../../../../../../../../../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../../../../../../../../../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../../../../../../../../../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../../../../../../../../../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../../../../../../../../../../static.files/SourceSerif4-Bold-a2c9cd1067f8b328.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../../../../../../../../../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2"><link rel="stylesheet" href="../../../../../../../../../../../../../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../../../../../../../../../../../../../static.files/rustdoc-ba5701c5741a7b69.css" id="mainThemeStyle"><div id="rustdoc-vars" data-root-path="../../../../../../../../../../../../../" data-static-root-path="../../../../../../../../../../../../../static.files/" data-current-crate="mcaptcha" data-themes="" data-resource-suffix="" data-rustdoc-version="1.70.0 (90c541806 2023-05-31)" data-search-js="search-e077946657036a58.js" data-settings-js="settings-298e1ea74db45b39.js" data-settings-css="settings-7bfb4c59cc6bc502.css" data-theme-light-css="light-0f8c037637f9eb3e.css" data-theme-dark-css="dark-1097f8e92a01e3cf.css" data-theme-ayu-css="ayu-614652228113ac93.css" ></div><script src="../../../../../../../../../../../../../static.files/storage-62ce34ea385b278a.js"></script><script defer src="../../../../../../../../../../../../../static.files/source-script-905937fbbdc8e9ea.js"></script><script defer src="../../../../../../../../../../../../../source-files.js"></script><script defer src="../../../../../../../../../../../../../static.files/main-f61008743c98d196.js"></script><noscript><link rel="stylesheet" media="(prefers-color-scheme:light)" href="../../../../../../../../../../../../../static.files/light-0f8c037637f9eb3e.css"><link rel="stylesheet" media="(prefers-color-scheme:dark)" href="../../../../../../../../../../../../../static.files/dark-1097f8e92a01e3cf.css"><link rel="stylesheet" href="../../../../../../../../../../../../../static.files/noscript-13285aec31fa243e.css"></noscript><link rel="alternate icon" type="image/png" href="../../../../../../../../../../../../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link rel="alternate icon" type="image/png" href="../../../../../../../../../../../../../static.files/favicon-32x32-422f7d1d52889060.png"><link rel="icon" type="image/svg+xml" href="../../../../../../../../../../../../../static.files/favicon-2c020d218678b618.svg"></head><body class="rustdoc source"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"></nav><main><nav class="sub"><a class="sub-logo-container" href="../../../../../../../../../../../../../mcaptcha/index.html"><img class="rust-logo" src="../../../../../../../../../../../../../static.files/rust-logo-151179464ae7ed46.svg" alt="logo"></a><form class="search-form"><span></span><input class="search-input" name="search" aria-label="Run search in the documentation" autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"><div id="help-button" title="help" tabindex="-1"><a href="../../../../../../../../../../../../../help.html">?</a></div><div id="settings-menu" tabindex="-1"><a href="../../../../../../../../../../../../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../../../../../../../../../../../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section id="main-content" class="content"><div class="example-wrap"><div data-nosnippet><pre class="src-line-numbers"><a href="#1" id="1">1</a>
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Source of the Rust file `/home/runner/work/mCaptcha/mCaptcha/target/debug/build/sailfish-compiler-dd74b18f3fecf4f7/out/templates/index-69dbd2cb3e3b897e`."><title>index-69dbd2cb3e3b897e - source</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../../../../../../../../../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../../../../../../../../../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../../../../../../../../../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../../../../../../../../../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../../../../../../../../../../static.files/SourceSerif4-Bold-a2c9cd1067f8b328.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../../../../../../../../../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2"><link rel="stylesheet" href="../../../../../../../../../../../../../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../../../../../../../../../../../../../static.files/rustdoc-ba5701c5741a7b69.css" id="mainThemeStyle"><div id="rustdoc-vars" data-root-path="../../../../../../../../../../../../../" data-static-root-path="../../../../../../../../../../../../../static.files/" data-current-crate="mcaptcha" data-themes="" data-resource-suffix="" data-rustdoc-version="1.70.0 (90c541806 2023-05-31)" data-search-js="search-e077946657036a58.js" data-settings-js="settings-298e1ea74db45b39.js" data-settings-css="settings-7bfb4c59cc6bc502.css" data-theme-light-css="light-0f8c037637f9eb3e.css" data-theme-dark-css="dark-1097f8e92a01e3cf.css" data-theme-ayu-css="ayu-614652228113ac93.css" ></div><script src="../../../../../../../../../../../../../static.files/storage-62ce34ea385b278a.js"></script><script defer src="../../../../../../../../../../../../../static.files/source-script-905937fbbdc8e9ea.js"></script><script defer src="../../../../../../../../../../../../../source-files.js"></script><script defer src="../../../../../../../../../../../../../static.files/main-f61008743c98d196.js"></script><noscript><link rel="stylesheet" media="(prefers-color-scheme:light)" href="../../../../../../../../../../../../../static.files/light-0f8c037637f9eb3e.css"><link rel="stylesheet" media="(prefers-color-scheme:dark)" href="../../../../../../../../../../../../../static.files/dark-1097f8e92a01e3cf.css"><link rel="stylesheet" href="../../../../../../../../../../../../../static.files/noscript-13285aec31fa243e.css"></noscript><link rel="alternate icon" type="image/png" href="../../../../../../../../../../../../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link rel="alternate icon" type="image/png" href="../../../../../../../../../../../../../static.files/favicon-32x32-422f7d1d52889060.png"><link rel="icon" type="image/svg+xml" href="../../../../../../../../../../../../../static.files/favicon-2c020d218678b618.svg"></head><body class="rustdoc source"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"></nav><main><nav class="sub"><a class="sub-logo-container" href="../../../../../../../../../../../../../mcaptcha/index.html"><img class="rust-logo" src="../../../../../../../../../../../../../static.files/rust-logo-151179464ae7ed46.svg" alt="logo"></a><form class="search-form"><span></span><input class="search-input" name="search" aria-label="Run search in the documentation" autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"><div id="help-button" title="help" tabindex="-1"><a href="../../../../../../../../../../../../../help.html">?</a></div><div id="settings-menu" tabindex="-1"><a href="../../../../../../../../../../../../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../../../../../../../../../../../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section id="main-content" class="content"><div class="example-wrap"><div data-nosnippet><pre class="src-line-numbers"><a href="#1" id="1">1</a>
<a href="#2" id="2">2</a>
<a href="#3" id="3">3</a>
<a href="#4" id="4">4</a>
@@ -299,8 +299,6 @@
<a href="#299" id="299">299</a>
<a href="#300" id="300">300</a>
<a href="#301" id="301">301</a>
<a href="#302" id="302">302</a>
<a href="#303" id="303">303</a>
</pre></div><pre class="rust"><code>{
__sf_rt :: render_text ! (__sf_buf , <span class="string">&quot;&lt;!--\nSPDX-FileCopyrightText: 2023 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;\nSPDX-License-Identifier: AGPL-3.0-or-later\n--&gt;\n&quot;</span>);
<span class="kw">const </span>DONE_ALT: <span class="kw-2">&amp;</span>str = <span class="string">&quot;sitekey copied&quot;</span>;
@@ -344,25 +342,25 @@
.unwrap()
);
__sf_rt :: render_text ! (__sf_buf , <span class="string">&quot;\&quot;\n/&gt;\n&lt;meta\nproperty=\&quot;og:description\&quot;\ncontent=\&quot;mCaptcha is an AGPL&#39;d, privacy focued, proof-of-work based CAPTCHA System\&quot;\n/&gt;\n&lt;meta property=\&quot;og:site_name\&quot;\ncontent=\&quot;mCaptcha is an AGPL&#39;d, privacy focued, proof-of-work based CAPTCHA System\&quot;\n/&gt;&quot;</span>);
};
}
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">&quot;\n&quot;</span>);
{
__sf_rt :: render_text ! (__sf_buf , <span class="string">&quot;&lt;!--\nSPDX-FileCopyrightText: 2023 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;\nSPDX-License-Identifier: AGPL-3.0-or-later\n--&gt;\n&lt;link rel=\&quot;apple-touch-icon\&quot; sizes=\&quot;57x57\&quot; href=\&quot;/apple-icon-57x57.png\&quot;&gt;\n&lt;link rel=\&quot;apple-touch-icon\&quot; sizes=\&quot;60x60\&quot; href=\&quot;/apple-icon-60x60.png\&quot;&gt;\n&lt;link rel=\&quot;apple-touch-icon\&quot; sizes=\&quot;72x72\&quot; href=\&quot;/apple-icon-72x72.png\&quot;&gt;\n&lt;link rel=\&quot;apple-touch-icon\&quot; sizes=\&quot;76x76\&quot; href=\&quot;/apple-icon-76x76.png\&quot;&gt;\n&lt;link rel=\&quot;apple-touch-icon\&quot; sizes=\&quot;114x114\&quot; href=\&quot;/apple-icon-114x114.png\&quot;&gt;\n&lt;link rel=\&quot;apple-touch-icon\&quot; sizes=\&quot;120x120\&quot; href=\&quot;/apple-icon-120x120.png\&quot;&gt;\n&lt;link rel=\&quot;apple-touch-icon\&quot; sizes=\&quot;144x144\&quot; href=\&quot;/apple-icon-144x144.png\&quot;&gt;\n&lt;link rel=\&quot;apple-touch-icon\&quot; sizes=\&quot;152x152\&quot; href=\&quot;/apple-icon-152x152.png\&quot;&gt;\n&lt;link rel=\&quot;apple-touch-icon\&quot; sizes=\&quot;180x180\&quot; href=\&quot;/apple-icon-180x180.png\&quot;&gt;\n&lt;link rel=\&quot;icon\&quot; type=\&quot;image/png\&quot; sizes=\&quot;192x192\&quot; href=\&quot;/android-icon-192x192.png\&quot;&gt;\n&lt;link rel=\&quot;icon\&quot; type=\&quot;image/png\&quot; sizes=\&quot;32x32\&quot; href=\&quot;/favicon-32x32.png\&quot;&gt;\n&lt;link rel=\&quot;icon\&quot; type=\&quot;image/png\&quot; sizes=\&quot;96x96\&quot; href=\&quot;/favicon-96x96.png\&quot;&gt;\n&lt;link rel=\&quot;icon\&quot; type=\&quot;image/png\&quot; sizes=\&quot;16x16\&quot; href=\&quot;/favicon-16x16.png\&quot;&gt;\n&lt;link rel=\&quot;manifest\&quot; href=\&quot;/manifest.json\&quot;&gt;\n&lt;meta name=\&quot;msapplication-TileColor\&quot; content=\&quot;#ffffff\&quot;&gt;\n&lt;meta name=\&quot;msapplication-TileImage\&quot; content=\&quot;/ms-icon-144x144.png\&quot;&gt;\n&lt;meta name=\&quot;theme-color\&quot; content=\&quot;#ffffff\&quot;&gt;&quot;</span>);
};
}
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">&quot;\n&quot;</span>);
{
__sf_rt :: render_text ! (__sf_buf , <span class="string">&quot;&lt;!--\nSPDX-FileCopyrightText: 2023 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;\nSPDX-License-Identifier: AGPL-3.0-or-later\n--&gt;\n&lt;meta\nhttp-equiv=\&quot;Content-Security-Policy\&quot;\ncontent=\&quot;default-src &#39;self&#39; *.mcaptcha.org mcaptcha.org mcaptcha.io *.mcaptcha.io; img-src &#39;self&#39;; style-src &#39;self&#39;; child-src &#39;none&#39;; script-src &#39;self&#39;;\&quot;\n/&gt;&quot;</span>);
};
}
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">&quot;\n&quot;</span>);
<span class="kw">if </span><span class="kw">crate</span>::SETTINGS.server.proxy_has_tls {
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">&quot;\n&quot;</span>);
{
__sf_rt :: render_text ! (__sf_buf , <span class="string">&quot;&lt;!--\nSPDX-FileCopyrightText: 2023 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;\nSPDX-License-Identifier: AGPL-3.0-or-later\n--&gt;\n&lt;meta\nhttp-equiv=\&quot;Strict-Transport-Security\&quot; content=\&quot;max-age=63072000\&quot;\n/&gt;&quot;</span>);
};
}
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">&quot;\n&quot;</span>);
}
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">&quot;\n&lt;/head&gt;\n&lt;body class=\&quot;layout\&quot;&gt;&quot;</span>);
};
}
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">&quot; &quot;</span>);
{
__sf_rt :: render_text ! (__sf_buf , <span class="string">&quot;&lt;!--\nSPDX-FileCopyrightText: 2023 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;\nSPDX-License-Identifier: AGPL-3.0-or-later\n--&gt;\n&lt;nav class=\&quot;secondary-menu\&quot;&gt;\n&lt;input type=\&quot;checkbox\&quot; class=\&quot;nav-toggle\&quot; id=\&quot;nav-toggle\&quot; &gt;\n&lt;div class=\&quot;secondary-menu__heading\&quot;&gt;\n&lt;a class=\&quot;novisit\&quot; href=\&quot;/\&quot;&gt;\n&lt;img class=\&quot;secondary-menu__logo\&quot; src=\&quot;&quot;</span>);
@@ -431,7 +429,7 @@
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">&quot;\&quot; alt=\&quot;&quot;</span>);
<span class="macro">__sf_rt::render_escaped!</span>(__sf_buf, <span class="kw">crate</span>::GITHUB.<span class="number">1</span>);
__sf_rt :: render_text ! (__sf_buf , <span class="string">&quot;\&quot; /&gt;\n&lt;div class=\&quot;secondary-menu__item-name\&quot;&gt;\nSource Code\n&lt;/div&gt;\n&lt;/a&gt;\n&lt;/li&gt;\n&lt;/ul&gt;\n&lt;/nav&gt;\n&lt;!-- Nav/Side/Secondary bar --&gt;&quot;</span>);
};
}
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">&quot;\n&lt;div class=\&quot;tmp-layout\&quot;&gt;\n&quot;</span>);
{
__sf_rt :: render_text ! (__sf_buf , <span class="string">&quot;&lt;!--\nSPDX-FileCopyrightText: 2023 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;\nSPDX-License-Identifier: AGPL-3.0-or-later\n--&gt;\n&lt;header&gt;\n&quot;</span>);
@@ -441,7 +439,7 @@
__sf_rt :: render_text ! (__sf_buf , <span class="string">&quot;&lt;!--\nSPDX-FileCopyrightText: 2023 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;\nSPDX-License-Identifier: AGPL-3.0-or-later\n--&gt;\n&lt;a class=\&quot;taskbar__link\&quot; href=\&quot;&quot;</span>);
<span class="macro">__sf_rt::render_escaped!</span>(__sf_buf, <span class="kw">crate</span>::PAGES.panel.sitekey.add_easy);
__sf_rt :: render_text ! (__sf_buf , <span class="string">&quot;\&quot;&gt;\n&lt;button class=\&quot;taskbar__add-site\&quot;&gt;\n+ New Site\n&lt;/button&gt;\n&lt;/a&gt;&quot;</span>);
};
}
__sf_rt :: render_text ! (__sf_buf , <span class="string">&quot;\n&lt;/li&gt;\n&lt;li class=\&quot;taskbar__action\&quot;&gt;\n&lt;img class=\&quot;taskbar__icon\&quot; src=\&quot;&quot;</span>);
<span class="macro">__sf_rt::render_escaped!</span>(
__sf_buf,
@@ -467,13 +465,13 @@
__sf_buf,
<span class="string">&quot;\&quot;\nalt=\&quot;Profile\&quot; /&gt;&lt;/a\n&gt;\n&lt;/li&gt;\n&lt;/ul&gt;&quot;
</span>);
};
}
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">&quot;\n&lt;/header&gt;&quot;</span>);
};
}
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">&quot;\n&lt;main class=\&quot;panel-main\&quot;&gt;\n&quot;</span>);
{
__sf_rt :: render_text ! (__sf_buf , <span class="string">&quot;&lt;!--\nSPDX-FileCopyrightText: 2023 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;\nSPDX-License-Identifier: AGPL-3.0-or-later\n--&gt;\n&lt;ol class=\&quot;help-text\&quot;&gt;\n&lt;li class=\&quot;help-text__instructions\&quot;&gt;\nAdd sitekey\n&lt;/li&gt;\n&lt;li class=\&quot;help-text__instructions\&quot;&gt;\nAdd client-side code snippets to protect pages\n&lt;/li&gt;\n&lt;li class=\&quot;help-text__instructions\&quot;&gt;\nAdd server-side verification logic\n&lt;/li&gt;\n&lt;/ol&gt;&quot;</span>);
};
}
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">&quot;\n&lt;div class=\&quot;inner-container\&quot;&gt;\n&quot;</span>);
<span class="kw">if </span>sitekeys.is_empty() {
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">&quot;\n&quot;</span>);
@@ -483,13 +481,14 @@
__sf_rt :: render_text ! (__sf_buf , <span class="string">&quot;&lt;!--\nSPDX-FileCopyrightText: 2023 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;\nSPDX-License-Identifier: AGPL-3.0-or-later\n--&gt;\n&lt;a class=\&quot;taskbar__link\&quot; href=\&quot;&quot;</span>);
<span class="macro">__sf_rt::render_escaped!</span>(__sf_buf, <span class="kw">crate</span>::PAGES.panel.sitekey.add_easy);
__sf_rt :: render_text ! (__sf_buf , <span class="string">&quot;\&quot;&gt;\n&lt;button class=\&quot;taskbar__add-site\&quot;&gt;\n+ New Site\n&lt;/button&gt;\n&lt;/a&gt;&quot;</span>);
};
}
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">&quot; to add new sitekey.\n&lt;/p&gt;\n&lt;/ul&gt;&quot;</span>);
};
}
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">&quot;\n&quot;</span>);
} <span class="kw">else </span>{
__sf_rt :: render_text ! (__sf_buf , <span class="string">&quot;\n&lt;table class=\&quot;sitekey__table\&quot;&gt;\n&lt;thead class=\&quot;sitekey__table-heading\&quot;&gt;\n&lt;tr&gt;\n&lt;th colspan=\&quot;4\&quot; class=\&quot;sitekey__table-title-text\&quot;&gt;\nYour Sitekeys\n&lt;/th&gt;\n&lt;/tr&gt;\n&lt;/thead&gt;\n&lt;tbody class=\&quot;sitekey__body\&quot;&gt;\n\n&lt;tr class=\&quot;sitekey__item\&quot;&gt;\n&lt;td class=\&quot;sitekey-list__name\&quot;&gt;\n&lt;a\nhref=\&quot;/sitekey/&quot;</span>);
__sf_rt :: render_text ! (__sf_buf , <span class="string">&quot;\n&lt;table class=\&quot;sitekey__table\&quot;&gt;\n&lt;thead class=\&quot;sitekey__table-heading\&quot;&gt;\n&lt;tr&gt;\n&lt;th colspan=\&quot;4\&quot; class=\&quot;sitekey__table-title-text\&quot;&gt;\nYour Sitekeys\n&lt;/th&gt;\n&lt;/tr&gt;\n&lt;/thead&gt;\n&lt;tbody class=\&quot;sitekey__body\&quot;&gt;\n&quot;</span>);
<span class="kw">for </span>sitekey <span class="kw">in </span>sitekeys.iter() {
__sf_rt :: render_text ! (__sf_buf , <span class="string">&quot;\n&lt;tr class=\&quot;sitekey__item\&quot;&gt;\n&lt;td class=\&quot;sitekey-list__name\&quot;&gt;\n&lt;a\nhref=\&quot;/sitekey/&quot;</span>);
<span class="macro">__sf_rt::render_escaped!</span>(__sf_buf, sitekey.key);
<span class="macro">__sf_rt::render_text!</span>(
__sf_buf,
@@ -527,7 +526,7 @@
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">&quot;\&quot;\nalt=\&quot;&quot;</span>);
<span class="macro">__sf_rt::render_escaped!</span>(__sf_buf, DONE_ALT);
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">&quot;\&quot;\n/&gt;&quot;</span>);
};
}
<span class="macro">__sf_rt::render_text!</span>(
__sf_buf,
<span class="string">&quot;\n&lt;a\nclass=\&quot;sitekey__widget-link\&quot;\nhref=\&quot;&quot;
@@ -552,11 +551,8 @@
<span class="kw">crate</span>::FILES.get(<span class="string">&quot;./static/cache/img/svg/edit.svg&quot;</span>).unwrap()
);
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">&quot;\&quot; alt=\&quot;Edit\nsitekey\&quot; /&gt;\n&lt;/a&gt;&quot;</span>);
};
__sf_rt :: render_text ! (__sf_buf , <span class="string">&quot;\n&lt;/div&gt;\n&lt;/td&gt;\n&lt;/tr&gt;\n\n&lt;tr class=\&quot;sitekey__item\&quot;&gt;\n&lt;td class=\&quot;sitekey-list__name\&quot;&gt;\n&lt;a\nhref=\&quot;/sitekey/&quot;</span>);
}
<span class="kw">unsafe </span>{
__sf_buf._set_len(__sf_buf.len() - <span class="number">78usize</span>);
}
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">&quot;\n&lt;/div&gt;\n&lt;/td&gt;\n&lt;/tr&gt;\n&quot;</span>);
}
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">&quot;\n&lt;/tbody&gt;\n&lt;/table&gt;\n&quot;</span>);
}
@@ -588,7 +584,7 @@
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">&quot;-&quot;</span>);
<span class="macro">__sf_rt::render_escaped!</span>(__sf_buf, <span class="kw">crate</span>::GIT_COMMIT_HASH[<span class="number">0</span>..<span class="number">8</span>]);
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">&quot;\n&lt;/a&gt;\n&lt;/li&gt;\n&lt;/ul&gt;\n&lt;/footer&gt;&quot;</span>);
};
}
__sf_rt :: render_text ! (__sf_buf , <span class="string">&quot;\n&lt;/div&gt;\n&lt;link\nrel=\&quot;stylesheet\&quot;\nmedia=\&quot;all\&quot;\ntype=\&quot;text/css\&quot;\nhref=\&quot;&quot;</span>);
<span class="macro">__sf_rt::render_escaped!</span>(__sf_buf, <span class="kw-2">&amp;*</span><span class="kw">crate</span>::CSS);
__sf_rt :: render_text ! (__sf_buf , <span class="string">&quot;\&quot;\n/&gt;\n&lt;link\nrel=\&quot;stylesheet\&quot;\nmedia=\&quot;screen and (max-width: 1250px)\&quot;\ntype=\&quot;text/css\&quot;\nhref=\&quot;&quot;</span>);
@@ -598,9 +594,9 @@
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">&quot;\&quot;&gt;&lt;/script&gt;\n&quot;</span>);
{
__sf_rt :: render_text ! (__sf_buf , <span class="string">&quot;&lt;!--\nSPDX-FileCopyrightText: 2023 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;\nSPDX-License-Identifier: AGPL-3.0-or-later\n--&gt;\n&lt;div id=\&quot;err__container\&quot;&gt;&lt;/div&gt;&quot;</span>);
};
}
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">&quot;\n&lt;/body&gt;\n&lt;/html&gt;&quot;</span>);
};
}
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">&quot;\n&lt;/main&gt;\n&lt;/div&gt;&quot;</span>);
}

View File

@@ -1,4 +1,4 @@
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Source of the Rust file `/home/runner/work/mCaptcha/mCaptcha/target/debug/build/sailfish-compiler-a08f82bb5f15d474/out/templates/index-71f42f040d236f76`."><title>index-71f42f040d236f76 - source</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../../../../../../../../../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../../../../../../../../../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../../../../../../../../../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../../../../../../../../../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../../../../../../../../../../static.files/SourceSerif4-Bold-a2c9cd1067f8b328.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../../../../../../../../../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2"><link rel="stylesheet" href="../../../../../../../../../../../../../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../../../../../../../../../../../../../static.files/rustdoc-ba5701c5741a7b69.css" id="mainThemeStyle"><div id="rustdoc-vars" data-root-path="../../../../../../../../../../../../../" data-static-root-path="../../../../../../../../../../../../../static.files/" data-current-crate="mcaptcha" data-themes="" data-resource-suffix="" data-rustdoc-version="1.70.0 (90c541806 2023-05-31)" data-search-js="search-e077946657036a58.js" data-settings-js="settings-298e1ea74db45b39.js" data-settings-css="settings-7bfb4c59cc6bc502.css" data-theme-light-css="light-0f8c037637f9eb3e.css" data-theme-dark-css="dark-1097f8e92a01e3cf.css" data-theme-ayu-css="ayu-614652228113ac93.css" ></div><script src="../../../../../../../../../../../../../static.files/storage-62ce34ea385b278a.js"></script><script defer src="../../../../../../../../../../../../../static.files/source-script-905937fbbdc8e9ea.js"></script><script defer src="../../../../../../../../../../../../../source-files.js"></script><script defer src="../../../../../../../../../../../../../static.files/main-f61008743c98d196.js"></script><noscript><link rel="stylesheet" media="(prefers-color-scheme:light)" href="../../../../../../../../../../../../../static.files/light-0f8c037637f9eb3e.css"><link rel="stylesheet" media="(prefers-color-scheme:dark)" href="../../../../../../../../../../../../../static.files/dark-1097f8e92a01e3cf.css"><link rel="stylesheet" href="../../../../../../../../../../../../../static.files/noscript-13285aec31fa243e.css"></noscript><link rel="alternate icon" type="image/png" href="../../../../../../../../../../../../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link rel="alternate icon" type="image/png" href="../../../../../../../../../../../../../static.files/favicon-32x32-422f7d1d52889060.png"><link rel="icon" type="image/svg+xml" href="../../../../../../../../../../../../../static.files/favicon-2c020d218678b618.svg"></head><body class="rustdoc source"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"></nav><main><nav class="sub"><a class="sub-logo-container" href="../../../../../../../../../../../../../mcaptcha/index.html"><img class="rust-logo" src="../../../../../../../../../../../../../static.files/rust-logo-151179464ae7ed46.svg" alt="logo"></a><form class="search-form"><span></span><input class="search-input" name="search" aria-label="Run search in the documentation" autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"><div id="help-button" title="help" tabindex="-1"><a href="../../../../../../../../../../../../../help.html">?</a></div><div id="settings-menu" tabindex="-1"><a href="../../../../../../../../../../../../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../../../../../../../../../../../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section id="main-content" class="content"><div class="example-wrap"><div data-nosnippet><pre class="src-line-numbers"><a href="#1" id="1">1</a>
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Source of the Rust file `/home/runner/work/mCaptcha/mCaptcha/target/debug/build/sailfish-compiler-dd74b18f3fecf4f7/out/templates/index-71f42f040d236f76`."><title>index-71f42f040d236f76 - source</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../../../../../../../../../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../../../../../../../../../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../../../../../../../../../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../../../../../../../../../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../../../../../../../../../../static.files/SourceSerif4-Bold-a2c9cd1067f8b328.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../../../../../../../../../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2"><link rel="stylesheet" href="../../../../../../../../../../../../../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../../../../../../../../../../../../../static.files/rustdoc-ba5701c5741a7b69.css" id="mainThemeStyle"><div id="rustdoc-vars" data-root-path="../../../../../../../../../../../../../" data-static-root-path="../../../../../../../../../../../../../static.files/" data-current-crate="mcaptcha" data-themes="" data-resource-suffix="" data-rustdoc-version="1.70.0 (90c541806 2023-05-31)" data-search-js="search-e077946657036a58.js" data-settings-js="settings-298e1ea74db45b39.js" data-settings-css="settings-7bfb4c59cc6bc502.css" data-theme-light-css="light-0f8c037637f9eb3e.css" data-theme-dark-css="dark-1097f8e92a01e3cf.css" data-theme-ayu-css="ayu-614652228113ac93.css" ></div><script src="../../../../../../../../../../../../../static.files/storage-62ce34ea385b278a.js"></script><script defer src="../../../../../../../../../../../../../static.files/source-script-905937fbbdc8e9ea.js"></script><script defer src="../../../../../../../../../../../../../source-files.js"></script><script defer src="../../../../../../../../../../../../../static.files/main-f61008743c98d196.js"></script><noscript><link rel="stylesheet" media="(prefers-color-scheme:light)" href="../../../../../../../../../../../../../static.files/light-0f8c037637f9eb3e.css"><link rel="stylesheet" media="(prefers-color-scheme:dark)" href="../../../../../../../../../../../../../static.files/dark-1097f8e92a01e3cf.css"><link rel="stylesheet" href="../../../../../../../../../../../../../static.files/noscript-13285aec31fa243e.css"></noscript><link rel="alternate icon" type="image/png" href="../../../../../../../../../../../../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link rel="alternate icon" type="image/png" href="../../../../../../../../../../../../../static.files/favicon-32x32-422f7d1d52889060.png"><link rel="icon" type="image/svg+xml" href="../../../../../../../../../../../../../static.files/favicon-2c020d218678b618.svg"></head><body class="rustdoc source"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"></nav><main><nav class="sub"><a class="sub-logo-container" href="../../../../../../../../../../../../../mcaptcha/index.html"><img class="rust-logo" src="../../../../../../../../../../../../../static.files/rust-logo-151179464ae7ed46.svg" alt="logo"></a><form class="search-form"><span></span><input class="search-input" name="search" aria-label="Run search in the documentation" autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"><div id="help-button" title="help" tabindex="-1"><a href="../../../../../../../../../../../../../help.html">?</a></div><div id="settings-menu" tabindex="-1"><a href="../../../../../../../../../../../../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../../../../../../../../../../../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section id="main-content" class="content"><div class="example-wrap"><div data-nosnippet><pre class="src-line-numbers"><a href="#1" id="1">1</a>
<a href="#2" id="2">2</a>
<a href="#3" id="3">3</a>
<a href="#4" id="4">4</a>
@@ -353,25 +353,25 @@
.unwrap()
);
__sf_rt :: render_text ! (__sf_buf , <span class="string">&quot;\&quot;\n/&gt;\n&lt;meta\nproperty=\&quot;og:description\&quot;\ncontent=\&quot;mCaptcha is an AGPL&#39;d, privacy focued, proof-of-work based CAPTCHA System\&quot;\n/&gt;\n&lt;meta property=\&quot;og:site_name\&quot;\ncontent=\&quot;mCaptcha is an AGPL&#39;d, privacy focued, proof-of-work based CAPTCHA System\&quot;\n/&gt;&quot;</span>);
};
}
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">&quot;\n&quot;</span>);
{
__sf_rt :: render_text ! (__sf_buf , <span class="string">&quot;&lt;!--\nSPDX-FileCopyrightText: 2023 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;\nSPDX-License-Identifier: AGPL-3.0-or-later\n--&gt;\n&lt;link rel=\&quot;apple-touch-icon\&quot; sizes=\&quot;57x57\&quot; href=\&quot;/apple-icon-57x57.png\&quot;&gt;\n&lt;link rel=\&quot;apple-touch-icon\&quot; sizes=\&quot;60x60\&quot; href=\&quot;/apple-icon-60x60.png\&quot;&gt;\n&lt;link rel=\&quot;apple-touch-icon\&quot; sizes=\&quot;72x72\&quot; href=\&quot;/apple-icon-72x72.png\&quot;&gt;\n&lt;link rel=\&quot;apple-touch-icon\&quot; sizes=\&quot;76x76\&quot; href=\&quot;/apple-icon-76x76.png\&quot;&gt;\n&lt;link rel=\&quot;apple-touch-icon\&quot; sizes=\&quot;114x114\&quot; href=\&quot;/apple-icon-114x114.png\&quot;&gt;\n&lt;link rel=\&quot;apple-touch-icon\&quot; sizes=\&quot;120x120\&quot; href=\&quot;/apple-icon-120x120.png\&quot;&gt;\n&lt;link rel=\&quot;apple-touch-icon\&quot; sizes=\&quot;144x144\&quot; href=\&quot;/apple-icon-144x144.png\&quot;&gt;\n&lt;link rel=\&quot;apple-touch-icon\&quot; sizes=\&quot;152x152\&quot; href=\&quot;/apple-icon-152x152.png\&quot;&gt;\n&lt;link rel=\&quot;apple-touch-icon\&quot; sizes=\&quot;180x180\&quot; href=\&quot;/apple-icon-180x180.png\&quot;&gt;\n&lt;link rel=\&quot;icon\&quot; type=\&quot;image/png\&quot; sizes=\&quot;192x192\&quot; href=\&quot;/android-icon-192x192.png\&quot;&gt;\n&lt;link rel=\&quot;icon\&quot; type=\&quot;image/png\&quot; sizes=\&quot;32x32\&quot; href=\&quot;/favicon-32x32.png\&quot;&gt;\n&lt;link rel=\&quot;icon\&quot; type=\&quot;image/png\&quot; sizes=\&quot;96x96\&quot; href=\&quot;/favicon-96x96.png\&quot;&gt;\n&lt;link rel=\&quot;icon\&quot; type=\&quot;image/png\&quot; sizes=\&quot;16x16\&quot; href=\&quot;/favicon-16x16.png\&quot;&gt;\n&lt;link rel=\&quot;manifest\&quot; href=\&quot;/manifest.json\&quot;&gt;\n&lt;meta name=\&quot;msapplication-TileColor\&quot; content=\&quot;#ffffff\&quot;&gt;\n&lt;meta name=\&quot;msapplication-TileImage\&quot; content=\&quot;/ms-icon-144x144.png\&quot;&gt;\n&lt;meta name=\&quot;theme-color\&quot; content=\&quot;#ffffff\&quot;&gt;&quot;</span>);
};
}
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">&quot;\n&quot;</span>);
{
__sf_rt :: render_text ! (__sf_buf , <span class="string">&quot;&lt;!--\nSPDX-FileCopyrightText: 2023 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;\nSPDX-License-Identifier: AGPL-3.0-or-later\n--&gt;\n&lt;meta\nhttp-equiv=\&quot;Content-Security-Policy\&quot;\ncontent=\&quot;default-src &#39;self&#39; *.mcaptcha.org mcaptcha.org mcaptcha.io *.mcaptcha.io; img-src &#39;self&#39;; style-src &#39;self&#39;; child-src &#39;none&#39;; script-src &#39;self&#39;;\&quot;\n/&gt;&quot;</span>);
};
}
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">&quot;\n&quot;</span>);
<span class="kw">if </span><span class="kw">crate</span>::SETTINGS.server.proxy_has_tls {
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">&quot;\n&quot;</span>);
{
__sf_rt :: render_text ! (__sf_buf , <span class="string">&quot;&lt;!--\nSPDX-FileCopyrightText: 2023 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;\nSPDX-License-Identifier: AGPL-3.0-or-later\n--&gt;\n&lt;meta\nhttp-equiv=\&quot;Strict-Transport-Security\&quot; content=\&quot;max-age=63072000\&quot;\n/&gt;&quot;</span>);
};
}
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">&quot;\n&quot;</span>);
}
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">&quot;\n&lt;/head&gt;\n&lt;body class=\&quot;layout\&quot;&gt;&quot;</span>);
};
}
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">&quot; \n&quot;</span>);
{
__sf_rt :: render_text ! (__sf_buf , <span class="string">&quot;&lt;!--\nSPDX-FileCopyrightText: 2023 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;\nSPDX-License-Identifier: AGPL-3.0-or-later\n--&gt;\n&lt;nav class=\&quot;secondary-menu\&quot;&gt;\n&lt;input type=\&quot;checkbox\&quot; class=\&quot;nav-toggle\&quot; id=\&quot;nav-toggle\&quot; &gt;\n&lt;div class=\&quot;secondary-menu__heading\&quot;&gt;\n&lt;a class=\&quot;novisit\&quot; href=\&quot;/\&quot;&gt;\n&lt;img class=\&quot;secondary-menu__logo\&quot; src=\&quot;&quot;</span>);
@@ -440,7 +440,7 @@
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">&quot;\&quot; alt=\&quot;&quot;</span>);
<span class="macro">__sf_rt::render_escaped!</span>(__sf_buf, <span class="kw">crate</span>::GITHUB.<span class="number">1</span>);
__sf_rt :: render_text ! (__sf_buf , <span class="string">&quot;\&quot; /&gt;\n&lt;div class=\&quot;secondary-menu__item-name\&quot;&gt;\nSource Code\n&lt;/div&gt;\n&lt;/a&gt;\n&lt;/li&gt;\n&lt;/ul&gt;\n&lt;/nav&gt;\n&lt;!-- Nav/Side/Secondary bar --&gt;&quot;</span>);
};
}
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">&quot;\n&lt;div class=\&quot;tmp-layout\&quot;&gt;&quot;</span>);
{
__sf_rt :: render_text ! (__sf_buf , <span class="string">&quot;&lt;!--\nSPDX-FileCopyrightText: 2023 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;\nSPDX-License-Identifier: AGPL-3.0-or-later\n--&gt;\n&lt;header&gt;\n&quot;</span>);
@@ -450,7 +450,7 @@
__sf_rt :: render_text ! (__sf_buf , <span class="string">&quot;&lt;!--\nSPDX-FileCopyrightText: 2023 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;\nSPDX-License-Identifier: AGPL-3.0-or-later\n--&gt;\n&lt;a class=\&quot;taskbar__link\&quot; href=\&quot;&quot;</span>);
<span class="macro">__sf_rt::render_escaped!</span>(__sf_buf, <span class="kw">crate</span>::PAGES.panel.sitekey.add_easy);
__sf_rt :: render_text ! (__sf_buf , <span class="string">&quot;\&quot;&gt;\n&lt;button class=\&quot;taskbar__add-site\&quot;&gt;\n+ New Site\n&lt;/button&gt;\n&lt;/a&gt;&quot;</span>);
};
}
__sf_rt :: render_text ! (__sf_buf , <span class="string">&quot;\n&lt;/li&gt;\n&lt;li class=\&quot;taskbar__action\&quot;&gt;\n&lt;img class=\&quot;taskbar__icon\&quot; src=\&quot;&quot;</span>);
<span class="macro">__sf_rt::render_escaped!</span>(
__sf_buf,
@@ -476,13 +476,13 @@
__sf_buf,
<span class="string">&quot;\&quot;\nalt=\&quot;Profile\&quot; /&gt;&lt;/a\n&gt;\n&lt;/li&gt;\n&lt;/ul&gt;&quot;
</span>);
};
}
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">&quot;\n&lt;/header&gt;&quot;</span>);
};
}
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">&quot;\n&lt;main class=\&quot;panel-main\&quot;&gt;\n&quot;</span>);
{
__sf_rt :: render_text ! (__sf_buf , <span class="string">&quot;&lt;!--\nSPDX-FileCopyrightText: 2023 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;\nSPDX-License-Identifier: AGPL-3.0-or-later\n--&gt;\n&lt;ol class=\&quot;help-text\&quot;&gt;\n&lt;li class=\&quot;help-text__instructions\&quot;&gt;\nAdd sitekey\n&lt;/li&gt;\n&lt;li class=\&quot;help-text__instructions\&quot;&gt;\nAdd client-side code snippets to protect pages\n&lt;/li&gt;\n&lt;li class=\&quot;help-text__instructions\&quot;&gt;\nAdd server-side verification logic\n&lt;/li&gt;\n&lt;/ol&gt;&quot;</span>);
};
}
__sf_rt :: render_text ! (__sf_buf , <span class="string">&quot;\n&lt;!-- Main content container --&gt;\n&lt;div class=\&quot;inner-container\&quot;&gt;\n&lt;div class=\&quot;sitekey-form\&quot; action=\&quot;&quot;</span>);
<span class="macro">__sf_rt::render_escaped!</span>(__sf_buf, <span class="kw">crate</span>::V1_API_ROUTES.captcha.create);
<span class="macro">__sf_rt::render_text!</span>(
@@ -537,7 +537,7 @@
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">&quot;\&quot;\nalt=\&quot;&quot;</span>);
<span class="macro">__sf_rt::render_escaped!</span>(__sf_buf, DONE_ALT);
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">&quot;\&quot;\n/&gt;&quot;</span>);
};
}
__sf_rt :: render_text ! (__sf_buf , <span class="string">&quot;\n&lt;/div&gt;\n&lt;input\nclass=\&quot;settings-form__input\&quot;\ntype=\&quot;password\&quot;\nname=\&quot;secret-password\&quot;\nreadonly=&#39;readonly&#39;\nid=\&quot;secret\&quot;\nvalue=\&quot;&quot;</span>);
<span class="macro">__sf_rt::render_escaped!</span>(__sf_buf, secret);
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">&quot;\&quot;\n/&gt;\n&quot;</span>);
@@ -558,7 +558,7 @@
.unwrap()
);
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">&quot;\&quot; alt=\&quot;Hide Password\&quot; /&gt;\n&lt;/span&gt;&quot;</span>);
};
}
__sf_rt :: render_text ! (__sf_buf , <span class="string">&quot;\n&lt;/label&gt;\n&lt;button class=\&quot;settings__submit-btn\&quot; type=\&quot;submit\&quot;&gt;\nRefresh\n&lt;img\nclass=\&quot;settings__refresh-sitekey\&quot;\nsrc=\&quot;&quot;</span>);
<span class="macro">__sf_rt::render_escaped!</span>(
__sf_buf,
@@ -603,7 +603,7 @@
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">&quot;-&quot;</span>);
<span class="macro">__sf_rt::render_escaped!</span>(__sf_buf, <span class="kw">crate</span>::GIT_COMMIT_HASH[<span class="number">0</span>..<span class="number">8</span>]);
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">&quot;\n&lt;/a&gt;\n&lt;/li&gt;\n&lt;/ul&gt;\n&lt;/footer&gt;&quot;</span>);
};
}
__sf_rt :: render_text ! (__sf_buf , <span class="string">&quot;\n&lt;/div&gt;\n&lt;link\nrel=\&quot;stylesheet\&quot;\nmedia=\&quot;all\&quot;\ntype=\&quot;text/css\&quot;\nhref=\&quot;&quot;</span>);
<span class="macro">__sf_rt::render_escaped!</span>(__sf_buf, <span class="kw-2">&amp;*</span><span class="kw">crate</span>::CSS);
__sf_rt :: render_text ! (__sf_buf , <span class="string">&quot;\&quot;\n/&gt;\n&lt;link\nrel=\&quot;stylesheet\&quot;\nmedia=\&quot;screen and (max-width: 1250px)\&quot;\ntype=\&quot;text/css\&quot;\nhref=\&quot;&quot;</span>);
@@ -613,9 +613,9 @@
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">&quot;\&quot;&gt;&lt;/script&gt;\n&quot;</span>);
{
__sf_rt :: render_text ! (__sf_buf , <span class="string">&quot;&lt;!--\nSPDX-FileCopyrightText: 2023 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;\nSPDX-License-Identifier: AGPL-3.0-or-later\n--&gt;\n&lt;div id=\&quot;err__container\&quot;&gt;&lt;/div&gt;&quot;</span>);
};
}
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">&quot;\n&lt;/body&gt;\n&lt;/html&gt;&quot;</span>);
};
}
}
</code></pre></div></section></main></body></html>

View File

@@ -1,4 +1,4 @@
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Source of the Rust file `/home/runner/work/mCaptcha/mCaptcha/target/debug/build/sailfish-compiler-a08f82bb5f15d474/out/templates/index-752d42c60c4f0290`."><title>index-752d42c60c4f0290 - source</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../../../../../../../../../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../../../../../../../../../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../../../../../../../../../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../../../../../../../../../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../../../../../../../../../../static.files/SourceSerif4-Bold-a2c9cd1067f8b328.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../../../../../../../../../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2"><link rel="stylesheet" href="../../../../../../../../../../../../../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../../../../../../../../../../../../../static.files/rustdoc-ba5701c5741a7b69.css" id="mainThemeStyle"><div id="rustdoc-vars" data-root-path="../../../../../../../../../../../../../" data-static-root-path="../../../../../../../../../../../../../static.files/" data-current-crate="mcaptcha" data-themes="" data-resource-suffix="" data-rustdoc-version="1.70.0 (90c541806 2023-05-31)" data-search-js="search-e077946657036a58.js" data-settings-js="settings-298e1ea74db45b39.js" data-settings-css="settings-7bfb4c59cc6bc502.css" data-theme-light-css="light-0f8c037637f9eb3e.css" data-theme-dark-css="dark-1097f8e92a01e3cf.css" data-theme-ayu-css="ayu-614652228113ac93.css" ></div><script src="../../../../../../../../../../../../../static.files/storage-62ce34ea385b278a.js"></script><script defer src="../../../../../../../../../../../../../static.files/source-script-905937fbbdc8e9ea.js"></script><script defer src="../../../../../../../../../../../../../source-files.js"></script><script defer src="../../../../../../../../../../../../../static.files/main-f61008743c98d196.js"></script><noscript><link rel="stylesheet" media="(prefers-color-scheme:light)" href="../../../../../../../../../../../../../static.files/light-0f8c037637f9eb3e.css"><link rel="stylesheet" media="(prefers-color-scheme:dark)" href="../../../../../../../../../../../../../static.files/dark-1097f8e92a01e3cf.css"><link rel="stylesheet" href="../../../../../../../../../../../../../static.files/noscript-13285aec31fa243e.css"></noscript><link rel="alternate icon" type="image/png" href="../../../../../../../../../../../../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link rel="alternate icon" type="image/png" href="../../../../../../../../../../../../../static.files/favicon-32x32-422f7d1d52889060.png"><link rel="icon" type="image/svg+xml" href="../../../../../../../../../../../../../static.files/favicon-2c020d218678b618.svg"></head><body class="rustdoc source"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"></nav><main><nav class="sub"><a class="sub-logo-container" href="../../../../../../../../../../../../../mcaptcha/index.html"><img class="rust-logo" src="../../../../../../../../../../../../../static.files/rust-logo-151179464ae7ed46.svg" alt="logo"></a><form class="search-form"><span></span><input class="search-input" name="search" aria-label="Run search in the documentation" autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"><div id="help-button" title="help" tabindex="-1"><a href="../../../../../../../../../../../../../help.html">?</a></div><div id="settings-menu" tabindex="-1"><a href="../../../../../../../../../../../../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../../../../../../../../../../../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section id="main-content" class="content"><div class="example-wrap"><div data-nosnippet><pre class="src-line-numbers"><a href="#1" id="1">1</a>
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="Source of the Rust file `/home/runner/work/mCaptcha/mCaptcha/target/debug/build/sailfish-compiler-dd74b18f3fecf4f7/out/templates/index-752d42c60c4f0290`."><title>index-752d42c60c4f0290 - source</title><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../../../../../../../../../../static.files/SourceSerif4-Regular-46f98efaafac5295.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../../../../../../../../../../static.files/FiraSans-Regular-018c141bf0843ffd.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../../../../../../../../../../static.files/FiraSans-Medium-8f9a781e4970d388.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../../../../../../../../../../static.files/SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../../../../../../../../../../static.files/SourceSerif4-Bold-a2c9cd1067f8b328.ttf.woff2"><link rel="preload" as="font" type="font/woff2" crossorigin href="../../../../../../../../../../../../../static.files/SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2"><link rel="stylesheet" href="../../../../../../../../../../../../../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../../../../../../../../../../../../../static.files/rustdoc-ba5701c5741a7b69.css" id="mainThemeStyle"><div id="rustdoc-vars" data-root-path="../../../../../../../../../../../../../" data-static-root-path="../../../../../../../../../../../../../static.files/" data-current-crate="mcaptcha" data-themes="" data-resource-suffix="" data-rustdoc-version="1.70.0 (90c541806 2023-05-31)" data-search-js="search-e077946657036a58.js" data-settings-js="settings-298e1ea74db45b39.js" data-settings-css="settings-7bfb4c59cc6bc502.css" data-theme-light-css="light-0f8c037637f9eb3e.css" data-theme-dark-css="dark-1097f8e92a01e3cf.css" data-theme-ayu-css="ayu-614652228113ac93.css" ></div><script src="../../../../../../../../../../../../../static.files/storage-62ce34ea385b278a.js"></script><script defer src="../../../../../../../../../../../../../static.files/source-script-905937fbbdc8e9ea.js"></script><script defer src="../../../../../../../../../../../../../source-files.js"></script><script defer src="../../../../../../../../../../../../../static.files/main-f61008743c98d196.js"></script><noscript><link rel="stylesheet" media="(prefers-color-scheme:light)" href="../../../../../../../../../../../../../static.files/light-0f8c037637f9eb3e.css"><link rel="stylesheet" media="(prefers-color-scheme:dark)" href="../../../../../../../../../../../../../static.files/dark-1097f8e92a01e3cf.css"><link rel="stylesheet" href="../../../../../../../../../../../../../static.files/noscript-13285aec31fa243e.css"></noscript><link rel="alternate icon" type="image/png" href="../../../../../../../../../../../../../static.files/favicon-16x16-8b506e7a72182f1c.png"><link rel="alternate icon" type="image/png" href="../../../../../../../../../../../../../static.files/favicon-32x32-422f7d1d52889060.png"><link rel="icon" type="image/svg+xml" href="../../../../../../../../../../../../../static.files/favicon-2c020d218678b618.svg"></head><body class="rustdoc source"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="sidebar"></nav><main><nav class="sub"><a class="sub-logo-container" href="../../../../../../../../../../../../../mcaptcha/index.html"><img class="rust-logo" src="../../../../../../../../../../../../../static.files/rust-logo-151179464ae7ed46.svg" alt="logo"></a><form class="search-form"><span></span><input class="search-input" name="search" aria-label="Run search in the documentation" autocomplete="off" spellcheck="false" placeholder="Click or press S to search, ? for more options…" type="search"><div id="help-button" title="help" tabindex="-1"><a href="../../../../../../../../../../../../../help.html">?</a></div><div id="settings-menu" tabindex="-1"><a href="../../../../../../../../../../../../../settings.html" title="settings"><img width="22" height="22" alt="Change settings" src="../../../../../../../../../../../../../static.files/wheel-7b819b6101059cd0.svg"></a></div></form></nav><section id="main-content" class="content"><div class="example-wrap"><div data-nosnippet><pre class="src-line-numbers"><a href="#1" id="1">1</a>
<a href="#2" id="2">2</a>
<a href="#3" id="3">3</a>
<a href="#4" id="4">4</a>
@@ -299,8 +299,6 @@
<a href="#299" id="299">299</a>
<a href="#300" id="300">300</a>
<a href="#301" id="301">301</a>
<a href="#302" id="302">302</a>
<a href="#303" id="303">303</a>
</pre></div><pre class="rust"><code>{
__sf_rt :: render_text ! (__sf_buf , <span class="string">&quot;&lt;!--\nSPDX-FileCopyrightText: 2023 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;\nSPDX-License-Identifier: AGPL-3.0-or-later\n--&gt;\n&quot;</span>);
<span class="kw">const </span>DONE_ALT: <span class="kw-2">&amp;</span>str = <span class="string">&quot;sitekey copied&quot;</span>;
@@ -344,25 +342,25 @@
.unwrap()
);
__sf_rt :: render_text ! (__sf_buf , <span class="string">&quot;\&quot;\n/&gt;\n&lt;meta\nproperty=\&quot;og:description\&quot;\ncontent=\&quot;mCaptcha is an AGPL&#39;d, privacy focued, proof-of-work based CAPTCHA System\&quot;\n/&gt;\n&lt;meta property=\&quot;og:site_name\&quot;\ncontent=\&quot;mCaptcha is an AGPL&#39;d, privacy focued, proof-of-work based CAPTCHA System\&quot;\n/&gt;&quot;</span>);
};
}
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">&quot;\n&quot;</span>);
{
__sf_rt :: render_text ! (__sf_buf , <span class="string">&quot;&lt;!--\nSPDX-FileCopyrightText: 2023 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;\nSPDX-License-Identifier: AGPL-3.0-or-later\n--&gt;\n&lt;link rel=\&quot;apple-touch-icon\&quot; sizes=\&quot;57x57\&quot; href=\&quot;/apple-icon-57x57.png\&quot;&gt;\n&lt;link rel=\&quot;apple-touch-icon\&quot; sizes=\&quot;60x60\&quot; href=\&quot;/apple-icon-60x60.png\&quot;&gt;\n&lt;link rel=\&quot;apple-touch-icon\&quot; sizes=\&quot;72x72\&quot; href=\&quot;/apple-icon-72x72.png\&quot;&gt;\n&lt;link rel=\&quot;apple-touch-icon\&quot; sizes=\&quot;76x76\&quot; href=\&quot;/apple-icon-76x76.png\&quot;&gt;\n&lt;link rel=\&quot;apple-touch-icon\&quot; sizes=\&quot;114x114\&quot; href=\&quot;/apple-icon-114x114.png\&quot;&gt;\n&lt;link rel=\&quot;apple-touch-icon\&quot; sizes=\&quot;120x120\&quot; href=\&quot;/apple-icon-120x120.png\&quot;&gt;\n&lt;link rel=\&quot;apple-touch-icon\&quot; sizes=\&quot;144x144\&quot; href=\&quot;/apple-icon-144x144.png\&quot;&gt;\n&lt;link rel=\&quot;apple-touch-icon\&quot; sizes=\&quot;152x152\&quot; href=\&quot;/apple-icon-152x152.png\&quot;&gt;\n&lt;link rel=\&quot;apple-touch-icon\&quot; sizes=\&quot;180x180\&quot; href=\&quot;/apple-icon-180x180.png\&quot;&gt;\n&lt;link rel=\&quot;icon\&quot; type=\&quot;image/png\&quot; sizes=\&quot;192x192\&quot; href=\&quot;/android-icon-192x192.png\&quot;&gt;\n&lt;link rel=\&quot;icon\&quot; type=\&quot;image/png\&quot; sizes=\&quot;32x32\&quot; href=\&quot;/favicon-32x32.png\&quot;&gt;\n&lt;link rel=\&quot;icon\&quot; type=\&quot;image/png\&quot; sizes=\&quot;96x96\&quot; href=\&quot;/favicon-96x96.png\&quot;&gt;\n&lt;link rel=\&quot;icon\&quot; type=\&quot;image/png\&quot; sizes=\&quot;16x16\&quot; href=\&quot;/favicon-16x16.png\&quot;&gt;\n&lt;link rel=\&quot;manifest\&quot; href=\&quot;/manifest.json\&quot;&gt;\n&lt;meta name=\&quot;msapplication-TileColor\&quot; content=\&quot;#ffffff\&quot;&gt;\n&lt;meta name=\&quot;msapplication-TileImage\&quot; content=\&quot;/ms-icon-144x144.png\&quot;&gt;\n&lt;meta name=\&quot;theme-color\&quot; content=\&quot;#ffffff\&quot;&gt;&quot;</span>);
};
}
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">&quot;\n&quot;</span>);
{
__sf_rt :: render_text ! (__sf_buf , <span class="string">&quot;&lt;!--\nSPDX-FileCopyrightText: 2023 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;\nSPDX-License-Identifier: AGPL-3.0-or-later\n--&gt;\n&lt;meta\nhttp-equiv=\&quot;Content-Security-Policy\&quot;\ncontent=\&quot;default-src &#39;self&#39; *.mcaptcha.org mcaptcha.org mcaptcha.io *.mcaptcha.io; img-src &#39;self&#39;; style-src &#39;self&#39;; child-src &#39;none&#39;; script-src &#39;self&#39;;\&quot;\n/&gt;&quot;</span>);
};
}
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">&quot;\n&quot;</span>);
<span class="kw">if </span><span class="kw">crate</span>::SETTINGS.server.proxy_has_tls {
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">&quot;\n&quot;</span>);
{
__sf_rt :: render_text ! (__sf_buf , <span class="string">&quot;&lt;!--\nSPDX-FileCopyrightText: 2023 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;\nSPDX-License-Identifier: AGPL-3.0-or-later\n--&gt;\n&lt;meta\nhttp-equiv=\&quot;Strict-Transport-Security\&quot; content=\&quot;max-age=63072000\&quot;\n/&gt;&quot;</span>);
};
}
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">&quot;\n&quot;</span>);
}
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">&quot;\n&lt;/head&gt;\n&lt;body class=\&quot;layout\&quot;&gt;&quot;</span>);
};
}
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">&quot; &quot;</span>);
{
__sf_rt :: render_text ! (__sf_buf , <span class="string">&quot;&lt;!--\nSPDX-FileCopyrightText: 2023 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;\nSPDX-License-Identifier: AGPL-3.0-or-later\n--&gt;\n&lt;nav class=\&quot;secondary-menu\&quot;&gt;\n&lt;input type=\&quot;checkbox\&quot; class=\&quot;nav-toggle\&quot; id=\&quot;nav-toggle\&quot; &gt;\n&lt;div class=\&quot;secondary-menu__heading\&quot;&gt;\n&lt;a class=\&quot;novisit\&quot; href=\&quot;/\&quot;&gt;\n&lt;img class=\&quot;secondary-menu__logo\&quot; src=\&quot;&quot;</span>);
@@ -431,7 +429,7 @@
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">&quot;\&quot; alt=\&quot;&quot;</span>);
<span class="macro">__sf_rt::render_escaped!</span>(__sf_buf, <span class="kw">crate</span>::GITHUB.<span class="number">1</span>);
__sf_rt :: render_text ! (__sf_buf , <span class="string">&quot;\&quot; /&gt;\n&lt;div class=\&quot;secondary-menu__item-name\&quot;&gt;\nSource Code\n&lt;/div&gt;\n&lt;/a&gt;\n&lt;/li&gt;\n&lt;/ul&gt;\n&lt;/nav&gt;\n&lt;!-- Nav/Side/Secondary bar --&gt;&quot;</span>);
};
}
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">&quot;\n&lt;div class=\&quot;tmp-layout\&quot;&gt;\n&quot;</span>);
{
__sf_rt :: render_text ! (__sf_buf , <span class="string">&quot;&lt;!--\nSPDX-FileCopyrightText: 2023 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;\nSPDX-License-Identifier: AGPL-3.0-or-later\n--&gt;\n&lt;header&gt;\n&quot;</span>);
@@ -441,7 +439,7 @@
__sf_rt :: render_text ! (__sf_buf , <span class="string">&quot;&lt;!--\nSPDX-FileCopyrightText: 2023 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;\nSPDX-License-Identifier: AGPL-3.0-or-later\n--&gt;\n&lt;a class=\&quot;taskbar__link\&quot; href=\&quot;&quot;</span>);
<span class="macro">__sf_rt::render_escaped!</span>(__sf_buf, <span class="kw">crate</span>::PAGES.panel.sitekey.add_easy);
__sf_rt :: render_text ! (__sf_buf , <span class="string">&quot;\&quot;&gt;\n&lt;button class=\&quot;taskbar__add-site\&quot;&gt;\n+ New Site\n&lt;/button&gt;\n&lt;/a&gt;&quot;</span>);
};
}
__sf_rt :: render_text ! (__sf_buf , <span class="string">&quot;\n&lt;/li&gt;\n&lt;li class=\&quot;taskbar__action\&quot;&gt;\n&lt;img class=\&quot;taskbar__icon\&quot; src=\&quot;&quot;</span>);
<span class="macro">__sf_rt::render_escaped!</span>(
__sf_buf,
@@ -467,13 +465,13 @@
__sf_buf,
<span class="string">&quot;\&quot;\nalt=\&quot;Profile\&quot; /&gt;&lt;/a\n&gt;\n&lt;/li&gt;\n&lt;/ul&gt;&quot;
</span>);
};
}
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">&quot;\n&lt;/header&gt;&quot;</span>);
};
}
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">&quot;\n&lt;main class=\&quot;panel-main\&quot;&gt;\n&quot;</span>);
{
__sf_rt :: render_text ! (__sf_buf , <span class="string">&quot;&lt;!--\nSPDX-FileCopyrightText: 2023 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;\nSPDX-License-Identifier: AGPL-3.0-or-later\n--&gt;\n&lt;ol class=\&quot;help-text\&quot;&gt;\n&lt;li class=\&quot;help-text__instructions\&quot;&gt;\nAdd sitekey\n&lt;/li&gt;\n&lt;li class=\&quot;help-text__instructions\&quot;&gt;\nAdd client-side code snippets to protect pages\n&lt;/li&gt;\n&lt;li class=\&quot;help-text__instructions\&quot;&gt;\nAdd server-side verification logic\n&lt;/li&gt;\n&lt;/ol&gt;&quot;</span>);
};
}
__sf_rt :: render_text ! (__sf_buf , <span class="string">&quot;\n&lt;!-- Main content container --&gt;\n&lt;div class=\&quot;inner-container\&quot;&gt;\n&lt;!-- Main menu/ important actions roaster --&gt;\n&quot;</span>);
<span class="kw">if </span>sitekeys.is_empty() {
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">&quot;\n&quot;</span>);
@@ -483,13 +481,14 @@
__sf_rt :: render_text ! (__sf_buf , <span class="string">&quot;&lt;!--\nSPDX-FileCopyrightText: 2023 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;\nSPDX-License-Identifier: AGPL-3.0-or-later\n--&gt;\n&lt;a class=\&quot;taskbar__link\&quot; href=\&quot;&quot;</span>);
<span class="macro">__sf_rt::render_escaped!</span>(__sf_buf, <span class="kw">crate</span>::PAGES.panel.sitekey.add_easy);
__sf_rt :: render_text ! (__sf_buf , <span class="string">&quot;\&quot;&gt;\n&lt;button class=\&quot;taskbar__add-site\&quot;&gt;\n+ New Site\n&lt;/button&gt;\n&lt;/a&gt;&quot;</span>);
};
}
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">&quot; to add new sitekey.\n&lt;/p&gt;\n&lt;/ul&gt;&quot;</span>);
};
}
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">&quot;\n&quot;</span>);
} <span class="kw">else </span>{
__sf_rt :: render_text ! (__sf_buf , <span class="string">&quot;\n&lt;table class=\&quot;sitekey__table\&quot;&gt;\n&lt;thead class=\&quot;sitekey__table-heading\&quot;&gt;\n&lt;tr&gt;\n&lt;th colspan=\&quot;4\&quot; class=\&quot;sitekey__table-title-text\&quot;&gt;\nYour Sitekeys\n&lt;/th&gt;\n&lt;/tr&gt;\n&lt;/thead&gt;\n&lt;tbody class=\&quot;sitekey__body\&quot;&gt;\n\n&lt;tr class=\&quot;sitekey__item\&quot;&gt;\n&lt;td class=\&quot;sitekey-list__name\&quot;&gt;\n&lt;a\nhref=\&quot;/sitekey/&quot;</span>);
__sf_rt :: render_text ! (__sf_buf , <span class="string">&quot;\n&lt;table class=\&quot;sitekey__table\&quot;&gt;\n&lt;thead class=\&quot;sitekey__table-heading\&quot;&gt;\n&lt;tr&gt;\n&lt;th colspan=\&quot;4\&quot; class=\&quot;sitekey__table-title-text\&quot;&gt;\nYour Sitekeys\n&lt;/th&gt;\n&lt;/tr&gt;\n&lt;/thead&gt;\n&lt;tbody class=\&quot;sitekey__body\&quot;&gt;\n&quot;</span>);
<span class="kw">for </span>sitekey <span class="kw">in </span>sitekeys.iter() {
__sf_rt :: render_text ! (__sf_buf , <span class="string">&quot;\n&lt;tr class=\&quot;sitekey__item\&quot;&gt;\n&lt;td class=\&quot;sitekey-list__name\&quot;&gt;\n&lt;a\nhref=\&quot;/sitekey/&quot;</span>);
<span class="macro">__sf_rt::render_escaped!</span>(__sf_buf, sitekey.key);
<span class="macro">__sf_rt::render_text!</span>(
__sf_buf,
@@ -527,7 +526,7 @@
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">&quot;\&quot;\nalt=\&quot;&quot;</span>);
<span class="macro">__sf_rt::render_escaped!</span>(__sf_buf, DONE_ALT);
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">&quot;\&quot;\n/&gt;&quot;</span>);
};
}
<span class="macro">__sf_rt::render_text!</span>(
__sf_buf,
<span class="string">&quot;\n&lt;a\nclass=\&quot;sitekey__widget-link\&quot;\nhref=\&quot;&quot;
@@ -552,11 +551,8 @@
<span class="kw">crate</span>::FILES.get(<span class="string">&quot;./static/cache/img/svg/edit.svg&quot;</span>).unwrap()
);
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">&quot;\&quot; alt=\&quot;Edit\nsitekey\&quot; /&gt;\n&lt;/a&gt;&quot;</span>);
};
__sf_rt :: render_text ! (__sf_buf , <span class="string">&quot;\n&lt;/div&gt;\n&lt;/td&gt;\n&lt;/tr&gt;\n\n&lt;tr class=\&quot;sitekey__item\&quot;&gt;\n&lt;td class=\&quot;sitekey-list__name\&quot;&gt;\n&lt;a\nhref=\&quot;/sitekey/&quot;</span>);
}
<span class="kw">unsafe </span>{
__sf_buf._set_len(__sf_buf.len() - <span class="number">78usize</span>);
}
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">&quot;\n&lt;/div&gt;\n&lt;/td&gt;\n&lt;/tr&gt;\n&quot;</span>);
}
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">&quot;\n&lt;/tbody&gt;\n&lt;/table&gt;\n&quot;</span>);
}
@@ -588,7 +584,7 @@
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">&quot;-&quot;</span>);
<span class="macro">__sf_rt::render_escaped!</span>(__sf_buf, <span class="kw">crate</span>::GIT_COMMIT_HASH[<span class="number">0</span>..<span class="number">8</span>]);
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">&quot;\n&lt;/a&gt;\n&lt;/li&gt;\n&lt;/ul&gt;\n&lt;/footer&gt;&quot;</span>);
};
}
__sf_rt :: render_text ! (__sf_buf , <span class="string">&quot;\n&lt;/div&gt;\n&lt;link\nrel=\&quot;stylesheet\&quot;\nmedia=\&quot;all\&quot;\ntype=\&quot;text/css\&quot;\nhref=\&quot;&quot;</span>);
<span class="macro">__sf_rt::render_escaped!</span>(__sf_buf, <span class="kw-2">&amp;*</span><span class="kw">crate</span>::CSS);
__sf_rt :: render_text ! (__sf_buf , <span class="string">&quot;\&quot;\n/&gt;\n&lt;link\nrel=\&quot;stylesheet\&quot;\nmedia=\&quot;screen and (max-width: 1250px)\&quot;\ntype=\&quot;text/css\&quot;\nhref=\&quot;&quot;</span>);
@@ -598,9 +594,9 @@
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">&quot;\&quot;&gt;&lt;/script&gt;\n&quot;</span>);
{
__sf_rt :: render_text ! (__sf_buf , <span class="string">&quot;&lt;!--\nSPDX-FileCopyrightText: 2023 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;\nSPDX-License-Identifier: AGPL-3.0-or-later\n--&gt;\n&lt;div id=\&quot;err__container\&quot;&gt;&lt;/div&gt;&quot;</span>);
};
}
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">&quot;\n&lt;/body&gt;\n&lt;/html&gt;&quot;</span>);
};
}
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">&quot;\n&lt;/main&gt;\n&lt;/div&gt;&quot;</span>);
}