Created
November 15, 2016 15:46
-
-
Save micha/9c970a771f4a5b5dd547d8b13b655a29 to your computer and use it in GitHub Desktop.
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
(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.advertisers.creatives :as creatives] | |
[app.ui.inventory.adtypes :as adtypes] | |
[app.ui.inventory.sites :as sites] | |
[app.ui.inventory.site-codes :as site-codes] | |
[app.ui.inventory.sites-by-channel :as sites-by-channel] | |
[app.ui.inventory.zones :as zones] | |
[app.ui.inventory.channels :as channels] | |
[app.ui.inventory.priorities :as priorities] | |
[app.ui.campaigns.all-campaigns :as campaigns] | |
[app.ui.campaigns.advertiser-campaigns :as advertiser-campaigns] | |
[app.ui.campaigns.flights :as flights] | |
[app.ui.campaigns.flights.edit :as flight-edit] | |
[app.ui.campaigns.advertisers :as advertisers] | |
[app.ui.reports.new-report :as new-report] | |
[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) | |
(site-codes/index) | |
(sites-by-channel/index) | |
(zones/index) | |
(channels/index) | |
(priorities/index) | |
(adtypes/index) | |
(campaigns/index) | |
(advertisers/index) | |
(advertiser-campaigns/index) | |
(creatives/index) | |
(flights/index) | |
(flight-edit/index) | |
(new-report/index))))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment