mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-20 08:30:12 +01:00
This commit is contained in:
parent
bbe42972db
commit
08f10499de
2 changed files with 10 additions and 6 deletions
|
|
@ -1,4 +1,9 @@
|
|||
{
|
||||
"syncConfGuide1": "初始化密钥",
|
||||
"syncConfGuide2": "该密钥用于数据同步端到端加密<br>此处通过你输入的密码来生成密钥,请务必牢记该密码",
|
||||
"syncConfGuide3": "云端同步目录用于存放当前工作空间对应的加密数据,默认名称为 main。如果你只有一个工作空间需要同步,直接使用 main 即可",
|
||||
"syncConfGuide4": "立即同步?",
|
||||
"syncConfGuide5": "如果数据量较大,第一次同步会比较慢,请耐心等待;iOS/iPad 端在同步时请勿切换应用并保持亮屏",
|
||||
"copyPlainText": "复制纯文本",
|
||||
"findInDoc": "${x} 个文档中匹配 ${y} 项",
|
||||
"jumpToParentNext": "跳转到上一层级的下一个块",
|
||||
|
|
|
|||
|
|
@ -160,7 +160,7 @@ const setSync = (key?: string, dialog?: Dialog) => {
|
|||
if (dialog) {
|
||||
dialog.destroy();
|
||||
}
|
||||
confirmDialog(window.siyuan.languages.sync, window.siyuan.languages.syncNow, () => {
|
||||
confirmDialog(window.siyuan.languages.syncConfGuide4, window.siyuan.languages.syncConfGuide5, () => {
|
||||
fetchPost("/api/sync/performSync", {});
|
||||
});
|
||||
}
|
||||
|
|
@ -168,18 +168,17 @@ const setSync = (key?: string, dialog?: Dialog) => {
|
|||
|
||||
const setKey = () => {
|
||||
const dialog = new Dialog({
|
||||
title: window.siyuan.languages.dataRepoKey,
|
||||
title: window.siyuan.languages.syncConfGuide1,
|
||||
content: `<div class="b3-dialog__content ft__center">
|
||||
<img style="height: 80px" src="/stage/images/sync-guide.svg"/>
|
||||
<img style="height: 120px" src="/stage/images/sync-guide.svg"/>
|
||||
<div class="fn__hr--b"></div>
|
||||
<div class="ft__on-surface">${window.siyuan.languages.syncConfGuide2}</div>
|
||||
<div class="fn__hr--b"></div>
|
||||
<input class="b3-text-field fn__size200 ft__center" placeholder="${window.siyuan.languages.password}">
|
||||
<div class="fn__hr"></div>
|
||||
<button class="b3-button fn__size200" id="initKeyByPW">
|
||||
<svg><use xlink:href="#iconHand"></use></svg>${window.siyuan.languages.genKeyByPW}
|
||||
</button>
|
||||
<div class="fn__hr--b"></div>
|
||||
<div class="ft__on-surface">${window.siyuan.languages.dataRepoKeyTip1}</div>
|
||||
<div class="ft__error">${window.siyuan.languages.dataRepoKeyTip2}</div>
|
||||
</div>
|
||||
<div class="b3-dialog__action">
|
||||
<button class="b3-button b3-button--cancel">${window.siyuan.languages.cancel}</button>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue