project_index.js.html 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>JSDoc: Source: project/index.js</title>
  6. <script src="scripts/prettify/prettify.js"> </script>
  7. <script src="scripts/prettify/lang-css.js"> </script>
  8. <!--[if lt IE 9]>
  9. <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
  10. <![endif]-->
  11. <link type="text/css" rel="stylesheet" href="styles/prettify-tomorrow.css">
  12. <link type="text/css" rel="stylesheet" href="styles/jsdoc-default.css">
  13. </head>
  14. <body>
  15. <div id="main">
  16. <h1 class="page-title">Source: project/index.js</h1>
  17. <section>
  18. <article>
  19. <pre class="prettyprint source linenums"><code>/** @module project */
  20. /**
  21. * index.js
  22. *
  23. * If you need this component, import the default exports
  24. * in this file. It gives you a reference for everything
  25. * needed to interact with it.
  26. **/
  27. import * as constants from './constants'
  28. import { actions, reducer, state } from './state'
  29. import components from './components'
  30. // import { createSelector } from 'reselect'
  31. // import { NAME } from './constants'
  32. // import _ from 'lodash'
  33. const filters = {
  34. all: projects => projects.filter(p => projects.active)
  35. }
  36. const selectors = {
  37. getAll: state => state[constants.NAME],
  38. getActive: () => []
  39. }
  40. /* export const getAll = state => state[NAME]
  41. export const getActive = _.compose(filterActive, getAll)
  42. export const getCounts = createSelector(
  43. getAll,
  44. getActive,
  45. (allProjects, activeProjects) => ({
  46. all: allProjects.length,
  47. active: activeProjects.length
  48. })
  49. ) */
  50. export default { actions, constants, components, filters, selectors, reducer, state }
  51. </code></pre>
  52. </article>
  53. </section>
  54. </div>
  55. <nav>
  56. <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>
  57. </nav>
  58. <br class="clear">
  59. <footer>
  60. 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)
  61. </footer>
  62. <script> prettyPrint(); </script>
  63. <script src="scripts/linenumber.js"> </script>
  64. </body>
  65. </html>