Skip to content

Commit

Permalink
Merge pull request #60 from hackforla/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
sellnat77 committed Oct 9, 2019
2 parents 5e462fa + d7df070 commit 6936dd7
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 7 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/Continuous_Delivery.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,11 @@ jobs:
run: npm run-script build
- name: Run Tests
run: export CI=true && npm run test -- --coverage
env:
MAPBOX_TOKEN: ${{ secrets.MAPBOX_TOKEN }}
- name: Deploy
run: npm run deploy
env:
MAPBOX_TOKEN: ${{ secrets.MAPBOX_TOKEN }}
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}

4 changes: 3 additions & 1 deletion .github/workflows/Continuous_Integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,10 @@ jobs:
with:
node-version: ${{ matrix.node-version }}
- name: Install Packages
run: npm install && echo $TEST_SECRET
run: npm install
- name: Build project
run: npm run-script build
- name: Run Tests
run: export CI=true && npm run test -- --coverage
env:
MAPBOX_TOKEN: ${{ secrets.MAPBOX_TOKEN }}
7 changes: 1 addition & 6 deletions src/components/PinMap/PinMap.jsx
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
import React, { Component } from 'react';
import { Map, Marker, Popup, TileLayer, Rectangle, Tooltip } from 'react-leaflet';
import Choropleth from 'react-leaflet-choropleth';
// import { mapToken } from '../../config.js';
import { getDataResources } from '../../Util/DataService.js';
import neighborhoodOverlay from '../../data/la-county-neighborhoods-v6.json';
import municipalOverlay from '../../data/la-county-municipal-regions-current.json';
import councilDistrictsOverlay from '../../data/la-city-council-districts-2012.json';
import axios from 'axios';

const DONT_LOOK_AT_THIS = 'pk.eyJ1Ijoiam9zaHVhbWFyeCIsImEiOiJjazFpb3RwcW8wYXM2M2Nud29zMWhjcnZ4In0.Rg9UY0SSJqCIPp275kRcUg';

const serviceRequests = [
'Bulky Items',
'Dead Animal Removal',
Expand Down Expand Up @@ -59,14 +56,12 @@ class PinMap extends Component {
request: serviceRequests[0],
position: [34.0173157, -118.2497254],
zoom: 10,
mapUrl: `https://api.tiles.mapbox.com/v4/mapbox.streets/{z}/{x}/{y}.png?access_token=${DONT_LOOK_AT_THIS}`,
mapUrl: `https://api.tiles.mapbox.com/v4/mapbox.streets/{z}/{x}/{y}.png?access_token=${process.env.MAPBOX_TOKEN}`,
dataUrl: 'https://data.lacity.org/resource/h65r-yf5i.json?$select=location,zipcode,address,requesttype,status,ncname,streetname,housenumber&$where=date_extract_m(CreatedDate)+between+2+and+3',
geoJSON: councilDistrictsOverlay,
showMarkers: false,
bounds: null,
};

console.log(process.env)
}

componentDidMount() {
Expand Down

0 comments on commit 6936dd7

Please sign in to comment.