Create a gist now

Instantly share code, notes, and snippets.

(page "index.html"
(:require
[cljs.reader :refer [read-string]]
[app.rpc :as rpc]
[app.routes :as routes]
[app.ui.nav :as nav]
[app.ui.login :as login]
[app.ui.loading :as loading]
[app.ui.inventory.adtypes :as adtypes]
[app.ui.inventory.sites :as sites]
[app.ui.inventory.channels :as channels]
[app.ui.inventory.priorities :as priorities]
[app.ui.inventory.sites-by-channel :as sites-by-channel]
[app.ui.campaigns.all-campaigns :as campaigns]
[app.ui.campaigns.flights :as flights]
[app.ui.campaigns.advertisers :as advertisers]
[app.ui.component :as component]
[ui.hacks :as hacks]
[ui.app :as app :include-macros true]))
(when-not prerendering?
(rpc/login)
(on-page-load #(.. js/location reload)))
(app/main
(if prerendering?
(div (loading/index))
(div (component/git-message)
(component/flash-message)
(component/version-message)
(rpc/when-loading
(loading/index))
(rpc/when-logged-out
(login/index))
(rpc/when-logged-in
(nav/index)
(sites/index)
(channels/index)
(sites-by-channel/index)
(priorities/index)
(adtypes/index)
(campaigns/index)
(flights/index)
(advertisers/index)))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment