|
|
@@ -1,8 +1,8 @@
|
|
|
(ns frontend.components.editor
|
|
|
(:require [clojure.string :as string]
|
|
|
- [goog.string :as gstring]
|
|
|
[frontend.commands :as commands
|
|
|
- :refer [*first-command-group *matched-block-commands *matched-commands]]
|
|
|
+ :refer [*first-command-group *matched-block-commands
|
|
|
+ *matched-commands]]
|
|
|
[frontend.components.block :as block]
|
|
|
[frontend.components.datetime :as datetime-comp]
|
|
|
[frontend.components.search :as search]
|
|
|
@@ -12,9 +12,9 @@
|
|
|
[frontend.db.model :as db-model]
|
|
|
[frontend.extensions.zotero :as zotero]
|
|
|
[frontend.handler.editor :as editor-handler :refer [get-state]]
|
|
|
- [frontend.handler.paste :as paste-handler]
|
|
|
[frontend.handler.editor.lifecycle :as lifecycle]
|
|
|
[frontend.handler.page :as page-handler]
|
|
|
+ [frontend.handler.paste :as paste-handler]
|
|
|
[frontend.mixins :as mixins]
|
|
|
[frontend.modules.shortcut.core :as shortcut]
|
|
|
[frontend.state :as state]
|
|
|
@@ -22,9 +22,10 @@
|
|
|
[frontend.util :as util]
|
|
|
[frontend.util.cursor :as cursor]
|
|
|
[frontend.util.keycode :as keycode]
|
|
|
- [logseq.graph-parser.util :as gp-util]
|
|
|
- [logseq.graph-parser.property :as gp-property]
|
|
|
[goog.dom :as gdom]
|
|
|
+ [goog.string :as gstring]
|
|
|
+ [logseq.graph-parser.property :as gp-property]
|
|
|
+ [logseq.graph-parser.util :as gp-util]
|
|
|
[promesa.core :as p]
|
|
|
[react-draggable]
|
|
|
[rum.core :as rum]))
|
|
|
@@ -149,7 +150,10 @@
|
|
|
:item-render (fn [page-name chosen?]
|
|
|
[:div.preview-trigger-wrapper
|
|
|
(block/page-preview-trigger
|
|
|
- {:children [:div (search/highlight-exact-query page-name q)]
|
|
|
+ {:children
|
|
|
+ [:div.flex
|
|
|
+ (when (db-model/whiteboard-page? page-name) [:span.mr-1 (ui/icon "whiteboard")])
|
|
|
+ (search/highlight-exact-query page-name q)]
|
|
|
:open? chosen?
|
|
|
:manual? true
|
|
|
:fixed-position? true
|