diff options
author | metamuffin <metamuffin@disroot.org> | 2025-04-28 00:48:52 +0200 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2025-04-28 00:48:52 +0200 |
commit | 80d28b764c95891551e28c395783f5ff9d065743 (patch) | |
tree | f25898b1c939a939c63236ca4e8e843e81069947 /server/src/ui/admin/mod.rs | |
parent | 335ba978dbaf203f3603a815147fd75dbf205723 (diff) | |
download | jellything-80d28b764c95891551e28c395783f5ff9d065743.tar jellything-80d28b764c95891551e28c395783f5ff9d065743.tar.bz2 jellything-80d28b764c95891551e28c395783f5ff9d065743.tar.zst |
start with splitting server
Diffstat (limited to 'server/src/ui/admin/mod.rs')
-rw-r--r-- | server/src/ui/admin/mod.rs | 18 |
1 files changed, 5 insertions, 13 deletions
diff --git a/server/src/ui/admin/mod.rs b/server/src/ui/admin/mod.rs index de06610..d380ae2 100644 --- a/server/src/ui/admin/mod.rs +++ b/server/src/ui/admin/mod.rs @@ -6,26 +6,18 @@ pub mod log; pub mod user; -use super::assets::{resolve_asset, AVIF_QUALITY, AVIF_SPEED}; -use crate::{ - database::Database, - logic::session::AdminSession, - ui::{ - admin::log::rocket_uri_macro_r_admin_log, - error::MyResult, - layout::{DynLayoutPage, FlashDisplay, LayoutPage}, - }, - uri, +use super::{ + assets::{resolve_asset, AVIF_QUALITY, AVIF_SPEED}, + error::MyResult, }; +use crate::{database::Database, logic::session::AdminSession}; use anyhow::{anyhow, Context}; use jellybase::{assetfed::AssetInner, federation::Federation, CONF}; -use jellyimport::{import_wrap, is_importing, IMPORT_ERRORS}; -use markup::DynRender; +use jellyimport::{import_wrap, IMPORT_ERRORS}; use rand::Rng; use rocket::{form::Form, get, post, FromForm, State}; use std::time::Instant; use tokio::{sync::Semaphore, task::spawn_blocking}; -use user::rocket_uri_macro_r_admin_users; #[get("/admin/dashboard")] pub async fn r_admin_dashboard( |