add: user seller_data

This commit is contained in:
trisua 2025-07-12 18:06:36 -04:00
parent fdaa81422a
commit e4468e4768
14 changed files with 150 additions and 777 deletions

View file

@ -17,11 +17,10 @@ use axum::{
use axum_extra::extract::CookieJar;
use serde::Deserialize;
use tetratto_core::{
DataManager,
model::{Error, auth::User},
};
use crate::{assets::initial_context, get_lang};
use crate::{assets::initial_context, get_lang, InnerState};
pub fn routes() -> Router {
Router::new()
@ -156,7 +155,7 @@ pub fn lw_routes() -> Router {
pub async fn render_error(
e: Error,
jar: &CookieJar,
data: &(DataManager, tera::Tera, reqwest::Client),
data: &InnerState,
user: &Option<User>,
) -> String {
let lang = get_lang!(jar, data.0);