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: Remove `Add` and `Remove` buttons for S3/WebDAV cloud sync directory settings https://github.com/siyuan-note/siyuan/issues/13682
Daniel47e6e8b74b4b
diff --git a/app/src/config/repos.ts b/app/src/config/repos.tsindex 712e9b680e..53b144695a 100644--- a/app/src/config/repos.ts+++ b/app/src/config/repos.ts@@ -75,7 +75,7 @@ const renderProvider = (provider: number) => {<input id="bucket" class="b3-text-field fn__block" value="${window.siyuan.config.sync.s3.bucket}"></div><div class="b3-label b3-label--inner fn__flex">- <div class="fn__flex-center fn__size200">Region</div>+ <div class="fn__flex-center fn__size200">Region ID</div><div class="fn__space"></div><input id="region" class="b3-text-field fn__block" value="${window.siyuan.config.sync.s3.region}"></div>diff --git a/kernel/go.mod b/kernel/go.modindex 3ab7091b2c..2f3e54a6e4 100644--- a/kernel/go.mod+++ b/kernel/go.mod@@ -56,7 +56,7 @@ require (github.com/sabhiram/go-gitignore v0.0.0-20210923224102-525f6e181f06github.com/sashabaranov/go-openai v1.29.1github.com/shirou/gopsutil/v4 v4.24.11- github.com/siyuan-note/dejavu v0.0.0-20241231012438-1b3b69c32ca8+ github.com/siyuan-note/dejavu v0.0.0-20250101034610-eb8ad439dce1github.com/siyuan-note/encryption v0.0.0-20231219001248-1e028a4d13b4github.com/siyuan-note/eventbus v0.0.0-20240627125516-396fdb0f0f97github.com/siyuan-note/filelock v0.0.0-20241212013445-c66518cdacfadiff --git a/kernel/go.sum b/kernel/go.sumindex 4fc0c39b5e..8234a6977d 100644--- a/kernel/go.sum+++ b/kernel/go.sum@@ -363,8 +363,8 @@ github.com/shopspring/decimal v1.4.0/go.mod h1:gawqmDU56v4yIKSwfBSFip1HdCCXN8/+Dgithub.com/shurcooL/gofontwoff v0.0.0-20181114050219-180f79e6909d h1:lvCTyBbr36+tqMccdGMwuEU+hjux/zL6xSmf5S9ITaA=github.com/shurcooL/gofontwoff v0.0.0-20181114050219-180f79e6909d/go.mod h1:05UtEgK5zq39gLST6uB0cf3NEHjETfB4Fgr3Gx5R9Vw=github.com/simplereach/timeutils v1.2.0/go.mod h1:VVbQDfN/FHRZa1LSqcwo4kNZ62OOyqLLGQKYB3pB0Q8=-github.com/siyuan-note/dejavu v0.0.0-20241231012438-1b3b69c32ca8 h1:76sEch+YA/zAeTGnqUOZNQOQoua+2LGNPxi0zLxzfsg=-github.com/siyuan-note/dejavu v0.0.0-20241231012438-1b3b69c32ca8/go.mod h1:MzsX91uilsrKqH97iXH9A155rZaaCtvQDPusjnmqU4I=+github.com/siyuan-note/dejavu v0.0.0-20250101034610-eb8ad439dce1 h1:dr5YMde+4B6qx8/0FXN/Ur4ruMvWAcNgKCI8T+JSzPg=+github.com/siyuan-note/dejavu v0.0.0-20250101034610-eb8ad439dce1/go.mod h1:MzsX91uilsrKqH97iXH9A155rZaaCtvQDPusjnmqU4I=github.com/siyuan-note/encryption v0.0.0-20231219001248-1e028a4d13b4 h1:kJaw5L/evyW6LcB9IQT8PR4ppx8JVqOFP9Ix3rfwSrc=github.com/siyuan-note/encryption v0.0.0-20231219001248-1e028a4d13b4/go.mod h1:UYcCCY+0wh+GmUoDOaO63j1sV5lgy7laLAk1XhEiUis=github.com/siyuan-note/eventbus v0.0.0-20240627125516-396fdb0f0f97 h1:lM5v8BfNtbOL5jYwhCdMYBcYtr06IYBKjjSLAPMKTM8=diff --git a/kernel/model/sync.go b/kernel/model/sync.goindex 91f978fea7..d47dfade05 100644--- a/kernel/model/sync.go+++ b/kernel/model/sync.go@@ -612,6 +612,10 @@ func ListCloudSyncDir() (syncDirs []*Sync, hSize string, err error) {if conf.ProviderSiYuan == Conf.Sync.Provider {hSize = humanize.BytesCustomCeil(uint64(size), 2)}+ if conf.ProviderS3 == Conf.Sync.Provider {+ Conf.Sync.CloudName = syncDirs[0].CloudName+ Conf.Save()+ }return}