Changeset View
Changeset View
Standalone View
Standalone View
web/redux/redux-setup.js
Show All 16 Lines | import type { | ||||
OLMIdentityKeys, | OLMIdentityKeys, | ||||
PickledOLMAccount, | PickledOLMAccount, | ||||
} from 'lib/types/crypto-types.js'; | } from 'lib/types/crypto-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 { 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 { LoadingStatus } from 'lib/types/loading-types.js'; | import type { LoadingStatus } from 'lib/types/loading-types.js'; | ||||
import type { MessageStore } from 'lib/types/message-types.js'; | import type { MessageStore } from 'lib/types/message-types.js'; | ||||
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.js'; | import type { BaseAction } from 'lib/types/redux-types.js'; | ||||
import type { ReportStore } from 'lib/types/report-types.js'; | import type { ReportStore } from 'lib/types/report-types.js'; | ||||
import type { ConnectionInfo } from 'lib/types/socket-types.js'; | import type { ConnectionInfo } from 'lib/types/socket-types.js'; | ||||
import type { ThreadStore } from 'lib/types/thread-types.js'; | import type { ThreadStore } from 'lib/types/thread-types.js'; | ||||
import type { CurrentUserInfo, UserStore } from 'lib/types/user-types.js'; | import type { CurrentUserInfo, UserStore } from 'lib/types/user-types.js'; | ||||
▲ Show 20 Lines • Show All 57 Lines • ▼ Show 20 Lines | export type AppState = { | ||||
nextLocalID: number, | nextLocalID: number, | ||||
dataLoaded: boolean, | dataLoaded: boolean, | ||||
windowActive: boolean, | windowActive: boolean, | ||||
userPolicies: UserPolicies, | userPolicies: UserPolicies, | ||||
cryptoStore: CryptoStore, | cryptoStore: CryptoStore, | ||||
pushApiPublicKey: ?string, | pushApiPublicKey: ?string, | ||||
_persist: ?PersistState, | _persist: ?PersistState, | ||||
+commServicesAccessToken: ?string, | +commServicesAccessToken: ?string, | ||||
+inviteLinksStore: InviteLinksStore, | |||||
}; | }; | ||||
export type Action = | export type Action = | ||||
| BaseAction | | BaseAction | ||||
| { type: 'UPDATE_NAV_INFO', payload: Shape<NavInfo> } | | { type: 'UPDATE_NAV_INFO', payload: Shape<NavInfo> } | ||||
| { | | { | ||||
type: 'UPDATE_WINDOW_DIMENSIONS', | type: 'UPDATE_WINDOW_DIMENSIONS', | ||||
payload: WindowDimensions, | payload: WindowDimensions, | ||||
▲ Show 20 Lines • Show All 203 Lines • Show Last 20 Lines |