add: products ui
This commit is contained in:
parent
8f76578f1b
commit
fd529d3847
31 changed files with 1041 additions and 49 deletions
|
@ -350,6 +350,12 @@ pub struct UserSettings {
|
|||
/// The signature automatically attached to new forum posts.
|
||||
#[serde(default)]
|
||||
pub forum_signature: String,
|
||||
/// If coin transfer requests are disabled.
|
||||
#[serde(default)]
|
||||
pub no_transfers: bool,
|
||||
/// If your profile has the "Shop" tab enabled.
|
||||
#[serde(default)]
|
||||
pub enable_shop: bool,
|
||||
}
|
||||
|
||||
fn mime_avif() -> String {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
use serde::{Serialize, Deserialize};
|
||||
use tetratto_shared::{snow::Snowflake, unix_epoch_timestamp};
|
||||
|
||||
#[derive(Serialize, Deserialize, PartialEq, Eq)]
|
||||
#[derive(Debug, Serialize, Deserialize, PartialEq, Eq)]
|
||||
pub enum ActionData {
|
||||
String(String),
|
||||
Int32(i32),
|
||||
|
@ -46,7 +46,7 @@ impl Default for ActionData {
|
|||
}
|
||||
}
|
||||
|
||||
#[derive(Serialize, Deserialize, PartialEq, Eq)]
|
||||
#[derive(Debug, Serialize, Deserialize, PartialEq, Eq)]
|
||||
pub enum ActionType {
|
||||
/// A request to join a community.
|
||||
///
|
||||
|
@ -66,7 +66,7 @@ pub enum ActionType {
|
|||
Transfer,
|
||||
}
|
||||
|
||||
#[derive(Serialize, Deserialize)]
|
||||
#[derive(Debug, Serialize, Deserialize)]
|
||||
pub struct ActionRequest {
|
||||
pub id: usize,
|
||||
pub created: usize,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue