aboutsummaryrefslogtreecommitdiff
path: root/ui/src/lib.rs
diff options
context:
space:
mode:
authormetamuffin <metamuffin@disroot.org>2026-01-23 17:41:45 +0100
committermetamuffin <metamuffin@disroot.org>2026-01-23 17:41:45 +0100
commit774f64c0789529884dd7a5232f190e347ad29532 (patch)
tree6eb85388837c993a054fba5ca59fdd329f5b5840 /ui/src/lib.rs
parent3671a4e07565c86f8071fb2309f463aeaf684ba3 (diff)
downloadjellything-774f64c0789529884dd7a5232f190e347ad29532.tar
jellything-774f64c0789529884dd7a5232f190e347ad29532.tar.bz2
jellything-774f64c0789529884dd7a5232f190e347ad29532.tar.zst
move locale code to own crate
Diffstat (limited to 'ui/src/lib.rs')
-rw-r--r--ui/src/lib.rs13
1 files changed, 5 insertions, 8 deletions
diff --git a/ui/src/lib.rs b/ui/src/lib.rs
index 72109d4..3b04b40 100644
--- a/ui/src/lib.rs
+++ b/ui/src/lib.rs
@@ -5,18 +5,15 @@
*/
mod components;
pub(crate) mod format;
-pub(crate) mod locale;
mod scaffold;
+pub use jellyui_client_scripts::*;
+pub use jellyui_client_style::*;
+
use crate::{components::View, scaffold::Scaffold};
-use jellycommon::{
- jellyobject::{Object, Tag},
- *,
-};
+use jellycommon::{jellyobject::Object, *};
use serde::{Deserialize, Serialize};
-pub type FlashM = Option<(String, String)>;
-
#[rustfmt::skip]
#[derive(Debug, Deserialize, Serialize, Default)]
pub struct Config {
@@ -27,7 +24,7 @@ pub struct Config {
pub struct RenderInfo<'a> {
pub user: Option<Object<'a>>,
- pub lang: Tag,
+ pub lang: &'a str,
pub status_message: Option<&'a str>,
pub config: &'a Config,
}