Explorar el Código

redux: move PersistenceRegistry to the redux feature

master
Saúl Ibarra Corretgé hace 5 años
padre
commit
80d7e5fb7f

+ 1
- 1
react/features/base/app/components/BaseApp.js Ver fichero

@@ -11,11 +11,11 @@ import Thunk from 'redux-thunk';
11 11
 import { i18next } from '../../i18n';
12 12
 import {
13 13
     MiddlewareRegistry,
14
+    PersistenceRegistry,
14 15
     ReducerRegistry,
15 16
     StateListenerRegistry
16 17
 } from '../../redux';
17 18
 import { SoundCollection } from '../../sounds';
18
-import { PersistenceRegistry } from '../../storage';
19 19
 import { appWillMount, appWillUnmount } from '../actions';
20 20
 import logger from '../logger';
21 21
 

+ 1
- 2
react/features/base/known-domains/reducer.js Ver fichero

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

react/features/base/storage/PersistenceRegistry.js → react/features/base/redux/PersistenceRegistry.js Ver fichero


react/features/base/storage/README.md → react/features/base/redux/README.md Ver fichero


+ 1
- 0
react/features/base/redux/index.js Ver fichero

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

react/features/base/storage/middleware.js → react/features/base/redux/middleware.js Ver fichero

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

+ 1
- 2
react/features/base/settings/reducer.js Ver fichero

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

+ 0
- 3
react/features/base/storage/index.js Ver fichero

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

+ 0
- 5
react/features/base/storage/logger.js Ver fichero

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

+ 1
- 2
react/features/calendar-sync/reducer.js Ver fichero

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

+ 1
- 2
react/features/dropbox/reducer.js Ver fichero

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

+ 1
- 2
react/features/recent-list/reducer.js Ver fichero

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

+ 1
- 2
react/features/screenshot-capture/reducer.js Ver fichero

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

+ 1
- 2
react/features/video-layout/reducer.js Ver fichero

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

+ 1
- 2
react/features/welcome/reducer.js Ver fichero

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

Loading…
Cancelar
Guardar