0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-02-10 00:58:26 -05:00

start user settings structure

This commit is contained in:
elhombretecla 2016-03-02 18:17:05 +01:00
parent c7fd8570e3
commit 53fd03f2a8
4 changed files with 38 additions and 1 deletions

View file

@ -62,6 +62,7 @@
["auth/recover" :auth/recover-password]
["dashboard/" [["projects" :dashboard/projects]
["elements" :dashboard/elements]
["user-settings" :dashboard/user-settings]
["icons" :dashboard/icons]
["colors" :dashboard/colors]]]
["workspace/" [[page-route :workspace/page]]]]])

View file

@ -46,6 +46,7 @@
:dashboard/elements (ui-dashboard/elements-page)
:dashboard/icons (ui-dashboard/icons-page)
:dashboard/colors (ui-dashboard/colors-page)
:dashboard/user-settings (ui-dashboard/user-settings-page)
:workspace/page (let [projectid (:project-uuid params)
pageid (:page-uuid params)]
(workspace projectid pageid))

View file

@ -139,3 +139,36 @@
:transfer-state colors-page-transfer-state
:name "colors"
:mixins [mx/static]}))
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Page: User settings
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(defn user-settings-page-render
[own]
(html
[:main.dashboard-main
(header)
[:section.dashboard-content
(ui.library-bar/library-bar)
[:section.dashboard-grid.library
(elements/page-title)
(elements/grid)]]]))
(defn user-settings-page-will-mount
[own]
(rs/emit! (dd/initialize :dashboard/user-settings))
own)
(defn user-settings-page-transfer-state
[old-state state]
(rs/emit! (dd/initialize :dashboard/user-settings))
state)
(def ^:static user-settings-page
(mx/component
{:render user-settings-page-render
:will-mount user-settings-page-will-mount
:transfer-state user-settings-page-transfer-state
:name "user-settings-page"
:mixins [mx/static]}))

View file

@ -17,7 +17,9 @@
(defn menu-render
[own open?]
(let [open-settings-dialog #(lightbox/open! :settings)]
(let [open-settings-dialog #(lightbox/open! :settings)
;;open-user-settings #(dashboard/user-settings-page/open! :user-settings)
]
(html
[:ul.dropdown {:class (when-not open?
"hide")}