mirror of
https://github.com/logseq/logseq.git
synced 2026-06-01 19:01:22 +00:00
fix: lint
This commit is contained in:
@@ -10,7 +10,6 @@
|
||||
[frontend.handler.notification :as notification]
|
||||
[frontend.search :as search]
|
||||
[frontend.state :as state]
|
||||
[frontend.storage :as storage]
|
||||
[frontend.util :as util]
|
||||
[logseq.db :as ldb]
|
||||
[missionary.core :as m]
|
||||
@@ -166,18 +165,3 @@
|
||||
result)))
|
||||
(conj result [:span content])))]
|
||||
[:span {:class "m-0"} elements]))))))
|
||||
|
||||
(defn get-recents
|
||||
[]
|
||||
(storage/get :recent-search-items))
|
||||
|
||||
(defn add-recent!
|
||||
[item]
|
||||
(when-not (string/blank? item)
|
||||
(let [recents (get-recents)]
|
||||
(storage/set :recent-search-items
|
||||
(distinct (take 20 (cons item recents)))))))
|
||||
|
||||
(defn clear-recents!
|
||||
[]
|
||||
(storage/remove :recent-search-items))
|
||||
|
||||
@@ -6,7 +6,6 @@
|
||||
[frontend.handler.route :as route-handler]
|
||||
[frontend.state :as state]
|
||||
[frontend.util :as util]
|
||||
[logseq.common.util :as common-util]
|
||||
[mobile.search :as mobile-search]
|
||||
[mobile.state :as mobile-state]
|
||||
[promesa.core :as p]))
|
||||
@@ -115,7 +114,6 @@
|
||||
;; wire up search handler
|
||||
(js/console.log "Native search query" q)
|
||||
(reset! mobile-state/*search-input q)
|
||||
(reset! mobile-state/*search-last-input-at (common-util/time-ms))
|
||||
(p/let [result (mobile-search/search q)]
|
||||
(update-native-search-results! result))))
|
||||
(add-search-result-item-listener!)
|
||||
|
||||
@@ -5,11 +5,6 @@
|
||||
[mobile.navigation :as mobile-nav]))
|
||||
|
||||
(defonce *search-input (atom ""))
|
||||
(defn use-search-input []
|
||||
(r/use-atom *search-input))
|
||||
(defonce *search-last-input-at (atom nil))
|
||||
(defn use-search-last-input-at []
|
||||
(r/use-atom *search-last-input-at))
|
||||
|
||||
(defonce *tab (atom "home"))
|
||||
(defn set-tab! [tab]
|
||||
|
||||
Reference in New Issue
Block a user