diff options
Diffstat (limited to 'ui/src/lib.rs')
-rw-r--r-- | ui/src/lib.rs | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/ui/src/lib.rs b/ui/src/lib.rs index 4f1901a..cbfc298 100644 --- a/ui/src/lib.rs +++ b/ui/src/lib.rs @@ -3,9 +3,12 @@ which is licensed under the GNU Affero General Public License (version 3); see /COPYING. Copyright (C) 2025 metamuffin <metamuffin.org> */ +pub mod account; +pub mod admin; pub mod filter_sort; pub mod format; pub mod home; +pub mod items; pub mod locale; pub mod node_card; pub mod node_page; @@ -13,9 +16,6 @@ pub mod props; pub mod scaffold; pub mod search; pub mod stats; -pub mod items; -pub mod admin; -pub mod account; use locale::Language; use markup::DynRender; @@ -41,7 +41,14 @@ static CONF: LazyLock<Config> = LazyLock::new(|| { .take() .expect("cache config not preloaded. logic error") }); -static CONF_PRELOAD: Mutex<Option<Config>> = Mutex::new(None); +pub static CONF_PRELOAD: Mutex<Option<Config>> = Mutex::new(None); + +pub fn get_brand() -> String { + CONF.brand.clone() +} +pub fn get_slogan() -> String { + CONF.slogan.clone() +} /// render as supertrait would be possible but is not /// dyn compatible and I really dont want to expose generics |