diff --git a/app/appearance/langs/en_US.json b/app/appearance/langs/en_US.json index a81b8a290..d4df0e6a3 100644 --- a/app/appearance/langs/en_US.json +++ b/app/appearance/langs/en_US.json @@ -1254,7 +1254,7 @@ "194": "There are restrictions on the Nutstore interface, please use other WebDAV services", "195": "The system time is incorrect, please calibrate the system time and try again", "196": "Do not set the workspace under the path of a third-party sync disk, otherwise the data will be damaged (iCloud/OneDrive/Dropbox/Google Drive/Nutstore/Baidu Netdisk/Tencent Weiyun, etc.)", - "197": "Currently the editor is in read-only mode. If you need to edit content, please switch to edit mode", + "197": "TODO", "198": "This is not a valid Data archive. If the archive was exported from [Doc tree], please import it from [Doc tree]", "199": "This is not a valid .sy.zip archive. If the archive was exported from [Settings], please import it from [Settings]", "200": "Global search response time is slow, it is recommended to add type filtering or keywords to narrow the search scope", diff --git a/app/appearance/langs/es_ES.json b/app/appearance/langs/es_ES.json index 41c643fe3..b5884963f 100644 --- a/app/appearance/langs/es_ES.json +++ b/app/appearance/langs/es_ES.json @@ -1254,7 +1254,7 @@ "194": "Existen restricciones en la interfaz de Nutstore, utilice otros servicios WebDAV", "195": "La hora del sistema es incorrecta, calibre la hora del sistema y vuelva a intentarlo", "196": "No configure el espacio de trabajo bajo la ruta de un disco de sincronización de terceros, de lo contrario, los datos se dañarán (iCloud/OneDrive/Dropbox/Google Drive/Nutstore/Baidu Netdisk/Tencent Weiyun, etc.)", - "197": "Actualmente, el editor se encuentra en modo de solo lectura. Si necesita editar contenido, cambie al modo de edición", + "197": "TODO", "198": "Este no es un archivo data.zip válido. Si el archivo se exportó de [Árbol de documentos], importalo de [Árbol de documentos]", "199": "Este no es un archivo .sy.zip válido. Si el archivo se exportó desde [Configuración], impórtelo desde [Configuración]", "200": "El tiempo de respuesta de b\u00fasqueda global es lento, se recomienda agregar filtros de tipo o palabras clave para reducir el alcance de b\u00fasqueda", diff --git a/app/appearance/langs/fr_FR.json b/app/appearance/langs/fr_FR.json index ab200259c..990bf43df 100644 --- a/app/appearance/langs/fr_FR.json +++ b/app/appearance/langs/fr_FR.json @@ -1254,7 +1254,7 @@ "194": "Il existe des restrictions sur l'interface Nutstore, veuillez utiliser d'autres services WebDAV", "195": "L'heure du système est incorrecte, veuillez calibrer l'heure du système et réessayer", "196": "Ne définissez pas l'espace de travail sous le chemin d'un disque de synchronisation tiers, sinon les données seront endommagées (iCloud/OneDrive/Dropbox/Google Drive/Nutstore/Baidu Netdisk/Tencent Weiyun, etc.)", - "197": "Actuellement, l'éditeur est en mode lecture seule. Si vous devez modifier le contenu, veuillez passer en mode édition", + "197": "TODO", "198": "Ceci n'est pas une archive data.zip valide. Si l'archive a été exportée depuis [Doc tree], veuillez l'importer depuis [Doc tree]", "199": "Ceci n'est pas une archive .sy.zip valide. Si l'archive a été exportée depuis [Paramètres], veuillez l'importer depuis [Paramètres]", "200": "Le temps de réponse de la recherche globale est lent, il est recommandé d'ajouter un filtrage de type ou des mots-clés pour restreindre la portée de la recherche", diff --git a/app/appearance/langs/zh_CHT.json b/app/appearance/langs/zh_CHT.json index d349f55eb..6627110f3 100644 --- a/app/appearance/langs/zh_CHT.json +++ b/app/appearance/langs/zh_CHT.json @@ -1254,7 +1254,7 @@ "194": "堅果雲接口存在限制,請使用其他 WebDAV 服務", "195": "系統時間不正確,請校準系統時間後再試", "196": "請勿將工作空間設置在第三方同步硬碟路徑下,否則資料會被損壞(iCloud/OneDrive/Dropbox/Google Drive/堅果雲/百度網盤/騰訊微雲等)", - "197": "目前編輯器正處於只讀模式狀態,如果需要編輯內容,請切換到編輯模式", + "197": "TODO", "198": "這不是一個有效的 Data 壓縮檔。如果該資料檔是從 [文檔樹] 導出的,請從 [文檔樹] 導入", "199": "這不是一個有效的 .sy.zip 壓縮檔。如果該資料檔是從 [設置] 中導出的,請從 [設置] 中導入", "200": "全域搜索響應時間較慢,建議增加類型過濾或者增加關鍵字以縮小搜索範圍", diff --git a/app/appearance/langs/zh_CN.json b/app/appearance/langs/zh_CN.json index 7ff6429e8..b2f27b764 100644 --- a/app/appearance/langs/zh_CN.json +++ b/app/appearance/langs/zh_CN.json @@ -1254,7 +1254,7 @@ "194": "坚果云接口存在限制,请使用其他 WebDAV 服务", "195": "系统时间不正确,请校准系统时间后再试", "196": "请勿将工作空间设置在第三方同步盘路径下,否则数据会被损坏(iCloud/OneDrive/Dropbox/Google Drive/坚果云/百度网盘/腾讯微云等)", - "197": "目前编辑器正处于只读模式状态,如果需要编辑内容,请切换到编辑模式", + "197": "TODO", "198": "这不是一个有效的 Data 压缩包。如果该数据包是从 [文档树] 导出的,请从 [文档树] 导入", "199": "这不是一个有效的 .sy.zip 压缩包。如果该数据包是从 [设置] 中导出的,请从 [设置] 中导入", "200": "全局搜索响应时间较慢,建议增加类型过滤或者增加关键字以缩小搜索范围", diff --git a/kernel/api/system.go b/kernel/api/system.go index ae94f1d39..175d6018c 100644 --- a/kernel/api/system.go +++ b/kernel/api/system.go @@ -206,20 +206,6 @@ func getConf(c *gin.Context) { "conf": maskedConf, "start": !util.IsUILoaded, } - - if !util.IsUILoaded { - go func() { - util.WaitForUILoaded() - - if model.Conf.Editor.ReadOnly { - // 编辑器启用只读模式时启动后提示用户 https://github.com/siyuan-note/siyuan/issues/7700 - time.Sleep(time.Second * 3) - if model.Conf.Editor.ReadOnly { - util.PushMsg(model.Conf.Language(197), 7000) - } - } - }() - } } func setUILayout(c *gin.Context) {