Initial commit - app + 4 plugins

This commit is contained in:
TC
2019-04-19 20:12:36 +02:00
commit 8787b5c175
31 changed files with 7878 additions and 0 deletions

View File

@ -0,0 +1,24 @@
const { triggerAction } = require('../utils');
const CHANNEL = "navigation";
const ACTIONS = {
NEXT: "next",
BACK: 'back',
}
function goToNextPage() {
triggerAction(CHANNEL, ACTIONS.NEXT);
}
function goToPreviousPage() {
triggerAction(CHANNEL, ACTIONS.BACK);
}
module.exports = {
CHANNEL: CHANNEL,
ACTIONS: ACTIONS,
global: {
goToNextPage: goToNextPage,
goToPreviousPage: goToPreviousPage,
}
};