diff options
Diffstat (limited to 'client/actions/index.js')
| -rw-r--r-- | client/actions/index.js | 47 |
1 files changed, 42 insertions, 5 deletions
diff --git a/client/actions/index.js b/client/actions/index.js index 0a163ae..fda5a4a 100644 --- a/client/actions/index.js +++ b/client/actions/index.js @@ -1,31 +1,68 @@ +/* AudioPlayer */ + export const audioPlayFile = (file) => ({ type: 'AUDIO_PLAY_FILE', file: file }) - export const audioPause = () => ({ type: 'AUDIO_PAUSE', }) +/* currentTask */ + export const setContent = (content) => ({ type: 'SET_CONTENT', file: content }) - export const setStyle = (style) => ({ type: 'SET_STYLE', file: style }) - export const setAlpha = (alpha) => ({ type: 'SET_ALPHA', alpha, }) - export const createTask = () => ({ type: 'CREATE_TASK', }) - export const addTask = () => ({ type: 'ADD_TASK', }) + +/* tasks */ + +export const loadTasks = (tasks) => ({ + type: 'LOAD_TASKS', + tasks, +}) + +/* folders */ + +export const loadFolders = (folders) => ({ + type: 'LOAD_FOLDERS', + folders, +}) +export const loadFiles = (files) => ({ + type: 'LOAD_FILES', + files, +}) +export const loadOpenFolders = (folders) => ({ + type: 'LOAD_OPEN_FOLDERS', + folders, +}) +export const openFolder = (folder) => ({ + type: 'OPEN_FOLDER', + folder, +}) +export const closeFolder = (folder) => ({ + type: 'CLOSE_FOLDER', + folder, +}) +export const addFolder = (folder) => ({ + type: 'ADD_FOLDER', + folder, +}) +export const updateFile = (file) => ({ + type: 'UPDATE_FILE', + file, +}) |
