mirror of
https://github.com/penpot/penpot.git
synced 2025-05-11 14:16:39 +02:00
Remove unused template code from elements.
This commit is contained in:
parent
68fe5eff36
commit
13c20acaa6
1 changed files with 29 additions and 136 deletions
|
@ -165,149 +165,42 @@
|
||||||
|
|
||||||
(defn- new-element-lightbox-render
|
(defn- new-element-lightbox-render
|
||||||
[own]
|
[own]
|
||||||
(html
|
#_(html
|
||||||
;;------Element lightbox
|
;;------Element lightbox
|
||||||
|
|
||||||
;;[:div.lightbox-body
|
;;[:div.lightbox-body
|
||||||
;;[:h3 "New element"]
|
;;[:h3 "New element"]
|
||||||
;;[:div.row-flex
|
;;[:div.row-flex
|
||||||
;;[:div.lightbox-big-btn
|
;;[:div.lightbox-big-btn
|
||||||
;;[:span.big-svg i/shapes]
|
;;[:span.big-svg i/shapes]
|
||||||
;;[:span.text "Go to workspace"]]
|
;;[:span.text "Go to workspace"]]
|
||||||
;;[:div.lightbox-big-btn
|
;;[:div.lightbox-big-btn
|
||||||
;;[:span.big-svg.upload i/exit]
|
;;[:span.big-svg.upload i/exit]
|
||||||
;;[:span.text "Upload file"]]]
|
;;[:span.text "Upload file"]]]
|
||||||
;;[:a.close {:href "#"
|
;;[:a.close {:href "#"
|
||||||
;;:on-click #(do (dom/prevent-default %)
|
;;:on-click #(do (dom/prevent-default %)
|
||||||
;;(udl/close!))}
|
;;(udl/close!))}
|
||||||
;;i/close]]
|
;;i/close]]
|
||||||
|
|
||||||
;;------Upload image lightbox
|
;;------Upload image lightbox
|
||||||
|
|
||||||
;;[:div.lightbox-body
|
;;[:div.lightbox-body
|
||||||
;;[:h3 "Import image"]
|
;;[:h3 "Import image"]
|
||||||
;;[:div.row-flex
|
;;[:div.row-flex
|
||||||
;;[:div.lightbox-big-btn
|
;;[:div.lightbox-big-btn
|
||||||
;;[:span.big-svg i/image]
|
;;[:span.big-svg i/image]
|
||||||
;;[:span.text "Select from library"]]
|
;;[:span.text "Select from library"]]
|
||||||
;;[:div.lightbox-big-btn
|
;;[:div.lightbox-big-btn
|
||||||
;;[:span.big-svg.upload i/exit]
|
;;[:span.big-svg.upload i/exit]
|
||||||
;;[:span.text "Upload file"]]]
|
;;[:span.text "Upload file"]]]
|
||||||
;;[:a.close {:href "#"
|
;;[:a.close {:href "#"
|
||||||
;;:on-click #(do (dom/prevent-default %)
|
;;:on-click #(do (dom/prevent-default %)
|
||||||
;;(udl/close!))}
|
;;(udl/close!))}
|
||||||
;;i/close]]
|
;;i/close]]
|
||||||
|
|
||||||
;;------Upload image library lightbox
|
;;------Upload image library lightbox
|
||||||
|
|
||||||
[:div.lightbox-body.big-lightbox
|
))
|
||||||
[:h3 "Import image from library"]
|
|
||||||
[:div.import-img-library
|
|
||||||
[:div.library-actions
|
|
||||||
[:ul.toggle-library
|
|
||||||
[:li.standard.current "STANDARD"]
|
|
||||||
[:li.your-images "YOUR IMAGES"]]
|
|
||||||
[:select.input-select
|
|
||||||
[:option "Library 1"]
|
|
||||||
[:option "Library 2"]
|
|
||||||
[:option "Library 3"]
|
|
||||||
[:option "Library 4"]
|
|
||||||
[:option "Library 5"]
|
|
||||||
[:option "Library 6"]]]
|
|
||||||
|
|
||||||
[:div.library-content
|
|
||||||
|
|
||||||
[:div.library-item
|
|
||||||
[:div.library-item-th
|
|
||||||
{:style
|
|
||||||
{:background-image "url('https://images.unsplash.com/photo-1441986380878-c4248f5b8b5b?ixlib=rb-0.3.5&q=80&fm=jpg&crop=entropy&w=1080&fit=max&s=486f09671860a11e70bdd0a45e7c5014')"}}]
|
|
||||||
[:span "image_name.jpg"]]
|
|
||||||
|
|
||||||
[:div.library-item
|
|
||||||
[:div.library-item-th
|
|
||||||
{:style
|
|
||||||
{:background-image "url('https://images.unsplash.com/photo-1441986380878-c4248f5b8b5b?ixlib=rb-0.3.5&q=80&fm=jpg&crop=entropy&w=1080&fit=max&s=486f09671860a11e70bdd0a45e7c5014')"}}]
|
|
||||||
[:span "image_name.jpg"]]
|
|
||||||
|
|
||||||
[:div.library-item
|
|
||||||
[:div.library-item-th
|
|
||||||
{:style
|
|
||||||
{:background-image "url('https://images.unsplash.com/photo-1441986380878-c4248f5b8b5b?ixlib=rb-0.3.5&q=80&fm=jpg&crop=entropy&w=1080&fit=max&s=486f09671860a11e70bdd0a45e7c5014')"}}]
|
|
||||||
[:span "image_name.jpg"]]
|
|
||||||
|
|
||||||
[:div.library-item
|
|
||||||
[:div.library-item-th
|
|
||||||
{:style
|
|
||||||
{:background-image "url('https://images.unsplash.com/photo-1441986380878-c4248f5b8b5b?ixlib=rb-0.3.5&q=80&fm=jpg&crop=entropy&w=1080&fit=max&s=486f09671860a11e70bdd0a45e7c5014')"}}]
|
|
||||||
[:span "image_name.jpg"]]
|
|
||||||
|
|
||||||
[:div.library-item
|
|
||||||
[:div.library-item-th
|
|
||||||
{:style
|
|
||||||
{:background-image "url('https://images.unsplash.com/photo-1441986380878-c4248f5b8b5b?ixlib=rb-0.3.5&q=80&fm=jpg&crop=entropy&w=1080&fit=max&s=486f09671860a11e70bdd0a45e7c5014')"}}]
|
|
||||||
[:span "image_name.jpg"]]
|
|
||||||
|
|
||||||
[:div.library-item
|
|
||||||
[:div.library-item-th
|
|
||||||
{:style
|
|
||||||
{:background-image "url('https://images.unsplash.com/photo-1441986380878-c4248f5b8b5b?ixlib=rb-0.3.5&q=80&fm=jpg&crop=entropy&w=1080&fit=max&s=486f09671860a11e70bdd0a45e7c5014')"}}]
|
|
||||||
[:span "image_name.jpg"]]
|
|
||||||
|
|
||||||
[:div.library-item
|
|
||||||
[:div.library-item-th
|
|
||||||
{:style
|
|
||||||
{:background-image "url('https://images.unsplash.com/photo-1441986380878-c4248f5b8b5b?ixlib=rb-0.3.5&q=80&fm=jpg&crop=entropy&w=1080&fit=max&s=486f09671860a11e70bdd0a45e7c5014')"}}]
|
|
||||||
[:span "image_name.jpg"]]
|
|
||||||
|
|
||||||
[:div.library-item
|
|
||||||
[:div.library-item-th
|
|
||||||
{:style
|
|
||||||
{:background-image "url('https://images.unsplash.com/photo-1441986380878-c4248f5b8b5b?ixlib=rb-0.3.5&q=80&fm=jpg&crop=entropy&w=1080&fit=max&s=486f09671860a11e70bdd0a45e7c5014')"}}]
|
|
||||||
[:span "image_name.jpg"]]
|
|
||||||
|
|
||||||
[:div.library-item
|
|
||||||
[:div.library-item-th
|
|
||||||
{:style
|
|
||||||
{:background-image "url('https://images.unsplash.com/photo-1441986380878-c4248f5b8b5b?ixlib=rb-0.3.5&q=80&fm=jpg&crop=entropy&w=1080&fit=max&s=486f09671860a11e70bdd0a45e7c5014')"}}]
|
|
||||||
[:span "image_name.jpg"]]
|
|
||||||
|
|
||||||
[:div.library-item
|
|
||||||
[:div.library-item-th
|
|
||||||
{:style
|
|
||||||
{:background-image "url('https://images.unsplash.com/photo-1441986380878-c4248f5b8b5b?ixlib=rb-0.3.5&q=80&fm=jpg&crop=entropy&w=1080&fit=max&s=486f09671860a11e70bdd0a45e7c5014')"}}]
|
|
||||||
[:span "image_name.jpg"]]
|
|
||||||
|
|
||||||
[:div.library-item
|
|
||||||
[:div.library-item-th
|
|
||||||
{:style
|
|
||||||
{:background-image "url('https://images.unsplash.com/photo-1441986380878-c4248f5b8b5b?ixlib=rb-0.3.5&q=80&fm=jpg&crop=entropy&w=1080&fit=max&s=486f09671860a11e70bdd0a45e7c5014')"}}]
|
|
||||||
[:span "image_name.jpg"]]
|
|
||||||
|
|
||||||
[:div.library-item
|
|
||||||
[:div.library-item-th
|
|
||||||
{:style
|
|
||||||
{:background-image "url('https://images.unsplash.com/photo-1441986380878-c4248f5b8b5b?ixlib=rb-0.3.5&q=80&fm=jpg&crop=entropy&w=1080&fit=max&s=486f09671860a11e70bdd0a45e7c5014')"}}]
|
|
||||||
[:span "image_name.jpg"]]
|
|
||||||
|
|
||||||
[:div.library-item
|
|
||||||
[:div.library-item-th
|
|
||||||
{:style
|
|
||||||
{:background-image "url('https://images.unsplash.com/photo-1441986380878-c4248f5b8b5b?ixlib=rb-0.3.5&q=80&fm=jpg&crop=entropy&w=1080&fit=max&s=486f09671860a11e70bdd0a45e7c5014')"}}]
|
|
||||||
[:span "image_name.jpg"]]
|
|
||||||
|
|
||||||
[:div.library-item
|
|
||||||
[:div.library-item-th
|
|
||||||
{:style
|
|
||||||
{:background-image "url('https://images.unsplash.com/photo-1441986380878-c4248f5b8b5b?ixlib=rb-0.3.5&q=80&fm=jpg&crop=entropy&w=1080&fit=max&s=486f09671860a11e70bdd0a45e7c5014')"}}]
|
|
||||||
[:span "image_name.jpg"]]
|
|
||||||
|
|
||||||
]]
|
|
||||||
[:a.close {:href "#"
|
|
||||||
:on-click #(do (dom/prevent-default %)
|
|
||||||
(udl/close!))}
|
|
||||||
i/close]]
|
|
||||||
|
|
||||||
))
|
|
||||||
|
|
||||||
(def ^:private new-element-lightbox
|
(def ^:private new-element-lightbox
|
||||||
(mx/component
|
(mx/component
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue