Skip to content
Permalink
2bbf460234
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
42 lines (28 sloc) 820 Bytes
(ns ulysses.config
(:require-macros [ulysses.env :as env])
(:require [clojure.string :as string]))
;; from environment ----
(env/def
google-analytics-code "UA-XXXXX-Y")
;; from closure defines ----
(def ^:export debug?
^boolean js/goog.DEBUG)
(when debug?
(enable-console-print!))
;; rest ----
(def hostname (-> js/window
.-location
.-hostname))
(def api-hostname
(if (or debug? (string/includes? hostname "staging"))
"http://ulysses-api-staging.core"
"http://ulysses-api-alpha.core"))
(def api-endpoint (str api-hostname "/api"))
(def login-endpoint (str api-hostname "/login"))
(def request-debounce-time 300)
(def site-title "Teambuilder")
(def load-from-bottom-at 700)
(def mechanism-contextuals
{:nih :success
:nsf :info
:ncbi :danger})