123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101 |
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="utf-8">
- <title>JSDoc: Source: demo_module/index.js</title>
- <script src="scripts/prettify/prettify.js"> </script>
- <script src="scripts/prettify/lang-css.js"> </script>
- <!--[if lt IE 9]>
- <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
- <![endif]-->
- <link type="text/css" rel="stylesheet" href="styles/prettify-tomorrow.css">
- <link type="text/css" rel="stylesheet" href="styles/jsdoc-default.css">
- </head>
- <body>
- <div id="main">
- <h1 class="page-title">Source: demo_module/index.js</h1>
-
-
- <section>
- <article>
- <pre class="prettyprint source linenums"><code>/** @module demo_module */
- /**
- * index.js
- *
- * If you need this component, import the default exports
- * in this file. It gives you a reference for everything
- * needed to interact with it.
- **/
- import React from 'react'
- import { Route, IndexRoute } from 'react-router'
- import * as constants from './constants'
- import { actionCreators, reducer, state } from './state'
- import components from './components'
- // import _ from 'lodash'
- /** The filters */
- const filters = {
- all: registermap => registermap.filter(p => registermap.active)
- }
- /** The selectors */
- const selectors = {
- getAll: state => state[constants.NAME],
- getActive: () => []
- }
- /* export const getAll = state => state[NAME]
- export const getActive = _.compose(filterActive, getAll)
- export const getCounts = createSelector(
- getAll,
- getActive,
- (allProjects, activeProjects) => ({
- all: allProjects.length,
- active: activeProjects.length
- })
- ) */
- /** The route */
- const routes = (
- <Route path='demo_module'>
- <IndexRoute component={components.DemoModule} />
- <Route path='/demo_module' component={components.DemoModule} />
- <Route path='/demo_module/:demoParam1' component={components.DemoModule} />
- </Route>
- )
- console.log('Exporting demo_module:', { actionCreators, constants, components, filters, selectors, reducer, state, routes })
- export default { actionCreators, constants, components, filters, selectors, reducer, state, routes }
- </code></pre>
- </article>
- </section>
- </div>
- <nav>
- <h2><a href="index.html">Home</a></h2><h3>Modules</h3><ul><li><a href="module-AutoMate.html">AutoMate</a></li><li><a href="module-demo_module.html">demo_module</a></li><li><a href="module-demo_module_components_index.html">demo_module/components/index</a></li><li><a href="module-demo_module_constants.html">demo_module/constants</a></li><li><a href="module-demo_module_initialData.html">demo_module/initialData</a></li><li><a href="module-demo_module_state.html">demo_module/state</a></li><li><a href="module-project.html">project</a></li><li><a href="module-project_components.html">project/components</a></li><li><a href="module-project_state.html">project/state</a></li><li><a href="module-registermap.html">registermap</a></li></ul>
- </nav>
- <br class="clear">
- <footer>
- Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.3</a> on Tue Mar 14 2017 18:34:23 GMT+0100 (W. Europe Standard Time)
- </footer>
- <script> prettyPrint(); </script>
- <script src="scripts/linenumber.js"> </script>
- </body>
- </html>
|