Skip to content

Commit 6ada81d

Browse files
committed
feat(schema): fix basic metadata
1 parent 2a841e9 commit 6ada81d

File tree

2 files changed

+73
-66
lines changed

2 files changed

+73
-66
lines changed

src/content.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ module.exports = {
3535
year: "2018",
3636
packageName: "@react-finland/content-2018",
3737
staticFilePath: "images",
38+
websiteUrl: "https://react-finland.fi/",
3839
breakfasts: require("./breakfasts"),
3940
coffeeBreaks: require("./coffee-breaks"),
4041
locations: resolveSocialLinks(require("./locations")),

src/type-defs.js

Lines changed: 72 additions & 66 deletions
Original file line numberDiff line numberDiff line change
@@ -1,111 +1,117 @@
11
module.exports = `
22
type Query {
3-
breakfasts: [Session],
4-
coffeeBreaks: [Session],
5-
keynotes: [Session],
6-
lightningTalks: [Session],
7-
locations: [Contact],
8-
lunches: [Session],
9-
organizers: [Contact],
10-
panels: [Session],
11-
sponsors: [Contact],
12-
partners: [Contact],
13-
goldSponsors: [Contact],
14-
silverSponsors: [Contact],
15-
bronzeSponsors: [Contact],
16-
pages: [Page],
17-
page(id: String): Page,
18-
presentations: [Session],
19-
schedules: [Schedule],
20-
speakers: [Contact],
21-
talks: [Session],
22-
tickets: [[Ticket]],
3+
id: ID!
4+
name: String!
5+
year: String!
6+
packageName: String!
7+
staticFilePath: String!
8+
websiteUrl: String!
9+
breakfasts: [Session]
10+
coffeeBreaks: [Session]
11+
keynotes: [Session]
12+
lightningTalks: [Session]
13+
locations: [Contact]
14+
lunches: [Session]
15+
organizers: [Contact]
16+
panels: [Session]
17+
sponsors: [Contact]
18+
partners: [Contact]
19+
goldSponsors: [Contact]
20+
silverSponsors: [Contact]
21+
bronzeSponsors: [Contact]
22+
pages: [Page]
23+
page(id: String): Page
24+
presentations: [Session]
25+
schedules: [Schedule]
26+
speakers: [Contact]
27+
talks: [Session]
28+
tickets: [[Ticket]]
2329
workshops: [Session]
2430
}
2531
2632
type Session {
27-
day: String,
28-
title: String,
29-
description: String,
30-
type: String,
31-
speakers: [Contact],
32-
tickets: [Ticket],
33-
keywords: [String],
34-
location: Contact,
33+
day: String
34+
title: String
35+
description: String
36+
type: String
37+
speakers: [Contact]
38+
tickets: [Ticket]
39+
keywords: [String]
40+
location: Contact
3541
urls: SessionUrls
3642
}
3743
3844
type SessionUrls {
39-
web: String,
40-
slides: String,
45+
web: String
46+
slides: String
4147
video: String
4248
}
4349
4450
type Page {
45-
id: String!,
46-
title: String!,
47-
description: String!,
48-
intro: String,
49-
main: String,
51+
id: String!
52+
title: String!
53+
description: String!
54+
intro: String
55+
main: String
5056
secondary: String
5157
}
5258
5359
type Contact {
54-
name: String!,
55-
about: String!,
56-
image: String,
57-
type: [String],
58-
social: Social,
59-
keywords: [String],
60-
keynotes: [Session],
61-
lightningTalks: [Session],
62-
presentations: [Session],
63-
talks: [Session],
64-
workshops: [Session],
65-
location: Location,
66-
country: Country,
67-
city: String,
60+
name: String!
61+
about: String!
62+
image: String
63+
type: [String]
64+
social: Social
65+
keywords: [String]
66+
keynotes: [Session]
67+
lightningTalks: [Session]
68+
presentations: [Session]
69+
talks: [Session]
70+
workshops: [Session]
71+
location: Location
72+
country: Country
73+
city: String
6874
address: String
6975
}
7076
7177
type Social {
72-
homepage: String,
73-
twitter: String,
74-
github: String,
75-
facebook: String,
76-
medium: String,
77-
instagram: String,
78-
linkedin: String,
79-
youtube: String,
78+
homepage: String
79+
twitter: String
80+
github: String
81+
facebook: String
82+
medium: String
83+
instagram: String
84+
linkedin: String
85+
youtube: String
8086
vk: String
8187
}
8288
8389
type Location {
84-
country: Country,
85-
city: String,
90+
country: Country
91+
city: String
8692
address: String
8793
}
8894
8995
type Country {
90-
name: String,
96+
name: String
9197
code: String
9298
}
9399
94100
type Schedule {
95-
day: String,
101+
day: String
96102
intervals: [Interval]
97103
}
98104
99105
type Interval {
100-
begin: String,
101-
end: String,
106+
begin: String
107+
end: String
102108
sessions: [Session]
103109
}
104110
105111
type Ticket {
106-
name: String!,
107-
amount: Int!,
108-
currency: String!,
112+
name: String!
113+
amount: Int!
114+
currency: String!
109115
link: String
110116
}
111117
`;

0 commit comments

Comments
 (0)