mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-24 07:54:07 +01:00
Merge remote-tracking branch 'origin/dev' into dev
This commit is contained in:
commit
a1f7b11625
5 changed files with 11 additions and 4 deletions
|
|
@ -809,7 +809,7 @@
|
|||
"20": "Cannot be converted to heading when including sub-documents",
|
||||
"21": "Please enter the captcha",
|
||||
"22": "The captcha is incorrect",
|
||||
"23": "The data repo is damaged due to external changes (such as using a third-party real-time synchronization disk), please reset the data repo",
|
||||
"23": "The data repo is corrupted due to external changes (such as using a third-party real-time synchronization disk), please reset the data repo",
|
||||
"24": "Network timed out, please try again later",
|
||||
"25": "The attribute name only supports English letters and digits",
|
||||
"26": "Please initialize the data repo key first in [Settings - About - Data repo key]",
|
||||
|
|
|
|||
|
|
@ -561,7 +561,7 @@ const initKernel = (initData) => {
|
|||
case 23:
|
||||
showErrorWindow(
|
||||
'⚠️ 无法读写块树文件 Failed to access blocktree file',
|
||||
`<div>块树文件正在被其他程序锁定或者已经损坏,请删除 工作空间/temp/ 文件夹后重启</div><div>The block tree file is being locked by another program or is damaged, please delete the workspace/temp/ folder and restart.</div>`)
|
||||
`<div>块树文件正在被其他程序锁定或者已经损坏,请删除 工作空间/temp/ 文件夹后重启</div><div>The block tree file is being locked by another program or is corrupted, please delete the workspace/temp/ folder and restart.</div>`)
|
||||
break
|
||||
case 0:
|
||||
case 1: // Fatal error
|
||||
|
|
|
|||
|
|
@ -1580,7 +1580,7 @@
|
|||
"Children": [
|
||||
{
|
||||
"Type": "NodeText",
|
||||
"Data": "Data synchronization through third-party synchronization disks is not supported, otherwise data may be damaged. Consider manually exporting and importing Data for data synchronization:"
|
||||
"Data": "Data synchronization through third-party synchronization disks is not supported, otherwise data may be corrupted. Consider manually exporting and importing Data for data synchronization:"
|
||||
}
|
||||
]
|
||||
},
|
||||
|
|
|
|||
|
|
@ -601,7 +601,9 @@ func GetMaskedConf() (ret *AppConf, err error) {
|
|||
}
|
||||
|
||||
ret.UserData = MaskedUserData
|
||||
ret.AccessAuthCode = MaskedAccessAuthCode
|
||||
if "" != ret.AccessAuthCode {
|
||||
ret.AccessAuthCode = MaskedAccessAuthCode
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -156,6 +156,11 @@ func CheckReadonly(c *gin.Context) {
|
|||
func CheckAuth(c *gin.Context) {
|
||||
//logging.LogInfof("check auth for [%s]", c.Request.RequestURI)
|
||||
|
||||
if "" == Conf.AccessAuthCode {
|
||||
c.Next()
|
||||
return
|
||||
}
|
||||
|
||||
// 放过 /appearance/
|
||||
if strings.HasPrefix(c.Request.RequestURI, "/appearance/") ||
|
||||
strings.HasPrefix(c.Request.RequestURI, "/stage/build/export/") ||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue