This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import superagent from 'superagent'; | |
import cookies from 'react-cookie'; | |
import config from '../config'; | |
import CryptoJS from 'crypto-js'; | |
import _clone from 'lodash/clone'; | |
import { normalizePayload } from 'utils/jwt'; | |
const methods = ['get', 'post', 'put', 'patch', 'del']; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
import PropTypes from 'prop-types'; | |
import SelectField from 'material-ui/SelectField'; | |
import MenuItem from 'material-ui/MenuItem'; | |
import { RadioButton, RadioButtonGroup } from 'material-ui/RadioButton'; | |
import RaisedButton from 'material-ui/RaisedButton'; | |
import Paper from 'material-ui/Paper'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export const plansName = [ | |
{ | |
id: 'standard', | |
nameId: 'billing.plan.name.standard' | |
}, | |
{ | |
id: 'plus', | |
nameId: 'billing.plan.name.plus' | |
}, | |
]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { Component } from 'react'; | |
import PropTypes from 'prop-types'; | |
import config from 'config'; | |
import Helmet from 'react-helmet'; | |
import { connect } from 'react-redux'; | |
import { injectIntl, intlShape } from 'react-intl'; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export function empty(val) { | |
return (typeof val === 'undefined' || val === '' || val === 0 || val === '0' || val === null | |
|| val === false || (typeof val === 'object' && !Object.keys(val).length) || (Array.isArray(val) && !val.length ) | |
); | |
} | |
export function apiUrl (path, params, absolut = false) { | |
return URL_BASE + path | |
} |
NewerOlder