Skip to content

Instantly share code, notes, and snippets.

@pbzdyl
Forked from micha/index.cljs.hl
Created May 8, 2017 06:01
Show Gist options
  • Save pbzdyl/d45e13ebd7d50aecd7c2b06039caa812 to your computer and use it in GitHub Desktop.
Save pbzdyl/d45e13ebd7d50aecd7c2b06039caa812 to your computer and use it in GitHub Desktop.
(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