|
|
@ -18,14 +18,14 @@ import {
|
|
|
|
|
|
|
|
|
|
|
|
export interface StoreState {
|
|
|
|
export interface StoreState {
|
|
|
|
fetchCount: number;
|
|
|
|
fetchCount: number;
|
|
|
|
credentials2: CredentialsData;
|
|
|
|
credentials: CredentialsData;
|
|
|
|
settings: SettingsType;
|
|
|
|
settings: SettingsType;
|
|
|
|
encryptionKey: {key: string};
|
|
|
|
encryptionKey: {key: string};
|
|
|
|
sync: {
|
|
|
|
sync: {
|
|
|
|
collections: SyncCollectionsData;
|
|
|
|
collections: SyncCollectionsData;
|
|
|
|
general: SyncGeneralData;
|
|
|
|
general: SyncGeneralData;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
cache2: {
|
|
|
|
cache: {
|
|
|
|
collections: CacheCollectionsData;
|
|
|
|
collections: CacheCollectionsData;
|
|
|
|
items: CacheItemsData;
|
|
|
|
items: CacheItemsData;
|
|
|
|
};
|
|
|
|
};
|
|
|
@ -124,13 +124,13 @@ const cachePersistConfig = {
|
|
|
|
const reducers = combineReducers({
|
|
|
|
const reducers = combineReducers({
|
|
|
|
fetchCount,
|
|
|
|
fetchCount,
|
|
|
|
settings: persistReducer(settingsPersistConfig, settingsReducer),
|
|
|
|
settings: persistReducer(settingsPersistConfig, settingsReducer),
|
|
|
|
credentials2: persistReducer(credentialsPersistConfig, credentials),
|
|
|
|
credentials: persistReducer(credentialsPersistConfig, credentials),
|
|
|
|
encryptionKey: persistReducer(encryptionKeyPersistConfig, encryptionKeyReducer),
|
|
|
|
encryptionKey: persistReducer(encryptionKeyPersistConfig, encryptionKeyReducer),
|
|
|
|
sync: persistReducer(syncPersistConfig, combineReducers({
|
|
|
|
sync: persistReducer(syncPersistConfig, combineReducers({
|
|
|
|
collections: syncCollections,
|
|
|
|
collections: syncCollections,
|
|
|
|
general: syncGeneral,
|
|
|
|
general: syncGeneral,
|
|
|
|
})),
|
|
|
|
})),
|
|
|
|
cache2: persistReducer(cachePersistConfig, combineReducers({
|
|
|
|
cache: persistReducer(cachePersistConfig, combineReducers({
|
|
|
|
collections,
|
|
|
|
collections,
|
|
|
|
items,
|
|
|
|
items,
|
|
|
|
})),
|
|
|
|
})),
|
|
|
|