mirror of
https://github.com/penpot/penpot.git
synced 2025-06-01 15:01:40 +02:00
WIP: restructure dashboard source.
This commit is contained in:
parent
031874d442
commit
feb00d83f8
8 changed files with 65 additions and 59 deletions
|
@ -8,9 +8,9 @@
|
|||
[uxbox.data.projects :as dp]
|
||||
[uxbox.ui.lightbox :as ui.lb]
|
||||
[uxbox.ui.users :as ui.users]
|
||||
[uxbox.ui.elements :as ui.elements]
|
||||
[uxbox.ui.workspace :as ui.w]
|
||||
[uxbox.ui.dashboard :as ui.dashboard]))
|
||||
[uxbox.ui.dashboard.projects :as ui.dashboard.projects]
|
||||
[uxbox.ui.dashboard.elements :as ui.dashboard.elements]
|
||||
[uxbox.ui.workspace :as ui.w]))
|
||||
|
||||
(def ^:static state
|
||||
(as-> (l/select-keys [:location :location-params]) $
|
||||
|
@ -24,10 +24,10 @@
|
|||
(ui.lb/lightbox)
|
||||
(case location
|
||||
:auth/login (ui.users/login)
|
||||
:main/dashboard (ui.dashboard/dashboard)
|
||||
:main/elements (ui.elements/elements)
|
||||
:main/icons (ui.elements/icons)
|
||||
:main/colors (ui.elements/colors)
|
||||
:dashboard/projects (ui.dashboard.projects/projects)
|
||||
:dashboard/elements (ui.dashboard.elements/elements)
|
||||
:dashboard/icons (ui.dashboard.elements/icons)
|
||||
:dashboard/colors (ui.dashboard.elements/colors)
|
||||
:main/page (let [projectid (:project-uuid location-params)
|
||||
pageid (:page-uuid location-params)]
|
||||
(ui.w/workspace projectid pageid))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue