diff options
| author | Fuwn <[email protected]> | 2024-06-17 06:44:09 -0700 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2024-06-17 06:44:09 -0700 |
| commit | 8609e7ed2cedf28aa655e5b3f15f130558dd8d4c (patch) | |
| tree | 90c9cfcf47bc2642db292bad6348e653c037b1e4 /src/modules | |
| parent | feat(blogs): remove news (diff) | |
| download | locus-8609e7ed2cedf28aa655e5b3f15f130558dd8d4c.tar.xz locus-8609e7ed2cedf28aa655e5b3f15f130558dd8d4c.zip | |
refactor: remove file header
Diffstat (limited to 'src/modules')
| -rw-r--r-- | src/modules/api.rs | 18 | ||||
| -rw-r--r-- | src/modules/api/sydney.rs | 18 | ||||
| -rw-r--r-- | src/modules/api/sydney/commit.rs | 18 | ||||
| -rw-r--r-- | src/modules/api/sydney/tags.rs | 18 | ||||
| -rw-r--r-- | src/modules/blog.rs | 18 | ||||
| -rw-r--r-- | src/modules/blog/config.rs | 18 | ||||
| -rw-r--r-- | src/modules/blog/module.rs | 20 | ||||
| -rw-r--r-- | src/modules/contact.rs | 18 | ||||
| -rw-r--r-- | src/modules/cryptocurrency.rs | 30 | ||||
| -rw-r--r-- | src/modules/interests.rs | 18 | ||||
| -rw-r--r-- | src/modules/random.rs | 18 | ||||
| -rw-r--r-- | src/modules/remarks.rs | 18 | ||||
| -rw-r--r-- | src/modules/router.rs | 19 | ||||
| -rw-r--r-- | src/modules/router/module.rs | 18 | ||||
| -rw-r--r-- | src/modules/router/ticker.rs | 18 | ||||
| -rw-r--r-- | src/modules/router/translate.rs | 18 | ||||
| -rw-r--r-- | src/modules/router/translate/deepl.rs | 18 | ||||
| -rw-r--r-- | src/modules/router/translate/module.rs | 18 | ||||
| -rw-r--r-- | src/modules/search.rs | 18 | ||||
| -rw-r--r-- | src/modules/sitemap.rs | 18 | ||||
| -rw-r--r-- | src/modules/skills.rs | 18 | ||||
| -rw-r--r-- | src/modules/static.rs | 18 | ||||
| -rw-r--r-- | src/modules/stocks.rs | 32 | ||||
| -rw-r--r-- | src/modules/uptime.rs | 18 | ||||
| -rw-r--r-- | src/modules/web.rs | 17 |
25 files changed, 2 insertions, 476 deletions
diff --git a/src/modules/api.rs b/src/modules/api.rs index 52b004a..0f03d11 100644 --- a/src/modules/api.rs +++ b/src/modules/api.rs @@ -1,21 +1,3 @@ -// This file is part of Locus <https://github.com/gemrest/locus>. -// Copyright (C) 2022-2022 Fuwn <[email protected]> -// -// This program is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, version 3. -// -// 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 -// General Public License for more details. -// -// You should have received a copy of the GNU General Public License -// along with this program. If not, see <http://www.gnu.org/licenses/>. -// -// Copyright (C) 2022-2022 Fuwn <[email protected]> -// SPDX-License-Identifier: GPL-3.0-only - mod sydney; pub use sydney::module; diff --git a/src/modules/api/sydney.rs b/src/modules/api/sydney.rs index 0767328..037dccf 100644 --- a/src/modules/api/sydney.rs +++ b/src/modules/api/sydney.rs @@ -1,21 +1,3 @@ -// This file is part of Locus <https://github.com/gemrest/locus>. -// Copyright (C) 2022-2022 Fuwn <[email protected]> -// -// This program is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, version 3. -// -// 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 -// General Public License for more details. -// -// You should have received a copy of the GNU General Public License -// along with this program. If not, see <http://www.gnu.org/licenses/>. -// -// Copyright (C) 2022-2022 Fuwn <[email protected]> -// SPDX-License-Identifier: GPL-3.0-only - mod commit; mod tags; diff --git a/src/modules/api/sydney/commit.rs b/src/modules/api/sydney/commit.rs index 293617a..c03161b 100644 --- a/src/modules/api/sydney/commit.rs +++ b/src/modules/api/sydney/commit.rs @@ -1,21 +1,3 @@ -// This file is part of Locus <https://github.com/gemrest/locus>. -// Copyright (C) 2022-2022 Fuwn <[email protected]> -// -// This program is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, version 3. -// -// 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 -// General Public License for more details. -// -// You should have received a copy of the GNU General Public License -// along with this program. If not, see <http://www.gnu.org/licenses/>. -// -// Copyright (C) 2022-2022 Fuwn <[email protected]> -// SPDX-License-Identifier: GPL-3.0-only - use serde::{Deserialize, Serialize}; #[derive(Serialize, Deserialize)] diff --git a/src/modules/api/sydney/tags.rs b/src/modules/api/sydney/tags.rs index bf84e17..c244659 100644 --- a/src/modules/api/sydney/tags.rs +++ b/src/modules/api/sydney/tags.rs @@ -1,21 +1,3 @@ -// This file is part of Locus <https://github.com/gemrest/locus>. -// Copyright (C) 2022-2022 Fuwn <[email protected]> -// -// This program is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, version 3. -// -// 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 -// General Public License for more details. -// -// You should have received a copy of the GNU General Public License -// along with this program. If not, see <http://www.gnu.org/licenses/>. -// -// Copyright (C) 2022-2022 Fuwn <[email protected]> -// SPDX-License-Identifier: GPL-3.0-only - use serde::{Deserialize, Serialize}; #[derive(Serialize, Deserialize)] diff --git a/src/modules/blog.rs b/src/modules/blog.rs index 4672ec2..f2083fe 100644 --- a/src/modules/blog.rs +++ b/src/modules/blog.rs @@ -1,21 +1,3 @@ -// This file is part of Locus <https://github.com/gemrest/locus>. -// Copyright (C) 2022-2022 Fuwn <[email protected]> -// -// This program is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, version 3. -// -// 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 -// General Public License for more details. -// -// You should have received a copy of the GNU General Public License -// along with this program. If not, see <http://www.gnu.org/licenses/>. -// -// Copyright (C) 2022-2022 Fuwn <[email protected]> -// SPDX-License-Identifier: GPL-3.0-only - mod config; mod module; diff --git a/src/modules/blog/config.rs b/src/modules/blog/config.rs index 34d9373..20c3bd4 100644 --- a/src/modules/blog/config.rs +++ b/src/modules/blog/config.rs @@ -1,21 +1,3 @@ -// This file is part of Locus <https://github.com/gemrest/locus>. -// Copyright (C) 2022-2022 Fuwn <[email protected]> -// -// This program is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, version 3. -// -// 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 -// General Public License for more details. -// -// You should have received a copy of the GNU General Public License -// along with this program. If not, see <http://www.gnu.org/licenses/>. -// -// Copyright (C) 2022-2022 Fuwn <[email protected]> -// SPDX-License-Identifier: GPL-3.0-only - use std::collections::HashMap; use serde::{Deserialize, Serialize}; diff --git a/src/modules/blog/module.rs b/src/modules/blog/module.rs index 6d3c253..e90c380 100644 --- a/src/modules/blog/module.rs +++ b/src/modules/blog/module.rs @@ -1,21 +1,3 @@ -// This file is part of Locus <https://github.com/gemrest/locus>. -// Copyright (C) 2022-2022 Fuwn <[email protected]> -// -// This program is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, version 3. -// -// 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 -// General Public License for more details. -// -// You should have received a copy of the GNU General Public License -// along with this program. If not, see <http://www.gnu.org/licenses/>. -// -// Copyright (C) 2022-2022 Fuwn <[email protected]> -// SPDX-License-Identifier: GPL-3.0-only - use { crate::{ modules::blog::config::Blog, @@ -191,7 +173,7 @@ pub fn module(router: &mut windmark::router::Router) { {0}'s RSS feed\n\n=> {} here!", blog, entries_clone.len(), - description.clone().unwrap_or_else(String::new), + description.clone().unwrap_or_default(), entries_clone .keys() .map(Clone::clone) diff --git a/src/modules/contact.rs b/src/modules/contact.rs index 4611e5c..8c0798a 100644 --- a/src/modules/contact.rs +++ b/src/modules/contact.rs @@ -1,21 +1,3 @@ -// This file is part of Locus <https://github.com/gemrest/locus>. -// Copyright (C) 2022-2022 Fuwn <[email protected]> -// -// This program is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, version 3. -// -// 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 -// General Public License for more details. -// -// You should have received a copy of the GNU General Public License -// along with this program. If not, see <http://www.gnu.org/licenses/>. -// -// Copyright (C) 2022-2022 Fuwn <[email protected]> -// SPDX-License-Identifier: GPL-3.0-only - use std::{collections::HashMap, sync::LazyLock}; type ContactMap = HashMap<String, HashMap<String, String>>; diff --git a/src/modules/cryptocurrency.rs b/src/modules/cryptocurrency.rs index 4cecfc3..e6ea9bb 100644 --- a/src/modules/cryptocurrency.rs +++ b/src/modules/cryptocurrency.rs @@ -1,36 +1,6 @@ -// This file is part of Locus <https://github.com/gemrest/locus>. -// Copyright (C) 2022-2022 Fuwn <[email protected]> -// -// This program is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, version 3. -// -// 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 -// General Public License for more details. -// -// You should have received a copy of the GNU General Public License -// along with this program. If not, see <http://www.gnu.org/licenses/>. -// -// Copyright (C) 2022-2022 Fuwn <[email protected]> -// SPDX-License-Identifier: GPL-3.0-only - use crate::{response::success, route::track_mount}; -// static REFERRALS: LazyLock<Vec<Referral>> = LazyLock::new(|| { -// serde_json::from_str(include_str!( -// "../../content/json/cryptocurrency_referrals.json" -// )) -// .unwrap() -// }); -// #[derive(Deserialize)] -// struct Referral { -// name: String, -// description: String, -// url: String, -// } pub fn module(router: &mut windmark::router::Router) { // track_mount( diff --git a/src/modules/interests.rs b/src/modules/interests.rs index 72bfffd..4383e65 100644 --- a/src/modules/interests.rs +++ b/src/modules/interests.rs @@ -1,21 +1,3 @@ -// This file is part of Locus <https://github.com/gemrest/locus>. -// Copyright (C) 2022-2022 Fuwn <[email protected]> -// -// This program is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, version 3. -// -// 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 -// General Public License for more details. -// -// You should have received a copy of the GNU General Public License -// along with this program. If not, see <http://www.gnu.org/licenses/>. -// -// Copyright (C) 2022-2022 Fuwn <[email protected]> -// SPDX-License-Identifier: GPL-3.0-only - use std::{collections::HashMap, sync::LazyLock}; type InterestMap = HashMap<String, HashMap<String, String>>; diff --git a/src/modules/random.rs b/src/modules/random.rs index 4711a8d..4125be1 100644 --- a/src/modules/random.rs +++ b/src/modules/random.rs @@ -1,21 +1,3 @@ -// This file is part of Locus <https://github.com/gemrest/locus>. -// Copyright (C) 2022-2022 Fuwn <[email protected]> -// -// This program is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, version 3. -// -// 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 -// General Public License for more details. -// -// You should have received a copy of the GNU General Public License -// along with this program. If not, see <http://www.gnu.org/licenses/>. -// -// Copyright (C) 2022-2022 Fuwn <[email protected]> -// SPDX-License-Identifier: GPL-3.0-only - use rand::prelude::SliceRandom; pub fn module(router: &mut windmark::router::Router) { diff --git a/src/modules/remarks.rs b/src/modules/remarks.rs index 312fc27..776ab89 100644 --- a/src/modules/remarks.rs +++ b/src/modules/remarks.rs @@ -1,21 +1,3 @@ -// This file is part of Locus <https://github.com/gemrest/locus>. -// Copyright (C) 2022-2022 Fuwn <[email protected]> -// -// This program is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, version 3. -// -// 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 -// General Public License for more details. -// -// You should have received a copy of the GNU General Public License -// along with this program. If not, see <http://www.gnu.org/licenses/>. -// -// Copyright (C) 2022-2022 Fuwn <[email protected]> -// SPDX-License-Identifier: GPL-3.0-only - use std::sync::LazyLock; use serde::{Deserialize, Serialize}; diff --git a/src/modules/router.rs b/src/modules/router.rs index d269513..b65e31a 100644 --- a/src/modules/router.rs +++ b/src/modules/router.rs @@ -1,23 +1,4 @@ -// This file is part of Locus <https://github.com/gemrest/locus>. -// Copyright (C) 2022-2022 Fuwn <[email protected]> -// -// This program is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, version 3. -// -// 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 -// General Public License for more details. -// -// You should have received a copy of the GNU General Public License -// along with this program. If not, see <http://www.gnu.org/licenses/>. -// -// Copyright (C) 2022-2022 Fuwn <[email protected]> -// SPDX-License-Identifier: GPL-3.0-only - mod module; mod ticker; -// mod translate; pub use module::module; diff --git a/src/modules/router/module.rs b/src/modules/router/module.rs index a9539e4..7ea18f4 100644 --- a/src/modules/router/module.rs +++ b/src/modules/router/module.rs @@ -1,21 +1,3 @@ -// This file is part of Locus <https://github.com/gemrest/locus>. -// Copyright (C) 2022-2022 Fuwn <[email protected]> -// -// This program is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, version 3. -// -// 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 -// General Public License for more details. -// -// You should have received a copy of the GNU General Public License -// along with this program. If not, see <http://www.gnu.org/licenses/>. -// -// Copyright (C) 2022-2022 Fuwn <[email protected]> -// SPDX-License-Identifier: GPL-3.0-only - use { crate::route::{CACHE_RATE, ROUTES}, std::sync::{LazyLock, Mutex}, diff --git a/src/modules/router/ticker.rs b/src/modules/router/ticker.rs index a5384db..38b7499 100644 --- a/src/modules/router/ticker.rs +++ b/src/modules/router/ticker.rs @@ -1,21 +1,3 @@ -// This file is part of Locus <https://github.com/gemrest/locus>. -// Copyright (C) 2022-2022 Fuwn <[email protected]> -// -// This program is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, version 3. -// -// 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 -// General Public License for more details. -// -// You should have received a copy of the GNU General Public License -// along with this program. If not, see <http://www.gnu.org/licenses/>. -// -// Copyright (C) 2022-2022 Fuwn <[email protected]> -// SPDX-License-Identifier: GPL-3.0-only - use crate::DATABASE; pub fn module(context: &windmark::context::HookContext) { diff --git a/src/modules/router/translate.rs b/src/modules/router/translate.rs index 8f24a9b..01d2dc3 100644 --- a/src/modules/router/translate.rs +++ b/src/modules/router/translate.rs @@ -1,21 +1,3 @@ -// This file is part of Locus <https://github.com/gemrest/locus>. -// Copyright (C) 2022-2022 Fuwn <[email protected]> -// -// This program is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, version 3. -// -// 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 -// General Public License for more details. -// -// You should have received a copy of the GNU General Public License -// along with this program. If not, see <http://www.gnu.org/licenses/>. -// -// Copyright (C) 2022-2022 Fuwn <[email protected]> -// SPDX-License-Identifier: GPL-3.0-only - mod deepl; mod module; diff --git a/src/modules/router/translate/deepl.rs b/src/modules/router/translate/deepl.rs index 9398118..950ab89 100644 --- a/src/modules/router/translate/deepl.rs +++ b/src/modules/router/translate/deepl.rs @@ -1,21 +1,3 @@ -// This file is part of Locus <https://github.com/gemrest/locus>. -// Copyright (C) 2022-2022 Fuwn <[email protected]> -// -// This program is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, version 3. -// -// 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 -// General Public License for more details. -// -// You should have received a copy of the GNU General Public License -// along with this program. If not, see <http://www.gnu.org/licenses/>. -// -// Copyright (C) 2022-2022 Fuwn <[email protected]> -// SPDX-License-Identifier: GPL-3.0-only - #[derive(serde::Deserialize)] pub struct DeepL { translations: Vec<Translation>, diff --git a/src/modules/router/translate/module.rs b/src/modules/router/translate/module.rs index aa46956..11169ef 100644 --- a/src/modules/router/translate/module.rs +++ b/src/modules/router/translate/module.rs @@ -1,21 +1,3 @@ -// This file is part of Locus <https://github.com/gemrest/locus>. -// Copyright (C) 2022-2022 Fuwn <[email protected]> -// -// This program is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, version 3. -// -// 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 -// General Public License for more details. -// -// You should have received a copy of the GNU General Public License -// along with this program. If not, see <http://www.gnu.org/licenses/>. -// -// Copyright (C) 2022-2022 Fuwn <[email protected]> -// SPDX-License-Identifier: GPL-3.0-only - use super::deepl::translate; use crate::modules::router::translate::deepl::language_code_to_language_name; diff --git a/src/modules/search.rs b/src/modules/search.rs index fa44382..976f477 100644 --- a/src/modules/search.rs +++ b/src/modules/search.rs @@ -1,21 +1,3 @@ -// This file is part of Locus <https://github.com/gemrest/locus>. -// Copyright (C) 2022-2022 Fuwn <[email protected]> -// -// This program is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, version 3. -// -// 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 -// General Public License for more details. -// -// You should have received a copy of the GNU General Public License -// along with this program. If not, see <http://www.gnu.org/licenses/>. -// -// Copyright (C) 2022-2022 Fuwn <[email protected]> -// SPDX-License-Identifier: GPL-3.0-only - use std::{ fmt::Write, sync::{LazyLock, Mutex}, diff --git a/src/modules/sitemap.rs b/src/modules/sitemap.rs index 6b27e45..0f88ef4 100644 --- a/src/modules/sitemap.rs +++ b/src/modules/sitemap.rs @@ -1,21 +1,3 @@ -// This file is part of Locus <https://github.com/gemrest/locus>. -// Copyright (C) 2022-2022 Fuwn <[email protected]> -// -// This program is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, version 3. -// -// 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 -// General Public License for more details. -// -// You should have received a copy of the GNU General Public License -// along with this program. If not, see <http://www.gnu.org/licenses/>. -// -// Copyright (C) 2022-2022 Fuwn <[email protected]> -// SPDX-License-Identifier: GPL-3.0-only - pub fn module(router: &mut windmark::router::Router) { crate::route::track_mount( router, diff --git a/src/modules/skills.rs b/src/modules/skills.rs index 26c1202..ed530ac 100644 --- a/src/modules/skills.rs +++ b/src/modules/skills.rs @@ -1,21 +1,3 @@ -// This file is part of Locus <https://github.com/gemrest/locus>. -// Copyright (C) 2022-2022 Fuwn <[email protected]> -// -// This program is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, version 3. -// -// 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 -// General Public License for more details. -// -// You should have received a copy of the GNU General Public License -// along with this program. If not, see <http://www.gnu.org/licenses/>. -// -// Copyright (C) 2022-2022 Fuwn <[email protected]> -// SPDX-License-Identifier: GPL-3.0-only - use std::{collections::HashMap, sync::LazyLock}; type SkillTree = HashMap<String, Vec<HashMap<String, Option<Vec<String>>>>>; diff --git a/src/modules/static.rs b/src/modules/static.rs index b4cdcdc..a28c350 100644 --- a/src/modules/static.rs +++ b/src/modules/static.rs @@ -1,21 +1,3 @@ -// This file is part of Locus <https://github.com/gemrest/locus>. -// Copyright (C) 2022-2022 Fuwn <[email protected]> -// -// This program is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, version 3. -// -// 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 -// General Public License for more details. -// -// You should have received a copy of the GNU General Public License -// along with this program. If not, see <http://www.gnu.org/licenses/>. -// -// Copyright (C) 2022-2022 Fuwn <[email protected]> -// SPDX-License-Identifier: GPL-3.0-only - macro_rules! batch_mount { ("pages", $router:ident, $(($path:literal, $description:literal, $file:literal)),* $(,)?) => { $( diff --git a/src/modules/stocks.rs b/src/modules/stocks.rs index 59a482a..0de8a58 100644 --- a/src/modules/stocks.rs +++ b/src/modules/stocks.rs @@ -1,39 +1,9 @@ -// This file is part of Locus <https://github.com/gemrest/locus>. -// Copyright (C) 2022-2022 Fuwn <[email protected]> -// -// This program is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, version 3. -// -// 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 -// General Public License for more details. -// -// You should have received a copy of the GNU General Public License -// along with this program. If not, see <http://www.gnu.org/licenses/>. -// -// Copyright (C) 2022-2022 Fuwn <[email protected]> -// SPDX-License-Identifier: GPL-3.0-only - use { crate::{response::success, route::track_mount}, serde::Deserialize, }; -// static REFERRALS: LazyLock<Vec<Referral>> = LazyLock::new(|| { -// serde_json::from_str(include_str!( -// "../../content/json/stock_market_referrals.json" -// )) -// .unwrap() -// }); - -// #[derive(Deserialize)] -// struct Referral { -// name: String, -// description: String, -// url: String, -// } + #[derive(Deserialize, Debug)] struct Quote { diff --git a/src/modules/uptime.rs b/src/modules/uptime.rs index ebe942f..b4ad732 100644 --- a/src/modules/uptime.rs +++ b/src/modules/uptime.rs @@ -1,21 +1,3 @@ -// This file is part of Locus <https://github.com/gemrest/locus>. -// Copyright (C) 2022-2022 Fuwn <[email protected]> -// -// This program is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, version 3. -// -// 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 -// General Public License for more details. -// -// You should have received a copy of the GNU General Public License -// along with this program. If not, see <http://www.gnu.org/licenses/>. -// -// Copyright (C) 2022-2022 Fuwn <[email protected]> -// SPDX-License-Identifier: GPL-3.0-only - use std::sync::LazyLock; use tokio::time::Instant; diff --git a/src/modules/web.rs b/src/modules/web.rs index 96cd93e..9a5369b 100644 --- a/src/modules/web.rs +++ b/src/modules/web.rs @@ -1,20 +1,3 @@ -// This file is part of Locus <https://github.com/gemrest/locus>. -// -// This program is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by -// the Free Software Foundation, version 3. -// -// 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 -// General Public License for more details. -// -// You should have received a copy of the GNU General Public License -// along with this program. If not, see <http://www.gnu.org/licenses/>. -// -// Copyright (C) 2022-2023 Fuwn <[email protected]> -// SPDX-License-Identifier: GPL-3.0-only - use { crate::{ response::success, |