mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-03-03 03:10:16 +01:00
🎨 Supports cleaning temporary files https://github.com/siyuan-note/siyuan/issues/16745
Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
parent
f8e49f4e13
commit
941e153a4b
21 changed files with 176 additions and 16 deletions
|
|
@ -120,6 +120,14 @@ export const initAbout = () => {
|
|||
</button>
|
||||
<div class="b3-label__text">${window.siyuan.languages.rebuildDataIndexTip}</div>
|
||||
</div>
|
||||
<div class="b3-label">
|
||||
${window.siyuan.languages.clearTempFiles}
|
||||
<div class="fn__hr"></div>
|
||||
<button class="b3-button b3-button--outline fn__block" id="clearTempFiles">
|
||||
<svg><use xlink:href="#iconTrashcan"></use></svg>${window.siyuan.languages.clearTempFiles}
|
||||
</button>
|
||||
<div class="b3-label__text">${window.siyuan.languages.clearTempFilesTip}</div>
|
||||
</div>
|
||||
<div class="b3-label">
|
||||
${window.siyuan.languages.systemLog}
|
||||
<div class="fn__hr"></div>
|
||||
|
|
@ -319,6 +327,11 @@ export const initAbout = () => {
|
|||
event.preventDefault();
|
||||
event.stopPropagation();
|
||||
break;
|
||||
} else if (target.id === "clearTempFiles") {
|
||||
fetchPost("/api/system/clearTempFiles", {}, () => {});
|
||||
event.preventDefault();
|
||||
event.stopPropagation();
|
||||
break;
|
||||
} else if (target.id === "exportLog") {
|
||||
fetchPost("/api/system/exportLog", {}, (response) => {
|
||||
openByMobile(response.data.zip);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue