mirror of https://github.com/logseq/logseq
fix: add both card and contents to default pages
parent
efbcb79299
commit
aae3a982d1
|
@ -2,7 +2,7 @@
|
|||
(:require [clojure.string :as string]))
|
||||
|
||||
(defonce built-in-pages-names
|
||||
#{"NOW" "LATER" "DOING" "DONE" "IN-PROGRESS" "TODO" "WAIT" "WAITING" "A" "B" "C" "Favorites"})
|
||||
#{"NOW" "LATER" "DOING" "DONE" "IN-PROGRESS" "TODO" "WAIT" "WAITING" "A" "B" "C" "Favorites" "Contents" "card"})
|
||||
|
||||
(def built-in-pages
|
||||
(mapv (fn [p]
|
||||
|
|
|
@ -571,7 +571,8 @@
|
|||
(let [repo (state/get-current-repo)
|
||||
query-string (:query-string state)
|
||||
card-index (::card-index state)
|
||||
query-result (:query-result state)]
|
||||
query-result (:query-result state)
|
||||
global? (:global? config)]
|
||||
(if (seq query-result)
|
||||
(let [{:keys [total result]} (query-scheduled repo query-result (tl/local-now))
|
||||
review-cards result
|
||||
|
@ -580,7 +581,7 @@
|
|||
filtered-total (count result)
|
||||
modal? (:modal? config)]
|
||||
[:div.flex-1.cards-review {:style (when modal? {:height "100%"})
|
||||
:class (if (:global? config) "" "shadow-xl")}
|
||||
:class (if global? "" "shadow-xl")}
|
||||
[:div.flex.flex-row.items-center.justify-between.cards-title
|
||||
[:div.flex.flex-row.items-center
|
||||
(ui/icon "infinity" {:style {:font-size 20}})
|
||||
|
@ -638,10 +639,9 @@
|
|||
(persist-var/persist-save of-matrix))})
|
||||
card-index))]
|
||||
review-finished)])
|
||||
|
||||
(if (zero? @cards-total)
|
||||
(if global?
|
||||
[:div.ls-card
|
||||
[:h1.title "Time to create your first card!"]
|
||||
[:h1.title "Time to create a card!"]
|
||||
|
||||
[:div
|
||||
[:p "You can add \"#card\" to any block to turn it into a card or trigger \"/cloze\" to add some clozes."]
|
||||
|
|
Loading…
Reference in New Issue