Skip to content

Commit

Permalink
quick tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
MrNoIce committed Sep 23, 2019
1 parent ccbf1ca commit cb6d482
Show file tree
Hide file tree
Showing 10 changed files with 62 additions and 143 deletions.
88 changes: 62 additions & 26 deletions api/issues.json
Original file line number Diff line number Diff line change
@@ -1,52 +1,88 @@
{
"issues": [
{
"address": "2211 dickerson pike",
"details": "Thsis pothole is out of control",
"issueType": "Road",
"address": "metro center",
"details": "The flooding is super bad",
"issueType": "Metro Water",
"lngLat": [
-86.78153186257069,
36.166682805664955
-86.79889733238596,
36.19100123124159
],
"picture": "https://res.cloudinary.com/dqwaphhqv/image/upload/v1565297512/sjfspqymndsivoj2vpr5.jpg",
"picture": "https://res.cloudinary.com/dqwaphhqv/image/upload/v1565360121/yf5bfz3kuaucqgbncumh.jpg",
"userId": 3,
"id": 2
"id": 6
},
{
"address": "westend",
"details": "side walk is super fucked",
"address": "Metro center",
"details": "Side walk needed",
"issueType": "Sidewalk",
"lngLat": [
-86.78659885940648,
36.163295011207275
-86.79783191668426,
36.19243678095765
],
"picture": "https://res.cloudinary.com/dqwaphhqv/image/upload/v1565359966/ncbehnaiicuasdgafuym.jpg",
"picture": "https://res.cloudinary.com/dqwaphhqv/image/upload/v1565362208/gsskjx9l9lg9opus2jdg.jpg",
"userId": 3,
"id": 4
"id": 7
},
{
"address": "westchester",
"details": "This pothole is something else",
"issueType": "Road",
"lngLat": [
-86.76112393535551,
36.26290029873108
],
"picture": "https://res.cloudinary.com/dqwaphhqv/image/upload/v1565386291/xqh3v4gpvemsceevolkc.jpg",
"userId": 3,
"id": 8
},
{
"id": 10,
"address": "Demonbruen ave south",
"details": "These power lines are sketch",
"issueType": "NES",
"lngLat": [
-86.75879053993313,
36.26335087904732
],
"picture": "https://res.cloudinary.com/dqwaphhqv/image/upload/v1566224663/fgbmq00lphpnp57y2jzl.jpg",
"userId": 3
},
{
"address": "2211 dickerson pike",
"details": "The power lines are scary",
"address": "plus prk",
"details": "power lines are super messed up",
"issueType": "NES",
"lngLat": [
-86.78105022245057,
36.16443782245203
-86.72527929705745,
36.12812992882484
],
"picture": "https://res.cloudinary.com/dqwaphhqv/image/upload/v1565360036/srqx8pkphoynwm1zpuc9.jpg",
"picture": "https://res.cloudinary.com/dqwaphhqv/image/upload/v1566310252/tlmfmq6yzlgj3vplkudv.jpg",
"userId": 3,
"id": 5
"id": 11
},
{
"address": "metro center",
"details": "The flooding is super bad",
"issueType": "Metro Water",
"address": "1022 Lightening drive",
"details": "The traffic light suxx",
"issueType": "Traffic Light",
"lngLat": [
-86.79889733238596,
36.19100123124159
-86.75904807030497,
36.26337779029316
],
"picture": "https://res.cloudinary.com/dqwaphhqv/image/upload/v1565360121/yf5bfz3kuaucqgbncumh.jpg",
"picture": "https://res.cloudinary.com/dqwaphhqv/image/upload/v1568980532/puo04sbznhydtgf7ldc7.jpg",
"userId": 3,
"id": 6
"id": 12
},
{
"address": "Wyoming ave",
"details": "Brother helps",
"issueType": "NES",
"lngLat": [
-86.75886258236751,
36.263354593966135
],
"picture": "https://res.cloudinary.com/dqwaphhqv/image/upload/v1569239444/k58lw18h8bdkmoqb114p.jpg",
"userId": 3,
"id": 13
}
],
"users": [
Expand Down
15 changes: 0 additions & 15 deletions src/components/applicationViews.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,21 +84,6 @@ class ApplicationViews extends Component {
return <IssueEditForm {...props} updateIssue={this.updateIssue} />;
}}
/>
{/* <Route
exact
path="/imgUpload"
render={props => {
if (this.isAuthenticated()) {
return (
<Image
{...props}
/>
);
} else {
return <Redirect to="/login" />;
}
}}
/> */}
<Route exact path="/login" component={Login} />
</React.Fragment>
);
Expand Down
1 change: 0 additions & 1 deletion src/components/authentication/login.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import React, { Component } from "react"
// import { Link } from "react-router-dom"
import {withRouter} from 'react-router-dom'
import LoginManager from "../modules/loginManager"

Expand Down
Empty file removed src/components/email/email.js
Empty file.
86 changes: 0 additions & 86 deletions src/components/imgUpload/imgUpload.js

This file was deleted.

6 changes: 0 additions & 6 deletions src/components/issues/issueCard.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
import React, { Component } from "react";
import { Link } from "react-router-dom";
// import "bootstrap/dist/css/bootstrap.min.css";
import "./issues.css";

const emailTo = "[email protected]";
Expand Down Expand Up @@ -33,10 +31,6 @@ export default class IssueCard extends Component {
<h5 style={{width:"300px"}}>Issue type: {this.props.issue.issueType}</h5>
<h6 style={{width:"300px"}}>Details: {this.props.issue.details}</h6>
<h6 style={{width:"300px"}}>Specific Location: {this.props.issue.lngLat} </h6>
{/* <Link className="nav-link" to={`/issue/${this.props.issue.id}`}>
Details
</Link> */}

<button
type="button"
className="btn btn-info"
Expand Down
6 changes: 0 additions & 6 deletions src/components/issues/newIssueForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -229,15 +229,10 @@ export default class IssueForm extends Component {
<ReactMapGL
{...viewport}
mapStyle="mapbox://styles/mapbox/streets-v9"
// containerStyle={{
// height: "auto",
// width: "auto"
// }}
mapboxApiAccessToken={API_KEY}
onViewportChange={viewport => this.setState({ viewport })}
onClick={evt => this.onClickMap(evt)}
>
{/* <div style={{ position: "absolute", right: 0 }} /> */}
<div className="nav" style={navStyle}>
<NavigationControl />
<GeolocateControl />
Expand Down Expand Up @@ -271,7 +266,6 @@ export default class IssueForm extends Component {
<div>
{this.state.uploadedFileCloudinaryUrl === "" ? null : (
<div className="formGroupPicture">
{/* <p>{this.state.uploadedFile.name}</p> */}
<img
src={this.state.uploadedFileCloudinaryUrl}
style={{ width: "380px", height: "350px" }}
Expand Down
1 change: 0 additions & 1 deletion src/components/userDashboard/dashboard.js

This file was deleted.

Empty file removed src/problems.css
Empty file.
2 changes: 0 additions & 2 deletions src/problems.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
import React, { Component} from "react"
import NavBar from "./components/nav/navbar"
import ApplicationViews from "./components/applicationViews"
// import "./issues/issues.css"
// import "bootstrap/dist/css/bootstrap.min.css"

class Problems extends Component {
render() {
Expand Down

0 comments on commit cb6d482

Please sign in to comment.