summaryrefslogtreecommitdiff
path: root/animism-align/frontend/views/site/site.actions.js
blob: c7c228e27a9110fef3af7f87b59d5693b0bf3626 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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 })
}