mirror of
https://github.com/penpot/penpot.git
synced 2025-05-13 21:36:38 +02:00
✨ Add the ability to embed assets on export binfile
This commit is contained in:
parent
6b8ab7aa72
commit
50f30eb12f
3 changed files with 80 additions and 11 deletions
|
@ -267,7 +267,8 @@
|
|||
[{:keys [pool] :as cfg} {:keys [params profile-id] :as request}]
|
||||
(let [file-id (some-> params :file-id parse-uuid)
|
||||
libs? (contains? params :includelibs)
|
||||
clone? (contains? params :clone)]
|
||||
clone? (contains? params :clone)
|
||||
embed? (contains? params :embedassets)]
|
||||
|
||||
(when-not file-id
|
||||
(ex/raise :type :validation
|
||||
|
@ -275,6 +276,7 @@
|
|||
|
||||
(let [path (-> cfg
|
||||
(assoc ::binf/file-id file-id)
|
||||
(assoc ::binf/embed-assets? embed?)
|
||||
(assoc ::binf/include-libraries? libs?)
|
||||
(binf/export!))]
|
||||
(if clone?
|
||||
|
@ -283,6 +285,7 @@
|
|||
(assoc cfg
|
||||
::binf/input path
|
||||
::binf/overwrite? false
|
||||
::binf/ignore-index-errors? true
|
||||
::binf/profile-id profile-id
|
||||
::binf/project-id project-id))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue