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 { connect } from 'dva'; | |
import { routerRedux } from 'dva/router'; | |
import isEmpty from 'lodash/isEmpty'; | |
import noop from 'lodash/noop'; | |
import moment from 'moment'; | |
import { INACTIVE_TIME_SEC, MOSCOW_TIMEZONE } from 'inner-constants'; | |
import { dateTimeToUtcTimestamp } from 'helper'; | |
import uiModel from 'models/ui'; |
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 {compose, lifecycle, mapProps, withHandlers, withProps, withState} from 'recompose'; | |
import { FORM_ERROR } from 'final-form'; | |
import omit from 'lodash/omit'; | |
export default compose( | |
withState('submitHandler', 'setSubmitHandler', null), | |
withHandlers(({ | |
onSubmit: ({ submitAction, setSubmitHandler }) => values => | |
new Promise((resolve) => { | |
submitAction(values); |
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
var data = []; | |
const platforms = [{ | |
domain: "https://squareup.com", | |
redirect: "/login?return_to=%2Ffavicon.ico", | |
name: "Square" | |
}, { | |
domain: "https://twitter.com", | |
redirect: "/login?redirect_after_login=%2Ffavicon.ico", | |
name: "Twitter" |
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 classNames from 'classnames'; | |
import withStyles from 'isomorphic-style-loader/lib/withStyles'; | |
import PaginationItem from './PaginationItem'; | |
import s from './Pagination.css'; | |
const PAGINATION_LENGTH = 7; | |
const HellipseElement = ({ key }) => (<span key={key}>...</span>); |
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
/** | |
* @param {Object} locations | |
* @param {Number} locations.lat | |
* @param {Number} locations.lon | |
*/ | |
export default async function (locations) { | |
const lat = locations.lat; | |
const lng = locations.lng; |
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 { LOAD_IMG, WALLPAPER_PATH_PREFIX } from '../../constants'; | |
const imageLoaded = dispatch => e => dispatch({ | |
type: LOAD_IMG, | |
payload: e.type === 'load' | |
}); | |
export default function (url) { | |
return (dispatch) => { | |
const bigImg = new Image(); |
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 withStyles from 'isomorphic-style-loader/lib/withStyles'; | |
import random from 'lodash/random'; | |
import Wrapper from '../Wrapper/Wrapper'; | |
import Header from '../Header/Header'; | |
import FastServices from '../FastServices/FastServices'; | |
import s from './OpeningScreen.css'; | |
class OpeningScreen extends React.Component { |
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
{ | |
"bits(*)": "BIT(256)", | |
"blob": "bytea", | |
"datetime[yy:ms]": "timestamp", | |
"datetime[yy:dd]": "date", | |
"float": "real", | |
"tinyint": "SMALLINT", | |
} |