зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1308878 - Implement minimal Redux store for Net panel r=Honza
MozReview-Commit-ID: GgB5jzNpz9z --HG-- extra : rebase_source : 39b300c5e7b9b9a2ee54a1e1be21dd9538bc8da5
This commit is contained in:
Родитель
0ae27b8b62
Коммит
2d25ee552e
|
@ -0,0 +1,8 @@
|
|||
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
"use strict";
|
||||
|
||||
module.exports = {
|
||||
// actions...
|
||||
};
|
|
@ -0,0 +1,8 @@
|
|||
# vim: set filetype=python:
|
||||
# This Source Code Form is subject to the terms of the Mozilla Public
|
||||
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
|
||||
DevToolsModules(
|
||||
'index.js'
|
||||
)
|
|
@ -4,7 +4,10 @@
|
|||
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
|
||||
DIRS += [
|
||||
'har'
|
||||
'actions',
|
||||
'har',
|
||||
'reducers',
|
||||
'selectors'
|
||||
]
|
||||
|
||||
DevToolsModules(
|
||||
|
@ -16,6 +19,7 @@ DevToolsModules(
|
|||
'request-utils.js',
|
||||
'requests-menu-view.js',
|
||||
'sort-predicates.js',
|
||||
'store.js'
|
||||
)
|
||||
|
||||
BROWSER_CHROME_MANIFESTS += ['test/browser.ini']
|
||||
|
|
|
@ -15,7 +15,7 @@ XPCOMUtils.defineLazyGetter(this, "NetworkHelper", function () {
|
|||
const {VariablesView} = require("resource://devtools/client/shared/widgets/VariablesView.jsm");
|
||||
const {VariablesViewController} = require("resource://devtools/client/shared/widgets/VariablesViewController.jsm");
|
||||
const {ToolSidebar} = require("devtools/client/framework/sidebar");
|
||||
const { testing: isTesting } = require("devtools/shared/flags");
|
||||
const {testing: isTesting} = require("devtools/shared/flags");
|
||||
const {ViewHelpers, Heritage} = require("devtools/client/shared/widgets/view-helpers");
|
||||
const {PluralForm} = require("devtools/shared/plural-form");
|
||||
const {Filters} = require("./filter-predicates");
|
||||
|
|
|
@ -0,0 +1,10 @@
|
|||
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
"use strict";
|
||||
|
||||
const { combineReducers } = require("devtools/client/shared/vendor/redux");
|
||||
|
||||
module.exports = combineReducers({
|
||||
// reducers...
|
||||
});
|
|
@ -0,0 +1,8 @@
|
|||
# vim: set filetype=python:
|
||||
# This Source Code Form is subject to the terms of the Mozilla Public
|
||||
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
|
||||
DevToolsModules(
|
||||
'index.js'
|
||||
)
|
|
@ -0,0 +1,8 @@
|
|||
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
"use strict";
|
||||
|
||||
module.exports = {
|
||||
// selectors...
|
||||
};
|
|
@ -0,0 +1,8 @@
|
|||
# vim: set filetype=python:
|
||||
# This Source Code Form is subject to the terms of the Mozilla Public
|
||||
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||
|
||||
DevToolsModules(
|
||||
'index.js'
|
||||
)
|
|
@ -0,0 +1,20 @@
|
|||
/* This Source Code Form is subject to the terms of the Mozilla Public
|
||||
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||
"use strict";
|
||||
|
||||
const createStore = require("devtools/client/shared/redux/create-store");
|
||||
const reducers = require("devtools/client/netmonitor/reducers/index");
|
||||
|
||||
function configureStore() {
|
||||
const initialState = {
|
||||
// All initial application states will be defined as store from here
|
||||
};
|
||||
|
||||
return createStore()(
|
||||
reducers,
|
||||
initialState
|
||||
);
|
||||
}
|
||||
|
||||
exports.configureStore = configureStore;
|
Загрузка…
Ссылка в новой задаче