Browse Source

fix: lint

Tienson Qin 1 week ago
parent
commit
38baa56286

+ 4 - 1
.carve/ignore

@@ -87,4 +87,7 @@ frontend.rum/use-atom-in
 ;; missionary utils
 frontend.common.missionary/<!
 ;; only used in deps/common
-frontend.common.missionary/background-task-running?
+frontend.common.missionary/background-task-running?
+;; defonce
+mobile.components.popup/native-sheet-listener
+mobile.bottom-tabs/add-tab-listeners!

+ 0 - 1
deps/graph-parser/src/logseq/graph_parser/mldoc.cljc

@@ -15,7 +15,6 @@
             [logseq.common.config :as common-config]
             [logseq.common.util :as common-util]
             [logseq.db.sqlite.util :as sqlite-util]
-            [logseq.graph-parser.schema.mldoc :as mldoc-schema]
             [logseq.graph-parser.utf8 :as utf8]))
 
 (defonce parseJson (gobj/get Mldoc "parseJson"))

+ 1 - 15
src/main/mobile/bottom_tabs.cljs

@@ -78,7 +78,7 @@
          ;;   (editor-handler/show-quick-add))
          nil)))
     (add-watch mobile-state/*tab ::select-tab
-               (fn [_ _ old new]
+               (fn [_ _ _old new]
                  (when new (select! new))))
     (add-search-listener!
      (fn [q]
@@ -94,17 +94,3 @@
     {:id "favorites"  :title "Favorites"  :systemImage "star"  :role "normal"}
     {:id "quick-add"  :title "Capture"    :systemImage "plus"  :role "normal"}
     {:id "settings"   :title "Settings"   :systemImage "gear"  :role "normal"}]))
-
-(defn hide!
-  []
-  nil
-  ;; (when (mobile-util/native-ios?)
-  ;;   (.hide ^js TabsBar))
-  )
-
-(defn show!
-  []
-  nil
-  ;; (when (mobile-util/native-ios?)
-  ;;   (.show ^js TabsBar))
-  )

+ 0 - 1
src/main/mobile/components/popup.cljs

@@ -6,7 +6,6 @@
             [frontend.ui :as ui]
             [logseq.shui.popup.core :as shui-popup]
             [logseq.shui.ui :as shui]
-            [mobile.bottom-tabs :as bottom-tabs]
             [mobile.state :as mobile-state]
             [rum.core :as rum]))
 

+ 0 - 2
src/main/mobile/core.cljs

@@ -12,7 +12,6 @@
             [frontend.util :as util]
             [lambdaisland.glogi :as log]
             [logseq.shui.ui :as shui]
-            [mobile.bottom-tabs :as bottom-tabs]
             [mobile.components.app :as app]
             [mobile.events]
             [mobile.init :as init]
@@ -54,7 +53,6 @@
            (reset! *route-timeout
                    (js/setTimeout #(route-handler/set-route-match! route) 200)))
 
-         (bottom-tabs/show!)
          (case route-name
            :page
            (let [id-str (get-in route [:path-params :name])]

+ 0 - 1
src/main/mobile/deeplink.cljs

@@ -11,7 +11,6 @@
             [frontend.util.text :as text-util]
             [goog :refer [Uri]]
             [logseq.common.util :as common-util]
-            [mobile.state :as mobile-state]
             [promesa.core :as p]))
 
 (def *link-to-another-graph (atom false))

+ 0 - 2
src/main/mobile/init.cljs

@@ -13,9 +13,7 @@
             [frontend.util :as util]
             [lambdaisland.glogi :as log]
             [logseq.shui.dialog.core :as shui-dialog]
-            [mobile.components.ui :as cc-ui]
             [mobile.deeplink :as deeplink]
-            [mobile.state :as mobile-state]
             [promesa.core :as p]))
 
 ;; FIXME: `appUrlOpen` are fired twice when receiving a same intent.