mirror of
https://github.com/penpot/penpot.git
synced 2025-03-14 08:41:48 -05:00
Integrate new messages component on login and dashboard.
This commit is contained in:
parent
8404eafbae
commit
69d903f5f8
2 changed files with 12 additions and 19 deletions
|
@ -7,6 +7,7 @@
|
||||||
[uxbox.rstore :as rs]
|
[uxbox.rstore :as rs]
|
||||||
[uxbox.data.auth :as da]
|
[uxbox.data.auth :as da]
|
||||||
[uxbox.ui.icons :as i]
|
[uxbox.ui.icons :as i]
|
||||||
|
[uxbox.ui.messages :as uum]
|
||||||
[uxbox.ui.navigation :as nav]
|
[uxbox.ui.navigation :as nav]
|
||||||
[uxbox.ui.mixins :as mx]))
|
[uxbox.ui.mixins :as mx]))
|
||||||
|
|
||||||
|
@ -22,6 +23,7 @@
|
||||||
(html
|
(html
|
||||||
[:div.login
|
[:div.login
|
||||||
[:div.login-body
|
[:div.login-body
|
||||||
|
(uum/messages)
|
||||||
[:a i/logo]
|
[:a i/logo]
|
||||||
[:div.login-content
|
[:div.login-content
|
||||||
[:input.input-text
|
[:input.input-text
|
||||||
|
|
|
@ -7,6 +7,7 @@
|
||||||
[uxbox.ui.mixins :as mx]
|
[uxbox.ui.mixins :as mx]
|
||||||
[uxbox.util.dom :as dom]
|
[uxbox.util.dom :as dom]
|
||||||
[uxbox.data.dashboard :as dd]
|
[uxbox.data.dashboard :as dd]
|
||||||
|
[uxbox.ui.messages :as uum]
|
||||||
[uxbox.ui.library-bar :as ui.library-bar]
|
[uxbox.ui.library-bar :as ui.library-bar]
|
||||||
[uxbox.ui.dashboard.header :refer (header)]
|
[uxbox.ui.dashboard.header :refer (header)]
|
||||||
[uxbox.ui.dashboard.projects :as projects]
|
[uxbox.ui.dashboard.projects :as projects]
|
||||||
|
@ -14,25 +15,15 @@
|
||||||
[uxbox.ui.dashboard.icons :as icons]
|
[uxbox.ui.dashboard.icons :as icons]
|
||||||
[uxbox.ui.dashboard.colors :as colors]))
|
[uxbox.ui.dashboard.colors :as colors]))
|
||||||
|
|
||||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||||
;; Messages
|
|
||||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
||||||
(defn messages-render
|
|
||||||
[]
|
|
||||||
(html
|
|
||||||
[:div.message.error.hide
|
|
||||||
[:div.message-body
|
|
||||||
[:span.close i/close]
|
|
||||||
[:span "Something wrong has happened"]]]))
|
|
||||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
||||||
;; Page: projects
|
;; Page: projects
|
||||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||||
|
|
||||||
(defn projects-page-render
|
(defn projects-page-render
|
||||||
[own]
|
[own]
|
||||||
(html
|
(html
|
||||||
[:main.dashboard-main
|
[:main.dashboard-main
|
||||||
(messages-render)
|
(uum/messages)
|
||||||
(header)
|
(header)
|
||||||
[:section.dashboard-content
|
[:section.dashboard-content
|
||||||
(projects/menu)
|
(projects/menu)
|
||||||
|
@ -56,9 +47,9 @@
|
||||||
:name "projects-page"
|
:name "projects-page"
|
||||||
:mixins [rum/static]}))
|
:mixins [rum/static]}))
|
||||||
|
|
||||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||||
;; Page: elements
|
;; Page: elements
|
||||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||||
|
|
||||||
(defn elements-page-render
|
(defn elements-page-render
|
||||||
[own]
|
[own]
|
||||||
|
@ -89,9 +80,9 @@
|
||||||
:name "elements-page"
|
:name "elements-page"
|
||||||
:mixins [mx/static]}))
|
:mixins [mx/static]}))
|
||||||
|
|
||||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||||
;; Page: icons
|
;; Page: icons
|
||||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||||
|
|
||||||
(defn icons-page-render
|
(defn icons-page-render
|
||||||
[own]
|
[own]
|
||||||
|
@ -120,9 +111,9 @@
|
||||||
:name "icons-page"
|
:name "icons-page"
|
||||||
:mixins [mx/static]}))
|
:mixins [mx/static]}))
|
||||||
|
|
||||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||||
;; Page: colors
|
;; Page: colors
|
||||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||||
|
|
||||||
(defn colors-page-render
|
(defn colors-page-render
|
||||||
[own]
|
[own]
|
||||||
|
|
Loading…
Add table
Reference in a new issue