mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-19 08:00:13 +01:00
🚨
This commit is contained in:
parent
bd39662215
commit
cb4cadd2bd
3 changed files with 3 additions and 3 deletions
|
|
@ -941,7 +941,7 @@ export const bazaar = {
|
||||||
bazaar._data.plugins = response.data.packages;
|
bazaar._data.plugins = response.data.packages;
|
||||||
});
|
});
|
||||||
} else if (type === "downloaded") {
|
} 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
|
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);
|
this._genMyHTML(bazaarType, app);
|
||||||
}
|
}
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
|
|
|
||||||
|
|
@ -169,7 +169,7 @@ const bindProviderEvent = () => {
|
||||||
importElement.addEventListener("change", () => {
|
importElement.addEventListener("change", () => {
|
||||||
const formData = new FormData();
|
const formData = new FormData();
|
||||||
formData.append("file", importElement.files[0]);
|
formData.append("file", importElement.files[0]);
|
||||||
const isS3 = importElement.getAttribute("data-type") === "s3"
|
const isS3 = importElement.getAttribute("data-type") === "s3";
|
||||||
fetchPost(isS3 ? "/api/sync/importSyncProviderS3" : "/api/sync/importSyncProviderWebDAV", formData, (response) => {
|
fetchPost(isS3 ? "/api/sync/importSyncProviderS3" : "/api/sync/importSyncProviderWebDAV", formData, (response) => {
|
||||||
if (isS3) {
|
if (isS3) {
|
||||||
window.siyuan.config.sync.s3 = response.data.s3;
|
window.siyuan.config.sync.s3 = response.data.s3;
|
||||||
|
|
|
||||||
|
|
@ -1380,7 +1380,7 @@ const genImageWidthMenu = (label: string, assetElement: HTMLElement, imgElement:
|
||||||
click() {
|
click() {
|
||||||
nodeElement.setAttribute("updated", dayjs().format("YYYYMMDDHHmmss"));
|
nodeElement.setAttribute("updated", dayjs().format("YYYYMMDDHHmmss"));
|
||||||
if (label === window.siyuan.languages.default) {
|
if (label === window.siyuan.languages.default) {
|
||||||
const isCenter = assetElement.style.display === "block"
|
const isCenter = assetElement.style.display === "block";
|
||||||
assetElement.removeAttribute("style");
|
assetElement.removeAttribute("style");
|
||||||
imgElement.removeAttribute("style");
|
imgElement.removeAttribute("style");
|
||||||
if (isCenter) {
|
if (isCenter) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue