🎨 Improve rename doc push message
This commit is contained in:
parent
1e36fbf241
commit
426225af96
9 changed files with 25 additions and 10 deletions
|
@ -1441,6 +1441,7 @@
|
|||
"230": "Deleting cloud storage unreferenced check indexes...",
|
||||
"231": "Deleting unreferenced data objects in cloud storage...",
|
||||
"232": "The cloud data storage has been purged. [%d] snapshots and [%d] data objects have been deleted, and a total of [%s] disk space has been released",
|
||||
"233": "Closing user guide..."
|
||||
"233": "Closing user guide...",
|
||||
"234": "[%d/%d] Updated [%d] of readable paths of block-level elements [%s]"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1441,6 +1441,7 @@
|
|||
"230": "Eliminando índices de verificación sin referencia del almacenamiento en la nube...",
|
||||
"231": "Eliminar objetos de datos no referenciados en el almacenamiento en la nube...",
|
||||
"232": "Se ha eliminado el almacenamiento de datos en la nube. Se han eliminado [%d] instantáneas y [%d] objetos de datos, y se ha liberado un total de [%s] espacio en disco",
|
||||
"233": "Cerrando la guía del usuario..."
|
||||
"233": "Cerrando la guía del usuario...",
|
||||
"234": "[%d/%d] Actualizado [%d] de rutas legibles de elementos a nivel de bloque [%s]"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1441,6 +1441,7 @@
|
|||
"230": "Suppression des index de vérification non référencés du stockage cloud...",
|
||||
"231": "Suppression des objets de données non référencés dans le stockage cloud...",
|
||||
"232": "Le stockage de données cloud a été purgé. [%d] instantanés et [%d] objets de données ont été supprimés, et un total de [%s] espace disque a été libéré",
|
||||
"233": "Fermeture du guide de l'utilisateur..."
|
||||
"233": "Fermeture du guide de l'utilisateur...",
|
||||
"234": "[%d/%d] Mise à jour [%d] des chemins lisibles des éléments de niveau bloc [%s]"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1441,6 +1441,7 @@
|
|||
"230": "正在刪除雲端儲存未引用校驗快照...",
|
||||
"231": "正在刪除雲端儲存未引用資料物件...",
|
||||
"232": "雲端資料儲存清理完畢,已刪除 [%d] 個快照和 [%d] 個資料對象,共釋放 [%s] 磁碟空間",
|
||||
"233": "正在關閉用戶指南..."
|
||||
"233": "正在關閉用戶指南...",
|
||||
"234": "[%d/%d] 已更新 [%d] 個區塊級元素的可讀路徑 [%s]"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1441,6 +1441,7 @@
|
|||
"230": "正在删除云端存储未引用校验快照...",
|
||||
"231": "正在删除云端存储未引用数据对象...",
|
||||
"232": "云端数据存储清理完毕,已删除 [%d] 个快照和 [%d] 个数据对象,共释放 [%s] 磁盘空间",
|
||||
"233": "正在关闭用户指南..."
|
||||
"233": "正在关闭用户指南...",
|
||||
"234": "[%d/%d] 已经更新 [%d] 个块级元素的可读路径 [%s]"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -53,7 +53,7 @@ require (
|
|||
github.com/shirou/gopsutil/v3 v3.24.2
|
||||
github.com/siyuan-note/dejavu v0.0.0-20240312083319-7cf60efe5c66
|
||||
github.com/siyuan-note/encryption v0.0.0-20231219001248-1e028a4d13b4
|
||||
github.com/siyuan-note/eventbus v0.0.0-20240124091459-8e1b37a55255
|
||||
github.com/siyuan-note/eventbus v0.0.0-20240318125243-801c98e8f025
|
||||
github.com/siyuan-note/filelock v0.0.0-20240128091141-94d7bb3e0772
|
||||
github.com/siyuan-note/httpclient v0.0.0-20240312073515-af29be1cfb4e
|
||||
github.com/siyuan-note/logging v0.0.0-20231208035918-61f884c854f0
|
||||
|
|
|
@ -355,8 +355,8 @@ github.com/siyuan-note/dejavu v0.0.0-20240312083319-7cf60efe5c66 h1:9r9Op9nZBHi5
|
|||
github.com/siyuan-note/dejavu v0.0.0-20240312083319-7cf60efe5c66/go.mod h1:lMrCZfigfQNC89yr1UF/PYbFenBQLzSWiWV1TcqUkVY=
|
||||
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-20240124091459-8e1b37a55255 h1:WTAUBlU2v7ISet9ankbjqZrRKo6MLGK1LBmDyNlehPY=
|
||||
github.com/siyuan-note/eventbus v0.0.0-20240124091459-8e1b37a55255/go.mod h1:1/nGgthl89FPA7GzAcEWKl6zRRnfgyTjzLZj9bW7kuw=
|
||||
github.com/siyuan-note/eventbus v0.0.0-20240318125243-801c98e8f025 h1:crQmKw5vZz3MljAP/xKMWY/rksMX634jJK9kcsOIbkw=
|
||||
github.com/siyuan-note/eventbus v0.0.0-20240318125243-801c98e8f025/go.mod h1:1/nGgthl89FPA7GzAcEWKl6zRRnfgyTjzLZj9bW7kuw=
|
||||
github.com/siyuan-note/filelock v0.0.0-20240128091141-94d7bb3e0772 h1:ceX49LJmN8FMwWpkCkZIV9dHG4Ya2ZMrhu9T6VyDiKs=
|
||||
github.com/siyuan-note/filelock v0.0.0-20240128091141-94d7bb3e0772/go.mod h1:CYJQjSyKYLhEJJC+5I+R4uNcpyW0X2CaUYwMVbkelDk=
|
||||
github.com/siyuan-note/httpclient v0.0.0-20240312073515-af29be1cfb4e h1:2DeWT+8qGw2mqF03Z7R9gwPJ7WTUqDrQSv5Yo/NxxYA=
|
||||
|
|
|
@ -351,7 +351,6 @@ func subscribeSQLEvents() {
|
|||
})
|
||||
eventbus.Subscribe(eventbus.EvtSQLDeleteBlocks, func(context map[string]interface{}, rootID string) {
|
||||
if util.ContainerAndroid == util.Container || util.ContainerIOS == util.Container {
|
||||
// Android/iOS 端不显示数据索引和搜索索引状态提示 https://github.com/siyuan-note/siyuan/issues/6392
|
||||
return
|
||||
}
|
||||
|
||||
|
@ -361,6 +360,17 @@ func subscribeSQLEvents() {
|
|||
util.SetBootDetails(msg)
|
||||
util.ContextPushMsg(context, msg)
|
||||
})
|
||||
eventbus.Subscribe(eventbus.EvtSQLUpdateBlocksHPaths, func(context map[string]interface{}, blockCount int, hash string) {
|
||||
if util.ContainerAndroid == util.Container || util.ContainerIOS == util.Container {
|
||||
return
|
||||
}
|
||||
|
||||
current := context["current"].(int)
|
||||
total := context["total"]
|
||||
msg := fmt.Sprintf(Conf.Language(234), current, total, blockCount, hash)
|
||||
util.SetBootDetails(msg)
|
||||
util.ContextPushMsg(context, msg)
|
||||
})
|
||||
|
||||
eventbus.Subscribe(eventbus.EvtSQLInsertHistory, func(context map[string]interface{}) {
|
||||
if util.ContainerAndroid == util.Container || util.ContainerIOS == util.Container {
|
||||
|
|
|
@ -1228,7 +1228,7 @@ func batchUpdateHPath(tx *sql.Tx, boxID, rootID, newHPath string, context map[st
|
|||
}
|
||||
ClearCache()
|
||||
evtHash := fmt.Sprintf("%x", sha256.Sum256([]byte(rootID)))[:7]
|
||||
eventbus.Publish(eventbus.EvtSQLInsertBlocksFTS, context, 1, evtHash)
|
||||
eventbus.Publish(eventbus.EvtSQLUpdateBlocksHPaths, context, 1, evtHash)
|
||||
return
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue