forked from mirrors/gecko-dev
Bug 1874363 - [devtools] Remove implicit folder import. r=devtools-reviewers,ochameau.
Update imports to use FOLDER/index, instead of relying on nodeJS require behavior (which will look for the index file when importing FOLDER) Differential Revision: https://phabricator.services.mozilla.com/D198423
This commit is contained in:
parent
25ffae4e56
commit
73c19874a9
111 changed files with 247 additions and 231 deletions
|
|
@ -6,7 +6,7 @@ import {
|
|||
hasInScopeLines,
|
||||
getSourceTextContent,
|
||||
getVisibleSelectedFrame,
|
||||
} from "../../selectors";
|
||||
} from "../../selectors/index";
|
||||
|
||||
import { getSourceLineCount } from "../../utils/source";
|
||||
|
||||
|
|
|
|||
|
|
@ -9,9 +9,9 @@ import {
|
|||
getSourceFromId,
|
||||
getBreakpointPositionsForSource,
|
||||
getSourceActorsForSource,
|
||||
} from "../../selectors";
|
||||
} from "../../selectors/index";
|
||||
|
||||
import { makeBreakpointId } from "../../utils/breakpoint";
|
||||
import { makeBreakpointId } from "../../utils/breakpoint/index";
|
||||
import { memoizeableAction } from "../../utils/memoizableAction";
|
||||
import { fulfilled } from "../../utils/async-value";
|
||||
import {
|
||||
|
|
|
|||
|
|
@ -17,8 +17,8 @@ import {
|
|||
getBreakpointAtLocation,
|
||||
getBreakpointsForSource,
|
||||
getBreakpointsAtLine,
|
||||
} from "../../selectors";
|
||||
import { createXHRBreakpoint } from "../../utils/breakpoint";
|
||||
} from "../../selectors/index";
|
||||
import { createXHRBreakpoint } from "../../utils/breakpoint/index";
|
||||
import {
|
||||
addBreakpoint,
|
||||
removeBreakpoint,
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ import { createBreakpoint } from "../../client/firefox/create";
|
|||
import {
|
||||
makeBreakpointServerLocation,
|
||||
makeBreakpointId,
|
||||
} from "../../utils/breakpoint";
|
||||
} from "../../utils/breakpoint/index";
|
||||
import {
|
||||
getBreakpoint,
|
||||
getBreakpointPositionsForLocation,
|
||||
|
|
@ -18,7 +18,7 @@ import {
|
|||
getBlackBoxRanges,
|
||||
isSourceMapIgnoreListEnabled,
|
||||
isSourceOnSourceMapIgnoreList,
|
||||
} from "../../selectors";
|
||||
} from "../../selectors/index";
|
||||
|
||||
import { setBreakpointPositions } from "./breakpointPositions";
|
||||
import { setSkipPausing } from "../pause/skipPausing";
|
||||
|
|
|
|||
|
|
@ -6,13 +6,13 @@ import { setBreakpointPositions } from "./breakpointPositions";
|
|||
import {
|
||||
findPosition,
|
||||
makeBreakpointServerLocation,
|
||||
} from "../../utils/breakpoint";
|
||||
} from "../../utils/breakpoint/index";
|
||||
|
||||
import { comparePosition, createLocation } from "../../utils/location";
|
||||
|
||||
import { originalToGeneratedId } from "devtools/client/shared/source-map-loader/index";
|
||||
import { getSource } from "../../selectors";
|
||||
import { addBreakpoint, removeBreakpointAtGeneratedLocation } from ".";
|
||||
import { getSource } from "../../selectors/index";
|
||||
import { addBreakpoint, removeBreakpointAtGeneratedLocation } from "./modify";
|
||||
|
||||
async function findBreakpointPosition({ getState, dispatch }, location) {
|
||||
const positions = await dispatch(setBreakpointPositions(location));
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
import { buildMenu, showMenu } from "../../context-menu/menu";
|
||||
|
||||
import { getBreakpointsForSource } from "../../selectors";
|
||||
import { getBreakpointsForSource } from "../../selectors/index";
|
||||
|
||||
import {
|
||||
disableBreakpointsInSource,
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ import {
|
|||
getBlackBoxRanges,
|
||||
isSourceMapIgnoreListEnabled,
|
||||
isSourceOnSourceMapIgnoreList,
|
||||
} from "../../selectors";
|
||||
} from "../../selectors/index";
|
||||
|
||||
import {
|
||||
removeBreakpoint,
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ import {
|
|||
getBlackBoxRanges,
|
||||
isSourceMapIgnoreListEnabled,
|
||||
isSourceOnSourceMapIgnoreList,
|
||||
} from "../../selectors";
|
||||
} from "../../selectors/index";
|
||||
import {
|
||||
addBreakpoint,
|
||||
removeBreakpoint,
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ import {
|
|||
shouldBlackbox,
|
||||
findBlackBoxRange,
|
||||
} from "../../utils/source";
|
||||
import { toSourceLine } from "../../utils/editor";
|
||||
import { toSourceLine } from "../../utils/editor/index";
|
||||
import { downloadFile } from "../../utils/utils";
|
||||
import { features } from "../../utils/prefs";
|
||||
import { isFulfilled } from "../../utils/async-value";
|
||||
|
|
@ -27,7 +27,7 @@ import {
|
|||
isSourceOnSourceMapIgnoreList,
|
||||
isSourceMapIgnoreListEnabled,
|
||||
getEditorWrapping,
|
||||
} from "../../selectors";
|
||||
} from "../../selectors/index";
|
||||
|
||||
import { continueToHere } from "../../actions/pause/continueToHere";
|
||||
import { jumpToMappedLocation } from "../../actions/sources/select";
|
||||
|
|
|
|||
|
|
@ -8,10 +8,10 @@ import {
|
|||
getShouldSelectOriginalLocation,
|
||||
getCurrentThreadFrames,
|
||||
getFrameworkGroupingState,
|
||||
} from "../../selectors";
|
||||
} from "../../selectors/index";
|
||||
import { toggleFrameworkGrouping } from "../../actions/ui";
|
||||
import { restart, toggleBlackBox } from "../../actions/pause";
|
||||
import { formatCopyName } from "../../utils/pause/frames";
|
||||
import { restart, toggleBlackBox } from "../../actions/pause/index";
|
||||
import { formatCopyName } from "../../utils/pause/frames/index";
|
||||
|
||||
function formatMenuElement(labelString, click, disabled = false) {
|
||||
const label = L10N.getStr(labelString);
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ import { flashLineRange } from "../../actions/ui";
|
|||
import {
|
||||
getSelectedSource,
|
||||
getSelectedSourceTextContent,
|
||||
} from "../../selectors";
|
||||
} from "../../selectors/index";
|
||||
|
||||
export function showOutlineContextMenu(event, func, symbols) {
|
||||
return async ({ dispatch, getState }) => {
|
||||
|
|
|
|||
|
|
@ -11,9 +11,9 @@ import {
|
|||
getProjectDirectoryRoot,
|
||||
getSourcesTreeSources,
|
||||
getBlackBoxRanges,
|
||||
} from "../../selectors";
|
||||
} from "../../selectors/index";
|
||||
|
||||
import { setOverrideSource, removeOverrideSource } from "../sources";
|
||||
import { setOverrideSource, removeOverrideSource } from "../sources/index";
|
||||
import { loadSourceText } from "../sources/loadSourceText";
|
||||
import { toggleBlackBox, blackBoxSources } from "../sources/blackbox";
|
||||
import {
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ import {
|
|||
isSourceBlackBoxed,
|
||||
isSourceMapIgnoreListEnabled,
|
||||
isSourceOnSourceMapIgnoreList,
|
||||
} from "../../selectors";
|
||||
} from "../../selectors/index";
|
||||
|
||||
import { toggleBlackBox } from "../sources/blackbox";
|
||||
import { prettyPrintAndSelectSource } from "../sources/prettyPrint";
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ import {
|
|||
getActiveEventListeners,
|
||||
getEventListenerExpanded,
|
||||
shouldLogEventBreakpoints,
|
||||
} from "../selectors";
|
||||
} from "../selectors/index";
|
||||
|
||||
async function updateBreakpoints(dispatch, client, newEvents) {
|
||||
await client.setEventListenerBreakpoints(newEvents);
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ import {
|
|||
getSelectedFrame,
|
||||
getCurrentThread,
|
||||
isMapScopesEnabled,
|
||||
} from "../selectors";
|
||||
} from "../selectors/index";
|
||||
import { PROMISE } from "./utils/middleware/promise";
|
||||
import { wrapExpression } from "../utils/expressions";
|
||||
import { features } from "../utils/prefs";
|
||||
|
|
|
|||
|
|
@ -2,9 +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 { searchSourceForHighlight } from "../utils/editor";
|
||||
import { searchSourceForHighlight } from "../utils/editor/index";
|
||||
|
||||
import { getSelectedSourceTextContent, getSearchOptions } from "../selectors";
|
||||
import {
|
||||
getSelectedSourceTextContent,
|
||||
getSearchOptions,
|
||||
} from "../selectors/index";
|
||||
|
||||
import { closeActiveSearch, clearHighlightLineRange } from "./ui";
|
||||
|
||||
|
|
|
|||
|
|
@ -2,26 +2,26 @@
|
|||
* 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 * as ast from "./ast";
|
||||
import * as breakpoints from "./breakpoints";
|
||||
import * as ast from "./ast/index";
|
||||
import * as breakpoints from "./breakpoints/index";
|
||||
import * as exceptions from "./exceptions";
|
||||
import * as expressions from "./expressions";
|
||||
import * as eventListeners from "./event-listeners";
|
||||
import * as pause from "./pause";
|
||||
import * as pause from "./pause/index";
|
||||
import * as navigation from "./navigation";
|
||||
import * as ui from "./ui";
|
||||
import * as fileSearch from "./file-search";
|
||||
import * as projectTextSearch from "./project-text-search";
|
||||
import * as quickOpen from "./quick-open";
|
||||
import * as sourcesTree from "./sources-tree";
|
||||
import * as sources from "./sources";
|
||||
import * as sources from "./sources/index";
|
||||
import * as sourcesActors from "./source-actors";
|
||||
import * as tabs from "./tabs";
|
||||
import * as threads from "./threads";
|
||||
import * as toolbox from "./toolbox";
|
||||
import * as preview from "./preview";
|
||||
import * as tracing from "./tracing";
|
||||
import * as contextMenu from "./context-menus";
|
||||
import * as contextMenu from "./context-menus/index";
|
||||
|
||||
import { objectInspector } from "devtools/client/shared/components/reps/index";
|
||||
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@
|
|||
import sourceQueue from "../utils/source-queue";
|
||||
|
||||
import { clearWasmStates } from "../utils/wasm";
|
||||
import { getMainThread } from "../selectors";
|
||||
import { getMainThread } from "../selectors/index";
|
||||
import { evaluateExpressionsForCurrentContext } from "../actions/expressions";
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
* 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 { getCurrentThread } from "../../selectors";
|
||||
import { getCurrentThread } from "../../selectors/index";
|
||||
/**
|
||||
* Debugger breakOnNext command.
|
||||
* It's different from the comand action because we also want to
|
||||
|
|
|
|||
|
|
@ -7,10 +7,10 @@ import {
|
|||
getCurrentThread,
|
||||
getIsCurrentThreadPaused,
|
||||
getIsPaused,
|
||||
} from "../../selectors";
|
||||
} from "../../selectors/index";
|
||||
import { PROMISE } from "../utils/middleware/promise";
|
||||
import { evaluateExpressions } from "../expressions";
|
||||
import { selectLocation } from "../sources";
|
||||
import { selectLocation } from "../sources/index";
|
||||
import { fetchScopes } from "./fetchScopes";
|
||||
import { fetchFrames } from "./fetchFrames";
|
||||
import { recordEvent } from "../../utils/telemetry";
|
||||
|
|
|
|||
|
|
@ -8,9 +8,9 @@ import {
|
|||
getClosestBreakpointPosition,
|
||||
getBreakpoint,
|
||||
getCurrentThread,
|
||||
} from "../../selectors";
|
||||
} from "../../selectors/index";
|
||||
import { createLocation } from "../../utils/location";
|
||||
import { addHiddenBreakpoint } from "../breakpoints";
|
||||
import { addHiddenBreakpoint } from "../breakpoints/index";
|
||||
import { setBreakpointPositions } from "../breakpoints/breakpointPositions";
|
||||
|
||||
import { resume } from "./commands";
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
* 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 { getIsPaused } from "../../selectors";
|
||||
import { getIsPaused } from "../../selectors/index";
|
||||
|
||||
export function fetchFrames(thread) {
|
||||
return async function ({ dispatch, client, getState }) {
|
||||
|
|
|
|||
|
|
@ -2,7 +2,10 @@
|
|||
* 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 { getGeneratedFrameScope, getOriginalFrameScope } from "../../selectors";
|
||||
import {
|
||||
getGeneratedFrameScope,
|
||||
getOriginalFrameScope,
|
||||
} from "../../selectors/index";
|
||||
import { mapScopes } from "./mapScopes";
|
||||
import { generateInlinePreview } from "./inlinePreview";
|
||||
import { PROMISE } from "../utils/middleware/promise";
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ import {
|
|||
getGeneratedFrameScope,
|
||||
getInlinePreviews,
|
||||
getSelectedLocation,
|
||||
} from "../../selectors";
|
||||
} from "../../selectors/index";
|
||||
import { features } from "../../utils/prefs";
|
||||
import { validateSelectedFrame } from "../../utils/context";
|
||||
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ import {
|
|||
getFrames,
|
||||
getBlackBoxRanges,
|
||||
getSelectedFrame,
|
||||
} from "../../selectors";
|
||||
} from "../../selectors/index";
|
||||
|
||||
import { isFrameBlackBoxed } from "../../utils/source";
|
||||
|
||||
|
|
@ -19,7 +19,7 @@ import {
|
|||
import { annotateFramesWithLibrary } from "../../utils/pause/frames/annotateFrames";
|
||||
import { createWasmOriginalFrame } from "../../client/firefox/create";
|
||||
|
||||
import { getOriginalFunctionDisplayName } from "../sources";
|
||||
import { getOriginalFunctionDisplayName } from "../sources/index";
|
||||
|
||||
function getSelectedFrameId(state, thread, frames) {
|
||||
let selectedFrame = getSelectedFrame(state, thread);
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ import {
|
|||
getOriginalFrameScope,
|
||||
getFirstSourceActorForGeneratedSource,
|
||||
getCurrentThread,
|
||||
} from "../../selectors";
|
||||
} from "../../selectors/index";
|
||||
import {
|
||||
loadOriginalSourceText,
|
||||
loadGeneratedSourceText,
|
||||
|
|
@ -20,7 +20,7 @@ import { PROMISE } from "../utils/middleware/promise";
|
|||
|
||||
import { log } from "../../utils/log";
|
||||
|
||||
import { buildMappedScopes } from "../../utils/pause/mapScopes";
|
||||
import { buildMappedScopes } from "../../utils/pause/mapScopes/index";
|
||||
import { isFulfilled } from "../../utils/async-value";
|
||||
|
||||
import { getMappedLocation } from "../../utils/source-maps";
|
||||
|
|
|
|||
|
|
@ -6,12 +6,12 @@ import {
|
|||
getHiddenBreakpoint,
|
||||
isEvaluatingExpression,
|
||||
getSelectedFrame,
|
||||
} from "../../selectors";
|
||||
} from "../../selectors/index";
|
||||
|
||||
import { mapFrames, fetchFrames } from ".";
|
||||
import { removeBreakpoint } from "../breakpoints";
|
||||
import { mapFrames, fetchFrames } from "./index";
|
||||
import { removeBreakpoint } from "../breakpoints/index";
|
||||
import { evaluateExpressions } from "../expressions";
|
||||
import { selectLocation } from "../sources";
|
||||
import { selectLocation } from "../sources/index";
|
||||
import { validateSelectedFrame } from "../../utils/context";
|
||||
|
||||
import { fetchScopes } from "./fetchScopes";
|
||||
|
|
|
|||
|
|
@ -2,9 +2,13 @@
|
|||
* 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 { isStepping, getPauseReason, getSelectedFrame } from "../../selectors";
|
||||
import {
|
||||
isStepping,
|
||||
getPauseReason,
|
||||
getSelectedFrame,
|
||||
} from "../../selectors/index";
|
||||
import { evaluateExpressions } from "../expressions";
|
||||
import { inDebuggerEval } from "../../utils/pause";
|
||||
import { inDebuggerEval } from "../../utils/pause/index";
|
||||
|
||||
/**
|
||||
* Debugger has just resumed.
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
* 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 { selectLocation } from "../sources";
|
||||
import { selectLocation } from "../sources/index";
|
||||
import { evaluateExpressions } from "../expressions";
|
||||
import { fetchScopes } from "./fetchScopes";
|
||||
import { validateSelectedFrame } from "../../utils/context";
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
* 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 { getSkipPausing } from "../../selectors";
|
||||
import { getSkipPausing } from "../../selectors/index";
|
||||
|
||||
/**
|
||||
* @memberof actions/pause
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ import {
|
|||
getSelectedFrame,
|
||||
getCurrentThread,
|
||||
getSelectedException,
|
||||
} from "../selectors";
|
||||
} from "../selectors/index";
|
||||
|
||||
import { getMappedExpression } from "./expressions";
|
||||
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ import {
|
|||
getSettledSourceTextContent,
|
||||
isSourceBlackBoxed,
|
||||
getSearchOptions,
|
||||
} from "../selectors";
|
||||
} from "../selectors/index";
|
||||
import { createLocation } from "../utils/location";
|
||||
import { matchesGlobPatterns } from "../utils/source";
|
||||
import { loadSourceText } from "./sources/loadSourceText";
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
* 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 { getMainThread } from "../selectors";
|
||||
import { getMainThread } from "../selectors/index";
|
||||
|
||||
export function setExpandedState(expanded) {
|
||||
return { type: "SET_EXPANDED_STATE", expanded };
|
||||
|
|
|
|||
|
|
@ -9,13 +9,13 @@
|
|||
|
||||
import { originalToGeneratedId } from "devtools/client/shared/source-map-loader/index";
|
||||
import { recordEvent } from "../../utils/telemetry";
|
||||
import { toggleBreakpoints } from "../breakpoints";
|
||||
import { toggleBreakpoints } from "../breakpoints/index";
|
||||
import {
|
||||
getSourceActorsForSource,
|
||||
isSourceBlackBoxed,
|
||||
getBlackBoxRanges,
|
||||
getBreakpointsForSource,
|
||||
} from "../../selectors";
|
||||
} from "../../selectors/index";
|
||||
|
||||
export async function blackboxSourceActorsForSource(
|
||||
thunkArgs,
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@
|
|||
import {
|
||||
getBreakableLines,
|
||||
getSourceActorBreakableLines,
|
||||
} from "../../selectors";
|
||||
} from "../../selectors/index";
|
||||
import { setBreakpointPositions } from "../breakpoints/breakpointPositions";
|
||||
|
||||
function calculateBreakableLines(positions) {
|
||||
|
|
|
|||
|
|
@ -11,8 +11,8 @@ import {
|
|||
getBreakpointsForSource,
|
||||
getSourceActorsForSource,
|
||||
getFirstSourceActorForGeneratedSource,
|
||||
} from "../../selectors";
|
||||
import { addBreakpoint } from "../breakpoints";
|
||||
} from "../../selectors/index";
|
||||
import { addBreakpoint } from "../breakpoints/index";
|
||||
|
||||
import { prettyPrintSourceTextContent } from "./prettyPrint";
|
||||
import { isFulfilled, fulfilled } from "../../utils/async-value";
|
||||
|
|
|
|||
|
|
@ -14,11 +14,11 @@ import {
|
|||
createSourceActor,
|
||||
} from "../../client/firefox/create";
|
||||
import { toggleBlackBox } from "./blackbox";
|
||||
import { syncPendingBreakpoint } from "../breakpoints";
|
||||
import { syncPendingBreakpoint } from "../breakpoints/index";
|
||||
import { loadSourceText } from "./loadSourceText";
|
||||
import { prettyPrintAndSelectSource } from "./prettyPrint";
|
||||
import { toggleSourceMapIgnoreList } from "../ui";
|
||||
import { selectLocation, setBreakableLines } from "../sources";
|
||||
import { selectLocation, setBreakableLines } from "../sources/index";
|
||||
|
||||
import { getRawSourceURL, isPrettyURL } from "../../utils/source";
|
||||
import { createLocation } from "../../utils/location";
|
||||
|
|
@ -30,7 +30,7 @@ import {
|
|||
getSourceByActorId,
|
||||
getPendingSelectedLocation,
|
||||
getPendingBreakpointsForSource,
|
||||
} from "../../selectors";
|
||||
} from "../../selectors/index";
|
||||
|
||||
import { prefs } from "../../utils/prefs";
|
||||
import sourceQueue from "../../utils/source-queue";
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ import { generatedToOriginalId } from "devtools/client/shared/source-map-loader/
|
|||
|
||||
import assert from "../../utils/assert";
|
||||
import { recordEvent } from "../../utils/telemetry";
|
||||
import { updateBreakpointsForNewPrettyPrintedSource } from "../breakpoints";
|
||||
import { updateBreakpointsForNewPrettyPrintedSource } from "../breakpoints/index";
|
||||
|
||||
import { getPrettySourceURL, isJavaScript } from "../../utils/source";
|
||||
import { isFulfilled, fulfilled } from "../../utils/async-value";
|
||||
|
|
@ -16,15 +16,15 @@ import {
|
|||
loadGeneratedSourceText,
|
||||
loadOriginalSourceText,
|
||||
} from "./loadSourceText";
|
||||
import { mapFrames } from "../pause";
|
||||
import { selectSpecificLocation } from "../sources";
|
||||
import { mapFrames } from "../pause/index";
|
||||
import { selectSpecificLocation } from "../sources/index";
|
||||
import { createPrettyPrintOriginalSource } from "../../client/firefox/create";
|
||||
|
||||
import {
|
||||
getFirstSourceActorForGeneratedSource,
|
||||
getSourceFromId,
|
||||
getSelectedLocation,
|
||||
} from "../../selectors";
|
||||
} from "../../selectors/index";
|
||||
|
||||
import { selectSource } from "./select";
|
||||
import { memoizeableAction } from "../../utils/memoizableAction";
|
||||
|
|
|
|||
|
|
@ -8,11 +8,11 @@
|
|||
*/
|
||||
|
||||
import { setSymbols } from "./symbols";
|
||||
import { setInScopeLines } from "../ast";
|
||||
import { setInScopeLines } from "../ast/index";
|
||||
import { prettyPrintAndSelectSource } from "./prettyPrint";
|
||||
import { addTab, closeTab } from "../tabs";
|
||||
import { loadSourceText } from "./loadSourceText";
|
||||
import { setBreakableLines } from ".";
|
||||
import { setBreakableLines } from "./breakableLines";
|
||||
|
||||
import { prefs } from "../../utils/prefs";
|
||||
import { isMinified } from "../../utils/source";
|
||||
|
|
@ -36,7 +36,7 @@ import {
|
|||
hasSourceActor,
|
||||
hasPrettyTab,
|
||||
isSourceActorWithSourceMap,
|
||||
} from "../../selectors";
|
||||
} from "../../selectors/index";
|
||||
|
||||
// This is only used by jest tests (and within this module)
|
||||
export const setSelectedLocation = (
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
* 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 { getSymbols } from "../../selectors";
|
||||
import { getSymbols } from "../../selectors/index";
|
||||
|
||||
import { PROMISE } from "../utils/middleware/promise";
|
||||
import { loadSourceText } from "./loadSourceText";
|
||||
|
|
|
|||
|
|
@ -6,10 +6,10 @@
|
|||
* Redux actions for the editor tabs
|
||||
*/
|
||||
|
||||
import { removeDocument } from "../utils/editor";
|
||||
import { selectSource } from "./sources";
|
||||
import { removeDocument } from "../utils/editor/index";
|
||||
import { selectSource } from "./sources/index";
|
||||
|
||||
import { getSelectedLocation, getSourcesForTabs } from "../selectors";
|
||||
import { getSelectedLocation, getSourcesForTabs } from "../selectors/index";
|
||||
|
||||
export function addTab(source, sourceActor) {
|
||||
return {
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
* file, You can obtain one at <http://mozilla.org/MPL/2.0/>. */
|
||||
|
||||
import { createThread } from "../client/firefox/create";
|
||||
import { getSourcesToRemoveForThread } from "../selectors";
|
||||
import { getSourcesToRemoveForThread } from "../selectors/index";
|
||||
import { clearDocumentsForSources } from "../utils/editor/source-documents";
|
||||
|
||||
export function addTarget(targetFront) {
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
* 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 { getIsThreadCurrentlyTracing, getAllThreads } from "../selectors";
|
||||
import { getIsThreadCurrentlyTracing, getAllThreads } from "../selectors/index";
|
||||
import { PROMISE } from "./utils/middleware/promise";
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -11,15 +11,15 @@ import {
|
|||
getIgnoreListSourceUrls,
|
||||
getSourceByURL,
|
||||
getBreakpointsForSource,
|
||||
} from "../selectors";
|
||||
} from "../selectors/index";
|
||||
import { selectSource } from "../actions/sources/select";
|
||||
import {
|
||||
getEditor,
|
||||
getLocationsInViewport,
|
||||
updateDocuments,
|
||||
} from "../utils/editor";
|
||||
} from "../utils/editor/index";
|
||||
import { blackboxSourceActorsForSource } from "./sources/blackbox";
|
||||
import { toggleBreakpoints } from "./breakpoints";
|
||||
import { toggleBreakpoints } from "./breakpoints/index";
|
||||
import { copyToTheClipboard } from "../utils/clipboard";
|
||||
import { isFulfilled } from "../utils/async-value";
|
||||
import { primaryPaneTabs } from "../constants";
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
* file, You can obtain one at <http://mozilla.org/MPL/2.0/>. */
|
||||
|
||||
import { createFrame } from "./create";
|
||||
import { makeBreakpointServerLocationId } from "../../utils/breakpoint";
|
||||
import { makeBreakpointServerLocationId } from "../../utils/breakpoint/index";
|
||||
|
||||
import Reps from "devtools/client/shared/components/reps/index";
|
||||
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ import {
|
|||
hasSourceActor,
|
||||
getSourceActor,
|
||||
getSourceCount,
|
||||
} from "../../selectors";
|
||||
} from "../../selectors/index";
|
||||
import { features } from "../../utils/prefs";
|
||||
import { isUrlExtension } from "../../utils/source";
|
||||
import { createLocation } from "../../utils/location";
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ import PropTypes from "devtools/client/shared/vendor/react-prop-types";
|
|||
import { connect } from "../utils/connect";
|
||||
import { prefs } from "../utils/prefs";
|
||||
import { primaryPaneTabs } from "../constants";
|
||||
import actions from "../actions";
|
||||
import actions from "../actions/index";
|
||||
import AccessibleImage from "./shared/AccessibleImage";
|
||||
|
||||
import {
|
||||
|
|
@ -24,7 +24,7 @@ import {
|
|||
getIsCurrentThreadPaused,
|
||||
isMapScopesEnabled,
|
||||
getSourceMapErrorForSourceActor,
|
||||
} from "../selectors";
|
||||
} from "../selectors/index";
|
||||
const KeyShortcuts = require("devtools/client/shared/key-shortcuts");
|
||||
|
||||
const SplitBox = require("devtools/client/shared/components/splitter/SplitBox");
|
||||
|
|
@ -42,9 +42,9 @@ import "./App.css";
|
|||
import "./shared/menu.css";
|
||||
|
||||
import { ShortcutsModal } from "./ShortcutsModal";
|
||||
import PrimaryPanes from "./PrimaryPanes";
|
||||
import Editor from "./Editor";
|
||||
import SecondaryPanes from "./SecondaryPanes";
|
||||
import PrimaryPanes from "./PrimaryPanes/index";
|
||||
import Editor from "./Editor/index";
|
||||
import SecondaryPanes from "./SecondaryPanes/index";
|
||||
import WelcomeBox from "./WelcomeBox";
|
||||
import EditorTabs from "./Editor/Tabs";
|
||||
import EditorFooter from "./Editor/Footer";
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
import PropTypes from "devtools/client/shared/vendor/react-prop-types";
|
||||
import { Component } from "devtools/client/shared/vendor/react";
|
||||
import { toEditorLine, fromEditorLine } from "../../utils/editor";
|
||||
import { toEditorLine, fromEditorLine } from "../../utils/editor/index";
|
||||
import { isLineBlackboxed } from "../../utils/source";
|
||||
import { isWasm } from "../../utils/wasm";
|
||||
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@
|
|||
import { PureComponent } from "devtools/client/shared/vendor/react";
|
||||
import PropTypes from "devtools/client/shared/vendor/react-prop-types";
|
||||
|
||||
import { getDocument, toEditorLine } from "../../utils/editor";
|
||||
import { getDocument, toEditorLine } from "../../utils/editor/index";
|
||||
import { getSelectedLocation } from "../../utils/selected-location";
|
||||
import { features } from "../../utils/prefs";
|
||||
const classnames = require("devtools/client/shared/classnames.js");
|
||||
|
|
|
|||
|
|
@ -7,10 +7,13 @@ import React, { Component } from "devtools/client/shared/vendor/react";
|
|||
import { div } from "devtools/client/shared/vendor/react-dom-factories";
|
||||
import Breakpoint from "./Breakpoint";
|
||||
|
||||
import { getSelectedSource, getFirstVisibleBreakpoints } from "../../selectors";
|
||||
import { makeBreakpointId } from "../../utils/breakpoint";
|
||||
import {
|
||||
getSelectedSource,
|
||||
getFirstVisibleBreakpoints,
|
||||
} from "../../selectors/index";
|
||||
import { makeBreakpointId } from "../../utils/breakpoint/index";
|
||||
import { connect } from "../../utils/connect";
|
||||
import actions from "../../actions";
|
||||
import actions from "../../actions/index";
|
||||
|
||||
class Breakpoints extends Component {
|
||||
static get propTypes() {
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@
|
|||
import { PureComponent } from "devtools/client/shared/vendor/react";
|
||||
import PropTypes from "devtools/client/shared/vendor/react-prop-types";
|
||||
|
||||
import { getDocument } from "../../utils/editor";
|
||||
import { getDocument } from "../../utils/editor/index";
|
||||
const classnames = require("devtools/client/shared/classnames.js");
|
||||
|
||||
// eslint-disable-next-line max-len
|
||||
|
|
|
|||
|
|
@ -12,10 +12,10 @@ import {
|
|||
getSelectedSource,
|
||||
visibleColumnBreakpoints,
|
||||
isSourceBlackBoxed,
|
||||
} from "../../selectors";
|
||||
import actions from "../../actions";
|
||||
} from "../../selectors/index";
|
||||
import actions from "../../actions/index";
|
||||
import { connect } from "../../utils/connect";
|
||||
import { makeBreakpointId } from "../../utils/breakpoint";
|
||||
import { makeBreakpointId } from "../../utils/breakpoint/index";
|
||||
|
||||
// eslint-disable-next-line max-len
|
||||
|
||||
|
|
|
|||
|
|
@ -11,15 +11,15 @@ import ReactDOM from "devtools/client/shared/vendor/react-dom";
|
|||
import PropTypes from "devtools/client/shared/vendor/react-prop-types";
|
||||
import { connect } from "../../utils/connect";
|
||||
import "./ConditionalPanel.css";
|
||||
import { toEditorLine } from "../../utils/editor";
|
||||
import { toEditorLine } from "../../utils/editor/index";
|
||||
import { prefs } from "../../utils/prefs";
|
||||
import actions from "../../actions";
|
||||
import actions from "../../actions/index";
|
||||
|
||||
import {
|
||||
getClosestBreakpoint,
|
||||
getConditionalPanelLocation,
|
||||
getLogPointStatus,
|
||||
} from "../../selectors";
|
||||
} from "../../selectors/index";
|
||||
|
||||
const classnames = require("devtools/client/shared/classnames.js");
|
||||
|
||||
|
|
|
|||
|
|
@ -11,8 +11,8 @@ import {
|
|||
startOperation,
|
||||
endOperation,
|
||||
getTokenEnd,
|
||||
} from "../../utils/editor";
|
||||
import { isException } from "../../utils/pause";
|
||||
} from "../../utils/editor/index";
|
||||
import { isException } from "../../utils/pause/index";
|
||||
import { getIndentation } from "../../utils/indentation";
|
||||
import { connect } from "../../utils/connect";
|
||||
import {
|
||||
|
|
@ -20,7 +20,7 @@ import {
|
|||
getPauseReason,
|
||||
getSourceTextContent,
|
||||
getCurrentThread,
|
||||
} from "../../selectors";
|
||||
} from "../../selectors/index";
|
||||
|
||||
export class DebugLine extends PureComponent {
|
||||
debugExpression;
|
||||
|
|
|
|||
|
|
@ -5,8 +5,11 @@
|
|||
import { connect } from "../../utils/connect";
|
||||
import { Component } from "devtools/client/shared/vendor/react";
|
||||
import PropTypes from "devtools/client/shared/vendor/react-prop-types";
|
||||
import { getSelectedSource, getSelectedBreakableLines } from "../../selectors";
|
||||
import { fromEditorLine } from "../../utils/editor";
|
||||
import {
|
||||
getSelectedSource,
|
||||
getSelectedBreakableLines,
|
||||
} from "../../selectors/index";
|
||||
import { fromEditorLine } from "../../utils/editor/index";
|
||||
import { isWasm } from "../../utils/wasm";
|
||||
|
||||
class EmptyLines extends Component {
|
||||
|
|
|
|||
|
|
@ -5,7 +5,11 @@
|
|||
import { PureComponent } from "devtools/client/shared/vendor/react";
|
||||
import PropTypes from "devtools/client/shared/vendor/react-prop-types";
|
||||
|
||||
import { toEditorPosition, getTokenEnd, hasDocument } from "../../utils/editor";
|
||||
import {
|
||||
toEditorPosition,
|
||||
getTokenEnd,
|
||||
hasDocument,
|
||||
} from "../../utils/editor/index";
|
||||
|
||||
import { getIndentation } from "../../utils/indentation";
|
||||
import { createLocation } from "../../utils/location";
|
||||
|
|
|
|||
|
|
@ -11,8 +11,8 @@ import Exception from "./Exception";
|
|||
import {
|
||||
getSelectedSource,
|
||||
getSelectedSourceExceptions,
|
||||
} from "../../selectors";
|
||||
import { getDocument } from "../../utils/editor";
|
||||
} from "../../selectors/index";
|
||||
import { getDocument } from "../../utils/editor/index";
|
||||
|
||||
class Exceptions extends Component {
|
||||
static get propTypes() {
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ import {
|
|||
} from "devtools/client/shared/vendor/react-dom-factories";
|
||||
import PropTypes from "devtools/client/shared/vendor/react-prop-types";
|
||||
import { connect } from "../../utils/connect";
|
||||
import actions from "../../actions";
|
||||
import actions from "../../actions/index";
|
||||
import {
|
||||
getSelectedSource,
|
||||
getSelectedLocation,
|
||||
|
|
@ -23,11 +23,11 @@ import {
|
|||
isSourceOnSourceMapIgnoreList,
|
||||
isSourceMapIgnoreListEnabled,
|
||||
getSelectedMappedSource,
|
||||
} from "../../selectors";
|
||||
} from "../../selectors/index";
|
||||
|
||||
import { isPretty, getFilename, shouldBlackbox } from "../../utils/source";
|
||||
|
||||
import { PaneToggleButton } from "../shared/Button";
|
||||
import { PaneToggleButton } from "../shared/Button/index";
|
||||
import AccessibleImage from "../shared/AccessibleImage";
|
||||
|
||||
const classnames = require("devtools/client/shared/classnames.js");
|
||||
|
|
|
|||
|
|
@ -4,7 +4,11 @@
|
|||
|
||||
import { Component } from "devtools/client/shared/vendor/react";
|
||||
import PropTypes from "devtools/client/shared/vendor/react-prop-types";
|
||||
import { toEditorLine, endOperation, startOperation } from "../../utils/editor";
|
||||
import {
|
||||
toEditorLine,
|
||||
endOperation,
|
||||
startOperation,
|
||||
} from "../../utils/editor/index";
|
||||
import { getDocument, hasDocument } from "../../utils/editor/source-documents";
|
||||
|
||||
import { connect } from "../../utils/connect";
|
||||
|
|
@ -14,7 +18,7 @@ import {
|
|||
getSelectedSourceTextContent,
|
||||
getPauseCommand,
|
||||
getCurrentThread,
|
||||
} from "../../selectors";
|
||||
} from "../../selectors/index";
|
||||
|
||||
function isDebugLine(selectedFrame, selectedLocation) {
|
||||
if (!selectedFrame) {
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@
|
|||
import React, { PureComponent } from "devtools/client/shared/vendor/react";
|
||||
import ReactDOM from "devtools/client/shared/vendor/react-dom";
|
||||
|
||||
import actions from "../../actions";
|
||||
import actions from "../../actions/index";
|
||||
import assert from "../../utils/assert";
|
||||
import { connect } from "../../utils/connect";
|
||||
import InlinePreview from "./InlinePreview";
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ import {
|
|||
getSelectedFrame,
|
||||
getCurrentThread,
|
||||
getInlinePreviews,
|
||||
} from "../../selectors";
|
||||
} from "../../selectors/index";
|
||||
|
||||
function hasPreviews(previews) {
|
||||
return !!previews && !!Object.keys(previews).length;
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ const {
|
|||
REPS: { StringRep },
|
||||
} = Reps;
|
||||
|
||||
import actions from "../../../actions";
|
||||
import actions from "../../../actions/index";
|
||||
|
||||
import AccessibleImage from "../../shared/AccessibleImage";
|
||||
const classnames = require("devtools/client/shared/classnames.js");
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ const {
|
|||
|
||||
import ExceptionPopup from "./ExceptionPopup";
|
||||
|
||||
import actions from "../../../actions";
|
||||
import actions from "../../../actions/index";
|
||||
import Popover from "../../shared/Popover";
|
||||
|
||||
import "./Popup.css";
|
||||
|
|
|
|||
|
|
@ -8,8 +8,8 @@ import { connect } from "../../../utils/connect";
|
|||
|
||||
import Popup from "./Popup";
|
||||
|
||||
import { getIsCurrentThreadPaused } from "../../../selectors";
|
||||
import actions from "../../../actions";
|
||||
import { getIsCurrentThreadPaused } from "../../../selectors/index";
|
||||
import actions from "../../../actions/index";
|
||||
|
||||
const EXCEPTION_MARKER = "mark-text-exception";
|
||||
|
||||
|
|
|
|||
|
|
@ -6,13 +6,13 @@ import PropTypes from "devtools/client/shared/vendor/react-prop-types";
|
|||
import React, { Component } from "devtools/client/shared/vendor/react";
|
||||
import { div } from "devtools/client/shared/vendor/react-dom-factories";
|
||||
import { connect } from "../../utils/connect";
|
||||
import actions from "../../actions";
|
||||
import actions from "../../actions/index";
|
||||
import {
|
||||
getActiveSearch,
|
||||
getSelectedSource,
|
||||
getSelectedSourceTextContent,
|
||||
getSearchOptions,
|
||||
} from "../../selectors";
|
||||
} from "../../selectors/index";
|
||||
|
||||
import { searchKeys } from "../../constants";
|
||||
import { scrollList } from "../../utils/result-list";
|
||||
|
|
@ -29,7 +29,7 @@ import {
|
|||
findNext,
|
||||
findPrev,
|
||||
removeOverlay,
|
||||
} from "../../utils/editor";
|
||||
} from "../../utils/editor/index";
|
||||
import { isFulfilled } from "../../utils/async-value";
|
||||
|
||||
function getSearchShortcut() {
|
||||
|
|
|
|||
|
|
@ -8,9 +8,9 @@ import PropTypes from "devtools/client/shared/vendor/react-prop-types";
|
|||
import { connect } from "../../utils/connect";
|
||||
|
||||
import SourceIcon from "../shared/SourceIcon";
|
||||
import { CloseButton } from "../shared/Button";
|
||||
import { CloseButton } from "../shared/Button/index";
|
||||
|
||||
import actions from "../../actions";
|
||||
import actions from "../../actions/index";
|
||||
|
||||
import {
|
||||
getDisplayPath,
|
||||
|
|
@ -25,7 +25,7 @@ import {
|
|||
getSelectedLocation,
|
||||
getSourcesForTabs,
|
||||
isSourceBlackBoxed,
|
||||
} from "../../selectors";
|
||||
} from "../../selectors/index";
|
||||
|
||||
const classnames = require("devtools/client/shared/classnames.js");
|
||||
|
||||
|
|
|
|||
|
|
@ -19,17 +19,17 @@ import {
|
|||
getIsPaused,
|
||||
getCurrentThread,
|
||||
getBlackBoxRanges,
|
||||
} from "../../selectors";
|
||||
} from "../../selectors/index";
|
||||
import { isVisible } from "../../utils/ui";
|
||||
|
||||
import { getHiddenTabs } from "../../utils/tabs";
|
||||
import { getFilename, isPretty, getFileURL } from "../../utils/source";
|
||||
import actions from "../../actions";
|
||||
import actions from "../../actions/index";
|
||||
|
||||
import "./Tabs.css";
|
||||
|
||||
import Tab from "./Tab";
|
||||
import { PaneToggleButton } from "../shared/Button";
|
||||
import { PaneToggleButton } from "../shared/Button/index";
|
||||
import Dropdown from "../shared/Dropdown";
|
||||
import AccessibleImage from "../shared/AccessibleImage";
|
||||
import CommandBar from "../SecondaryPanes/CommandBar";
|
||||
|
|
|
|||
|
|
@ -30,14 +30,14 @@ import {
|
|||
isSourceMapIgnoreListEnabled,
|
||||
isSourceOnSourceMapIgnoreList,
|
||||
isMapScopesEnabled,
|
||||
} from "../../selectors";
|
||||
} from "../../selectors/index";
|
||||
|
||||
// Redux actions
|
||||
import actions from "../../actions";
|
||||
import actions from "../../actions/index";
|
||||
|
||||
import SearchInFileBar from "./SearchInFileBar";
|
||||
import HighlightLines from "./HighlightLines";
|
||||
import Preview from "./Preview";
|
||||
import Preview from "./Preview/index";
|
||||
import Breakpoints from "./Breakpoints";
|
||||
import ColumnBreakpoints from "./ColumnBreakpoints";
|
||||
import DebugLine from "./DebugLine";
|
||||
|
|
@ -66,7 +66,7 @@ import {
|
|||
onMouseOver,
|
||||
startOperation,
|
||||
endOperation,
|
||||
} from "../../utils/editor";
|
||||
} from "../../utils/editor/index";
|
||||
|
||||
import { resizeToggleButton, resizeBreakpointGutter } from "../../utils/ui";
|
||||
|
||||
|
|
|
|||
|
|
@ -17,12 +17,12 @@ import { connect } from "../../utils/connect";
|
|||
import { containsPosition, positionAfter } from "../../utils/ast";
|
||||
import { createLocation } from "../../utils/location";
|
||||
|
||||
import actions from "../../actions";
|
||||
import actions from "../../actions/index";
|
||||
import {
|
||||
getSelectedLocation,
|
||||
getCursorPosition,
|
||||
getSelectedSourceTextContent,
|
||||
} from "../../selectors";
|
||||
} from "../../selectors/index";
|
||||
|
||||
import OutlineFilter from "./OutlineFilter";
|
||||
import "./Outline.css";
|
||||
|
|
|
|||
|
|
@ -10,14 +10,17 @@ import {
|
|||
} from "devtools/client/shared/vendor/react-dom-factories";
|
||||
import PropTypes from "devtools/client/shared/vendor/react-prop-types";
|
||||
import { connect } from "../../utils/connect";
|
||||
import actions from "../../actions";
|
||||
import actions from "../../actions/index";
|
||||
|
||||
import { getEditor } from "../../utils/editor";
|
||||
import { getEditor } from "../../utils/editor/index";
|
||||
import { searchKeys } from "../../constants";
|
||||
|
||||
import { getRelativePath } from "../../utils/sources-tree/utils";
|
||||
import { getFormattedSourceId } from "../../utils/source";
|
||||
import { getProjectSearchQuery, getNavigateCounter } from "../../selectors";
|
||||
import {
|
||||
getProjectSearchQuery,
|
||||
getNavigateCounter,
|
||||
} from "../../selectors/index";
|
||||
|
||||
import SearchInput from "../shared/SearchInput";
|
||||
import AccessibleImage from "../shared/AccessibleImage";
|
||||
|
|
|
|||
|
|
@ -25,10 +25,10 @@ import {
|
|||
getSourcesTreeSources,
|
||||
getFocusedSourceItem,
|
||||
getHideIgnoredSources,
|
||||
} from "../../selectors";
|
||||
} from "../../selectors/index";
|
||||
|
||||
// Actions
|
||||
import actions from "../../actions";
|
||||
import actions from "../../actions/index";
|
||||
|
||||
// Components
|
||||
import SourcesTreeItem from "./SourcesTreeItem";
|
||||
|
|
|
|||
|
|
@ -14,8 +14,8 @@ import {
|
|||
getGeneratedSourceByURL,
|
||||
isSourceOverridden,
|
||||
getHideIgnoredSources,
|
||||
} from "../../selectors";
|
||||
import actions from "../../actions";
|
||||
} from "../../selectors/index";
|
||||
import actions from "../../actions/index";
|
||||
|
||||
import { sourceTypes } from "../../utils/source";
|
||||
import { createLocation } from "../../utils/location";
|
||||
|
|
|
|||
|
|
@ -5,8 +5,8 @@
|
|||
import React, { Component } from "devtools/client/shared/vendor/react";
|
||||
import PropTypes from "devtools/client/shared/vendor/react-prop-types";
|
||||
|
||||
import actions from "../../actions";
|
||||
import { getSelectedPrimaryPaneTab } from "../../selectors";
|
||||
import actions from "../../actions/index";
|
||||
import { getSelectedPrimaryPaneTab } from "../../selectors/index";
|
||||
import { prefs } from "../../utils/prefs";
|
||||
import { connect } from "../../utils/connect";
|
||||
import { primaryPaneTabs } from "../../constants";
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ import { createLocation } from "../utils/location";
|
|||
const fuzzyAldrin = require("devtools/client/shared/vendor/fuzzaldrin-plus.js");
|
||||
const { throttle } = require("devtools/shared/throttle");
|
||||
|
||||
import actions from "../actions";
|
||||
import actions from "../actions/index";
|
||||
import {
|
||||
getDisplayedSourcesList,
|
||||
getQuickOpenQuery,
|
||||
|
|
@ -22,7 +22,7 @@ import {
|
|||
getSourceTabs,
|
||||
getBlackBoxRanges,
|
||||
getProjectDirectoryRoot,
|
||||
} from "../selectors";
|
||||
} from "../selectors/index";
|
||||
import { memoizeLast } from "../utils/memoizeLast";
|
||||
import { searchKeys } from "../constants";
|
||||
import {
|
||||
|
|
|
|||
|
|
@ -11,11 +11,14 @@ import {
|
|||
import PropTypes from "devtools/client/shared/vendor/react-prop-types";
|
||||
import { connect } from "../../../utils/connect";
|
||||
import { createSelector } from "devtools/client/shared/vendor/reselect";
|
||||
import actions from "../../../actions";
|
||||
import actions from "../../../actions/index";
|
||||
|
||||
import { CloseButton } from "../../shared/Button";
|
||||
import { CloseButton } from "../../shared/Button/index";
|
||||
|
||||
import { getSelectedText, makeBreakpointId } from "../../../utils/breakpoint";
|
||||
import {
|
||||
getSelectedText,
|
||||
makeBreakpointId,
|
||||
} from "../../../utils/breakpoint/index";
|
||||
import { getSelectedLocation } from "../../../utils/selected-location";
|
||||
import { isLineBlackboxed } from "../../../utils/source";
|
||||
|
||||
|
|
@ -26,7 +29,7 @@ import {
|
|||
isSourceMapIgnoreListEnabled,
|
||||
isSourceOnSourceMapIgnoreList,
|
||||
getBlackBoxRanges,
|
||||
} from "../../../selectors";
|
||||
} from "../../../selectors/index";
|
||||
|
||||
const classnames = require("devtools/client/shared/classnames.js");
|
||||
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ import { div, span } from "devtools/client/shared/vendor/react-dom-factories";
|
|||
import PropTypes from "devtools/client/shared/vendor/react-prop-types";
|
||||
|
||||
import { connect } from "../../../utils/connect";
|
||||
import actions from "../../../actions";
|
||||
import actions from "../../../actions/index";
|
||||
|
||||
import {
|
||||
getTruncatedFileName,
|
||||
|
|
@ -16,7 +16,7 @@ import {
|
|||
getFileURL,
|
||||
} from "../../../utils/source";
|
||||
import { createLocation } from "../../../utils/location";
|
||||
import { getFirstSourceActorForGeneratedSource } from "../../../selectors";
|
||||
import { getFirstSourceActorForGeneratedSource } from "../../../selectors/index";
|
||||
|
||||
import SourceIcon from "../../shared/SourceIcon";
|
||||
|
||||
|
|
|
|||
|
|
@ -12,11 +12,11 @@ import ExceptionOption from "./ExceptionOption";
|
|||
import Breakpoint from "./Breakpoint";
|
||||
import BreakpointHeading from "./BreakpointHeading";
|
||||
|
||||
import actions from "../../../actions";
|
||||
import actions from "../../../actions/index";
|
||||
import { getSelectedLocation } from "../../../utils/selected-location";
|
||||
import { createHeadlessEditor } from "../../../utils/editor/create-editor";
|
||||
|
||||
import { makeBreakpointId } from "../../../utils/breakpoint";
|
||||
import { makeBreakpointId } from "../../../utils/breakpoint/index";
|
||||
|
||||
import {
|
||||
getSelectedSource,
|
||||
|
|
@ -24,7 +24,7 @@ import {
|
|||
getShouldPauseOnDebuggerStatement,
|
||||
getShouldPauseOnExceptions,
|
||||
getShouldPauseOnCaughtExceptions,
|
||||
} from "../../../selectors";
|
||||
} from "../../../selectors/index";
|
||||
|
||||
const classnames = require("devtools/client/shared/classnames.js");
|
||||
|
||||
|
|
|
|||
|
|
@ -18,9 +18,9 @@ import {
|
|||
getJavascriptTracingLogMethod,
|
||||
getJavascriptTracingValues,
|
||||
getJavascriptTracingOnNextInteraction,
|
||||
} from "../../selectors";
|
||||
} from "../../selectors/index";
|
||||
import { formatKeyShortcut } from "../../utils/text";
|
||||
import actions from "../../actions";
|
||||
import actions from "../../actions/index";
|
||||
import { debugBtn } from "../shared/Button/CommandBarButton";
|
||||
import AccessibleImage from "../shared/AccessibleImage";
|
||||
import "./CommandBar.css";
|
||||
|
|
|
|||
|
|
@ -23,10 +23,10 @@ import {
|
|||
toggleDOMMutationBreakpointState,
|
||||
} from "devtools/client/framework/actions/index";
|
||||
|
||||
import actions from "../../actions";
|
||||
import actions from "../../actions/index";
|
||||
import { connect } from "../../utils/connect";
|
||||
|
||||
import { CloseButton } from "../shared/Button";
|
||||
import { CloseButton } from "../shared/Button/index";
|
||||
|
||||
import "./DOMMutationBreakpoints.css";
|
||||
|
||||
|
|
|
|||
|
|
@ -16,12 +16,12 @@ import {
|
|||
import PropTypes from "devtools/client/shared/vendor/react-prop-types";
|
||||
|
||||
import { connect } from "../../utils/connect";
|
||||
import actions from "../../actions";
|
||||
import actions from "../../actions/index";
|
||||
import {
|
||||
getActiveEventListeners,
|
||||
getEventListenerBreakpointTypes,
|
||||
getEventListenerExpanded,
|
||||
} from "../../selectors";
|
||||
} from "../../selectors/index";
|
||||
|
||||
import AccessibleImage from "../shared/AccessibleImage";
|
||||
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ import AccessibleImage from "../shared/AccessibleImage";
|
|||
|
||||
import { objectInspector } from "devtools/client/shared/components/reps/index";
|
||||
|
||||
import actions from "../../actions";
|
||||
import actions from "../../actions/index";
|
||||
import {
|
||||
getExpressions,
|
||||
getExpressionError,
|
||||
|
|
@ -31,10 +31,10 @@ import {
|
|||
getSelectedFrame,
|
||||
getOriginalFrameScope,
|
||||
getCurrentThread,
|
||||
} from "../../selectors";
|
||||
} from "../../selectors/index";
|
||||
import { getExpressionResultGripAndFront } from "../../utils/expressions";
|
||||
|
||||
import { CloseButton } from "../shared/Button";
|
||||
import { CloseButton } from "../shared/Button/index";
|
||||
|
||||
import "./Expressions.css";
|
||||
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ import React, { Component, memo } from "devtools/client/shared/vendor/react";
|
|||
import PropTypes from "devtools/client/shared/vendor/react-prop-types";
|
||||
|
||||
import AccessibleImage from "../../shared/AccessibleImage";
|
||||
import { formatDisplayName } from "../../../utils/pause/frames";
|
||||
import { formatDisplayName } from "../../../utils/pause/frames/index";
|
||||
import { getFilename, getFileURL } from "../../../utils/source";
|
||||
import FrameIndent from "./FrameIndent";
|
||||
const classnames = require("devtools/client/shared/classnames.js");
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@
|
|||
import React, { Component } from "devtools/client/shared/vendor/react";
|
||||
import PropTypes from "devtools/client/shared/vendor/react-prop-types";
|
||||
|
||||
import { getLibraryFromUrl } from "../../../utils/pause/frames";
|
||||
import { getLibraryFromUrl } from "../../../utils/pause/frames/index";
|
||||
|
||||
import AccessibleImage from "../../shared/AccessibleImage";
|
||||
import FrameComponent from "./Frame";
|
||||
|
|
|
|||
|
|
@ -9,8 +9,8 @@ import PropTypes from "devtools/client/shared/vendor/react-prop-types";
|
|||
import FrameComponent from "./Frame";
|
||||
import Group from "./Group";
|
||||
|
||||
import actions from "../../../actions";
|
||||
import { collapseFrames } from "../../../utils/pause/frames";
|
||||
import actions from "../../../actions/index";
|
||||
import { collapseFrames } from "../../../utils/pause/frames/index";
|
||||
|
||||
import {
|
||||
getFrameworkGroupingState,
|
||||
|
|
@ -18,7 +18,7 @@ import {
|
|||
getCurrentThreadFrames,
|
||||
getCurrentThread,
|
||||
getShouldSelectOriginalLocation,
|
||||
} from "../../../selectors";
|
||||
} from "../../../selectors/index";
|
||||
|
||||
import "./Frames.css";
|
||||
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ import PropTypes from "devtools/client/shared/vendor/react-prop-types";
|
|||
import AccessibleImage from "../shared/AccessibleImage";
|
||||
import { showMenu } from "../../context-menu/menu";
|
||||
import { connect } from "../../utils/connect";
|
||||
import actions from "../../actions";
|
||||
import actions from "../../actions/index";
|
||||
|
||||
import {
|
||||
getSelectedFrame,
|
||||
|
|
@ -24,7 +24,7 @@ import {
|
|||
isMapScopesEnabled,
|
||||
getLastExpandedScopes,
|
||||
getIsCurrentThreadPaused,
|
||||
} from "../../selectors";
|
||||
} from "../../selectors/index";
|
||||
import {
|
||||
getScopesItemsForSelectedFrame,
|
||||
getScopeItemPath,
|
||||
|
|
|
|||
|
|
@ -7,8 +7,8 @@ import { div, span } from "devtools/client/shared/vendor/react-dom-factories";
|
|||
import PropTypes from "devtools/client/shared/vendor/react-prop-types";
|
||||
import { connect } from "../../utils/connect";
|
||||
|
||||
import actions from "../../actions";
|
||||
import { getCurrentThread, getIsPaused } from "../../selectors";
|
||||
import actions from "../../actions/index";
|
||||
import { getCurrentThread, getIsPaused } from "../../selectors/index";
|
||||
import AccessibleImage from "../shared/AccessibleImage";
|
||||
|
||||
const classnames = require("devtools/client/shared/classnames.js");
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ import { div } from "devtools/client/shared/vendor/react-dom-factories";
|
|||
import PropTypes from "devtools/client/shared/vendor/react-prop-types";
|
||||
import { connect } from "../../utils/connect";
|
||||
|
||||
import { getAllThreads } from "../../selectors";
|
||||
import { getAllThreads } from "../../selectors/index";
|
||||
import Thread from "./Thread";
|
||||
|
||||
import "./Threads.css";
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ import { div, span } from "devtools/client/shared/vendor/react-dom-factories";
|
|||
import PropTypes from "devtools/client/shared/vendor/react-prop-types";
|
||||
import { connect } from "../../utils/connect";
|
||||
import AccessibleImage from "../shared/AccessibleImage";
|
||||
import actions from "../../actions";
|
||||
import actions from "../../actions/index";
|
||||
|
||||
import Reps from "devtools/client/shared/components/reps/index";
|
||||
const {
|
||||
|
|
@ -20,12 +20,12 @@ const {
|
|||
MODE,
|
||||
} = Reps;
|
||||
|
||||
import { getPauseReason } from "../../utils/pause";
|
||||
import { getPauseReason } from "../../utils/pause/index";
|
||||
import {
|
||||
getCurrentThread,
|
||||
getPaneCollapse,
|
||||
getPauseReason as getWhy,
|
||||
} from "../../selectors";
|
||||
} from "../../selectors/index";
|
||||
|
||||
import "./WhyPaused.css";
|
||||
|
||||
|
|
|
|||
|
|
@ -15,12 +15,12 @@ import {
|
|||
} from "devtools/client/shared/vendor/react-dom-factories";
|
||||
import PropTypes from "devtools/client/shared/vendor/react-prop-types";
|
||||
import { connect } from "../../utils/connect";
|
||||
import actions from "../../actions";
|
||||
import actions from "../../actions/index";
|
||||
|
||||
import { CloseButton } from "../shared/Button";
|
||||
import { CloseButton } from "../shared/Button/index";
|
||||
|
||||
import "./XHRBreakpoints.css";
|
||||
import { getXHRBreakpoints, shouldPauseOnAnyXHR } from "../../selectors";
|
||||
import { getXHRBreakpoints, shouldPauseOnAnyXHR } from "../../selectors/index";
|
||||
import ExceptionOption from "./Breakpoints/ExceptionOption";
|
||||
|
||||
const classnames = require("devtools/client/shared/classnames.js");
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ import {
|
|||
import PropTypes from "devtools/client/shared/vendor/react-prop-types";
|
||||
import { connect } from "../../utils/connect";
|
||||
|
||||
import actions from "../../actions";
|
||||
import actions from "../../actions/index";
|
||||
import {
|
||||
getTopFrame,
|
||||
getExpressions,
|
||||
|
|
@ -29,14 +29,14 @@ import {
|
|||
getShouldBreakpointsPaneOpenOnPause,
|
||||
getSkipPausing,
|
||||
shouldLogEventBreakpoints,
|
||||
} from "../../selectors";
|
||||
} from "../../selectors/index";
|
||||
|
||||
import AccessibleImage from "../shared/AccessibleImage";
|
||||
import { prefs } from "../../utils/prefs";
|
||||
|
||||
import Breakpoints from "./Breakpoints";
|
||||
import Breakpoints from "./Breakpoints/index";
|
||||
import Expressions from "./Expressions";
|
||||
import Frames from "./Frames";
|
||||
import Frames from "./Frames/index";
|
||||
import Threads from "./Threads";
|
||||
import Accordion from "../shared/Accordion";
|
||||
import CommandBar from "./CommandBar";
|
||||
|
|
|
|||
|
|
@ -13,8 +13,8 @@ import PropTypes from "devtools/client/shared/vendor/react-prop-types";
|
|||
import { connect } from "../utils/connect";
|
||||
import { primaryPaneTabs } from "../constants";
|
||||
|
||||
import actions from "../actions";
|
||||
import { getPaneCollapse } from "../selectors";
|
||||
import actions from "../actions/index";
|
||||
import { getPaneCollapse } from "../selectors/index";
|
||||
import { formatKeyShortcut } from "../utils/text";
|
||||
|
||||
import "./WelcomeBox.css";
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@
|
|||
import React, { PureComponent } from "devtools/client/shared/vendor/react";
|
||||
import PropTypes from "devtools/client/shared/vendor/react-prop-types";
|
||||
import AccessibleImage from "../AccessibleImage";
|
||||
import { CommandBarButton } from "./";
|
||||
import { CommandBarButton } from "./index";
|
||||
|
||||
const classnames = require("devtools/client/shared/classnames.js");
|
||||
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@ import {
|
|||
} from "devtools/client/shared/vendor/react-dom-factories";
|
||||
import PropTypes from "devtools/client/shared/vendor/react-prop-types";
|
||||
|
||||
import { formatDisplayName } from "../../utils/pause/frames";
|
||||
import { formatDisplayName } from "../../utils/pause/frames/index";
|
||||
|
||||
import "./PreviewFunction.css";
|
||||
|
||||
|
|
|
|||
|
|
@ -12,12 +12,12 @@ import {
|
|||
} from "devtools/client/shared/vendor/react-dom-factories";
|
||||
import PropTypes from "devtools/client/shared/vendor/react-prop-types";
|
||||
import { connect } from "../../utils/connect";
|
||||
import { CloseButton } from "./Button";
|
||||
import { CloseButton } from "./Button/index";
|
||||
|
||||
import AccessibleImage from "./AccessibleImage";
|
||||
import actions from "../../actions";
|
||||
import actions from "../../actions/index";
|
||||
import "./SearchInput.css";
|
||||
import { getSearchOptions } from "../../selectors";
|
||||
import { getSearchOptions } from "../../selectors/index";
|
||||
|
||||
const classnames = require("devtools/client/shared/classnames.js");
|
||||
const SearchModifiers = require("devtools/client/shared/components/SearchModifiers");
|
||||
|
|
|
|||
|
|
@ -10,7 +10,11 @@ import { connect } from "../../utils/connect";
|
|||
import AccessibleImage from "./AccessibleImage";
|
||||
|
||||
import { getSourceClassnames } from "../../utils/source";
|
||||
import { getSymbols, isSourceBlackBoxed, hasPrettyTab } from "../../selectors";
|
||||
import {
|
||||
getSymbols,
|
||||
isSourceBlackBoxed,
|
||||
hasPrettyTab,
|
||||
} from "../../selectors/index";
|
||||
|
||||
import "./SourceIcon.css";
|
||||
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@
|
|||
* @module reducers/ast
|
||||
*/
|
||||
|
||||
import { makeBreakpointId } from "../utils/breakpoint";
|
||||
import { makeBreakpointId } from "../utils/breakpoint/index";
|
||||
|
||||
export function initialASTState() {
|
||||
return {
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@
|
|||
* @module reducers/breakpoints
|
||||
*/
|
||||
|
||||
import { makeBreakpointId } from "../utils/breakpoint";
|
||||
import { makeBreakpointId } from "../utils/breakpoint/index";
|
||||
|
||||
export function initialBreakpointsState(xhrBreakpoints = []) {
|
||||
return {
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
* 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 { makeBreakpointId } from "../utils/breakpoint";
|
||||
import { makeBreakpointId } from "../utils/breakpoint/index";
|
||||
|
||||
export function getSymbols(state, location) {
|
||||
if (!location) {
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
import { createSelector } from "devtools/client/shared/vendor/reselect";
|
||||
|
||||
import { makeBreakpointId } from "../utils/breakpoint";
|
||||
import { makeBreakpointId } from "../utils/breakpoint/index";
|
||||
|
||||
// This method is only used from the main test helper
|
||||
export function getBreakpointsMap(state) {
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@
|
|||
import { createSelector } from "devtools/client/shared/vendor/reselect";
|
||||
import { shallowEqual, arrayShallowEqual } from "../utils/shallow-equal";
|
||||
|
||||
import { getSelectedSource, getSourceActorsForSource } from "./";
|
||||
import { getSelectedSource, getSourceActorsForSource } from "./index";
|
||||
|
||||
export const getSelectedSourceExceptions = createSelector(
|
||||
getSelectedSourceActors,
|
||||
|
|
|
|||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue