mirror of
https://github.com/penpot/penpot.git
synced 2025-07-26 03:27:20 +02:00
🐛 Fix compatibility issue with penpot 2.7
This commit is contained in:
parent
89a09346a5
commit
9fee16f4a9
3 changed files with 7 additions and 0 deletions
|
@ -18,6 +18,7 @@
|
|||
[app.common.geom.shapes :as gsh]
|
||||
[app.common.schema :as sm]
|
||||
[app.common.svg :as csvg]
|
||||
[app.common.time :as dt]
|
||||
[app.common.types.color :as types.color]
|
||||
[app.common.types.component :as types.comp]
|
||||
[app.common.types.container :as types.cont]
|
||||
|
@ -575,6 +576,7 @@
|
|||
:size (get blob :size)})
|
||||
(update ::file-media assoc id
|
||||
{:id id
|
||||
:created-at (dt/now)
|
||||
:name name
|
||||
:width width
|
||||
:height height
|
||||
|
|
|
@ -5,6 +5,7 @@
|
|||
- Fix incorrect boolean type assignation
|
||||
- Fix fill and stroke handling on boolean shape creation
|
||||
- Add sample-bool.js to the playground directory
|
||||
- Fix compatibility issue on file media with penpot 2.7.x
|
||||
|
||||
## 1.0.1
|
||||
|
||||
|
|
|
@ -41,6 +41,9 @@
|
|||
(def ^:private encode-component
|
||||
(sm/encoder types.component/schema:component sm/json-transformer))
|
||||
|
||||
(def encode-file-media
|
||||
(sm/encoder types.file/schema:media sm/json-transformer))
|
||||
|
||||
(def encode-color
|
||||
(sm/encoder types.color/schema:color sm/json-transformer))
|
||||
|
||||
|
@ -175,6 +178,7 @@
|
|||
[(str "files/" (:file-id file-media) "/media/" file-media-id ".json")
|
||||
(delay (-> file-media
|
||||
(dissoc :file-id)
|
||||
(encode-file-media)
|
||||
(json/encode)))]))))))
|
||||
|
||||
(defn- generate-manifest-procs
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue