File tree Expand file tree Collapse file tree 3 files changed +22
-1
lines changed
Expand file tree Collapse file tree 3 files changed +22
-1
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,10 @@ import reduxThunk from 'redux-thunk';
88import App from './components/App' ;
99import reducers from './reducers' ;
1010
11+ // Development only axios helpers!
12+ import axios from 'axios' ;
13+ window . axios = axios ;
14+
1115const store = createStore ( reducers , { } , applyMiddleware ( reduxThunk ) ) ;
1216
1317ReactDOM . render (
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ require('./models/User');
88require ( './models/Survey' ) ;
99require ( './services/passport' ) ;
1010
11+ mongoose . Promise = global . Promise ;
1112mongoose . connect ( keys . mongoURI ) ;
1213
1314const app = express ( ) ;
Original file line number Diff line number Diff line change 11module . exports = survey => {
2- return '<div>' + survey . body + '</div>' ;
2+ return `
3+ <html>
4+ <body>
5+ <div style="text-align: center;">
6+ <h3>I'd like your input!</h3>
7+ <p>Please answer the following question:</p>
8+ <p>${ survey . body } </p>
9+ <div>
10+ <a href="http://localhost:3000">Yes</a>
11+ </div>
12+ <div>
13+ <a href="http://localhost:3000">No</a>
14+ </div>
15+ </div>
16+ </body>
17+ </html>
18+ ` ;
319} ;
You can’t perform that action at this time.
0 commit comments