redux: move PersistenceRegistry to the redux feature

This commit is contained in:
Saúl Ibarra Corretgé 2020-06-03 16:56:08 +02:00 committed by Saúl Ibarra Corretgé
parent 7646618e5a
commit 80d7e5fb7f
15 changed files with 12 additions and 27 deletions

View File

@ -11,11 +11,11 @@ import Thunk from 'redux-thunk';
import { i18next } from '../../i18n';
import {
MiddlewareRegistry,
PersistenceRegistry,
ReducerRegistry,
StateListenerRegistry
} from '../../redux';
import { SoundCollection } from '../../sounds';
import { PersistenceRegistry } from '../../storage';
import { appWillMount, appWillUnmount } from '../actions';
import logger from '../logger';

View File

@ -1,8 +1,7 @@
// @flow
import { APP_WILL_MOUNT } from '../app';
import { ReducerRegistry } from '../redux';
import { PersistenceRegistry } from '../storage';
import { PersistenceRegistry, ReducerRegistry } from '../redux';
import { ADD_KNOWN_DOMAINS } from './actionTypes';

View File

@ -1,4 +1,5 @@
export * from './functions';
export { default as MiddlewareRegistry } from './MiddlewareRegistry';
export { default as PersistenceRegistry } from './PersistenceRegistry';
export { default as ReducerRegistry } from './ReducerRegistry';
export { default as StateListenerRegistry } from './StateListenerRegistry';

View File

@ -2,9 +2,9 @@
import _ from 'lodash';
import { MiddlewareRegistry, toState } from '../redux';
import MiddlewareRegistry from './MiddlewareRegistry';
import PersistenceRegistry from './PersistenceRegistry';
import { toState } from './functions';
/**
* The delay in milliseconds that passes between the last state change and the

View File

@ -6,8 +6,7 @@ import _ from 'lodash';
import { APP_WILL_MOUNT } from '../app';
import { browser } from '../lib-jitsi-meet';
import { ReducerRegistry } from '../redux';
import { PersistenceRegistry } from '../storage';
import { PersistenceRegistry, ReducerRegistry } from '../redux';
import { assignIfDefined } from '../util';
import { SETTINGS_UPDATED } from './actionTypes';

View File

@ -1,3 +0,0 @@
export { default as PersistenceRegistry } from './PersistenceRegistry';
import './middleware';

View File

@ -1,5 +0,0 @@
// @flow
import { getLogger } from '../logging/functions';
export default getLogger('features/base/storage');

View File

@ -1,7 +1,6 @@
// @flow
import { ReducerRegistry, set } from '../base/redux';
import { PersistenceRegistry } from '../base/storage';
import { PersistenceRegistry, ReducerRegistry, set } from '../base/redux';
import {
CLEAR_CALENDAR_INTEGRATION,

View File

@ -1,7 +1,6 @@
// @flow
import { ReducerRegistry } from '../base/redux';
import { PersistenceRegistry } from '../base/storage';
import { PersistenceRegistry, ReducerRegistry } from '../base/redux';
import { UPDATE_DROPBOX_TOKEN } from './actionTypes';

View File

@ -4,8 +4,7 @@ import { jitsiLocalStorage } from 'js-utils';
import { APP_WILL_MOUNT } from '../base/app';
import { getURLWithoutParamsNormalized } from '../base/connection';
import { ReducerRegistry } from '../base/redux';
import { PersistenceRegistry } from '../base/storage';
import { PersistenceRegistry, ReducerRegistry } from '../base/redux';
import {
_STORE_CURRENT_CONFERENCE,

View File

@ -1,7 +1,6 @@
// @flow
import { ReducerRegistry } from '../base/redux';
import { PersistenceRegistry } from '../base/storage';
import { PersistenceRegistry, ReducerRegistry } from '../base/redux';
import { SET_SCREENSHOT_CAPTURE } from './actionTypes';

View File

@ -1,7 +1,6 @@
// @flow
import { ReducerRegistry } from '../base/redux';
import { PersistenceRegistry } from '../base/storage';
import { PersistenceRegistry, ReducerRegistry } from '../base/redux';
import {
SCREEN_SHARE_PARTICIPANTS_UPDATED,

View File

@ -1,7 +1,6 @@
// @flow
import { ReducerRegistry, set } from '../base/redux';
import { PersistenceRegistry } from '../base/storage';
import { PersistenceRegistry, ReducerRegistry, set } from '../base/redux';
import {
SET_SIDEBAR_VISIBLE,