mirror of
https://github.com/penpot/penpot.git
synced 2025-08-06 07:18:25 +02:00
Remove ^:const from projects ui code.
This commit is contained in:
parent
3f4ed6faa5
commit
af2deea11d
1 changed files with 13 additions and 13 deletions
|
@ -28,13 +28,13 @@
|
||||||
|
|
||||||
;; --- Helpers & Constants
|
;; --- Helpers & Constants
|
||||||
|
|
||||||
(def ^:const ^:private
|
(def ^:private +project-defaults+
|
||||||
+project-defaults+ {:name ""
|
{:name ""
|
||||||
:width 1920
|
:width 1920
|
||||||
:height 1080
|
:height 1080
|
||||||
:layout "desktop"})
|
:layout "desktop"})
|
||||||
|
|
||||||
(def ^:const +layouts+
|
(def +layouts+
|
||||||
{"mobile"
|
{"mobile"
|
||||||
{:name "Mobile"
|
{:name "Mobile"
|
||||||
:id "mobile"
|
:id "mobile"
|
||||||
|
@ -56,21 +56,21 @@
|
||||||
:width 1920
|
:width 1920
|
||||||
:height 1080}})
|
:height 1080}})
|
||||||
|
|
||||||
(def ^:const +ordering-options+
|
(def +ordering-options+
|
||||||
{:name "ds.project-ordering.by-name"
|
{:name "ds.project-ordering.by-name"
|
||||||
:created "ds.project-ordering.by-creation-date"})
|
:created "ds.project-ordering.by-creation-date"})
|
||||||
|
|
||||||
;; --- Lenses
|
;; --- Lenses
|
||||||
|
|
||||||
(def ^:const projects-by-id-l
|
(def projects-by-id-l
|
||||||
(as-> (l/key :projects-by-id) $
|
(as-> (l/key :projects-by-id) $
|
||||||
(l/focus-atom $ s/state)))
|
(l/focus-atom $ s/state)))
|
||||||
|
|
||||||
(def ^:const project-ordering-l
|
(def project-ordering-l
|
||||||
(as-> (l/in [:dashboard :project-order]) $
|
(as-> (l/in [:dashboard :project-order]) $
|
||||||
(l/focus-atom $ s/state)))
|
(l/focus-atom $ s/state)))
|
||||||
|
|
||||||
(def ^:const project-filtering-l
|
(def project-filtering-l
|
||||||
(as-> (l/in [:dashboard :project-filter]) $
|
(as-> (l/in [:dashboard :project-filter]) $
|
||||||
(l/focus-atom $ s/state)))
|
(l/focus-atom $ s/state)))
|
||||||
|
|
||||||
|
@ -96,7 +96,7 @@
|
||||||
:value option-value}
|
:value option-value}
|
||||||
option-text])]])))
|
option-text])]])))
|
||||||
|
|
||||||
(def ^:const ^:private sort-widget
|
(def ^:private sort-widget
|
||||||
(mx/component
|
(mx/component
|
||||||
{:render sort-widget-render
|
{:render sort-widget-render
|
||||||
:name "sort-widget-render"
|
:name "sort-widget-render"
|
||||||
|
@ -125,7 +125,7 @@
|
||||||
{:on-click on-clear}
|
{:on-click on-clear}
|
||||||
i/close]])))
|
i/close]])))
|
||||||
|
|
||||||
(def ^:const ^:private search-widget
|
(def ^:private search-widget
|
||||||
(mx/component
|
(mx/component
|
||||||
{:render search-widget-render
|
{:render search-widget-render
|
||||||
:name "search-widget"
|
:name "search-widget"
|
||||||
|
@ -180,7 +180,7 @@
|
||||||
{:on-click on-delete}
|
{:on-click on-delete}
|
||||||
i/trash]]])))
|
i/trash]]])))
|
||||||
|
|
||||||
(def ^:const ^:private grid-item
|
(def ^:private grid-item
|
||||||
(mx/component
|
(mx/component
|
||||||
{:render grid-item-render
|
{:render grid-item-render
|
||||||
:name "grid-item"
|
:name "grid-item"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue