add: slightly more advanced theming

add: profile "before you view" warning
This commit is contained in:
trisua 2025-04-11 18:08:51 -04:00
parent 52ac144953
commit 2ec7e54a8e
20 changed files with 790 additions and 153 deletions
crates/app/src/routes/pages

View file

@ -46,6 +46,10 @@ pub fn routes() -> Router {
// communities
.route("/communities", get(communities::list_request))
.route("/communities/search", get(communities::search_request))
.route(
"/communities/intents/post",
get(communities::create_post_request),
)
.route("/community/{title}", get(communities::feed_request))
.route(
"/community/{title}/manage",
@ -76,6 +80,14 @@ pub struct PaginatedQuery {
pub page: usize,
}
#[derive(Deserialize)]
pub struct ProfileQuery {
#[serde(default)]
pub page: usize,
#[serde(default)]
pub warning: bool,
}
#[derive(Deserialize)]
pub struct SearchedQuery {
#[serde(default)]