Skip to content

Commit

Permalink
feat(location): Attach location data to workshops
Browse files Browse the repository at this point in the history
  • Loading branch information
bebraw committed Apr 20, 2018
1 parent 5e6ddf6 commit c181ed9
Show file tree
Hide file tree
Showing 16 changed files with 65 additions and 3 deletions.
1 change: 1 addition & 0 deletions src/content.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ const bronzeSponsors = sponsors.filter(
module.exports = {
breakfasts: require("./breakfasts"),
coffeeBreaks: require("./coffee-breaks"),
locations: resolveSocialLinks(require('./locations')),
keynotes,
lightningTalks,
lunches: require("./lunches"),
Expand Down
18 changes: 18 additions & 0 deletions src/locations/elisa-appelsiini.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
const sponsor = require('../sponsors/elisa');

module.exports = {
name: "Elisa Appelsiini",
about:
"In addition to being a silver sponsor of the event, Elisa is supporting the event by providing space for our workshops",
image: "sponsors/elisa.svg",
social: sponsor.social,
location: {
country: {
name: "Finland",
code: "FI",
},
city: "Helsinki",
address: "Kaarlenkatu 11",
},
keywords: sponsor.keywords
};
4 changes: 4 additions & 0 deletions src/locations/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
module.exports = [
require('./elisa-appelsiini'),
require('./valkoinen-sali')
];
16 changes: 16 additions & 0 deletions src/locations/valkoinen-sali.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
module.exports = {
name: "Valkoinen Sali",
about:
"Valkoinen Sali is the main venue of the event.",
social: {
homepage: "http://www.valkoinensali.com/",
},
location: {
country: {
name: "Finland",
code: "FI",
},
city: "Helsinki",
address: "Aleksanterinkatu 16",
},
};
9 changes: 6 additions & 3 deletions src/type-defs.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ module.exports = `
coffeeBreaks: [Session],
keynotes: [Session],
lightningTalks: [Session],
locations: [Contact],
lunches: [Session],
organizers: [Contact],
panels: [Session],
Expand All @@ -29,7 +30,8 @@ module.exports = `
type: String,
speakers: [Contact],
tickets: [Ticket],
keywords: [String]
keywords: [String],
location: Location
}
type Page {
Expand All @@ -44,7 +46,7 @@ module.exports = `
type Contact {
name: String!,
about: String!,
image: String!,
image: String,
type: String,
social: Social,
location: Location,
Expand All @@ -70,7 +72,8 @@ module.exports = `
type Location {
country: Country,
city: String
city: String,
address: String
}
type Country {
Expand Down
1 change: 1 addition & 0 deletions src/workshops/andrey-and-artem.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,5 @@ module.exports = {
require("../speakers/artem-sapegin").keywords
),
],
location: require("../locations/valkoinen-sali"),
};
1 change: 1 addition & 0 deletions src/workshops/david-khourshid.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,5 @@ module.exports = {
},
],
keywords: require("../speakers/david-khourshid").keywords,
location: require("../locations/elisa-appelsiini"),
};
1 change: 1 addition & 0 deletions src/workshops/gant-laborde.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,5 @@ module.exports = {
},
],
keywords: require("../speakers/gant-laborde").keywords,
location: require("../locations/valkoinen-sali"),
};
1 change: 1 addition & 0 deletions src/workshops/juho-vepsalainen.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,5 @@ The topics covered include:
},
],
keywords: require("../speakers/juho-vepsalainen").keywords,
location: require("../locations/elisa-appelsiini"),
};
1 change: 1 addition & 0 deletions src/workshops/michel-weststrate.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,5 @@ module.exports = {
},
],
keywords: require("../speakers/michel-weststrate").keywords,
location: require("../locations/valkoinen-sali"),
};
1 change: 1 addition & 0 deletions src/workshops/patrick-and-nik.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,5 @@ In the end, ambitious attendees will be able to integrate Reason React component
},
],
keywords: require("../speakers/patrick-stapfer").keywords,
location: require("../locations/elisa-appelsiini"),
};
1 change: 1 addition & 0 deletions src/workshops/rotem-mizrachi-meidan.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,5 @@ We will experiment with the following:
},
],
keywords: require("../speakers/rotem-mizrachi-meidan").keywords,
location: require("../locations/valkoinen-sali"),
};
1 change: 1 addition & 0 deletions src/workshops/sara-vieira.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,5 @@ By the end, we will implement all of this in continuous development with GitHub
},
],
keywords: require("../speakers/sara-vieira").keywords,
location: require("../locations/valkoinen-sali"),
};
1 change: 1 addition & 0 deletions src/workshops/sia-karamalegos.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,5 @@ module.exports = {
},
],
keywords: require("../speakers/sia-karamalegos").keywords,
location: require("../locations/elisa-appelsiini"),
};
1 change: 1 addition & 0 deletions src/workshops/sven-sauleau.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,5 @@ You will learn how to refactor your React code effectively in this workshop by S
},
],
keywords: require("../speakers/sven-sauleau").keywords,
location: require("../locations/elisa-appelsiini"),
};
10 changes: 10 additions & 0 deletions tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,16 @@ assert.equal(
"https://www.solita.fi/en/"
);

assert.equal(
content.locations.find(o => o.name === "Elisa Appelsiini").social.linkedin,
"https://linkedin.com/company/elisa"
);

assert.equal(
content.locations.find(o => o.name === "Valkoinen Sali").location.address,
"Aleksanterinkatu 16"
);

assert.equal(
content.speakers.find(o => o.name === "Christian Alfoni").presentations[0]
.title,
Expand Down

0 comments on commit c181ed9

Please sign in to comment.