1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889 |
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="utf-8">
- <title>JSDoc: Source: project/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: project/index.js</h1>
-
-
- <section>
- <article>
- <pre class="prettyprint source linenums"><code>/** @module project */
- /**
- * 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 * as constants from './constants'
- import { actions, reducer, state } from './state'
- import components from './components'
- // import { createSelector } from 'reselect'
- // import { NAME } from './constants'
- // import _ from 'lodash'
- const filters = {
- all: projects => projects.filter(p => projects.active)
- }
- 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
- })
- ) */
- export default { actions, constants, components, filters, selectors, reducer, state }
- </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>
|