aboutsummaryrefslogtreecommitdiff
path: root/src/content/actions/index.ts
diff options
context:
space:
mode:
authorShin'ya Ueoka <ueokande@i-beam.org>2019-05-19 09:34:40 +0900
committerShin'ya Ueoka <ueokande@i-beam.org>2019-05-19 09:34:40 +0900
commit4be04628e19392d8da9688d538cc3374e91005d8 (patch)
tree5c2299f6b85bf96dc9df65ddd7c27aef01b0ed69 /src/content/actions/index.ts
parente0c4182f14f908d13c8c814c7bc2b48a1791f881 (diff)
Remove unused components
Diffstat (limited to 'src/content/actions/index.ts')
-rw-r--r--src/content/actions/index.ts81
1 files changed, 0 insertions, 81 deletions
diff --git a/src/content/actions/index.ts b/src/content/actions/index.ts
deleted file mode 100644
index 49f6484..0000000
--- a/src/content/actions/index.ts
+++ /dev/null
@@ -1,81 +0,0 @@
-import Redux from 'redux';
-import Key from '../domains/Key';
-
-// User input
-export const INPUT_KEY_PRESS = 'input.key.press';
-export const INPUT_CLEAR_KEYS = 'input.clear.keys';
-
-// Completion
-export const COMPLETION_SET_ITEMS = 'completion.set.items';
-export const COMPLETION_SELECT_NEXT = 'completions.select.next';
-export const COMPLETION_SELECT_PREV = 'completions.select.prev';
-
-// Follow
-export const FOLLOW_CONTROLLER_ENABLE = 'follow.controller.enable';
-export const FOLLOW_CONTROLLER_DISABLE = 'follow.controller.disable';
-export const FOLLOW_CONTROLLER_KEY_PRESS = 'follow.controller.key.press';
-export const FOLLOW_CONTROLLER_BACKSPACE = 'follow.controller.backspace';
-
-// Mark
-export const MARK_START_SET = 'mark.start.set';
-export const MARK_START_JUMP = 'mark.start.jump';
-export const MARK_CANCEL = 'mark.cancel';
-
-export const NOOP = 'noop';
-
-export interface InputKeyPressAction extends Redux.Action {
- type: typeof INPUT_KEY_PRESS;
- key: Key;
-}
-
-export interface InputClearKeysAction extends Redux.Action {
- type: typeof INPUT_CLEAR_KEYS;
-}
-
-export interface FollowControllerEnableAction extends Redux.Action {
- type: typeof FOLLOW_CONTROLLER_ENABLE;
- newTab: boolean;
- background: boolean;
-}
-
-export interface FollowControllerDisableAction extends Redux.Action {
- type: typeof FOLLOW_CONTROLLER_DISABLE;
-}
-
-export interface FollowControllerKeyPressAction extends Redux.Action {
- type: typeof FOLLOW_CONTROLLER_KEY_PRESS;
- key: string;
-}
-
-export interface FollowControllerBackspaceAction extends Redux.Action {
- type: typeof FOLLOW_CONTROLLER_BACKSPACE;
-}
-
-export interface MarkStartSetAction extends Redux.Action {
- type: typeof MARK_START_SET;
-}
-
-export interface MarkStartJumpAction extends Redux.Action {
- type: typeof MARK_START_JUMP;
-}
-
-export interface MarkCancelAction extends Redux.Action {
- type: typeof MARK_CANCEL;
-}
-
-export interface NoopAction extends Redux.Action {
- type: typeof NOOP;
-}
-
-export type InputAction = InputKeyPressAction | InputClearKeysAction;
-export type FollowAction =
- FollowControllerEnableAction | FollowControllerDisableAction |
- FollowControllerKeyPressAction | FollowControllerBackspaceAction;
-export type MarkAction =
- MarkStartSetAction | MarkStartJumpAction | MarkCancelAction | NoopAction;
-
-export type Action =
- InputAction |
- FollowAction |
- MarkAction |
- NoopAction;