Rename .js/.jsx to .ts/.tsx
This commit is contained in:
parent
257162e5b6
commit
c60d0e7392
151 changed files with 0 additions and 0 deletions
46
src/content/actions/mark.ts
Normal file
46
src/content/actions/mark.ts
Normal file
|
@ -0,0 +1,46 @@
|
|||
import actions from 'content/actions';
|
||||
import messages from 'shared/messages';
|
||||
|
||||
const startSet = () => {
|
||||
return { type: actions.MARK_START_SET };
|
||||
};
|
||||
|
||||
const startJump = () => {
|
||||
return { type: actions.MARK_START_JUMP };
|
||||
};
|
||||
|
||||
const cancel = () => {
|
||||
return { type: actions.MARK_CANCEL };
|
||||
};
|
||||
|
||||
const setLocal = (key, x, y) => {
|
||||
return {
|
||||
type: actions.MARK_SET_LOCAL,
|
||||
key,
|
||||
x,
|
||||
y,
|
||||
};
|
||||
};
|
||||
|
||||
const setGlobal = (key, x, y) => {
|
||||
browser.runtime.sendMessage({
|
||||
type: messages.MARK_SET_GLOBAL,
|
||||
key,
|
||||
x,
|
||||
y,
|
||||
});
|
||||
return { type: '' };
|
||||
};
|
||||
|
||||
const jumpGlobal = (key) => {
|
||||
browser.runtime.sendMessage({
|
||||
type: messages.MARK_JUMP_GLOBAL,
|
||||
key,
|
||||
});
|
||||
return { type: '' };
|
||||
};
|
||||
|
||||
export {
|
||||
startSet, startJump, cancel, setLocal,
|
||||
setGlobal, jumpGlobal,
|
||||
};
|
Reference in a new issue