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:
Nicolas Chevobbe 2024-01-16 13:44:56 +00:00
parent 25ffae4e56
commit 73c19874a9
111 changed files with 247 additions and 231 deletions

View file

@ -6,7 +6,7 @@ import {
hasInScopeLines, hasInScopeLines,
getSourceTextContent, getSourceTextContent,
getVisibleSelectedFrame, getVisibleSelectedFrame,
} from "../../selectors"; } from "../../selectors/index";
import { getSourceLineCount } from "../../utils/source"; import { getSourceLineCount } from "../../utils/source";

View file

@ -9,9 +9,9 @@ import {
getSourceFromId, getSourceFromId,
getBreakpointPositionsForSource, getBreakpointPositionsForSource,
getSourceActorsForSource, getSourceActorsForSource,
} from "../../selectors"; } from "../../selectors/index";
import { makeBreakpointId } from "../../utils/breakpoint"; import { makeBreakpointId } from "../../utils/breakpoint/index";
import { memoizeableAction } from "../../utils/memoizableAction"; import { memoizeableAction } from "../../utils/memoizableAction";
import { fulfilled } from "../../utils/async-value"; import { fulfilled } from "../../utils/async-value";
import { import {

View file

@ -17,8 +17,8 @@ import {
getBreakpointAtLocation, getBreakpointAtLocation,
getBreakpointsForSource, getBreakpointsForSource,
getBreakpointsAtLine, getBreakpointsAtLine,
} from "../../selectors"; } from "../../selectors/index";
import { createXHRBreakpoint } from "../../utils/breakpoint"; import { createXHRBreakpoint } from "../../utils/breakpoint/index";
import { import {
addBreakpoint, addBreakpoint,
removeBreakpoint, removeBreakpoint,

View file

@ -6,7 +6,7 @@ import { createBreakpoint } from "../../client/firefox/create";
import { import {
makeBreakpointServerLocation, makeBreakpointServerLocation,
makeBreakpointId, makeBreakpointId,
} from "../../utils/breakpoint"; } from "../../utils/breakpoint/index";
import { import {
getBreakpoint, getBreakpoint,
getBreakpointPositionsForLocation, getBreakpointPositionsForLocation,
@ -18,7 +18,7 @@ import {
getBlackBoxRanges, getBlackBoxRanges,
isSourceMapIgnoreListEnabled, isSourceMapIgnoreListEnabled,
isSourceOnSourceMapIgnoreList, isSourceOnSourceMapIgnoreList,
} from "../../selectors"; } from "../../selectors/index";
import { setBreakpointPositions } from "./breakpointPositions"; import { setBreakpointPositions } from "./breakpointPositions";
import { setSkipPausing } from "../pause/skipPausing"; import { setSkipPausing } from "../pause/skipPausing";

View file

@ -6,13 +6,13 @@ import { setBreakpointPositions } from "./breakpointPositions";
import { import {
findPosition, findPosition,
makeBreakpointServerLocation, makeBreakpointServerLocation,
} from "../../utils/breakpoint"; } from "../../utils/breakpoint/index";
import { comparePosition, createLocation } from "../../utils/location"; import { comparePosition, createLocation } from "../../utils/location";
import { originalToGeneratedId } from "devtools/client/shared/source-map-loader/index"; import { originalToGeneratedId } from "devtools/client/shared/source-map-loader/index";
import { getSource } from "../../selectors"; import { getSource } from "../../selectors/index";
import { addBreakpoint, removeBreakpointAtGeneratedLocation } from "."; import { addBreakpoint, removeBreakpointAtGeneratedLocation } from "./modify";
async function findBreakpointPosition({ getState, dispatch }, location) { async function findBreakpointPosition({ getState, dispatch }, location) {
const positions = await dispatch(setBreakpointPositions(location)); const positions = await dispatch(setBreakpointPositions(location));

View file

@ -4,7 +4,7 @@
import { buildMenu, showMenu } from "../../context-menu/menu"; import { buildMenu, showMenu } from "../../context-menu/menu";
import { getBreakpointsForSource } from "../../selectors"; import { getBreakpointsForSource } from "../../selectors/index";
import { import {
disableBreakpointsInSource, disableBreakpointsInSource,

View file

@ -14,7 +14,7 @@ import {
getBlackBoxRanges, getBlackBoxRanges,
isSourceMapIgnoreListEnabled, isSourceMapIgnoreListEnabled,
isSourceOnSourceMapIgnoreList, isSourceOnSourceMapIgnoreList,
} from "../../selectors"; } from "../../selectors/index";
import { import {
removeBreakpoint, removeBreakpoint,

View file

@ -13,7 +13,7 @@ import {
getBlackBoxRanges, getBlackBoxRanges,
isSourceMapIgnoreListEnabled, isSourceMapIgnoreListEnabled,
isSourceOnSourceMapIgnoreList, isSourceOnSourceMapIgnoreList,
} from "../../selectors"; } from "../../selectors/index";
import { import {
addBreakpoint, addBreakpoint,
removeBreakpoint, removeBreakpoint,

View file

@ -12,7 +12,7 @@ import {
shouldBlackbox, shouldBlackbox,
findBlackBoxRange, findBlackBoxRange,
} from "../../utils/source"; } from "../../utils/source";
import { toSourceLine } from "../../utils/editor"; import { toSourceLine } from "../../utils/editor/index";
import { downloadFile } from "../../utils/utils"; import { downloadFile } from "../../utils/utils";
import { features } from "../../utils/prefs"; import { features } from "../../utils/prefs";
import { isFulfilled } from "../../utils/async-value"; import { isFulfilled } from "../../utils/async-value";
@ -27,7 +27,7 @@ import {
isSourceOnSourceMapIgnoreList, isSourceOnSourceMapIgnoreList,
isSourceMapIgnoreListEnabled, isSourceMapIgnoreListEnabled,
getEditorWrapping, getEditorWrapping,
} from "../../selectors"; } from "../../selectors/index";
import { continueToHere } from "../../actions/pause/continueToHere"; import { continueToHere } from "../../actions/pause/continueToHere";
import { jumpToMappedLocation } from "../../actions/sources/select"; import { jumpToMappedLocation } from "../../actions/sources/select";

View file

@ -8,10 +8,10 @@ import {
getShouldSelectOriginalLocation, getShouldSelectOriginalLocation,
getCurrentThreadFrames, getCurrentThreadFrames,
getFrameworkGroupingState, getFrameworkGroupingState,
} from "../../selectors"; } from "../../selectors/index";
import { toggleFrameworkGrouping } from "../../actions/ui"; import { toggleFrameworkGrouping } from "../../actions/ui";
import { restart, toggleBlackBox } from "../../actions/pause"; import { restart, toggleBlackBox } from "../../actions/pause/index";
import { formatCopyName } from "../../utils/pause/frames"; import { formatCopyName } from "../../utils/pause/frames/index";
function formatMenuElement(labelString, click, disabled = false) { function formatMenuElement(labelString, click, disabled = false) {
const label = L10N.getStr(labelString); const label = L10N.getStr(labelString);

View file

@ -11,7 +11,7 @@ import { flashLineRange } from "../../actions/ui";
import { import {
getSelectedSource, getSelectedSource,
getSelectedSourceTextContent, getSelectedSourceTextContent,
} from "../../selectors"; } from "../../selectors/index";
export function showOutlineContextMenu(event, func, symbols) { export function showOutlineContextMenu(event, func, symbols) {
return async ({ dispatch, getState }) => { return async ({ dispatch, getState }) => {

View file

@ -11,9 +11,9 @@ import {
getProjectDirectoryRoot, getProjectDirectoryRoot,
getSourcesTreeSources, getSourcesTreeSources,
getBlackBoxRanges, getBlackBoxRanges,
} from "../../selectors"; } from "../../selectors/index";
import { setOverrideSource, removeOverrideSource } from "../sources"; import { setOverrideSource, removeOverrideSource } from "../sources/index";
import { loadSourceText } from "../sources/loadSourceText"; import { loadSourceText } from "../sources/loadSourceText";
import { toggleBlackBox, blackBoxSources } from "../sources/blackbox"; import { toggleBlackBox, blackBoxSources } from "../sources/blackbox";
import { import {

View file

@ -11,7 +11,7 @@ import {
isSourceBlackBoxed, isSourceBlackBoxed,
isSourceMapIgnoreListEnabled, isSourceMapIgnoreListEnabled,
isSourceOnSourceMapIgnoreList, isSourceOnSourceMapIgnoreList,
} from "../../selectors"; } from "../../selectors/index";
import { toggleBlackBox } from "../sources/blackbox"; import { toggleBlackBox } from "../sources/blackbox";
import { prettyPrintAndSelectSource } from "../sources/prettyPrint"; import { prettyPrintAndSelectSource } from "../sources/prettyPrint";

View file

@ -6,7 +6,7 @@ import {
getActiveEventListeners, getActiveEventListeners,
getEventListenerExpanded, getEventListenerExpanded,
shouldLogEventBreakpoints, shouldLogEventBreakpoints,
} from "../selectors"; } from "../selectors/index";
async function updateBreakpoints(dispatch, client, newEvents) { async function updateBreakpoints(dispatch, client, newEvents) {
await client.setEventListenerBreakpoints(newEvents); await client.setEventListenerBreakpoints(newEvents);

View file

@ -12,7 +12,7 @@ import {
getSelectedFrame, getSelectedFrame,
getCurrentThread, getCurrentThread,
isMapScopesEnabled, isMapScopesEnabled,
} from "../selectors"; } from "../selectors/index";
import { PROMISE } from "./utils/middleware/promise"; import { PROMISE } from "./utils/middleware/promise";
import { wrapExpression } from "../utils/expressions"; import { wrapExpression } from "../utils/expressions";
import { features } from "../utils/prefs"; import { features } from "../utils/prefs";

View file

@ -2,9 +2,12 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this * 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/>. */ * 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"; import { closeActiveSearch, clearHighlightLineRange } from "./ui";

View file

@ -2,26 +2,26 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this * 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/>. */ * file, You can obtain one at <http://mozilla.org/MPL/2.0/>. */
import * as ast from "./ast"; import * as ast from "./ast/index";
import * as breakpoints from "./breakpoints"; import * as breakpoints from "./breakpoints/index";
import * as exceptions from "./exceptions"; import * as exceptions from "./exceptions";
import * as expressions from "./expressions"; import * as expressions from "./expressions";
import * as eventListeners from "./event-listeners"; import * as eventListeners from "./event-listeners";
import * as pause from "./pause"; import * as pause from "./pause/index";
import * as navigation from "./navigation"; import * as navigation from "./navigation";
import * as ui from "./ui"; import * as ui from "./ui";
import * as fileSearch from "./file-search"; import * as fileSearch from "./file-search";
import * as projectTextSearch from "./project-text-search"; import * as projectTextSearch from "./project-text-search";
import * as quickOpen from "./quick-open"; import * as quickOpen from "./quick-open";
import * as sourcesTree from "./sources-tree"; 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 sourcesActors from "./source-actors";
import * as tabs from "./tabs"; import * as tabs from "./tabs";
import * as threads from "./threads"; import * as threads from "./threads";
import * as toolbox from "./toolbox"; import * as toolbox from "./toolbox";
import * as preview from "./preview"; import * as preview from "./preview";
import * as tracing from "./tracing"; 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"; import { objectInspector } from "devtools/client/shared/components/reps/index";

View file

@ -5,7 +5,7 @@
import sourceQueue from "../utils/source-queue"; import sourceQueue from "../utils/source-queue";
import { clearWasmStates } from "../utils/wasm"; import { clearWasmStates } from "../utils/wasm";
import { getMainThread } from "../selectors"; import { getMainThread } from "../selectors/index";
import { evaluateExpressionsForCurrentContext } from "../actions/expressions"; import { evaluateExpressionsForCurrentContext } from "../actions/expressions";
/** /**

View file

@ -2,7 +2,7 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this * 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/>. */ * file, You can obtain one at <http://mozilla.org/MPL/2.0/>. */
import { getCurrentThread } from "../../selectors"; import { getCurrentThread } from "../../selectors/index";
/** /**
* Debugger breakOnNext command. * Debugger breakOnNext command.
* It's different from the comand action because we also want to * It's different from the comand action because we also want to

View file

@ -7,10 +7,10 @@ import {
getCurrentThread, getCurrentThread,
getIsCurrentThreadPaused, getIsCurrentThreadPaused,
getIsPaused, getIsPaused,
} from "../../selectors"; } from "../../selectors/index";
import { PROMISE } from "../utils/middleware/promise"; import { PROMISE } from "../utils/middleware/promise";
import { evaluateExpressions } from "../expressions"; import { evaluateExpressions } from "../expressions";
import { selectLocation } from "../sources"; import { selectLocation } from "../sources/index";
import { fetchScopes } from "./fetchScopes"; import { fetchScopes } from "./fetchScopes";
import { fetchFrames } from "./fetchFrames"; import { fetchFrames } from "./fetchFrames";
import { recordEvent } from "../../utils/telemetry"; import { recordEvent } from "../../utils/telemetry";

View file

@ -8,9 +8,9 @@ import {
getClosestBreakpointPosition, getClosestBreakpointPosition,
getBreakpoint, getBreakpoint,
getCurrentThread, getCurrentThread,
} from "../../selectors"; } from "../../selectors/index";
import { createLocation } from "../../utils/location"; import { createLocation } from "../../utils/location";
import { addHiddenBreakpoint } from "../breakpoints"; import { addHiddenBreakpoint } from "../breakpoints/index";
import { setBreakpointPositions } from "../breakpoints/breakpointPositions"; import { setBreakpointPositions } from "../breakpoints/breakpointPositions";
import { resume } from "./commands"; import { resume } from "./commands";

View file

@ -2,7 +2,7 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this * 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/>. */ * 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) { export function fetchFrames(thread) {
return async function ({ dispatch, client, getState }) { return async function ({ dispatch, client, getState }) {

View file

@ -2,7 +2,10 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this * 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/>. */ * 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 { mapScopes } from "./mapScopes";
import { generateInlinePreview } from "./inlinePreview"; import { generateInlinePreview } from "./inlinePreview";
import { PROMISE } from "../utils/middleware/promise"; import { PROMISE } from "../utils/middleware/promise";

View file

@ -7,7 +7,7 @@ import {
getGeneratedFrameScope, getGeneratedFrameScope,
getInlinePreviews, getInlinePreviews,
getSelectedLocation, getSelectedLocation,
} from "../../selectors"; } from "../../selectors/index";
import { features } from "../../utils/prefs"; import { features } from "../../utils/prefs";
import { validateSelectedFrame } from "../../utils/context"; import { validateSelectedFrame } from "../../utils/context";

View file

@ -6,7 +6,7 @@ import {
getFrames, getFrames,
getBlackBoxRanges, getBlackBoxRanges,
getSelectedFrame, getSelectedFrame,
} from "../../selectors"; } from "../../selectors/index";
import { isFrameBlackBoxed } from "../../utils/source"; import { isFrameBlackBoxed } from "../../utils/source";
@ -19,7 +19,7 @@ import {
import { annotateFramesWithLibrary } from "../../utils/pause/frames/annotateFrames"; import { annotateFramesWithLibrary } from "../../utils/pause/frames/annotateFrames";
import { createWasmOriginalFrame } from "../../client/firefox/create"; import { createWasmOriginalFrame } from "../../client/firefox/create";
import { getOriginalFunctionDisplayName } from "../sources"; import { getOriginalFunctionDisplayName } from "../sources/index";
function getSelectedFrameId(state, thread, frames) { function getSelectedFrameId(state, thread, frames) {
let selectedFrame = getSelectedFrame(state, thread); let selectedFrame = getSelectedFrame(state, thread);

View file

@ -10,7 +10,7 @@ import {
getOriginalFrameScope, getOriginalFrameScope,
getFirstSourceActorForGeneratedSource, getFirstSourceActorForGeneratedSource,
getCurrentThread, getCurrentThread,
} from "../../selectors"; } from "../../selectors/index";
import { import {
loadOriginalSourceText, loadOriginalSourceText,
loadGeneratedSourceText, loadGeneratedSourceText,
@ -20,7 +20,7 @@ import { PROMISE } from "../utils/middleware/promise";
import { log } from "../../utils/log"; 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 { isFulfilled } from "../../utils/async-value";
import { getMappedLocation } from "../../utils/source-maps"; import { getMappedLocation } from "../../utils/source-maps";

View file

@ -6,12 +6,12 @@ import {
getHiddenBreakpoint, getHiddenBreakpoint,
isEvaluatingExpression, isEvaluatingExpression,
getSelectedFrame, getSelectedFrame,
} from "../../selectors"; } from "../../selectors/index";
import { mapFrames, fetchFrames } from "."; import { mapFrames, fetchFrames } from "./index";
import { removeBreakpoint } from "../breakpoints"; import { removeBreakpoint } from "../breakpoints/index";
import { evaluateExpressions } from "../expressions"; import { evaluateExpressions } from "../expressions";
import { selectLocation } from "../sources"; import { selectLocation } from "../sources/index";
import { validateSelectedFrame } from "../../utils/context"; import { validateSelectedFrame } from "../../utils/context";
import { fetchScopes } from "./fetchScopes"; import { fetchScopes } from "./fetchScopes";

View file

@ -2,9 +2,13 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this * 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/>. */ * 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 { evaluateExpressions } from "../expressions";
import { inDebuggerEval } from "../../utils/pause"; import { inDebuggerEval } from "../../utils/pause/index";
/** /**
* Debugger has just resumed. * Debugger has just resumed.

View file

@ -2,7 +2,7 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this * 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/>. */ * 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 { evaluateExpressions } from "../expressions";
import { fetchScopes } from "./fetchScopes"; import { fetchScopes } from "./fetchScopes";
import { validateSelectedFrame } from "../../utils/context"; import { validateSelectedFrame } from "../../utils/context";

View file

@ -2,7 +2,7 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this * 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/>. */ * file, You can obtain one at <http://mozilla.org/MPL/2.0/>. */
import { getSkipPausing } from "../../selectors"; import { getSkipPausing } from "../../selectors/index";
/** /**
* @memberof actions/pause * @memberof actions/pause

View file

@ -14,7 +14,7 @@ import {
getSelectedFrame, getSelectedFrame,
getCurrentThread, getCurrentThread,
getSelectedException, getSelectedException,
} from "../selectors"; } from "../selectors/index";
import { getMappedExpression } from "./expressions"; import { getMappedExpression } from "./expressions";

View file

@ -14,7 +14,7 @@ import {
getSettledSourceTextContent, getSettledSourceTextContent,
isSourceBlackBoxed, isSourceBlackBoxed,
getSearchOptions, getSearchOptions,
} from "../selectors"; } from "../selectors/index";
import { createLocation } from "../utils/location"; import { createLocation } from "../utils/location";
import { matchesGlobPatterns } from "../utils/source"; import { matchesGlobPatterns } from "../utils/source";
import { loadSourceText } from "./sources/loadSourceText"; import { loadSourceText } from "./sources/loadSourceText";

View file

@ -2,7 +2,7 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this * 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/>. */ * 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) { export function setExpandedState(expanded) {
return { type: "SET_EXPANDED_STATE", expanded }; return { type: "SET_EXPANDED_STATE", expanded };

View file

@ -9,13 +9,13 @@
import { originalToGeneratedId } from "devtools/client/shared/source-map-loader/index"; import { originalToGeneratedId } from "devtools/client/shared/source-map-loader/index";
import { recordEvent } from "../../utils/telemetry"; import { recordEvent } from "../../utils/telemetry";
import { toggleBreakpoints } from "../breakpoints"; import { toggleBreakpoints } from "../breakpoints/index";
import { import {
getSourceActorsForSource, getSourceActorsForSource,
isSourceBlackBoxed, isSourceBlackBoxed,
getBlackBoxRanges, getBlackBoxRanges,
getBreakpointsForSource, getBreakpointsForSource,
} from "../../selectors"; } from "../../selectors/index";
export async function blackboxSourceActorsForSource( export async function blackboxSourceActorsForSource(
thunkArgs, thunkArgs,

View file

@ -5,7 +5,7 @@
import { import {
getBreakableLines, getBreakableLines,
getSourceActorBreakableLines, getSourceActorBreakableLines,
} from "../../selectors"; } from "../../selectors/index";
import { setBreakpointPositions } from "../breakpoints/breakpointPositions"; import { setBreakpointPositions } from "../breakpoints/breakpointPositions";
function calculateBreakableLines(positions) { function calculateBreakableLines(positions) {

View file

@ -11,8 +11,8 @@ import {
getBreakpointsForSource, getBreakpointsForSource,
getSourceActorsForSource, getSourceActorsForSource,
getFirstSourceActorForGeneratedSource, getFirstSourceActorForGeneratedSource,
} from "../../selectors"; } from "../../selectors/index";
import { addBreakpoint } from "../breakpoints"; import { addBreakpoint } from "../breakpoints/index";
import { prettyPrintSourceTextContent } from "./prettyPrint"; import { prettyPrintSourceTextContent } from "./prettyPrint";
import { isFulfilled, fulfilled } from "../../utils/async-value"; import { isFulfilled, fulfilled } from "../../utils/async-value";

View file

@ -14,11 +14,11 @@ import {
createSourceActor, createSourceActor,
} from "../../client/firefox/create"; } from "../../client/firefox/create";
import { toggleBlackBox } from "./blackbox"; import { toggleBlackBox } from "./blackbox";
import { syncPendingBreakpoint } from "../breakpoints"; import { syncPendingBreakpoint } from "../breakpoints/index";
import { loadSourceText } from "./loadSourceText"; import { loadSourceText } from "./loadSourceText";
import { prettyPrintAndSelectSource } from "./prettyPrint"; import { prettyPrintAndSelectSource } from "./prettyPrint";
import { toggleSourceMapIgnoreList } from "../ui"; import { toggleSourceMapIgnoreList } from "../ui";
import { selectLocation, setBreakableLines } from "../sources"; import { selectLocation, setBreakableLines } from "../sources/index";
import { getRawSourceURL, isPrettyURL } from "../../utils/source"; import { getRawSourceURL, isPrettyURL } from "../../utils/source";
import { createLocation } from "../../utils/location"; import { createLocation } from "../../utils/location";
@ -30,7 +30,7 @@ import {
getSourceByActorId, getSourceByActorId,
getPendingSelectedLocation, getPendingSelectedLocation,
getPendingBreakpointsForSource, getPendingBreakpointsForSource,
} from "../../selectors"; } from "../../selectors/index";
import { prefs } from "../../utils/prefs"; import { prefs } from "../../utils/prefs";
import sourceQueue from "../../utils/source-queue"; import sourceQueue from "../../utils/source-queue";

View file

@ -6,7 +6,7 @@ import { generatedToOriginalId } from "devtools/client/shared/source-map-loader/
import assert from "../../utils/assert"; import assert from "../../utils/assert";
import { recordEvent } from "../../utils/telemetry"; import { recordEvent } from "../../utils/telemetry";
import { updateBreakpointsForNewPrettyPrintedSource } from "../breakpoints"; import { updateBreakpointsForNewPrettyPrintedSource } from "../breakpoints/index";
import { getPrettySourceURL, isJavaScript } from "../../utils/source"; import { getPrettySourceURL, isJavaScript } from "../../utils/source";
import { isFulfilled, fulfilled } from "../../utils/async-value"; import { isFulfilled, fulfilled } from "../../utils/async-value";
@ -16,15 +16,15 @@ import {
loadGeneratedSourceText, loadGeneratedSourceText,
loadOriginalSourceText, loadOriginalSourceText,
} from "./loadSourceText"; } from "./loadSourceText";
import { mapFrames } from "../pause"; import { mapFrames } from "../pause/index";
import { selectSpecificLocation } from "../sources"; import { selectSpecificLocation } from "../sources/index";
import { createPrettyPrintOriginalSource } from "../../client/firefox/create"; import { createPrettyPrintOriginalSource } from "../../client/firefox/create";
import { import {
getFirstSourceActorForGeneratedSource, getFirstSourceActorForGeneratedSource,
getSourceFromId, getSourceFromId,
getSelectedLocation, getSelectedLocation,
} from "../../selectors"; } from "../../selectors/index";
import { selectSource } from "./select"; import { selectSource } from "./select";
import { memoizeableAction } from "../../utils/memoizableAction"; import { memoizeableAction } from "../../utils/memoizableAction";

View file

@ -8,11 +8,11 @@
*/ */
import { setSymbols } from "./symbols"; import { setSymbols } from "./symbols";
import { setInScopeLines } from "../ast"; import { setInScopeLines } from "../ast/index";
import { prettyPrintAndSelectSource } from "./prettyPrint"; import { prettyPrintAndSelectSource } from "./prettyPrint";
import { addTab, closeTab } from "../tabs"; import { addTab, closeTab } from "../tabs";
import { loadSourceText } from "./loadSourceText"; import { loadSourceText } from "./loadSourceText";
import { setBreakableLines } from "."; import { setBreakableLines } from "./breakableLines";
import { prefs } from "../../utils/prefs"; import { prefs } from "../../utils/prefs";
import { isMinified } from "../../utils/source"; import { isMinified } from "../../utils/source";
@ -36,7 +36,7 @@ import {
hasSourceActor, hasSourceActor,
hasPrettyTab, hasPrettyTab,
isSourceActorWithSourceMap, isSourceActorWithSourceMap,
} from "../../selectors"; } from "../../selectors/index";
// This is only used by jest tests (and within this module) // This is only used by jest tests (and within this module)
export const setSelectedLocation = ( export const setSelectedLocation = (

View file

@ -2,7 +2,7 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this * 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/>. */ * 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 { PROMISE } from "../utils/middleware/promise";
import { loadSourceText } from "./loadSourceText"; import { loadSourceText } from "./loadSourceText";

View file

@ -6,10 +6,10 @@
* Redux actions for the editor tabs * Redux actions for the editor tabs
*/ */
import { removeDocument } from "../utils/editor"; import { removeDocument } from "../utils/editor/index";
import { selectSource } from "./sources"; import { selectSource } from "./sources/index";
import { getSelectedLocation, getSourcesForTabs } from "../selectors"; import { getSelectedLocation, getSourcesForTabs } from "../selectors/index";
export function addTab(source, sourceActor) { export function addTab(source, sourceActor) {
return { return {

View file

@ -3,7 +3,7 @@
* file, You can obtain one at <http://mozilla.org/MPL/2.0/>. */ * file, You can obtain one at <http://mozilla.org/MPL/2.0/>. */
import { createThread } from "../client/firefox/create"; import { createThread } from "../client/firefox/create";
import { getSourcesToRemoveForThread } from "../selectors"; import { getSourcesToRemoveForThread } from "../selectors/index";
import { clearDocumentsForSources } from "../utils/editor/source-documents"; import { clearDocumentsForSources } from "../utils/editor/source-documents";
export function addTarget(targetFront) { export function addTarget(targetFront) {

View file

@ -2,7 +2,7 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this * 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/>. */ * 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"; import { PROMISE } from "./utils/middleware/promise";
/** /**

View file

@ -11,15 +11,15 @@ import {
getIgnoreListSourceUrls, getIgnoreListSourceUrls,
getSourceByURL, getSourceByURL,
getBreakpointsForSource, getBreakpointsForSource,
} from "../selectors"; } from "../selectors/index";
import { selectSource } from "../actions/sources/select"; import { selectSource } from "../actions/sources/select";
import { import {
getEditor, getEditor,
getLocationsInViewport, getLocationsInViewport,
updateDocuments, updateDocuments,
} from "../utils/editor"; } from "../utils/editor/index";
import { blackboxSourceActorsForSource } from "./sources/blackbox"; import { blackboxSourceActorsForSource } from "./sources/blackbox";
import { toggleBreakpoints } from "./breakpoints"; import { toggleBreakpoints } from "./breakpoints/index";
import { copyToTheClipboard } from "../utils/clipboard"; import { copyToTheClipboard } from "../utils/clipboard";
import { isFulfilled } from "../utils/async-value"; import { isFulfilled } from "../utils/async-value";
import { primaryPaneTabs } from "../constants"; import { primaryPaneTabs } from "../constants";

View file

@ -3,7 +3,7 @@
* file, You can obtain one at <http://mozilla.org/MPL/2.0/>. */ * file, You can obtain one at <http://mozilla.org/MPL/2.0/>. */
import { createFrame } from "./create"; import { createFrame } from "./create";
import { makeBreakpointServerLocationId } from "../../utils/breakpoint"; import { makeBreakpointServerLocationId } from "../../utils/breakpoint/index";
import Reps from "devtools/client/shared/components/reps/index"; import Reps from "devtools/client/shared/components/reps/index";

View file

@ -9,7 +9,7 @@ import {
hasSourceActor, hasSourceActor,
getSourceActor, getSourceActor,
getSourceCount, getSourceCount,
} from "../../selectors"; } from "../../selectors/index";
import { features } from "../../utils/prefs"; import { features } from "../../utils/prefs";
import { isUrlExtension } from "../../utils/source"; import { isUrlExtension } from "../../utils/source";
import { createLocation } from "../../utils/location"; import { createLocation } from "../../utils/location";

View file

@ -12,7 +12,7 @@ import PropTypes from "devtools/client/shared/vendor/react-prop-types";
import { connect } from "../utils/connect"; import { connect } from "../utils/connect";
import { prefs } from "../utils/prefs"; import { prefs } from "../utils/prefs";
import { primaryPaneTabs } from "../constants"; import { primaryPaneTabs } from "../constants";
import actions from "../actions"; import actions from "../actions/index";
import AccessibleImage from "./shared/AccessibleImage"; import AccessibleImage from "./shared/AccessibleImage";
import { import {
@ -24,7 +24,7 @@ import {
getIsCurrentThreadPaused, getIsCurrentThreadPaused,
isMapScopesEnabled, isMapScopesEnabled,
getSourceMapErrorForSourceActor, getSourceMapErrorForSourceActor,
} from "../selectors"; } from "../selectors/index";
const KeyShortcuts = require("devtools/client/shared/key-shortcuts"); const KeyShortcuts = require("devtools/client/shared/key-shortcuts");
const SplitBox = require("devtools/client/shared/components/splitter/SplitBox"); const SplitBox = require("devtools/client/shared/components/splitter/SplitBox");
@ -42,9 +42,9 @@ import "./App.css";
import "./shared/menu.css"; import "./shared/menu.css";
import { ShortcutsModal } from "./ShortcutsModal"; import { ShortcutsModal } from "./ShortcutsModal";
import PrimaryPanes from "./PrimaryPanes"; import PrimaryPanes from "./PrimaryPanes/index";
import Editor from "./Editor"; import Editor from "./Editor/index";
import SecondaryPanes from "./SecondaryPanes"; import SecondaryPanes from "./SecondaryPanes/index";
import WelcomeBox from "./WelcomeBox"; import WelcomeBox from "./WelcomeBox";
import EditorTabs from "./Editor/Tabs"; import EditorTabs from "./Editor/Tabs";
import EditorFooter from "./Editor/Footer"; import EditorFooter from "./Editor/Footer";

View file

@ -4,7 +4,7 @@
import PropTypes from "devtools/client/shared/vendor/react-prop-types"; import PropTypes from "devtools/client/shared/vendor/react-prop-types";
import { Component } from "devtools/client/shared/vendor/react"; 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 { isLineBlackboxed } from "../../utils/source";
import { isWasm } from "../../utils/wasm"; import { isWasm } from "../../utils/wasm";

View file

@ -5,7 +5,7 @@
import { PureComponent } from "devtools/client/shared/vendor/react"; import { PureComponent } from "devtools/client/shared/vendor/react";
import PropTypes from "devtools/client/shared/vendor/react-prop-types"; 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 { getSelectedLocation } from "../../utils/selected-location";
import { features } from "../../utils/prefs"; import { features } from "../../utils/prefs";
const classnames = require("devtools/client/shared/classnames.js"); const classnames = require("devtools/client/shared/classnames.js");

View file

@ -7,10 +7,13 @@ import React, { Component } from "devtools/client/shared/vendor/react";
import { div } from "devtools/client/shared/vendor/react-dom-factories"; import { div } from "devtools/client/shared/vendor/react-dom-factories";
import Breakpoint from "./Breakpoint"; import Breakpoint from "./Breakpoint";
import { getSelectedSource, getFirstVisibleBreakpoints } from "../../selectors"; import {
import { makeBreakpointId } from "../../utils/breakpoint"; getSelectedSource,
getFirstVisibleBreakpoints,
} from "../../selectors/index";
import { makeBreakpointId } from "../../utils/breakpoint/index";
import { connect } from "../../utils/connect"; import { connect } from "../../utils/connect";
import actions from "../../actions"; import actions from "../../actions/index";
class Breakpoints extends Component { class Breakpoints extends Component {
static get propTypes() { static get propTypes() {

View file

@ -5,7 +5,7 @@
import { PureComponent } from "devtools/client/shared/vendor/react"; import { PureComponent } from "devtools/client/shared/vendor/react";
import PropTypes from "devtools/client/shared/vendor/react-prop-types"; 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"); const classnames = require("devtools/client/shared/classnames.js");
// eslint-disable-next-line max-len // eslint-disable-next-line max-len

View file

@ -12,10 +12,10 @@ import {
getSelectedSource, getSelectedSource,
visibleColumnBreakpoints, visibleColumnBreakpoints,
isSourceBlackBoxed, isSourceBlackBoxed,
} from "../../selectors"; } from "../../selectors/index";
import actions from "../../actions"; import actions from "../../actions/index";
import { connect } from "../../utils/connect"; import { connect } from "../../utils/connect";
import { makeBreakpointId } from "../../utils/breakpoint"; import { makeBreakpointId } from "../../utils/breakpoint/index";
// eslint-disable-next-line max-len // eslint-disable-next-line max-len

View file

@ -11,15 +11,15 @@ import ReactDOM from "devtools/client/shared/vendor/react-dom";
import PropTypes from "devtools/client/shared/vendor/react-prop-types"; import PropTypes from "devtools/client/shared/vendor/react-prop-types";
import { connect } from "../../utils/connect"; import { connect } from "../../utils/connect";
import "./ConditionalPanel.css"; import "./ConditionalPanel.css";
import { toEditorLine } from "../../utils/editor"; import { toEditorLine } from "../../utils/editor/index";
import { prefs } from "../../utils/prefs"; import { prefs } from "../../utils/prefs";
import actions from "../../actions"; import actions from "../../actions/index";
import { import {
getClosestBreakpoint, getClosestBreakpoint,
getConditionalPanelLocation, getConditionalPanelLocation,
getLogPointStatus, getLogPointStatus,
} from "../../selectors"; } from "../../selectors/index";
const classnames = require("devtools/client/shared/classnames.js"); const classnames = require("devtools/client/shared/classnames.js");

View file

@ -11,8 +11,8 @@ import {
startOperation, startOperation,
endOperation, endOperation,
getTokenEnd, getTokenEnd,
} from "../../utils/editor"; } from "../../utils/editor/index";
import { isException } from "../../utils/pause"; import { isException } from "../../utils/pause/index";
import { getIndentation } from "../../utils/indentation"; import { getIndentation } from "../../utils/indentation";
import { connect } from "../../utils/connect"; import { connect } from "../../utils/connect";
import { import {
@ -20,7 +20,7 @@ import {
getPauseReason, getPauseReason,
getSourceTextContent, getSourceTextContent,
getCurrentThread, getCurrentThread,
} from "../../selectors"; } from "../../selectors/index";
export class DebugLine extends PureComponent { export class DebugLine extends PureComponent {
debugExpression; debugExpression;

View file

@ -5,8 +5,11 @@
import { connect } from "../../utils/connect"; import { connect } from "../../utils/connect";
import { Component } from "devtools/client/shared/vendor/react"; import { Component } from "devtools/client/shared/vendor/react";
import PropTypes from "devtools/client/shared/vendor/react-prop-types"; import PropTypes from "devtools/client/shared/vendor/react-prop-types";
import { getSelectedSource, getSelectedBreakableLines } from "../../selectors"; import {
import { fromEditorLine } from "../../utils/editor"; getSelectedSource,
getSelectedBreakableLines,
} from "../../selectors/index";
import { fromEditorLine } from "../../utils/editor/index";
import { isWasm } from "../../utils/wasm"; import { isWasm } from "../../utils/wasm";
class EmptyLines extends Component { class EmptyLines extends Component {

View file

@ -5,7 +5,11 @@
import { PureComponent } from "devtools/client/shared/vendor/react"; import { PureComponent } from "devtools/client/shared/vendor/react";
import PropTypes from "devtools/client/shared/vendor/react-prop-types"; 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 { getIndentation } from "../../utils/indentation";
import { createLocation } from "../../utils/location"; import { createLocation } from "../../utils/location";

View file

@ -11,8 +11,8 @@ import Exception from "./Exception";
import { import {
getSelectedSource, getSelectedSource,
getSelectedSourceExceptions, getSelectedSourceExceptions,
} from "../../selectors"; } from "../../selectors/index";
import { getDocument } from "../../utils/editor"; import { getDocument } from "../../utils/editor/index";
class Exceptions extends Component { class Exceptions extends Component {
static get propTypes() { static get propTypes() {

View file

@ -10,7 +10,7 @@ import {
} from "devtools/client/shared/vendor/react-dom-factories"; } from "devtools/client/shared/vendor/react-dom-factories";
import PropTypes from "devtools/client/shared/vendor/react-prop-types"; import PropTypes from "devtools/client/shared/vendor/react-prop-types";
import { connect } from "../../utils/connect"; import { connect } from "../../utils/connect";
import actions from "../../actions"; import actions from "../../actions/index";
import { import {
getSelectedSource, getSelectedSource,
getSelectedLocation, getSelectedLocation,
@ -23,11 +23,11 @@ import {
isSourceOnSourceMapIgnoreList, isSourceOnSourceMapIgnoreList,
isSourceMapIgnoreListEnabled, isSourceMapIgnoreListEnabled,
getSelectedMappedSource, getSelectedMappedSource,
} from "../../selectors"; } from "../../selectors/index";
import { isPretty, getFilename, shouldBlackbox } from "../../utils/source"; import { isPretty, getFilename, shouldBlackbox } from "../../utils/source";
import { PaneToggleButton } from "../shared/Button"; import { PaneToggleButton } from "../shared/Button/index";
import AccessibleImage from "../shared/AccessibleImage"; import AccessibleImage from "../shared/AccessibleImage";
const classnames = require("devtools/client/shared/classnames.js"); const classnames = require("devtools/client/shared/classnames.js");

View file

@ -4,7 +4,11 @@
import { Component } from "devtools/client/shared/vendor/react"; import { Component } from "devtools/client/shared/vendor/react";
import PropTypes from "devtools/client/shared/vendor/react-prop-types"; 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 { getDocument, hasDocument } from "../../utils/editor/source-documents";
import { connect } from "../../utils/connect"; import { connect } from "../../utils/connect";
@ -14,7 +18,7 @@ import {
getSelectedSourceTextContent, getSelectedSourceTextContent,
getPauseCommand, getPauseCommand,
getCurrentThread, getCurrentThread,
} from "../../selectors"; } from "../../selectors/index";
function isDebugLine(selectedFrame, selectedLocation) { function isDebugLine(selectedFrame, selectedLocation) {
if (!selectedFrame) { if (!selectedFrame) {

View file

@ -5,7 +5,7 @@
import React, { PureComponent } from "devtools/client/shared/vendor/react"; import React, { PureComponent } from "devtools/client/shared/vendor/react";
import ReactDOM from "devtools/client/shared/vendor/react-dom"; import ReactDOM from "devtools/client/shared/vendor/react-dom";
import actions from "../../actions"; import actions from "../../actions/index";
import assert from "../../utils/assert"; import assert from "../../utils/assert";
import { connect } from "../../utils/connect"; import { connect } from "../../utils/connect";
import InlinePreview from "./InlinePreview"; import InlinePreview from "./InlinePreview";

View file

@ -11,7 +11,7 @@ import {
getSelectedFrame, getSelectedFrame,
getCurrentThread, getCurrentThread,
getInlinePreviews, getInlinePreviews,
} from "../../selectors"; } from "../../selectors/index";
function hasPreviews(previews) { function hasPreviews(previews) {
return !!previews && !!Object.keys(previews).length; return !!previews && !!Object.keys(previews).length;

View file

@ -12,7 +12,7 @@ const {
REPS: { StringRep }, REPS: { StringRep },
} = Reps; } = Reps;
import actions from "../../../actions"; import actions from "../../../actions/index";
import AccessibleImage from "../../shared/AccessibleImage"; import AccessibleImage from "../../shared/AccessibleImage";
const classnames = require("devtools/client/shared/classnames.js"); const classnames = require("devtools/client/shared/classnames.js");

View file

@ -22,7 +22,7 @@ const {
import ExceptionPopup from "./ExceptionPopup"; import ExceptionPopup from "./ExceptionPopup";
import actions from "../../../actions"; import actions from "../../../actions/index";
import Popover from "../../shared/Popover"; import Popover from "../../shared/Popover";
import "./Popup.css"; import "./Popup.css";

View file

@ -8,8 +8,8 @@ import { connect } from "../../../utils/connect";
import Popup from "./Popup"; import Popup from "./Popup";
import { getIsCurrentThreadPaused } from "../../../selectors"; import { getIsCurrentThreadPaused } from "../../../selectors/index";
import actions from "../../../actions"; import actions from "../../../actions/index";
const EXCEPTION_MARKER = "mark-text-exception"; const EXCEPTION_MARKER = "mark-text-exception";

View file

@ -6,13 +6,13 @@ import PropTypes from "devtools/client/shared/vendor/react-prop-types";
import React, { Component } from "devtools/client/shared/vendor/react"; import React, { Component } from "devtools/client/shared/vendor/react";
import { div } from "devtools/client/shared/vendor/react-dom-factories"; import { div } from "devtools/client/shared/vendor/react-dom-factories";
import { connect } from "../../utils/connect"; import { connect } from "../../utils/connect";
import actions from "../../actions"; import actions from "../../actions/index";
import { import {
getActiveSearch, getActiveSearch,
getSelectedSource, getSelectedSource,
getSelectedSourceTextContent, getSelectedSourceTextContent,
getSearchOptions, getSearchOptions,
} from "../../selectors"; } from "../../selectors/index";
import { searchKeys } from "../../constants"; import { searchKeys } from "../../constants";
import { scrollList } from "../../utils/result-list"; import { scrollList } from "../../utils/result-list";
@ -29,7 +29,7 @@ import {
findNext, findNext,
findPrev, findPrev,
removeOverlay, removeOverlay,
} from "../../utils/editor"; } from "../../utils/editor/index";
import { isFulfilled } from "../../utils/async-value"; import { isFulfilled } from "../../utils/async-value";
function getSearchShortcut() { function getSearchShortcut() {

View file

@ -8,9 +8,9 @@ import PropTypes from "devtools/client/shared/vendor/react-prop-types";
import { connect } from "../../utils/connect"; import { connect } from "../../utils/connect";
import SourceIcon from "../shared/SourceIcon"; 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 { import {
getDisplayPath, getDisplayPath,
@ -25,7 +25,7 @@ import {
getSelectedLocation, getSelectedLocation,
getSourcesForTabs, getSourcesForTabs,
isSourceBlackBoxed, isSourceBlackBoxed,
} from "../../selectors"; } from "../../selectors/index";
const classnames = require("devtools/client/shared/classnames.js"); const classnames = require("devtools/client/shared/classnames.js");

View file

@ -19,17 +19,17 @@ import {
getIsPaused, getIsPaused,
getCurrentThread, getCurrentThread,
getBlackBoxRanges, getBlackBoxRanges,
} from "../../selectors"; } from "../../selectors/index";
import { isVisible } from "../../utils/ui"; import { isVisible } from "../../utils/ui";
import { getHiddenTabs } from "../../utils/tabs"; import { getHiddenTabs } from "../../utils/tabs";
import { getFilename, isPretty, getFileURL } from "../../utils/source"; import { getFilename, isPretty, getFileURL } from "../../utils/source";
import actions from "../../actions"; import actions from "../../actions/index";
import "./Tabs.css"; import "./Tabs.css";
import Tab from "./Tab"; import Tab from "./Tab";
import { PaneToggleButton } from "../shared/Button"; import { PaneToggleButton } from "../shared/Button/index";
import Dropdown from "../shared/Dropdown"; import Dropdown from "../shared/Dropdown";
import AccessibleImage from "../shared/AccessibleImage"; import AccessibleImage from "../shared/AccessibleImage";
import CommandBar from "../SecondaryPanes/CommandBar"; import CommandBar from "../SecondaryPanes/CommandBar";

View file

@ -30,14 +30,14 @@ import {
isSourceMapIgnoreListEnabled, isSourceMapIgnoreListEnabled,
isSourceOnSourceMapIgnoreList, isSourceOnSourceMapIgnoreList,
isMapScopesEnabled, isMapScopesEnabled,
} from "../../selectors"; } from "../../selectors/index";
// Redux actions // Redux actions
import actions from "../../actions"; import actions from "../../actions/index";
import SearchInFileBar from "./SearchInFileBar"; import SearchInFileBar from "./SearchInFileBar";
import HighlightLines from "./HighlightLines"; import HighlightLines from "./HighlightLines";
import Preview from "./Preview"; import Preview from "./Preview/index";
import Breakpoints from "./Breakpoints"; import Breakpoints from "./Breakpoints";
import ColumnBreakpoints from "./ColumnBreakpoints"; import ColumnBreakpoints from "./ColumnBreakpoints";
import DebugLine from "./DebugLine"; import DebugLine from "./DebugLine";
@ -66,7 +66,7 @@ import {
onMouseOver, onMouseOver,
startOperation, startOperation,
endOperation, endOperation,
} from "../../utils/editor"; } from "../../utils/editor/index";
import { resizeToggleButton, resizeBreakpointGutter } from "../../utils/ui"; import { resizeToggleButton, resizeBreakpointGutter } from "../../utils/ui";

View file

@ -17,12 +17,12 @@ import { connect } from "../../utils/connect";
import { containsPosition, positionAfter } from "../../utils/ast"; import { containsPosition, positionAfter } from "../../utils/ast";
import { createLocation } from "../../utils/location"; import { createLocation } from "../../utils/location";
import actions from "../../actions"; import actions from "../../actions/index";
import { import {
getSelectedLocation, getSelectedLocation,
getCursorPosition, getCursorPosition,
getSelectedSourceTextContent, getSelectedSourceTextContent,
} from "../../selectors"; } from "../../selectors/index";
import OutlineFilter from "./OutlineFilter"; import OutlineFilter from "./OutlineFilter";
import "./Outline.css"; import "./Outline.css";

View file

@ -10,14 +10,17 @@ import {
} from "devtools/client/shared/vendor/react-dom-factories"; } from "devtools/client/shared/vendor/react-dom-factories";
import PropTypes from "devtools/client/shared/vendor/react-prop-types"; import PropTypes from "devtools/client/shared/vendor/react-prop-types";
import { connect } from "../../utils/connect"; 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 { searchKeys } from "../../constants";
import { getRelativePath } from "../../utils/sources-tree/utils"; import { getRelativePath } from "../../utils/sources-tree/utils";
import { getFormattedSourceId } from "../../utils/source"; import { getFormattedSourceId } from "../../utils/source";
import { getProjectSearchQuery, getNavigateCounter } from "../../selectors"; import {
getProjectSearchQuery,
getNavigateCounter,
} from "../../selectors/index";
import SearchInput from "../shared/SearchInput"; import SearchInput from "../shared/SearchInput";
import AccessibleImage from "../shared/AccessibleImage"; import AccessibleImage from "../shared/AccessibleImage";

View file

@ -25,10 +25,10 @@ import {
getSourcesTreeSources, getSourcesTreeSources,
getFocusedSourceItem, getFocusedSourceItem,
getHideIgnoredSources, getHideIgnoredSources,
} from "../../selectors"; } from "../../selectors/index";
// Actions // Actions
import actions from "../../actions"; import actions from "../../actions/index";
// Components // Components
import SourcesTreeItem from "./SourcesTreeItem"; import SourcesTreeItem from "./SourcesTreeItem";

View file

@ -14,8 +14,8 @@ import {
getGeneratedSourceByURL, getGeneratedSourceByURL,
isSourceOverridden, isSourceOverridden,
getHideIgnoredSources, getHideIgnoredSources,
} from "../../selectors"; } from "../../selectors/index";
import actions from "../../actions"; import actions from "../../actions/index";
import { sourceTypes } from "../../utils/source"; import { sourceTypes } from "../../utils/source";
import { createLocation } from "../../utils/location"; import { createLocation } from "../../utils/location";

View file

@ -5,8 +5,8 @@
import React, { Component } from "devtools/client/shared/vendor/react"; import React, { Component } from "devtools/client/shared/vendor/react";
import PropTypes from "devtools/client/shared/vendor/react-prop-types"; import PropTypes from "devtools/client/shared/vendor/react-prop-types";
import actions from "../../actions"; import actions from "../../actions/index";
import { getSelectedPrimaryPaneTab } from "../../selectors"; import { getSelectedPrimaryPaneTab } from "../../selectors/index";
import { prefs } from "../../utils/prefs"; import { prefs } from "../../utils/prefs";
import { connect } from "../../utils/connect"; import { connect } from "../../utils/connect";
import { primaryPaneTabs } from "../../constants"; import { primaryPaneTabs } from "../../constants";

View file

@ -12,7 +12,7 @@ import { createLocation } from "../utils/location";
const fuzzyAldrin = require("devtools/client/shared/vendor/fuzzaldrin-plus.js"); const fuzzyAldrin = require("devtools/client/shared/vendor/fuzzaldrin-plus.js");
const { throttle } = require("devtools/shared/throttle"); const { throttle } = require("devtools/shared/throttle");
import actions from "../actions"; import actions from "../actions/index";
import { import {
getDisplayedSourcesList, getDisplayedSourcesList,
getQuickOpenQuery, getQuickOpenQuery,
@ -22,7 +22,7 @@ import {
getSourceTabs, getSourceTabs,
getBlackBoxRanges, getBlackBoxRanges,
getProjectDirectoryRoot, getProjectDirectoryRoot,
} from "../selectors"; } from "../selectors/index";
import { memoizeLast } from "../utils/memoizeLast"; import { memoizeLast } from "../utils/memoizeLast";
import { searchKeys } from "../constants"; import { searchKeys } from "../constants";
import { import {

View file

@ -11,11 +11,14 @@ import {
import PropTypes from "devtools/client/shared/vendor/react-prop-types"; import PropTypes from "devtools/client/shared/vendor/react-prop-types";
import { connect } from "../../../utils/connect"; import { connect } from "../../../utils/connect";
import { createSelector } from "devtools/client/shared/vendor/reselect"; 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 { getSelectedLocation } from "../../../utils/selected-location";
import { isLineBlackboxed } from "../../../utils/source"; import { isLineBlackboxed } from "../../../utils/source";
@ -26,7 +29,7 @@ import {
isSourceMapIgnoreListEnabled, isSourceMapIgnoreListEnabled,
isSourceOnSourceMapIgnoreList, isSourceOnSourceMapIgnoreList,
getBlackBoxRanges, getBlackBoxRanges,
} from "../../../selectors"; } from "../../../selectors/index";
const classnames = require("devtools/client/shared/classnames.js"); const classnames = require("devtools/client/shared/classnames.js");

View file

@ -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 PropTypes from "devtools/client/shared/vendor/react-prop-types";
import { connect } from "../../../utils/connect"; import { connect } from "../../../utils/connect";
import actions from "../../../actions"; import actions from "../../../actions/index";
import { import {
getTruncatedFileName, getTruncatedFileName,
@ -16,7 +16,7 @@ import {
getFileURL, getFileURL,
} from "../../../utils/source"; } from "../../../utils/source";
import { createLocation } from "../../../utils/location"; import { createLocation } from "../../../utils/location";
import { getFirstSourceActorForGeneratedSource } from "../../../selectors"; import { getFirstSourceActorForGeneratedSource } from "../../../selectors/index";
import SourceIcon from "../../shared/SourceIcon"; import SourceIcon from "../../shared/SourceIcon";

View file

@ -12,11 +12,11 @@ import ExceptionOption from "./ExceptionOption";
import Breakpoint from "./Breakpoint"; import Breakpoint from "./Breakpoint";
import BreakpointHeading from "./BreakpointHeading"; import BreakpointHeading from "./BreakpointHeading";
import actions from "../../../actions"; import actions from "../../../actions/index";
import { getSelectedLocation } from "../../../utils/selected-location"; import { getSelectedLocation } from "../../../utils/selected-location";
import { createHeadlessEditor } from "../../../utils/editor/create-editor"; import { createHeadlessEditor } from "../../../utils/editor/create-editor";
import { makeBreakpointId } from "../../../utils/breakpoint"; import { makeBreakpointId } from "../../../utils/breakpoint/index";
import { import {
getSelectedSource, getSelectedSource,
@ -24,7 +24,7 @@ import {
getShouldPauseOnDebuggerStatement, getShouldPauseOnDebuggerStatement,
getShouldPauseOnExceptions, getShouldPauseOnExceptions,
getShouldPauseOnCaughtExceptions, getShouldPauseOnCaughtExceptions,
} from "../../../selectors"; } from "../../../selectors/index";
const classnames = require("devtools/client/shared/classnames.js"); const classnames = require("devtools/client/shared/classnames.js");

View file

@ -18,9 +18,9 @@ import {
getJavascriptTracingLogMethod, getJavascriptTracingLogMethod,
getJavascriptTracingValues, getJavascriptTracingValues,
getJavascriptTracingOnNextInteraction, getJavascriptTracingOnNextInteraction,
} from "../../selectors"; } from "../../selectors/index";
import { formatKeyShortcut } from "../../utils/text"; import { formatKeyShortcut } from "../../utils/text";
import actions from "../../actions"; import actions from "../../actions/index";
import { debugBtn } from "../shared/Button/CommandBarButton"; import { debugBtn } from "../shared/Button/CommandBarButton";
import AccessibleImage from "../shared/AccessibleImage"; import AccessibleImage from "../shared/AccessibleImage";
import "./CommandBar.css"; import "./CommandBar.css";

View file

@ -23,10 +23,10 @@ import {
toggleDOMMutationBreakpointState, toggleDOMMutationBreakpointState,
} from "devtools/client/framework/actions/index"; } from "devtools/client/framework/actions/index";
import actions from "../../actions"; import actions from "../../actions/index";
import { connect } from "../../utils/connect"; import { connect } from "../../utils/connect";
import { CloseButton } from "../shared/Button"; import { CloseButton } from "../shared/Button/index";
import "./DOMMutationBreakpoints.css"; import "./DOMMutationBreakpoints.css";

View file

@ -16,12 +16,12 @@ import {
import PropTypes from "devtools/client/shared/vendor/react-prop-types"; import PropTypes from "devtools/client/shared/vendor/react-prop-types";
import { connect } from "../../utils/connect"; import { connect } from "../../utils/connect";
import actions from "../../actions"; import actions from "../../actions/index";
import { import {
getActiveEventListeners, getActiveEventListeners,
getEventListenerBreakpointTypes, getEventListenerBreakpointTypes,
getEventListenerExpanded, getEventListenerExpanded,
} from "../../selectors"; } from "../../selectors/index";
import AccessibleImage from "../shared/AccessibleImage"; import AccessibleImage from "../shared/AccessibleImage";

View file

@ -20,7 +20,7 @@ import AccessibleImage from "../shared/AccessibleImage";
import { objectInspector } from "devtools/client/shared/components/reps/index"; import { objectInspector } from "devtools/client/shared/components/reps/index";
import actions from "../../actions"; import actions from "../../actions/index";
import { import {
getExpressions, getExpressions,
getExpressionError, getExpressionError,
@ -31,10 +31,10 @@ import {
getSelectedFrame, getSelectedFrame,
getOriginalFrameScope, getOriginalFrameScope,
getCurrentThread, getCurrentThread,
} from "../../selectors"; } from "../../selectors/index";
import { getExpressionResultGripAndFront } from "../../utils/expressions"; import { getExpressionResultGripAndFront } from "../../utils/expressions";
import { CloseButton } from "../shared/Button"; import { CloseButton } from "../shared/Button/index";
import "./Expressions.css"; import "./Expressions.css";

View file

@ -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 PropTypes from "devtools/client/shared/vendor/react-prop-types";
import AccessibleImage from "../../shared/AccessibleImage"; 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 { getFilename, getFileURL } from "../../../utils/source";
import FrameIndent from "./FrameIndent"; import FrameIndent from "./FrameIndent";
const classnames = require("devtools/client/shared/classnames.js"); const classnames = require("devtools/client/shared/classnames.js");

View file

@ -5,7 +5,7 @@
import React, { Component } from "devtools/client/shared/vendor/react"; import React, { Component } from "devtools/client/shared/vendor/react";
import PropTypes from "devtools/client/shared/vendor/react-prop-types"; 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 AccessibleImage from "../../shared/AccessibleImage";
import FrameComponent from "./Frame"; import FrameComponent from "./Frame";

View file

@ -9,8 +9,8 @@ import PropTypes from "devtools/client/shared/vendor/react-prop-types";
import FrameComponent from "./Frame"; import FrameComponent from "./Frame";
import Group from "./Group"; import Group from "./Group";
import actions from "../../../actions"; import actions from "../../../actions/index";
import { collapseFrames } from "../../../utils/pause/frames"; import { collapseFrames } from "../../../utils/pause/frames/index";
import { import {
getFrameworkGroupingState, getFrameworkGroupingState,
@ -18,7 +18,7 @@ import {
getCurrentThreadFrames, getCurrentThreadFrames,
getCurrentThread, getCurrentThread,
getShouldSelectOriginalLocation, getShouldSelectOriginalLocation,
} from "../../../selectors"; } from "../../../selectors/index";
import "./Frames.css"; import "./Frames.css";

View file

@ -12,7 +12,7 @@ import PropTypes from "devtools/client/shared/vendor/react-prop-types";
import AccessibleImage from "../shared/AccessibleImage"; import AccessibleImage from "../shared/AccessibleImage";
import { showMenu } from "../../context-menu/menu"; import { showMenu } from "../../context-menu/menu";
import { connect } from "../../utils/connect"; import { connect } from "../../utils/connect";
import actions from "../../actions"; import actions from "../../actions/index";
import { import {
getSelectedFrame, getSelectedFrame,
@ -24,7 +24,7 @@ import {
isMapScopesEnabled, isMapScopesEnabled,
getLastExpandedScopes, getLastExpandedScopes,
getIsCurrentThreadPaused, getIsCurrentThreadPaused,
} from "../../selectors"; } from "../../selectors/index";
import { import {
getScopesItemsForSelectedFrame, getScopesItemsForSelectedFrame,
getScopeItemPath, getScopeItemPath,

View file

@ -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 PropTypes from "devtools/client/shared/vendor/react-prop-types";
import { connect } from "../../utils/connect"; import { connect } from "../../utils/connect";
import actions from "../../actions"; import actions from "../../actions/index";
import { getCurrentThread, getIsPaused } from "../../selectors"; import { getCurrentThread, getIsPaused } from "../../selectors/index";
import AccessibleImage from "../shared/AccessibleImage"; import AccessibleImage from "../shared/AccessibleImage";
const classnames = require("devtools/client/shared/classnames.js"); const classnames = require("devtools/client/shared/classnames.js");

View file

@ -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 PropTypes from "devtools/client/shared/vendor/react-prop-types";
import { connect } from "../../utils/connect"; import { connect } from "../../utils/connect";
import { getAllThreads } from "../../selectors"; import { getAllThreads } from "../../selectors/index";
import Thread from "./Thread"; import Thread from "./Thread";
import "./Threads.css"; import "./Threads.css";

View file

@ -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 PropTypes from "devtools/client/shared/vendor/react-prop-types";
import { connect } from "../../utils/connect"; import { connect } from "../../utils/connect";
import AccessibleImage from "../shared/AccessibleImage"; import AccessibleImage from "../shared/AccessibleImage";
import actions from "../../actions"; import actions from "../../actions/index";
import Reps from "devtools/client/shared/components/reps/index"; import Reps from "devtools/client/shared/components/reps/index";
const { const {
@ -20,12 +20,12 @@ const {
MODE, MODE,
} = Reps; } = Reps;
import { getPauseReason } from "../../utils/pause"; import { getPauseReason } from "../../utils/pause/index";
import { import {
getCurrentThread, getCurrentThread,
getPaneCollapse, getPaneCollapse,
getPauseReason as getWhy, getPauseReason as getWhy,
} from "../../selectors"; } from "../../selectors/index";
import "./WhyPaused.css"; import "./WhyPaused.css";

View file

@ -15,12 +15,12 @@ import {
} from "devtools/client/shared/vendor/react-dom-factories"; } from "devtools/client/shared/vendor/react-dom-factories";
import PropTypes from "devtools/client/shared/vendor/react-prop-types"; import PropTypes from "devtools/client/shared/vendor/react-prop-types";
import { connect } from "../../utils/connect"; 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 "./XHRBreakpoints.css";
import { getXHRBreakpoints, shouldPauseOnAnyXHR } from "../../selectors"; import { getXHRBreakpoints, shouldPauseOnAnyXHR } from "../../selectors/index";
import ExceptionOption from "./Breakpoints/ExceptionOption"; import ExceptionOption from "./Breakpoints/ExceptionOption";
const classnames = require("devtools/client/shared/classnames.js"); const classnames = require("devtools/client/shared/classnames.js");

View file

@ -15,7 +15,7 @@ import {
import PropTypes from "devtools/client/shared/vendor/react-prop-types"; import PropTypes from "devtools/client/shared/vendor/react-prop-types";
import { connect } from "../../utils/connect"; import { connect } from "../../utils/connect";
import actions from "../../actions"; import actions from "../../actions/index";
import { import {
getTopFrame, getTopFrame,
getExpressions, getExpressions,
@ -29,14 +29,14 @@ import {
getShouldBreakpointsPaneOpenOnPause, getShouldBreakpointsPaneOpenOnPause,
getSkipPausing, getSkipPausing,
shouldLogEventBreakpoints, shouldLogEventBreakpoints,
} from "../../selectors"; } from "../../selectors/index";
import AccessibleImage from "../shared/AccessibleImage"; import AccessibleImage from "../shared/AccessibleImage";
import { prefs } from "../../utils/prefs"; import { prefs } from "../../utils/prefs";
import Breakpoints from "./Breakpoints"; import Breakpoints from "./Breakpoints/index";
import Expressions from "./Expressions"; import Expressions from "./Expressions";
import Frames from "./Frames"; import Frames from "./Frames/index";
import Threads from "./Threads"; import Threads from "./Threads";
import Accordion from "../shared/Accordion"; import Accordion from "../shared/Accordion";
import CommandBar from "./CommandBar"; import CommandBar from "./CommandBar";

View file

@ -13,8 +13,8 @@ import PropTypes from "devtools/client/shared/vendor/react-prop-types";
import { connect } from "../utils/connect"; import { connect } from "../utils/connect";
import { primaryPaneTabs } from "../constants"; import { primaryPaneTabs } from "../constants";
import actions from "../actions"; import actions from "../actions/index";
import { getPaneCollapse } from "../selectors"; import { getPaneCollapse } from "../selectors/index";
import { formatKeyShortcut } from "../utils/text"; import { formatKeyShortcut } from "../utils/text";
import "./WelcomeBox.css"; import "./WelcomeBox.css";

View file

@ -5,7 +5,7 @@
import React, { PureComponent } from "devtools/client/shared/vendor/react"; import React, { PureComponent } from "devtools/client/shared/vendor/react";
import PropTypes from "devtools/client/shared/vendor/react-prop-types"; import PropTypes from "devtools/client/shared/vendor/react-prop-types";
import AccessibleImage from "../AccessibleImage"; import AccessibleImage from "../AccessibleImage";
import { CommandBarButton } from "./"; import { CommandBarButton } from "./index";
const classnames = require("devtools/client/shared/classnames.js"); const classnames = require("devtools/client/shared/classnames.js");

View file

@ -9,7 +9,7 @@ import {
} from "devtools/client/shared/vendor/react-dom-factories"; } from "devtools/client/shared/vendor/react-dom-factories";
import PropTypes from "devtools/client/shared/vendor/react-prop-types"; 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"; import "./PreviewFunction.css";

View file

@ -12,12 +12,12 @@ import {
} from "devtools/client/shared/vendor/react-dom-factories"; } from "devtools/client/shared/vendor/react-dom-factories";
import PropTypes from "devtools/client/shared/vendor/react-prop-types"; import PropTypes from "devtools/client/shared/vendor/react-prop-types";
import { connect } from "../../utils/connect"; import { connect } from "../../utils/connect";
import { CloseButton } from "./Button"; import { CloseButton } from "./Button/index";
import AccessibleImage from "./AccessibleImage"; import AccessibleImage from "./AccessibleImage";
import actions from "../../actions"; import actions from "../../actions/index";
import "./SearchInput.css"; import "./SearchInput.css";
import { getSearchOptions } from "../../selectors"; import { getSearchOptions } from "../../selectors/index";
const classnames = require("devtools/client/shared/classnames.js"); const classnames = require("devtools/client/shared/classnames.js");
const SearchModifiers = require("devtools/client/shared/components/SearchModifiers"); const SearchModifiers = require("devtools/client/shared/components/SearchModifiers");

View file

@ -10,7 +10,11 @@ import { connect } from "../../utils/connect";
import AccessibleImage from "./AccessibleImage"; import AccessibleImage from "./AccessibleImage";
import { getSourceClassnames } from "../../utils/source"; import { getSourceClassnames } from "../../utils/source";
import { getSymbols, isSourceBlackBoxed, hasPrettyTab } from "../../selectors"; import {
getSymbols,
isSourceBlackBoxed,
hasPrettyTab,
} from "../../selectors/index";
import "./SourceIcon.css"; import "./SourceIcon.css";

View file

@ -7,7 +7,7 @@
* @module reducers/ast * @module reducers/ast
*/ */
import { makeBreakpointId } from "../utils/breakpoint"; import { makeBreakpointId } from "../utils/breakpoint/index";
export function initialASTState() { export function initialASTState() {
return { return {

View file

@ -7,7 +7,7 @@
* @module reducers/breakpoints * @module reducers/breakpoints
*/ */
import { makeBreakpointId } from "../utils/breakpoint"; import { makeBreakpointId } from "../utils/breakpoint/index";
export function initialBreakpointsState(xhrBreakpoints = []) { export function initialBreakpointsState(xhrBreakpoints = []) {
return { return {

View file

@ -2,7 +2,7 @@
* License, v. 2.0. If a copy of the MPL was not distributed with this * 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/>. */ * 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) { export function getSymbols(state, location) {
if (!location) { if (!location) {

View file

@ -4,7 +4,7 @@
import { createSelector } from "devtools/client/shared/vendor/reselect"; 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 // This method is only used from the main test helper
export function getBreakpointsMap(state) { export function getBreakpointsMap(state) {

View file

@ -5,7 +5,7 @@
import { createSelector } from "devtools/client/shared/vendor/reselect"; import { createSelector } from "devtools/client/shared/vendor/reselect";
import { shallowEqual, arrayShallowEqual } from "../utils/shallow-equal"; import { shallowEqual, arrayShallowEqual } from "../utils/shallow-equal";
import { getSelectedSource, getSourceActorsForSource } from "./"; import { getSelectedSource, getSourceActorsForSource } from "./index";
export const getSelectedSourceExceptions = createSelector( export const getSelectedSourceExceptions = createSelector(
getSelectedSourceActors, getSelectedSourceActors,

Some files were not shown because too many files have changed in this diff Show more