Changeset View
Changeset View
Standalone View
Standalone View
keyserver/src/responders/website-responders.js
Show First 20 Lines • Show All 171 Lines • ▼ Show 20 Lines | const initialReduxStateValidator = tShape({ | ||||
}), | }), | ||||
messageStore: messageStoreValidator, | messageStore: messageStoreValidator, | ||||
updatesCurrentAsOf: t.Number, | updatesCurrentAsOf: t.Number, | ||||
loadingStatuses: t.irreducible('default loadingStatuses', _isEqual({})), | loadingStatuses: t.irreducible('default loadingStatuses', _isEqual({})), | ||||
calendarFilters: t.irreducible( | calendarFilters: t.irreducible( | ||||
'defaultCalendarFilters', | 'defaultCalendarFilters', | ||||
_isEqual(defaultCalendarFilters), | _isEqual(defaultCalendarFilters), | ||||
), | ), | ||||
communityPickerStore: t.irreducible( | |||||
'default communityPickerStore', | |||||
_isEqual({ chat: null, calendar: null }), | |||||
), | |||||
urlPrefix: tString(''), | urlPrefix: tString(''), | ||||
windowDimensions: t.irreducible( | windowDimensions: t.irreducible( | ||||
'default windowDimensions', | 'default windowDimensions', | ||||
_isEqual({ width: 0, height: 0 }), | _isEqual({ width: 0, height: 0 }), | ||||
), | ), | ||||
baseHref: t.String, | baseHref: t.String, | ||||
notifPermissionAlertInfo: t.irreducible( | notifPermissionAlertInfo: t.irreducible( | ||||
'default notifPermissionAlertInfo', | 'default notifPermissionAlertInfo', | ||||
▲ Show 20 Lines • Show All 303 Lines • ▼ Show 20 Lines | const initialReduxState = await promiseAll({ | ||||
sessionID: sessionIDPromise, | sessionID: sessionIDPromise, | ||||
entryStore: entryStorePromise, | entryStore: entryStorePromise, | ||||
threadStore: threadStorePromise, | threadStore: threadStorePromise, | ||||
userStore: userStorePromise, | userStore: userStorePromise, | ||||
messageStore: messageStorePromise, | messageStore: messageStorePromise, | ||||
updatesCurrentAsOf: currentAsOfPromise, | updatesCurrentAsOf: currentAsOfPromise, | ||||
loadingStatuses: {}, | loadingStatuses: {}, | ||||
calendarFilters: defaultCalendarFilters, | calendarFilters: defaultCalendarFilters, | ||||
communityPickerStore: { chat: null, calendar: null }, | |||||
// We can use paths local to the <base href> on web | // We can use paths local to the <base href> on web | ||||
urlPrefix: '', | urlPrefix: '', | ||||
windowDimensions: { width: 0, height: 0 }, | windowDimensions: { width: 0, height: 0 }, | ||||
baseHref, | baseHref, | ||||
notifPermissionAlertInfo: defaultNotifPermissionAlertInfo, | notifPermissionAlertInfo: defaultNotifPermissionAlertInfo, | ||||
connection: { | connection: { | ||||
...defaultConnectionInfo(viewer.platform ?? 'web', viewer.timeZone), | ...defaultConnectionInfo(viewer.platform ?? 'web', viewer.timeZone), | ||||
actualizedCalendarQuery: calendarQuery, | actualizedCalendarQuery: calendarQuery, | ||||
▲ Show 20 Lines • Show All 228 Lines • Show Last 20 Lines |