Skip to content

Commit

Permalink
Merge pull request #21 from InFact-coop/image-setup
Browse files Browse the repository at this point in the history
integrated the basic image flow and basic CSS setup
  • Loading branch information
jessicasalmon authored Dec 11, 2017
2 parents 2788d3e + c0e6e4a commit aec3c25
Show file tree
Hide file tree
Showing 10 changed files with 1,223 additions and 58 deletions.
7 changes: 6 additions & 1 deletion graphql/schema.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,12 @@ type Building {
significance: String,
recommendation: String,
latitude: Float,
longitude: Float
longitude: Float,
featured_image: String,
second_image: String,
third_image: String,
fourth_image: String,
fifth_image: String
}

type Query {
Expand Down
12 changes: 7 additions & 5 deletions helpers/createDataObj.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const createDataObj = (data) => {
street_name: item['Street Name'],
postcode: item['Post Code'],
ward: item['Ward'],
conservation_area: item['Conservation Area'],
conservation_area: item['Conservation Area'],
date_built_actual: item['Date Built (actual)'],
date_built_estimate: item['Date Built (estimated/ unconfirmed)'],
architectural_style: item['Architectural Style'],
Expand All @@ -16,12 +16,14 @@ const createDataObj = (data) => {
significance: item['Significance Statement'],
recommendation: item['Recommendation'],
latitude: item['Latitude'],
longitude: item['Longitude']
longitude: item['Longitude'],
featured_image: item['Featured Image'],
second_image: item['Second Image'],
third_image: item['Third Image'],
fourth_image: item['Fourth Image'],
fifth_image: item['Fifth Image']
};
});
}

module.exports = createDataObj;



7 changes: 6 additions & 1 deletion models/islington.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,12 @@ const islingtonSchema = new Schema({
significance: String,
recommendation: String,
latitude: Number,
longitude: Number
longitude: Number,
featured_image: String,
second_image: String,
third_image: String,
fourth_image: String,
fifth_image: String
});

const Islington = mongoose.model("Islington", islingtonSchema);
Expand Down
Loading

0 comments on commit aec3c25

Please sign in to comment.