diff --git a/app/src/config/repos.ts b/app/src/config/repos.ts
index a959781d6..94d7a01e9 100644
--- a/app/src/config/repos.ts
+++ b/app/src/config/repos.ts
@@ -67,6 +67,14 @@ const renderProvider = (provider: number) => {
Region
+
+
+
Addressing
+
+
`;
}
return `${tip}
@@ -94,13 +102,21 @@ const renderProvider = (provider: number) => {
Region
+
+`;
} else if (provider === 3) {
const tip = `
${window.siyuan.languages.syncThirdPartyProviderWebDAVIntro}
${window.siyuan.languages.syncThirdPartyProviderTip}
-
`
+`;
if (isMobile()) {
return `${tip}
@@ -200,6 +216,7 @@ const bindProviderEvent = () => {
accessKey: (providerPanelElement.querySelector("#accessKey") as HTMLInputElement).value,
secretKey: (providerPanelElement.querySelector("#secretKey") as HTMLInputElement).value,
bucket: (providerPanelElement.querySelector("#bucket") as HTMLInputElement).value,
+ pathStyle: (providerPanelElement.querySelector("#pathStyle") as HTMLInputElement).value === "true",
region: (providerPanelElement.querySelector("#region") as HTMLInputElement).value,
};
fetchPost("/api/sync/setSyncProviderS3", {s3}, () => {
diff --git a/app/src/mobile/util/menu.ts b/app/src/mobile/util/menu.ts
index 6ff4c525e..8f1073b99 100644
--- a/app/src/mobile/util/menu.ts
+++ b/app/src/mobile/util/menu.ts
@@ -435,15 +435,13 @@ ${accountHTML}
event.stopPropagation();
break;
} else if (target.id === "menuSync") {
- if (!needSubscribe()) {
- closePanel();
- modelElement.style.top = "0";
- modelElement.querySelector(".toolbar__icon").innerHTML = '';
- modelElement.querySelector(".toolbar__text").textContent = window.siyuan.languages.cloud;
- modelMainElement.innerHTML = repos.genHTML();
- repos.element = modelMainElement;
- repos.bindEvent();
- }
+ closePanel();
+ modelElement.style.top = "0";
+ modelElement.querySelector(".toolbar__icon").innerHTML = '';
+ modelElement.querySelector(".toolbar__text").textContent = window.siyuan.languages.cloud;
+ modelMainElement.innerHTML = repos.genHTML();
+ repos.element = modelMainElement;
+ repos.bindEvent();
event.preventDefault();
event.stopPropagation();
break;
diff --git a/app/src/types/index.d.ts b/app/src/types/index.d.ts
index de8498900..154d9bb61 100644
--- a/app/src/types/index.d.ts
+++ b/app/src/types/index.d.ts
@@ -335,6 +335,7 @@ declare interface IConfig {
provider: number
s3: {
endpoint: string
+ pathStyle: boolean
accessKey: string
secretKey: string
bucket: string