mirror of
https://github.com/logseq/logseq.git
synced 2026-05-24 20:54:09 +00:00
fix: lint
This commit is contained in:
@@ -2,7 +2,6 @@
|
||||
"App top header"
|
||||
(:require [clojure.string :as string]
|
||||
[frontend.components.rtc.indicator :as rtc-indicator]
|
||||
[frontend.config :as config]
|
||||
[frontend.date :as date]
|
||||
[frontend.db :as db]
|
||||
[frontend.db.conn :as db-conn]
|
||||
@@ -14,6 +13,7 @@
|
||||
[frontend.ui :as ui]
|
||||
[frontend.util :as util]
|
||||
[goog.date :as gdate]
|
||||
[logseq.common.config :as common-config]
|
||||
[logseq.db :as ldb]
|
||||
[logseq.shui.ui :as shui]
|
||||
[mobile.components.ui :as ui-component]
|
||||
@@ -32,7 +32,9 @@
|
||||
(if (seq remote-graphs)
|
||||
(repo-handler/combine-local-&-remote-graphs graphs remote-graphs)
|
||||
graphs)
|
||||
(filter (fn [item] (config/db-based-graph? (:url item)))))
|
||||
(filter (fn [item]
|
||||
(and (string? (:url item))
|
||||
(string/starts-with? (:url item) common-config/db-version-prefix)))))
|
||||
short-repo-name (if current-repo
|
||||
(db-conn/get-short-repo-name current-repo)
|
||||
"Select a Graph")]
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
[promesa.core :as p]
|
||||
[rum.core :as rum]))
|
||||
|
||||
(rum/defc block-modal
|
||||
(rum/defc ^:large-vars/cleanup-todo block-modal
|
||||
[]
|
||||
(let [[{:keys [open? block]}] (mobile-state/use-singleton-modal)
|
||||
close! #(reset! mobile-state/*singleton-modal nil)
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
(cmdk/block-item repo block nil input))) blocks)]
|
||||
items))
|
||||
|
||||
(rum/defc search
|
||||
(rum/defc ^:large-vars/cleanup-todo search
|
||||
[]
|
||||
(let [*ref (hooks/use-ref nil)
|
||||
[input set-input!] (hooks/use-state "")
|
||||
|
||||
@@ -1,8 +1,9 @@
|
||||
(ns mobile.components.ui-silk
|
||||
(:require [frontend.util :as util]
|
||||
"Mobile top header and bottom tabs"
|
||||
(:require [frontend.handler.editor :as editor-handler]
|
||||
[frontend.util :as util]
|
||||
[logseq.shui.ui :as shui]
|
||||
[mobile.state :as mobile-state]
|
||||
[frontend.handler.editor :as editor-handler]
|
||||
[rum.core :as rum]))
|
||||
|
||||
(rum/defc app-silk-topbar
|
||||
@@ -23,32 +24,32 @@
|
||||
(let [[current-tab set-tab!] (mobile-state/use-tab)]
|
||||
[:div.app-silk-tabs
|
||||
{:on-pointer-down #(some-> (.-target ^js %)
|
||||
^js (.closest ".as-item")
|
||||
^js (.-dataset)
|
||||
^js (.-tab) (set-tab!))}
|
||||
^js (.closest ".as-item")
|
||||
^js (.-dataset)
|
||||
^js (.-tab) (set-tab!))}
|
||||
[:span.as-item
|
||||
{:class (when (= current-tab "home") "active")
|
||||
:data-tab "home"}
|
||||
(shui/button {:variant :icon}
|
||||
(shui/tabler-icon "home" {:size 24}))
|
||||
(shui/tabler-icon "home" {:size 24}))
|
||||
[:small "Journals"]]
|
||||
[:span.as-item
|
||||
{:class (when (= current-tab "search") "active")
|
||||
:data-tab "search"}
|
||||
(shui/button {:variant :icon}
|
||||
(shui/tabler-icon "search" {:size 24}))
|
||||
(shui/tabler-icon "search" {:size 24}))
|
||||
[:small "Search"]]
|
||||
[:span.as-item
|
||||
(shui/button
|
||||
{:variant :icon
|
||||
:on-click (fn [^js e]
|
||||
(util/stop e)
|
||||
(editor-handler/show-quick-add))}
|
||||
(shui/tabler-icon "plus" {:size 24}))
|
||||
{:variant :icon
|
||||
:on-click (fn [^js e]
|
||||
(util/stop e)
|
||||
(editor-handler/show-quick-add))}
|
||||
(shui/tabler-icon "plus" {:size 24}))
|
||||
[:small "Quick add"]]
|
||||
[:span.as-item
|
||||
{:class (when (= current-tab "settings") "active")
|
||||
:data-tab "settings"}
|
||||
(shui/button {:variant :icon}
|
||||
(shui/tabler-icon "settings" {:size 24}))
|
||||
[:small "Settings"]]]))
|
||||
(shui/tabler-icon "settings" {:size 24}))
|
||||
[:small "Settings"]]]))
|
||||
|
||||
Reference in New Issue
Block a user