mirror of
https://github.com/penpot/penpot.git
synced 2025-03-16 01:31:22 -05:00
Remove ^:static meta usage.
This commit is contained in:
parent
d5df7eba3b
commit
65bce97486
18 changed files with 24 additions and 24 deletions
|
@ -7,7 +7,7 @@
|
|||
|
||||
(ns uxbox.main.library.colors)
|
||||
|
||||
(def ^:static +collections+
|
||||
(def +collections+
|
||||
[{:name "Generic 1"
|
||||
:id 1
|
||||
:builtin true
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
|
||||
(ns uxbox.main.library.images)
|
||||
|
||||
(def ^:static +collections+
|
||||
(def +collections+
|
||||
[{:name "Generic 1"
|
||||
:id 1
|
||||
:builtin true
|
||||
|
|
|
@ -201,8 +201,8 @@
|
|||
(update-in $ [:shapes-by-id sid] dissoc :group)
|
||||
(clear-empty-groups $ source)))))
|
||||
|
||||
(def ^:static drop-after #(drop-aside %1 :after %2 %3))
|
||||
(def ^:static drop-before #(drop-aside %1 :before %2 %3))
|
||||
(def drop-after #(drop-aside %1 :after %2 %3))
|
||||
(def drop-before #(drop-aside %1 :before %2 %3))
|
||||
|
||||
(defn drop-inside
|
||||
[state tid sid]
|
||||
|
|
|
@ -217,7 +217,7 @@
|
|||
|
||||
|
||||
|
||||
(def ^:static colorpicker
|
||||
(def colorpicker
|
||||
(mx/component
|
||||
{:render colorpicker-render
|
||||
:name "colorpicker"
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
[uxbox.main.ui.users :as ui.u]
|
||||
[uxbox.common.ui.mixins :as mx]))
|
||||
|
||||
(def ^:static header-l
|
||||
(def header-l
|
||||
(as-> (l/in [:dashboard]) $
|
||||
(l/focus-atom $ s/state)))
|
||||
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
|
||||
;; --- Lenses
|
||||
|
||||
(def ^:static dashboard-l
|
||||
(def dashboard-l
|
||||
(as-> (l/in [:dashboard]) $
|
||||
(l/focus-atom $ st/state)))
|
||||
|
||||
|
|
|
@ -77,7 +77,7 @@
|
|||
]
|
||||
]))
|
||||
|
||||
(def ^:static library-bar
|
||||
(def library-bar
|
||||
(mx/component
|
||||
{:render library-bar-render
|
||||
:name "library-bar"
|
||||
|
|
|
@ -35,7 +35,7 @@
|
|||
[:input.btn-primary {:type "submit" :value "Update settings"}]
|
||||
]]]))
|
||||
|
||||
(def ^:static notifications-page
|
||||
(def notifications-page
|
||||
(mx/component
|
||||
{:render notifications-page-render
|
||||
:name "notifications-page"
|
||||
|
|
|
@ -50,7 +50,7 @@
|
|||
|
||||
;; --- User Widget
|
||||
|
||||
(def ^:static profile-l
|
||||
(def profile-l
|
||||
(as-> (l/key :profile) $
|
||||
(l/focus-atom $ s/state)))
|
||||
|
||||
|
|
|
@ -30,7 +30,7 @@
|
|||
|
||||
;; TODO: move this lense under library ns.
|
||||
|
||||
(def ^:static ^:private collections-by-id-l
|
||||
(def ^:private collections-by-id-l
|
||||
(-> (comp (l/in [:colors-by-id])
|
||||
(ul/merge library/+color-collections-by-id+))
|
||||
(l/focus-atom st/state)))
|
||||
|
@ -90,7 +90,7 @@
|
|||
[:span.close-palette {:on-click close}
|
||||
i/close]]))))
|
||||
|
||||
(def ^:static colorpalette
|
||||
(def colorpalette
|
||||
(mx/component
|
||||
{:render colorpalette-render
|
||||
:name "colorpalette"
|
||||
|
|
|
@ -149,7 +149,7 @@
|
|||
(when (contains? flags :ruler)
|
||||
(overlay))))
|
||||
|
||||
(def ^:static ruler
|
||||
(def ruler
|
||||
(mx/component
|
||||
{:render ruler-render
|
||||
:name "ruler"
|
||||
|
|
|
@ -25,7 +25,7 @@
|
|||
;; Lenses
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
|
||||
(def ^:private ^:static drawing-shape
|
||||
(def ^:private drawing-shape
|
||||
"A focused vision of the drawing property
|
||||
of the workspace status. This avoids
|
||||
rerender the whole toolbox on each workspace
|
||||
|
@ -110,7 +110,7 @@
|
|||
:on-click (partial select-for-draw (:shape props))}
|
||||
(:icon props)])]])))
|
||||
|
||||
(def ^:static draw-toolbox
|
||||
(def draw-toolbox
|
||||
(mx/component
|
||||
{:render draw-tools-render
|
||||
:name "draw-tools"
|
||||
|
|
|
@ -145,7 +145,7 @@
|
|||
(history-pinned-list history)
|
||||
(history-list page history))]])))
|
||||
|
||||
(def ^:static history-toolbox
|
||||
(def history-toolbox
|
||||
(mx/component
|
||||
{:render history-toolbox-render
|
||||
:name "document-history-toolbox"
|
||||
|
|
|
@ -52,7 +52,7 @@
|
|||
[own icon]
|
||||
(icon/icon-svg icon))
|
||||
|
||||
(def ^:static ^:private icon-wrapper
|
||||
(def ^:private icon-wrapper
|
||||
(mx/component
|
||||
{:render icon-wrapper-render
|
||||
:name "icon-wrapper"
|
||||
|
@ -89,7 +89,7 @@
|
|||
:on-click #(on-select icon)}
|
||||
(icon-wrapper icon)])]])))
|
||||
|
||||
(def ^:static icons-toolbox
|
||||
(def icons-toolbox
|
||||
(mx/component
|
||||
{:render icons-render
|
||||
:name "icons-toolbox"
|
||||
|
|
|
@ -183,7 +183,7 @@
|
|||
[:div.element-icon (element-icon item)]
|
||||
[:span (:name item "Unnamed")]]]))))
|
||||
|
||||
(def ^:static ^:private layer-element
|
||||
(def ^:private layer-element
|
||||
(mx/component
|
||||
{:render layer-element-render
|
||||
:name "layer-element"
|
||||
|
@ -275,7 +275,7 @@
|
|||
(-> (layer-element shape selected)
|
||||
(rum/with-key key))))])]))))
|
||||
|
||||
(def ^:static ^:private layer-group
|
||||
(def ^:private layer-group
|
||||
(mx/component
|
||||
{:render layer-group-render
|
||||
:name "layer-group"
|
||||
|
@ -315,7 +315,7 @@
|
|||
[:li.degroup-layer {:on-click degroup} i/ungroup]
|
||||
[:li.delete-layer {:on-click delete} i/trash]]]])))
|
||||
|
||||
(def ^:static layers-toolbox
|
||||
(def layers-toolbox
|
||||
(mx/component
|
||||
{:render layers-render
|
||||
:name "layers"
|
||||
|
|
|
@ -124,7 +124,7 @@
|
|||
(if shape
|
||||
(options shape))]]])))
|
||||
|
||||
(def ^:static options-toolbox
|
||||
(def options-toolbox
|
||||
(mx/component
|
||||
{:render options-toolbox-render
|
||||
:name "options-toolbox"
|
||||
|
|
|
@ -95,7 +95,7 @@
|
|||
(-> (page-item page (count pages) active?)
|
||||
(rum/with-key (:id page))))]]])))
|
||||
|
||||
(def ^:static sitemap-toolbox
|
||||
(def sitemap-toolbox
|
||||
(mx/component
|
||||
{:render sitemap-toolbox-render
|
||||
:name "sitemap-toolbox"
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
(persistent!
|
||||
(reduce #(assoc! %1 (getter %2) %2) (transient {}) coll)))
|
||||
|
||||
(def ^:static index-by-id #(index-by % :id))
|
||||
(def index-by-id #(index-by % :id))
|
||||
|
||||
(defn remove-nil-vals
|
||||
"Given a map, return a map removing key-value
|
||||
|
|
Loading…
Add table
Reference in a new issue