This commit is contained in:
Daniel 2025-03-25 23:57:12 +08:00
parent 69642e3bac
commit 3ebfdf6c5b
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
21 changed files with 77 additions and 72 deletions

View file

@ -11,6 +11,7 @@ import {addClearButton} from "../util/addClearButton";
import {isPaidUser} from "../util/needSubscribe";
import {showMessage} from "../dialog/message";
import {saveAssetKeyList} from "./toggleHistory";
import {getCloudURL} from "../config/util/about";
export const openSearchAsset = (element: HTMLElement, isStick: boolean) => {
/// #if !MOBILE
@ -170,7 +171,7 @@ export const assetInputEvent = (element: Element, localSearch?: ISearchAssetOpti
element.querySelector(".search__drag")?.classList.add("fn__none");
element.querySelector("#searchAssetPreview").classList.add("fn__none");
element.querySelector("#searchAssetList").innerHTML = `<div class="search__empty">
${window.siyuan.languages["_kernel"][214]}
${window.siyuan.languages["_kernel"][214].replaceAll("${accountServer}", getCloudURL(""))}
</div>`;
return;
}
@ -450,7 +451,7 @@ export const assetMoreMenu = (target: Element, element: Element, cb: () => void)
label: window.siyuan.languages.rebuildIndex,
click() {
if (!isPaidUser()) {
showMessage(window.siyuan.languages["_kernel"][214]);
showMessage(window.siyuan.languages["_kernel"][214].replaceAll("${accountServer}", getCloudURL("")));
return;
}
element.parentElement.querySelector(".fn__loading--top").classList.remove("fn__none");