mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-23 04:41:11 +00:00
Bug 1929390 - [devtools] Import objectInspector without going through Reps. r=devtools-reviewers,nchevobbe
Differential Revision: https://phabricator.services.mozilla.com/D228994
This commit is contained in:
parent
6448d4d797
commit
b1731033db
@ -23,7 +23,7 @@ import * as preview from "./preview";
|
||||
import * as tracing from "./tracing";
|
||||
import * as contextMenu from "./context-menus/index";
|
||||
|
||||
import { objectInspector } from "devtools/client/shared/components/reps/index";
|
||||
import * as objectInspector from "devtools/client/shared/components/object-inspector/index";
|
||||
|
||||
export default {
|
||||
...ast,
|
||||
|
@ -5,7 +5,7 @@
|
||||
import { createFrame } from "./create";
|
||||
import { makeBreakpointServerLocationId } from "../../utils/breakpoint/index";
|
||||
|
||||
import Reps from "devtools/client/shared/components/reps/index";
|
||||
import * as objectInspector from "resource://devtools/client/shared/components/object-inspector/index.js";
|
||||
|
||||
let commands;
|
||||
let breakpoints;
|
||||
@ -46,7 +46,7 @@ function createObjectFront(grip, frame) {
|
||||
}
|
||||
|
||||
async function loadObjectProperties(root, threadActorID) {
|
||||
const { utils } = Reps.objectInspector;
|
||||
const { utils } = objectInspector;
|
||||
const properties = await utils.loadProperties.loadItemProperties(
|
||||
root,
|
||||
commands.client,
|
||||
|
@ -11,8 +11,8 @@ import Reps from "devtools/client/shared/components/reps/index";
|
||||
const {
|
||||
REPS: { Grip },
|
||||
MODE,
|
||||
objectInspector,
|
||||
} = Reps;
|
||||
import * as objectInspector from "resource://devtools/client/shared/components/object-inspector/index.js";
|
||||
|
||||
const { ObjectInspector, utils } = objectInspector;
|
||||
|
||||
|
@ -18,7 +18,7 @@ import { connect } from "devtools/client/shared/vendor/react-redux";
|
||||
import { features } from "../../utils/prefs";
|
||||
import AccessibleImage from "../shared/AccessibleImage";
|
||||
|
||||
import { objectInspector } from "devtools/client/shared/components/reps/index";
|
||||
import * as objectInspector from "resource://devtools/client/shared/components/object-inspector/index.js";
|
||||
|
||||
import actions from "../../actions/index";
|
||||
import {
|
||||
|
@ -30,7 +30,7 @@ import {
|
||||
} from "../../utils/pause/scopes";
|
||||
import { clientCommands } from "../../client/firefox";
|
||||
|
||||
import { objectInspector } from "devtools/client/shared/components/reps/index";
|
||||
import * as objectInspector from "resource://devtools/client/shared/components/object-inspector/index.js";
|
||||
const { ObjectInspector } = objectInspector;
|
||||
|
||||
class Scopes extends PureComponent {
|
||||
|
@ -27,7 +27,7 @@ import eventListenerBreakpoints, {
|
||||
import exceptions, { initialExceptionsState } from "./exceptions";
|
||||
import tracerFrames from "./tracer-frames";
|
||||
|
||||
import { objectInspector } from "devtools/client/shared/components/reps/index";
|
||||
import * as objectInspector from "resource://devtools/client/shared/components/object-inspector/index.js";
|
||||
|
||||
/**
|
||||
* Note that this is only used by jest tests.
|
||||
|
@ -34,7 +34,7 @@ export {
|
||||
} from "./visibleBreakpoints";
|
||||
export * from "./visibleColumnBreakpoints";
|
||||
|
||||
import { objectInspector } from "devtools/client/shared/components/reps/index";
|
||||
import * as objectInspector from "resource://devtools/client/shared/components/object-inspector/index.js";
|
||||
|
||||
const { reducer } = objectInspector;
|
||||
|
||||
|
@ -5,7 +5,7 @@
|
||||
// This file contains utility functions which supports the structure & display of
|
||||
// scopes information in Scopes panel.
|
||||
|
||||
import { objectInspector } from "devtools/client/shared/components/reps/index";
|
||||
import * as objectInspector from "resource://devtools/client/shared/components/object-inspector/index.js";
|
||||
import { simplifyDisplayName } from "../pause/frames/index";
|
||||
|
||||
const {
|
||||
|
@ -19,8 +19,10 @@ const Types = require("resource://devtools/client/inspector/extensions/types.js"
|
||||
const {
|
||||
REPS: { Grip },
|
||||
MODE,
|
||||
objectInspector: { ObjectInspector: ObjectInspectorClass },
|
||||
} = require("resource://devtools/client/shared/components/reps/index.js");
|
||||
const {
|
||||
ObjectInspector: ObjectInspectorClass,
|
||||
} = require("resource://devtools/client/shared/components/object-inspector/index.js");
|
||||
|
||||
loader.lazyRequireGetter(
|
||||
this,
|
||||
|
@ -11,7 +11,6 @@ const {
|
||||
REPS,
|
||||
getRep,
|
||||
} = require("resource://devtools/client/shared/components/reps/reps/rep.js");
|
||||
const objectInspector = require("resource://devtools/client/shared/components/object-inspector/index.js");
|
||||
|
||||
const {
|
||||
parseURLEncodedText,
|
||||
@ -28,5 +27,4 @@ module.exports = {
|
||||
parseURLEncodedText,
|
||||
parseURLParams,
|
||||
getGripPreviewItems,
|
||||
objectInspector,
|
||||
};
|
||||
|
@ -203,9 +203,9 @@ define(function (require, exports, module) {
|
||||
// Here we have a non custom-formatted grip, so we let the ObjectInspector
|
||||
// handles it.
|
||||
const {
|
||||
objectInspector,
|
||||
MODE,
|
||||
} = require("resource://devtools/client/shared/components/reps/index.js");
|
||||
const objectInspector = require("resource://devtools/client/shared/components/object-inspector/index.js");
|
||||
childElement = createElement(objectInspector.ObjectInspector, {
|
||||
...props,
|
||||
mode: props.mode == MODE.LONG ? MODE.SHORT : MODE.TINY,
|
||||
|
@ -19,8 +19,7 @@ const {
|
||||
const actions = require("resource://devtools/client/webconsole/actions/index.js");
|
||||
|
||||
loader.lazyGetter(this, "objectInspector", function () {
|
||||
return require("resource://devtools/client/shared/components/reps/index.js")
|
||||
.objectInspector;
|
||||
return require("resource://devtools/client/shared/components/object-inspector/index.js");
|
||||
});
|
||||
|
||||
loader.lazyGetter(this, "MODE", function () {
|
||||
|
@ -18,8 +18,8 @@ loader.lazyGetter(this, "MODE", function () {
|
||||
.MODE;
|
||||
});
|
||||
loader.lazyGetter(this, "ObjectInspector", function () {
|
||||
const reps = require("resource://devtools/client/shared/components/reps/index.js");
|
||||
return createFactory(reps.objectInspector.ObjectInspector);
|
||||
const objectInspector = require("resource://devtools/client/shared/components/object-inspector/index.js");
|
||||
return createFactory(objectInspector.ObjectInspector);
|
||||
});
|
||||
|
||||
loader.lazyRequireGetter(
|
||||
|
Loading…
Reference in New Issue
Block a user