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
| getLocation() { | |
| this.setState((prevState, props) => { | |
| return { | |
| fetchingLocation: true | |
| }; | |
| }); | |
| getGeoLocation() | |
| .then(position => { | |
| this.setState((prevState, props) => { | |
| return { |
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
| {"name":"New_Segment","status":"CREATE","owner":"Vinod Sobale","type":"country","createDate":1544092433000,"expression":{"left":{"left":"country","operator":"equals","right":"KW","datatype":""},"operator":"and","right":{"left":{"left":"carrier","operator":"equals","right":"12","datatype":""},"operator":null,"right":null}}} |
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
| { | |
| "name": "Vinod_New_Segment_1", | |
| "status": "CREATE", | |
| "owner": "Vinod Sobale", | |
| "type": "country", | |
| "createDate": 1538039745070, | |
| "expression": { | |
| "left": { | |
| "left": "country", | |
| "operator": "equals", |
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 { connect } from 'react-redux'; | |
| import { NavLink, Link } from 'react-router-dom'; | |
| import { bindActionCreators, compose } from 'redux'; | |
| import { get as _get, pick as _pick } from 'lodash'; | |
| import Cookie from 'universal-cookie'; | |
| import ReactModal from 'react-modal'; | |
| import { translate } from 'react-i18next'; | |
| import createHistory from 'history/createBrowserHistory'; |
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
| <ReactModal | |
| isOpen={reactModal} | |
| overlayClassName="c-socloginoverlay" | |
| className="c-soclogin" | |
| shouldCloseOnOverlayClick | |
| onRequestClose={() => this.setState({ reactModal: false })} | |
| shouldCloseOnEsc | |
| role="dialog" | |
| ariaHideApp={false} | |
| > |
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
| { | |
| "name": "viu-browser-2.0", | |
| "version": "0.1.0", | |
| "private": true, | |
| "devDependencies": { | |
| "prettier": "^1.7.4", | |
| }, | |
| "scripts": { | |
| "format": "prettier --write --single-quote --print-width=120 --tab-width=2 \"src/**/*.{js,jsx}\"" | |
| }, |
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
| return ( | |
| <th value={column} onClick={() => this.handleSort(column)}>{column}</th> | |
| ); |
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
| function guid() { | |
| return s4() + s4() + '-' + s4() + '-' + s4() + '-' + | |
| s4() + '-' + s4() + s4() + s4(); | |
| } | |
| function s4() { | |
| return Math.floor((1 + Math.random()) * 0x10000) | |
| .toString(16) | |
| .substring(1); | |
| } |