mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-12-23 03:11:32 +00:00
fix ts bindings
This commit is contained in:
parent
60ba7af2a1
commit
7c771d2113
3 changed files with 10 additions and 2 deletions
|
@ -67,6 +67,10 @@
|
||||||
# Maximum size for user avatar, community icon and site icon.
|
# Maximum size for user avatar, community icon and site icon.
|
||||||
max_avatar_size: 512
|
max_avatar_size: 512
|
||||||
# Maximum size for user, community and site banner.
|
# Maximum size for user, community and site banner.
|
||||||
|
#
|
||||||
|
# TODO: Unfortunately pictrs can only resize images to fit in a*a square, no rectangle.
|
||||||
|
# Otherwise we have to use crop, or use max_width/max_height which throws error
|
||||||
|
# if image is larger.
|
||||||
max_banner_size: 512
|
max_banner_size: 512
|
||||||
}
|
}
|
||||||
# Email sending configuration. All options except login/password are mandatory
|
# Email sending configuration. All options except login/password are mandatory
|
||||||
|
|
|
@ -9,7 +9,9 @@ use url::Url;
|
||||||
#[cfg_attr(feature = "full", derive(TS))]
|
#[cfg_attr(feature = "full", derive(TS))]
|
||||||
#[cfg_attr(feature = "full", ts(export))]
|
#[cfg_attr(feature = "full", ts(export))]
|
||||||
pub struct ImageGetParams {
|
pub struct ImageGetParams {
|
||||||
|
#[cfg_attr(feature = "full", ts(optional))]
|
||||||
pub file_type: Option<String>,
|
pub file_type: Option<String>,
|
||||||
|
#[cfg_attr(feature = "full", ts(optional))]
|
||||||
pub max_size: Option<i32>,
|
pub max_size: Option<i32>,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -27,7 +29,9 @@ pub struct DeleteImageParams {
|
||||||
#[cfg_attr(feature = "full", ts(export))]
|
#[cfg_attr(feature = "full", ts(export))]
|
||||||
pub struct ImageProxyParams {
|
pub struct ImageProxyParams {
|
||||||
pub url: String,
|
pub url: String,
|
||||||
|
#[cfg_attr(feature = "full", ts(optional))]
|
||||||
pub file_type: Option<String>,
|
pub file_type: Option<String>,
|
||||||
|
#[cfg_attr(feature = "full", ts(optional))]
|
||||||
pub max_size: Option<i32>,
|
pub max_size: Option<i32>,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue