Merge remote-tracking branch 'upstream/master' into whiteboards

This commit is contained in:
Peng Xiao
2022-09-01 10:29:29 +08:00
121 changed files with 6780 additions and 2084 deletions

View File

@@ -35,6 +35,10 @@
[]
(redirect! {:to :graph}))
(defn redirect-to-all-graphs
[]
(redirect! {:to :repos}))
(defn redirect-to-page!
"Must ensure `page-name` is dereferenced (not an alias), or it will create a wrong new page with that name (#3511)."
([page-name]
@@ -145,6 +149,13 @@
(state/set-search-mode! search-mode))
(state/pub-event! [:go/search]))
(defn sidebar-journals!
[]
(state/sidebar-add-block!
(state/get-current-repo)
(:db/id (db/get-page (date/today)))
:page))
(defn go-to-journals!
[]
(state/set-journals-length! 3)