Changeset View
Changeset View
Standalone View
Standalone View
keyserver/src/responders/website-responders.js
Show All 23 Lines | |||||
import { defaultCalendarFilters } from 'lib/types/filter-types.js'; | import { defaultCalendarFilters } from 'lib/types/filter-types.js'; | ||||
import { defaultNumberPerThread } from 'lib/types/message-types.js'; | import { defaultNumberPerThread } from 'lib/types/message-types.js'; | ||||
import { defaultEnabledReports } from 'lib/types/report-types.js'; | import { defaultEnabledReports } from 'lib/types/report-types.js'; | ||||
import { defaultConnectionInfo } from 'lib/types/socket-types.js'; | import { defaultConnectionInfo } from 'lib/types/socket-types.js'; | ||||
import { threadPermissions, threadTypes } from 'lib/types/thread-types.js'; | import { threadPermissions, threadTypes } from 'lib/types/thread-types.js'; | ||||
import { currentDateInTimeZone } from 'lib/utils/date-utils.js'; | import { currentDateInTimeZone } from 'lib/utils/date-utils.js'; | ||||
import { ServerError } from 'lib/utils/errors.js'; | import { ServerError } from 'lib/utils/errors.js'; | ||||
import { promiseAll } from 'lib/utils/promises.js'; | import { promiseAll } from 'lib/utils/promises.js'; | ||||
import { defaultNotifPermissionAlertInfo } from 'lib/utils/push-alerts.js'; | |||||
import getTitle from 'web/title/getTitle.js'; | import getTitle from 'web/title/getTitle.js'; | ||||
import { navInfoFromURL } from 'web/url-utils.js'; | import { navInfoFromURL } from 'web/url-utils.js'; | ||||
import { fetchEntryInfos } from '../fetchers/entry-fetchers.js'; | import { fetchEntryInfos } from '../fetchers/entry-fetchers.js'; | ||||
import { fetchMessageInfos } from '../fetchers/message-fetchers.js'; | import { fetchMessageInfos } from '../fetchers/message-fetchers.js'; | ||||
import { hasAnyNotAcknowledgedPolicies } from '../fetchers/policy-acknowledgment-fetchers.js'; | import { hasAnyNotAcknowledgedPolicies } from '../fetchers/policy-acknowledgment-fetchers.js'; | ||||
import { fetchThreadInfos } from '../fetchers/thread-fetchers.js'; | import { fetchThreadInfos } from '../fetchers/thread-fetchers.js'; | ||||
import { | import { | ||||
▲ Show 20 Lines • Show All 345 Lines • ▼ Show 20 Lines | const initialReduxState = await promiseAll({ | ||||
messageStore: messageStorePromise, | messageStore: messageStorePromise, | ||||
updatesCurrentAsOf: currentAsOfPromise, | updatesCurrentAsOf: currentAsOfPromise, | ||||
loadingStatuses: {}, | loadingStatuses: {}, | ||||
calendarFilters: defaultCalendarFilters, | calendarFilters: defaultCalendarFilters, | ||||
// 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, | |||||
connection: { | connection: { | ||||
...defaultConnectionInfo(viewer.platform ?? 'web', viewer.timeZone), | ...defaultConnectionInfo(viewer.platform ?? 'web', viewer.timeZone), | ||||
actualizedCalendarQuery: calendarQuery, | actualizedCalendarQuery: calendarQuery, | ||||
}, | }, | ||||
watchedThreadIDs: [], | watchedThreadIDs: [], | ||||
lifecycleState: 'active', | lifecycleState: 'active', | ||||
enabledApps: defaultWebEnabledApps, | enabledApps: defaultWebEnabledApps, | ||||
reportStore: { | reportStore: { | ||||
Show All 31 Lines |