2016-06-14 17:39:44 +03:00
|
|
|
;; This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
;; License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
;; file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
;;
|
2020-03-11 09:20:12 +01:00
|
|
|
;; This Source Code Form is "Incompatible With Secondary Licenses", as
|
|
|
|
;; defined by the Mozilla Public License, v. 2.0.
|
|
|
|
;;
|
|
|
|
;; Copyright (c) 2016-2020 Andrey Antukh <niwi@niwi.nz>
|
2016-06-14 17:39:44 +03:00
|
|
|
|
2020-03-11 09:20:12 +01:00
|
|
|
(ns uxbox.config
|
|
|
|
(:require [goog.object :as gobj]))
|
2016-07-29 13:45:00 +03:00
|
|
|
|
2020-03-11 17:21:07 +01:00
|
|
|
(defn- get-current-origin
|
|
|
|
[]
|
|
|
|
(let [location (gobj/get goog.global "location")]
|
|
|
|
(gobj/get location "origin")))
|
|
|
|
|
|
|
|
(let [config (gobj/get goog.global "uxboxConfig")
|
2020-03-12 09:28:40 +01:00
|
|
|
public-url (gobj/get config "publicURL" "http://localhost:6060")]
|
2020-03-11 17:21:07 +01:00
|
|
|
|
2020-03-11 09:20:12 +01:00
|
|
|
(def default-language "en")
|
2020-03-11 17:21:07 +01:00
|
|
|
(def demo-warning (gobj/get config "demoWarning" true))
|
2020-04-08 11:57:29 +03:00
|
|
|
(def url public-url)
|
2020-04-13 14:21:13 +02:00
|
|
|
(def default-theme "default"))
|