I hereby claim:
- I am specik on github.
- I am kristoferblack (https://keybase.io/kristoferblack) on keybase.
- I have a public key ASChvhwgdDzlFE9Rhn7rAZ3NmI0ll7bPKqa-V2v7415Lzgo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| Meteor.startup(() => { | |
| GlobalEmitter = new EventEmitter() | |
| ReactRouterSSR.Run(renderRoutes, { | |
| props: { | |
| onUpdate() { | |
| GlobalEmitter.emit('closeMobileNav') | |
| ReactGA.pageview(this.state.location.pathname) | |
| } | |
| } |
| export const renderRoutes = ( | |
| <Route path="/" component={AppContainer}> | |
| <IndexRoute component={HomeContainer} /> | |
| <Route path="work"> | |
| <IndexRoute component={WorkContainer} /> | |
| <Route path=":id" component={WorkDetailContainer} /> | |
| </Route> | |
| <Route path="about" component={AboutContainer} /> | |
| <Route path="blog"> | |
| <IndexRoute component={BlogContainer} /> |
| import React from 'react' | |
| import GlobalStore from '../../stores/global' | |
| import GlobalActions from '../../actions/global' | |
| import Hero from './blocks/Hero' | |
| import ServicesGrid from './blocks/ServicesGrid' | |
| import Ventures from './blocks/Ventures' | |
| import LogoGrid from './blocks/LogoGrid' |
| RA.module("AboutApp", function(AboutApp, RA, Backbone, Marionette, $, _) { | |
| AboutApp.Router = Marionette.AppRouter.extend({ | |
| appRoutes: { | |
| "about": "index", | |
| "about/": "index" | |
| }, | |
| onRoute: function(name, path, args) { | |
| RA.execute("set:navigation:activeItem", path); | |
| } | |
| }); |
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |