mirror of
https://github.com/penpot/penpot.git
synced 2025-08-01 07:39:07 +02:00
🎉 Make the build to be config independent.
Loading the configuration dinamically using global variables defined in index.html.
This commit is contained in:
parent
1ce46a0ef8
commit
c09f281f58
6 changed files with 38 additions and 21 deletions
|
@ -11,6 +11,7 @@
|
|||
(:require
|
||||
[cljs.spec.alpha :as s]
|
||||
[beicon.core :as rx]
|
||||
[goog.object :as gobj]
|
||||
[rumext.alpha :as mf]
|
||||
[uxbox.main.data.auth :refer [logout]]
|
||||
[uxbox.main.data.users :as udu]
|
||||
|
@ -66,11 +67,12 @@
|
|||
(def app-sym (.for js/Symbol "uxbox.app"))
|
||||
|
||||
(defn ^:export init
|
||||
[translations]
|
||||
(i18n/init! (js/JSON.parse translations))
|
||||
(unchecked-set js/window app-sym "main")
|
||||
(st/init)
|
||||
(init-ui))
|
||||
[]
|
||||
(let [translations (gobj/get goog.global "uxboxTranslations")]
|
||||
(i18n/init! translations)
|
||||
(unchecked-set js/window app-sym "main")
|
||||
(st/init)
|
||||
(init-ui)))
|
||||
|
||||
(defn reinit
|
||||
[]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue