mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-03-08 05:32:33 +01:00
🎨 Alert users when .sy file or database .json exceed 8MB https://github.com/siyuan-note/siyuan/issues/15451
This commit is contained in:
parent
f3cc641005
commit
eb13c34fe5
22 changed files with 98 additions and 15 deletions
|
|
@ -30,6 +30,12 @@ export const initFileTree = () => {
|
|||
<span class="fn__space"></span>
|
||||
<input class="b3-switch fn__flex-center" id="useSingleLineSave" type="checkbox"${window.siyuan.config.fileTree.useSingleLineSave ? " checked" : ""}/>
|
||||
</label>
|
||||
<div class="b3-label">
|
||||
${window.siyuan.languages.fileTree22}
|
||||
<span class="fn__hr"></span>
|
||||
<input class="b3-text-field fn__block" id="largeFileWarningSize" type="number" min="2" max="10240" value="${window.siyuan.config.fileTree.largeFileWarningSize}">
|
||||
<div class="b3-label__text">${window.siyuan.languages.fileTree23}</div>
|
||||
</div>
|
||||
<div class="b3-label">
|
||||
${window.siyuan.languages.fileTree16}
|
||||
<span class="fn__hr"></span>
|
||||
|
|
@ -69,6 +75,7 @@ export const initFileTree = () => {
|
|||
allowCreateDeeper: (modelMainElement.querySelector("#allowCreateDeeper") as HTMLInputElement).checked,
|
||||
removeDocWithoutConfirm: (modelMainElement.querySelector("#removeDocWithoutConfirm") as HTMLInputElement).checked,
|
||||
useSingleLineSave: (modelMainElement.querySelector("#useSingleLineSave") as HTMLInputElement).checked,
|
||||
largeFileWarningSize: parseInt((modelMainElement.querySelector("#largeFileWarningSize") as HTMLInputElement).value),
|
||||
maxListCount: parseInt((modelMainElement.querySelector("#maxListCount") as HTMLInputElement).value),
|
||||
maxOpenTabCount: window.siyuan.config.fileTree.maxOpenTabCount,
|
||||
}, response => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue