feat: implement sort in plugin market

This commit is contained in:
Junyan Qin
2025-05-09 17:13:06 +08:00
parent 29f3cb9d5c
commit 6935ac33ac
3 changed files with 232 additions and 33 deletions
+4 -2
View File
@@ -360,13 +360,15 @@ class HttpClient {
page: number,
page_size: number,
query: string,
sort_by: string = 'stars',
sort_order: string = 'DESC',
): Promise<MarketPluginResponse> {
return this.post(`/api/v1/market/plugins`, {
page,
page_size,
query,
sort_by: 'stars',
sort_order: 'DESC',
sort_by,
sort_order,
});
}
public installPluginFromGithub(