demo_module_index.js.html 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8">
  5. <title>JSDoc: Source: demo_module/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: demo_module/index.js</h1>
  17. <section>
  18. <article>
  19. <pre class="prettyprint source linenums"><code>/** @module demo_module */
  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 React from 'react'
  28. import { Route, IndexRoute } from 'react-router'
  29. import * as constants from './constants'
  30. import { actionCreators, reducer, state } from './state'
  31. import components from './components'
  32. // import _ from 'lodash'
  33. /** The filters */
  34. const filters = {
  35. all: registermap => registermap.filter(p => registermap.active)
  36. }
  37. /** The selectors */
  38. const selectors = {
  39. getAll: state => state[constants.NAME],
  40. getActive: () => []
  41. }
  42. /* export const getAll = state => state[NAME]
  43. export const getActive = _.compose(filterActive, getAll)
  44. export const getCounts = createSelector(
  45. getAll,
  46. getActive,
  47. (allProjects, activeProjects) => ({
  48. all: allProjects.length,
  49. active: activeProjects.length
  50. })
  51. ) */
  52. /** The route */
  53. const routes = (
  54. &lt;Route path='demo_module'>
  55. &lt;IndexRoute component={components.DemoModule} />
  56. &lt;Route path='/demo_module' component={components.DemoModule} />
  57. &lt;Route path='/demo_module/:demoParam1' component={components.DemoModule} />
  58. &lt;/Route>
  59. )
  60. console.log('Exporting demo_module:', { actionCreators, constants, components, filters, selectors, reducer, state, routes })
  61. export default { actionCreators, constants, components, filters, selectors, reducer, state, routes }
  62. </code></pre>
  63. </article>
  64. </section>
  65. </div>
  66. <nav>
  67. <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>
  68. </nav>
  69. <br class="clear">
  70. <footer>
  71. 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)
  72. </footer>
  73. <script> prettyPrint(); </script>
  74. <script src="scripts/linenumber.js"> </script>
  75. </body>
  76. </html>