mirror of
https://github.com/penpot/penpot.git
synced 2025-07-25 18:57:13 +02:00
✨ Fix linter issues on frontend (part 2).
This commit is contained in:
parent
e90185b553
commit
3e4e54870b
41 changed files with 276 additions and 401 deletions
|
@ -9,7 +9,6 @@
|
|||
["react-dom/server" :as rds]
|
||||
[app.config :as cfg]
|
||||
[app.main.exports :as exports]
|
||||
[app.main.exports :as svg]
|
||||
[app.main.fonts :as fonts]
|
||||
[app.util.http :as http]
|
||||
[beicon.core :as rx]
|
||||
|
@ -31,16 +30,13 @@
|
|||
[]))
|
||||
|
||||
(defn populate-images-cache
|
||||
([data]
|
||||
(populate-images-cache data nil))
|
||||
|
||||
([data {:keys [resolve-media?] :or {resolve-media? false}}]
|
||||
(let [images (->> (:objects data)
|
||||
(vals)
|
||||
(mapcat get-image-data))]
|
||||
(->> (rx/from images)
|
||||
(rx/map #(cfg/resolve-file-media %))
|
||||
(rx/flat-map http/fetch-data-uri)))))
|
||||
[data]
|
||||
(let [images (->> (:objects data)
|
||||
(vals)
|
||||
(mapcat get-image-data))]
|
||||
(->> (rx/from images)
|
||||
(rx/map #(cfg/resolve-file-media %))
|
||||
(rx/flat-map http/fetch-data-uri))))
|
||||
|
||||
(defn populate-fonts-cache [data]
|
||||
(let [texts (->> (:objects data)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue