|
|
@@ -6,7 +6,11 @@
|
|
|
[reitit.frontend.easy :as rfe]
|
|
|
[clojure.string :as string]
|
|
|
[frontend.handler.notification :as notification]
|
|
|
- [frontend.fs.capacitor-fs :as fs]))
|
|
|
+ [frontend.fs.capacitor-fs :as fs]
|
|
|
+ [frontend.handler.page :as page-handler]
|
|
|
+ [frontend.modules.shortcut.core :as shortcut]
|
|
|
+ [frontend.components.repo :as repo]
|
|
|
+ [frontend.handler.web.nfs :as nfs-handler]))
|
|
|
|
|
|
(defn init!
|
|
|
[]
|
|
|
@@ -39,4 +43,10 @@
|
|
|
(.addListener Keyboard "keyboardWillShow"
|
|
|
#(state/pub-event! [:mobile/keyboard-will-show]))
|
|
|
(.addListener Keyboard "keyboardDidShow"
|
|
|
- #(state/pub-event! [:mobile/keyboard-did-show]))))
|
|
|
+ #(state/pub-event! [:mobile/keyboard-did-show]))
|
|
|
+
|
|
|
+ (.addListener App "appStateChange"
|
|
|
+ #(let [repo (state/get-current-repo)]
|
|
|
+ (nfs-handler/refresh! repo repo/refresh-cb)
|
|
|
+ ;; (notification/show! "Notes updated!" :success true)
|
|
|
+ ))))
|