mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-23 18:10:12 +01:00
🎨 localStorage 支持在多界面实例间同步 https://github.com/siyuan-note/siyuan/issues/6965
This commit is contained in:
parent
3adb7d9ad0
commit
95bb18afe1
12 changed files with 49 additions and 55 deletions
|
|
@ -115,7 +115,7 @@ func heading2Doc(c *gin.Context) {
|
|||
name := path.Base(targetPath)
|
||||
box := model.Conf.Box(targetNotebook)
|
||||
files, _, _ := model.ListDocTree(targetNotebook, path.Dir(targetPath), model.Conf.FileTree.Sort)
|
||||
evt := util.NewCmdResult("heading2doc", 0, util.PushModeBroadcast, util.PushModeNone)
|
||||
evt := util.NewCmdResult("heading2doc", 0, util.PushModeBroadcast)
|
||||
evt.Data = map[string]interface{}{
|
||||
"box": box,
|
||||
"path": targetPath,
|
||||
|
|
@ -159,7 +159,7 @@ func li2Doc(c *gin.Context) {
|
|||
name := path.Base(targetPath)
|
||||
box := model.Conf.Box(targetNotebook)
|
||||
files, _, _ := model.ListDocTree(targetNotebook, path.Dir(targetPath), model.Conf.FileTree.Sort)
|
||||
evt := util.NewCmdResult("li2doc", 0, util.PushModeBroadcast, util.PushModeNone)
|
||||
evt := util.NewCmdResult("li2doc", 0, util.PushModeBroadcast)
|
||||
evt.Data = map[string]interface{}{
|
||||
"box": box,
|
||||
"path": targetPath,
|
||||
|
|
@ -465,7 +465,7 @@ func createDailyNote(c *gin.Context) {
|
|||
if existed && "" != app {
|
||||
pushMode = util.PushModeBroadcastApp
|
||||
}
|
||||
evt := util.NewCmdResult("createdailynote", 0, pushMode, util.PushModeNone)
|
||||
evt := util.NewCmdResult("createdailynote", 0, pushMode)
|
||||
evt.AppId = app
|
||||
|
||||
name := path.Base(p)
|
||||
|
|
@ -750,7 +750,7 @@ func getDoc(c *gin.Context) {
|
|||
}
|
||||
|
||||
func pushCreate(box *model.Box, p, treeID string, arg map[string]interface{}) {
|
||||
evt := util.NewCmdResult("create", 0, util.PushModeBroadcast, util.PushModeNone)
|
||||
evt := util.NewCmdResult("create", 0, util.PushModeBroadcast)
|
||||
name := path.Base(p)
|
||||
files, _, _ := model.ListDocTree(box.ID, path.Dir(p), model.Conf.FileTree.Sort)
|
||||
evt.Data = map[string]interface{}{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue