mirror of
https://github.com/penpot/penpot.git
synced 2025-06-07 12:01:38 +02:00
⬆️ Upgrade to beicon2 (part1)
This commit is contained in:
parent
ecee15af5b
commit
96f5a33f5f
151 changed files with 482 additions and 433 deletions
|
@ -9,7 +9,7 @@
|
|||
(:require
|
||||
["jszip" :as zip]
|
||||
[app.util.http :as http]
|
||||
[beicon.core :as rx]
|
||||
[beicon.v2.core :as rx]
|
||||
[promesa.core :as p]))
|
||||
|
||||
(defn compress-files
|
||||
|
@ -29,7 +29,7 @@
|
|||
:response-type :blob
|
||||
:method :get})
|
||||
(rx/map :body)
|
||||
(rx/flat-map zip/loadAsync)))
|
||||
(rx/merge-map zip/loadAsync)))
|
||||
|
||||
(defn- process-file
|
||||
[entry path type]
|
||||
|
@ -65,4 +65,4 @@
|
|||
(.forEach zip get-file)
|
||||
|
||||
(->> (rx/from (p/all @promises))
|
||||
(rx/flat-map identity))))
|
||||
(rx/merge-map identity))))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue