From 40764c5e026a99ad9e92dd7c10aa80e4237ec1fe Mon Sep 17 00:00:00 2001 From: Vanessa Date: Fri, 3 Nov 2023 11:10:56 +0800 Subject: [PATCH] :art: https://github.com/siyuan-note/siyuan/issues/9577 --- app/src/config/bazaar.ts | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/app/src/config/bazaar.ts b/app/src/config/bazaar.ts index 1d9f9ce84..f6ca268b4 100644 --- a/app/src/config/bazaar.ts +++ b/app/src/config/bazaar.ts @@ -94,6 +94,12 @@ export const bazaar = {
+
+
+ + +
+
@@ -127,6 +133,7 @@ export const bazaar = { +
@@ -154,6 +161,7 @@ export const bazaar = { +
@@ -181,6 +189,7 @@ export const bazaar = { +
@@ -208,6 +217,7 @@ export const bazaar = { +
@@ -235,6 +245,7 @@ export const bazaar = { +
@@ -326,7 +337,8 @@ export const bazaar = { url = "/api/bazaar/getInstalledPlugin"; } fetchPost(url, { - frontend: getFrontend() + frontend: getFrontend(), + keyword: (contentElement.previousElementSibling.querySelector(".b3-text-field") as HTMLInputElement)?.value || "", }, response => { contentElement.removeAttribute("data-loading"); let html = ""; @@ -928,6 +940,9 @@ export const bazaar = { bazaar._onBazaar(response, "plugins", false); bazaar._data.plugins = response.data.packages; }); + } else if (type === "downloaded") { + const bazaarType = inputElement.parentElement.parentElement.querySelector(".b3-button:not(.b3-button--outline)").getAttribute("data-type").replace("my", "").toLowerCase() + "s" as TBazaarType + this._genMyHTML(bazaarType, app); } event.preventDefault(); return;