Merge pull request 'feat: reuse init' (#19) from reuse into master
ci/woodpecker/push/woodpecker Pipeline failed Details

Reviewed-on: #19
This commit is contained in:
Aravinth Manivannan 2023-11-01 19:47:35 +05:30
commit b48cc8ffc7
56 changed files with 256 additions and 751 deletions

View File

@ -8,7 +8,7 @@ pipeline:
- COMPILED_DATE=2021-07-21 - COMPILED_DATE=2021-07-21
commands: commands:
- apt-get update - apt-get update
- apt-get install -y ca-certificates curl gnupg tar wget - apt-get install -y ca-certificates curl gnupg tar wget libssl-dev
- mkdir -p /etc/apt/keyrings - mkdir -p /etc/apt/keyrings
- curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg - curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg
- NODE_MAJOR=18 echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_$NODE_MAJOR.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list - NODE_MAJOR=18 echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_$NODE_MAJOR.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list

View File

@ -73,7 +73,7 @@ tera = { version="1.17.1", features=["builtins"]}
tokio = { version = "1.25.0", features = ["fs", "macros"] } tokio = { version = "1.25.0", features = ["fs", "macros"] }
csv-async = { version = "1.2.5", features = ["serde", "tokio"] } csv-async = { version = "1.2.5", features = ["serde", "tokio"] }
async-trait = "0.1.68" async-trait = "0.1.68"
reqwest = { version = "0.11.18", features = ["json", "gzip"] } reqwest = { version = "0.11.18", features = ["json", "gzip", "native-tls-vendored"] }
#tokio = "1.11.0" #tokio = "1.11.0"

View File

@ -1,3 +1,7 @@
-- SPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>
--
-- SPDX-License-Identifier: AGPL-3.0-or-later
CREATE TABLE IF NOT EXISTS survey_users ( CREATE TABLE IF NOT EXISTS survey_users (
ID UUID PRIMARY KEY NOT NULL UNIQUE, ID UUID PRIMARY KEY NOT NULL UNIQUE,
created_at TIMESTAMPTZ NOT NULL created_at TIMESTAMPTZ NOT NULL

View File

@ -1,3 +1,7 @@
-- SPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>
--
-- SPDX-License-Identifier: AGPL-3.0-or-later
-- Add migration script here -- Add migration script here
CREATE TABLE IF NOT EXISTS survey_admins ( CREATE TABLE IF NOT EXISTS survey_admins (
name VARCHAR(100) NOT NULL UNIQUE, name VARCHAR(100) NOT NULL UNIQUE,

View File

@ -1,2 +1,6 @@
-- SPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>
--
-- SPDX-License-Identifier: AGPL-3.0-or-later
ALTER TABLE survey_responses ALTER TABLE survey_responses
ADD COLUMN submitted_at TIMESTAMPTZ NOT NULL DEFAULT now(); ADD COLUMN submitted_at TIMESTAMPTZ NOT NULL DEFAULT now();

View File

@ -1,3 +1,7 @@
-- SPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>
--
-- SPDX-License-Identifier: AGPL-3.0-or-later
CREATE TABLE IF NOT EXISTS survey_bench_type ( CREATE TABLE IF NOT EXISTS survey_bench_type (
name VARCHAR(30) UNIQUE NOT NULL, name VARCHAR(30) UNIQUE NOT NULL,
ID SERIAL PRIMARY KEY NOT NULL ID SERIAL PRIMARY KEY NOT NULL

View File

@ -1,3 +1,7 @@
-- SPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>
--
-- SPDX-License-Identifier: AGPL-3.0-or-later
CREATE TABLE IF NOT EXISTS survey_mcaptcha_hostname ( CREATE TABLE IF NOT EXISTS survey_mcaptcha_hostname (
url VARCHAR(3000) UNIQUE NOT NULL, url VARCHAR(3000) UNIQUE NOT NULL,
secret VARCHAR(100) UNIQUE NOT NULL, secret VARCHAR(100) UNIQUE NOT NULL,

View File

@ -1,18 +1,6 @@
/* // Copyright (C) 2021 Aravinth Manivannan <realaravinth@batsense.net>
* Copyright (C) 2021 Aravinth Manivannan <realaravinth@batsense.net> // SPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>
* //
* This program is free software: you can redistribute it and/or modify // SPDX-License-Identifier: AGPL-3.0-or-later
* 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/>.
*/
pub mod v1; pub mod v1;

View File

@ -1,19 +1,7 @@
/* // Copyright (C) 2021 Aravinth Manivannan <realaravinth@batsense.net>
* Copyright (C) 2021 Aravinth Manivannan <realaravinth@batsense.net> // SPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>
* //
* This program is free software: you can redistribute it and/or modify // SPDX-License-Identifier: AGPL-3.0-or-later
* 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/>.
*/
use actix_identity::Identity; use actix_identity::Identity;
use actix_web::{web, HttpResponse, Responder}; use actix_web::{web, HttpResponse, Responder};

View File

@ -1,19 +1,8 @@
/* // Copyright (C) 2021 Aravinth Manivannan <realaravinth@batsense.net>
* Copyright (C) 2021 Aravinth Manivannan <realaravinth@batsense.net> // SPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>
* //
* This program is free software: you can redistribute it and/or modify // SPDX-License-Identifier: AGPL-3.0-or-later
* 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/>.
*/
use std::borrow::Cow; use std::borrow::Cow;
use actix_identity::Identity; use actix_identity::Identity;

View File

@ -1,19 +1,7 @@
/* // Copyright (C) 2021 Aravinth Manivannan <realaravinth@batsense.net>
* Copyright (C) 2021 Aravinth Manivannan <realaravinth@batsense.net> // SPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>
* //
* This program is free software: you can redistribute it and/or modify // SPDX-License-Identifier: AGPL-3.0-or-later
* 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/>.
*/
use serde::{Deserialize, Serialize}; use serde::{Deserialize, Serialize};

View File

@ -1,19 +1,8 @@
/* // Copyright (C) 2021 Aravinth Manivannan <realaravinth@batsense.net>
* Copyright (C) 2021 Aravinth Manivannan <realaravinth@batsense.net> // SPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>
* //
* This program is free software: you can redistribute it and/or modify // SPDX-License-Identifier: AGPL-3.0-or-later
* 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/>.
*/
use actix_identity::Identity; use actix_identity::Identity;
use actix_web::{web, HttpResponse, Responder}; use actix_web::{web, HttpResponse, Responder};
use argon2_creds::Config; use argon2_creds::Config;

View File

@ -1,19 +1,8 @@
/* // Copyright (C) 2021 Aravinth Manivannan <realaravinth@batsense.net>
* Copyright (C) 2021 Aravinth Manivannan <realaravinth@batsense.net> // SPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>
* //
* This program is free software: you can redistribute it and/or modify // SPDX-License-Identifier: AGPL-3.0-or-later
* 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/>.
*/
use std::borrow::Cow; use std::borrow::Cow;
use actix_identity::Identity; use actix_identity::Identity;

View File

@ -1,19 +1,7 @@
/* // Copyright (C) 2021 Aravinth Manivannan <realaravinth@batsense.net>
* Copyright (C) 2021 Aravinth Manivannan <realaravinth@batsense.net> // SPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>
* //
* This program is free software: you can redistribute it and/or modify // SPDX-License-Identifier: AGPL-3.0-or-later
* 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/>.
*/
use actix_web::http::StatusCode; use actix_web::http::StatusCode;
use actix_web::test; use actix_web::test;

View File

@ -1,19 +1,8 @@
/* // Copyright (C) 2021 Aravinth Manivannan <realaravinth@batsense.net>
* Copyright (C) 2021 Aravinth Manivannan <realaravinth@batsense.net> // SPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>
* //
* This program is free software: you can redistribute it and/or modify // SPDX-License-Identifier: AGPL-3.0-or-later
* 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/>.
*/
use std::borrow::Cow; use std::borrow::Cow;
use actix_identity::Identity; use actix_identity::Identity;

View File

@ -1,19 +1,7 @@
/* // Copyright (C) 2021 Aravinth Manivannan <realaravinth@batsense.net>
* Copyright (C) 2021 Aravinth Manivannan <realaravinth@batsense.net> // SPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>
* //
* This program is free software: you can redistribute it and/or modify // SPDX-License-Identifier: AGPL-3.0-or-later
* 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/>.
*/
use actix_identity::Identity; use actix_identity::Identity;
use actix_web::http::header; use actix_web::http::header;

View File

@ -1,19 +1,8 @@
/* // Copyright (C) 2021 Aravinth Manivannan <realaravinth@batsense.net>
* Copyright (C) 2021 Aravinth Manivannan <realaravinth@batsense.net> // SPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>
* //
* This program is free software: you can redistribute it and/or modify // SPDX-License-Identifier: AGPL-3.0-or-later
* 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/>.
*/
use std::borrow::Cow; use std::borrow::Cow;
use actix_identity::Identity; use actix_identity::Identity;

View File

@ -1,19 +1,8 @@
/* // Copyright (C) 2021 Aravinth Manivannan <realaravinth@batsense.net>
* Copyright (C) 2021 Aravinth Manivannan <realaravinth@batsense.net> // SPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>
* //
* This program is free software: you can redistribute it and/or modify // SPDX-License-Identifier: AGPL-3.0-or-later
* 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/>.
*/
use actix_auth_middleware::*; use actix_auth_middleware::*;
use actix_web::web::ServiceConfig; use actix_web::web::ServiceConfig;

View File

@ -1,19 +1,7 @@
/* // Copyright (C) 2021 Aravinth Manivannan <realaravinth@batsense.net>
* Copyright (C) 2021 Aravinth Manivannan <realaravinth@batsense.net> // SPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>
* //
* This program is free software: you can redistribute it and/or modify // SPDX-License-Identifier: AGPL-3.0-or-later
* 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/>.
*/
use actix_web::http::{header, StatusCode}; use actix_web::http::{header, StatusCode};
use actix_web::test; use actix_web::test;

View File

@ -1,18 +1,7 @@
/* // Copyright (C) 2021 Aravinth Manivannan <realaravinth@batsense.net>
* Copyright (C) 2021 Aravinth Manivannan <realaravinth@batsense.net> // SPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>
* //
* This program is free software: you can redistribute it and/or modify // SPDX-License-Identifier: AGPL-3.0-or-later
* 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/>.
*/
mod auth; mod auth;
mod protected; mod protected;

View File

@ -1,19 +1,7 @@
/* // Copyright (C) 2021 Aravinth Manivannan <realaravinth@batsense.net>
* Copyright (C) 2021 Aravinth Manivannan <realaravinth@batsense.net> // SPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>
* //
* This program is free software: you can redistribute it and/or modify // SPDX-License-Identifier: AGPL-3.0-or-later
* 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/>.
*/
use actix_web::http::StatusCode; use actix_web::http::StatusCode;
use actix_web::test; use actix_web::test;

View File

@ -1,19 +1,8 @@
/* // Copyright (C) 2021 Aravinth Manivannan <realaravinth@batsense.net>
* Copyright (C) 2021 Aravinth Manivannan <realaravinth@batsense.net> // SPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>
* //
* This program is free software: you can redistribute it and/or modify // SPDX-License-Identifier: AGPL-3.0-or-later
* 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/>.
*/
use std::borrow::Cow; use std::borrow::Cow;
use std::str::FromStr; use std::str::FromStr;

View File

@ -1,19 +1,8 @@
/* // Copyright (C) 2023 Aravinth Manivannan <realaravinth@batsense.net>
* Copyright (C) 2023 Aravinth Manivannan <realaravinth@batsense.net> // SPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>
* //
* This program is free software: you can redistribute it and/or modify // SPDX-License-Identifier: AGPL-3.0-or-later
* 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/>.
*/
use url::Url; use url::Url;
use uuid::Uuid; use uuid::Uuid;

View File

@ -1,19 +1,8 @@
/* // Copyright (C) 2023 Aravinth Manivannan <realaravinth@batsense.net>
* Copyright (C) 2023 Aravinth Manivannan <realaravinth@batsense.net> // SPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>
* //
* This program is free software: you can redistribute it and/or modify // SPDX-License-Identifier: AGPL-3.0-or-later
* 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/>.
*/
use actix_web::web::ServiceConfig; use actix_web::web::ServiceConfig;
use actix_web::{web, HttpResponse, Responder}; use actix_web::{web, HttpResponse, Responder};
use serde::{Deserialize, Serialize}; use serde::{Deserialize, Serialize};

View File

@ -1,19 +1,8 @@
/* // Copyright (C) 2023 Aravinth Manivannan <realaravinth@batsense.net>
* Copyright (C) 2023 Aravinth Manivannan <realaravinth@batsense.net> // SPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>
* //
* This program is free software: you can redistribute it and/or modify // SPDX-License-Identifier: AGPL-3.0-or-later
* 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/>.
*/
use actix_web::web::ServiceConfig; use actix_web::web::ServiceConfig;
pub mod db; pub mod db;

View File

@ -1,19 +1,7 @@
/* // Copyright (C) 2021 Aravinth Manivannan <realaravinth@batsense.net>
* Copyright (C) 2021 Aravinth Manivannan <realaravinth@batsense.net> // SPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>
* //
* This program is free software: you can redistribute it and/or modify // SPDX-License-Identifier: AGPL-3.0-or-later
* 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/>.
*/
use actix_web::{web, HttpResponse, Responder}; use actix_web::{web, HttpResponse, Responder};
use derive_builder::Builder; use derive_builder::Builder;

View File

@ -1,19 +1,8 @@
/* // Copyright (C) 2021 Aravinth Manivannan <realaravinth@batsense.net>
* Copyright (C) 2021 Aravinth Manivannan <realaravinth@batsense.net> // SPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>
* //
* This program is free software: you can redistribute it and/or modify // SPDX-License-Identifier: AGPL-3.0-or-later
* 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/>.
*/
use actix_web::web::ServiceConfig; use actix_web::web::ServiceConfig;
use serde::Deserialize; use serde::Deserialize;
use sqlx::types::Uuid; use sqlx::types::Uuid;

View File

@ -1,19 +1,8 @@
/* // Copyright (C) 2021 Aravinth Manivannan <realaravinth@batsense.net>
* Copyright (C) 2021 Aravinth Manivannan <realaravinth@batsense.net> // SPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>
* //
* This program is free software: you can redistribute it and/or modify // SPDX-License-Identifier: AGPL-3.0-or-later
* 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/>.
*/
use serde::Serialize; use serde::Serialize;
use super::admin::routes::Admin; use super::admin::routes::Admin;

View File

@ -1,19 +1,8 @@
/* // Copyright (C) 2023 Aravinth Manivannan <realaravinth@batsense.net>
* Copyright (C) 2023 Aravinth Manivannan <realaravinth@batsense.net> // SPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>
* //
* This program is free software: you can redistribute it and/or modify // SPDX-License-Identifier: AGPL-3.0-or-later
* 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/>.
*/
use std::path::{Path, PathBuf}; use std::path::{Path, PathBuf};
use serde::{Deserialize, Serialize}; use serde::{Deserialize, Serialize};

View File

@ -0,0 +1,3 @@
SPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>
SPDX-License-Identifier: AGPL-3.0-or-later

View File

@ -1,19 +1,8 @@
/* // Copyright (C) 2021 Aravinth Manivannan <realaravinth@batsense.net>
* Copyright (C) 2021 Aravinth Manivannan <realaravinth@batsense.net> // SPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>
* //
* This program is free software: you can redistribute it and/or modify // SPDX-License-Identifier: AGPL-3.0-or-later
* 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/>.
*/
//! App data: database connections, etc. //! App data: database connections, etc.
use std::sync::Arc; use std::sync::Arc;
use std::thread; use std::thread;

View File

@ -1,3 +1,7 @@
// SPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>
//
// SPDX-License-Identifier: AGPL-3.0-or-later
use lazy_static::lazy_static; use lazy_static::lazy_static;
use serde::{Deserialize, Serialize}; use serde::{Deserialize, Serialize};
use sqlx::PgPool; use sqlx::PgPool;

View File

@ -1,19 +1,8 @@
/* // Copyright (C) 2021 Aravinth Manivannan <realaravinth@batsense.net>
* Copyright (C) 2021 Aravinth Manivannan <realaravinth@batsense.net> // SPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>
* //
* This program is free software: you can redistribute it and/or modify // SPDX-License-Identifier: AGPL-3.0-or-later
* 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/>.
*/
use std::convert::From; use std::convert::From;
use argon2_creds::errors::CredsError; use argon2_creds::errors::CredsError;

View File

@ -1,19 +1,8 @@
/* // Copyright (C) 2021 Aravinth Manivannan <realaravinth@batsense.net>
* Copyright (C) 2021 Aravinth Manivannan <realaravinth@batsense.net> // SPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>
* //
* This program is free software: you can redistribute it and/or modify // SPDX-License-Identifier: AGPL-3.0-or-later
* 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/>.
*/
use std::env; use std::env;
use std::sync::Arc; use std::sync::Arc;

View File

@ -1,19 +1,8 @@
/* // Copyright (C) 2023 Aravinth Manivannan <realaravinth@batsense.net>
* Copyright (C) 2023 Aravinth Manivannan <realaravinth@batsense.net> // SPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>
* //
* This program is free software: you can redistribute it and/or modify // SPDX-License-Identifier: AGPL-3.0-or-later
* 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/>.
*/
use std::time::Duration; use std::time::Duration;
use async_trait::async_trait; use async_trait::async_trait;

View File

@ -1,19 +1,8 @@
/* // Copyright (C) 2022 Aravinth Manivannan <realaravinth@batsense.net>
* Copyright (C) 2022 Aravinth Manivannan <realaravinth@batsense.net> // SPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>
* //
* This program is free software: you can redistribute it and/or modify // SPDX-License-Identifier: AGPL-3.0-or-later
* 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/>.
*/
use actix_web::http::header::ContentType; use actix_web::http::header::ContentType;
use std::cell::RefCell; use std::cell::RefCell;
use tera::Context; use tera::Context;

View File

@ -1,19 +1,8 @@
/* // Copyright (C) 2022 Aravinth Manivannan <realaravinth@batsense.net>
* Copyright (C) 2022 Aravinth Manivannan <realaravinth@batsense.net> // SPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>
* //
* This program is free software: you can redistribute it and/or modify // SPDX-License-Identifier: AGPL-3.0-or-later
* 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/>.
*/
use std::cell::RefCell; use std::cell::RefCell;
use actix_identity::Identity; use actix_identity::Identity;

View File

@ -1,19 +1,8 @@
/* // Copyright (C) 2023 Aravinth Manivannan <realaravinth@batsense.net>
* Copyright (C) 2023 Aravinth Manivannan <realaravinth@batsense.net> // SPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>
* //
* This program is free software: you can redistribute it and/or modify // SPDX-License-Identifier: AGPL-3.0-or-later
* 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/>.
*/
use actix_web::*; use actix_web::*;
pub use super::{context, Footer, TemplateFile, PAGES, PAYLOAD_KEY, TEMPLATES}; pub use super::{context, Footer, TemplateFile, PAGES, PAYLOAD_KEY, TEMPLATES};

View File

@ -1,19 +1,8 @@
/* // Copyright (C) 2021 Aravinth Manivannan <realaravinth@batsense.net>
* Copyright (C) 2021 Aravinth Manivannan <realaravinth@batsense.net> // SPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>
* //
* This program is free software: you can redistribute it and/or modify // SPDX-License-Identifier: AGPL-3.0-or-later
* 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/>.
*/
use sailfish::TemplateOnce; use sailfish::TemplateOnce;
use crate::pages::errors::ErrorPage; use crate::pages::errors::ErrorPage;

View File

@ -1,19 +1,8 @@
/* // Copyright (C) 2022 Aravinth Manivannan <realaravinth@batsense.net>
* Copyright (C) 2022 Aravinth Manivannan <realaravinth@batsense.net> // SPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>
* //
* This program is free software: you can redistribute it and/or modify // SPDX-License-Identifier: AGPL-3.0-or-later
* 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/>.
*/
use std::fmt; use std::fmt;
use actix_web::{ use actix_web::{

View File

@ -1,19 +1,8 @@
/* // Copyright (C) 2022 Aravinth Manivannan <realaravinth@batsense.net>
* Copyright (C) 2022 Aravinth Manivannan <realaravinth@batsense.net> // SPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>
* //
* This program is free software: you can redistribute it and/or modify // SPDX-License-Identifier: AGPL-3.0-or-later
* 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/>.
*/
use actix_auth_middleware::*; use actix_auth_middleware::*;
use actix_web::web::ServiceConfig; use actix_web::web::ServiceConfig;
use lazy_static::lazy_static; use lazy_static::lazy_static;

View File

@ -1,19 +1,8 @@
/* // Copyright (C) 2021 Aravinth Manivannan <realaravinth@batsense.net>
* Copyright (C) 2021 Aravinth Manivannan <realaravinth@batsense.net> // SPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>
* //
* This program is free software: you can redistribute it and/or modify // SPDX-License-Identifier: AGPL-3.0-or-later
* 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/>.
*/
use std::cell::RefCell; use std::cell::RefCell;
use std::str::FromStr; use std::str::FromStr;

View File

@ -1,19 +1,8 @@
/* // Copyright (C) 2021 Aravinth Manivannan <realaravinth@batsense.net>
* Copyright (C) 2021 Aravinth Manivannan <realaravinth@batsense.net> // SPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>
* //
* This program is free software: you can redistribute it and/or modify // SPDX-License-Identifier: AGPL-3.0-or-later
* 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/>.
*/
use std::cell::RefCell; use std::cell::RefCell;
use actix_web::http::header::ContentType; use actix_web::http::header::ContentType;

View File

@ -1,19 +1,8 @@
/* // Copyright (C) 2021 Aravinth Manivannan <realaravinth@batsense.net>
* Copyright (C) 2021 Aravinth Manivannan <realaravinth@batsense.net> // SPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>
* //
* This program is free software: you can redistribute it and/or modify // SPDX-License-Identifier: AGPL-3.0-or-later
* 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/>.
*/
use actix_identity::Identity; use actix_identity::Identity;
use serde::{Deserialize, Serialize}; use serde::{Deserialize, Serialize};
use sqlx::types::Uuid; use sqlx::types::Uuid;

View File

@ -1,18 +1,8 @@
/* // Copyright (C) 2021 Aravinth Manivannan <realaravinth@batsense.net>
* Copyright (C) 2021 Aravinth Manivannan <realaravinth@batsense.net> // SPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>
* //
* This program is free software: you can redistribute it and/or modify // SPDX-License-Identifier: AGPL-3.0-or-later
* 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/>.
*/
use std::cell::RefCell; use std::cell::RefCell;
use actix_identity::Identity; use actix_identity::Identity;

View File

@ -1,19 +1,8 @@
/* // Copyright (C) 2021 Aravinth Manivannan <realaravinth@batsense.net>
* Copyright (C) 2021 Aravinth Manivannan <realaravinth@batsense.net> // SPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>
* //
* This program is free software: you can redistribute it and/or modify // SPDX-License-Identifier: AGPL-3.0-or-later
* 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/>.
*/
use std::cell::RefCell; use std::cell::RefCell;
use actix_identity::Identity; use actix_identity::Identity;

View File

@ -1,19 +1,8 @@
/* // Copyright (C) 2021 Aravinth Manivannan <realaravinth@batsense.net>
* Copyright (C) 2021 Aravinth Manivannan <realaravinth@batsense.net> // SPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>
* //
* This program is free software: you can redistribute it and/or modify // SPDX-License-Identifier: AGPL-3.0-or-later
* 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/>.
*/
use std::cell::RefCell; use std::cell::RefCell;
use std::str::FromStr; use std::str::FromStr;

View File

@ -1,18 +1,8 @@
/* // Copyright (C) 2023 Aravinth Manivannan <realaravinth@batsense.net>
* Copyright (C) 2023 Aravinth Manivannan <realaravinth@batsense.net> // SPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>
* //
* This program is free software: you can redistribute it and/or modify // SPDX-License-Identifier: AGPL-3.0-or-later
* 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/>.
*/
use std::cell::RefCell; use std::cell::RefCell;
use actix_web::http::header::ContentType; use actix_web::http::header::ContentType;

View File

@ -1,18 +1,8 @@
/* // Copyright (C) 2021 Aravinth Manivannan <realaravinth@batsense.net>
* Copyright (C) 2021 Aravinth Manivannan <realaravinth@batsense.net> // SPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>
* //
* This program is free software: you can redistribute it and/or modify // SPDX-License-Identifier: AGPL-3.0-or-later
* 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/>.
*/
use actix_web::{http, HttpResponse, Responder}; use actix_web::{http, HttpResponse, Responder};
pub use super::{context, Footer, TemplateFile, PAGES, PAYLOAD_KEY, TEMPLATES}; pub use super::{context, Footer, TemplateFile, PAGES, PAYLOAD_KEY, TEMPLATES};

View File

@ -1,19 +1,8 @@
/* // Copyright (C) 2021 Aravinth Manivannan <realaravinth@batsense.net>
* Copyright (C) 2021 Aravinth Manivannan <realaravinth@batsense.net> // SPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>
* //
* This program is free software: you can redistribute it and/or modify // SPDX-License-Identifier: AGPL-3.0-or-later
* 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/>.
*/
use actix_auth_middleware::GetLoginRoute; use actix_auth_middleware::GetLoginRoute;
use serde::{Deserialize, Serialize}; use serde::{Deserialize, Serialize};

View File

@ -1,19 +1,8 @@
/* // Copyright (C) 2021 Aravinth Manivannan <realaravinth@batsense.net>
* Copyright (C) 2021 Aravinth Manivannan <realaravinth@batsense.net> // SPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>
* //
* This program is free software: you can redistribute it and/or modify // SPDX-License-Identifier: AGPL-3.0-or-later
* 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/>.
*/
use std::env; use std::env;
use std::fs; use std::fs;
use std::path::Path; use std::path::Path;

View File

@ -1,19 +1,8 @@
/* // Copyright (C) 2021 Aravinth Manivannan <realaravinth@batsense.net>
* Copyright (C) 2021 Aravinth Manivannan <realaravinth@batsense.net> // SPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>
* //
* This program is free software: you can redistribute it and/or modify // SPDX-License-Identifier: AGPL-3.0-or-later
* 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/>.
*/
use cache_buster::Files; use cache_buster::Files;
pub struct FileMap { pub struct FileMap {

View File

@ -1,19 +1,8 @@
/* // Copyright (C) 2021 Aravinth Manivannan <realaravinth@batsense.net>
* Copyright (C) 2021 Aravinth Manivannan <realaravinth@batsense.net> // SPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>
* //
* This program is free software: you can redistribute it and/or modify // SPDX-License-Identifier: AGPL-3.0-or-later
* 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/>.
*/
pub mod filemap; pub mod filemap;
pub mod static_files; pub mod static_files;

View File

@ -1,19 +1,8 @@
/* // Copyright (C) 2021 Aravinth Manivannan <realaravinth@batsense.net>
* Copyright (C) 2021 Aravinth Manivannan <realaravinth@batsense.net> // SPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>
* //
* This program is free software: you can redistribute it and/or modify // SPDX-License-Identifier: AGPL-3.0-or-later
* 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/>.
*/
use std::borrow::Cow; use std::borrow::Cow;
use actix_web::body::BoxBody; use actix_web::body::BoxBody;

View File

@ -1,19 +1,8 @@
/* // Copyright (C) 2021 Aravinth Manivannan <realaravinth@batsense.net>
* Copyright (C) 2021 Aravinth Manivannan <realaravinth@batsense.net> // SPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>
* //
* This program is free software: you can redistribute it and/or modify // SPDX-License-Identifier: AGPL-3.0-or-later
* 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/>.
*/
use std::env; use std::env;
use sqlx::postgres::PgPoolOptions; use sqlx::postgres::PgPoolOptions;

View File

@ -1,19 +1,8 @@
/* // Copyright (C) 2021 Aravinth Manivannan <realaravinth@batsense.net>
* Copyright (C) 2021 Aravinth Manivannan <realaravinth@batsense.net> // SPDX-FileCopyrightText: 2023 Aravinth Manivannan <realaravinth@batsense.net>
* //
* This program is free software: you can redistribute it and/or modify // SPDX-License-Identifier: AGPL-3.0-or-later
* 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/>.
*/
use std::str::FromStr; use std::str::FromStr;
use std::sync::Arc; use std::sync::Arc;