add: user requests in js app sdk
This commit is contained in:
parent
884a89904e
commit
0138bf4cd4
52 changed files with 282 additions and 53 deletions
|
@ -4,7 +4,7 @@ use axum::{
|
|||
response::{Html, IntoResponse},
|
||||
Extension,
|
||||
};
|
||||
use axum_extra::extract::CookieJar;
|
||||
use crate::cookie::CookieJar;
|
||||
use tetratto_core::model::{Error, auth::ConnectionService};
|
||||
|
||||
use super::render_error;
|
||||
|
|
|
@ -5,7 +5,7 @@ use axum::{
|
|||
response::{Html, IntoResponse, Redirect},
|
||||
Extension, Json,
|
||||
};
|
||||
use axum_extra::extract::CookieJar;
|
||||
use crate::cookie::CookieJar;
|
||||
use tetratto_core::model::{
|
||||
channels::Message, communities_permissions::CommunityPermission, permissions::FinePermission,
|
||||
Error,
|
||||
|
|
|
@ -10,7 +10,7 @@ use axum::{
|
|||
response::{Html, IntoResponse},
|
||||
Extension,
|
||||
};
|
||||
use axum_extra::extract::CookieJar;
|
||||
use crate::cookie::CookieJar;
|
||||
use serde::Deserialize;
|
||||
use tera::Context;
|
||||
use tetratto_core::model::{
|
||||
|
|
|
@ -5,7 +5,7 @@ use axum::{
|
|||
extract::Path,
|
||||
Extension,
|
||||
};
|
||||
use axum_extra::extract::CookieJar;
|
||||
use crate::cookie::CookieJar;
|
||||
use tetratto_core::model::{apps::AppData, permissions::FinePermission, Error};
|
||||
|
||||
/// `/developer`
|
||||
|
|
|
@ -8,7 +8,7 @@ use axum::{
|
|||
response::{Html, IntoResponse},
|
||||
Extension,
|
||||
};
|
||||
use axum_extra::extract::CookieJar;
|
||||
use crate::cookie::CookieJar;
|
||||
use tetratto_core::model::{communities::Community, Error};
|
||||
|
||||
/// `/forges`
|
||||
|
|
|
@ -3,7 +3,7 @@ use axum::{
|
|||
response::{Html, IntoResponse, Redirect},
|
||||
Extension,
|
||||
};
|
||||
use axum_extra::extract::CookieJar;
|
||||
use crate::cookie::CookieJar;
|
||||
use crate::{
|
||||
assets::initial_context,
|
||||
check_user_blocked_or_private, get_lang, get_user_from_token,
|
||||
|
|
|
@ -8,7 +8,7 @@ use axum::{
|
|||
extract::{Query, Path},
|
||||
Extension,
|
||||
};
|
||||
use axum_extra::extract::CookieJar;
|
||||
use crate::cookie::CookieJar;
|
||||
use tetratto_core::model::{littleweb::TLDS_VEC, permissions::SecondaryPermission, Error};
|
||||
use serde::Deserialize;
|
||||
use tetratto_shared::hash::salt;
|
||||
|
|
|
@ -7,7 +7,7 @@ use axum::{
|
|||
response::{Html, IntoResponse},
|
||||
Extension,
|
||||
};
|
||||
use axum_extra::extract::CookieJar;
|
||||
use crate::cookie::CookieJar;
|
||||
use tetratto_core::model::Error;
|
||||
|
||||
/// `/settings/seller`
|
||||
|
|
|
@ -7,7 +7,7 @@ use axum::{
|
|||
response::{Html, IntoResponse},
|
||||
Extension,
|
||||
};
|
||||
use axum_extra::extract::CookieJar;
|
||||
use crate::cookie::CookieJar;
|
||||
use serde::Deserialize;
|
||||
use tetratto_core::model::{
|
||||
auth::{AchievementName, DefaultTimelineChoice, ACHIEVEMENTS},
|
||||
|
|
|
@ -15,7 +15,7 @@ use axum::{
|
|||
routing::{get, post},
|
||||
Router,
|
||||
};
|
||||
use axum_extra::extract::CookieJar;
|
||||
use crate::cookie::CookieJar;
|
||||
use serde::Deserialize;
|
||||
use tetratto_core::{
|
||||
model::{Error, auth::User},
|
||||
|
|
|
@ -5,7 +5,7 @@ use axum::{
|
|||
response::{Html, IntoResponse},
|
||||
Extension,
|
||||
};
|
||||
use axum_extra::extract::CookieJar;
|
||||
use crate::cookie::CookieJar;
|
||||
use serde::Deserialize;
|
||||
use tetratto_core::{
|
||||
cache::Cache,
|
||||
|
|
|
@ -8,7 +8,7 @@ use axum::{
|
|||
extract::{Path, Query},
|
||||
response::{Html, IntoResponse},
|
||||
};
|
||||
use axum_extra::extract::CookieJar;
|
||||
use crate::cookie::CookieJar;
|
||||
use serde::Deserialize;
|
||||
use tera::Context;
|
||||
use tetratto_core::model::{
|
||||
|
|
|
@ -3,7 +3,7 @@ use axum::{
|
|||
response::{Html, IntoResponse},
|
||||
Extension,
|
||||
};
|
||||
use axum_extra::extract::CookieJar;
|
||||
use crate::cookie::CookieJar;
|
||||
use tetratto_core::model::{
|
||||
auth::User,
|
||||
permissions::FinePermission,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue