Display grid placeholder when loading gallery example
This commit is contained in:
parent
ae35992048
commit
cd445f758f
2 changed files with 23 additions and 6 deletions
|
|
@ -13,6 +13,8 @@ pub struct Image {
|
|||
}
|
||||
|
||||
impl Image {
|
||||
pub const LIMIT: usize = 99;
|
||||
|
||||
pub async fn list() -> Result<Vec<Self>, Error> {
|
||||
let client = reqwest::Client::new();
|
||||
|
||||
|
|
@ -27,7 +29,7 @@ impl Image {
|
|||
("sort", "Most Reactions"),
|
||||
("period", "Week"),
|
||||
("nsfw", "None"),
|
||||
("limit", "99"),
|
||||
("limit", &Image::LIMIT.to_string()),
|
||||
])
|
||||
.send()
|
||||
.await?
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue