An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:art: 数据快照密钥初始化 Fix https://github.com/siyuan-note/siyuan/issues/5173
Liang Ding4b4b423be9ce
diff --git a/app/appearance/langs/en_US.json b/app/appearance/langs/en_US.jsonindex 5454bf2e6b..7b5f7f7b19 100644--- a/app/appearance/langs/en_US.json+++ b/app/appearance/langs/en_US.json@@ -1,4 +1,9 @@{+ "copyKey": "Copy key string",+ "importKey": "Import key",+ "keyPlaceholder": "Please paste the key string here",+ "key": "Key",+ "genKey": "Generate key","dataRepoKeyTip": "The data repo is used to encrypt and save data snapshots. Snapshots can be created and rolled back in the data history","dataRepoKeyTip2": "After the key is initialized on the main device, other devices need to import the key. If the device keys are inconsistent, data snapshots cannot be synced to the cloud, so be sure to use the same key on all devices","dataRepoKey": "Data repo key",diff --git a/app/appearance/langs/fr_FR.json b/app/appearance/langs/fr_FR.jsonindex e59297f8ea..fdfbdf3b50 100644--- a/app/appearance/langs/fr_FR.json+++ b/app/appearance/langs/fr_FR.json@@ -1,4 +1,9 @@{+ "copyKey": "Copier la chaîne de clé",+ "importKey": "Importer la clé",+ "keyPlaceholder": "Veuillez coller la chaîne de clé ici",+ "clé": "Clé",+ "genKey": "Générer la clé","dataRepoKeyTip1": "Le référentiel de données est utilisé pour chiffrer et enregistrer des instantanés de données. Des instantanés peuvent être créés et restaurés dans l'historique des données","dataRepoKeyTip2": "Une fois la clé initialisée sur l'appareil principal, d'autres appareils doivent importer la clé. Si les clés de l'appareil sont incohérentes, les instantanés de données ne peuvent pas être synchronisés avec le cloud, alors assurez-vous d'utiliser la même clé sur tous les appareils","dataRepoKey": "Clé de référentiel de données",diff --git a/app/appearance/langs/zh_CHT.json b/app/appearance/langs/zh_CHT.jsonindex b9542a87e7..5eac45a396 100644--- a/app/appearance/langs/zh_CHT.json+++ b/app/appearance/langs/zh_CHT.json@@ -1,4 +1,9 @@{+ "copyKey": "複製密鑰字符串",+ "importKey": "導入密鑰",+ "keyPlaceholder": "請在此處粘貼密鑰字符串",+ "key": "密鑰",+ "genKey": "生成密鑰","dataRepoKeyTip1": "數據倉庫用於加密保存數據快照,可在數據歷史中可創建快照和回滾快照","dataRepoKeyTip2": "主力設備上初始化密鑰以後,其他設備需要導入該密鑰。如果設備密鑰不一致,則無法雲端同步數據快照,所以請務必在所有設備上使用相同的密鑰","dataRepoKey": "數據倉庫密鑰",diff --git a/app/appearance/langs/zh_CN.json b/app/appearance/langs/zh_CN.jsonindex 77288d2520..c2ef18b44d 100644--- a/app/appearance/langs/zh_CN.json+++ b/app/appearance/langs/zh_CN.json@@ -1,4 +1,9 @@{+ "copyKey": "复制密钥字符串",+ "importKey": "导入密钥",+ "keyPlaceholder": "请在此处粘贴密钥字符串",+ "key": "密钥",+ "genKey": "生成密钥","dataRepoKeyTip1": "数据仓库用于加密保存数据快照,可在数据历史中可创建快照和回滚快照","dataRepoKeyTip2": "主力设备上初始化密钥以后,其他设备需要导入该密钥。如果设备密钥不一致,则无法云端同步数据快照,所以请务必在所有设备上使用相同的密钥","dataRepoKey": "数据仓库密钥",diff --git a/app/src/config/about.ts b/app/src/config/about.tsindex c6110129b9..7fc3ddc293 100644--- a/app/src/config/about.ts+++ b/app/src/config/about.ts@@ -92,13 +92,13 @@ export const about = {<div class="fn__space"></div><div class="fn__size200 fn__flex-center"><button style="margin-bottom: 8px" class="b3-button b3-button--outline fn__size200${window.siyuan.config.repo.key ? " fn__none" : ""}" id="initKey">- <svg><use xlink:href="#iconLock"></use></svg>${window.siyuan.languages.defaultPassword}+ <svg><use xlink:href="#iconLock"></use></svg>${window.siyuan.languages.genKey}</button><button class="b3-button b3-button--outline fn__size200${window.siyuan.config.repo.key ? " fn__none" : ""}" id="importKey">- <svg><use xlink:href="#iconDownload"></use></svg>${window.siyuan.languages.import}+ <svg><use xlink:href="#iconDownload"></use></svg>${window.siyuan.languages.importKey}</button><button class="b3-button b3-button--outline fn__size200${window.siyuan.config.repo.key ? "" : " fn__none"}" id="copyKey">- <svg><use xlink:href="#iconCopy"></use></svg>${window.siyuan.languages.copy}+ <svg><use xlink:href="#iconCopy"></use></svg>${window.siyuan.languages.copyKey}</button></div></div>@@ -206,9 +206,9 @@ export const about = {const importKeyElement = about.element.querySelector("#importKey")importKeyElement.addEventListener("click", () => {const passwordDialog = new Dialog({- title: window.siyuan.languages.password,+ title: window.siyuan.languages.key,content: `<div class="b3-dialog__content">- <textarea class="b3-text-field fn__block"></textarea>+ <textarea class="b3-text-field fn__block" placeholder="${window.siyuan.languages.keyPlaceholder}"></textarea></div><div class="b3-dialog__action"><button class="b3-button b3-button--cancel">${window.siyuan.languages.cancel}</button><div class="fn__space"></div>