improve(pdf): persist highlights data as edn file

This commit is contained in:
charlie
2021-07-26 12:02:28 +08:00
parent 922d5a5bce
commit cb05f431f5
3 changed files with 34 additions and 13 deletions

View File

@@ -3,6 +3,7 @@
[cljs-bean.core :as bean]
[frontend.util :as front-utils]
["/frontend/extensions/pdf/utils" :as js-utils]
[frontend.db :as front-db]
[frontend.loader :refer [load]]))
(defonce MAX-SCALE 5.0)
@@ -96,6 +97,9 @@
(str (.toString (js/Date.now) 36)
(.. (js/Math.random) (toString 36) (substr 2 4))))
(defn gen-uuid []
(front-db/new-block-id))
(defn js-load$
[url]
(p/create