2016-06-22 19:58:23 +00:00
|
|
|
import * as ActionTypes from '../../../constants';
|
|
|
|
|
2016-07-07 17:50:52 +00:00
|
|
|
export function updateFileContent(name, content) {
|
2016-06-23 22:29:55 +00:00
|
|
|
return {
|
2016-07-07 17:50:52 +00:00
|
|
|
type: ActionTypes.UPDATE_FILE_CONTENT,
|
2016-06-23 22:29:55 +00:00
|
|
|
name,
|
|
|
|
content
|
|
|
|
};
|
|
|
|
}
|
2016-07-13 20:13:28 +00:00
|
|
|
|
|
|
|
// TODO make req to server
|
|
|
|
export function createFile(name) {
|
|
|
|
return {
|
|
|
|
type: ActionTypes.CREATE_FILE,
|
|
|
|
name
|
|
|
|
};
|
|
|
|
}
|