瀏覽代碼

redux: move PersistenceRegistry to the redux feature

master
Saúl Ibarra Corretgé 5 年之前
父節點
當前提交
80d7e5fb7f

+ 1
- 1
react/features/base/app/components/BaseApp.js 查看文件

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

+ 1
- 2
react/features/base/known-domains/reducer.js 查看文件

1
 // @flow
1
 // @flow
2
 
2
 
3
 import { APP_WILL_MOUNT } from '../app';
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
 import { ADD_KNOWN_DOMAINS } from './actionTypes';
6
 import { ADD_KNOWN_DOMAINS } from './actionTypes';
8
 
7
 

react/features/base/storage/PersistenceRegistry.js → react/features/base/redux/PersistenceRegistry.js 查看文件


react/features/base/storage/README.md → react/features/base/redux/README.md 查看文件


+ 1
- 0
react/features/base/redux/index.js 查看文件

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

react/features/base/storage/middleware.js → react/features/base/redux/middleware.js 查看文件

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

+ 1
- 2
react/features/base/settings/reducer.js 查看文件

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

+ 0
- 3
react/features/base/storage/index.js 查看文件

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

+ 0
- 5
react/features/base/storage/logger.js 查看文件

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 查看文件

1
 // @flow
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
 import {
5
 import {
7
     CLEAR_CALENDAR_INTEGRATION,
6
     CLEAR_CALENDAR_INTEGRATION,

+ 1
- 2
react/features/dropbox/reducer.js 查看文件

1
 // @flow
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
 import { UPDATE_DROPBOX_TOKEN } from './actionTypes';
5
 import { UPDATE_DROPBOX_TOKEN } from './actionTypes';
7
 
6
 

+ 1
- 2
react/features/recent-list/reducer.js 查看文件

4
 
4
 
5
 import { APP_WILL_MOUNT } from '../base/app';
5
 import { APP_WILL_MOUNT } from '../base/app';
6
 import { getURLWithoutParamsNormalized } from '../base/connection';
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
 import {
9
 import {
11
     _STORE_CURRENT_CONFERENCE,
10
     _STORE_CURRENT_CONFERENCE,

+ 1
- 2
react/features/screenshot-capture/reducer.js 查看文件

1
 // @flow
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
 import { SET_SCREENSHOT_CAPTURE } from './actionTypes';
5
 import { SET_SCREENSHOT_CAPTURE } from './actionTypes';
7
 
6
 

+ 1
- 2
react/features/video-layout/reducer.js 查看文件

1
 // @flow
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
 import {
5
 import {
7
     SCREEN_SHARE_PARTICIPANTS_UPDATED,
6
     SCREEN_SHARE_PARTICIPANTS_UPDATED,

+ 1
- 2
react/features/welcome/reducer.js 查看文件

1
 // @flow
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
 import {
5
 import {
7
     SET_SIDEBAR_VISIBLE,
6
     SET_SIDEBAR_VISIBLE,

Loading…
取消
儲存