Skip to content

Commit

Permalink
✨ 数据同步支持接入第三方云端存储 #6446 #6426
Browse files Browse the repository at this point in the history
  • Loading branch information
88250 committed Nov 11, 2022
1 parent e89901b commit b71874d
Show file tree
Hide file tree
Showing 6 changed files with 33 additions and 9 deletions.
6 changes: 6 additions & 0 deletions app/appearance/langs/en_US.json
@@ -1,4 +1,10 @@
{
"syncOfficialProviderIntro": "Currently selected is the cloud storage service officially provided by SiYuan, which only supports paid subscription users",
"syncThirdPartyProviderS3Intro": "The current selected is a third-party cloud storage service compatible with the Amazon S3 protocol. This feature support is currently in the free public beta stage",
"syncThirdPartyProviderWebDAVIntro": "The currently selected is a third-party cloud storage service with the WebDAV protocol. This feature support is currently in the free public beta stage",
"syncThirdPartyProviderTip": "Before using this feature, please pay attention to the technical limitations and billing items of the third-party cloud storage service: <ul><li>Technical limitations such as interface calling frequency and bandwidth</li><li>Billing items such as storage space and traffic</li><li>Terms of use and availability guarantee</li></ul><br>Disclaimer: For details, please refer to the relevant terms in the open source license AGPLv3 used by SiYuan",
"syncProvider": "Cloud Storage Service Provider",
"syncProviderTip": "If selected, the cloud storage service of this provider will be used to achieve cloud synchronization and backup functions",
"confirmReset": "Are you sure want to reset all keyboard shortcuts to default settings?",
"notBatchRemove": "Notebook batch deletion is not supported",
"confirmRemoveAll": "Are you sure you want to delete all selected files?",
Expand Down
6 changes: 6 additions & 0 deletions app/appearance/langs/es_ES.json
@@ -1,4 +1,10 @@
{
"syncOfficialProviderIntro": "Actualmente seleccionado es el servicio de almacenamiento en la nube proporcionado oficialmente por SiYuan, que solo admite usuarios de suscripción paga",
"syncThirdPartyProviderS3Intro": "El actual seleccionado es un servicio de almacenamiento en la nube de terceros compatible con el protocolo Amazon S3. El soporte de esta característica se encuentra actualmente en la etapa beta pública gratuita",
"syncThirdPartyProviderWebDAVIntro": "El seleccionado actualmente es un servicio de almacenamiento en la nube de terceros con el protocolo WebDAV. El soporte de esta función se encuentra actualmente en la etapa beta pública gratuita",
"syncThirdPartyProviderTip": "Antes de usar esta función, preste atención a las limitaciones técnicas y los elementos de facturación del servicio de almacenamiento en la nube de terceros: <ul><li>Limitaciones técnicas, como la frecuencia de llamada de la interfaz y el ancho de banda</li><li >Artículos de facturación como espacio de almacenamiento y tráfico</li><li>Términos de uso y garantía de disponibilidad</li></ul><br>Descargo de responsabilidad: para obtener más información, consulte los términos relevantes en la licencia de código abierto AGPLv3 utilizado por SiYuan",
"syncProvider": "Proveedor de servicios de almacenamiento en la nube",
"syncProviderTip": "Si se selecciona, el servicio de almacenamiento en la nube de este proveedor se usará para lograr funciones de sincronización y copia de seguridad en la nube",
"confirmReset": "¿Está seguro de que desea restablecer todos los atajos de teclado a la configuración predeterminada?",
"notBatchRemove": "No se admite la eliminación por lotes de blocs de notas",
"confirmRemoveAll": "¿Está seguro de que desea eliminar todos los archivos seleccionados?",
Expand Down
6 changes: 6 additions & 0 deletions app/appearance/langs/fr_FR.json
@@ -1,4 +1,10 @@
{
"syncOfficialProviderIntro": "Actuellement sélectionné est le service de stockage en nuage officiellement fourni par SiYuan, qui ne prend en charge que les utilisateurs d'abonnement payant",
"syncThirdPartyProviderS3Intro": "L'actuel sélectionné est un service de stockage cloud tiers compatible avec le protocole Amazon S3. Cette fonctionnalité est actuellement en phase bêta publique gratuite",
"syncThirdPartyProviderWebDAVIntro": "Le service actuellement sélectionné est un service de stockage cloud tiers avec le protocole WebDAV. Cette fonctionnalité est actuellement en phase bêta publique gratuite",
"syncThirdPartyProviderTip": "Avant d'utiliser cette fonctionnalité, veuillez prêter attention aux limitations techniques et aux éléments de facturation du service de stockage cloud tiers : <ul><li>Limitations techniques telles que la fréquence d'appel et la bande passante de l'interface</li><li >Éléments de facturation tels que l'espace de stockage et le trafic</li><li>Conditions d'utilisation et garantie de disponibilité</li></ul><br>Avis de non-responsabilité : pour plus de détails, veuillez vous référer aux termes pertinents dans la licence open source AGPLv3 utilisé par SiYuan",
"syncProvider": "Fournisseur de services de stockage en nuage",
"syncProviderTip": "Si sélectionné, le service de stockage cloud de ce fournisseur sera utilisé pour réaliser les fonctions de synchronisation et de sauvegarde cloud",
"confirmReset": "Voulez-vous vraiment réinitialiser tous les raccourcis clavier aux paramètres par défaut ?",
"notBatchRemove": "La suppression par lots de bloc-notes n'est pas prise en charge",
"confirmRemoveAll": "Êtes-vous sûr de vouloir supprimer tous les fichiers sélectionnés ?",
Expand Down
6 changes: 6 additions & 0 deletions app/appearance/langs/zh_CHT.json
@@ -1,4 +1,10 @@
{
"syncOfficialProviderIntro": "當前選擇的是 SiYuan 官方提供的雲端存儲服務,僅支持付費訂閱用戶使用",
"syncThirdPartyProviderS3Intro": "當前選擇的是 Amazon S3 協議兼容的第三方雲端存儲服務,該特性支持目前處於免費公測階段",
"syncThirdPartyProviderWebDAVIntro": "當前選擇的是 WebDAV 協議的第三方雲端存儲服務,該特性支持目前處於免費公測階段",
"syncThirdPartyProviderTip": "在使用該特性前,請注意第三方雲端存儲服務的技術限制和計費項目等條款:<ul><li>接口調用頻率、帶寬等技術限制</li><li>存儲空間和流量等計費項目</li><li>使用條款和可用性保障等條款</li></ul><br>免責聲明:詳見思源筆記所使用的開源許可證 AGPLv3 中的相關條款",
"syncProvider": "雲端存儲服務提供商",
"syncProviderTip": "選擇後將使用該提供商的雲端存儲服務實現雲端同步和備份功能",
"confirmReset": "確定將所有快捷鍵都恢復為默認設置?",
"notBatchRemove": "不支持筆記本批量刪除",
"confirmRemoveAll": "确定删除选中的所有文件?",
Expand Down
2 changes: 1 addition & 1 deletion app/appearance/langs/zh_CN.json
Expand Up @@ -2,7 +2,7 @@
"syncOfficialProviderIntro": "当前选择的是 SiYuan 官方提供的云端存储服务,仅支持付费订阅用户使用",
"syncThirdPartyProviderS3Intro": "当前选择的是 Amazon S3 协议兼容的第三方云端存储服务,该特性支持目前处于免费公测阶段",
"syncThirdPartyProviderWebDAVIntro": "当前选择的是 WebDAV 协议的第三方云端存储服务,该特性支持目前处于免费公测阶段",
"syncThirdPartyProviderTip": "在使用该特性前,请注意第三方云端存储服务的技术限制和计费项目等条款:<ul><li>接口调用频率、带宽等技术限制</li><li>存储空间和流量等计费项目</li><li>使用条款和可用性保障等条款</li></ul><br>免责声明:请参考思源笔记 AGPLv3 中的条款",
"syncThirdPartyProviderTip": "在使用该特性前,请注意第三方云端存储服务的技术限制和计费项目等条款:<ul><li>接口调用频率、带宽等技术限制</li><li>存储空间和流量等计费项目</li><li>使用条款和可用性保障等条款</li></ul><br>免责声明:详见思源笔记所使用的开源许可证 AGPLv3 中的相关条款",
"syncProvider": "云端存储服务提供商",
"syncProviderTip": "选择后将使用该提供商的云端存储服务实现云端同步和备份功能",
"confirmReset": "确定将所有快捷键都恢复为默认设置?",
Expand Down
16 changes: 8 additions & 8 deletions app/src/config/repos.ts
Expand Up @@ -74,27 +74,27 @@ const renderProvider = (provider: number) => {
${window.siyuan.languages.syncThirdPartyProviderTip}
</div>
<label class="b3-label b3-label--noborder fn__flex">
<div class="fn__flex-1">endpoint</div>
<div class="fn__flex-1">Endpoint</div>
<div class="fn__space"></div>
<input id="endpoint" class="b3-text-field" value="${window.siyuan.config.sync.s3.endpoint}">
</label>
<label class="b3-label b3-label--noborder fn__flex">
<div class="fn__flex-1">accessKey</div>
<div class="fn__flex-1">Access Key</div>
<div class="fn__space"></div>
<input id="accessKey" class="b3-text-field" value="${window.siyuan.config.sync.s3.accessKey}">
</label>
<label class="b3-label b3-label--noborder fn__flex">
<div class="fn__flex-1">secretKey</div>
<div class="fn__flex-1">Secret Key</div>
<div class="fn__space"></div>
<input id="secretKey" class="b3-text-field" value="${window.siyuan.config.sync.s3.secretKey}">
</label>
<label class="b3-label b3-label--noborder fn__flex">
<div class="fn__flex-1">bucket</div>
<div class="fn__flex-1">Bucket</div>
<div class="fn__space"></div>
<input id="bucket" class="b3-text-field" value="${window.siyuan.config.sync.s3.bucket}">
</label>
<label class="b3-label b3-label--noborder fn__flex">
<div class="fn__flex-1">region</div>
<div class="fn__flex-1">Region</div>
<div class="fn__space"></div>
<input id="region" class="b3-text-field" value="${window.siyuan.config.sync.s3.region}">
</label>`;
Expand All @@ -105,17 +105,17 @@ const renderProvider = (provider: number) => {
${window.siyuan.languages.syncThirdPartyProviderTip}
</div>
<label class="b3-label b3-label--noborder fn__flex">
<div class="fn__flex-1">endpoint</div>
<div class="fn__flex-1">Endpoint</div>
<div class="fn__space"></div>
<input id="endpoint" class="b3-text-field" value="${window.siyuan.config.sync.webdav.endpoint}">
</label>
<label class="b3-label b3-label--noborder fn__flex">
<div class="fn__flex-1">username</div>
<div class="fn__flex-1">Username</div>
<div class="fn__space"></div>
<input id="username" class="b3-text-field" value="${window.siyuan.config.sync.webdav.username}">
</label>
<label class="b3-label b3-label--noborder fn__flex">
<div class="fn__flex-1">password</div>
<div class="fn__flex-1">Password</div>
<div class="fn__space"></div>
<input id="password" class="b3-text-field" value="${window.siyuan.config.sync.webdav.password}">
</label>`;
Expand Down

0 comments on commit b71874d

Please sign in to comment.