p5.js-web-editor/client/modules/IDE/actions/preferences.js

31 lines
578 B
JavaScript
Raw Normal View History

2016-06-22 21:58:23 +02:00
import * as ActionTypes from '../../../constants';
// import axios from 'axios';
2016-06-22 21:58:23 +02:00
// const ROOT_URL = location.href.indexOf('localhost') > 0 ? 'http://localhost:8000/api' : '/api';
2016-07-06 17:27:39 +02:00
export function setFontSize(value) {
2016-07-11 02:13:37 +02:00
return {
type: ActionTypes.SET_FONT_SIZE,
2016-07-11 02:13:37 +02:00
value
};
}
export function setIndentation(value) {
2016-07-11 02:13:37 +02:00
return {
type: ActionTypes.SET_INDENTATION,
2016-07-11 02:13:37 +02:00
value
};
}
2016-07-11 04:52:48 +02:00
export function indentWithTab() {
return {
type: ActionTypes.INDENT_WITH_TAB
};
}
export function indentWithSpace() {
return {
type: ActionTypes.INDENT_WITH_SPACE
};
}