@deephaven/redux 0.5.2-beta.0 → 0.6.1-demo.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/actions.js +48 -65
- package/dist/actions.js.map +1 -1
- package/dist/index.js +6 -6
- package/dist/index.js.map +1 -1
- package/dist/middleware/crashReporter.js +7 -11
- package/dist/middleware/crashReporter.js.map +1 -1
- package/dist/middleware/index.d.ts +2 -2
- package/dist/middleware/index.js +2 -2
- package/dist/middleware/index.js.map +1 -1
- package/dist/middleware/logger.js +5 -9
- package/dist/middleware/logger.js.map +1 -1
- package/dist/reducerRegistry.js +16 -27
- package/dist/reducerRegistry.js.map +1 -1
- package/dist/reducers/activeTool.js +2 -2
- package/dist/reducers/activeTool.js.map +1 -1
- package/dist/reducers/common/index.js +3 -3
- package/dist/reducers/common/index.js.map +1 -1
- package/dist/reducers/common/mergeReducer.js +18 -20
- package/dist/reducers/common/mergeReducer.js.map +1 -1
- package/dist/reducers/common/replaceByIdReducer.js +8 -4
- package/dist/reducers/common/replaceByIdReducer.js.map +1 -1
- package/dist/reducers/common/replaceReducer.js +11 -13
- package/dist/reducers/common/replaceReducer.js.map +1 -1
- package/dist/reducers/index.js +8 -8
- package/dist/reducers/index.js.map +1 -1
- package/dist/reducers/storage/commandHistoryStorage.js +2 -2
- package/dist/reducers/storage/commandHistoryStorage.js.map +1 -1
- package/dist/reducers/storage/fileStorage.js +2 -2
- package/dist/reducers/storage/fileStorage.js.map +1 -1
- package/dist/reducers/storage/index.js +6 -6
- package/dist/reducers/storage/index.js.map +1 -1
- package/dist/reducers/storage/workspaceStorage.js +2 -2
- package/dist/reducers/storage/workspaceStorage.js.map +1 -1
- package/dist/reducers/user.js +2 -2
- package/dist/reducers/user.js.map +1 -1
- package/dist/reducers/workspace.js +2 -2
- package/dist/reducers/workspace.js.map +1 -1
- package/dist/reducers/workspaceStorage.js +2 -2
- package/dist/reducers/workspaceStorage.js.map +1 -1
- package/dist/selectors.js +17 -51
- package/dist/selectors.js.map +1 -1
- package/dist/store.js +7 -30
- package/dist/store.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +8 -11
package/dist/actions.js
CHANGED
|
@@ -4,88 +4,71 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { va
|
|
|
4
4
|
|
|
5
5
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
6
6
|
|
|
7
|
-
import { SET_USER, SET_WORKSPACE, SET_COMMAND_HISTORY_STORAGE, SET_WORKSPACE_STORAGE, SET_ACTIVE_TOOL, SET_FILE_STORAGE } from
|
|
8
|
-
export var setUser =
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
};
|
|
20
|
-
export var
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
type: SET_COMMAND_HISTORY_STORAGE,
|
|
29
|
-
payload: commandHistoryStorage
|
|
30
|
-
};
|
|
31
|
-
};
|
|
32
|
-
export var setFileStorage = function setFileStorage(fileStorage) {
|
|
33
|
-
return {
|
|
34
|
-
type: SET_FILE_STORAGE,
|
|
35
|
-
payload: fileStorage
|
|
36
|
-
};
|
|
37
|
-
};
|
|
7
|
+
import { SET_USER, SET_WORKSPACE, SET_COMMAND_HISTORY_STORAGE, SET_WORKSPACE_STORAGE, SET_ACTIVE_TOOL, SET_FILE_STORAGE } from "./actionTypes.js";
|
|
8
|
+
export var setUser = user => ({
|
|
9
|
+
type: SET_USER,
|
|
10
|
+
payload: user
|
|
11
|
+
});
|
|
12
|
+
export var setWorkspace = workspace => ({
|
|
13
|
+
type: SET_WORKSPACE,
|
|
14
|
+
payload: workspace
|
|
15
|
+
});
|
|
16
|
+
export var setWorkspaceStorage = workspaceStorage => ({
|
|
17
|
+
type: SET_WORKSPACE_STORAGE,
|
|
18
|
+
payload: workspaceStorage
|
|
19
|
+
});
|
|
20
|
+
export var setCommandHistoryStorage = commandHistoryStorage => ({
|
|
21
|
+
type: SET_COMMAND_HISTORY_STORAGE,
|
|
22
|
+
payload: commandHistoryStorage
|
|
23
|
+
});
|
|
24
|
+
export var setFileStorage = fileStorage => ({
|
|
25
|
+
type: SET_FILE_STORAGE,
|
|
26
|
+
payload: fileStorage
|
|
27
|
+
});
|
|
38
28
|
/**
|
|
39
29
|
* Sets the specified workspace locally and saves it remotely
|
|
40
30
|
* @param {Workspace} workspace The workspace to save
|
|
41
31
|
*/
|
|
42
32
|
|
|
43
|
-
export var saveWorkspace =
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
};
|
|
33
|
+
export var saveWorkspace = workspace => (dispatch, getState) => {
|
|
34
|
+
dispatch(setWorkspace(workspace));
|
|
35
|
+
var {
|
|
36
|
+
storage
|
|
37
|
+
} = getState();
|
|
38
|
+
var {
|
|
39
|
+
workspaceStorage
|
|
40
|
+
} = storage;
|
|
41
|
+
return workspaceStorage.save(workspace);
|
|
53
42
|
};
|
|
54
43
|
/**
|
|
55
44
|
* Update part of the workspace data and save it
|
|
56
45
|
* @param {Object} workspaceData The property to update in workspace data
|
|
57
46
|
*/
|
|
58
47
|
|
|
59
|
-
export var updateWorkspaceData =
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
48
|
+
export var updateWorkspaceData = workspaceData => (dispatch, getState) => {
|
|
49
|
+
var {
|
|
50
|
+
workspace
|
|
51
|
+
} = getState();
|
|
52
|
+
var {
|
|
53
|
+
data
|
|
54
|
+
} = workspace;
|
|
65
55
|
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
56
|
+
var newWorkspace = _objectSpread(_objectSpread({}, workspace), {}, {
|
|
57
|
+
data: _objectSpread(_objectSpread({}, data), workspaceData)
|
|
58
|
+
});
|
|
69
59
|
|
|
70
|
-
|
|
71
|
-
};
|
|
60
|
+
return dispatch(saveWorkspace(newWorkspace));
|
|
72
61
|
};
|
|
73
62
|
/**
|
|
74
63
|
* Sets the specified settings locally and saves them remotely
|
|
75
64
|
* @param {Object} settings The settings to save
|
|
76
65
|
*/
|
|
77
66
|
|
|
78
|
-
export var saveSettings =
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
};
|
|
85
|
-
export var setActiveTool = function setActiveTool(payload) {
|
|
86
|
-
return {
|
|
87
|
-
type: SET_ACTIVE_TOOL,
|
|
88
|
-
payload: payload
|
|
89
|
-
};
|
|
90
|
-
};
|
|
67
|
+
export var saveSettings = settings => dispatch => dispatch(updateWorkspaceData({
|
|
68
|
+
settings
|
|
69
|
+
}));
|
|
70
|
+
export var setActiveTool = payload => ({
|
|
71
|
+
type: SET_ACTIVE_TOOL,
|
|
72
|
+
payload
|
|
73
|
+
});
|
|
91
74
|
//# sourceMappingURL=actions.js.map
|
package/dist/actions.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/actions.js"],"names":["SET_USER","SET_WORKSPACE","SET_COMMAND_HISTORY_STORAGE","SET_WORKSPACE_STORAGE","SET_ACTIVE_TOOL","SET_FILE_STORAGE","setUser","user","type","payload","setWorkspace","workspace","setWorkspaceStorage","workspaceStorage","setCommandHistoryStorage","commandHistoryStorage","setFileStorage","fileStorage","saveWorkspace","dispatch","getState","storage","save","updateWorkspaceData","workspaceData","data","newWorkspace","saveSettings","settings","setActiveTool"],"mappings":";;;;;;
|
|
1
|
+
{"version":3,"sources":["../src/actions.js"],"names":["SET_USER","SET_WORKSPACE","SET_COMMAND_HISTORY_STORAGE","SET_WORKSPACE_STORAGE","SET_ACTIVE_TOOL","SET_FILE_STORAGE","setUser","user","type","payload","setWorkspace","workspace","setWorkspaceStorage","workspaceStorage","setCommandHistoryStorage","commandHistoryStorage","setFileStorage","fileStorage","saveWorkspace","dispatch","getState","storage","save","updateWorkspaceData","workspaceData","data","newWorkspace","saveSettings","settings","setActiveTool"],"mappings":";;;;;;SACEA,Q,EACAC,a,EACAC,2B,EACAC,qB,EACAC,e,EACAC,gB;AAGF,OAAO,IAAMC,OAAO,GAAGC,IAAI,KAAK;AAC9BC,EAAAA,IAAI,EAAER,QADwB;AAE9BS,EAAAA,OAAO,EAAEF;AAFqB,CAAL,CAApB;AAKP,OAAO,IAAMG,YAAY,GAAGC,SAAS,KAAK;AACxCH,EAAAA,IAAI,EAAEP,aADkC;AAExCQ,EAAAA,OAAO,EAAEE;AAF+B,CAAL,CAA9B;AAKP,OAAO,IAAMC,mBAAmB,GAAGC,gBAAgB,KAAK;AACtDL,EAAAA,IAAI,EAAEL,qBADgD;AAEtDM,EAAAA,OAAO,EAAEI;AAF6C,CAAL,CAA5C;AAKP,OAAO,IAAMC,wBAAwB,GAAGC,qBAAqB,KAAK;AAChEP,EAAAA,IAAI,EAAEN,2BAD0D;AAEhEO,EAAAA,OAAO,EAAEM;AAFuD,CAAL,CAAtD;AAKP,OAAO,IAAMC,cAAc,GAAGC,WAAW,KAAK;AAC5CT,EAAAA,IAAI,EAAEH,gBADsC;AAE5CI,EAAAA,OAAO,EAAEQ;AAFmC,CAAL,CAAlC;AAKP;AACA;AACA;AACA;;AACA,OAAO,IAAMC,aAAa,GAAGP,SAAS,IAAI,CAACQ,QAAD,EAAWC,QAAX,KAAwB;AAChED,EAAAA,QAAQ,CAACT,YAAY,CAACC,SAAD,CAAb,CAAR;AAEA,MAAM;AAAEU,IAAAA;AAAF,MAAcD,QAAQ,EAA5B;AACA,MAAM;AAAEP,IAAAA;AAAF,MAAuBQ,OAA7B;AACA,SAAOR,gBAAgB,CAACS,IAAjB,CAAsBX,SAAtB,CAAP;AACD,CANM;AAQP;AACA;AACA;AACA;;AACA,OAAO,IAAMY,mBAAmB,GAAGC,aAAa,IAAI,CAACL,QAAD,EAAWC,QAAX,KAAwB;AAC1E,MAAM;AAAET,IAAAA;AAAF,MAAgBS,QAAQ,EAA9B;AACA,MAAM;AAAEK,IAAAA;AAAF,MAAWd,SAAjB;;AACA,MAAMe,YAAY,mCACbf,SADa;AAEhBc,IAAAA,IAAI,kCACCA,IADD,GAECD,aAFD;AAFY,IAAlB;;AAOA,SAAOL,QAAQ,CAACD,aAAa,CAACQ,YAAD,CAAd,CAAf;AACD,CAXM;AAaP;AACA;AACA;AACA;;AACA,OAAO,IAAMC,YAAY,GAAGC,QAAQ,IAAIT,QAAQ,IAC9CA,QAAQ,CAACI,mBAAmB,CAAC;AAAEK,EAAAA;AAAF,CAAD,CAApB,CADH;AAGP,OAAO,IAAMC,aAAa,GAAGpB,OAAO,KAAK;AACvCD,EAAAA,IAAI,EAAEJ,eADiC;AAEvCK,EAAAA;AAFuC,CAAL,CAA7B","sourcesContent":["import {\n SET_USER,\n SET_WORKSPACE,\n SET_COMMAND_HISTORY_STORAGE,\n SET_WORKSPACE_STORAGE,\n SET_ACTIVE_TOOL,\n SET_FILE_STORAGE,\n} from './actionTypes';\n\nexport const setUser = user => ({\n type: SET_USER,\n payload: user,\n});\n\nexport const setWorkspace = workspace => ({\n type: SET_WORKSPACE,\n payload: workspace,\n});\n\nexport const setWorkspaceStorage = workspaceStorage => ({\n type: SET_WORKSPACE_STORAGE,\n payload: workspaceStorage,\n});\n\nexport const setCommandHistoryStorage = commandHistoryStorage => ({\n type: SET_COMMAND_HISTORY_STORAGE,\n payload: commandHistoryStorage,\n});\n\nexport const setFileStorage = fileStorage => ({\n type: SET_FILE_STORAGE,\n payload: fileStorage,\n});\n\n/**\n * Sets the specified workspace locally and saves it remotely\n * @param {Workspace} workspace The workspace to save\n */\nexport const saveWorkspace = workspace => (dispatch, getState) => {\n dispatch(setWorkspace(workspace));\n\n const { storage } = getState();\n const { workspaceStorage } = storage;\n return workspaceStorage.save(workspace);\n};\n\n/**\n * Update part of the workspace data and save it\n * @param {Object} workspaceData The property to update in workspace data\n */\nexport const updateWorkspaceData = workspaceData => (dispatch, getState) => {\n const { workspace } = getState();\n const { data } = workspace;\n const newWorkspace = {\n ...workspace,\n data: {\n ...data,\n ...workspaceData,\n },\n };\n return dispatch(saveWorkspace(newWorkspace));\n};\n\n/**\n * Sets the specified settings locally and saves them remotely\n * @param {Object} settings The settings to save\n */\nexport const saveSettings = settings => dispatch =>\n dispatch(updateWorkspaceData({ settings }));\n\nexport const setActiveTool = payload => ({\n type: SET_ACTIVE_TOOL,\n payload,\n});\n"],"file":"actions.js"}
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export * from
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
4
|
-
export { default as reducers } from
|
|
5
|
-
export { default as reducerRegistry } from
|
|
6
|
-
export { default as store } from
|
|
1
|
+
export * from "./selectors.js";
|
|
2
|
+
export * from "./actions.js";
|
|
3
|
+
export * from "./reducers/common/index.js";
|
|
4
|
+
export { default as reducers } from "./reducers/index.js";
|
|
5
|
+
export { default as reducerRegistry } from "./reducerRegistry.js";
|
|
6
|
+
export { default as store } from "./store.js";
|
|
7
7
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/index.js"],"names":["default","reducers","reducerRegistry","store"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../src/index.js"],"names":["default","reducers","reducerRegistry","store"],"mappings":";;;SAGSA,OAAO,IAAIC,Q;SACXD,OAAO,IAAIE,e;SACXF,OAAO,IAAIG,K","sourcesContent":["export * from './selectors';\nexport * from './actions';\nexport * from './reducers/common';\nexport { default as reducers } from './reducers';\nexport { default as reducerRegistry } from './reducerRegistry';\nexport { default as store } from './store';\n"],"file":"index.js"}
|
|
@@ -1,17 +1,13 @@
|
|
|
1
1
|
import Log from '@deephaven/log';
|
|
2
2
|
var log = Log.module('redux-crashReporter');
|
|
3
3
|
|
|
4
|
-
var crashReporter =
|
|
5
|
-
|
|
6
|
-
return
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
throw err;
|
|
12
|
-
}
|
|
13
|
-
};
|
|
14
|
-
};
|
|
4
|
+
var crashReporter = store => next => action => {
|
|
5
|
+
try {
|
|
6
|
+
return next(action);
|
|
7
|
+
} catch (err) {
|
|
8
|
+
log.error('Error executing', action, ' with state ', store.getState(), ':', err);
|
|
9
|
+
throw err;
|
|
10
|
+
}
|
|
15
11
|
};
|
|
16
12
|
|
|
17
13
|
export default crashReporter;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/middleware/crashReporter.js"],"names":["Log","log","module","crashReporter","store","next","action","err","error","getState"],"mappings":"AAAA,OAAOA,GAAP,MAAgB,gBAAhB;AAEA,IAAMC,GAAG,GAAGD,GAAG,CAACE,MAAJ,CAAW,qBAAX,CAAZ;;AAEA,IAAMC,aAAa,
|
|
1
|
+
{"version":3,"sources":["../../src/middleware/crashReporter.js"],"names":["Log","log","module","crashReporter","store","next","action","err","error","getState"],"mappings":"AAAA,OAAOA,GAAP,MAAgB,gBAAhB;AAEA,IAAMC,GAAG,GAAGD,GAAG,CAACE,MAAJ,CAAW,qBAAX,CAAZ;;AAEA,IAAMC,aAAa,GAAGC,KAAK,IAAIC,IAAI,IAAIC,MAAM,IAAI;AAC/C,MAAI;AACF,WAAOD,IAAI,CAACC,MAAD,CAAX;AACD,GAFD,CAEE,OAAOC,GAAP,EAAY;AACZN,IAAAA,GAAG,CAACO,KAAJ,CACE,iBADF,EAEEF,MAFF,EAGE,cAHF,EAIEF,KAAK,CAACK,QAAN,EAJF,EAKE,GALF,EAMEF,GANF;AAQA,UAAMA,GAAN;AACD;AACF,CAdD;;AAgBA,eAAeJ,aAAf","sourcesContent":["import Log from '@deephaven/log';\n\nconst log = Log.module('redux-crashReporter');\n\nconst crashReporter = store => next => action => {\n try {\n return next(action);\n } catch (err) {\n log.error(\n 'Error executing',\n action,\n ' with state ',\n store.getState(),\n ':',\n err\n );\n throw err;\n }\n};\n\nexport default crashReporter;\n"],"file":"crashReporter.js"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
declare var _default: (((store: any) => (next: any) => (action: any) => any) | (import("redux-thunk").ThunkMiddleware<
|
|
2
|
-
withExtraArgument<
|
|
1
|
+
declare var _default: (((store: any) => (next: any) => (action: any) => any) | (import("redux-thunk").ThunkMiddleware<any, import("redux").AnyAction, undefined> & {
|
|
2
|
+
withExtraArgument<ExtraThunkArg, State = any, BasicAction extends import("redux").Action<any> = import("redux").AnyAction>(extraArgument: ExtraThunkArg): import("redux-thunk").ThunkMiddleware<State, BasicAction, ExtraThunkArg>;
|
|
3
3
|
}))[];
|
|
4
4
|
export default _default;
|
|
5
5
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/middleware/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import thunk from 'redux-thunk';
|
|
2
|
-
import logger from
|
|
3
|
-
import crashReporter from
|
|
2
|
+
import logger from "./logger.js";
|
|
3
|
+
import crashReporter from "./crashReporter.js";
|
|
4
4
|
export default [logger, crashReporter, thunk];
|
|
5
5
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/middleware/index.js"],"names":["thunk","logger","crashReporter"],"mappings":"AAAA,OAAOA,KAAP,MAAkB,aAAlB;
|
|
1
|
+
{"version":3,"sources":["../../src/middleware/index.js"],"names":["thunk","logger","crashReporter"],"mappings":"AAAA,OAAOA,KAAP,MAAkB,aAAlB;OACOC,M;OACAC,a;AAEP,eAAe,CAACD,MAAD,EAASC,aAAT,EAAwBF,KAAxB,CAAf","sourcesContent":["import thunk from 'redux-thunk';\nimport logger from './logger';\nimport crashReporter from './crashReporter';\n\nexport default [logger, crashReporter, thunk];\n"],"file":"index.js"}
|
|
@@ -1,15 +1,11 @@
|
|
|
1
1
|
import Log from '@deephaven/log';
|
|
2
2
|
var log = Log.module('redux-logger');
|
|
3
3
|
|
|
4
|
-
var logger =
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
log.debug('next state', store.getState());
|
|
10
|
-
return result;
|
|
11
|
-
};
|
|
12
|
-
};
|
|
4
|
+
var logger = store => next => action => {
|
|
5
|
+
log.debug('dispatching', action);
|
|
6
|
+
var result = next(action);
|
|
7
|
+
log.debug('next state', store.getState());
|
|
8
|
+
return result;
|
|
13
9
|
};
|
|
14
10
|
|
|
15
11
|
export default logger;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/middleware/logger.js"],"names":["Log","log","module","logger","store","next","action","debug","result","getState"],"mappings":"AAAA,OAAOA,GAAP,MAAgB,gBAAhB;AAEA,IAAMC,GAAG,GAAGD,GAAG,CAACE,MAAJ,CAAW,cAAX,CAAZ;;AAEA,IAAMC,MAAM,
|
|
1
|
+
{"version":3,"sources":["../../src/middleware/logger.js"],"names":["Log","log","module","logger","store","next","action","debug","result","getState"],"mappings":"AAAA,OAAOA,GAAP,MAAgB,gBAAhB;AAEA,IAAMC,GAAG,GAAGD,GAAG,CAACE,MAAJ,CAAW,cAAX,CAAZ;;AAEA,IAAMC,MAAM,GAAGC,KAAK,IAAIC,IAAI,IAAIC,MAAM,IAAI;AACxCL,EAAAA,GAAG,CAACM,KAAJ,CAAU,aAAV,EAAyBD,MAAzB;AACA,MAAME,MAAM,GAAGH,IAAI,CAACC,MAAD,CAAnB;AACAL,EAAAA,GAAG,CAACM,KAAJ,CAAU,YAAV,EAAwBH,KAAK,CAACK,QAAN,EAAxB;AACA,SAAOD,MAAP;AACD,CALD;;AAOA,eAAeL,MAAf","sourcesContent":["import Log from '@deephaven/log';\n\nconst log = Log.module('redux-logger');\n\nconst logger = store => next => action => {\n log.debug('dispatching', action);\n const result = next(action);\n log.debug('next state', store.getState());\n return result;\n};\n\nexport default logger;\n"],"file":"logger.js"}
|
package/dist/reducerRegistry.js
CHANGED
|
@@ -2,12 +2,6 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
|
|
|
2
2
|
|
|
3
3
|
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
|
|
4
4
|
|
|
5
|
-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
6
|
-
|
|
7
|
-
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
8
|
-
|
|
9
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
10
|
-
|
|
11
5
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
12
6
|
|
|
13
7
|
/**
|
|
@@ -17,32 +11,27 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
17
11
|
* See this blog post for some notes on redux modules/code splitting
|
|
18
12
|
* http://nicolasgallagher.com/redux-modules-and-code-splitting/
|
|
19
13
|
*/
|
|
20
|
-
export
|
|
21
|
-
|
|
22
|
-
_classCallCheck(this, ReducerRegistry);
|
|
23
|
-
|
|
14
|
+
export class ReducerRegistry {
|
|
15
|
+
constructor() {
|
|
24
16
|
_defineProperty(this, "reducers", {});
|
|
25
17
|
|
|
26
18
|
_defineProperty(this, "listener", null);
|
|
27
19
|
}
|
|
28
20
|
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
return ReducerRegistry;
|
|
45
|
-
}();
|
|
21
|
+
register(name, reducer) {
|
|
22
|
+
var _this$listener;
|
|
23
|
+
|
|
24
|
+
this.reducers = _objectSpread(_objectSpread({}, this.reducers), {}, {
|
|
25
|
+
[name]: reducer
|
|
26
|
+
});
|
|
27
|
+
(_this$listener = this.listener) === null || _this$listener === void 0 ? void 0 : _this$listener.call(this, this.reducers);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
setListener(listener) {
|
|
31
|
+
this.listener = listener;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
}
|
|
46
35
|
var reducerRegistry = new ReducerRegistry();
|
|
47
36
|
export default reducerRegistry;
|
|
48
37
|
//# sourceMappingURL=reducerRegistry.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/reducerRegistry.ts"],"names":["ReducerRegistry","name","reducer","reducers","listener","reducerRegistry"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../src/reducerRegistry.ts"],"names":["ReducerRegistry","register","name","reducer","reducers","listener","setListener","reducerRegistry"],"mappings":";;;;;;AAIA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMA,eAAN,CAAsB;AAAA;AAAA,sCAChB,EADgB;;AAAA,sCAGgB,IAHhB;AAAA;;AAK3BC,EAAAA,QAAQ,CAACC,IAAD,EAAeC,OAAf,EAAuC;AAAA;;AAC7C,SAAKC,QAAL,mCAAqB,KAAKA,QAA1B;AAAoC,OAACF,IAAD,GAAQC;AAA5C;AACA,2BAAKE,QAAL,6EAAgB,KAAKD,QAArB;AACD;;AAEDE,EAAAA,WAAW,CAACD,QAAD,EAA0C;AACnD,SAAKA,QAAL,GAAgBA,QAAhB;AACD;;AAZ0B;AAe7B,IAAME,eAAe,GAAG,IAAIP,eAAJ,EAAxB;AACA,eAAeO,eAAf","sourcesContent":["import { Reducer, ReducersMapObject } from 'redux';\n\nexport type ReducerRegistryListener = (reducers: ReducersMapObject) => void;\n\n/**\n * A registry for registering reducers. Whenever a new reducer is added,\n * the reducers should be replaced in the store.\n *\n * See this blog post for some notes on redux modules/code splitting\n * http://nicolasgallagher.com/redux-modules-and-code-splitting/\n */\nexport class ReducerRegistry {\n reducers = {} as ReducersMapObject;\n\n listener: ReducerRegistryListener | null = null;\n\n register(name: string, reducer: Reducer): void {\n this.reducers = { ...this.reducers, [name]: reducer };\n this.listener?.(this.reducers);\n }\n\n setListener(listener: ReducerRegistryListener): void {\n this.listener = listener;\n }\n}\n\nconst reducerRegistry = new ReducerRegistry();\nexport default reducerRegistry;\n"],"file":"reducerRegistry.js"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* The active tool the user currently has selected
|
|
3
3
|
*/
|
|
4
|
-
import { SET_ACTIVE_TOOL } from
|
|
5
|
-
import { replaceReducer } from
|
|
4
|
+
import { SET_ACTIVE_TOOL } from "../actionTypes.js";
|
|
5
|
+
import { replaceReducer } from "./common/index.js";
|
|
6
6
|
export default replaceReducer(SET_ACTIVE_TOOL, null);
|
|
7
7
|
//# sourceMappingURL=activeTool.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/reducers/activeTool.js"],"names":["SET_ACTIVE_TOOL","replaceReducer"],"mappings":"AAAA;AACA;AACA;
|
|
1
|
+
{"version":3,"sources":["../../src/reducers/activeTool.js"],"names":["SET_ACTIVE_TOOL","replaceReducer"],"mappings":"AAAA;AACA;AACA;SACSA,e;SACAC,c;AAET,eAAeA,cAAc,CAACD,eAAD,EAAkB,IAAlB,CAA7B","sourcesContent":["/**\n * The active tool the user currently has selected\n */\nimport { SET_ACTIVE_TOOL } from '../actionTypes';\nimport { replaceReducer } from './common';\n\nexport default replaceReducer(SET_ACTIVE_TOOL, null);\n"],"file":"activeTool.js"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { default as mergeReducer } from
|
|
2
|
-
export { default as replaceByIdReducer } from
|
|
3
|
-
export { default as replaceReducer } from
|
|
1
|
+
export { default as mergeReducer } from "./mergeReducer.js";
|
|
2
|
+
export { default as replaceByIdReducer } from "./replaceByIdReducer.js";
|
|
3
|
+
export { default as replaceReducer } from "./replaceReducer.js";
|
|
4
4
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/reducers/common/index.js"],"names":["default","mergeReducer","replaceByIdReducer","replaceReducer"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../../src/reducers/common/index.js"],"names":["default","mergeReducer","replaceByIdReducer","replaceReducer"],"mappings":"SAASA,OAAO,IAAIC,Y;SACXD,OAAO,IAAIE,kB;SACXF,OAAO,IAAIG,c","sourcesContent":["export { default as mergeReducer } from './mergeReducer';\nexport { default as replaceByIdReducer } from './replaceByIdReducer';\nexport { default as replaceReducer } from './replaceReducer';\n"],"file":"index.js"}
|
|
@@ -10,30 +10,28 @@ function _defineProperty(obj, key, value) { if (key in obj) { Object.definePrope
|
|
|
10
10
|
* @param {string} type The action type
|
|
11
11
|
* @param {any} initialState The initial state
|
|
12
12
|
*/
|
|
13
|
-
export default (
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
var action = arguments.length > 1 ? arguments[1] : undefined;
|
|
13
|
+
export default ((type, initialState) => function () {
|
|
14
|
+
var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : initialState;
|
|
15
|
+
var action = arguments.length > 1 ? arguments[1] : undefined;
|
|
17
16
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
17
|
+
switch (action.type) {
|
|
18
|
+
case type:
|
|
19
|
+
{
|
|
20
|
+
var newState = action.payload;
|
|
22
21
|
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
if (state != null) {
|
|
28
|
-
return _objectSpread(_objectSpread({}, state), newState);
|
|
29
|
-
}
|
|
22
|
+
if (newState == null) {
|
|
23
|
+
return null;
|
|
24
|
+
}
|
|
30
25
|
|
|
31
|
-
|
|
26
|
+
if (state != null) {
|
|
27
|
+
return _objectSpread(_objectSpread({}, state), newState);
|
|
32
28
|
}
|
|
33
29
|
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
30
|
+
return _objectSpread({}, newState);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
default:
|
|
34
|
+
return state;
|
|
35
|
+
}
|
|
38
36
|
});
|
|
39
37
|
//# sourceMappingURL=mergeReducer.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/reducers/common/mergeReducer.js"],"names":["type","initialState","state","action","newState","payload"],"mappings":";;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,
|
|
1
|
+
{"version":3,"sources":["../../../src/reducers/common/mergeReducer.js"],"names":["type","initialState","state","action","newState","payload"],"mappings":";;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,CAACA,IAAD,EAAOC,YAAP,KAAwB,YAAkC;AAAA,MAAjCC,KAAiC,uEAAzBD,YAAyB;AAAA,MAAXE,MAAW;;AACvE,UAAQA,MAAM,CAACH,IAAf;AACE,SAAKA,IAAL;AAAW;AACT,YAAMI,QAAQ,GAAGD,MAAM,CAACE,OAAxB;;AACA,YAAID,QAAQ,IAAI,IAAhB,EAAsB;AACpB,iBAAO,IAAP;AACD;;AAED,YAAIF,KAAK,IAAI,IAAb,EAAmB;AACjB,iDACKA,KADL,GAEKE,QAFL;AAID;;AAED,iCAAYA,QAAZ;AACD;;AACD;AACE,aAAOF,KAAP;AAjBJ;AAmBD,CApBD","sourcesContent":["/**\n * Setup a merge reducer for a specific action type.\n * Will take the payload passed in and merge it with the previous state to update.\n * @param {string} type The action type\n * @param {any} initialState The initial state\n */\nexport default (type, initialState) => (state = initialState, action) => {\n switch (action.type) {\n case type: {\n const newState = action.payload;\n if (newState == null) {\n return null;\n }\n\n if (state != null) {\n return {\n ...state,\n ...newState,\n };\n }\n\n return { ...newState };\n }\n default:\n return state;\n }\n};\n"],"file":"mergeReducer.js"}
|
|
@@ -21,18 +21,22 @@ export default (function (type) {
|
|
|
21
21
|
switch (action.type) {
|
|
22
22
|
case type:
|
|
23
23
|
{
|
|
24
|
-
var
|
|
25
|
-
|
|
24
|
+
var {
|
|
25
|
+
id,
|
|
26
|
+
payload
|
|
27
|
+
} = action;
|
|
26
28
|
|
|
27
29
|
if (checkIfChanged && deepEqual({
|
|
28
|
-
payload
|
|
30
|
+
payload
|
|
29
31
|
}, {
|
|
30
32
|
payload: state[id]
|
|
31
33
|
})) {
|
|
32
34
|
return state;
|
|
33
35
|
}
|
|
34
36
|
|
|
35
|
-
return _objectSpread(_objectSpread({}, state), {},
|
|
37
|
+
return _objectSpread(_objectSpread({}, state), {}, {
|
|
38
|
+
[id]: payload
|
|
39
|
+
});
|
|
36
40
|
}
|
|
37
41
|
|
|
38
42
|
default:
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/reducers/common/replaceByIdReducer.js"],"names":["deepEqual","type","initialState","checkIfChanged","state","action","id","payload"],"mappings":";;;;;;AAAA,OAAOA,SAAP,MAAsB,YAAtB;AAEA;AACA;AACA;AACA;AACA;;AACA,gBAAe,UAACC,IAAD;AAAA,MAAOC,YAAP,uEAAsB,EAAtB;AAAA,MAA0BC,cAA1B,uEAA2C,IAA3C;AAAA,SAAoD,YAG9D;AAAA,QAFHC,KAEG,uEAFKF,YAEL;AAAA,QADHG,MACG;;AACH,YAAQA,MAAM,CAACJ,IAAf;AACE,WAAKA,IAAL;AAAW;AACT,
|
|
1
|
+
{"version":3,"sources":["../../../src/reducers/common/replaceByIdReducer.js"],"names":["deepEqual","type","initialState","checkIfChanged","state","action","id","payload"],"mappings":";;;;;;AAAA,OAAOA,SAAP,MAAsB,YAAtB;AAEA;AACA;AACA;AACA;AACA;;AACA,gBAAe,UAACC,IAAD;AAAA,MAAOC,YAAP,uEAAsB,EAAtB;AAAA,MAA0BC,cAA1B,uEAA2C,IAA3C;AAAA,SAAoD,YAG9D;AAAA,QAFHC,KAEG,uEAFKF,YAEL;AAAA,QADHG,MACG;;AACH,YAAQA,MAAM,CAACJ,IAAf;AACE,WAAKA,IAAL;AAAW;AACT,cAAM;AAAEK,YAAAA,EAAF;AAAMC,YAAAA;AAAN,cAAkBF,MAAxB;;AACA,cAAIF,cAAc,IAAIH,SAAS,CAAC;AAAEO,YAAAA;AAAF,WAAD,EAAc;AAAEA,YAAAA,OAAO,EAAEH,KAAK,CAACE,EAAD;AAAhB,WAAd,CAA/B,EAAsE;AACpE,mBAAOF,KAAP;AACD;;AACD,iDACKA,KADL;AAEE,aAACE,EAAD,GAAMC;AAFR;AAID;;AACD;AACE,eAAOH,KAAP;AAZJ;AAcD,GAlBc;AAAA,CAAf","sourcesContent":["import deepEqual from 'deep-equal';\n\n/**\n * Setup a replace reducer for a specific action type.\n * Will take the payload passed in and replace the entity at the id with the payload\n * @param {string} type The action type\n */\nexport default (type, initialState = {}, checkIfChanged = true) => (\n state = initialState,\n action\n) => {\n switch (action.type) {\n case type: {\n const { id, payload } = action;\n if (checkIfChanged && deepEqual({ payload }, { payload: state[id] })) {\n return state;\n }\n return {\n ...state,\n [id]: payload,\n };\n }\n default:\n return state;\n }\n};\n"],"file":"replaceByIdReducer.js"}
|
|
@@ -4,20 +4,18 @@
|
|
|
4
4
|
* @param {string} type The action type
|
|
5
5
|
* @param {any} initialState The initial state
|
|
6
6
|
*/
|
|
7
|
-
export default (
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
var action = arguments.length > 1 ? arguments[1] : undefined;
|
|
7
|
+
export default ((type, initialState) => function () {
|
|
8
|
+
var state = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : initialState;
|
|
9
|
+
var action = arguments.length > 1 ? arguments[1] : undefined;
|
|
11
10
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
11
|
+
switch (action.type) {
|
|
12
|
+
case type:
|
|
13
|
+
{
|
|
14
|
+
return action.payload;
|
|
15
|
+
}
|
|
17
16
|
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
};
|
|
17
|
+
default:
|
|
18
|
+
return state;
|
|
19
|
+
}
|
|
22
20
|
});
|
|
23
21
|
//# sourceMappingURL=replaceReducer.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/reducers/common/replaceReducer.js"],"names":["type","initialState","state","action","payload"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,
|
|
1
|
+
{"version":3,"sources":["../../../src/reducers/common/replaceReducer.js"],"names":["type","initialState","state","action","payload"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,gBAAe,CAACA,IAAD,EAAOC,YAAP,KAAwB,YAAkC;AAAA,MAAjCC,KAAiC,uEAAzBD,YAAyB;AAAA,MAAXE,MAAW;;AACvE,UAAQA,MAAM,CAACH,IAAf;AACE,SAAKA,IAAL;AAAW;AACT,eAAOG,MAAM,CAACC,OAAd;AACD;;AACD;AACE,aAAOF,KAAP;AALJ;AAOD,CARD","sourcesContent":["/**\n * Setup a replace reducer for a specific action type.\n * Will take the payload passed in and replace the previous state\n * @param {string} type The action type\n * @param {any} initialState The initial state\n */\nexport default (type, initialState) => (state = initialState, action) => {\n switch (action.type) {\n case type: {\n return action.payload;\n }\n default:\n return state;\n }\n};\n"],"file":"replaceReducer.js"}
|
package/dist/reducers/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import activeTool from
|
|
2
|
-
import storage from
|
|
3
|
-
import user from
|
|
4
|
-
import workspace from
|
|
1
|
+
import activeTool from "./activeTool.js";
|
|
2
|
+
import storage from "./storage/index.js";
|
|
3
|
+
import user from "./user.js";
|
|
4
|
+
import workspace from "./workspace.js";
|
|
5
5
|
var reducers = {
|
|
6
|
-
activeTool
|
|
7
|
-
storage
|
|
8
|
-
user
|
|
9
|
-
workspace
|
|
6
|
+
activeTool,
|
|
7
|
+
storage,
|
|
8
|
+
user,
|
|
9
|
+
workspace
|
|
10
10
|
};
|
|
11
11
|
export default reducers;
|
|
12
12
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/reducers/index.js"],"names":["activeTool","storage","user","workspace","reducers"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../src/reducers/index.js"],"names":["activeTool","storage","user","workspace","reducers"],"mappings":"OAAOA,U;OACAC,O;OACAC,I;OACAC,S;AAEP,IAAMC,QAAQ,GAAG;AACfJ,EAAAA,UADe;AAEfC,EAAAA,OAFe;AAGfC,EAAAA,IAHe;AAIfC,EAAAA;AAJe,CAAjB;AAOA,eAAeC,QAAf","sourcesContent":["import activeTool from './activeTool';\nimport storage from './storage';\nimport user from './user';\nimport workspace from './workspace';\n\nconst reducers = {\n activeTool,\n storage,\n user,\n workspace,\n};\n\nexport default reducers;\n"],"file":"index.js"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Store the current `CommandHistoryStorage` instance for this user.
|
|
3
3
|
* Use this instance to read/write data from dashboard storage.
|
|
4
4
|
*/
|
|
5
|
-
import { SET_COMMAND_HISTORY_STORAGE } from
|
|
6
|
-
import { replaceReducer } from
|
|
5
|
+
import { SET_COMMAND_HISTORY_STORAGE } from "../../actionTypes.js";
|
|
6
|
+
import { replaceReducer } from "../common/index.js";
|
|
7
7
|
export default replaceReducer(SET_COMMAND_HISTORY_STORAGE, null);
|
|
8
8
|
//# sourceMappingURL=commandHistoryStorage.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/reducers/storage/commandHistoryStorage.js"],"names":["SET_COMMAND_HISTORY_STORAGE","replaceReducer"],"mappings":"AAAA;AACA;AACA;AACA;
|
|
1
|
+
{"version":3,"sources":["../../../src/reducers/storage/commandHistoryStorage.js"],"names":["SET_COMMAND_HISTORY_STORAGE","replaceReducer"],"mappings":"AAAA;AACA;AACA;AACA;SACSA,2B;SACAC,c;AAET,eAAeA,cAAc,CAACD,2BAAD,EAA8B,IAA9B,CAA7B","sourcesContent":["/**\n * Store the current `CommandHistoryStorage` instance for this user.\n * Use this instance to read/write data from dashboard storage.\n */\nimport { SET_COMMAND_HISTORY_STORAGE } from '../../actionTypes';\nimport { replaceReducer } from '../common';\n\nexport default replaceReducer(SET_COMMAND_HISTORY_STORAGE, null);\n"],"file":"commandHistoryStorage.js"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Store the current `FileStorage` instance for this user.
|
|
3
3
|
* Use this instance to read/write data from storage.
|
|
4
4
|
*/
|
|
5
|
-
import { SET_FILE_STORAGE } from
|
|
6
|
-
import { replaceReducer } from
|
|
5
|
+
import { SET_FILE_STORAGE } from "../../actionTypes.js";
|
|
6
|
+
import { replaceReducer } from "../common/index.js";
|
|
7
7
|
export default replaceReducer(SET_FILE_STORAGE, null);
|
|
8
8
|
//# sourceMappingURL=fileStorage.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/reducers/storage/fileStorage.js"],"names":["SET_FILE_STORAGE","replaceReducer"],"mappings":"AAAA;AACA;AACA;AACA;
|
|
1
|
+
{"version":3,"sources":["../../../src/reducers/storage/fileStorage.js"],"names":["SET_FILE_STORAGE","replaceReducer"],"mappings":"AAAA;AACA;AACA;AACA;SACSA,gB;SACAC,c;AAET,eAAeA,cAAc,CAACD,gBAAD,EAAmB,IAAnB,CAA7B","sourcesContent":["/**\n * Store the current `FileStorage` instance for this user.\n * Use this instance to read/write data from storage.\n */\nimport { SET_FILE_STORAGE } from '../../actionTypes';\nimport { replaceReducer } from '../common';\n\nexport default replaceReducer(SET_FILE_STORAGE, null);\n"],"file":"fileStorage.js"}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { combineReducers } from 'redux';
|
|
2
|
-
import commandHistoryStorage from
|
|
3
|
-
import fileStorage from
|
|
4
|
-
import workspaceStorage from
|
|
2
|
+
import commandHistoryStorage from "./commandHistoryStorage.js";
|
|
3
|
+
import fileStorage from "./fileStorage.js";
|
|
4
|
+
import workspaceStorage from "./workspaceStorage.js";
|
|
5
5
|
export default combineReducers({
|
|
6
|
-
commandHistoryStorage
|
|
7
|
-
fileStorage
|
|
8
|
-
workspaceStorage
|
|
6
|
+
commandHistoryStorage,
|
|
7
|
+
fileStorage,
|
|
8
|
+
workspaceStorage
|
|
9
9
|
});
|
|
10
10
|
//# sourceMappingURL=index.js.map
|