Change to penpot file format and fixes

This commit is contained in:
alonso.torres 2021-06-17 10:59:25 +02:00 committed by Andrés Moya
parent 84a7ab8568
commit 7b4603e33e
7 changed files with 77 additions and 51 deletions

View file

@ -161,15 +161,15 @@
(->> (uw/ask-many!
{:cmd :export-file
:team-id current-team-id
:files files})
:files (->> files (mapv :id))})
(rx/subs
(fn [{:keys [type data] :as msg}]
(case type
(fn [msg]
(case (:type msg)
:progress
(prn "[Progress]" data)
(prn "[Progress]" (:data msg))
:finish
(dom/save-as data "export" "application/zip" "Export package (*.zip)"))))))]
(dom/trigger-download-uri (:filename msg) (:mtype msg) (:uri msg)))))))]
(mf/use-effect
(fn []