feat: ui styling, minification

This commit is contained in:
Per Stark
2025-01-21 11:56:20 +01:00
parent e1cf17ac86
commit 296dde9ee7
12 changed files with 87 additions and 3508 deletions

View File

@@ -171,7 +171,6 @@ fn html_routes(
.route("/", get(index_handler))
.route("/gdpr/accept", post(accept_gdpr))
.route("/gdpr/deny", post(deny_gdpr))
.route("/privacy-policy", get(show_privacy_policy))
.route("/search", get(search_result_handler))
.route("/signout", get(sign_out_user))
.route("/signin", get(show_signin_form).post(authenticate_user))
@@ -189,6 +188,7 @@ fn html_routes(
get(show_signup_form).post(process_signup_and_show_verification),
)
.route("/documentation", get(show_documentation_index))
.route("/documentation/privacy-policy", get(show_privacy_policy))
.nest_service("/assets", ServeDir::new("assets/"))
.layer(
AuthSessionLayer::<User, String, SessionSurrealPool<Any>, Surreal<Any>>::new(Some(

View File

@@ -10,7 +10,7 @@ use crate::{
storage::types::user::User,
};
page_data!(PrivacyPolicyData, "privacy_policy.html", {
page_data!(PrivacyPolicyData, "documentation/privacy.html", {
user: Option<User>
});