Changeset View
Changeset View
Standalone View
Standalone View
web/redux/redux-setup.js
Show All 9 Lines | |||||
import baseReducer from 'lib/reducers/master-reducer'; | import baseReducer from 'lib/reducers/master-reducer'; | ||||
import { mostRecentlyReadThreadSelector } from 'lib/selectors/thread-selectors'; | import { mostRecentlyReadThreadSelector } from 'lib/selectors/thread-selectors'; | ||||
import { isLoggedIn } from 'lib/selectors/user-selectors'; | import { isLoggedIn } from 'lib/selectors/user-selectors'; | ||||
import { invalidSessionDowngrade } from 'lib/shared/account-utils'; | import { invalidSessionDowngrade } from 'lib/shared/account-utils'; | ||||
import type { Shape } from 'lib/types/core'; | import type { Shape } from 'lib/types/core'; | ||||
import type { DraftStore } from 'lib/types/draft-types'; | import type { DraftStore } from 'lib/types/draft-types'; | ||||
import type { EnabledApps } from 'lib/types/enabled-apps'; | import type { EnabledApps } from 'lib/types/enabled-apps'; | ||||
import type { EntryStore } from 'lib/types/entry-types'; | import type { EntryStore } from 'lib/types/entry-types'; | ||||
import type { CalendarFilter } from 'lib/types/filter-types'; | import type { | ||||
CalendarFilter, | |||||
CalendarCommunityFilter, | |||||
} from 'lib/types/filter-types'; | |||||
import type { LifecycleState } from 'lib/types/lifecycle-state-types'; | import type { LifecycleState } from 'lib/types/lifecycle-state-types'; | ||||
import type { LoadingStatus } from 'lib/types/loading-types'; | import type { LoadingStatus } from 'lib/types/loading-types'; | ||||
import type { MessageStore } from 'lib/types/message-types'; | import type { MessageStore } from 'lib/types/message-types'; | ||||
import type { UserPolicies } from 'lib/types/policy-types.js'; | import type { UserPolicies } from 'lib/types/policy-types.js'; | ||||
import type { BaseAction } from 'lib/types/redux-types'; | import type { BaseAction } from 'lib/types/redux-types'; | ||||
import type { ReportStore } from 'lib/types/report-types'; | import type { ReportStore } from 'lib/types/report-types'; | ||||
import type { ConnectionInfo } from 'lib/types/socket-types'; | import type { ConnectionInfo } from 'lib/types/socket-types'; | ||||
import type { ThreadStore } from 'lib/types/thread-types'; | import type { ThreadStore } from 'lib/types/thread-types'; | ||||
Show All 25 Lines | export type AppState = { | ||||
sessionID: ?string, | sessionID: ?string, | ||||
entryStore: EntryStore, | entryStore: EntryStore, | ||||
threadStore: ThreadStore, | threadStore: ThreadStore, | ||||
userStore: UserStore, | userStore: UserStore, | ||||
messageStore: MessageStore, | messageStore: MessageStore, | ||||
updatesCurrentAsOf: number, | updatesCurrentAsOf: number, | ||||
loadingStatuses: { [key: string]: { [idx: number]: LoadingStatus } }, | loadingStatuses: { [key: string]: { [idx: number]: LoadingStatus } }, | ||||
calendarFilters: $ReadOnlyArray<CalendarFilter>, | calendarFilters: $ReadOnlyArray<CalendarFilter>, | ||||
communityFilter: ?CalendarCommunityFilter, | |||||
urlPrefix: string, | urlPrefix: string, | ||||
windowDimensions: WindowDimensions, | windowDimensions: WindowDimensions, | ||||
cookie?: void, | cookie?: void, | ||||
deviceToken?: void, | deviceToken?: void, | ||||
baseHref: string, | baseHref: string, | ||||
connection: ConnectionInfo, | connection: ConnectionInfo, | ||||
watchedThreadIDs: $ReadOnlyArray<string>, | watchedThreadIDs: $ReadOnlyArray<string>, | ||||
lifecycleState: LifecycleState, | lifecycleState: LifecycleState, | ||||
▲ Show 20 Lines • Show All 193 Lines • Show Last 20 Lines |