UNPKG

appxigon-react

Version:

Appxigon implementation on React JS

123 lines (105 loc) 2.36 kB
'use strict'; Object.defineProperty(exports, "__esModule", { value: true }); exports.setViewId = setViewId; exports.setAppxigonState = setAppxigonState; exports.setAppxigonData = setAppxigonData; exports.setAccountState = setAccountState; exports.setLoadingState = setLoadingState; exports.setSchema = setSchema; exports.resetInput = resetInput; exports.signIn = signIn; exports.signOut = signOut; exports.setModalViewSchema = setModalViewSchema; exports.setModalTitle = setModalTitle; exports.setLocale = setLocale; exports.setAppxigonSchema = setAppxigonSchema; exports.closeModal = closeModal; var _actionTypes = require('../action-types'); var T = _interopRequireWildcard(_actionTypes); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) newObj[key] = obj[key]; } } newObj.default = obj; return newObj; } } // console.log(`types: ${JSON.stringify(T)}`); function setViewId(options) { return { type: T.SET_VIEWID, options: options }; } function setAppxigonState(options) { return { type: T.SET_AXG_STATE, options: options }; } function setAppxigonData(options) { return { type: T.SET_AXG_DATA, options: options }; } function setAccountState(options) { return { type: T.SET_ACCOUNT_STATE, options: options }; } function setLoadingState(options) { return { type: T.SET_LOADING, options: options }; } function setSchema(options) { return { type: T.SET_SCHEMA, options: options }; } function resetInput(options) { return { type: T.RESET_INPUT, options: options }; } function signIn(options) { return { type: T.SIGN_IN, options: options }; } function signOut(options) { return { type: T.SIGN_OUT, options: options }; } function setModalViewSchema(options) { return { type: T.SET_MODAL_VIEW_SCHEMA, options: options }; } function setModalTitle(title) { return { type: T.SET_MODAL_TITLE, title: title }; } function setLocale(locale) { return { type: T.SET_LOCALE, locale: locale }; } function setAppxigonSchema(schema) { return { type: T.SET_MODAL_TITLE, schema: schema }; } function closeModal() { return { type: T.CLOSE_MODAL }; }