diff options
Diffstat (limited to 'animism-align/frontend/views/site')
| -rw-r--r-- | animism-align/frontend/views/site/component.template.js | 28 | ||||
| -rw-r--r-- | animism-align/frontend/views/site/site.actions.js | 16 | ||||
| -rw-r--r-- | animism-align/frontend/views/site/site.reducer.js | 26 |
3 files changed, 0 insertions, 70 deletions
diff --git a/animism-align/frontend/views/site/component.template.js b/animism-align/frontend/views/site/component.template.js deleted file mode 100644 index a22d582..0000000 --- a/animism-align/frontend/views/site/component.template.js +++ /dev/null @@ -1,28 +0,0 @@ -import React, { Component } from 'react' -// import { Link } from 'react-router-dom' -// import { bindActionCreators } from 'redux' -import { connect } from 'react-redux' - -import actions from '../../../actions' -// import * as uploadActions from './upload.actions' - -class ComponentTemplate extends Component { - componentDidMount() { - } - render() { - const { } = this.props - return ( - <div className=""> - </div> - ) - } -} - -const mapStateToProps = state => ({ -}) - -const mapDispatchToProps = dispatch => ({ - // uploadActions: bindActionCreators({ ...uploadActions }, dispatch), -}) - -export default connect(mapStateToProps, mapDispatchToProps)(ComponentTemplate) diff --git a/animism-align/frontend/views/site/site.actions.js b/animism-align/frontend/views/site/site.actions.js deleted file mode 100644 index c7c228e..0000000 --- a/animism-align/frontend/views/site/site.actions.js +++ /dev/null @@ -1,16 +0,0 @@ -import * as types from '../../types' -// import actions from '../../actions' -// import { session } from '../../session' -import { api, post, pad, preloadImage } from '../../util' - -export const loadPeaks = (asdf) => dispatch => { - api(dispatch, types.peaks, 'peaks', '/static/data_store/peaks/peaks.json') -} - -export const loadText = (asdf) => dispatch => { - api(dispatch, types.text, 'text', '/static/data_store/peaks/text.txt') -} - -export const updateText = text => dispatch => { - dispatch({ type: types.text.loaded, data: text }) -}
\ No newline at end of file diff --git a/animism-align/frontend/views/site/site.reducer.js b/animism-align/frontend/views/site/site.reducer.js deleted file mode 100644 index e80033f..0000000 --- a/animism-align/frontend/views/site/site.reducer.js +++ /dev/null @@ -1,26 +0,0 @@ -import * as types from '../../types' -// import { session, getDefault, getDefaultInt } from '../../session' - -const initialState = { - peaks: { loading: true }, - text: { loading: true }, -} - -export default function siteReducer(state = initialState, action) { - // console.log(action.type, action) - // console.log(action.data) - switch (action.type) { - case types.peaks.loaded: - return { - ...state, - peaks: action.data, - } - case types.text.loaded: - return { - ...state, - text: action.data, - } - default: - return state - } -} |
