From 2c600786c8ecfd73db91204e6fd816d54c077d77 Mon Sep 17 00:00:00 2001 From: Shin'ya Ueoka Date: Sun, 29 Oct 2017 10:46:34 +0900 Subject: rename to follow-controller --- src/content/actions/follow-controller.js | 29 +++++++++++++++++++++++++++++ src/content/actions/follow.js | 29 ----------------------------- src/content/actions/index.js | 8 ++++---- 3 files changed, 33 insertions(+), 33 deletions(-) create mode 100644 src/content/actions/follow-controller.js delete mode 100644 src/content/actions/follow.js (limited to 'src/content/actions') diff --git a/src/content/actions/follow-controller.js b/src/content/actions/follow-controller.js new file mode 100644 index 0000000..3fd4dce --- /dev/null +++ b/src/content/actions/follow-controller.js @@ -0,0 +1,29 @@ +import actions from 'content/actions'; + +const enable = (newTab) => { + return { + type: actions.FOLLOW_CONTROLLER_ENABLE, + newTab, + }; +}; + +const disable = () => { + return { + type: actions.FOLLOW_CONTROLLER_DISABLE, + }; +}; + +const keyPress = (key) => { + return { + type: actions.FOLLOW_CONTROLLER_KEY_PRESS, + key: key + }; +}; + +const backspace = () => { + return { + type: actions.FOLLOW_CONTROLLER_BACKSPACE, + }; +}; + +export { enable, disable, keyPress, backspace }; diff --git a/src/content/actions/follow.js b/src/content/actions/follow.js deleted file mode 100644 index 5a18dd5..0000000 --- a/src/content/actions/follow.js +++ /dev/null @@ -1,29 +0,0 @@ -import actions from 'content/actions'; - -const enable = (newTab) => { - return { - type: actions.FOLLOW_ENABLE, - newTab, - }; -}; - -const disable = () => { - return { - type: actions.FOLLOW_DISABLE, - }; -}; - -const keyPress = (key) => { - return { - type: actions.FOLLOW_KEY_PRESS, - key: key - }; -}; - -const backspace = () => { - return { - type: actions.FOLLOW_BACKSPACE, - }; -}; - -export { enable, disable, keyPress, backspace }; diff --git a/src/content/actions/index.js b/src/content/actions/index.js index 83fa7cf..8cc2303 100644 --- a/src/content/actions/index.js +++ b/src/content/actions/index.js @@ -17,8 +17,8 @@ export default { COMPLETION_SELECT_PREV: 'completions.select.prev', // Follow - FOLLOW_ENABLE: 'follow.enable', - FOLLOW_DISABLE: 'follow.disable', - FOLLOW_KEY_PRESS: 'follow.key.press', - FOLLOW_BACKSPACE: 'follow.backspace', + FOLLOW_CONTROLLER_ENABLE: 'follow.controller.enable', + FOLLOW_CONTROLLER_DISABLE: 'follow.controller.disable', + FOLLOW_CONTROLLER_KEY_PRESS: 'follow.controller.key.press', + FOLLOW_CONTROLLER_BACKSPACE: 'follow.controller.backspace', }; -- cgit v1.2.3