Deploying to gh-pages from @ 5f5420d10f4888e93d0126df420f3293b04ec761 🚀

This commit is contained in:
realaravinth
2023-07-04 10:11:44 +00:00
parent 58d2aece4e
commit b8d2d0ef37
742 changed files with 1586 additions and 3138 deletions

View File

@@ -48,33 +48,11 @@
<a href="#48" id="48">48</a>
<a href="#49" id="49">49</a>
<a href="#50" id="50">50</a>
<a href="#51" id="51">51</a>
<a href="#52" id="52">52</a>
<a href="#53" id="53">53</a>
<a href="#54" id="54">54</a>
<a href="#55" id="55">55</a>
<a href="#56" id="56">56</a>
<a href="#57" id="57">57</a>
<a href="#58" id="58">58</a>
<a href="#59" id="59">59</a>
<a href="#60" id="60">60</a>
<a href="#61" id="61">61</a>
</pre></div><pre class="rust"><code><span class="comment">/*
* Copyright (C) 2022 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see &lt;https://www.gnu.org/licenses/&gt;.
*/
</pre></div><pre class="rust"><code><span class="comment">// Copyright (C) 2022 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;
// SPDX-FileCopyrightText: 2023 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;
//
// SPDX-License-Identifier: AGPL-3.0-or-later
</span><span class="doccomment">//! represents all the ways a trait can fail using this crate
</span><span class="kw">use </span>std::error::Error <span class="kw">as </span>StdError;

View File

@@ -415,34 +415,10 @@
<a href="#415" id="415">415</a>
<a href="#416" id="416">416</a>
<a href="#417" id="417">417</a>
<a href="#418" id="418">418</a>
<a href="#419" id="419">419</a>
<a href="#420" id="420">420</a>
<a href="#421" id="421">421</a>
<a href="#422" id="422">422</a>
<a href="#423" id="423">423</a>
<a href="#424" id="424">424</a>
<a href="#425" id="425">425</a>
<a href="#426" id="426">426</a>
<a href="#427" id="427">427</a>
<a href="#428" id="428">428</a>
<a href="#429" id="429">429</a>
</pre></div><pre class="rust"><code><span class="comment">/*
* Copyright (C) 2022 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see &lt;https://www.gnu.org/licenses/&gt;.
*/
</pre></div><pre class="rust"><code><span class="comment">// Copyright (C) 2022 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;
// SPDX-FileCopyrightText: 2023 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;
//
// SPDX-License-Identifier: AGPL-3.0-or-later
</span><span class="attr">#![warn(missing_docs)]
</span><span class="doccomment">//! # `mCaptcha` database operations

View File

@@ -36,33 +36,11 @@
<a href="#36" id="36">36</a>
<a href="#37" id="37">37</a>
<a href="#38" id="38">38</a>
<a href="#39" id="39">39</a>
<a href="#40" id="40">40</a>
<a href="#41" id="41">41</a>
<a href="#42" id="42">42</a>
<a href="#43" id="43">43</a>
<a href="#44" id="44">44</a>
<a href="#45" id="45">45</a>
<a href="#46" id="46">46</a>
<a href="#47" id="47">47</a>
<a href="#48" id="48">48</a>
<a href="#49" id="49">49</a>
</pre></div><pre class="rust"><code><span class="comment">/*
* Copyright (C) 2022 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see &lt;https://www.gnu.org/licenses/&gt;.
*/
</pre></div><pre class="rust"><code><span class="comment">// Copyright (C) 2022 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;
// SPDX-FileCopyrightText: 2023 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;
//
// SPDX-License-Identifier: AGPL-3.0-or-later
</span><span class="doccomment">//! meta operations like migration and connecting to a database
</span><span class="kw">use </span><span class="kw">crate</span>::dev::<span class="kw-2">*</span>;

View File

@@ -339,33 +339,11 @@
<a href="#339" id="339">339</a>
<a href="#340" id="340">340</a>
<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>
<a href="#346" id="346">346</a>
<a href="#347" id="347">347</a>
<a href="#348" id="348">348</a>
<a href="#349" id="349">349</a>
<a href="#350" id="350">350</a>
<a href="#351" id="351">351</a>
<a href="#352" id="352">352</a>
</pre></div><pre class="rust"><code><span class="comment">/*
* Copyright (C) 2022 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see &lt;https://www.gnu.org/licenses/&gt;.
*/
</pre></div><pre class="rust"><code><span class="comment">// Copyright (C) 2022 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;
// SPDX-FileCopyrightText: 2023 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;
//
// SPDX-License-Identifier: AGPL-3.0-or-later
</span><span class="doccomment">//! Test utilities
</span><span class="kw">use </span><span class="kw">crate</span>::errors::<span class="kw-2">*</span>;
<span class="kw">use </span><span class="kw">crate</span>::prelude::<span class="kw-2">*</span>;

View File

@@ -41,34 +41,10 @@
<a href="#41" id="41">41</a>
<a href="#42" id="42">42</a>
<a href="#43" id="43">43</a>
<a href="#44" id="44">44</a>
<a href="#45" id="45">45</a>
<a href="#46" id="46">46</a>
<a href="#47" id="47">47</a>
<a href="#48" id="48">48</a>
<a href="#49" id="49">49</a>
<a href="#50" id="50">50</a>
<a href="#51" id="51">51</a>
<a href="#52" id="52">52</a>
<a href="#53" id="53">53</a>
<a href="#54" id="54">54</a>
<a href="#55" id="55">55</a>
</pre></div><pre class="rust"><code><span class="comment">/*
* Copyright (C) 2022 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see &lt;https://www.gnu.org/licenses/&gt;.
*/
</pre></div><pre class="rust"><code><span class="comment">// Copyright (C) 2022 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;
// SPDX-FileCopyrightText: 2023 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;
//
// SPDX-License-Identifier: AGPL-3.0-or-later
</span><span class="doccomment">//! Error-handling utilities
</span><span class="kw">use </span>std::borrow::Cow;

View File

@@ -1135,33 +1135,11 @@
<a href="#1135" id="1135">1135</a>
<a href="#1136" id="1136">1136</a>
<a href="#1137" id="1137">1137</a>
<a href="#1138" id="1138">1138</a>
<a href="#1139" id="1139">1139</a>
<a href="#1140" id="1140">1140</a>
<a href="#1141" id="1141">1141</a>
<a href="#1142" id="1142">1142</a>
<a href="#1143" id="1143">1143</a>
<a href="#1144" id="1144">1144</a>
<a href="#1145" id="1145">1145</a>
<a href="#1146" id="1146">1146</a>
<a href="#1147" id="1147">1147</a>
<a href="#1148" id="1148">1148</a>
</pre></div><pre class="rust"><code><span class="comment">/*
* Copyright (C) 2022 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see &lt;https://www.gnu.org/licenses/&gt;.
*/
</pre></div><pre class="rust"><code><span class="comment">// Copyright (C) 2022 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;
// SPDX-FileCopyrightText: 2023 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;
//
// SPDX-License-Identifier: AGPL-3.0-or-later
</span><span class="kw">use </span>std::str::FromStr;
<span class="kw">use </span>db_core::dev::<span class="kw-2">*</span>;

View File

@@ -42,34 +42,10 @@
<a href="#42" id="42">42</a>
<a href="#43" id="43">43</a>
<a href="#44" id="44">44</a>
<a href="#45" id="45">45</a>
<a href="#46" id="46">46</a>
<a href="#47" id="47">47</a>
<a href="#48" id="48">48</a>
<a href="#49" id="49">49</a>
<a href="#50" id="50">50</a>
<a href="#51" id="51">51</a>
<a href="#52" id="52">52</a>
<a href="#53" id="53">53</a>
<a href="#54" id="54">54</a>
<a href="#55" id="55">55</a>
<a href="#56" id="56">56</a>
</pre></div><pre class="rust"><code><span class="comment">/*
* Copyright (C) 2022 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see &lt;https://www.gnu.org/licenses/&gt;.
*/
</pre></div><pre class="rust"><code><span class="comment">// Copyright (C) 2022 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;
// SPDX-FileCopyrightText: 2023 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;
//
// SPDX-License-Identifier: AGPL-3.0-or-later
</span><span class="doccomment">//! Error-handling utilities
</span><span class="kw">use </span>std::borrow::Cow;

View File

@@ -1144,33 +1144,11 @@
<a href="#1144" id="1144">1144</a>
<a href="#1145" id="1145">1145</a>
<a href="#1146" id="1146">1146</a>
<a href="#1147" id="1147">1147</a>
<a href="#1148" id="1148">1148</a>
<a href="#1149" id="1149">1149</a>
<a href="#1150" id="1150">1150</a>
<a href="#1151" id="1151">1151</a>
<a href="#1152" id="1152">1152</a>
<a href="#1153" id="1153">1153</a>
<a href="#1154" id="1154">1154</a>
<a href="#1155" id="1155">1155</a>
<a href="#1156" id="1156">1156</a>
<a href="#1157" id="1157">1157</a>
</pre></div><pre class="rust"><code><span class="comment">/*
* Copyright (C) 2022 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see &lt;https://www.gnu.org/licenses/&gt;.
*/
</pre></div><pre class="rust"><code><span class="comment">// Copyright (C) 2022 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;
// SPDX-FileCopyrightText: 2023 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;
//
// SPDX-License-Identifier: AGPL-3.0-or-later
</span><span class="kw">use </span>std::str::FromStr;
<span class="kw">use </span>db_core::dev::<span class="kw-2">*</span>;

View File

@@ -4,34 +4,10 @@
<a href="#4" id="4">4</a>
<a href="#5" id="5">5</a>
<a href="#6" id="6">6</a>
<a href="#7" id="7">7</a>
<a href="#8" id="8">8</a>
<a href="#9" id="9">9</a>
<a href="#10" id="10">10</a>
<a href="#11" id="11">11</a>
<a href="#12" id="12">12</a>
<a href="#13" id="13">13</a>
<a href="#14" id="14">14</a>
<a href="#15" id="15">15</a>
<a href="#16" id="16">16</a>
<a href="#17" id="17">17</a>
<a href="#18" id="18">18</a>
</pre></div><pre class="rust"><code><span class="comment">/*
* Copyright (C) 2022 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see &lt;https://www.gnu.org/licenses/&gt;.
*/
</pre></div><pre class="rust"><code><span class="comment">// Copyright (C) 2022 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;
// SPDX-FileCopyrightText: 2023 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;
//
// SPDX-License-Identifier: AGPL-3.0-or-later
</span><span class="kw">pub mod </span>v1;
</code></pre></div></section></main></body></html>

View File

@@ -50,34 +50,10 @@
<a href="#50" id="50">50</a>
<a href="#51" id="51">51</a>
<a href="#52" id="52">52</a>
<a href="#53" id="53">53</a>
<a href="#54" id="54">54</a>
<a href="#55" id="55">55</a>
<a href="#56" id="56">56</a>
<a href="#57" id="57">57</a>
<a href="#58" id="58">58</a>
<a href="#59" id="59">59</a>
<a href="#60" id="60">60</a>
<a href="#61" id="61">61</a>
<a href="#62" id="62">62</a>
<a href="#63" id="63">63</a>
<a href="#64" id="64">64</a>
</pre></div><pre class="rust"><code><span class="comment">/*
* Copyright (C) 2022 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see &lt;https://www.gnu.org/licenses/&gt;.
*/
</pre></div><pre class="rust"><code><span class="comment">// Copyright (C) 2022 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;
// SPDX-FileCopyrightText: 2023 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;
//
// SPDX-License-Identifier: AGPL-3.0-or-later
</span><span class="kw">use </span>actix_identity::Identity;
<span class="kw">use </span>actix_web::{web, HttpResponse, Responder};

View File

@@ -57,33 +57,11 @@
<a href="#57" id="57">57</a>
<a href="#58" id="58">58</a>
<a href="#59" id="59">59</a>
<a href="#60" id="60">60</a>
<a href="#61" id="61">61</a>
<a href="#62" id="62">62</a>
<a href="#63" id="63">63</a>
<a href="#64" id="64">64</a>
<a href="#65" id="65">65</a>
<a href="#66" id="66">66</a>
<a href="#67" id="67">67</a>
<a href="#68" id="68">68</a>
<a href="#69" id="69">69</a>
<a href="#70" id="70">70</a>
</pre></div><pre class="rust"><code><span class="comment">/*
* Copyright (C) 2022 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see &lt;https://www.gnu.org/licenses/&gt;.
*/
</pre></div><pre class="rust"><code><span class="comment">// Copyright (C) 2022 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;
// SPDX-FileCopyrightText: 2023 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;
//
// SPDX-License-Identifier: AGPL-3.0-or-later
</span><span class="kw">use </span>actix_identity::Identity;
<span class="kw">use </span>actix_web::{web, HttpResponse, Responder};
<span class="kw">use </span>db_core::UpdateEmail;

View File

@@ -70,34 +70,10 @@
<a href="#70" id="70">70</a>
<a href="#71" id="71">71</a>
<a href="#72" id="72">72</a>
<a href="#73" id="73">73</a>
<a href="#74" id="74">74</a>
<a href="#75" id="75">75</a>
<a href="#76" id="76">76</a>
<a href="#77" id="77">77</a>
<a href="#78" id="78">78</a>
<a href="#79" id="79">79</a>
<a href="#80" id="80">80</a>
<a href="#81" id="81">81</a>
<a href="#82" id="82">82</a>
<a href="#83" id="83">83</a>
<a href="#84" id="84">84</a>
</pre></div><pre class="rust"><code><span class="comment">/*
* Copyright (C) 2022 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see &lt;https://www.gnu.org/licenses/&gt;.
*/
</pre></div><pre class="rust"><code><span class="comment">// Copyright (C) 2022 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;
// SPDX-FileCopyrightText: 2023 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;
//
// SPDX-License-Identifier: AGPL-3.0-or-later
</span><span class="kw">use </span>serde::{Deserialize, Serialize};

View File

@@ -189,33 +189,11 @@
<a href="#189" id="189">189</a>
<a href="#190" id="190">190</a>
<a href="#191" id="191">191</a>
<a href="#192" id="192">192</a>
<a href="#193" id="193">193</a>
<a href="#194" id="194">194</a>
<a href="#195" id="195">195</a>
<a href="#196" id="196">196</a>
<a href="#197" id="197">197</a>
<a href="#198" id="198">198</a>
<a href="#199" id="199">199</a>
<a href="#200" id="200">200</a>
<a href="#201" id="201">201</a>
<a href="#202" id="202">202</a>
</pre></div><pre class="rust"><code><span class="comment">/*
* Copyright (C) 2022 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see &lt;https://www.gnu.org/licenses/&gt;.
*/
</pre></div><pre class="rust"><code><span class="comment">// Copyright (C) 2022 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;
// SPDX-FileCopyrightText: 2023 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;
//
// SPDX-License-Identifier: AGPL-3.0-or-later
</span><span class="kw">use </span>actix_identity::Identity;
<span class="kw">use </span>actix_web::{web, HttpResponse, Responder};
<span class="kw">use </span>argon2_creds::Config;

View File

@@ -50,33 +50,11 @@
<a href="#50" id="50">50</a>
<a href="#51" id="51">51</a>
<a href="#52" id="52">52</a>
<a href="#53" id="53">53</a>
<a href="#54" id="54">54</a>
<a href="#55" id="55">55</a>
<a href="#56" id="56">56</a>
<a href="#57" id="57">57</a>
<a href="#58" id="58">58</a>
<a href="#59" id="59">59</a>
<a href="#60" id="60">60</a>
<a href="#61" id="61">61</a>
<a href="#62" id="62">62</a>
<a href="#63" id="63">63</a>
</pre></div><pre class="rust"><code><span class="comment">/*
* Copyright (C) 2022 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see &lt;https://www.gnu.org/licenses/&gt;.
*/
</pre></div><pre class="rust"><code><span class="comment">// Copyright (C) 2022 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;
// SPDX-FileCopyrightText: 2023 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;
//
// SPDX-License-Identifier: AGPL-3.0-or-later
</span><span class="kw">use </span>actix_identity::Identity;
<span class="kw">use </span>actix_web::{HttpResponse, Responder};
<span class="kw">use </span>db_core::prelude::<span class="kw-2">*</span>;

View File

@@ -64,33 +64,11 @@
<a href="#64" id="64">64</a>
<a href="#65" id="65">65</a>
<a href="#66" id="66">66</a>
<a href="#67" id="67">67</a>
<a href="#68" id="68">68</a>
<a href="#69" id="69">69</a>
<a href="#70" id="70">70</a>
<a href="#71" id="71">71</a>
<a href="#72" id="72">72</a>
<a href="#73" id="73">73</a>
<a href="#74" id="74">74</a>
<a href="#75" id="75">75</a>
<a href="#76" id="76">76</a>
<a href="#77" id="77">77</a>
</pre></div><pre class="rust"><code><span class="comment">/*
* Copyright (C) 2022 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see &lt;https://www.gnu.org/licenses/&gt;.
*/
</pre></div><pre class="rust"><code><span class="comment">// Copyright (C) 2022 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;
// SPDX-FileCopyrightText: 2023 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;
//
// SPDX-License-Identifier: AGPL-3.0-or-later
</span><span class="kw">use </span>actix_identity::Identity;
<span class="kw">use </span>actix_web::{web, HttpResponse, Responder};
<span class="kw">use </span>serde::{Deserialize, Serialize};

View File

@@ -188,34 +188,10 @@
<a href="#188" id="188">188</a>
<a href="#189" id="189">189</a>
<a href="#190" id="190">190</a>
<a href="#191" id="191">191</a>
<a href="#192" id="192">192</a>
<a href="#193" id="193">193</a>
<a href="#194" id="194">194</a>
<a href="#195" id="195">195</a>
<a href="#196" id="196">196</a>
<a href="#197" id="197">197</a>
<a href="#198" id="198">198</a>
<a href="#199" id="199">199</a>
<a href="#200" id="200">200</a>
<a href="#201" id="201">201</a>
<a href="#202" id="202">202</a>
</pre></div><pre class="rust"><code><span class="comment">/*
* Copyright (C) 2022 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see &lt;https://www.gnu.org/licenses/&gt;.
*/
</pre></div><pre class="rust"><code><span class="comment">// Copyright (C) 2022 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;
// SPDX-FileCopyrightText: 2023 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;
//
// SPDX-License-Identifier: AGPL-3.0-or-later
</span><span class="kw">use </span>actix_identity::Identity;
<span class="kw">use </span>actix_web::http::header;

View File

@@ -92,33 +92,11 @@
<a href="#92" id="92">92</a>
<a href="#93" id="93">93</a>
<a href="#94" id="94">94</a>
<a href="#95" id="95">95</a>
<a href="#96" id="96">96</a>
<a href="#97" id="97">97</a>
<a href="#98" id="98">98</a>
<a href="#99" id="99">99</a>
<a href="#100" id="100">100</a>
<a href="#101" id="101">101</a>
<a href="#102" id="102">102</a>
<a href="#103" id="103">103</a>
<a href="#104" id="104">104</a>
<a href="#105" id="105">105</a>
</pre></div><pre class="rust"><code><span class="comment">/*
* Copyright (C) 2022 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see &lt;https://www.gnu.org/licenses/&gt;.
*/
</pre></div><pre class="rust"><code><span class="comment">// Copyright (C) 2022 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;
// SPDX-FileCopyrightText: 2023 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;
//
// SPDX-License-Identifier: AGPL-3.0-or-later
</span><span class="kw">use </span>actix_identity::Identity;
<span class="kw">use </span>actix_web::{web, HttpResponse, Responder};
<span class="kw">use </span>libmcaptcha::defense::Level;

View File

@@ -45,33 +45,11 @@
<a href="#45" id="45">45</a>
<a href="#46" id="46">46</a>
<a href="#47" id="47">47</a>
<a href="#48" id="48">48</a>
<a href="#49" id="49">49</a>
<a href="#50" id="50">50</a>
<a href="#51" id="51">51</a>
<a href="#52" id="52">52</a>
<a href="#53" id="53">53</a>
<a href="#54" id="54">54</a>
<a href="#55" id="55">55</a>
<a href="#56" id="56">56</a>
<a href="#57" id="57">57</a>
<a href="#58" id="58">58</a>
</pre></div><pre class="rust"><code><span class="comment">/*
* Copyright (C) 2022 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see &lt;https://www.gnu.org/licenses/&gt;.
*/
</pre></div><pre class="rust"><code><span class="comment">// Copyright (C) 2022 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;
// SPDX-FileCopyrightText: 2023 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;
//
// SPDX-License-Identifier: AGPL-3.0-or-later
</span><span class="kw">use </span>actix_identity::Identity;
<span class="kw">use </span>actix_web::{web, HttpResponse, Responder};
<span class="kw">use </span>libmcaptcha::master::messages::RemoveCaptcha;

View File

@@ -450,33 +450,11 @@
<a href="#450" id="450">450</a>
<a href="#451" id="451">451</a>
<a href="#452" id="452">452</a>
<a href="#453" id="453">453</a>
<a href="#454" id="454">454</a>
<a href="#455" id="455">455</a>
<a href="#456" id="456">456</a>
<a href="#457" id="457">457</a>
<a href="#458" id="458">458</a>
<a href="#459" id="459">459</a>
<a href="#460" id="460">460</a>
<a href="#461" id="461">461</a>
<a href="#462" id="462">462</a>
<a href="#463" id="463">463</a>
</pre></div><pre class="rust"><code><span class="comment">/*
* Copyright (C) 2022 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see &lt;https://www.gnu.org/licenses/&gt;.
*/
</pre></div><pre class="rust"><code><span class="comment">// Copyright (C) 2022 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;
// SPDX-FileCopyrightText: 2023 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;
//
// SPDX-License-Identifier: AGPL-3.0-or-later
</span><span class="kw">use </span>actix_identity::Identity;
<span class="kw">use </span>actix_web::{web, HttpResponse, Responder};
<span class="kw">use </span>libmcaptcha::{defense::Level, defense::LevelBuilder};

View File

@@ -39,33 +39,11 @@
<a href="#39" id="39">39</a>
<a href="#40" id="40">40</a>
<a href="#41" id="41">41</a>
<a href="#42" id="42">42</a>
<a href="#43" id="43">43</a>
<a href="#44" id="44">44</a>
<a href="#45" id="45">45</a>
<a href="#46" id="46">46</a>
<a href="#47" id="47">47</a>
<a href="#48" id="48">48</a>
<a href="#49" id="49">49</a>
<a href="#50" id="50">50</a>
<a href="#51" id="51">51</a>
<a href="#52" id="52">52</a>
</pre></div><pre class="rust"><code><span class="comment">/*
* Copyright (C) 2022 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see &lt;https://www.gnu.org/licenses/&gt;.
*/
</pre></div><pre class="rust"><code><span class="comment">// Copyright (C) 2022 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;
// SPDX-FileCopyrightText: 2023 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;
//
// SPDX-License-Identifier: AGPL-3.0-or-later
</span><span class="kw">use </span>actix_identity::Identity;
<span class="kw">use </span>actix_web::{web, HttpResponse, Responder};

View File

@@ -64,34 +64,10 @@
<a href="#64" id="64">64</a>
<a href="#65" id="65">65</a>
<a href="#66" id="66">66</a>
<a href="#67" id="67">67</a>
<a href="#68" id="68">68</a>
<a href="#69" id="69">69</a>
<a href="#70" id="70">70</a>
<a href="#71" id="71">71</a>
<a href="#72" id="72">72</a>
<a href="#73" id="73">73</a>
<a href="#74" id="74">74</a>
<a href="#75" id="75">75</a>
<a href="#76" id="76">76</a>
<a href="#77" id="77">77</a>
<a href="#78" id="78">78</a>
</pre></div><pre class="rust"><code><span class="comment">/*
* Copyright (C) 2022 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see &lt;https://www.gnu.org/licenses/&gt;.
*/
</pre></div><pre class="rust"><code><span class="comment">// Copyright (C) 2022 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;
// SPDX-FileCopyrightText: 2023 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;
//
// SPDX-License-Identifier: AGPL-3.0-or-later
</span><span class="kw">pub mod </span>create;
<span class="kw">pub mod </span>delete;

View File

@@ -41,33 +41,11 @@
<a href="#41" id="41">41</a>
<a href="#42" id="42">42</a>
<a href="#43" id="43">43</a>
<a href="#44" id="44">44</a>
<a href="#45" id="45">45</a>
<a href="#46" id="46">46</a>
<a href="#47" id="47">47</a>
<a href="#48" id="48">48</a>
<a href="#49" id="49">49</a>
<a href="#50" id="50">50</a>
<a href="#51" id="51">51</a>
<a href="#52" id="52">52</a>
<a href="#53" id="53">53</a>
<a href="#54" id="54">54</a>
</pre></div><pre class="rust"><code><span class="comment">/*
* Copyright (C) 2022 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see &lt;https://www.gnu.org/licenses/&gt;.
*/
</pre></div><pre class="rust"><code><span class="comment">// Copyright (C) 2022 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;
// SPDX-FileCopyrightText: 2023 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;
//
// SPDX-License-Identifier: AGPL-3.0-or-later
</span><span class="kw">use </span>actix_identity::Identity;
<span class="kw">use </span>actix_web::{web, HttpResponse, Responder};
<span class="kw">use </span>serde::{Deserialize, Serialize};

View File

@@ -215,33 +215,11 @@
<a href="#215" id="215">215</a>
<a href="#216" id="216">216</a>
<a href="#217" id="217">217</a>
<a href="#218" id="218">218</a>
<a href="#219" id="219">219</a>
<a href="#220" id="220">220</a>
<a href="#221" id="221">221</a>
<a href="#222" id="222">222</a>
<a href="#223" id="223">223</a>
<a href="#224" id="224">224</a>
<a href="#225" id="225">225</a>
<a href="#226" id="226">226</a>
<a href="#227" id="227">227</a>
<a href="#228" id="228">228</a>
</pre></div><pre class="rust"><code><span class="comment">/*
* Copyright (C) 2022 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see &lt;https://www.gnu.org/licenses/&gt;.
*/
</pre></div><pre class="rust"><code><span class="comment">// Copyright (C) 2022 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;
// SPDX-FileCopyrightText: 2023 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;
//
// SPDX-License-Identifier: AGPL-3.0-or-later
</span><span class="kw">use </span>actix_identity::Identity;
<span class="kw">use </span>actix_web::{web, HttpResponse, Responder};
<span class="kw">use </span>libmcaptcha::defense::Level;

View File

@@ -139,34 +139,10 @@
<a href="#139" id="139">139</a>
<a href="#140" id="140">140</a>
<a href="#141" id="141">141</a>
<a href="#142" id="142">142</a>
<a href="#143" id="143">143</a>
<a href="#144" id="144">144</a>
<a href="#145" id="145">145</a>
<a href="#146" id="146">146</a>
<a href="#147" id="147">147</a>
<a href="#148" id="148">148</a>
<a href="#149" id="149">149</a>
<a href="#150" id="150">150</a>
<a href="#151" id="151">151</a>
<a href="#152" id="152">152</a>
<a href="#153" id="153">153</a>
</pre></div><pre class="rust"><code><span class="comment">/*
* Copyright (C) 2022 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see &lt;https://www.gnu.org/licenses/&gt;.
*/
</pre></div><pre class="rust"><code><span class="comment">// Copyright (C) 2022 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;
// SPDX-FileCopyrightText: 2023 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;
//
// SPDX-License-Identifier: AGPL-3.0-or-later
</span><span class="kw">use </span>actix_web::{web, HttpResponse, Responder};
<span class="kw">use </span>derive_builder::Builder;

View File

@@ -37,34 +37,10 @@
<a href="#37" id="37">37</a>
<a href="#38" id="38">38</a>
<a href="#39" id="39">39</a>
<a href="#40" id="40">40</a>
<a href="#41" id="41">41</a>
<a href="#42" id="42">42</a>
<a href="#43" id="43">43</a>
<a href="#44" id="44">44</a>
<a href="#45" id="45">45</a>
<a href="#46" id="46">46</a>
<a href="#47" id="47">47</a>
<a href="#48" id="48">48</a>
<a href="#49" id="49">49</a>
<a href="#50" id="50">50</a>
<a href="#51" id="51">51</a>
</pre></div><pre class="rust"><code><span class="comment">/*
* Copyright (C) 2022 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see &lt;https://www.gnu.org/licenses/&gt;.
*/
</pre></div><pre class="rust"><code><span class="comment">// Copyright (C) 2022 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;
// SPDX-FileCopyrightText: 2023 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;
//
// SPDX-License-Identifier: AGPL-3.0-or-later
</span><span class="kw">use </span>actix_auth_middleware::Authentication;
<span class="kw">use </span>actix_web::web::ServiceConfig;

View File

@@ -99,34 +99,10 @@
<a href="#99" id="99">99</a>
<a href="#100" id="100">100</a>
<a href="#101" id="101">101</a>
<a href="#102" id="102">102</a>
<a href="#103" id="103">103</a>
<a href="#104" id="104">104</a>
<a href="#105" id="105">105</a>
<a href="#106" id="106">106</a>
<a href="#107" id="107">107</a>
<a href="#108" id="108">108</a>
<a href="#109" id="109">109</a>
<a href="#110" id="110">110</a>
<a href="#111" id="111">111</a>
<a href="#112" id="112">112</a>
<a href="#113" id="113">113</a>
</pre></div><pre class="rust"><code><span class="comment">/*
* Copyright (C) 2022 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see &lt;https://www.gnu.org/licenses/&gt;.
*/
</pre></div><pre class="rust"><code><span class="comment">// Copyright (C) 2022 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;
// SPDX-FileCopyrightText: 2023 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;
//
// SPDX-License-Identifier: AGPL-3.0-or-later
</span><span class="kw">use </span>actix_identity::Identity;
<span class="kw">use </span>actix_web::{web, HttpResponse, Responder};

View File

@@ -140,34 +140,10 @@
<a href="#140" id="140">140</a>
<a href="#141" id="141">141</a>
<a href="#142" id="142">142</a>
<a href="#143" id="143">143</a>
<a href="#144" id="144">144</a>
<a href="#145" id="145">145</a>
<a href="#146" id="146">146</a>
<a href="#147" id="147">147</a>
<a href="#148" id="148">148</a>
<a href="#149" id="149">149</a>
<a href="#150" id="150">150</a>
<a href="#151" id="151">151</a>
<a href="#152" id="152">152</a>
<a href="#153" id="153">153</a>
<a href="#154" id="154">154</a>
</pre></div><pre class="rust"><code><span class="comment">/*
* Copyright (C) 2022 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see &lt;https://www.gnu.org/licenses/&gt;.
*/
</pre></div><pre class="rust"><code><span class="comment">// Copyright (C) 2022 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;
// SPDX-FileCopyrightText: 2023 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;
//
// SPDX-License-Identifier: AGPL-3.0-or-later
</span><span class="kw">use </span>actix_identity::Identity;
<span class="kw">use </span>actix_web::{HttpResponse, Responder};

View File

@@ -138,34 +138,10 @@
<a href="#138" id="138">138</a>
<a href="#139" id="139">139</a>
<a href="#140" id="140">140</a>
<a href="#141" id="141">141</a>
<a href="#142" id="142">142</a>
<a href="#143" id="143">143</a>
<a href="#144" id="144">144</a>
<a href="#145" id="145">145</a>
<a href="#146" id="146">146</a>
<a href="#147" id="147">147</a>
<a href="#148" id="148">148</a>
<a href="#149" id="149">149</a>
<a href="#150" id="150">150</a>
<a href="#151" id="151">151</a>
<a href="#152" id="152">152</a>
</pre></div><pre class="rust"><code><span class="comment">/*
* Copyright (C) 2022 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see &lt;https://www.gnu.org/licenses/&gt;.
*/
</pre></div><pre class="rust"><code><span class="comment">// Copyright (C) 2022 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;
// SPDX-FileCopyrightText: 2023 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;
//
// SPDX-License-Identifier: AGPL-3.0-or-later
</span><span class="kw">use </span>actix_identity::Identity;
<span class="kw">use </span>actix_web::{web, HttpResponse, Responder};

View File

@@ -31,34 +31,10 @@
<a href="#31" id="31">31</a>
<a href="#32" id="32">32</a>
<a href="#33" id="33">33</a>
<a href="#34" id="34">34</a>
<a href="#35" id="35">35</a>
<a href="#36" id="36">36</a>
<a href="#37" id="37">37</a>
<a href="#38" id="38">38</a>
<a href="#39" id="39">39</a>
<a href="#40" id="40">40</a>
<a href="#41" id="41">41</a>
<a href="#42" id="42">42</a>
<a href="#43" id="43">43</a>
<a href="#44" id="44">44</a>
<a href="#45" id="45">45</a>
</pre></div><pre class="rust"><code><span class="comment">/*
* Copyright (C) 2022 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see &lt;https://www.gnu.org/licenses/&gt;.
*/
</pre></div><pre class="rust"><code><span class="comment">// Copyright (C) 2022 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;
// SPDX-FileCopyrightText: 2023 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;
//
// SPDX-License-Identifier: AGPL-3.0-or-later
</span><span class="kw">pub mod </span>add;
<span class="kw">pub mod </span>get;

View File

@@ -290,34 +290,10 @@
<a href="#290" id="290">290</a>
<a href="#291" id="291">291</a>
<a href="#292" id="292">292</a>
<a href="#293" id="293">293</a>
<a href="#294" id="294">294</a>
<a href="#295" id="295">295</a>
<a href="#296" id="296">296</a>
<a href="#297" id="297">297</a>
<a href="#298" id="298">298</a>
<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>
<a href="#304" id="304">304</a>
</pre></div><pre class="rust"><code><span class="comment">/*
* Copyright (C) 2022 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see &lt;https://www.gnu.org/licenses/&gt;.
*/
</pre></div><pre class="rust"><code><span class="comment">// Copyright (C) 2022 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;
// SPDX-FileCopyrightText: 2023 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;
//
// SPDX-License-Identifier: AGPL-3.0-or-later
//use actix::prelude::*;
</span><span class="kw">use </span>actix_web::{web, HttpResponse, Responder};

View File

@@ -82,34 +82,10 @@
<a href="#82" id="82">82</a>
<a href="#83" id="83">83</a>
<a href="#84" id="84">84</a>
<a href="#85" id="85">85</a>
<a href="#86" id="86">86</a>
<a href="#87" id="87">87</a>
<a href="#88" id="88">88</a>
<a href="#89" id="89">89</a>
<a href="#90" id="90">90</a>
<a href="#91" id="91">91</a>
<a href="#92" id="92">92</a>
<a href="#93" id="93">93</a>
<a href="#94" id="94">94</a>
<a href="#95" id="95">95</a>
<a href="#96" id="96">96</a>
</pre></div><pre class="rust"><code><span class="comment">/*
* Copyright (C) 2022 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see &lt;https://www.gnu.org/licenses/&gt;.
*/
</pre></div><pre class="rust"><code><span class="comment">// Copyright (C) 2022 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;
// SPDX-FileCopyrightText: 2023 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;
//
// SPDX-License-Identifier: AGPL-3.0-or-later
</span><span class="kw">use </span>actix_web::web;

View File

@@ -254,33 +254,11 @@
<a href="#254" id="254">254</a>
<a href="#255" id="255">255</a>
<a href="#256" id="256">256</a>
<a href="#257" id="257">257</a>
<a href="#258" id="258">258</a>
<a href="#259" id="259">259</a>
<a href="#260" id="260">260</a>
<a href="#261" id="261">261</a>
<a href="#262" id="262">262</a>
<a href="#263" id="263">263</a>
<a href="#264" id="264">264</a>
<a href="#265" id="265">265</a>
<a href="#266" id="266">266</a>
<a href="#267" id="267">267</a>
</pre></div><pre class="rust"><code><span class="comment">/*
* Copyright (C) 2022 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see &lt;https://www.gnu.org/licenses/&gt;.
*/
</pre></div><pre class="rust"><code><span class="comment">// Copyright (C) 2022 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;
// SPDX-FileCopyrightText: 2023 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;
//
// SPDX-License-Identifier: AGPL-3.0-or-later
</span><span class="doccomment">//! PoW Verification module
</span><span class="kw">use </span>actix_web::HttpRequest;

View File

@@ -195,33 +195,11 @@
<a href="#195" id="195">195</a>
<a href="#196" id="196">196</a>
<a href="#197" id="197">197</a>
<a href="#198" id="198">198</a>
<a href="#199" id="199">199</a>
<a href="#200" id="200">200</a>
<a href="#201" id="201">201</a>
<a href="#202" id="202">202</a>
<a href="#203" id="203">203</a>
<a href="#204" id="204">204</a>
<a href="#205" id="205">205</a>
<a href="#206" id="206">206</a>
<a href="#207" id="207">207</a>
<a href="#208" id="208">208</a>
</pre></div><pre class="rust"><code><span class="comment">/*
* Copyright (C) 2022 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see &lt;https://www.gnu.org/licenses/&gt;.
*/
</pre></div><pre class="rust"><code><span class="comment">// Copyright (C) 2022 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;
// SPDX-FileCopyrightText: 2023 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;
//
// SPDX-License-Identifier: AGPL-3.0-or-later
</span><span class="doccomment">//! PoW success token module
</span><span class="kw">use </span>actix_web::{web, HttpResponse, Responder};

View File

@@ -41,33 +41,11 @@
<a href="#41" id="41">41</a>
<a href="#42" id="42">42</a>
<a href="#43" id="43">43</a>
<a href="#44" id="44">44</a>
<a href="#45" id="45">45</a>
<a href="#46" id="46">46</a>
<a href="#47" id="47">47</a>
<a href="#48" id="48">48</a>
<a href="#49" id="49">49</a>
<a href="#50" id="50">50</a>
<a href="#51" id="51">51</a>
<a href="#52" id="52">52</a>
<a href="#53" id="53">53</a>
<a href="#54" id="54">54</a>
</pre></div><pre class="rust"><code><span class="comment">/*
* Copyright (C) 2022 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see &lt;https://www.gnu.org/licenses/&gt;.
*/
</pre></div><pre class="rust"><code><span class="comment">// Copyright (C) 2022 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;
// SPDX-FileCopyrightText: 2023 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;
//
// SPDX-License-Identifier: AGPL-3.0-or-later
</span><span class="kw">use </span>actix_auth_middleware::GetLoginRoute;
<span class="kw">use </span><span class="kw">super</span>::account::routes::Account;

View File

@@ -246,31 +246,11 @@
<a href="#246" id="246">246</a>
<a href="#247" id="247">247</a>
<a href="#248" id="248">248</a>
<a href="#249" id="249">249</a>
<a href="#250" id="250">250</a>
<a href="#251" id="251">251</a>
<a href="#252" id="252">252</a>
<a href="#253" id="253">253</a>
<a href="#254" id="254">254</a>
<a href="#255" id="255">255</a>
<a href="#256" id="256">256</a>
<a href="#257" id="257">257</a>
<a href="#258" id="258">258</a>
</pre></div><pre class="rust"><code><span class="comment">/*
* Copyright (C) 2022 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see &lt;https://www.gnu.org/licenses/&gt;.
*/
</pre></div><pre class="rust"><code><span class="comment">// Copyright (C) 2022 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;
// SPDX-FileCopyrightText: 2023 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;
//
// SPDX-License-Identifier: AGPL-3.0-or-later
</span><span class="doccomment">//! App data: redis cache, database connections, etc.
</span><span class="kw">use </span>std::sync::Arc;
<span class="kw">use </span>std::thread;

View File

@@ -102,33 +102,11 @@
<a href="#102" id="102">102</a>
<a href="#103" id="103">103</a>
<a href="#104" id="104">104</a>
<a href="#105" id="105">105</a>
<a href="#106" id="106">106</a>
<a href="#107" id="107">107</a>
<a href="#108" id="108">108</a>
<a href="#109" id="109">109</a>
<a href="#110" id="110">110</a>
<a href="#111" id="111">111</a>
<a href="#112" id="112">112</a>
<a href="#113" id="113">113</a>
<a href="#114" id="114">114</a>
<a href="#115" id="115">115</a>
</pre></div><pre class="rust"><code><span class="comment">/*
* Copyright (C) 2022 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see &lt;https://www.gnu.org/licenses/&gt;.
*/
</pre></div><pre class="rust"><code><span class="comment">// Copyright (C) 2022 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;
// SPDX-FileCopyrightText: 2023 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;
//
// SPDX-License-Identifier: AGPL-3.0-or-later
</span><span class="kw">use </span>std::fmt::Debug;
<span class="kw">use </span>sqlx::types::time::OffsetDateTime;

View File

@@ -47,33 +47,11 @@
<a href="#47" id="47">47</a>
<a href="#48" id="48">48</a>
<a href="#49" id="49">49</a>
<a href="#50" id="50">50</a>
<a href="#51" id="51">51</a>
<a href="#52" id="52">52</a>
<a href="#53" id="53">53</a>
<a href="#54" id="54">54</a>
<a href="#55" id="55">55</a>
<a href="#56" id="56">56</a>
<a href="#57" id="57">57</a>
<a href="#58" id="58">58</a>
<a href="#59" id="59">59</a>
<a href="#60" id="60">60</a>
</pre></div><pre class="rust"><code><span class="comment">/*
* Copyright (C) 2022 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see &lt;https://www.gnu.org/licenses/&gt;.
*/
</pre></div><pre class="rust"><code><span class="comment">// Copyright (C) 2022 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;
// SPDX-FileCopyrightText: 2023 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;
//
// SPDX-License-Identifier: AGPL-3.0-or-later
</span><span class="kw">use </span><span class="kw">crate</span>::settings::Settings;
<span class="kw">use </span>db_core::prelude::<span class="kw-2">*</span>;

View File

@@ -165,33 +165,11 @@
<a href="#165" id="165">165</a>
<a href="#166" id="166">166</a>
<a href="#167" id="167">167</a>
<a href="#168" id="168">168</a>
<a href="#169" id="169">169</a>
<a href="#170" id="170">170</a>
<a href="#171" id="171">171</a>
<a href="#172" id="172">172</a>
<a href="#173" id="173">173</a>
<a href="#174" id="174">174</a>
<a href="#175" id="175">175</a>
<a href="#176" id="176">176</a>
<a href="#177" id="177">177</a>
<a href="#178" id="178">178</a>
</pre></div><pre class="rust"><code><span class="comment">/*
* Copyright (C) 2022 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see &lt;https://www.gnu.org/licenses/&gt;.
*/
</pre></div><pre class="rust"><code><span class="comment">// Copyright (C) 2022 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;
// SPDX-FileCopyrightText: 2023 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;
//
// SPDX-License-Identifier: AGPL-3.0-or-later
</span><span class="kw">use </span>std::time::Duration;
<span class="comment">//use std::sync::atomicBool

View File

@@ -122,33 +122,11 @@
<a href="#122" id="122">122</a>
<a href="#123" id="123">123</a>
<a href="#124" id="124">124</a>
<a href="#125" id="125">125</a>
<a href="#126" id="126">126</a>
<a href="#127" id="127">127</a>
<a href="#128" id="128">128</a>
<a href="#129" id="129">129</a>
<a href="#130" id="130">130</a>
<a href="#131" id="131">131</a>
<a href="#132" id="132">132</a>
<a href="#133" id="133">133</a>
<a href="#134" id="134">134</a>
<a href="#135" id="135">135</a>
</pre></div><pre class="rust"><code><span class="comment">/*
* Copyright (C) 2022 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see &lt;https://www.gnu.org/licenses/&gt;.
*/
</pre></div><pre class="rust"><code><span class="comment">// Copyright (C) 2022 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;
// SPDX-FileCopyrightText: 2023 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;
//
// SPDX-License-Identifier: AGPL-3.0-or-later
</span><span class="kw">use </span>std::borrow::Cow;
<span class="kw">use </span>actix_web::body::BoxBody;

View File

@@ -4,34 +4,10 @@
<a href="#4" id="4">4</a>
<a href="#5" id="5">5</a>
<a href="#6" id="6">6</a>
<a href="#7" id="7">7</a>
<a href="#8" id="8">8</a>
<a href="#9" id="9">9</a>
<a href="#10" id="10">10</a>
<a href="#11" id="11">11</a>
<a href="#12" id="12">12</a>
<a href="#13" id="13">13</a>
<a href="#14" id="14">14</a>
<a href="#15" id="15">15</a>
<a href="#16" id="16">16</a>
<a href="#17" id="17">17</a>
<a href="#18" id="18">18</a>
</pre></div><pre class="rust"><code><span class="comment">/*
* Copyright (C) 2022 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see &lt;https://www.gnu.org/licenses/&gt;.
*/
</pre></div><pre class="rust"><code><span class="comment">// Copyright (C) 2022 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;
// SPDX-FileCopyrightText: 2023 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;
//
// SPDX-License-Identifier: AGPL-3.0-or-later
</span><span class="kw">pub mod </span>verification;
</code></pre></div></section></main></body></html>

View File

@@ -127,33 +127,11 @@
<a href="#127" id="127">127</a>
<a href="#128" id="128">128</a>
<a href="#129" id="129">129</a>
<a href="#130" id="130">130</a>
<a href="#131" id="131">131</a>
<a href="#132" id="132">132</a>
<a href="#133" id="133">133</a>
<a href="#134" id="134">134</a>
<a href="#135" id="135">135</a>
<a href="#136" id="136">136</a>
<a href="#137" id="137">137</a>
<a href="#138" id="138">138</a>
<a href="#139" id="139">139</a>
<a href="#140" id="140">140</a>
</pre></div><pre class="rust"><code><span class="comment">/*
* Copyright (C) 2022 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see &lt;https://www.gnu.org/licenses/&gt;.
*/
</pre></div><pre class="rust"><code><span class="comment">// Copyright (C) 2022 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;
// SPDX-FileCopyrightText: 2023 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;
//
// SPDX-License-Identifier: AGPL-3.0-or-later
</span><span class="doccomment">//! Email operations: verification, notification, etc
</span><span class="kw">use </span>lettre::{
message::{header, MultiPart, SinglePart},

View File

@@ -325,34 +325,10 @@
<a href="#325" id="325">325</a>
<a href="#326" id="326">326</a>
<a href="#327" id="327">327</a>
<a href="#328" id="328">328</a>
<a href="#329" id="329">329</a>
<a href="#330" id="330">330</a>
<a href="#331" id="331">331</a>
<a href="#332" id="332">332</a>
<a href="#333" id="333">333</a>
<a href="#334" id="334">334</a>
<a href="#335" id="335">335</a>
<a href="#336" id="336">336</a>
<a href="#337" id="337">337</a>
<a href="#338" id="338">338</a>
<a href="#339" id="339">339</a>
</pre></div><pre class="rust"><code><span class="comment">/*
* Copyright (C) 2022 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see &lt;https://www.gnu.org/licenses/&gt;.
*/
</pre></div><pre class="rust"><code><span class="comment">// Copyright (C) 2022 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;
// SPDX-FileCopyrightText: 2023 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;
//
// SPDX-License-Identifier: AGPL-3.0-or-later
</span><span class="kw">use </span>std::convert::From;

View File

@@ -343,16 +343,8 @@
<a href="#343" id="343">343</a>
<a href="#344" id="344">344</a>
<a href="#345" id="345">345</a>
<a href="#346" id="346">346</a>
<a href="#347" id="347">347</a>
<a href="#348" id="348">348</a>
<a href="#349" id="349">349</a>
<a href="#350" id="350">350</a>
<a href="#351" id="351">351</a>
<a href="#352" id="352">352</a>
<a href="#353" id="353">353</a>
<a href="#354" id="354">354</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;
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">&quot;\n&quot;</span>);
<span class="kw">const </span>READONLY: bool = <span class="bool-val">false</span>;
@@ -360,13 +352,11 @@
<span class="kw">let </span>edit_url = <span class="kw">crate</span>::PAGES.panel.sitekey.get_edit_easy(<span class="kw-2">&amp;</span>key);
<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="macro">__sf_rt::render_text!</span>(
__sf_buf,
<span class="string">&quot;&lt;!DOCTYPE html&gt;\n&lt;html lang=\&quot;en\&quot;&gt;\n&lt;head&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;!DOCTYPE html&gt;\n&lt;html lang=\&quot;en\&quot;&gt;\n&lt;head&gt;\n&quot;</span>);
{
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">&quot;&lt;meta charset=\&quot;UTF-8\&quot; /&gt;\n&lt;title&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;meta charset=\&quot;UTF-8\&quot; /&gt;\n&lt;title&gt;&quot;</span>);
<span class="macro">__sf_rt::render_escaped!</span>(__sf_buf, PAGE);
<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>::pages::NAME);
@@ -399,13 +389,13 @@
};
<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;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>);
__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;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>);
__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>);
<span class="macro">__sf_rt::render_escaped!</span>(__sf_buf, <span class="kw">crate</span>::MCAPTCHA_TRANS_ICON.<span class="number">0</span>);
<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>::MCAPTCHA_TRANS_ICON.<span class="number">1</span>);
@@ -474,14 +464,11 @@
};
<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>);
{
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">&quot;&lt;header&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>);
{
__sf_rt :: render_text ! (__sf_buf , <span class="string">&quot;&lt;ul class=\&quot;taskbar\&quot;&gt;\n&lt;li class=\&quot;taskbar__spacer\&quot;&gt;&lt;/li&gt;\n&lt;li class=\&quot;taskbar__action\&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;ul class=\&quot;taskbar\&quot;&gt;\n&lt;li class=\&quot;taskbar__spacer\&quot;&gt;&lt;/li&gt;\n&lt;li class=\&quot;taskbar__action\&quot;&gt;\n&quot;</span>);
{
<span class="macro">__sf_rt::render_text!</span>(
__sf_buf,
<span class="string">&quot;&lt;a class=\&quot;taskbar__link\&quot; href=\&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;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
@@ -524,7 +511,7 @@
};
<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;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;&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);
@@ -539,7 +526,7 @@
<span class="macro">__sf_rt::render_escaped!</span>(__sf_buf, edit_url);
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">&quot;\&quot;&gt;\nEasy Options\n&lt;/a&gt;\n&lt;/div&gt;\n&quot;</span>);
{
__sf_rt :: render_text ! (__sf_buf , <span class="string">&quot;&lt;/h1&gt;\n&lt;label class=\&quot;sitekey-form__label\&quot; for=\&quot;description\&quot;&gt;\nDescription\n&lt;input\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>);
<span class="kw">if </span>READONLY {
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">&quot;\n&quot;</span>);
<span class="macro">__sf_rt::render_escaped!</span>(__sf_buf, <span class="string">&quot;readonly=&#39;readonly&#39;&quot;</span>);
@@ -564,6 +551,7 @@
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">&quot;\n\n&quot;</span>);
<span class="kw">for </span>(count, level) <span class="kw">in </span>levels.iter().enumerate() {
{
__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>;
<span class="macro">__sf_rt::render_text!</span>(
__sf_buf,
@@ -618,10 +606,7 @@
<span class="kw">let </span>level = levels.len() + <span class="number">1</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;&lt;fieldset class=\&quot;sitekey__level-container\&quot; id=\&quot;level-group-&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;fieldset class=\&quot;sitekey__level-container\&quot; id=\&quot;level-group-&quot;</span>);
<span class="macro">__sf_rt::render_escaped!</span>(__sf_buf, level);
<span class="macro">__sf_rt::render_text!</span>(
__sf_buf,
@@ -659,14 +644,11 @@
<span class="macro">__sf_rt::render_escaped!</span>(__sf_buf, key);
__sf_rt :: render_text ! (__sf_buf , <span class="string">&quot;\&quot;\nid=\&quot;sitekey-form__submit\&quot; class=\&quot;sitekey-form__submit\&quot; type=\&quot;submit\&quot;&gt;\nSubmit\n&lt;/button&gt;&quot;</span>);
{
<span class="macro">__sf_rt::render_text!</span>(
__sf_buf,
<span class="string">&quot; &lt;/form&gt;\n&lt;/div&gt;\n&lt;!-- end of container --&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;/form&gt;\n&lt;/div&gt;\n&lt;!-- end of container --&gt;&quot;</span>);
{
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">&quot;&lt;/main&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;/main&gt;&quot;</span>);
{
__sf_rt :: render_text ! (__sf_buf , <span class="string">&quot;&lt;footer role=\&quot;contentinfo\&quot; class=\&quot;details__container\&quot;&gt;\n&lt;p class=\&quot;details__copyright\&quot;&gt; &amp;copy; mCaptcha developers &lt;/p&gt;\n&lt;ul class=\&quot;details\&quot;&gt;\n&lt;li class=\&quot;details__item\&quot;&gt;\n&lt;a class=\&quot;details__link\&quot;\nhref=\&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;footer role=\&quot;contentinfo\&quot; class=\&quot;details__container\&quot;&gt;\n&lt;p class=\&quot;details__copyright\&quot;&gt; &amp;copy; mCaptcha developers &lt;/p&gt;\n&lt;ul class=\&quot;details\&quot;&gt;\n&lt;li class=\&quot;details__item\&quot;&gt;\n&lt;a class=\&quot;details__link\&quot;\nhref=\&quot;&quot;</span>);
<span class="macro">__sf_rt::render_escaped!</span>(__sf_buf, <span class="kw">crate</span>::PKG_HOMEPAGE);
__sf_rt :: render_text ! (__sf_buf , <span class="string">&quot;\&quot;&gt;Homepage&lt;/a&gt;\n&lt;/li&gt;\n&lt;li class=\&quot;details__item\&quot;&gt;\n&lt;a class=\&quot;details__link\&quot;\nhref=\&quot;&quot;</span>);
<span class="macro">__sf_rt::render_escaped!</span>(__sf_buf, <span class="kw">crate</span>::PKG_HOMEPAGE);
@@ -699,7 +681,7 @@
<span class="macro">__sf_rt::render_escaped!</span>(__sf_buf, <span class="kw-2">&amp;*</span><span class="kw">crate</span>::JS);
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">&quot;\&quot;&gt;&lt;/script&gt;\n&quot;</span>);
{
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">&quot;&lt;div id=\&quot;err__container\&quot;&gt;&lt;/div&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;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>);
};

View File

@@ -374,10 +374,8 @@
<a href="#374" id="374">374</a>
<a href="#375" id="375">375</a>
<a href="#376" id="376">376</a>
<a href="#377" id="377">377</a>
<a href="#378" id="378">378</a>
<a href="#379" id="379">379</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;
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">&quot;\n&quot;</span>);
<span class="kw">const </span>READONLY: bool = <span class="bool-val">true</span>;
@@ -385,13 +383,11 @@
<span class="kw">let </span>edit_url = <span class="kw">crate</span>::PAGES.panel.sitekey.get_edit_easy(<span class="kw-2">&amp;</span>key);
<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="macro">__sf_rt::render_text!</span>(
__sf_buf,
<span class="string">&quot;&lt;!DOCTYPE html&gt;\n&lt;html lang=\&quot;en\&quot;&gt;\n&lt;head&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;!DOCTYPE html&gt;\n&lt;html lang=\&quot;en\&quot;&gt;\n&lt;head&gt;\n&quot;</span>);
{
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">&quot;&lt;meta charset=\&quot;UTF-8\&quot; /&gt;\n&lt;title&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;meta charset=\&quot;UTF-8\&quot; /&gt;\n&lt;title&gt;&quot;</span>);
<span class="macro">__sf_rt::render_escaped!</span>(__sf_buf, PAGE);
<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>::pages::NAME);
@@ -424,13 +420,13 @@
};
<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;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>);
__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;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>);
__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>);
<span class="macro">__sf_rt::render_escaped!</span>(__sf_buf, <span class="kw">crate</span>::MCAPTCHA_TRANS_ICON.<span class="number">0</span>);
<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>::MCAPTCHA_TRANS_ICON.<span class="number">1</span>);
@@ -499,14 +495,11 @@
};
<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>);
{
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">&quot;&lt;header&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>);
{
__sf_rt :: render_text ! (__sf_buf , <span class="string">&quot;&lt;ul class=\&quot;taskbar\&quot;&gt;\n&lt;li class=\&quot;taskbar__spacer\&quot;&gt;&lt;/li&gt;\n&lt;li class=\&quot;taskbar__action\&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;ul class=\&quot;taskbar\&quot;&gt;\n&lt;li class=\&quot;taskbar__spacer\&quot;&gt;&lt;/li&gt;\n&lt;li class=\&quot;taskbar__action\&quot;&gt;\n&quot;</span>);
{
<span class="macro">__sf_rt::render_text!</span>(
__sf_buf,
<span class="string">&quot;&lt;a class=\&quot;taskbar__link\&quot; href=\&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;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
@@ -549,7 +542,7 @@
};
<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;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;&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);
@@ -577,7 +570,7 @@
<span class="kw">let </span>edit_url = <span class="kw">crate</span>::PAGES.panel.sitekey.get_edit_easy(<span class="kw-2">&amp;</span>key);
<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;&lt;a href=\&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;a href=\&quot;&quot;</span>);
<span class="macro">__sf_rt::render_escaped!</span>(__sf_buf, edit_url);
<span class="macro">__sf_rt::render_text!</span>(
__sf_buf,
@@ -593,7 +586,7 @@
}
<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;&lt;a href=\&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;a href=\&quot;&quot;</span>);
<span class="macro">__sf_rt::render_escaped!</span>(__sf_buf, <span class="kw">crate</span>::PAGES.panel.sitekey.get_delete(<span class="kw-2">&amp;</span>key));
<span class="macro">__sf_rt::render_text!</span>(
__sf_buf,
@@ -609,7 +602,7 @@
};
<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;/h1&gt;\n&lt;label class=\&quot;sitekey-form__label\&quot; for=\&quot;description\&quot;&gt;\nDescription\n&lt;input\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>);
<span class="kw">if </span>READONLY {
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">&quot;\n&quot;</span>);
<span class="macro">__sf_rt::render_escaped!</span>(__sf_buf, <span class="string">&quot;readonly=&#39;readonly&#39;&quot;</span>);
@@ -634,6 +627,7 @@
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">&quot;\n\n&quot;</span>);
<span class="kw">for </span>(count, level) <span class="kw">in </span>levels.iter().enumerate() {
{
__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>;
<span class="macro">__sf_rt::render_text!</span>(
__sf_buf,
@@ -684,7 +678,7 @@
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">&quot;\n/&gt;\n&lt;/label&gt;\n&quot;</span>);
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">&quot;\n&lt;/form&gt;\n&quot;</span>);
{
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">&quot;&lt;div class=\&quot;sitekey__stats-container\&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;div class=\&quot;sitekey__stats-container\&quot;&gt;\n&quot;</span>);
<span class="kw">let </span>tables = [
(<span class="string">&quot;Configuration Fetches&quot;</span>, <span class="kw-2">&amp;</span>stats.config_fetches),
(<span class="string">&quot;Proofs generated&quot;</span>, <span class="kw-2">&amp;</span>stats.solves),
@@ -715,9 +709,9 @@
};
<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>);
{
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">&quot;&lt;/main&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;/main&gt;&quot;</span>);
{
__sf_rt :: render_text ! (__sf_buf , <span class="string">&quot;&lt;footer role=\&quot;contentinfo\&quot; class=\&quot;details__container\&quot;&gt;\n&lt;p class=\&quot;details__copyright\&quot;&gt; &amp;copy; mCaptcha developers &lt;/p&gt;\n&lt;ul class=\&quot;details\&quot;&gt;\n&lt;li class=\&quot;details__item\&quot;&gt;\n&lt;a class=\&quot;details__link\&quot;\nhref=\&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;footer role=\&quot;contentinfo\&quot; class=\&quot;details__container\&quot;&gt;\n&lt;p class=\&quot;details__copyright\&quot;&gt; &amp;copy; mCaptcha developers &lt;/p&gt;\n&lt;ul class=\&quot;details\&quot;&gt;\n&lt;li class=\&quot;details__item\&quot;&gt;\n&lt;a class=\&quot;details__link\&quot;\nhref=\&quot;&quot;</span>);
<span class="macro">__sf_rt::render_escaped!</span>(__sf_buf, <span class="kw">crate</span>::PKG_HOMEPAGE);
__sf_rt :: render_text ! (__sf_buf , <span class="string">&quot;\&quot;&gt;Homepage&lt;/a&gt;\n&lt;/li&gt;\n&lt;li class=\&quot;details__item\&quot;&gt;\n&lt;a class=\&quot;details__link\&quot;\nhref=\&quot;&quot;</span>);
<span class="macro">__sf_rt::render_escaped!</span>(__sf_buf, <span class="kw">crate</span>::PKG_HOMEPAGE);
@@ -750,7 +744,7 @@
<span class="macro">__sf_rt::render_escaped!</span>(__sf_buf, <span class="kw-2">&amp;*</span><span class="kw">crate</span>::JS);
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">&quot;\&quot;&gt;&lt;/script&gt;\n&quot;</span>);
{
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">&quot;&lt;div id=\&quot;err__container\&quot;&gt;&lt;/div&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;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>);
};

View File

@@ -300,7 +300,9 @@
<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>;
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">&quot;\n&quot;</span>);
<span class="kw">const </span>DONE_CLASS: <span class="kw-2">&amp;</span>str = <span class="string">&quot;sitekey__copy-done-icon&quot;</span>;
@@ -310,9 +312,9 @@
<span class="kw">const </span>COPY_CLASS: <span class="kw-2">&amp;</span>str = <span class="string">&quot;sitekey__copy-icon&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;&lt;!DOCTYPE html&gt;\n&lt;html lang=\&quot;en\&quot;&gt;\n&lt;head&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;!DOCTYPE html&gt;\n&lt;html lang=\&quot;en\&quot;&gt;\n&lt;head&gt;\n&quot;</span>);
{
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">&quot;&lt;meta charset=\&quot;UTF-8\&quot; /&gt;\n&lt;title&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;meta charset=\&quot;UTF-8\&quot; /&gt;\n&lt;title&gt;&quot;</span>);
<span class="macro">__sf_rt::render_escaped!</span>(__sf_buf, PAGE);
<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>::pages::NAME);
@@ -345,17 +347,17 @@
};
<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;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>);
__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;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>);
__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;meta\nhttp-equiv=\&quot;Strict-Transport-Security\&quot; content=\&quot;max-age=63072000\&quot;\n/&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;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>);
}
@@ -363,7 +365,7 @@
};
<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;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>);
__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>);
<span class="macro">__sf_rt::render_escaped!</span>(__sf_buf, <span class="kw">crate</span>::MCAPTCHA_TRANS_ICON.<span class="number">0</span>);
<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>::MCAPTCHA_TRANS_ICON.<span class="number">1</span>);
@@ -432,11 +434,11 @@
};
<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>);
{
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">&quot;&lt;header&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>);
{
__sf_rt :: render_text ! (__sf_buf , <span class="string">&quot;&lt;ul class=\&quot;taskbar\&quot;&gt;\n&lt;li class=\&quot;taskbar__spacer\&quot;&gt;&lt;/li&gt;\n&lt;li class=\&quot;taskbar__action\&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;ul class=\&quot;taskbar\&quot;&gt;\n&lt;li class=\&quot;taskbar__spacer\&quot;&gt;&lt;/li&gt;\n&lt;li class=\&quot;taskbar__action\&quot;&gt;\n&quot;</span>);
{
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">&quot;&lt;a class=\&quot;taskbar__link\&quot; href=\&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;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>);
};
@@ -470,15 +472,15 @@
};
<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;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;&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>);
{
__sf_rt :: render_text ! (__sf_buf , <span class="string">&quot;&lt;ul class=\&quot;sitekey-list__box\&quot;&gt;\n&lt;p&gt;\nIt looks like you don&#39;t have any sitekeys. Click &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;ul class=\&quot;sitekey-list__box\&quot;&gt;\n&lt;p&gt;\nIt looks like you don&#39;t have any sitekeys. Click &quot;</span>);
{
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">&quot;&lt;a class=\&quot;taskbar__link\&quot; href=\&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;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>);
};
@@ -498,7 +500,7 @@
<span class="kw">let </span>clipboard_data = (<span class="string">&quot;sitekey&quot;</span>, <span class="kw-2">&amp;</span>sitekey.key);
<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;&lt;img class=\&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;img class=\&quot;&quot;</span>);
<span class="macro">__sf_rt::render_escaped!</span>(__sf_buf, COPY_CLASS);
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">&quot;\&quot;\nsrc=\&quot;&quot;</span>);
<span class="macro">__sf_rt::render_escaped!</span>(
@@ -539,7 +541,7 @@
<span class="kw">let </span>edit_url = <span class="kw">crate</span>::PAGES.panel.sitekey.get_edit_easy(<span class="kw-2">&amp;</span>sitekey.key);
<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;&lt;a href=\&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;a href=\&quot;&quot;</span>);
<span class="macro">__sf_rt::render_escaped!</span>(__sf_buf, edit_url);
<span class="macro">__sf_rt::render_text!</span>(
__sf_buf,
@@ -560,9 +562,9 @@
}
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">&quot;\n&lt;/div&gt;\n&quot;</span>);
{
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">&quot;&lt;/main&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;/main&gt;&quot;</span>);
{
__sf_rt :: render_text ! (__sf_buf , <span class="string">&quot;&lt;footer role=\&quot;contentinfo\&quot; class=\&quot;details__container\&quot;&gt;\n&lt;p class=\&quot;details__copyright\&quot;&gt; &amp;copy; mCaptcha developers &lt;/p&gt;\n&lt;ul class=\&quot;details\&quot;&gt;\n&lt;li class=\&quot;details__item\&quot;&gt;\n&lt;a class=\&quot;details__link\&quot;\nhref=\&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;footer role=\&quot;contentinfo\&quot; class=\&quot;details__container\&quot;&gt;\n&lt;p class=\&quot;details__copyright\&quot;&gt; &amp;copy; mCaptcha developers &lt;/p&gt;\n&lt;ul class=\&quot;details\&quot;&gt;\n&lt;li class=\&quot;details__item\&quot;&gt;\n&lt;a class=\&quot;details__link\&quot;\nhref=\&quot;&quot;</span>);
<span class="macro">__sf_rt::render_escaped!</span>(__sf_buf, <span class="kw">crate</span>::PKG_HOMEPAGE);
__sf_rt :: render_text ! (__sf_buf , <span class="string">&quot;\&quot;&gt;Homepage&lt;/a&gt;\n&lt;/li&gt;\n&lt;li class=\&quot;details__item\&quot;&gt;\n&lt;a class=\&quot;details__link\&quot;\nhref=\&quot;&quot;</span>);
<span class="macro">__sf_rt::render_escaped!</span>(__sf_buf, <span class="kw">crate</span>::PKG_HOMEPAGE);
@@ -595,7 +597,7 @@
<span class="macro">__sf_rt::render_escaped!</span>(__sf_buf, <span class="kw-2">&amp;*</span><span class="kw">crate</span>::JS);
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">&quot;\&quot;&gt;&lt;/script&gt;\n&quot;</span>);
{
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">&quot;&lt;div id=\&quot;err__container\&quot;&gt;&lt;/div&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;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>);
};

View File

@@ -307,7 +307,9 @@
<a href="#307" id="307">307</a>
<a href="#308" id="308">308</a>
<a href="#309" id="309">309</a>
<a href="#310" id="310">310</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>COPY_ALT: <span class="kw-2">&amp;</span>str = <span class="string">&quot;copy secret&quot;</span>;
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">&quot;\n&quot;</span>);
<span class="kw">const </span>COPY_CLASS: <span class="kw-2">&amp;</span>str = <span class="string">&quot;settings__secret-copy&quot;</span>;
@@ -319,9 +321,9 @@
<span class="kw">let </span>clipboard_data = (<span class="string">&quot;secret&quot;</span>, <span class="kw-2">&amp;</span>secret);
<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;&lt;!DOCTYPE html&gt;\n&lt;html lang=\&quot;en\&quot;&gt;\n&lt;head&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;!DOCTYPE html&gt;\n&lt;html lang=\&quot;en\&quot;&gt;\n&lt;head&gt;\n&quot;</span>);
{
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">&quot;&lt;meta charset=\&quot;UTF-8\&quot; /&gt;\n&lt;title&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;meta charset=\&quot;UTF-8\&quot; /&gt;\n&lt;title&gt;&quot;</span>);
<span class="macro">__sf_rt::render_escaped!</span>(__sf_buf, PAGE);
<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>::pages::NAME);
@@ -354,17 +356,17 @@
};
<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;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>);
__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;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>);
__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;meta\nhttp-equiv=\&quot;Strict-Transport-Security\&quot; content=\&quot;max-age=63072000\&quot;\n/&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;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>);
}
@@ -372,7 +374,7 @@
};
<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;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>);
__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>);
<span class="macro">__sf_rt::render_escaped!</span>(__sf_buf, <span class="kw">crate</span>::MCAPTCHA_TRANS_ICON.<span class="number">0</span>);
<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>::MCAPTCHA_TRANS_ICON.<span class="number">1</span>);
@@ -441,11 +443,11 @@
};
<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>);
{
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">&quot;&lt;header&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>);
{
__sf_rt :: render_text ! (__sf_buf , <span class="string">&quot;&lt;ul class=\&quot;taskbar\&quot;&gt;\n&lt;li class=\&quot;taskbar__spacer\&quot;&gt;&lt;/li&gt;\n&lt;li class=\&quot;taskbar__action\&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;ul class=\&quot;taskbar\&quot;&gt;\n&lt;li class=\&quot;taskbar__spacer\&quot;&gt;&lt;/li&gt;\n&lt;li class=\&quot;taskbar__action\&quot;&gt;\n&quot;</span>);
{
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">&quot;&lt;a class=\&quot;taskbar__link\&quot; href=\&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;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>);
};
@@ -479,7 +481,7 @@
};
<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;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;&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);
@@ -508,7 +510,7 @@
<span class="macro">__sf_rt::render_escaped!</span>(__sf_buf, <span class="kw">crate</span>::V1_API_ROUTES.account.update_secret);
__sf_rt :: render_text ! (__sf_buf , <span class="string">&quot;\&quot;\nmethod=\&quot;post\&quot;&gt;\n&lt;label class=\&quot;settings-form__label\&quot; for=\&quot;secret\&quot;&gt;\n&lt;div class=\&quot;settings__label-group\&quot;&gt;\nSecret\n&quot;</span>);
{
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">&quot;&lt;img class=\&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;img class=\&quot;&quot;</span>);
<span class="macro">__sf_rt::render_escaped!</span>(__sf_buf, COPY_CLASS);
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">&quot;\&quot;\nsrc=\&quot;&quot;</span>);
<span class="macro">__sf_rt::render_escaped!</span>(
@@ -540,7 +542,7 @@
<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>);
{
__sf_rt :: render_text ! (__sf_buf , <span class="string">&quot;&lt;span class=\&quot;show-password-container\&quot;&gt;\n&lt;img class=\&quot;show-password--show\&quot; src=\&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;span class=\&quot;show-password-container\&quot;&gt;\n&lt;img class=\&quot;show-password--show\&quot; src=\&quot;&quot;</span>);
<span class="macro">__sf_rt::render_escaped!</span>(
__sf_buf,
<span class="kw">crate</span>::FILES.get(<span class="string">&quot;./static/cache/img/svg/eye.svg&quot;</span>).unwrap()
@@ -575,9 +577,9 @@
);
__sf_rt :: render_text ! (__sf_buf , <span class="string">&quot;\&quot;\nalt=\&quot;Delete Account\&quot;\n/&gt;\n&lt;/button&gt;\n&lt;/label&gt;\n&lt;/form&gt;\n&lt;/div&gt;\n&lt;/div&gt;\n&lt;!-- end of container --&gt;&quot;</span>);
{
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">&quot;&lt;/main&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;/main&gt;&quot;</span>);
{
__sf_rt :: render_text ! (__sf_buf , <span class="string">&quot;&lt;footer role=\&quot;contentinfo\&quot; class=\&quot;details__container\&quot;&gt;\n&lt;p class=\&quot;details__copyright\&quot;&gt; &amp;copy; mCaptcha developers &lt;/p&gt;\n&lt;ul class=\&quot;details\&quot;&gt;\n&lt;li class=\&quot;details__item\&quot;&gt;\n&lt;a class=\&quot;details__link\&quot;\nhref=\&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;footer role=\&quot;contentinfo\&quot; class=\&quot;details__container\&quot;&gt;\n&lt;p class=\&quot;details__copyright\&quot;&gt; &amp;copy; mCaptcha developers &lt;/p&gt;\n&lt;ul class=\&quot;details\&quot;&gt;\n&lt;li class=\&quot;details__item\&quot;&gt;\n&lt;a class=\&quot;details__link\&quot;\nhref=\&quot;&quot;</span>);
<span class="macro">__sf_rt::render_escaped!</span>(__sf_buf, <span class="kw">crate</span>::PKG_HOMEPAGE);
__sf_rt :: render_text ! (__sf_buf , <span class="string">&quot;\&quot;&gt;Homepage&lt;/a&gt;\n&lt;/li&gt;\n&lt;li class=\&quot;details__item\&quot;&gt;\n&lt;a class=\&quot;details__link\&quot;\nhref=\&quot;&quot;</span>);
<span class="macro">__sf_rt::render_escaped!</span>(__sf_buf, <span class="kw">crate</span>::PKG_HOMEPAGE);
@@ -610,7 +612,7 @@
<span class="macro">__sf_rt::render_escaped!</span>(__sf_buf, <span class="kw-2">&amp;*</span><span class="kw">crate</span>::JS);
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">&quot;\&quot;&gt;&lt;/script&gt;\n&quot;</span>);
{
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">&quot;&lt;div id=\&quot;err__container\&quot;&gt;&lt;/div&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;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>);
};

View File

@@ -300,7 +300,9 @@
<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>;
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">&quot;\n&quot;</span>);
<span class="kw">const </span>DONE_CLASS: <span class="kw-2">&amp;</span>str = <span class="string">&quot;sitekey__copy-done-icon&quot;</span>;
@@ -310,9 +312,9 @@
<span class="kw">const </span>COPY_CLASS: <span class="kw-2">&amp;</span>str = <span class="string">&quot;sitekey__copy-icon&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;&lt;!DOCTYPE html&gt;\n&lt;html lang=\&quot;en\&quot;&gt;\n&lt;head&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;!DOCTYPE html&gt;\n&lt;html lang=\&quot;en\&quot;&gt;\n&lt;head&gt;\n&quot;</span>);
{
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">&quot;&lt;meta charset=\&quot;UTF-8\&quot; /&gt;\n&lt;title&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;meta charset=\&quot;UTF-8\&quot; /&gt;\n&lt;title&gt;&quot;</span>);
<span class="macro">__sf_rt::render_escaped!</span>(__sf_buf, PAGE);
<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>::pages::NAME);
@@ -345,17 +347,17 @@
};
<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;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>);
__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;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>);
__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;meta\nhttp-equiv=\&quot;Strict-Transport-Security\&quot; content=\&quot;max-age=63072000\&quot;\n/&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;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>);
}
@@ -363,7 +365,7 @@
};
<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;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>);
__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>);
<span class="macro">__sf_rt::render_escaped!</span>(__sf_buf, <span class="kw">crate</span>::MCAPTCHA_TRANS_ICON.<span class="number">0</span>);
<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>::MCAPTCHA_TRANS_ICON.<span class="number">1</span>);
@@ -432,11 +434,11 @@
};
<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>);
{
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">&quot;&lt;header&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>);
{
__sf_rt :: render_text ! (__sf_buf , <span class="string">&quot;&lt;ul class=\&quot;taskbar\&quot;&gt;\n&lt;li class=\&quot;taskbar__spacer\&quot;&gt;&lt;/li&gt;\n&lt;li class=\&quot;taskbar__action\&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;ul class=\&quot;taskbar\&quot;&gt;\n&lt;li class=\&quot;taskbar__spacer\&quot;&gt;&lt;/li&gt;\n&lt;li class=\&quot;taskbar__action\&quot;&gt;\n&quot;</span>);
{
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">&quot;&lt;a class=\&quot;taskbar__link\&quot; href=\&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;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>);
};
@@ -470,15 +472,15 @@
};
<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;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;&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>);
{
__sf_rt :: render_text ! (__sf_buf , <span class="string">&quot;&lt;ul class=\&quot;sitekey-list__box\&quot;&gt;\n&lt;p&gt;\nIt looks like you don&#39;t have any sitekeys. Click &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;ul class=\&quot;sitekey-list__box\&quot;&gt;\n&lt;p&gt;\nIt looks like you don&#39;t have any sitekeys. Click &quot;</span>);
{
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">&quot;&lt;a class=\&quot;taskbar__link\&quot; href=\&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;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>);
};
@@ -498,7 +500,7 @@
<span class="kw">let </span>clipboard_data = (<span class="string">&quot;sitekey&quot;</span>, <span class="kw-2">&amp;</span>sitekey.key);
<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;&lt;img class=\&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;img class=\&quot;&quot;</span>);
<span class="macro">__sf_rt::render_escaped!</span>(__sf_buf, COPY_CLASS);
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">&quot;\&quot;\nsrc=\&quot;&quot;</span>);
<span class="macro">__sf_rt::render_escaped!</span>(
@@ -539,7 +541,7 @@
<span class="kw">let </span>edit_url = <span class="kw">crate</span>::PAGES.panel.sitekey.get_edit_easy(<span class="kw-2">&amp;</span>sitekey.key);
<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;&lt;a href=\&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;a href=\&quot;&quot;</span>);
<span class="macro">__sf_rt::render_escaped!</span>(__sf_buf, edit_url);
<span class="macro">__sf_rt::render_text!</span>(
__sf_buf,
@@ -560,9 +562,9 @@
}
<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&quot;</span>);
{
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">&quot;&lt;/main&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;/main&gt;&quot;</span>);
{
__sf_rt :: render_text ! (__sf_buf , <span class="string">&quot;&lt;footer role=\&quot;contentinfo\&quot; class=\&quot;details__container\&quot;&gt;\n&lt;p class=\&quot;details__copyright\&quot;&gt; &amp;copy; mCaptcha developers &lt;/p&gt;\n&lt;ul class=\&quot;details\&quot;&gt;\n&lt;li class=\&quot;details__item\&quot;&gt;\n&lt;a class=\&quot;details__link\&quot;\nhref=\&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;footer role=\&quot;contentinfo\&quot; class=\&quot;details__container\&quot;&gt;\n&lt;p class=\&quot;details__copyright\&quot;&gt; &amp;copy; mCaptcha developers &lt;/p&gt;\n&lt;ul class=\&quot;details\&quot;&gt;\n&lt;li class=\&quot;details__item\&quot;&gt;\n&lt;a class=\&quot;details__link\&quot;\nhref=\&quot;&quot;</span>);
<span class="macro">__sf_rt::render_escaped!</span>(__sf_buf, <span class="kw">crate</span>::PKG_HOMEPAGE);
__sf_rt :: render_text ! (__sf_buf , <span class="string">&quot;\&quot;&gt;Homepage&lt;/a&gt;\n&lt;/li&gt;\n&lt;li class=\&quot;details__item\&quot;&gt;\n&lt;a class=\&quot;details__link\&quot;\nhref=\&quot;&quot;</span>);
<span class="macro">__sf_rt::render_escaped!</span>(__sf_buf, <span class="kw">crate</span>::PKG_HOMEPAGE);
@@ -595,7 +597,7 @@
<span class="macro">__sf_rt::render_escaped!</span>(__sf_buf, <span class="kw-2">&amp;*</span><span class="kw">crate</span>::JS);
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">&quot;\&quot;&gt;&lt;/script&gt;\n&quot;</span>);
{
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">&quot;&lt;div id=\&quot;err__container\&quot;&gt;&lt;/div&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;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>);
};

View File

@@ -180,33 +180,11 @@
<a href="#180" id="180">180</a>
<a href="#181" id="181">181</a>
<a href="#182" id="182">182</a>
<a href="#183" id="183">183</a>
<a href="#184" id="184">184</a>
<a href="#185" id="185">185</a>
<a href="#186" id="186">186</a>
<a href="#187" id="187">187</a>
<a href="#188" id="188">188</a>
<a href="#189" id="189">189</a>
<a href="#190" id="190">190</a>
<a href="#191" id="191">191</a>
<a href="#192" id="192">192</a>
<a href="#193" id="193">193</a>
</pre></div><pre class="rust"><code><span class="comment">/*
* Copyright (C) 2022 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see &lt;https://www.gnu.org/licenses/&gt;.
*/
</pre></div><pre class="rust"><code><span class="comment">// Copyright (C) 2022 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;
// SPDX-FileCopyrightText: 2023 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;
//
// SPDX-License-Identifier: AGPL-3.0-or-later
</span><span class="kw">use </span>std::env;
<span class="kw">use </span>std::sync::Arc;

View File

@@ -31,34 +31,10 @@
<a href="#31" id="31">31</a>
<a href="#32" id="32">32</a>
<a href="#33" id="33">33</a>
<a href="#34" id="34">34</a>
<a href="#35" id="35">35</a>
<a href="#36" id="36">36</a>
<a href="#37" id="37">37</a>
<a href="#38" id="38">38</a>
<a href="#39" id="39">39</a>
<a href="#40" id="40">40</a>
<a href="#41" id="41">41</a>
<a href="#42" id="42">42</a>
<a href="#43" id="43">43</a>
<a href="#44" id="44">44</a>
<a href="#45" id="45">45</a>
</pre></div><pre class="rust"><code><span class="comment">/*
* Copyright (C) 2022 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see &lt;https://www.gnu.org/licenses/&gt;.
*/
</pre></div><pre class="rust"><code><span class="comment">// Copyright (C) 2022 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;
// SPDX-FileCopyrightText: 2023 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;
//
// SPDX-License-Identifier: AGPL-3.0-or-later
</span><span class="kw">use </span>actix_web::{HttpResponse, Responder};
<span class="kw">use </span>lazy_static::lazy_static;

View File

@@ -47,34 +47,10 @@
<a href="#47" id="47">47</a>
<a href="#48" id="48">48</a>
<a href="#49" id="49">49</a>
<a href="#50" id="50">50</a>
<a href="#51" id="51">51</a>
<a href="#52" id="52">52</a>
<a href="#53" id="53">53</a>
<a href="#54" id="54">54</a>
<a href="#55" id="55">55</a>
<a href="#56" id="56">56</a>
<a href="#57" id="57">57</a>
<a href="#58" id="58">58</a>
<a href="#59" id="59">59</a>
<a href="#60" id="60">60</a>
<a href="#61" id="61">61</a>
</pre></div><pre class="rust"><code><span class="comment">/*
* Copyright (C) 2022 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see &lt;https://www.gnu.org/licenses/&gt;.
*/
</pre></div><pre class="rust"><code><span class="comment">// Copyright (C) 2022 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;
// SPDX-FileCopyrightText: 2023 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;
//
// SPDX-License-Identifier: AGPL-3.0-or-later
</span><span class="kw">pub mod </span>login;
<span class="kw">pub mod </span>register;

View File

@@ -29,34 +29,10 @@
<a href="#29" id="29">29</a>
<a href="#30" id="30">30</a>
<a href="#31" id="31">31</a>
<a href="#32" id="32">32</a>
<a href="#33" id="33">33</a>
<a href="#34" id="34">34</a>
<a href="#35" id="35">35</a>
<a href="#36" id="36">36</a>
<a href="#37" id="37">37</a>
<a href="#38" id="38">38</a>
<a href="#39" id="39">39</a>
<a href="#40" id="40">40</a>
<a href="#41" id="41">41</a>
<a href="#42" id="42">42</a>
<a href="#43" id="43">43</a>
</pre></div><pre class="rust"><code><span class="comment">/*
* Copyright (C) 2022 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see &lt;https://www.gnu.org/licenses/&gt;.
*/
</pre></div><pre class="rust"><code><span class="comment">// Copyright (C) 2022 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;
// SPDX-FileCopyrightText: 2023 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;
//
// SPDX-License-Identifier: AGPL-3.0-or-later
</span><span class="kw">use </span>actix_web::{HttpResponse, Responder};
<span class="kw">use </span>lazy_static::lazy_static;

View File

@@ -31,34 +31,10 @@
<a href="#31" id="31">31</a>
<a href="#32" id="32">32</a>
<a href="#33" id="33">33</a>
<a href="#34" id="34">34</a>
<a href="#35" id="35">35</a>
<a href="#36" id="36">36</a>
<a href="#37" id="37">37</a>
<a href="#38" id="38">38</a>
<a href="#39" id="39">39</a>
<a href="#40" id="40">40</a>
<a href="#41" id="41">41</a>
<a href="#42" id="42">42</a>
<a href="#43" id="43">43</a>
<a href="#44" id="44">44</a>
<a href="#45" id="45">45</a>
</pre></div><pre class="rust"><code><span class="comment">/*
* Copyright (C) 2022 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see &lt;https://www.gnu.org/licenses/&gt;.
*/
</pre></div><pre class="rust"><code><span class="comment">// Copyright (C) 2022 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;
// SPDX-FileCopyrightText: 2023 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;
//
// SPDX-License-Identifier: AGPL-3.0-or-later
</span><span class="kw">use </span>std::fmt::Display;

View File

@@ -106,34 +106,10 @@
<a href="#106" id="106">106</a>
<a href="#107" id="107">107</a>
<a href="#108" id="108">108</a>
<a href="#109" id="109">109</a>
<a href="#110" id="110">110</a>
<a href="#111" id="111">111</a>
<a href="#112" id="112">112</a>
<a href="#113" id="113">113</a>
<a href="#114" id="114">114</a>
<a href="#115" id="115">115</a>
<a href="#116" id="116">116</a>
<a href="#117" id="117">117</a>
<a href="#118" id="118">118</a>
<a href="#119" id="119">119</a>
<a href="#120" id="120">120</a>
</pre></div><pre class="rust"><code><span class="comment">/*
* Copyright (C) 2022 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see &lt;https://www.gnu.org/licenses/&gt;.
*/
</pre></div><pre class="rust"><code><span class="comment">// Copyright (C) 2022 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;
// SPDX-FileCopyrightText: 2023 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;
//
// SPDX-License-Identifier: AGPL-3.0-or-later
</span><span class="kw">use </span>actix_web::{web, HttpResponse, Responder};
<span class="kw">use </span>lazy_static::lazy_static;

View File

@@ -111,33 +111,11 @@
<a href="#111" id="111">111</a>
<a href="#112" id="112">112</a>
<a href="#113" id="113">113</a>
<a href="#114" id="114">114</a>
<a href="#115" id="115">115</a>
<a href="#116" id="116">116</a>
<a href="#117" id="117">117</a>
<a href="#118" id="118">118</a>
<a href="#119" id="119">119</a>
<a href="#120" id="120">120</a>
<a href="#121" id="121">121</a>
<a href="#122" id="122">122</a>
<a href="#123" id="123">123</a>
<a href="#124" id="124">124</a>
</pre></div><pre class="rust"><code><span class="comment">/*
* Copyright (C) 2022 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see &lt;https://www.gnu.org/licenses/&gt;.
*/
</pre></div><pre class="rust"><code><span class="comment">// Copyright (C) 2022 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;
// SPDX-FileCopyrightText: 2023 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;
//
// SPDX-License-Identifier: AGPL-3.0-or-later
</span><span class="kw">use </span>actix_auth_middleware::Authentication;
<span class="kw">use </span>actix_web::web::ServiceConfig;

View File

@@ -85,34 +85,10 @@
<a href="#85" id="85">85</a>
<a href="#86" id="86">86</a>
<a href="#87" id="87">87</a>
<a href="#88" id="88">88</a>
<a href="#89" id="89">89</a>
<a href="#90" id="90">90</a>
<a href="#91" id="91">91</a>
<a href="#92" id="92">92</a>
<a href="#93" id="93">93</a>
<a href="#94" id="94">94</a>
<a href="#95" id="95">95</a>
<a href="#96" id="96">96</a>
<a href="#97" id="97">97</a>
<a href="#98" id="98">98</a>
<a href="#99" id="99">99</a>
</pre></div><pre class="rust"><code><span class="comment">/*
* Copyright (C) 2022 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see &lt;https://www.gnu.org/licenses/&gt;.
*/
</pre></div><pre class="rust"><code><span class="comment">// Copyright (C) 2022 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;
// SPDX-FileCopyrightText: 2023 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;
//
// SPDX-License-Identifier: AGPL-3.0-or-later
</span><span class="kw">use </span>actix_identity::Identity;
<span class="kw">use </span>actix_web::{HttpResponse, Responder};

View File

@@ -116,34 +116,10 @@
<a href="#116" id="116">116</a>
<a href="#117" id="117">117</a>
<a href="#118" id="118">118</a>
<a href="#119" id="119">119</a>
<a href="#120" id="120">120</a>
<a href="#121" id="121">121</a>
<a href="#122" id="122">122</a>
<a href="#123" id="123">123</a>
<a href="#124" id="124">124</a>
<a href="#125" id="125">125</a>
<a href="#126" id="126">126</a>
<a href="#127" id="127">127</a>
<a href="#128" id="128">128</a>
<a href="#129" id="129">129</a>
<a href="#130" id="130">130</a>
</pre></div><pre class="rust"><code><span class="comment">/*
* Copyright (C) 2022 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see &lt;https://www.gnu.org/licenses/&gt;.
*/
</pre></div><pre class="rust"><code><span class="comment">// Copyright (C) 2022 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;
// SPDX-FileCopyrightText: 2023 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;
//
// SPDX-License-Identifier: AGPL-3.0-or-later
</span><span class="kw">use </span>actix_identity::Identity;
<span class="kw">use </span>actix_web::{HttpResponse, Responder};

View File

@@ -99,33 +99,11 @@
<a href="#99" id="99">99</a>
<a href="#100" id="100">100</a>
<a href="#101" id="101">101</a>
<a href="#102" id="102">102</a>
<a href="#103" id="103">103</a>
<a href="#104" id="104">104</a>
<a href="#105" id="105">105</a>
<a href="#106" id="106">106</a>
<a href="#107" id="107">107</a>
<a href="#108" id="108">108</a>
<a href="#109" id="109">109</a>
<a href="#110" id="110">110</a>
<a href="#111" id="111">111</a>
<a href="#112" id="112">112</a>
</pre></div><pre class="rust"><code><span class="comment">/*
* Copyright (C) 2022 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see &lt;https://www.gnu.org/licenses/&gt;.
*/
</pre></div><pre class="rust"><code><span class="comment">// Copyright (C) 2022 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;
// SPDX-FileCopyrightText: 2023 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;
//
// SPDX-License-Identifier: AGPL-3.0-or-later
</span><span class="kw">use </span>actix_identity::Identity;
<span class="kw">use </span>actix_web::{HttpResponse, Responder};
<span class="kw">use </span>sailfish::TemplateOnce;

View File

@@ -76,34 +76,10 @@
<a href="#76" id="76">76</a>
<a href="#77" id="77">77</a>
<a href="#78" id="78">78</a>
<a href="#79" id="79">79</a>
<a href="#80" id="80">80</a>
<a href="#81" id="81">81</a>
<a href="#82" id="82">82</a>
<a href="#83" id="83">83</a>
<a href="#84" id="84">84</a>
<a href="#85" id="85">85</a>
<a href="#86" id="86">86</a>
<a href="#87" id="87">87</a>
<a href="#88" id="88">88</a>
<a href="#89" id="89">89</a>
<a href="#90" id="90">90</a>
</pre></div><pre class="rust"><code><span class="comment">/*
* Copyright (C) 2022 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see &lt;https://www.gnu.org/licenses/&gt;.
*/
</pre></div><pre class="rust"><code><span class="comment">// Copyright (C) 2022 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;
// SPDX-FileCopyrightText: 2023 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;
//
// SPDX-License-Identifier: AGPL-3.0-or-later
</span><span class="kw">use </span>actix_web::{HttpResponse, Responder};
<span class="kw">use </span>lazy_static::lazy_static;

View File

@@ -24,34 +24,10 @@
<a href="#24" id="24">24</a>
<a href="#25" id="25">25</a>
<a href="#26" id="26">26</a>
<a href="#27" id="27">27</a>
<a href="#28" id="28">28</a>
<a href="#29" id="29">29</a>
<a href="#30" id="30">30</a>
<a href="#31" id="31">31</a>
<a href="#32" id="32">32</a>
<a href="#33" id="33">33</a>
<a href="#34" id="34">34</a>
<a href="#35" id="35">35</a>
<a href="#36" id="36">36</a>
<a href="#37" id="37">37</a>
<a href="#38" id="38">38</a>
</pre></div><pre class="rust"><code><span class="comment">/*
* Copyright (C) 2022 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see &lt;https://www.gnu.org/licenses/&gt;.
*/
</pre></div><pre class="rust"><code><span class="comment">// Copyright (C) 2022 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;
// SPDX-FileCopyrightText: 2023 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;
//
// SPDX-License-Identifier: AGPL-3.0-or-later
</span><span class="kw">use </span>actix_web::{web, HttpResponse, Responder};
<span class="kw">use </span>my_codegen::get;

View File

@@ -205,33 +205,11 @@
<a href="#205" id="205">205</a>
<a href="#206" id="206">206</a>
<a href="#207" id="207">207</a>
<a href="#208" id="208">208</a>
<a href="#209" id="209">209</a>
<a href="#210" id="210">210</a>
<a href="#211" id="211">211</a>
<a href="#212" id="212">212</a>
<a href="#213" id="213">213</a>
<a href="#214" id="214">214</a>
<a href="#215" id="215">215</a>
<a href="#216" id="216">216</a>
<a href="#217" id="217">217</a>
<a href="#218" id="218">218</a>
</pre></div><pre class="rust"><code><span class="comment">/*
* Copyright (C) 2022 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see &lt;https://www.gnu.org/licenses/&gt;.
*/
</pre></div><pre class="rust"><code><span class="comment">// Copyright (C) 2022 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;
// SPDX-FileCopyrightText: 2023 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;
//
// SPDX-License-Identifier: AGPL-3.0-or-later
</span><span class="kw">use </span>actix_identity::Identity;
<span class="kw">use </span>actix_web::{http, web, HttpResponse, Responder};
<span class="kw">use </span>sailfish::TemplateOnce;

View File

@@ -101,34 +101,10 @@
<a href="#101" id="101">101</a>
<a href="#102" id="102">102</a>
<a href="#103" id="103">103</a>
<a href="#104" id="104">104</a>
<a href="#105" id="105">105</a>
<a href="#106" id="106">106</a>
<a href="#107" id="107">107</a>
<a href="#108" id="108">108</a>
<a href="#109" id="109">109</a>
<a href="#110" id="110">110</a>
<a href="#111" id="111">111</a>
<a href="#112" id="112">112</a>
<a href="#113" id="113">113</a>
<a href="#114" id="114">114</a>
<a href="#115" id="115">115</a>
</pre></div><pre class="rust"><code><span class="comment">/*
* Copyright (C) 2022 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see &lt;https://www.gnu.org/licenses/&gt;.
*/
</pre></div><pre class="rust"><code><span class="comment">// Copyright (C) 2022 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;
// SPDX-FileCopyrightText: 2023 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;
//
// SPDX-License-Identifier: AGPL-3.0-or-later
</span><span class="kw">use </span>actix_identity::Identity;
<span class="kw">use </span>actix_web::{HttpResponse, Responder};

View File

@@ -85,34 +85,10 @@
<a href="#85" id="85">85</a>
<a href="#86" id="86">86</a>
<a href="#87" id="87">87</a>
<a href="#88" id="88">88</a>
<a href="#89" id="89">89</a>
<a href="#90" id="90">90</a>
<a href="#91" id="91">91</a>
<a href="#92" id="92">92</a>
<a href="#93" id="93">93</a>
<a href="#94" id="94">94</a>
<a href="#95" id="95">95</a>
<a href="#96" id="96">96</a>
<a href="#97" id="97">97</a>
<a href="#98" id="98">98</a>
<a href="#99" id="99">99</a>
</pre></div><pre class="rust"><code><span class="comment">/*
* Copyright (C) 2022 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see &lt;https://www.gnu.org/licenses/&gt;.
*/
</pre></div><pre class="rust"><code><span class="comment">// Copyright (C) 2022 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;
// SPDX-FileCopyrightText: 2023 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;
//
// SPDX-License-Identifier: AGPL-3.0-or-later
</span><span class="kw">mod </span>add;
<span class="kw">mod </span>delete;

View File

@@ -130,34 +130,10 @@
<a href="#130" id="130">130</a>
<a href="#131" id="131">131</a>
<a href="#132" id="132">132</a>
<a href="#133" id="133">133</a>
<a href="#134" id="134">134</a>
<a href="#135" id="135">135</a>
<a href="#136" id="136">136</a>
<a href="#137" id="137">137</a>
<a href="#138" id="138">138</a>
<a href="#139" id="139">139</a>
<a href="#140" id="140">140</a>
<a href="#141" id="141">141</a>
<a href="#142" id="142">142</a>
<a href="#143" id="143">143</a>
<a href="#144" id="144">144</a>
</pre></div><pre class="rust"><code><span class="comment">/*
* Copyright (C) 2022 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see &lt;https://www.gnu.org/licenses/&gt;.
*/
</pre></div><pre class="rust"><code><span class="comment">// Copyright (C) 2022 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;
// SPDX-FileCopyrightText: 2023 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;
//
// SPDX-License-Identifier: AGPL-3.0-or-later
</span><span class="kw">use </span>actix_identity::Identity;
<span class="kw">use </span>actix_web::{web, HttpResponse, Responder};

View File

@@ -64,33 +64,11 @@
<a href="#64" id="64">64</a>
<a href="#65" id="65">65</a>
<a href="#66" id="66">66</a>
<a href="#67" id="67">67</a>
<a href="#68" id="68">68</a>
<a href="#69" id="69">69</a>
<a href="#70" id="70">70</a>
<a href="#71" id="71">71</a>
<a href="#72" id="72">72</a>
<a href="#73" id="73">73</a>
<a href="#74" id="74">74</a>
<a href="#75" id="75">75</a>
<a href="#76" id="76">76</a>
<a href="#77" id="77">77</a>
</pre></div><pre class="rust"><code><span class="comment">/*
* Copyright (C) 2022 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see &lt;https://www.gnu.org/licenses/&gt;.
*/
</pre></div><pre class="rust"><code><span class="comment">// Copyright (C) 2022 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;
// SPDX-FileCopyrightText: 2023 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;
//
// SPDX-License-Identifier: AGPL-3.0-or-later
</span><span class="kw">use </span>actix_auth_middleware::GetLoginRoute;
<span class="kw">use </span><span class="kw">super</span>::auth::routes::Auth;

View File

@@ -41,32 +41,10 @@
<a href="#41" id="41">41</a>
<a href="#42" id="42">42</a>
<a href="#43" id="43">43</a>
<a href="#44" id="44">44</a>
<a href="#45" id="45">45</a>
<a href="#46" id="46">46</a>
<a href="#47" id="47">47</a>
<a href="#48" id="48">48</a>
<a href="#49" id="49">49</a>
<a href="#50" id="50">50</a>
<a href="#51" id="51">51</a>
<a href="#52" id="52">52</a>
<a href="#53" id="53">53</a>
<a href="#54" id="54">54</a>
</pre></div><pre class="rust"><code><span class="comment">/*
* Copyright (C) 2022 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License along with this program. If not, see &lt;https://www.gnu.org/licenses/&gt;.
*/
</pre></div><pre class="rust"><code><span class="comment">// Copyright (C) 2022 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;
// SPDX-FileCopyrightText: 2023 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;
//
// SPDX-License-Identifier: AGPL-3.0-or-later
</span><span class="kw">use </span>actix_web::{HttpResponse, Responder};
<span class="kw">use </span>lazy_static::lazy_static;

View File

@@ -10,34 +10,10 @@
<a href="#10" id="10">10</a>
<a href="#11" id="11">11</a>
<a href="#12" id="12">12</a>
<a href="#13" id="13">13</a>
<a href="#14" id="14">14</a>
<a href="#15" id="15">15</a>
<a href="#16" id="16">16</a>
<a href="#17" id="17">17</a>
<a href="#18" id="18">18</a>
<a href="#19" id="19">19</a>
<a href="#20" id="20">20</a>
<a href="#21" id="21">21</a>
<a href="#22" id="22">22</a>
<a href="#23" id="23">23</a>
<a href="#24" id="24">24</a>
</pre></div><pre class="rust"><code><span class="comment">/*
* Copyright (C) 2022 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see &lt;https://www.gnu.org/licenses/&gt;.
*/
</pre></div><pre class="rust"><code><span class="comment">// Copyright (C) 2022 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;
// SPDX-FileCopyrightText: 2023 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;
//
// SPDX-License-Identifier: AGPL-3.0-or-later
</span><span class="kw">pub fn </span>services(cfg: <span class="kw-2">&amp;mut </span>actix_web::web::ServiceConfig) {
<span class="kw">crate</span>::api::v1::services(cfg);

View File

@@ -253,33 +253,11 @@
<a href="#253" id="253">253</a>
<a href="#254" id="254">254</a>
<a href="#255" id="255">255</a>
<a href="#256" id="256">256</a>
<a href="#257" id="257">257</a>
<a href="#258" id="258">258</a>
<a href="#259" id="259">259</a>
<a href="#260" id="260">260</a>
<a href="#261" id="261">261</a>
<a href="#262" id="262">262</a>
<a href="#263" id="263">263</a>
<a href="#264" id="264">264</a>
<a href="#265" id="265">265</a>
<a href="#266" id="266">266</a>
</pre></div><pre class="rust"><code><span class="comment">/*
* Copyright (C) 2022 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see &lt;https://www.gnu.org/licenses/&gt;.
*/
</pre></div><pre class="rust"><code><span class="comment">// Copyright (C) 2022 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;
// SPDX-FileCopyrightText: 2023 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;
//
// SPDX-License-Identifier: AGPL-3.0-or-later
</span><span class="kw">use </span>std::path::Path;
<span class="kw">use </span>std::{env, fs};

View File

@@ -33,33 +33,11 @@
<a href="#33" id="33">33</a>
<a href="#34" id="34">34</a>
<a href="#35" id="35">35</a>
<a href="#36" id="36">36</a>
<a href="#37" id="37">37</a>
<a href="#38" id="38">38</a>
<a href="#39" id="39">39</a>
<a href="#40" id="40">40</a>
<a href="#41" id="41">41</a>
<a href="#42" id="42">42</a>
<a href="#43" id="43">43</a>
<a href="#44" id="44">44</a>
<a href="#45" id="45">45</a>
<a href="#46" id="46">46</a>
</pre></div><pre class="rust"><code><span class="comment">/*
* Copyright (C) 2022 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see &lt;https://www.gnu.org/licenses/&gt;.
*/
</pre></div><pre class="rust"><code><span class="comment">// Copyright (C) 2022 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;
// SPDX-FileCopyrightText: 2023 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;
//
// SPDX-License-Identifier: AGPL-3.0-or-later
</span><span class="kw">use </span>cache_buster::Files;
<span class="kw">pub struct </span>FileMap {

View File

@@ -12,33 +12,11 @@
<a href="#12" id="12">12</a>
<a href="#13" id="13">13</a>
<a href="#14" id="14">14</a>
<a href="#15" id="15">15</a>
<a href="#16" id="16">16</a>
<a href="#17" id="17">17</a>
<a href="#18" id="18">18</a>
<a href="#19" id="19">19</a>
<a href="#20" id="20">20</a>
<a href="#21" id="21">21</a>
<a href="#22" id="22">22</a>
<a href="#23" id="23">23</a>
<a href="#24" id="24">24</a>
<a href="#25" id="25">25</a>
</pre></div><pre class="rust"><code><span class="comment">/*
* Copyright (C) 2022 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see &lt;https://www.gnu.org/licenses/&gt;.
*/
</pre></div><pre class="rust"><code><span class="comment">// Copyright (C) 2022 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;
// SPDX-FileCopyrightText: 2023 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;
//
// SPDX-License-Identifier: AGPL-3.0-or-later
</span><span class="kw">pub mod </span>filemap;
<span class="kw">pub mod </span>static_files;

View File

@@ -155,33 +155,11 @@
<a href="#155" id="155">155</a>
<a href="#156" id="156">156</a>
<a href="#157" id="157">157</a>
<a href="#158" id="158">158</a>
<a href="#159" id="159">159</a>
<a href="#160" id="160">160</a>
<a href="#161" id="161">161</a>
<a href="#162" id="162">162</a>
<a href="#163" id="163">163</a>
<a href="#164" id="164">164</a>
<a href="#165" id="165">165</a>
<a href="#166" id="166">166</a>
<a href="#167" id="167">167</a>
<a href="#168" id="168">168</a>
</pre></div><pre class="rust"><code><span class="comment">/*
* Copyright (C) 2022 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see &lt;https://www.gnu.org/licenses/&gt;.
*/
</pre></div><pre class="rust"><code><span class="comment">// Copyright (C) 2022 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;
// SPDX-FileCopyrightText: 2023 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;
//
// SPDX-License-Identifier: AGPL-3.0-or-later
</span><span class="kw">use </span>std::borrow::Cow;
<span class="kw">use </span>actix_web::body::BoxBody;

View File

@@ -117,33 +117,11 @@
<a href="#117" id="117">117</a>
<a href="#118" id="118">118</a>
<a href="#119" id="119">119</a>
<a href="#120" id="120">120</a>
<a href="#121" id="121">121</a>
<a href="#122" id="122">122</a>
<a href="#123" id="123">123</a>
<a href="#124" id="124">124</a>
<a href="#125" id="125">125</a>
<a href="#126" id="126">126</a>
<a href="#127" id="127">127</a>
<a href="#128" id="128">128</a>
<a href="#129" id="129">129</a>
<a href="#130" id="130">130</a>
</pre></div><pre class="rust"><code><span class="comment">/*
* Copyright (C) 2022 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see &lt;https://www.gnu.org/licenses/&gt;.
*/
</pre></div><pre class="rust"><code><span class="comment">// Copyright (C) 2022 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;
// SPDX-FileCopyrightText: 2023 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;
//
// SPDX-License-Identifier: AGPL-3.0-or-later
</span><span class="kw">use </span>async_trait::async_trait;
<span class="kw">use </span>db_core::errors::DBResult;
<span class="kw">use </span>serde::{Deserialize, Serialize};

View File

@@ -68,33 +68,11 @@
<a href="#68" id="68">68</a>
<a href="#69" id="69">69</a>
<a href="#70" id="70">70</a>
<a href="#71" id="71">71</a>
<a href="#72" id="72">72</a>
<a href="#73" id="73">73</a>
<a href="#74" id="74">74</a>
<a href="#75" id="75">75</a>
<a href="#76" id="76">76</a>
<a href="#77" id="77">77</a>
<a href="#78" id="78">78</a>
<a href="#79" id="79">79</a>
<a href="#80" id="80">80</a>
<a href="#81" id="81">81</a>
</pre></div><pre class="rust"><code><span class="comment">/*
* Copyright (C) 2022 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero General Public License as
* published by the Free Software Foundation, either version 3 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see &lt;https://www.gnu.org/licenses/&gt;.
*/
</pre></div><pre class="rust"><code><span class="comment">// Copyright (C) 2022 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;
// SPDX-FileCopyrightText: 2023 Aravinth Manivannan &lt;realaravinth@batsense.net&gt;
//
// SPDX-License-Identifier: AGPL-3.0-or-later
</span><span class="doccomment">//! User facing CAPTCHA widget
</span><span class="kw">use </span>actix_web::{web, HttpResponse, Responder};
<span class="kw">use </span>lazy_static::lazy_static;