mirror of
https://github.com/penpot/penpot.git
synced 2025-06-07 12:21:38 +02:00
✨ Export library components
This commit is contained in:
parent
234a698538
commit
9b9959da9a
5 changed files with 183 additions and 44 deletions
|
@ -82,6 +82,7 @@
|
|||
|
||||
;; Used for export
|
||||
["/render-object/:file-id/:page-id/:object-id" :render-object]
|
||||
["/render-sprite/:file-id" :render-sprite]
|
||||
|
||||
["/dashboard/team/:team-id"
|
||||
["/members" :dashboard-team-members]
|
||||
|
@ -172,6 +173,14 @@
|
|||
:page-id page-id
|
||||
:object-id object-id}]))
|
||||
|
||||
:render-sprite
|
||||
(do
|
||||
(let [file-id (uuid (get-in route [:path-params :file-id]))
|
||||
component-id (get-in route [:query-params :component-id])
|
||||
component-id (when (some? component-id) (uuid component-id))]
|
||||
[:& render/render-sprite {:file-id file-id
|
||||
:component-id component-id}]))
|
||||
|
||||
:workspace
|
||||
(let [project-id (some-> params :path :project-id uuid)
|
||||
file-id (some-> params :path :file-id uuid)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue