mirror of
https://github.com/penpot/penpot.git
synced 2025-12-11 22:14:05 +01:00
🐛 Fix compatibility issue with penpot 2.7
This commit is contained in:
@@ -18,6 +18,7 @@
|
|||||||
[app.common.geom.shapes :as gsh]
|
[app.common.geom.shapes :as gsh]
|
||||||
[app.common.schema :as sm]
|
[app.common.schema :as sm]
|
||||||
[app.common.svg :as csvg]
|
[app.common.svg :as csvg]
|
||||||
|
[app.common.time :as dt]
|
||||||
[app.common.types.color :as types.color]
|
[app.common.types.color :as types.color]
|
||||||
[app.common.types.component :as types.comp]
|
[app.common.types.component :as types.comp]
|
||||||
[app.common.types.container :as types.cont]
|
[app.common.types.container :as types.cont]
|
||||||
@@ -575,6 +576,7 @@
|
|||||||
:size (get blob :size)})
|
:size (get blob :size)})
|
||||||
(update ::file-media assoc id
|
(update ::file-media assoc id
|
||||||
{:id id
|
{:id id
|
||||||
|
:created-at (dt/now)
|
||||||
:name name
|
:name name
|
||||||
:width width
|
:width width
|
||||||
:height height
|
:height height
|
||||||
|
|||||||
@@ -5,6 +5,7 @@
|
|||||||
- Fix incorrect boolean type assignation
|
- Fix incorrect boolean type assignation
|
||||||
- Fix fill and stroke handling on boolean shape creation
|
- Fix fill and stroke handling on boolean shape creation
|
||||||
- Add sample-bool.js to the playground directory
|
- Add sample-bool.js to the playground directory
|
||||||
|
- Fix compatibility issue on file media with penpot 2.7.x
|
||||||
|
|
||||||
## 1.0.1
|
## 1.0.1
|
||||||
|
|
||||||
|
|||||||
@@ -41,6 +41,9 @@
|
|||||||
(def ^:private encode-component
|
(def ^:private encode-component
|
||||||
(sm/encoder types.component/schema:component sm/json-transformer))
|
(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
|
(def encode-color
|
||||||
(sm/encoder types.color/schema:color sm/json-transformer))
|
(sm/encoder types.color/schema:color sm/json-transformer))
|
||||||
|
|
||||||
@@ -175,6 +178,7 @@
|
|||||||
[(str "files/" (:file-id file-media) "/media/" file-media-id ".json")
|
[(str "files/" (:file-id file-media) "/media/" file-media-id ".json")
|
||||||
(delay (-> file-media
|
(delay (-> file-media
|
||||||
(dissoc :file-id)
|
(dissoc :file-id)
|
||||||
|
(encode-file-media)
|
||||||
(json/encode)))]))))))
|
(json/encode)))]))))))
|
||||||
|
|
||||||
(defn- generate-manifest-procs
|
(defn- generate-manifest-procs
|
||||||
|
|||||||
Reference in New Issue
Block a user