Changeset View
Changeset View
Standalone View
Standalone View
web/redux/redux-setup.js
Show All 21 Lines | |||||
import baseReducer from 'lib/reducers/master-reducer.js'; | import baseReducer from 'lib/reducers/master-reducer.js'; | ||||
import { mostRecentlyReadThreadSelector } from 'lib/selectors/thread-selectors.js'; | import { mostRecentlyReadThreadSelector } from 'lib/selectors/thread-selectors.js'; | ||||
import { isLoggedIn } from 'lib/selectors/user-selectors.js'; | import { isLoggedIn } from 'lib/selectors/user-selectors.js'; | ||||
import { | import { | ||||
invalidSessionDowngrade, | invalidSessionDowngrade, | ||||
identityInvalidSessionDowngrade, | identityInvalidSessionDowngrade, | ||||
} from 'lib/shared/session-utils.js'; | } from 'lib/shared/session-utils.js'; | ||||
import type { CommunityStore } from 'lib/types/community-types.js'; | import type { CommunityStore } from 'lib/types/community-types.js'; | ||||
import type { DBOpsStore } from 'lib/types/db-ops-types.js'; | |||||
import type { DraftStore } from 'lib/types/draft-types.js'; | import type { DraftStore } from 'lib/types/draft-types.js'; | ||||
import type { EnabledApps } from 'lib/types/enabled-apps.js'; | import type { EnabledApps } from 'lib/types/enabled-apps.js'; | ||||
import type { EntryStore } from 'lib/types/entry-types.js'; | import type { EntryStore } from 'lib/types/entry-types.js'; | ||||
import { type CalendarFilter } from 'lib/types/filter-types.js'; | import { type CalendarFilter } from 'lib/types/filter-types.js'; | ||||
import type { IntegrityStore } from 'lib/types/integrity-types.js'; | import type { IntegrityStore } from 'lib/types/integrity-types.js'; | ||||
import type { KeyserverStore } from 'lib/types/keyserver-types.js'; | import type { KeyserverStore } from 'lib/types/keyserver-types.js'; | ||||
import type { LifecycleState } from 'lib/types/lifecycle-state-types.js'; | import type { LifecycleState } from 'lib/types/lifecycle-state-types.js'; | ||||
import type { InviteLinksStore } from 'lib/types/link-types.js'; | import type { InviteLinksStore } from 'lib/types/link-types.js'; | ||||
▲ Show 20 Lines • Show All 74 Lines • ▼ Show 20 Lines | export type AppState = { | ||||
+inviteLinksStore: InviteLinksStore, | +inviteLinksStore: InviteLinksStore, | ||||
+keyserverStore: KeyserverStore, | +keyserverStore: KeyserverStore, | ||||
+threadActivityStore: ThreadActivityStore, | +threadActivityStore: ThreadActivityStore, | ||||
+initialStateLoaded: boolean, | +initialStateLoaded: boolean, | ||||
+integrityStore: IntegrityStore, | +integrityStore: IntegrityStore, | ||||
+globalThemeInfo: GlobalThemeInfo, | +globalThemeInfo: GlobalThemeInfo, | ||||
+customServer: ?string, | +customServer: ?string, | ||||
+communityStore: CommunityStore, | +communityStore: CommunityStore, | ||||
+dbOpsStore: DBOpsStore, | |||||
}; | }; | ||||
export type Action = | export type Action = | ||||
| BaseAction | | BaseAction | ||||
| { +type: 'UPDATE_NAV_INFO', +payload: Partial<WebNavInfo> } | | { +type: 'UPDATE_NAV_INFO', +payload: Partial<WebNavInfo> } | ||||
| { | | { | ||||
+type: 'UPDATE_WINDOW_DIMENSIONS', | +type: 'UPDATE_WINDOW_DIMENSIONS', | ||||
+payload: WindowDimensions, | +payload: WindowDimensions, | ||||
▲ Show 20 Lines • Show All 358 Lines • Show Last 20 Lines |