mirror of
https://github.com/mCaptcha/mCaptcha.git
synced 2026-02-12 02:25:41 +00:00
Deploying to gh-pages from @ 5f5420d10f4888e93d0126df420f3293b04ec761 🚀
This commit is contained in:
@@ -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 <realaravinth@batsense.net>
|
||||
*
|
||||
* 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 <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
</pre></div><pre class="rust"><code><span class="comment">// Copyright (C) 2022 Aravinth Manivannan <realaravinth@batsense.net>
|
||||
// SPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>
|
||||
//
|
||||
// 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;
|
||||
|
||||
|
||||
@@ -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 <realaravinth@batsense.net>
|
||||
*
|
||||
* 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 <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
</pre></div><pre class="rust"><code><span class="comment">// Copyright (C) 2022 Aravinth Manivannan <realaravinth@batsense.net>
|
||||
// SPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>
|
||||
//
|
||||
// SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
|
||||
</span><span class="attr">#![warn(missing_docs)]
|
||||
</span><span class="doccomment">//! # `mCaptcha` database operations
|
||||
|
||||
@@ -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 <realaravinth@batsense.net>
|
||||
*
|
||||
* 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 <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
</pre></div><pre class="rust"><code><span class="comment">// Copyright (C) 2022 Aravinth Manivannan <realaravinth@batsense.net>
|
||||
// SPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>
|
||||
//
|
||||
// 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>;
|
||||
|
||||
|
||||
@@ -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 <realaravinth@batsense.net>
|
||||
*
|
||||
* 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 <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
</pre></div><pre class="rust"><code><span class="comment">// Copyright (C) 2022 Aravinth Manivannan <realaravinth@batsense.net>
|
||||
// SPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>
|
||||
//
|
||||
// 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>;
|
||||
|
||||
@@ -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 <realaravinth@batsense.net>
|
||||
*
|
||||
* 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 <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
</pre></div><pre class="rust"><code><span class="comment">// Copyright (C) 2022 Aravinth Manivannan <realaravinth@batsense.net>
|
||||
// SPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>
|
||||
//
|
||||
// SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
|
||||
</span><span class="doccomment">//! Error-handling utilities
|
||||
</span><span class="kw">use </span>std::borrow::Cow;
|
||||
|
||||
@@ -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 <realaravinth@batsense.net>
|
||||
*
|
||||
* 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 <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
</pre></div><pre class="rust"><code><span class="comment">// Copyright (C) 2022 Aravinth Manivannan <realaravinth@batsense.net>
|
||||
// SPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>
|
||||
//
|
||||
// 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>;
|
||||
|
||||
@@ -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 <realaravinth@batsense.net>
|
||||
*
|
||||
* 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 <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
</pre></div><pre class="rust"><code><span class="comment">// Copyright (C) 2022 Aravinth Manivannan <realaravinth@batsense.net>
|
||||
// SPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>
|
||||
//
|
||||
// SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
|
||||
</span><span class="doccomment">//! Error-handling utilities
|
||||
</span><span class="kw">use </span>std::borrow::Cow;
|
||||
|
||||
@@ -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 <realaravinth@batsense.net>
|
||||
*
|
||||
* 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 <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
</pre></div><pre class="rust"><code><span class="comment">// Copyright (C) 2022 Aravinth Manivannan <realaravinth@batsense.net>
|
||||
// SPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>
|
||||
//
|
||||
// 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>;
|
||||
|
||||
@@ -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 <realaravinth@batsense.net>
|
||||
*
|
||||
* 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 <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
</pre></div><pre class="rust"><code><span class="comment">// Copyright (C) 2022 Aravinth Manivannan <realaravinth@batsense.net>
|
||||
// SPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>
|
||||
//
|
||||
// SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
|
||||
</span><span class="kw">pub mod </span>v1;
|
||||
</code></pre></div></section></main></body></html>
|
||||
@@ -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 <realaravinth@batsense.net>
|
||||
*
|
||||
* 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 <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
</pre></div><pre class="rust"><code><span class="comment">// Copyright (C) 2022 Aravinth Manivannan <realaravinth@batsense.net>
|
||||
// SPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>
|
||||
//
|
||||
// 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};
|
||||
|
||||
@@ -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 <realaravinth@batsense.net>
|
||||
*
|
||||
* 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 <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
</pre></div><pre class="rust"><code><span class="comment">// Copyright (C) 2022 Aravinth Manivannan <realaravinth@batsense.net>
|
||||
// SPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>
|
||||
//
|
||||
// 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;
|
||||
|
||||
@@ -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 <realaravinth@batsense.net>
|
||||
*
|
||||
* 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 <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
</pre></div><pre class="rust"><code><span class="comment">// Copyright (C) 2022 Aravinth Manivannan <realaravinth@batsense.net>
|
||||
// SPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>
|
||||
//
|
||||
// SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
|
||||
</span><span class="kw">use </span>serde::{Deserialize, Serialize};
|
||||
|
||||
|
||||
@@ -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 <realaravinth@batsense.net>
|
||||
*
|
||||
* 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 <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
</pre></div><pre class="rust"><code><span class="comment">// Copyright (C) 2022 Aravinth Manivannan <realaravinth@batsense.net>
|
||||
// SPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>
|
||||
//
|
||||
// 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;
|
||||
|
||||
@@ -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 <realaravinth@batsense.net>
|
||||
*
|
||||
* 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 <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
</pre></div><pre class="rust"><code><span class="comment">// Copyright (C) 2022 Aravinth Manivannan <realaravinth@batsense.net>
|
||||
// SPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>
|
||||
//
|
||||
// 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>;
|
||||
|
||||
@@ -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 <realaravinth@batsense.net>
|
||||
*
|
||||
* 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 <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
</pre></div><pre class="rust"><code><span class="comment">// Copyright (C) 2022 Aravinth Manivannan <realaravinth@batsense.net>
|
||||
// SPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>
|
||||
//
|
||||
// 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};
|
||||
|
||||
@@ -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 <realaravinth@batsense.net>
|
||||
*
|
||||
* 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 <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
</pre></div><pre class="rust"><code><span class="comment">// Copyright (C) 2022 Aravinth Manivannan <realaravinth@batsense.net>
|
||||
// SPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>
|
||||
//
|
||||
// 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;
|
||||
|
||||
@@ -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 <realaravinth@batsense.net>
|
||||
*
|
||||
* 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 <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
</pre></div><pre class="rust"><code><span class="comment">// Copyright (C) 2022 Aravinth Manivannan <realaravinth@batsense.net>
|
||||
// SPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>
|
||||
//
|
||||
// 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;
|
||||
|
||||
@@ -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 <realaravinth@batsense.net>
|
||||
*
|
||||
* 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 <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
</pre></div><pre class="rust"><code><span class="comment">// Copyright (C) 2022 Aravinth Manivannan <realaravinth@batsense.net>
|
||||
// SPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>
|
||||
//
|
||||
// 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;
|
||||
|
||||
@@ -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 <realaravinth@batsense.net>
|
||||
*
|
||||
* 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 <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
</pre></div><pre class="rust"><code><span class="comment">// Copyright (C) 2022 Aravinth Manivannan <realaravinth@batsense.net>
|
||||
// SPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>
|
||||
//
|
||||
// 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};
|
||||
|
||||
@@ -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 <realaravinth@batsense.net>
|
||||
*
|
||||
* 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 <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
</pre></div><pre class="rust"><code><span class="comment">// Copyright (C) 2022 Aravinth Manivannan <realaravinth@batsense.net>
|
||||
// SPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>
|
||||
//
|
||||
// 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};
|
||||
|
||||
|
||||
@@ -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 <realaravinth@batsense.net>
|
||||
*
|
||||
* 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 <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
</pre></div><pre class="rust"><code><span class="comment">// Copyright (C) 2022 Aravinth Manivannan <realaravinth@batsense.net>
|
||||
// SPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>
|
||||
//
|
||||
// SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
|
||||
</span><span class="kw">pub mod </span>create;
|
||||
<span class="kw">pub mod </span>delete;
|
||||
|
||||
@@ -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 <realaravinth@batsense.net>
|
||||
*
|
||||
* 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 <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
</pre></div><pre class="rust"><code><span class="comment">// Copyright (C) 2022 Aravinth Manivannan <realaravinth@batsense.net>
|
||||
// SPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>
|
||||
//
|
||||
// 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};
|
||||
|
||||
@@ -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 <realaravinth@batsense.net>
|
||||
*
|
||||
* 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 <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
</pre></div><pre class="rust"><code><span class="comment">// Copyright (C) 2022 Aravinth Manivannan <realaravinth@batsense.net>
|
||||
// SPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>
|
||||
//
|
||||
// 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;
|
||||
|
||||
@@ -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 <realaravinth@batsense.net>
|
||||
*
|
||||
* 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 <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
</pre></div><pre class="rust"><code><span class="comment">// Copyright (C) 2022 Aravinth Manivannan <realaravinth@batsense.net>
|
||||
// SPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>
|
||||
//
|
||||
// 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;
|
||||
|
||||
@@ -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 <realaravinth@batsense.net>
|
||||
*
|
||||
* 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 <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
</pre></div><pre class="rust"><code><span class="comment">// Copyright (C) 2022 Aravinth Manivannan <realaravinth@batsense.net>
|
||||
// SPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>
|
||||
//
|
||||
// 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;
|
||||
|
||||
@@ -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 <realaravinth@batsense.net>
|
||||
*
|
||||
* 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 <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
</pre></div><pre class="rust"><code><span class="comment">// Copyright (C) 2022 Aravinth Manivannan <realaravinth@batsense.net>
|
||||
// SPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>
|
||||
//
|
||||
// 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};
|
||||
|
||||
@@ -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 <realaravinth@batsense.net>
|
||||
*
|
||||
* 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 <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
</pre></div><pre class="rust"><code><span class="comment">// Copyright (C) 2022 Aravinth Manivannan <realaravinth@batsense.net>
|
||||
// SPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>
|
||||
//
|
||||
// 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};
|
||||
|
||||
@@ -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 <realaravinth@batsense.net>
|
||||
*
|
||||
* 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 <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
</pre></div><pre class="rust"><code><span class="comment">// Copyright (C) 2022 Aravinth Manivannan <realaravinth@batsense.net>
|
||||
// SPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>
|
||||
//
|
||||
// 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};
|
||||
|
||||
@@ -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 <realaravinth@batsense.net>
|
||||
*
|
||||
* 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 <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
</pre></div><pre class="rust"><code><span class="comment">// Copyright (C) 2022 Aravinth Manivannan <realaravinth@batsense.net>
|
||||
// SPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>
|
||||
//
|
||||
// SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
|
||||
</span><span class="kw">pub mod </span>add;
|
||||
<span class="kw">pub mod </span>get;
|
||||
|
||||
@@ -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 <realaravinth@batsense.net>
|
||||
*
|
||||
* 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 <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
</pre></div><pre class="rust"><code><span class="comment">// Copyright (C) 2022 Aravinth Manivannan <realaravinth@batsense.net>
|
||||
// SPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>
|
||||
//
|
||||
// SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
|
||||
//use actix::prelude::*;
|
||||
</span><span class="kw">use </span>actix_web::{web, HttpResponse, Responder};
|
||||
|
||||
@@ -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 <realaravinth@batsense.net>
|
||||
*
|
||||
* 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 <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
</pre></div><pre class="rust"><code><span class="comment">// Copyright (C) 2022 Aravinth Manivannan <realaravinth@batsense.net>
|
||||
// SPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>
|
||||
//
|
||||
// SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
|
||||
</span><span class="kw">use </span>actix_web::web;
|
||||
|
||||
|
||||
@@ -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 <realaravinth@batsense.net>
|
||||
*
|
||||
* 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 <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
</pre></div><pre class="rust"><code><span class="comment">// Copyright (C) 2022 Aravinth Manivannan <realaravinth@batsense.net>
|
||||
// SPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>
|
||||
//
|
||||
// SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
|
||||
</span><span class="doccomment">//! PoW Verification module
|
||||
|
||||
</span><span class="kw">use </span>actix_web::HttpRequest;
|
||||
|
||||
@@ -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 <realaravinth@batsense.net>
|
||||
*
|
||||
* 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 <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
</pre></div><pre class="rust"><code><span class="comment">// Copyright (C) 2022 Aravinth Manivannan <realaravinth@batsense.net>
|
||||
// SPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>
|
||||
//
|
||||
// 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};
|
||||
|
||||
@@ -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 <realaravinth@batsense.net>
|
||||
*
|
||||
* 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 <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
</pre></div><pre class="rust"><code><span class="comment">// Copyright (C) 2022 Aravinth Manivannan <realaravinth@batsense.net>
|
||||
// SPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>
|
||||
//
|
||||
// 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;
|
||||
|
||||
@@ -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 <realaravinth@batsense.net>
|
||||
*
|
||||
* 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 <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
</pre></div><pre class="rust"><code><span class="comment">// Copyright (C) 2022 Aravinth Manivannan <realaravinth@batsense.net>
|
||||
// SPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>
|
||||
//
|
||||
// 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;
|
||||
|
||||
@@ -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 <realaravinth@batsense.net>
|
||||
*
|
||||
* 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 <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
</pre></div><pre class="rust"><code><span class="comment">// Copyright (C) 2022 Aravinth Manivannan <realaravinth@batsense.net>
|
||||
// SPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>
|
||||
//
|
||||
// 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;
|
||||
|
||||
@@ -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 <realaravinth@batsense.net>
|
||||
*
|
||||
* 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 <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
</pre></div><pre class="rust"><code><span class="comment">// Copyright (C) 2022 Aravinth Manivannan <realaravinth@batsense.net>
|
||||
// SPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>
|
||||
//
|
||||
// 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>;
|
||||
|
||||
|
||||
@@ -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 <realaravinth@batsense.net>
|
||||
*
|
||||
* 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 <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
</pre></div><pre class="rust"><code><span class="comment">// Copyright (C) 2022 Aravinth Manivannan <realaravinth@batsense.net>
|
||||
// SPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>
|
||||
//
|
||||
// SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
|
||||
</span><span class="kw">use </span>std::time::Duration;
|
||||
<span class="comment">//use std::sync::atomicBool
|
||||
|
||||
|
||||
@@ -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 <realaravinth@batsense.net>
|
||||
*
|
||||
* 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 <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
</pre></div><pre class="rust"><code><span class="comment">// Copyright (C) 2022 Aravinth Manivannan <realaravinth@batsense.net>
|
||||
// SPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>
|
||||
//
|
||||
// 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;
|
||||
|
||||
@@ -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 <realaravinth@batsense.net>
|
||||
*
|
||||
* 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 <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
</pre></div><pre class="rust"><code><span class="comment">// Copyright (C) 2022 Aravinth Manivannan <realaravinth@batsense.net>
|
||||
// SPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>
|
||||
//
|
||||
// SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
|
||||
</span><span class="kw">pub mod </span>verification;
|
||||
</code></pre></div></section></main></body></html>
|
||||
@@ -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 <realaravinth@batsense.net>
|
||||
*
|
||||
* 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 <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
</pre></div><pre class="rust"><code><span class="comment">// Copyright (C) 2022 Aravinth Manivannan <realaravinth@batsense.net>
|
||||
// SPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>
|
||||
//
|
||||
// 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},
|
||||
|
||||
@@ -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 <realaravinth@batsense.net>
|
||||
*
|
||||
* 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 <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
</pre></div><pre class="rust"><code><span class="comment">// Copyright (C) 2022 Aravinth Manivannan <realaravinth@batsense.net>
|
||||
// SPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>
|
||||
//
|
||||
// SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
|
||||
</span><span class="kw">use </span>std::convert::From;
|
||||
|
||||
|
||||
@@ -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">"<!--\nSPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>\nSPDX-License-Identifier: AGPL-3.0-or-later\n-->\n"</span>);
|
||||
<span class="kw">const </span>URL: <span class="kw-2">&</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">"\n"</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">&</span>key);
|
||||
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">"\n"</span>);
|
||||
{
|
||||
__sf_rt :: render_text ! (__sf_buf , <span class="string">"<!--\nSPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>\nSPDX-License-Identifier: AGPL-3.0-or-later\n-->\n"</span>);
|
||||
{
|
||||
<span class="macro">__sf_rt::render_text!</span>(
|
||||
__sf_buf,
|
||||
<span class="string">"<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n"
|
||||
</span>);
|
||||
__sf_rt :: render_text ! (__sf_buf , <span class="string">"<!--\nSPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>\nSPDX-License-Identifier: AGPL-3.0-or-later\n-->\n<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n"</span>);
|
||||
{
|
||||
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">"<meta charset=\"UTF-8\" />\n<title>"</span>);
|
||||
__sf_rt :: render_text ! (__sf_buf , <span class="string">"<!--\nSPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>\nSPDX-License-Identifier: AGPL-3.0-or-later\n-->\n<meta charset=\"UTF-8\" />\n<title>"</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">" | "</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">"\n"</span>);
|
||||
{
|
||||
__sf_rt :: render_text ! (__sf_buf , <span class="string">"<link rel=\"apple-touch-icon\" sizes=\"57x57\" href=\"/apple-icon-57x57.png\">\n<link rel=\"apple-touch-icon\" sizes=\"60x60\" href=\"/apple-icon-60x60.png\">\n<link rel=\"apple-touch-icon\" sizes=\"72x72\" href=\"/apple-icon-72x72.png\">\n<link rel=\"apple-touch-icon\" sizes=\"76x76\" href=\"/apple-icon-76x76.png\">\n<link rel=\"apple-touch-icon\" sizes=\"114x114\" href=\"/apple-icon-114x114.png\">\n<link rel=\"apple-touch-icon\" sizes=\"120x120\" href=\"/apple-icon-120x120.png\">\n<link rel=\"apple-touch-icon\" sizes=\"144x144\" href=\"/apple-icon-144x144.png\">\n<link rel=\"apple-touch-icon\" sizes=\"152x152\" href=\"/apple-icon-152x152.png\">\n<link rel=\"apple-touch-icon\" sizes=\"180x180\" href=\"/apple-icon-180x180.png\">\n<link rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/android-icon-192x192.png\">\n<link rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/favicon-32x32.png\">\n<link rel=\"icon\" type=\"image/png\" sizes=\"96x96\" href=\"/favicon-96x96.png\">\n<link rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/favicon-16x16.png\">\n<link rel=\"manifest\" href=\"/manifest.json\">\n<meta name=\"msapplication-TileColor\" content=\"#ffffff\">\n<meta name=\"msapplication-TileImage\" content=\"/ms-icon-144x144.png\">\n<meta name=\"theme-color\" content=\"#ffffff\">"</span>);
|
||||
__sf_rt :: render_text ! (__sf_buf , <span class="string">"<!--\nSPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>\nSPDX-License-Identifier: AGPL-3.0-or-later\n-->\n<link rel=\"apple-touch-icon\" sizes=\"57x57\" href=\"/apple-icon-57x57.png\">\n<link rel=\"apple-touch-icon\" sizes=\"60x60\" href=\"/apple-icon-60x60.png\">\n<link rel=\"apple-touch-icon\" sizes=\"72x72\" href=\"/apple-icon-72x72.png\">\n<link rel=\"apple-touch-icon\" sizes=\"76x76\" href=\"/apple-icon-76x76.png\">\n<link rel=\"apple-touch-icon\" sizes=\"114x114\" href=\"/apple-icon-114x114.png\">\n<link rel=\"apple-touch-icon\" sizes=\"120x120\" href=\"/apple-icon-120x120.png\">\n<link rel=\"apple-touch-icon\" sizes=\"144x144\" href=\"/apple-icon-144x144.png\">\n<link rel=\"apple-touch-icon\" sizes=\"152x152\" href=\"/apple-icon-152x152.png\">\n<link rel=\"apple-touch-icon\" sizes=\"180x180\" href=\"/apple-icon-180x180.png\">\n<link rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/android-icon-192x192.png\">\n<link rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/favicon-32x32.png\">\n<link rel=\"icon\" type=\"image/png\" sizes=\"96x96\" href=\"/favicon-96x96.png\">\n<link rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/favicon-16x16.png\">\n<link rel=\"manifest\" href=\"/manifest.json\">\n<meta name=\"msapplication-TileColor\" content=\"#ffffff\">\n<meta name=\"msapplication-TileImage\" content=\"/ms-icon-144x144.png\">\n<meta name=\"theme-color\" content=\"#ffffff\">"</span>);
|
||||
};
|
||||
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">"\n</head>"</span>);
|
||||
};
|
||||
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">"\n<body class=\"layout\">"</span>);
|
||||
{
|
||||
__sf_rt :: render_text ! (__sf_buf , <span class="string">"<nav class=\"secondary-menu\">\n<input type=\"checkbox\" class=\"nav-toggle\" id=\"nav-toggle\" >\n<div class=\"secondary-menu__heading\">\n<a class=\"novisit\" href=\"/\">\n<img class=\"secondary-menu__logo\" src=\""</span>);
|
||||
__sf_rt :: render_text ! (__sf_buf , <span class="string">"<!--\nSPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>\nSPDX-License-Identifier: AGPL-3.0-or-later\n-->\n<nav class=\"secondary-menu\">\n<input type=\"checkbox\" class=\"nav-toggle\" id=\"nav-toggle\" >\n<div class=\"secondary-menu__heading\">\n<a class=\"novisit\" href=\"/\">\n<img class=\"secondary-menu__logo\" src=\""</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">"\" alt=\""</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">"\n<div class=\"tmp-layout\">"</span>);
|
||||
{
|
||||
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">"<header>\n"</span>);
|
||||
__sf_rt :: render_text ! (__sf_buf , <span class="string">"<!--\nSPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>\nSPDX-License-Identifier: AGPL-3.0-or-later\n-->\n<header>\n"</span>);
|
||||
{
|
||||
__sf_rt :: render_text ! (__sf_buf , <span class="string">"<ul class=\"taskbar\">\n<li class=\"taskbar__spacer\"></li>\n<li class=\"taskbar__action\">\n"</span>);
|
||||
__sf_rt :: render_text ! (__sf_buf , <span class="string">"<!--\nSPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>\nSPDX-License-Identifier: AGPL-3.0-or-later\n-->\n<ul class=\"taskbar\">\n<li class=\"taskbar__spacer\"></li>\n<li class=\"taskbar__action\">\n"</span>);
|
||||
{
|
||||
<span class="macro">__sf_rt::render_text!</span>(
|
||||
__sf_buf,
|
||||
<span class="string">"<a class=\"taskbar__link\" href=\""
|
||||
</span>);
|
||||
__sf_rt :: render_text ! (__sf_buf , <span class="string">"<!--\nSPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>\nSPDX-License-Identifier: AGPL-3.0-or-later\n-->\n<a class=\"taskbar__link\" href=\""</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">"\n<main class=\"panel-main\">\n"</span>);
|
||||
{
|
||||
__sf_rt :: render_text ! (__sf_buf , <span class="string">"<ol class=\"help-text\">\n<li class=\"help-text__instructions\">\nAdd sitekey\n</li>\n<li class=\"help-text__instructions\">\nAdd client-side code snippets to protect pages\n</li>\n<li class=\"help-text__instructions\">\nAdd server-side verification logic\n</li>\n</ol>"</span>);
|
||||
__sf_rt :: render_text ! (__sf_buf , <span class="string">"<!--\nSPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>\nSPDX-License-Identifier: AGPL-3.0-or-later\n-->\n<ol class=\"help-text\">\n<li class=\"help-text__instructions\">\nAdd sitekey\n</li>\n<li class=\"help-text__instructions\">\nAdd client-side code snippets to protect pages\n</li>\n<li class=\"help-text__instructions\">\nAdd server-side verification logic\n</li>\n</ol>"</span>);
|
||||
};
|
||||
__sf_rt :: render_text ! (__sf_buf , <span class="string">"\n<!-- Main content container -->\n<div class=\"inner-container\">\n<!-- Main menu/ important actions roaster -->\n<form class=\"sitekey-form\" action=\""</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">"\">\nEasy Options\n</a>\n</div>\n"</span>);
|
||||
{
|
||||
__sf_rt :: render_text ! (__sf_buf , <span class="string">"</h1>\n<label class=\"sitekey-form__label\" for=\"description\">\nDescription\n<input\n"</span>);
|
||||
__sf_rt :: render_text ! (__sf_buf , <span class="string">"<!--\nSPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>\nSPDX-License-Identifier: AGPL-3.0-or-later\n-->\n</h1>\n<label class=\"sitekey-form__label\" for=\"description\">\nDescription\n<input\n"</span>);
|
||||
<span class="kw">if </span>READONLY {
|
||||
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">"\n"</span>);
|
||||
<span class="macro">__sf_rt::render_escaped!</span>(__sf_buf, <span class="string">"readonly='readonly'"</span>);
|
||||
@@ -564,6 +551,7 @@
|
||||
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">"\n\n"</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">"<!--\nSPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>\nSPDX-License-Identifier: AGPL-3.0-or-later\n-->\n"</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">"\n"</span>);
|
||||
{
|
||||
<span class="macro">__sf_rt::render_text!</span>(
|
||||
__sf_buf,
|
||||
<span class="string">"<fieldset class=\"sitekey__level-container\" id=\"level-group-"
|
||||
</span>);
|
||||
__sf_rt :: render_text ! (__sf_buf , <span class="string">"<!--\nSPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>\nSPDX-License-Identifier: AGPL-3.0-or-later\n-->\n<fieldset class=\"sitekey__level-container\" id=\"level-group-"</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">"\"\nid=\"sitekey-form__submit\" class=\"sitekey-form__submit\" type=\"submit\">\nSubmit\n</button>"</span>);
|
||||
{
|
||||
<span class="macro">__sf_rt::render_text!</span>(
|
||||
__sf_buf,
|
||||
<span class="string">" </form>\n</div>\n<!-- end of container -->"
|
||||
</span>);
|
||||
__sf_rt :: render_text ! (__sf_buf , <span class="string">"<!--\nSPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>\nSPDX-License-Identifier: AGPL-3.0-or-later\n-->\n</form>\n</div>\n<!-- end of container -->"</span>);
|
||||
{
|
||||
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">"</main>\n"</span>);
|
||||
__sf_rt :: render_text ! (__sf_buf , <span class="string">"<!--\nSPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>\nSPDX-License-Identifier: AGPL-3.0-or-later\n-->\n</main>"</span>);
|
||||
{
|
||||
__sf_rt :: render_text ! (__sf_buf , <span class="string">"<footer role=\"contentinfo\" class=\"details__container\">\n<p class=\"details__copyright\"> &copy; mCaptcha developers </p>\n<ul class=\"details\">\n<li class=\"details__item\">\n<a class=\"details__link\"\nhref=\""</span>);
|
||||
__sf_rt :: render_text ! (__sf_buf , <span class="string">"<!--\nSPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>\nSPDX-License-Identifier: AGPL-3.0-or-later\n-->\n<footer role=\"contentinfo\" class=\"details__container\">\n<p class=\"details__copyright\"> &copy; mCaptcha developers </p>\n<ul class=\"details\">\n<li class=\"details__item\">\n<a class=\"details__link\"\nhref=\""</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">"\">Homepage</a>\n</li>\n<li class=\"details__item\">\n<a class=\"details__link\"\nhref=\""</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">&*</span><span class="kw">crate</span>::JS);
|
||||
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">"\"></script>\n"</span>);
|
||||
{
|
||||
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">"<div id=\"err__container\"></div>"</span>);
|
||||
__sf_rt :: render_text ! (__sf_buf , <span class="string">"<!--\nSPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>\nSPDX-License-Identifier: AGPL-3.0-or-later\n-->\n<div id=\"err__container\"></div>"</span>);
|
||||
};
|
||||
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">"\n</body>\n</html>"</span>);
|
||||
};
|
||||
|
||||
@@ -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">"<!--\nSPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>\nSPDX-License-Identifier: AGPL-3.0-or-later\n-->\n"</span>);
|
||||
<span class="kw">const </span>URL: <span class="kw-2">&</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">"\n"</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">&</span>key);
|
||||
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">"\n"</span>);
|
||||
{
|
||||
__sf_rt :: render_text ! (__sf_buf , <span class="string">"<!--\nSPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>\nSPDX-License-Identifier: AGPL-3.0-or-later\n-->\n"</span>);
|
||||
{
|
||||
<span class="macro">__sf_rt::render_text!</span>(
|
||||
__sf_buf,
|
||||
<span class="string">"<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n"
|
||||
</span>);
|
||||
__sf_rt :: render_text ! (__sf_buf , <span class="string">"<!--\nSPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>\nSPDX-License-Identifier: AGPL-3.0-or-later\n-->\n<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n"</span>);
|
||||
{
|
||||
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">"<meta charset=\"UTF-8\" />\n<title>"</span>);
|
||||
__sf_rt :: render_text ! (__sf_buf , <span class="string">"<!--\nSPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>\nSPDX-License-Identifier: AGPL-3.0-or-later\n-->\n<meta charset=\"UTF-8\" />\n<title>"</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">" | "</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">"\n"</span>);
|
||||
{
|
||||
__sf_rt :: render_text ! (__sf_buf , <span class="string">"<link rel=\"apple-touch-icon\" sizes=\"57x57\" href=\"/apple-icon-57x57.png\">\n<link rel=\"apple-touch-icon\" sizes=\"60x60\" href=\"/apple-icon-60x60.png\">\n<link rel=\"apple-touch-icon\" sizes=\"72x72\" href=\"/apple-icon-72x72.png\">\n<link rel=\"apple-touch-icon\" sizes=\"76x76\" href=\"/apple-icon-76x76.png\">\n<link rel=\"apple-touch-icon\" sizes=\"114x114\" href=\"/apple-icon-114x114.png\">\n<link rel=\"apple-touch-icon\" sizes=\"120x120\" href=\"/apple-icon-120x120.png\">\n<link rel=\"apple-touch-icon\" sizes=\"144x144\" href=\"/apple-icon-144x144.png\">\n<link rel=\"apple-touch-icon\" sizes=\"152x152\" href=\"/apple-icon-152x152.png\">\n<link rel=\"apple-touch-icon\" sizes=\"180x180\" href=\"/apple-icon-180x180.png\">\n<link rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/android-icon-192x192.png\">\n<link rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/favicon-32x32.png\">\n<link rel=\"icon\" type=\"image/png\" sizes=\"96x96\" href=\"/favicon-96x96.png\">\n<link rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/favicon-16x16.png\">\n<link rel=\"manifest\" href=\"/manifest.json\">\n<meta name=\"msapplication-TileColor\" content=\"#ffffff\">\n<meta name=\"msapplication-TileImage\" content=\"/ms-icon-144x144.png\">\n<meta name=\"theme-color\" content=\"#ffffff\">"</span>);
|
||||
__sf_rt :: render_text ! (__sf_buf , <span class="string">"<!--\nSPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>\nSPDX-License-Identifier: AGPL-3.0-or-later\n-->\n<link rel=\"apple-touch-icon\" sizes=\"57x57\" href=\"/apple-icon-57x57.png\">\n<link rel=\"apple-touch-icon\" sizes=\"60x60\" href=\"/apple-icon-60x60.png\">\n<link rel=\"apple-touch-icon\" sizes=\"72x72\" href=\"/apple-icon-72x72.png\">\n<link rel=\"apple-touch-icon\" sizes=\"76x76\" href=\"/apple-icon-76x76.png\">\n<link rel=\"apple-touch-icon\" sizes=\"114x114\" href=\"/apple-icon-114x114.png\">\n<link rel=\"apple-touch-icon\" sizes=\"120x120\" href=\"/apple-icon-120x120.png\">\n<link rel=\"apple-touch-icon\" sizes=\"144x144\" href=\"/apple-icon-144x144.png\">\n<link rel=\"apple-touch-icon\" sizes=\"152x152\" href=\"/apple-icon-152x152.png\">\n<link rel=\"apple-touch-icon\" sizes=\"180x180\" href=\"/apple-icon-180x180.png\">\n<link rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/android-icon-192x192.png\">\n<link rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/favicon-32x32.png\">\n<link rel=\"icon\" type=\"image/png\" sizes=\"96x96\" href=\"/favicon-96x96.png\">\n<link rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/favicon-16x16.png\">\n<link rel=\"manifest\" href=\"/manifest.json\">\n<meta name=\"msapplication-TileColor\" content=\"#ffffff\">\n<meta name=\"msapplication-TileImage\" content=\"/ms-icon-144x144.png\">\n<meta name=\"theme-color\" content=\"#ffffff\">"</span>);
|
||||
};
|
||||
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">"\n</head>"</span>);
|
||||
};
|
||||
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">"\n<body class=\"layout\">"</span>);
|
||||
{
|
||||
__sf_rt :: render_text ! (__sf_buf , <span class="string">"<nav class=\"secondary-menu\">\n<input type=\"checkbox\" class=\"nav-toggle\" id=\"nav-toggle\" >\n<div class=\"secondary-menu__heading\">\n<a class=\"novisit\" href=\"/\">\n<img class=\"secondary-menu__logo\" src=\""</span>);
|
||||
__sf_rt :: render_text ! (__sf_buf , <span class="string">"<!--\nSPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>\nSPDX-License-Identifier: AGPL-3.0-or-later\n-->\n<nav class=\"secondary-menu\">\n<input type=\"checkbox\" class=\"nav-toggle\" id=\"nav-toggle\" >\n<div class=\"secondary-menu__heading\">\n<a class=\"novisit\" href=\"/\">\n<img class=\"secondary-menu__logo\" src=\""</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">"\" alt=\""</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">"\n<div class=\"tmp-layout\">"</span>);
|
||||
{
|
||||
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">"<header>\n"</span>);
|
||||
__sf_rt :: render_text ! (__sf_buf , <span class="string">"<!--\nSPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>\nSPDX-License-Identifier: AGPL-3.0-or-later\n-->\n<header>\n"</span>);
|
||||
{
|
||||
__sf_rt :: render_text ! (__sf_buf , <span class="string">"<ul class=\"taskbar\">\n<li class=\"taskbar__spacer\"></li>\n<li class=\"taskbar__action\">\n"</span>);
|
||||
__sf_rt :: render_text ! (__sf_buf , <span class="string">"<!--\nSPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>\nSPDX-License-Identifier: AGPL-3.0-or-later\n-->\n<ul class=\"taskbar\">\n<li class=\"taskbar__spacer\"></li>\n<li class=\"taskbar__action\">\n"</span>);
|
||||
{
|
||||
<span class="macro">__sf_rt::render_text!</span>(
|
||||
__sf_buf,
|
||||
<span class="string">"<a class=\"taskbar__link\" href=\""
|
||||
</span>);
|
||||
__sf_rt :: render_text ! (__sf_buf , <span class="string">"<!--\nSPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>\nSPDX-License-Identifier: AGPL-3.0-or-later\n-->\n<a class=\"taskbar__link\" href=\""</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">"\n<main class=\"panel-main\">\n"</span>);
|
||||
{
|
||||
__sf_rt :: render_text ! (__sf_buf , <span class="string">"<ol class=\"help-text\">\n<li class=\"help-text__instructions\">\nAdd sitekey\n</li>\n<li class=\"help-text__instructions\">\nAdd client-side code snippets to protect pages\n</li>\n<li class=\"help-text__instructions\">\nAdd server-side verification logic\n</li>\n</ol>"</span>);
|
||||
__sf_rt :: render_text ! (__sf_buf , <span class="string">"<!--\nSPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>\nSPDX-License-Identifier: AGPL-3.0-or-later\n-->\n<ol class=\"help-text\">\n<li class=\"help-text__instructions\">\nAdd sitekey\n</li>\n<li class=\"help-text__instructions\">\nAdd client-side code snippets to protect pages\n</li>\n<li class=\"help-text__instructions\">\nAdd server-side verification logic\n</li>\n</ol>"</span>);
|
||||
};
|
||||
__sf_rt :: render_text ! (__sf_buf , <span class="string">"\n<!-- Main content container -->\n<div class=\"inner-container\">\n<!-- Main menu/ important actions roaster -->\n<form class=\"sitekey-form\" action=\""</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">&</span>key);
|
||||
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">"\n"</span>);
|
||||
{
|
||||
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">"<a href=\""</span>);
|
||||
__sf_rt :: render_text ! (__sf_buf , <span class="string">"<!--\nSPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>\nSPDX-License-Identifier: AGPL-3.0-or-later\n-->\n<a href=\""</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">"\n"</span>);
|
||||
{
|
||||
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">"<a href=\""</span>);
|
||||
__sf_rt :: render_text ! (__sf_buf , <span class="string">"<!--\nSPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>\nSPDX-License-Identifier: AGPL-3.0-or-later\n-->\n<a href=\""</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">&</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">"\n"</span>);
|
||||
{
|
||||
__sf_rt :: render_text ! (__sf_buf , <span class="string">"</h1>\n<label class=\"sitekey-form__label\" for=\"description\">\nDescription\n<input\n"</span>);
|
||||
__sf_rt :: render_text ! (__sf_buf , <span class="string">"<!--\nSPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>\nSPDX-License-Identifier: AGPL-3.0-or-later\n-->\n</h1>\n<label class=\"sitekey-form__label\" for=\"description\">\nDescription\n<input\n"</span>);
|
||||
<span class="kw">if </span>READONLY {
|
||||
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">"\n"</span>);
|
||||
<span class="macro">__sf_rt::render_escaped!</span>(__sf_buf, <span class="string">"readonly='readonly'"</span>);
|
||||
@@ -634,6 +627,7 @@
|
||||
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">"\n\n"</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">"<!--\nSPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>\nSPDX-License-Identifier: AGPL-3.0-or-later\n-->\n"</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">"\n/>\n</label>\n"</span>);
|
||||
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">"\n</form>\n"</span>);
|
||||
{
|
||||
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">"<div class=\"sitekey__stats-container\">\n"</span>);
|
||||
__sf_rt :: render_text ! (__sf_buf , <span class="string">"<!--\nSPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>\nSPDX-License-Identifier: AGPL-3.0-or-later\n-->\n<div class=\"sitekey__stats-container\">\n"</span>);
|
||||
<span class="kw">let </span>tables = [
|
||||
(<span class="string">"Configuration Fetches"</span>, <span class="kw-2">&</span>stats.config_fetches),
|
||||
(<span class="string">"Proofs generated"</span>, <span class="kw-2">&</span>stats.solves),
|
||||
@@ -715,9 +709,9 @@
|
||||
};
|
||||
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">"\n</div>\n<!-- end of container -->\n</main>"</span>);
|
||||
{
|
||||
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">"</main>\n"</span>);
|
||||
__sf_rt :: render_text ! (__sf_buf , <span class="string">"<!--\nSPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>\nSPDX-License-Identifier: AGPL-3.0-or-later\n-->\n</main>"</span>);
|
||||
{
|
||||
__sf_rt :: render_text ! (__sf_buf , <span class="string">"<footer role=\"contentinfo\" class=\"details__container\">\n<p class=\"details__copyright\"> &copy; mCaptcha developers </p>\n<ul class=\"details\">\n<li class=\"details__item\">\n<a class=\"details__link\"\nhref=\""</span>);
|
||||
__sf_rt :: render_text ! (__sf_buf , <span class="string">"<!--\nSPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>\nSPDX-License-Identifier: AGPL-3.0-or-later\n-->\n<footer role=\"contentinfo\" class=\"details__container\">\n<p class=\"details__copyright\"> &copy; mCaptcha developers </p>\n<ul class=\"details\">\n<li class=\"details__item\">\n<a class=\"details__link\"\nhref=\""</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">"\">Homepage</a>\n</li>\n<li class=\"details__item\">\n<a class=\"details__link\"\nhref=\""</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">&*</span><span class="kw">crate</span>::JS);
|
||||
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">"\"></script>\n"</span>);
|
||||
{
|
||||
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">"<div id=\"err__container\"></div>"</span>);
|
||||
__sf_rt :: render_text ! (__sf_buf , <span class="string">"<!--\nSPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>\nSPDX-License-Identifier: AGPL-3.0-or-later\n-->\n<div id=\"err__container\"></div>"</span>);
|
||||
};
|
||||
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">"\n</body>\n</html>"</span>);
|
||||
};
|
||||
|
||||
@@ -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">"<!--\nSPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>\nSPDX-License-Identifier: AGPL-3.0-or-later\n-->\n"</span>);
|
||||
<span class="kw">const </span>DONE_ALT: <span class="kw-2">&</span>str = <span class="string">"sitekey copied"</span>;
|
||||
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">"\n"</span>);
|
||||
<span class="kw">const </span>DONE_CLASS: <span class="kw-2">&</span>str = <span class="string">"sitekey__copy-done-icon"</span>;
|
||||
@@ -310,9 +312,9 @@
|
||||
<span class="kw">const </span>COPY_CLASS: <span class="kw-2">&</span>str = <span class="string">"sitekey__copy-icon"</span>;
|
||||
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">"\n"</span>);
|
||||
{
|
||||
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">"<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n"</span>);
|
||||
__sf_rt :: render_text ! (__sf_buf , <span class="string">"<!--\nSPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>\nSPDX-License-Identifier: AGPL-3.0-or-later\n-->\n<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n"</span>);
|
||||
{
|
||||
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">"<meta charset=\"UTF-8\" />\n<title>"</span>);
|
||||
__sf_rt :: render_text ! (__sf_buf , <span class="string">"<!--\nSPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>\nSPDX-License-Identifier: AGPL-3.0-or-later\n-->\n<meta charset=\"UTF-8\" />\n<title>"</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">" | "</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">"\n"</span>);
|
||||
{
|
||||
__sf_rt :: render_text ! (__sf_buf , <span class="string">"<link rel=\"apple-touch-icon\" sizes=\"57x57\" href=\"/apple-icon-57x57.png\">\n<link rel=\"apple-touch-icon\" sizes=\"60x60\" href=\"/apple-icon-60x60.png\">\n<link rel=\"apple-touch-icon\" sizes=\"72x72\" href=\"/apple-icon-72x72.png\">\n<link rel=\"apple-touch-icon\" sizes=\"76x76\" href=\"/apple-icon-76x76.png\">\n<link rel=\"apple-touch-icon\" sizes=\"114x114\" href=\"/apple-icon-114x114.png\">\n<link rel=\"apple-touch-icon\" sizes=\"120x120\" href=\"/apple-icon-120x120.png\">\n<link rel=\"apple-touch-icon\" sizes=\"144x144\" href=\"/apple-icon-144x144.png\">\n<link rel=\"apple-touch-icon\" sizes=\"152x152\" href=\"/apple-icon-152x152.png\">\n<link rel=\"apple-touch-icon\" sizes=\"180x180\" href=\"/apple-icon-180x180.png\">\n<link rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/android-icon-192x192.png\">\n<link rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/favicon-32x32.png\">\n<link rel=\"icon\" type=\"image/png\" sizes=\"96x96\" href=\"/favicon-96x96.png\">\n<link rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/favicon-16x16.png\">\n<link rel=\"manifest\" href=\"/manifest.json\">\n<meta name=\"msapplication-TileColor\" content=\"#ffffff\">\n<meta name=\"msapplication-TileImage\" content=\"/ms-icon-144x144.png\">\n<meta name=\"theme-color\" content=\"#ffffff\">"</span>);
|
||||
__sf_rt :: render_text ! (__sf_buf , <span class="string">"<!--\nSPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>\nSPDX-License-Identifier: AGPL-3.0-or-later\n-->\n<link rel=\"apple-touch-icon\" sizes=\"57x57\" href=\"/apple-icon-57x57.png\">\n<link rel=\"apple-touch-icon\" sizes=\"60x60\" href=\"/apple-icon-60x60.png\">\n<link rel=\"apple-touch-icon\" sizes=\"72x72\" href=\"/apple-icon-72x72.png\">\n<link rel=\"apple-touch-icon\" sizes=\"76x76\" href=\"/apple-icon-76x76.png\">\n<link rel=\"apple-touch-icon\" sizes=\"114x114\" href=\"/apple-icon-114x114.png\">\n<link rel=\"apple-touch-icon\" sizes=\"120x120\" href=\"/apple-icon-120x120.png\">\n<link rel=\"apple-touch-icon\" sizes=\"144x144\" href=\"/apple-icon-144x144.png\">\n<link rel=\"apple-touch-icon\" sizes=\"152x152\" href=\"/apple-icon-152x152.png\">\n<link rel=\"apple-touch-icon\" sizes=\"180x180\" href=\"/apple-icon-180x180.png\">\n<link rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/android-icon-192x192.png\">\n<link rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/favicon-32x32.png\">\n<link rel=\"icon\" type=\"image/png\" sizes=\"96x96\" href=\"/favicon-96x96.png\">\n<link rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/favicon-16x16.png\">\n<link rel=\"manifest\" href=\"/manifest.json\">\n<meta name=\"msapplication-TileColor\" content=\"#ffffff\">\n<meta name=\"msapplication-TileImage\" content=\"/ms-icon-144x144.png\">\n<meta name=\"theme-color\" content=\"#ffffff\">"</span>);
|
||||
};
|
||||
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">"\n"</span>);
|
||||
{
|
||||
__sf_rt :: render_text ! (__sf_buf , <span class="string">"<meta\nhttp-equiv=\"Content-Security-Policy\"\ncontent=\"default-src 'self' *.mcaptcha.org mcaptcha.org mcaptcha.io *.mcaptcha.io; img-src 'self'; style-src 'self'; child-src 'none'; script-src 'self';\"\n/>"</span>);
|
||||
__sf_rt :: render_text ! (__sf_buf , <span class="string">"<!--\nSPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>\nSPDX-License-Identifier: AGPL-3.0-or-later\n-->\n<meta\nhttp-equiv=\"Content-Security-Policy\"\ncontent=\"default-src 'self' *.mcaptcha.org mcaptcha.org mcaptcha.io *.mcaptcha.io; img-src 'self'; style-src 'self'; child-src 'none'; script-src 'self';\"\n/>"</span>);
|
||||
};
|
||||
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">"\n"</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">"\n"</span>);
|
||||
{
|
||||
__sf_rt :: render_text ! (__sf_buf , <span class="string">"<meta\nhttp-equiv=\"Strict-Transport-Security\" content=\"max-age=63072000\"\n/>"</span>);
|
||||
__sf_rt :: render_text ! (__sf_buf , <span class="string">"<!--\nSPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>\nSPDX-License-Identifier: AGPL-3.0-or-later\n-->\n<meta\nhttp-equiv=\"Strict-Transport-Security\" content=\"max-age=63072000\"\n/>"</span>);
|
||||
};
|
||||
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">"\n"</span>);
|
||||
}
|
||||
@@ -363,7 +365,7 @@
|
||||
};
|
||||
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">" "</span>);
|
||||
{
|
||||
__sf_rt :: render_text ! (__sf_buf , <span class="string">"<nav class=\"secondary-menu\">\n<input type=\"checkbox\" class=\"nav-toggle\" id=\"nav-toggle\" >\n<div class=\"secondary-menu__heading\">\n<a class=\"novisit\" href=\"/\">\n<img class=\"secondary-menu__logo\" src=\""</span>);
|
||||
__sf_rt :: render_text ! (__sf_buf , <span class="string">"<!--\nSPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>\nSPDX-License-Identifier: AGPL-3.0-or-later\n-->\n<nav class=\"secondary-menu\">\n<input type=\"checkbox\" class=\"nav-toggle\" id=\"nav-toggle\" >\n<div class=\"secondary-menu__heading\">\n<a class=\"novisit\" href=\"/\">\n<img class=\"secondary-menu__logo\" src=\""</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">"\" alt=\""</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">"\n<div class=\"tmp-layout\">\n"</span>);
|
||||
{
|
||||
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">"<header>\n"</span>);
|
||||
__sf_rt :: render_text ! (__sf_buf , <span class="string">"<!--\nSPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>\nSPDX-License-Identifier: AGPL-3.0-or-later\n-->\n<header>\n"</span>);
|
||||
{
|
||||
__sf_rt :: render_text ! (__sf_buf , <span class="string">"<ul class=\"taskbar\">\n<li class=\"taskbar__spacer\"></li>\n<li class=\"taskbar__action\">\n"</span>);
|
||||
__sf_rt :: render_text ! (__sf_buf , <span class="string">"<!--\nSPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>\nSPDX-License-Identifier: AGPL-3.0-or-later\n-->\n<ul class=\"taskbar\">\n<li class=\"taskbar__spacer\"></li>\n<li class=\"taskbar__action\">\n"</span>);
|
||||
{
|
||||
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">"<a class=\"taskbar__link\" href=\""</span>);
|
||||
__sf_rt :: render_text ! (__sf_buf , <span class="string">"<!--\nSPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>\nSPDX-License-Identifier: AGPL-3.0-or-later\n-->\n<a class=\"taskbar__link\" href=\""</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">"\">\n<button class=\"taskbar__add-site\">\n+ New Site\n</button>\n</a>"</span>);
|
||||
};
|
||||
@@ -470,15 +472,15 @@
|
||||
};
|
||||
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">"\n<main class=\"panel-main\">\n"</span>);
|
||||
{
|
||||
__sf_rt :: render_text ! (__sf_buf , <span class="string">"<ol class=\"help-text\">\n<li class=\"help-text__instructions\">\nAdd sitekey\n</li>\n<li class=\"help-text__instructions\">\nAdd client-side code snippets to protect pages\n</li>\n<li class=\"help-text__instructions\">\nAdd server-side verification logic\n</li>\n</ol>"</span>);
|
||||
__sf_rt :: render_text ! (__sf_buf , <span class="string">"<!--\nSPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>\nSPDX-License-Identifier: AGPL-3.0-or-later\n-->\n<ol class=\"help-text\">\n<li class=\"help-text__instructions\">\nAdd sitekey\n</li>\n<li class=\"help-text__instructions\">\nAdd client-side code snippets to protect pages\n</li>\n<li class=\"help-text__instructions\">\nAdd server-side verification logic\n</li>\n</ol>"</span>);
|
||||
};
|
||||
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">"\n<div class=\"inner-container\">\n"</span>);
|
||||
<span class="kw">if </span>sitekeys.is_empty() {
|
||||
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">"\n"</span>);
|
||||
{
|
||||
__sf_rt :: render_text ! (__sf_buf , <span class="string">"<ul class=\"sitekey-list__box\">\n<p>\nIt looks like you don't have any sitekeys. Click "</span>);
|
||||
__sf_rt :: render_text ! (__sf_buf , <span class="string">"<!--\nSPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>\nSPDX-License-Identifier: AGPL-3.0-or-later\n-->\n<ul class=\"sitekey-list__box\">\n<p>\nIt looks like you don't have any sitekeys. Click "</span>);
|
||||
{
|
||||
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">"<a class=\"taskbar__link\" href=\""</span>);
|
||||
__sf_rt :: render_text ! (__sf_buf , <span class="string">"<!--\nSPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>\nSPDX-License-Identifier: AGPL-3.0-or-later\n-->\n<a class=\"taskbar__link\" href=\""</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">"\">\n<button class=\"taskbar__add-site\">\n+ New Site\n</button>\n</a>"</span>);
|
||||
};
|
||||
@@ -498,7 +500,7 @@
|
||||
<span class="kw">let </span>clipboard_data = (<span class="string">"sitekey"</span>, <span class="kw-2">&</span>sitekey.key);
|
||||
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">"\n"</span>);
|
||||
{
|
||||
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">"<img class=\""</span>);
|
||||
__sf_rt :: render_text ! (__sf_buf , <span class="string">"<!--\nSPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>\nSPDX-License-Identifier: AGPL-3.0-or-later\n-->\n<img class=\""</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">"\"\nsrc=\""</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">&</span>sitekey.key);
|
||||
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">"\n"</span>);
|
||||
{
|
||||
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">"<a href=\""</span>);
|
||||
__sf_rt :: render_text ! (__sf_buf , <span class="string">"<!--\nSPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>\nSPDX-License-Identifier: AGPL-3.0-or-later\n-->\n<a href=\""</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">"\n</div>\n"</span>);
|
||||
{
|
||||
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">"</main>\n"</span>);
|
||||
__sf_rt :: render_text ! (__sf_buf , <span class="string">"<!--\nSPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>\nSPDX-License-Identifier: AGPL-3.0-or-later\n-->\n</main>"</span>);
|
||||
{
|
||||
__sf_rt :: render_text ! (__sf_buf , <span class="string">"<footer role=\"contentinfo\" class=\"details__container\">\n<p class=\"details__copyright\"> &copy; mCaptcha developers </p>\n<ul class=\"details\">\n<li class=\"details__item\">\n<a class=\"details__link\"\nhref=\""</span>);
|
||||
__sf_rt :: render_text ! (__sf_buf , <span class="string">"<!--\nSPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>\nSPDX-License-Identifier: AGPL-3.0-or-later\n-->\n<footer role=\"contentinfo\" class=\"details__container\">\n<p class=\"details__copyright\"> &copy; mCaptcha developers </p>\n<ul class=\"details\">\n<li class=\"details__item\">\n<a class=\"details__link\"\nhref=\""</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">"\">Homepage</a>\n</li>\n<li class=\"details__item\">\n<a class=\"details__link\"\nhref=\""</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">&*</span><span class="kw">crate</span>::JS);
|
||||
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">"\"></script>\n"</span>);
|
||||
{
|
||||
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">"<div id=\"err__container\"></div>"</span>);
|
||||
__sf_rt :: render_text ! (__sf_buf , <span class="string">"<!--\nSPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>\nSPDX-License-Identifier: AGPL-3.0-or-later\n-->\n<div id=\"err__container\"></div>"</span>);
|
||||
};
|
||||
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">"\n</body>\n</html>"</span>);
|
||||
};
|
||||
|
||||
@@ -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">"<!--\nSPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>\nSPDX-License-Identifier: AGPL-3.0-or-later\n-->\n"</span>);
|
||||
<span class="kw">const </span>COPY_ALT: <span class="kw-2">&</span>str = <span class="string">"copy secret"</span>;
|
||||
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">"\n"</span>);
|
||||
<span class="kw">const </span>COPY_CLASS: <span class="kw-2">&</span>str = <span class="string">"settings__secret-copy"</span>;
|
||||
@@ -319,9 +321,9 @@
|
||||
<span class="kw">let </span>clipboard_data = (<span class="string">"secret"</span>, <span class="kw-2">&</span>secret);
|
||||
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">"\n"</span>);
|
||||
{
|
||||
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">"<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n"</span>);
|
||||
__sf_rt :: render_text ! (__sf_buf , <span class="string">"<!--\nSPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>\nSPDX-License-Identifier: AGPL-3.0-or-later\n-->\n<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n"</span>);
|
||||
{
|
||||
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">"<meta charset=\"UTF-8\" />\n<title>"</span>);
|
||||
__sf_rt :: render_text ! (__sf_buf , <span class="string">"<!--\nSPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>\nSPDX-License-Identifier: AGPL-3.0-or-later\n-->\n<meta charset=\"UTF-8\" />\n<title>"</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">" | "</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">"\n"</span>);
|
||||
{
|
||||
__sf_rt :: render_text ! (__sf_buf , <span class="string">"<link rel=\"apple-touch-icon\" sizes=\"57x57\" href=\"/apple-icon-57x57.png\">\n<link rel=\"apple-touch-icon\" sizes=\"60x60\" href=\"/apple-icon-60x60.png\">\n<link rel=\"apple-touch-icon\" sizes=\"72x72\" href=\"/apple-icon-72x72.png\">\n<link rel=\"apple-touch-icon\" sizes=\"76x76\" href=\"/apple-icon-76x76.png\">\n<link rel=\"apple-touch-icon\" sizes=\"114x114\" href=\"/apple-icon-114x114.png\">\n<link rel=\"apple-touch-icon\" sizes=\"120x120\" href=\"/apple-icon-120x120.png\">\n<link rel=\"apple-touch-icon\" sizes=\"144x144\" href=\"/apple-icon-144x144.png\">\n<link rel=\"apple-touch-icon\" sizes=\"152x152\" href=\"/apple-icon-152x152.png\">\n<link rel=\"apple-touch-icon\" sizes=\"180x180\" href=\"/apple-icon-180x180.png\">\n<link rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/android-icon-192x192.png\">\n<link rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/favicon-32x32.png\">\n<link rel=\"icon\" type=\"image/png\" sizes=\"96x96\" href=\"/favicon-96x96.png\">\n<link rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/favicon-16x16.png\">\n<link rel=\"manifest\" href=\"/manifest.json\">\n<meta name=\"msapplication-TileColor\" content=\"#ffffff\">\n<meta name=\"msapplication-TileImage\" content=\"/ms-icon-144x144.png\">\n<meta name=\"theme-color\" content=\"#ffffff\">"</span>);
|
||||
__sf_rt :: render_text ! (__sf_buf , <span class="string">"<!--\nSPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>\nSPDX-License-Identifier: AGPL-3.0-or-later\n-->\n<link rel=\"apple-touch-icon\" sizes=\"57x57\" href=\"/apple-icon-57x57.png\">\n<link rel=\"apple-touch-icon\" sizes=\"60x60\" href=\"/apple-icon-60x60.png\">\n<link rel=\"apple-touch-icon\" sizes=\"72x72\" href=\"/apple-icon-72x72.png\">\n<link rel=\"apple-touch-icon\" sizes=\"76x76\" href=\"/apple-icon-76x76.png\">\n<link rel=\"apple-touch-icon\" sizes=\"114x114\" href=\"/apple-icon-114x114.png\">\n<link rel=\"apple-touch-icon\" sizes=\"120x120\" href=\"/apple-icon-120x120.png\">\n<link rel=\"apple-touch-icon\" sizes=\"144x144\" href=\"/apple-icon-144x144.png\">\n<link rel=\"apple-touch-icon\" sizes=\"152x152\" href=\"/apple-icon-152x152.png\">\n<link rel=\"apple-touch-icon\" sizes=\"180x180\" href=\"/apple-icon-180x180.png\">\n<link rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/android-icon-192x192.png\">\n<link rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/favicon-32x32.png\">\n<link rel=\"icon\" type=\"image/png\" sizes=\"96x96\" href=\"/favicon-96x96.png\">\n<link rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/favicon-16x16.png\">\n<link rel=\"manifest\" href=\"/manifest.json\">\n<meta name=\"msapplication-TileColor\" content=\"#ffffff\">\n<meta name=\"msapplication-TileImage\" content=\"/ms-icon-144x144.png\">\n<meta name=\"theme-color\" content=\"#ffffff\">"</span>);
|
||||
};
|
||||
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">"\n"</span>);
|
||||
{
|
||||
__sf_rt :: render_text ! (__sf_buf , <span class="string">"<meta\nhttp-equiv=\"Content-Security-Policy\"\ncontent=\"default-src 'self' *.mcaptcha.org mcaptcha.org mcaptcha.io *.mcaptcha.io; img-src 'self'; style-src 'self'; child-src 'none'; script-src 'self';\"\n/>"</span>);
|
||||
__sf_rt :: render_text ! (__sf_buf , <span class="string">"<!--\nSPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>\nSPDX-License-Identifier: AGPL-3.0-or-later\n-->\n<meta\nhttp-equiv=\"Content-Security-Policy\"\ncontent=\"default-src 'self' *.mcaptcha.org mcaptcha.org mcaptcha.io *.mcaptcha.io; img-src 'self'; style-src 'self'; child-src 'none'; script-src 'self';\"\n/>"</span>);
|
||||
};
|
||||
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">"\n"</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">"\n"</span>);
|
||||
{
|
||||
__sf_rt :: render_text ! (__sf_buf , <span class="string">"<meta\nhttp-equiv=\"Strict-Transport-Security\" content=\"max-age=63072000\"\n/>"</span>);
|
||||
__sf_rt :: render_text ! (__sf_buf , <span class="string">"<!--\nSPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>\nSPDX-License-Identifier: AGPL-3.0-or-later\n-->\n<meta\nhttp-equiv=\"Strict-Transport-Security\" content=\"max-age=63072000\"\n/>"</span>);
|
||||
};
|
||||
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">"\n"</span>);
|
||||
}
|
||||
@@ -372,7 +374,7 @@
|
||||
};
|
||||
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">" \n"</span>);
|
||||
{
|
||||
__sf_rt :: render_text ! (__sf_buf , <span class="string">"<nav class=\"secondary-menu\">\n<input type=\"checkbox\" class=\"nav-toggle\" id=\"nav-toggle\" >\n<div class=\"secondary-menu__heading\">\n<a class=\"novisit\" href=\"/\">\n<img class=\"secondary-menu__logo\" src=\""</span>);
|
||||
__sf_rt :: render_text ! (__sf_buf , <span class="string">"<!--\nSPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>\nSPDX-License-Identifier: AGPL-3.0-or-later\n-->\n<nav class=\"secondary-menu\">\n<input type=\"checkbox\" class=\"nav-toggle\" id=\"nav-toggle\" >\n<div class=\"secondary-menu__heading\">\n<a class=\"novisit\" href=\"/\">\n<img class=\"secondary-menu__logo\" src=\""</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">"\" alt=\""</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">"\n<div class=\"tmp-layout\">"</span>);
|
||||
{
|
||||
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">"<header>\n"</span>);
|
||||
__sf_rt :: render_text ! (__sf_buf , <span class="string">"<!--\nSPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>\nSPDX-License-Identifier: AGPL-3.0-or-later\n-->\n<header>\n"</span>);
|
||||
{
|
||||
__sf_rt :: render_text ! (__sf_buf , <span class="string">"<ul class=\"taskbar\">\n<li class=\"taskbar__spacer\"></li>\n<li class=\"taskbar__action\">\n"</span>);
|
||||
__sf_rt :: render_text ! (__sf_buf , <span class="string">"<!--\nSPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>\nSPDX-License-Identifier: AGPL-3.0-or-later\n-->\n<ul class=\"taskbar\">\n<li class=\"taskbar__spacer\"></li>\n<li class=\"taskbar__action\">\n"</span>);
|
||||
{
|
||||
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">"<a class=\"taskbar__link\" href=\""</span>);
|
||||
__sf_rt :: render_text ! (__sf_buf , <span class="string">"<!--\nSPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>\nSPDX-License-Identifier: AGPL-3.0-or-later\n-->\n<a class=\"taskbar__link\" href=\""</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">"\">\n<button class=\"taskbar__add-site\">\n+ New Site\n</button>\n</a>"</span>);
|
||||
};
|
||||
@@ -479,7 +481,7 @@
|
||||
};
|
||||
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">"\n<main class=\"panel-main\">\n"</span>);
|
||||
{
|
||||
__sf_rt :: render_text ! (__sf_buf , <span class="string">"<ol class=\"help-text\">\n<li class=\"help-text__instructions\">\nAdd sitekey\n</li>\n<li class=\"help-text__instructions\">\nAdd client-side code snippets to protect pages\n</li>\n<li class=\"help-text__instructions\">\nAdd server-side verification logic\n</li>\n</ol>"</span>);
|
||||
__sf_rt :: render_text ! (__sf_buf , <span class="string">"<!--\nSPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>\nSPDX-License-Identifier: AGPL-3.0-or-later\n-->\n<ol class=\"help-text\">\n<li class=\"help-text__instructions\">\nAdd sitekey\n</li>\n<li class=\"help-text__instructions\">\nAdd client-side code snippets to protect pages\n</li>\n<li class=\"help-text__instructions\">\nAdd server-side verification logic\n</li>\n</ol>"</span>);
|
||||
};
|
||||
__sf_rt :: render_text ! (__sf_buf , <span class="string">"\n<!-- Main content container -->\n<div class=\"inner-container\">\n<div class=\"sitekey-form\" action=\""</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">"\"\nmethod=\"post\">\n<label class=\"settings-form__label\" for=\"secret\">\n<div class=\"settings__label-group\">\nSecret\n"</span>);
|
||||
{
|
||||
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">"<img class=\""</span>);
|
||||
__sf_rt :: render_text ! (__sf_buf , <span class="string">"<!--\nSPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>\nSPDX-License-Identifier: AGPL-3.0-or-later\n-->\n<img class=\""</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">"\"\nsrc=\""</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">"\"\n/>\n"</span>);
|
||||
{
|
||||
__sf_rt :: render_text ! (__sf_buf , <span class="string">"<span class=\"show-password-container\">\n<img class=\"show-password--show\" src=\""</span>);
|
||||
__sf_rt :: render_text ! (__sf_buf , <span class="string">"<!--\nSPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>\nSPDX-License-Identifier: AGPL-3.0-or-later\n-->\n<span class=\"show-password-container\">\n<img class=\"show-password--show\" src=\""</span>);
|
||||
<span class="macro">__sf_rt::render_escaped!</span>(
|
||||
__sf_buf,
|
||||
<span class="kw">crate</span>::FILES.get(<span class="string">"./static/cache/img/svg/eye.svg"</span>).unwrap()
|
||||
@@ -575,9 +577,9 @@
|
||||
);
|
||||
__sf_rt :: render_text ! (__sf_buf , <span class="string">"\"\nalt=\"Delete Account\"\n/>\n</button>\n</label>\n</form>\n</div>\n</div>\n<!-- end of container -->"</span>);
|
||||
{
|
||||
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">"</main>\n"</span>);
|
||||
__sf_rt :: render_text ! (__sf_buf , <span class="string">"<!--\nSPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>\nSPDX-License-Identifier: AGPL-3.0-or-later\n-->\n</main>"</span>);
|
||||
{
|
||||
__sf_rt :: render_text ! (__sf_buf , <span class="string">"<footer role=\"contentinfo\" class=\"details__container\">\n<p class=\"details__copyright\"> &copy; mCaptcha developers </p>\n<ul class=\"details\">\n<li class=\"details__item\">\n<a class=\"details__link\"\nhref=\""</span>);
|
||||
__sf_rt :: render_text ! (__sf_buf , <span class="string">"<!--\nSPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>\nSPDX-License-Identifier: AGPL-3.0-or-later\n-->\n<footer role=\"contentinfo\" class=\"details__container\">\n<p class=\"details__copyright\"> &copy; mCaptcha developers </p>\n<ul class=\"details\">\n<li class=\"details__item\">\n<a class=\"details__link\"\nhref=\""</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">"\">Homepage</a>\n</li>\n<li class=\"details__item\">\n<a class=\"details__link\"\nhref=\""</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">&*</span><span class="kw">crate</span>::JS);
|
||||
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">"\"></script>\n"</span>);
|
||||
{
|
||||
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">"<div id=\"err__container\"></div>"</span>);
|
||||
__sf_rt :: render_text ! (__sf_buf , <span class="string">"<!--\nSPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>\nSPDX-License-Identifier: AGPL-3.0-or-later\n-->\n<div id=\"err__container\"></div>"</span>);
|
||||
};
|
||||
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">"\n</body>\n</html>"</span>);
|
||||
};
|
||||
|
||||
@@ -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">"<!--\nSPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>\nSPDX-License-Identifier: AGPL-3.0-or-later\n-->\n"</span>);
|
||||
<span class="kw">const </span>DONE_ALT: <span class="kw-2">&</span>str = <span class="string">"sitekey copied"</span>;
|
||||
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">"\n"</span>);
|
||||
<span class="kw">const </span>DONE_CLASS: <span class="kw-2">&</span>str = <span class="string">"sitekey__copy-done-icon"</span>;
|
||||
@@ -310,9 +312,9 @@
|
||||
<span class="kw">const </span>COPY_CLASS: <span class="kw-2">&</span>str = <span class="string">"sitekey__copy-icon"</span>;
|
||||
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">"\n"</span>);
|
||||
{
|
||||
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">"<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n"</span>);
|
||||
__sf_rt :: render_text ! (__sf_buf , <span class="string">"<!--\nSPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>\nSPDX-License-Identifier: AGPL-3.0-or-later\n-->\n<!DOCTYPE html>\n<html lang=\"en\">\n<head>\n"</span>);
|
||||
{
|
||||
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">"<meta charset=\"UTF-8\" />\n<title>"</span>);
|
||||
__sf_rt :: render_text ! (__sf_buf , <span class="string">"<!--\nSPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>\nSPDX-License-Identifier: AGPL-3.0-or-later\n-->\n<meta charset=\"UTF-8\" />\n<title>"</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">" | "</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">"\n"</span>);
|
||||
{
|
||||
__sf_rt :: render_text ! (__sf_buf , <span class="string">"<link rel=\"apple-touch-icon\" sizes=\"57x57\" href=\"/apple-icon-57x57.png\">\n<link rel=\"apple-touch-icon\" sizes=\"60x60\" href=\"/apple-icon-60x60.png\">\n<link rel=\"apple-touch-icon\" sizes=\"72x72\" href=\"/apple-icon-72x72.png\">\n<link rel=\"apple-touch-icon\" sizes=\"76x76\" href=\"/apple-icon-76x76.png\">\n<link rel=\"apple-touch-icon\" sizes=\"114x114\" href=\"/apple-icon-114x114.png\">\n<link rel=\"apple-touch-icon\" sizes=\"120x120\" href=\"/apple-icon-120x120.png\">\n<link rel=\"apple-touch-icon\" sizes=\"144x144\" href=\"/apple-icon-144x144.png\">\n<link rel=\"apple-touch-icon\" sizes=\"152x152\" href=\"/apple-icon-152x152.png\">\n<link rel=\"apple-touch-icon\" sizes=\"180x180\" href=\"/apple-icon-180x180.png\">\n<link rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/android-icon-192x192.png\">\n<link rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/favicon-32x32.png\">\n<link rel=\"icon\" type=\"image/png\" sizes=\"96x96\" href=\"/favicon-96x96.png\">\n<link rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/favicon-16x16.png\">\n<link rel=\"manifest\" href=\"/manifest.json\">\n<meta name=\"msapplication-TileColor\" content=\"#ffffff\">\n<meta name=\"msapplication-TileImage\" content=\"/ms-icon-144x144.png\">\n<meta name=\"theme-color\" content=\"#ffffff\">"</span>);
|
||||
__sf_rt :: render_text ! (__sf_buf , <span class="string">"<!--\nSPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>\nSPDX-License-Identifier: AGPL-3.0-or-later\n-->\n<link rel=\"apple-touch-icon\" sizes=\"57x57\" href=\"/apple-icon-57x57.png\">\n<link rel=\"apple-touch-icon\" sizes=\"60x60\" href=\"/apple-icon-60x60.png\">\n<link rel=\"apple-touch-icon\" sizes=\"72x72\" href=\"/apple-icon-72x72.png\">\n<link rel=\"apple-touch-icon\" sizes=\"76x76\" href=\"/apple-icon-76x76.png\">\n<link rel=\"apple-touch-icon\" sizes=\"114x114\" href=\"/apple-icon-114x114.png\">\n<link rel=\"apple-touch-icon\" sizes=\"120x120\" href=\"/apple-icon-120x120.png\">\n<link rel=\"apple-touch-icon\" sizes=\"144x144\" href=\"/apple-icon-144x144.png\">\n<link rel=\"apple-touch-icon\" sizes=\"152x152\" href=\"/apple-icon-152x152.png\">\n<link rel=\"apple-touch-icon\" sizes=\"180x180\" href=\"/apple-icon-180x180.png\">\n<link rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/android-icon-192x192.png\">\n<link rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/favicon-32x32.png\">\n<link rel=\"icon\" type=\"image/png\" sizes=\"96x96\" href=\"/favicon-96x96.png\">\n<link rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/favicon-16x16.png\">\n<link rel=\"manifest\" href=\"/manifest.json\">\n<meta name=\"msapplication-TileColor\" content=\"#ffffff\">\n<meta name=\"msapplication-TileImage\" content=\"/ms-icon-144x144.png\">\n<meta name=\"theme-color\" content=\"#ffffff\">"</span>);
|
||||
};
|
||||
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">"\n"</span>);
|
||||
{
|
||||
__sf_rt :: render_text ! (__sf_buf , <span class="string">"<meta\nhttp-equiv=\"Content-Security-Policy\"\ncontent=\"default-src 'self' *.mcaptcha.org mcaptcha.org mcaptcha.io *.mcaptcha.io; img-src 'self'; style-src 'self'; child-src 'none'; script-src 'self';\"\n/>"</span>);
|
||||
__sf_rt :: render_text ! (__sf_buf , <span class="string">"<!--\nSPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>\nSPDX-License-Identifier: AGPL-3.0-or-later\n-->\n<meta\nhttp-equiv=\"Content-Security-Policy\"\ncontent=\"default-src 'self' *.mcaptcha.org mcaptcha.org mcaptcha.io *.mcaptcha.io; img-src 'self'; style-src 'self'; child-src 'none'; script-src 'self';\"\n/>"</span>);
|
||||
};
|
||||
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">"\n"</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">"\n"</span>);
|
||||
{
|
||||
__sf_rt :: render_text ! (__sf_buf , <span class="string">"<meta\nhttp-equiv=\"Strict-Transport-Security\" content=\"max-age=63072000\"\n/>"</span>);
|
||||
__sf_rt :: render_text ! (__sf_buf , <span class="string">"<!--\nSPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>\nSPDX-License-Identifier: AGPL-3.0-or-later\n-->\n<meta\nhttp-equiv=\"Strict-Transport-Security\" content=\"max-age=63072000\"\n/>"</span>);
|
||||
};
|
||||
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">"\n"</span>);
|
||||
}
|
||||
@@ -363,7 +365,7 @@
|
||||
};
|
||||
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">" "</span>);
|
||||
{
|
||||
__sf_rt :: render_text ! (__sf_buf , <span class="string">"<nav class=\"secondary-menu\">\n<input type=\"checkbox\" class=\"nav-toggle\" id=\"nav-toggle\" >\n<div class=\"secondary-menu__heading\">\n<a class=\"novisit\" href=\"/\">\n<img class=\"secondary-menu__logo\" src=\""</span>);
|
||||
__sf_rt :: render_text ! (__sf_buf , <span class="string">"<!--\nSPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>\nSPDX-License-Identifier: AGPL-3.0-or-later\n-->\n<nav class=\"secondary-menu\">\n<input type=\"checkbox\" class=\"nav-toggle\" id=\"nav-toggle\" >\n<div class=\"secondary-menu__heading\">\n<a class=\"novisit\" href=\"/\">\n<img class=\"secondary-menu__logo\" src=\""</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">"\" alt=\""</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">"\n<div class=\"tmp-layout\">\n"</span>);
|
||||
{
|
||||
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">"<header>\n"</span>);
|
||||
__sf_rt :: render_text ! (__sf_buf , <span class="string">"<!--\nSPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>\nSPDX-License-Identifier: AGPL-3.0-or-later\n-->\n<header>\n"</span>);
|
||||
{
|
||||
__sf_rt :: render_text ! (__sf_buf , <span class="string">"<ul class=\"taskbar\">\n<li class=\"taskbar__spacer\"></li>\n<li class=\"taskbar__action\">\n"</span>);
|
||||
__sf_rt :: render_text ! (__sf_buf , <span class="string">"<!--\nSPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>\nSPDX-License-Identifier: AGPL-3.0-or-later\n-->\n<ul class=\"taskbar\">\n<li class=\"taskbar__spacer\"></li>\n<li class=\"taskbar__action\">\n"</span>);
|
||||
{
|
||||
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">"<a class=\"taskbar__link\" href=\""</span>);
|
||||
__sf_rt :: render_text ! (__sf_buf , <span class="string">"<!--\nSPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>\nSPDX-License-Identifier: AGPL-3.0-or-later\n-->\n<a class=\"taskbar__link\" href=\""</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">"\">\n<button class=\"taskbar__add-site\">\n+ New Site\n</button>\n</a>"</span>);
|
||||
};
|
||||
@@ -470,15 +472,15 @@
|
||||
};
|
||||
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">"\n<main class=\"panel-main\">\n"</span>);
|
||||
{
|
||||
__sf_rt :: render_text ! (__sf_buf , <span class="string">"<ol class=\"help-text\">\n<li class=\"help-text__instructions\">\nAdd sitekey\n</li>\n<li class=\"help-text__instructions\">\nAdd client-side code snippets to protect pages\n</li>\n<li class=\"help-text__instructions\">\nAdd server-side verification logic\n</li>\n</ol>"</span>);
|
||||
__sf_rt :: render_text ! (__sf_buf , <span class="string">"<!--\nSPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>\nSPDX-License-Identifier: AGPL-3.0-or-later\n-->\n<ol class=\"help-text\">\n<li class=\"help-text__instructions\">\nAdd sitekey\n</li>\n<li class=\"help-text__instructions\">\nAdd client-side code snippets to protect pages\n</li>\n<li class=\"help-text__instructions\">\nAdd server-side verification logic\n</li>\n</ol>"</span>);
|
||||
};
|
||||
__sf_rt :: render_text ! (__sf_buf , <span class="string">"\n<!-- Main content container -->\n<div class=\"inner-container\">\n<!-- Main menu/ important actions roaster -->\n"</span>);
|
||||
<span class="kw">if </span>sitekeys.is_empty() {
|
||||
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">"\n"</span>);
|
||||
{
|
||||
__sf_rt :: render_text ! (__sf_buf , <span class="string">"<ul class=\"sitekey-list__box\">\n<p>\nIt looks like you don't have any sitekeys. Click "</span>);
|
||||
__sf_rt :: render_text ! (__sf_buf , <span class="string">"<!--\nSPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>\nSPDX-License-Identifier: AGPL-3.0-or-later\n-->\n<ul class=\"sitekey-list__box\">\n<p>\nIt looks like you don't have any sitekeys. Click "</span>);
|
||||
{
|
||||
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">"<a class=\"taskbar__link\" href=\""</span>);
|
||||
__sf_rt :: render_text ! (__sf_buf , <span class="string">"<!--\nSPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>\nSPDX-License-Identifier: AGPL-3.0-or-later\n-->\n<a class=\"taskbar__link\" href=\""</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">"\">\n<button class=\"taskbar__add-site\">\n+ New Site\n</button>\n</a>"</span>);
|
||||
};
|
||||
@@ -498,7 +500,7 @@
|
||||
<span class="kw">let </span>clipboard_data = (<span class="string">"sitekey"</span>, <span class="kw-2">&</span>sitekey.key);
|
||||
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">"\n"</span>);
|
||||
{
|
||||
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">"<img class=\""</span>);
|
||||
__sf_rt :: render_text ! (__sf_buf , <span class="string">"<!--\nSPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>\nSPDX-License-Identifier: AGPL-3.0-or-later\n-->\n<img class=\""</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">"\"\nsrc=\""</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">&</span>sitekey.key);
|
||||
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">"\n"</span>);
|
||||
{
|
||||
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">"<a href=\""</span>);
|
||||
__sf_rt :: render_text ! (__sf_buf , <span class="string">"<!--\nSPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>\nSPDX-License-Identifier: AGPL-3.0-or-later\n-->\n<a href=\""</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">"\n</div>\n<!-- end of container -->\n"</span>);
|
||||
{
|
||||
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">"</main>\n"</span>);
|
||||
__sf_rt :: render_text ! (__sf_buf , <span class="string">"<!--\nSPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>\nSPDX-License-Identifier: AGPL-3.0-or-later\n-->\n</main>"</span>);
|
||||
{
|
||||
__sf_rt :: render_text ! (__sf_buf , <span class="string">"<footer role=\"contentinfo\" class=\"details__container\">\n<p class=\"details__copyright\"> &copy; mCaptcha developers </p>\n<ul class=\"details\">\n<li class=\"details__item\">\n<a class=\"details__link\"\nhref=\""</span>);
|
||||
__sf_rt :: render_text ! (__sf_buf , <span class="string">"<!--\nSPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>\nSPDX-License-Identifier: AGPL-3.0-or-later\n-->\n<footer role=\"contentinfo\" class=\"details__container\">\n<p class=\"details__copyright\"> &copy; mCaptcha developers </p>\n<ul class=\"details\">\n<li class=\"details__item\">\n<a class=\"details__link\"\nhref=\""</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">"\">Homepage</a>\n</li>\n<li class=\"details__item\">\n<a class=\"details__link\"\nhref=\""</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">&*</span><span class="kw">crate</span>::JS);
|
||||
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">"\"></script>\n"</span>);
|
||||
{
|
||||
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">"<div id=\"err__container\"></div>"</span>);
|
||||
__sf_rt :: render_text ! (__sf_buf , <span class="string">"<!--\nSPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>\nSPDX-License-Identifier: AGPL-3.0-or-later\n-->\n<div id=\"err__container\"></div>"</span>);
|
||||
};
|
||||
<span class="macro">__sf_rt::render_text!</span>(__sf_buf, <span class="string">"\n</body>\n</html>"</span>);
|
||||
};
|
||||
|
||||
@@ -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 <realaravinth@batsense.net>
|
||||
*
|
||||
* 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 <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
</pre></div><pre class="rust"><code><span class="comment">// Copyright (C) 2022 Aravinth Manivannan <realaravinth@batsense.net>
|
||||
// SPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>
|
||||
//
|
||||
// SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
|
||||
</span><span class="kw">use </span>std::env;
|
||||
<span class="kw">use </span>std::sync::Arc;
|
||||
|
||||
|
||||
@@ -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 <realaravinth@batsense.net>
|
||||
*
|
||||
* 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 <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
</pre></div><pre class="rust"><code><span class="comment">// Copyright (C) 2022 Aravinth Manivannan <realaravinth@batsense.net>
|
||||
// SPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>
|
||||
//
|
||||
// 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;
|
||||
|
||||
@@ -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 <realaravinth@batsense.net>
|
||||
*
|
||||
* 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 <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
</pre></div><pre class="rust"><code><span class="comment">// Copyright (C) 2022 Aravinth Manivannan <realaravinth@batsense.net>
|
||||
// SPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>
|
||||
//
|
||||
// SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
|
||||
</span><span class="kw">pub mod </span>login;
|
||||
<span class="kw">pub mod </span>register;
|
||||
|
||||
@@ -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 <realaravinth@batsense.net>
|
||||
*
|
||||
* 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 <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
</pre></div><pre class="rust"><code><span class="comment">// Copyright (C) 2022 Aravinth Manivannan <realaravinth@batsense.net>
|
||||
// SPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>
|
||||
//
|
||||
// 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;
|
||||
|
||||
@@ -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 <realaravinth@batsense.net>
|
||||
*
|
||||
* 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 <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
</pre></div><pre class="rust"><code><span class="comment">// Copyright (C) 2022 Aravinth Manivannan <realaravinth@batsense.net>
|
||||
// SPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>
|
||||
//
|
||||
// SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
|
||||
</span><span class="kw">use </span>std::fmt::Display;
|
||||
|
||||
|
||||
@@ -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 <realaravinth@batsense.net>
|
||||
*
|
||||
* 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 <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
</pre></div><pre class="rust"><code><span class="comment">// Copyright (C) 2022 Aravinth Manivannan <realaravinth@batsense.net>
|
||||
// SPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>
|
||||
//
|
||||
// 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;
|
||||
|
||||
@@ -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 <realaravinth@batsense.net>
|
||||
*
|
||||
* 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 <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
</pre></div><pre class="rust"><code><span class="comment">// Copyright (C) 2022 Aravinth Manivannan <realaravinth@batsense.net>
|
||||
// SPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>
|
||||
//
|
||||
// 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;
|
||||
|
||||
|
||||
@@ -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 <realaravinth@batsense.net>
|
||||
*
|
||||
* 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 <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
</pre></div><pre class="rust"><code><span class="comment">// Copyright (C) 2022 Aravinth Manivannan <realaravinth@batsense.net>
|
||||
// SPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>
|
||||
//
|
||||
// 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};
|
||||
|
||||
@@ -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 <realaravinth@batsense.net>
|
||||
*
|
||||
* 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 <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
</pre></div><pre class="rust"><code><span class="comment">// Copyright (C) 2022 Aravinth Manivannan <realaravinth@batsense.net>
|
||||
// SPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>
|
||||
//
|
||||
// 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};
|
||||
|
||||
@@ -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 <realaravinth@batsense.net>
|
||||
*
|
||||
* 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 <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
</pre></div><pre class="rust"><code><span class="comment">// Copyright (C) 2022 Aravinth Manivannan <realaravinth@batsense.net>
|
||||
// SPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>
|
||||
//
|
||||
// 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;
|
||||
|
||||
@@ -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 <realaravinth@batsense.net>
|
||||
*
|
||||
* 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 <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
</pre></div><pre class="rust"><code><span class="comment">// Copyright (C) 2022 Aravinth Manivannan <realaravinth@batsense.net>
|
||||
// SPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>
|
||||
//
|
||||
// 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;
|
||||
|
||||
@@ -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 <realaravinth@batsense.net>
|
||||
*
|
||||
* 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 <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
</pre></div><pre class="rust"><code><span class="comment">// Copyright (C) 2022 Aravinth Manivannan <realaravinth@batsense.net>
|
||||
// SPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>
|
||||
//
|
||||
// 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;
|
||||
|
||||
@@ -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 <realaravinth@batsense.net>
|
||||
*
|
||||
* 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 <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
</pre></div><pre class="rust"><code><span class="comment">// Copyright (C) 2022 Aravinth Manivannan <realaravinth@batsense.net>
|
||||
// SPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>
|
||||
//
|
||||
// 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;
|
||||
|
||||
@@ -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 <realaravinth@batsense.net>
|
||||
*
|
||||
* 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 <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
</pre></div><pre class="rust"><code><span class="comment">// Copyright (C) 2022 Aravinth Manivannan <realaravinth@batsense.net>
|
||||
// SPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>
|
||||
//
|
||||
// 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};
|
||||
|
||||
@@ -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 <realaravinth@batsense.net>
|
||||
*
|
||||
* 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 <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
</pre></div><pre class="rust"><code><span class="comment">// Copyright (C) 2022 Aravinth Manivannan <realaravinth@batsense.net>
|
||||
// SPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>
|
||||
//
|
||||
// SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
|
||||
</span><span class="kw">mod </span>add;
|
||||
<span class="kw">mod </span>delete;
|
||||
|
||||
@@ -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 <realaravinth@batsense.net>
|
||||
*
|
||||
* 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 <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
</pre></div><pre class="rust"><code><span class="comment">// Copyright (C) 2022 Aravinth Manivannan <realaravinth@batsense.net>
|
||||
// SPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>
|
||||
//
|
||||
// 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};
|
||||
|
||||
@@ -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 <realaravinth@batsense.net>
|
||||
*
|
||||
* 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 <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
</pre></div><pre class="rust"><code><span class="comment">// Copyright (C) 2022 Aravinth Manivannan <realaravinth@batsense.net>
|
||||
// SPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>
|
||||
//
|
||||
// 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;
|
||||
|
||||
@@ -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 <realaravinth@batsense.net>
|
||||
*
|
||||
* 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 <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
</pre></div><pre class="rust"><code><span class="comment">// Copyright (C) 2022 Aravinth Manivannan <realaravinth@batsense.net>
|
||||
// SPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>
|
||||
//
|
||||
// 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;
|
||||
|
||||
@@ -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 <realaravinth@batsense.net>
|
||||
*
|
||||
* 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 <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
</pre></div><pre class="rust"><code><span class="comment">// Copyright (C) 2022 Aravinth Manivannan <realaravinth@batsense.net>
|
||||
// SPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>
|
||||
//
|
||||
// SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
|
||||
</span><span class="kw">pub fn </span>services(cfg: <span class="kw-2">&mut </span>actix_web::web::ServiceConfig) {
|
||||
<span class="kw">crate</span>::api::v1::services(cfg);
|
||||
|
||||
@@ -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 <realaravinth@batsense.net>
|
||||
*
|
||||
* 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 <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
</pre></div><pre class="rust"><code><span class="comment">// Copyright (C) 2022 Aravinth Manivannan <realaravinth@batsense.net>
|
||||
// SPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>
|
||||
//
|
||||
// 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};
|
||||
|
||||
|
||||
@@ -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 <realaravinth@batsense.net>
|
||||
*
|
||||
* 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 <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
</pre></div><pre class="rust"><code><span class="comment">// Copyright (C) 2022 Aravinth Manivannan <realaravinth@batsense.net>
|
||||
// SPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>
|
||||
//
|
||||
// SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
|
||||
</span><span class="kw">use </span>cache_buster::Files;
|
||||
|
||||
<span class="kw">pub struct </span>FileMap {
|
||||
|
||||
@@ -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 <realaravinth@batsense.net>
|
||||
*
|
||||
* 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 <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
</pre></div><pre class="rust"><code><span class="comment">// Copyright (C) 2022 Aravinth Manivannan <realaravinth@batsense.net>
|
||||
// SPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>
|
||||
//
|
||||
// SPDX-License-Identifier: AGPL-3.0-or-later
|
||||
|
||||
</span><span class="kw">pub mod </span>filemap;
|
||||
<span class="kw">pub mod </span>static_files;
|
||||
|
||||
|
||||
@@ -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 <realaravinth@batsense.net>
|
||||
*
|
||||
* 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 <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
</pre></div><pre class="rust"><code><span class="comment">// Copyright (C) 2022 Aravinth Manivannan <realaravinth@batsense.net>
|
||||
// SPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>
|
||||
//
|
||||
// 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;
|
||||
|
||||
@@ -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 <realaravinth@batsense.net>
|
||||
*
|
||||
* 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 <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
</pre></div><pre class="rust"><code><span class="comment">// Copyright (C) 2022 Aravinth Manivannan <realaravinth@batsense.net>
|
||||
// SPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>
|
||||
//
|
||||
// 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};
|
||||
|
||||
@@ -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 <realaravinth@batsense.net>
|
||||
*
|
||||
* 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 <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
</pre></div><pre class="rust"><code><span class="comment">// Copyright (C) 2022 Aravinth Manivannan <realaravinth@batsense.net>
|
||||
// SPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>
|
||||
//
|
||||
// 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;
|
||||
|
||||
Reference in New Issue
Block a user