From b19de1acf34eeb7fbf6c1505550c4d0230719d16 Mon Sep 17 00:00:00 2001 From: Vanessa Date: Sat, 12 Nov 2022 10:17:03 +0800 Subject: [PATCH] :iphone: s3 --- app/src/config/repos.ts | 54 ++++++++++++++++++++++++++++++++++++++--- 1 file changed, 51 insertions(+), 3 deletions(-) diff --git a/app/src/config/repos.ts b/app/src/config/repos.ts index 916f9ca7d..a959781d6 100644 --- a/app/src/config/repos.ts +++ b/app/src/config/repos.ts @@ -36,11 +36,40 @@ const renderProvider = (provider: number) => { ${window.siyuan.languages.syncOfficialProviderIntro} `; } else if (provider === 2) { - return `
+ const tip = `
${window.siyuan.languages.syncThirdPartyProviderS3Intro}
${window.siyuan.languages.syncThirdPartyProviderTip} +
` + if (isMobile()) { + return `${tip} +
+
Endpoint
+
+
+
+
Access Key
+
+ +
+
+
Secret Key
+
+ +
+
+
Bucket
+
+ +
+
+
Region
+
+ +
`; + } + return `${tip} `; } else if (provider === 3) { - return `
+ const tip = `
${window.siyuan.languages.syncThirdPartyProviderWebDAVIntro}
${window.siyuan.languages.syncThirdPartyProviderTip} +
` + if (isMobile()) { + return `${tip} +
+
Endpoint
+
+
+
+
Username
+
+ +
+
+
Password
+
+ +
`; + } + return `${tip}