add setting actions in content

This commit is contained in:
Shin'ya Ueoka 2017-10-22 17:45:16 +09:00
parent 7639e99b75
commit c6eb5553d0
10 changed files with 74 additions and 25 deletions

View file

@ -1,12 +1,15 @@
export default {
// User input
// Enable/disable
ADDON_ENABLE: 'addon.enable',
ADDON_DISABLE: 'addon.disable',
ADDON_TOGGLE_ENABLED: 'addon.toggle.enabled',
// Settings
SETTING_SET: 'setting.set',
// User input
INPUT_KEY_PRESS: 'input.key,press',
INPUT_CLEAR_KEYS: 'input.clear.keys',
INPUT_SET_KEYMAPS: 'input.set.keymaps',
// Completion
COMPLETION_SET_ITEMS: 'completion.set.items',

View file

@ -13,11 +13,4 @@ const clearKeys = () => {
};
};
const setKeymaps = (keymaps) => {
return {
type: actions.INPUT_SET_KEYMAPS,
keymaps,
};
};
export { keyPress, clearKeys, setKeymaps };
export { keyPress, clearKeys };

View file

@ -0,0 +1,10 @@
import actions from 'content/actions';
const set = (value) => {
return {
type: actions.SETTING_SET,
value,
};
};
export { set };