Skip to content

Commit

Permalink
feat: allow arbitrary widget flags
Browse files Browse the repository at this point in the history
  • Loading branch information
robb-j committed Apr 29, 2024
1 parent 4146c8a commit dc7e0cc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 22 deletions.
13 changes: 5 additions & 8 deletions content/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -69,18 +69,15 @@
},

"atriumWidgets": {
"register": false,
"twitter": false,
"login": true,
"siteVisitors": true,
"spatialChat": false,
"slack": false,
"siteVisitors": false,
"discord": true,
"familyResources": false,
"mozfestBook": true,
"linkedin": false,
"linkedin": true,
"mastodon": true,
"submissions": false,
"calendarHelp": true,
"hubs": true
"calendarHelp": false
},

"content": {
Expand Down
16 changes: 2 additions & 14 deletions server/src/lib/structs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import {
enums,
coerce,
defaulted,
record,
} from 'superstruct'

export const localised = () => object({ en: string(), es: string() })
Expand Down Expand Up @@ -55,20 +56,7 @@ export const ConferenceConfigStruct = object({
showRegister: boolean(),
}),

atriumWidgets: object({
siteVisitors: boolean(),
twitter: boolean(),
login: boolean(),
register: boolean(),
spatialChat: boolean(),
slack: boolean(),
familyResources: boolean(),
mozfestBook: boolean(),
linkedin: boolean(),
submissions: boolean(),
calendarHelp: boolean(),
hubs: defaulted(boolean(), false),
}),
atriumWidgets: record(string(), boolean()),

content: object({
atriumVideo: string(),
Expand Down

0 comments on commit dc7e0cc

Please sign in to comment.