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 { i18next } from '../../i18n';
import { import {
MiddlewareRegistry, MiddlewareRegistry,
PersistenceRegistry,
ReducerRegistry, ReducerRegistry,
StateListenerRegistry StateListenerRegistry
} from '../../redux'; } from '../../redux';
import { SoundCollection } from '../../sounds'; import { SoundCollection } from '../../sounds';
import { PersistenceRegistry } from '../../storage';
import { appWillMount, appWillUnmount } from '../actions'; import { appWillMount, appWillUnmount } from '../actions';
import logger from '../logger'; import logger from '../logger';

View File

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

View File

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

View File

@ -2,9 +2,9 @@
import _ from 'lodash'; import _ from 'lodash';
import { MiddlewareRegistry, toState } from '../redux'; import MiddlewareRegistry from './MiddlewareRegistry';
import PersistenceRegistry from './PersistenceRegistry'; import PersistenceRegistry from './PersistenceRegistry';
import { toState } from './functions';
/** /**
* The delay in milliseconds that passes between the last state change and the * 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 { APP_WILL_MOUNT } from '../app';
import { browser } from '../lib-jitsi-meet'; import { browser } from '../lib-jitsi-meet';
import { ReducerRegistry } from '../redux'; import { PersistenceRegistry, ReducerRegistry } from '../redux';
import { PersistenceRegistry } from '../storage';
import { assignIfDefined } from '../util'; import { assignIfDefined } from '../util';
import { SETTINGS_UPDATED } from './actionTypes'; 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 // @flow
import { ReducerRegistry, set } from '../base/redux'; import { PersistenceRegistry, ReducerRegistry, set } from '../base/redux';
import { PersistenceRegistry } from '../base/storage';
import { import {
CLEAR_CALENDAR_INTEGRATION, CLEAR_CALENDAR_INTEGRATION,

View File

@ -1,7 +1,6 @@
// @flow // @flow
import { ReducerRegistry } from '../base/redux'; import { PersistenceRegistry, ReducerRegistry } from '../base/redux';
import { PersistenceRegistry } from '../base/storage';
import { UPDATE_DROPBOX_TOKEN } from './actionTypes'; 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 { APP_WILL_MOUNT } from '../base/app';
import { getURLWithoutParamsNormalized } from '../base/connection'; import { getURLWithoutParamsNormalized } from '../base/connection';
import { ReducerRegistry } from '../base/redux'; import { PersistenceRegistry, ReducerRegistry } from '../base/redux';
import { PersistenceRegistry } from '../base/storage';
import { import {
_STORE_CURRENT_CONFERENCE, _STORE_CURRENT_CONFERENCE,

View File

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

View File

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

View File

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