зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1751851 - [devtools] Migrate all quick-open selectors to a selector module. r=bomsy
Differential Revision: https://phabricator.services.mozilla.com/D136860
This commit is contained in:
Родитель
18174d4f0c
Коммит
703b5c1d33
|
@ -39,15 +39,3 @@ export default function update(state = initialQuickOpenState(), action) {
|
|||
return state;
|
||||
}
|
||||
}
|
||||
|
||||
export function getQuickOpenEnabled(state) {
|
||||
return state.quickOpen.enabled;
|
||||
}
|
||||
|
||||
export function getQuickOpenQuery(state) {
|
||||
return state.quickOpen.query;
|
||||
}
|
||||
|
||||
export function getQuickOpenType(state) {
|
||||
return state.quickOpen.searchType;
|
||||
}
|
||||
|
|
|
@ -2,12 +2,12 @@
|
|||
* 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/>. */
|
||||
|
||||
import update, {
|
||||
initialQuickOpenState,
|
||||
import update, { initialQuickOpenState } from "../quick-open";
|
||||
import {
|
||||
getQuickOpenEnabled,
|
||||
getQuickOpenQuery,
|
||||
getQuickOpenType,
|
||||
} from "../quick-open";
|
||||
} from "../../selectors/quick-open";
|
||||
import {
|
||||
setQuickOpenQuery,
|
||||
openQuickOpen,
|
||||
|
|
|
@ -19,12 +19,6 @@ export {
|
|||
getSourceActorsForThread,
|
||||
} from "../reducers/source-actors";
|
||||
|
||||
export {
|
||||
getQuickOpenEnabled,
|
||||
getQuickOpenQuery,
|
||||
getQuickOpenType,
|
||||
} from "../reducers/quick-open";
|
||||
|
||||
export * from "./ast";
|
||||
export { getXHRBreakpoints, shouldPauseOnAnyXHR } from "./breakpoints";
|
||||
export {
|
||||
|
@ -47,6 +41,7 @@ export {
|
|||
} from "./pause";
|
||||
export * from "./preview";
|
||||
export * from "./project-text-search";
|
||||
export * from "./quick-open";
|
||||
export * from "./tabs";
|
||||
export * from "./threads";
|
||||
export {
|
||||
|
|
|
@ -20,6 +20,7 @@ CompiledModules(
|
|||
"pause.js",
|
||||
"preview.js",
|
||||
"project-text-search.js",
|
||||
"quick-open.js",
|
||||
"tabs.js",
|
||||
"threads.js",
|
||||
"visibleBreakpoints.js",
|
||||
|
|
|
@ -0,0 +1,15 @@
|
|||
/* 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/>. */
|
||||
|
||||
export function getQuickOpenEnabled(state) {
|
||||
return state.quickOpen.enabled;
|
||||
}
|
||||
|
||||
export function getQuickOpenQuery(state) {
|
||||
return state.quickOpen.query;
|
||||
}
|
||||
|
||||
export function getQuickOpenType(state) {
|
||||
return state.quickOpen.searchType;
|
||||
}
|
Загрузка…
Ссылка в новой задаче