Skip to content

Commit

Permalink
ignore token
Browse files Browse the repository at this point in the history
  • Loading branch information
Xiaoji Chen committed Nov 11, 2016
1 parent 55dea18 commit 9146dec
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ dist-demo/*
demo/dist/*
build/*
example/bundle.js
mapbox-token.js
.project
.idea
.DS_Store
Expand Down
3 changes: 2 additions & 1 deletion demo/src/javascripts/components/home.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ import {loadData, updateMap, setHeaderOpacity} from '../actions/app-actions';
import MapGL from 'react-map-gl';

import ViewportAnimation from '../utils/map-utils';
import {MAPBOX_ACCESS_TOKEN, MAPBOX_STYLES} from '../constants/defaults';
import {MAPBOX_STYLES} from '../constants/defaults';
import MAPBOX_ACCESS_TOKEN from '../constants/mapbox-token';

const DEMO_TAB = 0;
const CONTENT_TAB = 1;
Expand Down
3 changes: 2 additions & 1 deletion demo/src/javascripts/components/page.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ import GenericInput from './input';
import * as Demos from './demos';
import * as appActions from '../actions/app-actions';
import ViewportAnimation from '../utils/map-utils';
import {MAPBOX_ACCESS_TOKEN, MAPBOX_STYLES} from '../constants/defaults';
import {MAPBOX_STYLES} from '../constants/defaults';
import MAPBOX_ACCESS_TOKEN from '../constants/mapbox-token';

class Page extends Component {
constructor(props) {
Expand Down
6 changes: 2 additions & 4 deletions demo/src/javascripts/constants/defaults.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
export const MAPBOX_STYLES = {
LIGHT: 'mapbox://styles/ubervispublic/citx7uply008i2hlbno8edv8r',
DARK: 'mapbox://styles/ubervispublic/citx7v64n00am2io6n8ycriaf'
LIGHT: 'mapbox://styles/uberdata/cive48w2e001a2imn5mcu2vrs',
DARK: 'mapbox://styles/uberdata/cive485h000192imn6c6cc8fc'
};

export const MAPBOX_ACCESS_TOKEN = 'pk.eyJ1IjoidWJlcnZpc3B1YmxpYyIsImEiOiJjaXRrY3QxNnMwYWk4MnRtazYwODAxMXp5In0.tfzIQkC6mKPR7meww3nquw';

export const DEFAULT_VIEWPORT_STATE = {
mapStyle: MAPBOX_STYLES.LIGHT,
width: 600,
Expand Down

0 comments on commit 9146dec

Please sign in to comment.