Sfoglia il codice sorgente

minor change to project state.

Tomi Cvetic 8 anni fa
parent
commit
a4786765c9
3 ha cambiato i file con 4 aggiunte e 1 eliminazioni
  1. 1 0
      package.json
  2. 1 1
      src/Sample.js
  3. 2 0
      src/project/state.js

+ 1 - 0
package.json

@@ -4,6 +4,7 @@
   "private": true,
   "dependencies": {
     "lodash": "4.17.4",
+    "mongoose": "4.9.0",
     "react": "15.4.2",
     "react-addons-css-transition-group": "15.4.2",
     "react-dom": "15.4.2",

+ 1 - 1
src/Sample.js

@@ -219,7 +219,7 @@ class Sample extends React.Component {
               <header><h2>Images</h2></header>
               <div>
                 <h3>No <code>&lt;figure&gt;</code> element</h3>
-                <p><img src='http://placekitten.com/480/480' alt='Image alt text' /></p>
+                <p><img src='http://placekitten.com/420/420' alt='Image alt text' /></p>
                 <h3>Wrapped in a <code>&lt;figure&gt;</code> element, no <code>&lt;figcaption&gt;</code></h3>
                 <figure><img src='http://placekitten.com/420/420' alt='Image alt text' /></figure>
                 <h3>Wrapped in a <code>&lt;figure&gt;</code> element, with a <code>&lt;figcaption&gt;</code></h3>

+ 2 - 0
src/project/state.js

@@ -8,9 +8,11 @@
  * - actions
  **/
 
+import genStuff from 'helpers'
 import { NAME, DATA } from './constants'
 // import { call, put, takeEvery } from 'redux-saga/effects'
 
+const herbie = genStuff('project', ['create', 'update', 'remove'], false, api = null)
 /** actionTypes define what actions are handeled by the reducer. */
 const actionTypes = {}
 export const actionCreators = {}