mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-10 09:14:20 +01:00
This commit is contained in:
parent
79ab5962e0
commit
da29ce2dcf
3 changed files with 6 additions and 1 deletions
|
|
@ -403,8 +403,10 @@ export const repos = {
|
|||
item.addEventListener("change", (event: InputEvent & { target: HTMLInputElement }) => {
|
||||
const formData = new FormData();
|
||||
formData.append("file", event.target.files[0]);
|
||||
fetchPost(item.getAttribute("data-type") === "s3" ? "/api/sync/importSyncProviderS3" : "/api/sync/importSyncProviderWebDAV", formData, () => {
|
||||
fetchPost(item.getAttribute("data-type") === "s3" ? "/api/sync/importSyncProviderS3" : "/api/sync/importSyncProviderWebDAV", formData, (response) => {
|
||||
window.siyuan.config.sync.s3 = response.data.s3;
|
||||
renderProvider(window.siyuan.config.sync.provider);
|
||||
showMessage(window.siyuan.languages.imported);
|
||||
});
|
||||
});
|
||||
});
|
||||
|
|
@ -454,6 +456,7 @@ export const repos = {
|
|||
} else if (action === "exportData") {
|
||||
fetchPost(target.getAttribute("data-type") === "s3" ? "/api/sync/exportSyncProviderS3" : "/api/sync/exportSyncProviderWebDAV", {}, response => {
|
||||
window.location.href = response.data.zip;
|
||||
showMessage(window.siyuan.languages.exported);
|
||||
});
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -80,6 +80,7 @@ export const renderAVAttribute = (element: HTMLElement, id: string, protyle?: IP
|
|||
},
|
||||
values: { keyID: string, id: string, blockID: string, type?: TAVCol & IAVCellValue } []
|
||||
}[],
|
||||
blockIDs: string[],
|
||||
avID: string
|
||||
avName: string
|
||||
}) => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue