(mapStateToProps)(SidebarMenu);\n","import { Link } from \"gatsby\";\nimport * as React from \"react\";\nimport HeaderMenu from \"./HeaderMenu/HeaderMenu\";\nimport SidebarMenu from \"./SidebarMenu/SidebarMenu\";\nimport { Segment, Icon, Container, Sidebar } from \"semantic-ui-react\";\nimport \"../css/styles.css\";\nimport \"../css/responsive.css\";\nimport \"../css/semantic.min.css\";\nimport \"prismjs/themes/prism-okaidia.css\";\nimport { Provider } from \"react-redux\";\nimport { store } from \"../store\";\n\nexport const menuItems = [\n { name: \"Home\", path: \"/\", exact: true, icon: \"home\", inverted: true },\n { name: \"About\", path: \"/about/\", exact: true, icon: \"info circle\" },\n { name: \"Storyboard\", path: \"/zap-desktop/storybook/\", exact: false, icon: \"newspaper\" },\n];\n\nexport interface LayoutProps {\n location: {\n pathname: string;\n };\n children: any;\n}\n\nconst Layout = (props: LayoutProps) => {\n const { pathname } = props.location;\n const isHome = pathname === \"/\";\n\n return (\n \n \n\n \n\n \n {/* Header */}\n {isHome ? null : }\n\n {/* Render children pages */}\n \n {props.children}\n
\n\n {/* Footer */}\n \n \n Powered with by Gatsby 2.0
\n \n \n \n \n \n );\n};\n\nexport default Layout;\n\nexport const withLayout = (WrappedComponent: React.ComponentType
) =>\n class WithLayout extends React.Component
{\n render() {\n return (\n \n \n \n );\n }\n };\n","const preferDefault = m => (m && m.default) || m\n\nif (process.env.BUILD_STAGE === `develop`) {\n module.exports = preferDefault(require(`./public-page-renderer-dev`))\n} else if (process.env.BUILD_STAGE === `build-javascript`) {\n module.exports = preferDefault(require(`./public-page-renderer-prod`))\n} else {\n module.exports = () => null\n}\n","import * as React from \"react\";\nimport { connect } from \"react-redux\";\nimport { Dispatch } from \"redux\";\nimport { toggleSidebar } from \"../../store\";\nimport { Container, Label, Menu, Icon } from \"semantic-ui-react\";\nimport { MenuProps } from \"../Menu\";\n\ninterface HeaderMenuProps extends MenuProps {\n dispatch?: Dispatch;\n inverted?: boolean;\n}\n\nexport const HeaderMenu = ({ items, pathname, Link, inverted, dispatch }: HeaderMenuProps) =>\n \n \n ;\n\nexport default connect()(HeaderMenu);\n","import { createStore } from \"redux\";\nimport { devToolsEnhancer } from \"redux-devtools-extension\";\nimport { get } from \"lodash\";\n\nexport interface StoreState {\n isSidebarVisible: boolean;\n}\n\n// Actions\nexport const TOGGLE_SIDEBAR = \"TOGGLE_SIDEBAR\";\nexport type TOGGLE_SIDEBAR = typeof TOGGLE_SIDEBAR;\nexport interface ToggleSidebar {\n type: TOGGLE_SIDEBAR;\n}\nexport const toggleSidebar = () => ({ type: TOGGLE_SIDEBAR });\n\n// Reducer\nexport const reducer = (state: StoreState, action: ToggleSidebar): StoreState => {\n switch (action.type) {\n case TOGGLE_SIDEBAR:\n return Object.assign({}, state, { isSidebarVisible: !state.isSidebarVisible });\n default:\n return state;\n }\n};\n\n// Store\nexport const initialState: StoreState = { isSidebarVisible: false };\nexport const store = createStore(\n reducer,\n initialState,\n devToolsEnhancer({}),\n);\n","import React from \"react\"\nimport PropTypes from \"prop-types\"\n\nimport InternalPageRenderer from \"./page-renderer\"\nimport loader from \"./loader\"\n\nconst ProdPageRenderer = ({ location }) => {\n const pageResources = loader.getResourcesForPathnameSync(location.pathname)\n return React.createElement(InternalPageRenderer, {\n key: location.pathname,\n location,\n pageResources,\n ...pageResources.json,\n })\n}\n\nProdPageRenderer.propTypes = {\n location: PropTypes.shape({\n pathname: PropTypes.string.isRequired,\n }).isRequired,\n}\n\nexport default ProdPageRenderer\n"],"sourceRoot":""}
\ No newline at end of file
diff --git a/404.html b/404.html
index a7df9a12..7176a2ba 100644
--- a/404.html
+++ b/404.html
@@ -40,7 +40,7 @@
}
}
})
- Zap DesktopPowered with by Gatsby 2.0
Zap DesktopPowered with by Gatsby 2.0