An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作
TypeScript agentic-aiai-agentknowledge-baselocal-firstmarkdownmcpmindmapnote-takingself-hostedsiyuanworkspace
:bug: The authentication page after startup Alt+M fails https://github.com/siyuan-note/siyuan/issues/9575
Daniel1e7a45c66d5c
diff --git a/app/stage/auth.html b/app/stage/auth.htmlindex ec9a62e980..b36c3b2ec0 100644--- a/app/stage/auth.html+++ b/app/stage/auth.html@@ -533,7 +533,7 @@// 用于授权页保持连接,避免非常驻内存内核自动退出 https://github.com/siyuan-note/insider/issues/1099new WebSocket((window.location.protocol === 'https:' ? 'wss' : 'ws') + '://' + window.location.host + '/ws?app=siyuan&id=auth')ipcRenderer.send("siyuan-hotkey", {- languages: {},+ languages: {{.trayMenuLangs}},hotkeys: ['{{.keymapGeneralToggleWin}}']});</script>diff --git a/kernel/model/conf.go b/kernel/model/conf.goindex f6f613b875..2c4c0419a7 100644--- a/kernel/model/conf.go+++ b/kernel/model/conf.go@@ -454,6 +454,7 @@ func initLang() {util.TimeLangs[name] = langMap["_time"].(map[string]interface{})util.TaskActionLangs[name] = langMap["_taskAction"].(map[string]interface{})+ util.TrayMenuLangs[name] = langMap["_trayMenu"].(map[string]interface{})}}diff --git a/kernel/server/serve.go b/kernel/server/serve.goindex c44992a2c8..50ab895f31 100644--- a/kernel/server/serve.go+++ b/kernel/server/serve.go@@ -350,6 +350,7 @@ func serveCheckAuth(c *gin.Context) {"workspace": filepath.Base(util.WorkspaceDir),"workspacePath": util.WorkspaceDir,"keymapGeneralToggleWin": keymapHideWindow,+ "trayMenuLangs": util.TrayMenuLangs[util.Lang],}buf := &bytes.Buffer{}if err = tpl.Execute(buf, model); nil != err {diff --git a/kernel/util/runtime.go b/kernel/util/runtime.goindex 2d005bbb13..43152e0b16 100644--- a/kernel/util/runtime.go+++ b/kernel/util/runtime.go@@ -143,6 +143,7 @@ var (Langs = map[string]map[int]string{}TimeLangs = map[string]map[string]interface{}{}TaskActionLangs = map[string]map[string]interface{}{}+ TrayMenuLangs = map[string]map[string]interface{}{})var (