mirror of
https://github.com/penpot/penpot.git
synced 2025-05-18 23:46:11 +02:00
Simplify initialization of main app.
This commit is contained in:
parent
74bcdd2507
commit
768004aed8
2 changed files with 2 additions and 7 deletions
|
@ -8,12 +8,10 @@
|
||||||
(:require [uxbox.store :as st]
|
(:require [uxbox.store :as st]
|
||||||
[uxbox.main.locales :as lc]
|
[uxbox.main.locales :as lc]
|
||||||
[uxbox.main.ui :as ui]
|
[uxbox.main.ui :as ui]
|
||||||
[uxbox.main.state :refer [initial-state]]
|
[uxbox.main.state :refer [initial-state]]))
|
||||||
[uxbox.util.storage :refer [storage]]))
|
|
||||||
|
|
||||||
(defn ^:export init
|
(defn ^:export init
|
||||||
[]
|
[]
|
||||||
(lc/init)
|
(lc/init)
|
||||||
(st/init initial-state)
|
(st/init initial-state)
|
||||||
(ui/init-routes)
|
|
||||||
(ui/init))
|
(ui/init))
|
||||||
|
|
|
@ -164,12 +164,9 @@
|
||||||
|
|
||||||
;; --- Main Entry Point
|
;; --- Main Entry Point
|
||||||
|
|
||||||
(defn init-routes
|
|
||||||
[]
|
|
||||||
(rt/init routes))
|
|
||||||
|
|
||||||
(defn init
|
(defn init
|
||||||
[]
|
[]
|
||||||
|
(rt/init routes))
|
||||||
(mx/mount (app) (dom/get-element "app"))
|
(mx/mount (app) (dom/get-element "app"))
|
||||||
(mx/mount (lightbox) (dom/get-element "lightbox"))
|
(mx/mount (lightbox) (dom/get-element "lightbox"))
|
||||||
(mx/mount (loader) (dom/get-element "loader")))
|
(mx/mount (loader) (dom/get-element "loader")))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue