Permalink
Cannot retrieve contributors at this time
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?
ulysses-front/src/cljs/ulysses/config.cljs
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
38 lines (26 sloc)
732 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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-endpoint | |
(if (or debug? (string/includes? hostname "staging")) | |
"http://ulysses-api-staging.core/api" | |
"http://ulysses-api-alpha.core/api")) | |
(def request-debounce-time 300) | |
(def site-title "Teambuilder") | |
(def load-from-bottom-at 700) | |
(def mechanism-contextuals | |
{:nih :success | |
:nsf :info | |
:ncbi :danger}) |