summaryrefslogtreecommitdiff
path: root/animism-align/frontend/views/site
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2020-07-22 14:05:15 +0200
committerJules Laplace <julescarbon@gmail.com>2020-07-22 14:05:15 +0200
commitef78bc6a084f92b4794e987b5832240d85b6479e (patch)
treeb314b630800db6aa60f28ef0b115625e6ca176db /animism-align/frontend/views/site
parent85d4cb9addf9ca887d3440b2786665d67d9917c4 (diff)
refactor app using babel module-resolver
Diffstat (limited to 'animism-align/frontend/views/site')
-rw-r--r--animism-align/frontend/views/site/component.template.js28
-rw-r--r--animism-align/frontend/views/site/site.actions.js16
-rw-r--r--animism-align/frontend/views/site/site.reducer.js26
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
- }
-}