Bug 1596686 - Use absolute paths for require calls r=gl

# ignore-this-changeset

Differential Revision: https://phabricator.services.mozilla.com/D58243

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Julian Descottes 2019-12-27 12:23:47 +00:00
Родитель 08f0515d7c
Коммит 1018577094
585 изменённых файлов: 2728 добавлений и 1414 удалений

Просмотреть файл

@ -19,24 +19,26 @@ const Provider = createFactory(
const FluentReact = require("devtools/client/shared/vendor/fluent-react");
const LocalizationProvider = createFactory(FluentReact.LocalizationProvider);
const actions = require("./src/actions/index");
const { configureStore } = require("./src/create-store");
const actions = require("devtools/client/aboutdebugging/src/actions/index");
const {
configureStore,
} = require("devtools/client/aboutdebugging/src/create-store");
const {
setDebugTargetCollapsibilities,
} = require("./src/modules/debug-target-collapsibilities");
} = require("devtools/client/aboutdebugging/src/modules/debug-target-collapsibilities");
const { l10n } = require("./src/modules/l10n");
const { l10n } = require("devtools/client/aboutdebugging/src/modules/l10n");
const {
addNetworkLocationsObserver,
getNetworkLocations,
removeNetworkLocationsObserver,
} = require("./src/modules/network-locations");
} = require("devtools/client/aboutdebugging/src/modules/network-locations");
const {
addUSBRuntimesObserver,
getUSBRuntimes,
removeUSBRuntimesObserver,
} = require("./src/modules/usb-runtimes");
} = require("devtools/client/aboutdebugging/src/modules/usb-runtimes");
loader.lazyRequireGetter(this, "adb", "devtools/shared/adb/adb", true);
loader.lazyRequireGetter(
@ -55,7 +57,9 @@ loader.lazyRequireGetter(
const Router = createFactory(
require("devtools/client/shared/vendor/react-router-dom").HashRouter
);
const App = createFactory(require("./src/components/App"));
const App = createFactory(
require("devtools/client/aboutdebugging/src/components/App")
);
const AboutDebugging = {
async init() {

Просмотреть файл

@ -20,4 +20,4 @@ const { require } = BrowserLoader({
// script tags are using Promises bound to the lifecycle of the document, while modules
// loaded with a devtools loader use Promises that will still resolve if the document is
// destroyed. This is particularly useful to ensure asynchronous destroy() calls succeed.
require("./aboutdebugging");
require("devtools/client/aboutdebugging/aboutdebugging");

Просмотреть файл

@ -10,21 +10,21 @@ const {
} = require("devtools/client/shared/remote-debugging/remote-client-manager");
const Services = require("Services");
const { l10n } = require("../modules/l10n");
const { l10n } = require("devtools/client/aboutdebugging/src/modules/l10n");
const {
isSupportedDebugTargetPane,
} = require("../modules/debug-target-support");
} = require("devtools/client/aboutdebugging/src/modules/debug-target-support");
const {
openTemporaryExtension,
uninstallAddon,
} = require("../modules/extensions-helper");
} = require("devtools/client/aboutdebugging/src/modules/extensions-helper");
const {
getCurrentClient,
getCurrentRuntime,
} = require("../modules/runtimes-state-helper");
} = require("devtools/client/aboutdebugging/src/modules/runtimes-state-helper");
const {
DEBUG_TARGETS,
@ -48,9 +48,9 @@ const {
TEMPORARY_EXTENSION_RELOAD_START,
TEMPORARY_EXTENSION_RELOAD_SUCCESS,
RUNTIMES,
} = require("../constants");
} = require("devtools/client/aboutdebugging/src/constants");
const Actions = require("./index");
const Actions = require("devtools/client/aboutdebugging/src/actions/index");
function isCachedActorNeeded(runtime, type, id) {
// Unique ids for workers were introduced in Firefox 68 (Bug 1539328). When debugging

Просмотреть файл

@ -4,9 +4,9 @@
"use strict";
const debugTargets = require("./debug-targets");
const runtimes = require("./runtimes");
const telemetry = require("./telemetry");
const ui = require("./ui");
const debugTargets = require("devtools/client/aboutdebugging/src/actions/debug-targets");
const runtimes = require("devtools/client/aboutdebugging/src/actions/runtimes");
const telemetry = require("devtools/client/aboutdebugging/src/actions/telemetry");
const ui = require("devtools/client/aboutdebugging/src/actions/ui");
Object.assign(exports, ui, runtimes, telemetry, debugTargets);

Просмотреть файл

@ -6,19 +6,21 @@
const Services = require("Services");
const Actions = require("./index");
const Actions = require("devtools/client/aboutdebugging/src/actions/index");
const {
getAllRuntimes,
getCurrentRuntime,
findRuntimeById,
} = require("../modules/runtimes-state-helper");
} = require("devtools/client/aboutdebugging/src/modules/runtimes-state-helper");
const { l10n } = require("../modules/l10n");
const { createClientForRuntime } = require("../modules/runtime-client-factory");
const { l10n } = require("devtools/client/aboutdebugging/src/modules/l10n");
const {
createClientForRuntime,
} = require("devtools/client/aboutdebugging/src/modules/runtime-client-factory");
const {
isSupportedDebugTargetPane,
} = require("../modules/debug-target-support");
} = require("devtools/client/aboutdebugging/src/modules/debug-target-support");
const {
remoteClientManager,
@ -51,7 +53,7 @@ const {
WATCH_RUNTIME_FAILURE,
WATCH_RUNTIME_START,
WATCH_RUNTIME_SUCCESS,
} = require("../constants");
} = require("devtools/client/aboutdebugging/src/constants");
const CONNECTION_TIMING_OUT_DELAY = 3000;
const CONNECTION_CANCEL_DELAY = 13000;

Просмотреть файл

@ -4,7 +4,9 @@
"use strict";
const { TELEMETRY_RECORD } = require("../constants");
const {
TELEMETRY_RECORD,
} = require("devtools/client/aboutdebugging/src/constants");
/**
* If a given event cannot be mapped to an existing action, use this action that will only

Просмотреть файл

@ -26,13 +26,15 @@ const {
SHOW_PROFILER_DIALOG,
USB_RUNTIMES_SCAN_START,
USB_RUNTIMES_SCAN_SUCCESS,
} = require("../constants");
} = require("devtools/client/aboutdebugging/src/constants");
const NetworkLocationsModule = require("../modules/network-locations");
const NetworkLocationsModule = require("devtools/client/aboutdebugging/src/modules/network-locations");
const { adbAddon } = require("devtools/shared/adb/adb-addon");
const { refreshUSBRuntimes } = require("../modules/usb-runtimes");
const {
refreshUSBRuntimes,
} = require("devtools/client/aboutdebugging/src/modules/usb-runtimes");
const Actions = require("./index");
const Actions = require("devtools/client/aboutdebugging/src/actions/index");
function selectPage(page, runtimeId) {
return async (dispatch, getState) => {

Просмотреть файл

@ -25,12 +25,21 @@ const Redirect = createFactory(
require("devtools/client/shared/vendor/react-router-dom").Redirect
);
const Types = require("../types/index");
const { PAGE_TYPES, RUNTIMES } = require("../constants");
const Types = require("devtools/client/aboutdebugging/src/types/index");
const {
PAGE_TYPES,
RUNTIMES,
} = require("devtools/client/aboutdebugging/src/constants");
const ConnectPage = createFactory(require("./connect/ConnectPage"));
const RuntimePage = createFactory(require("./RuntimePage"));
const Sidebar = createFactory(require("./sidebar/Sidebar"));
const ConnectPage = createFactory(
require("devtools/client/aboutdebugging/src/components/connect/ConnectPage")
);
const RuntimePage = createFactory(
require("devtools/client/aboutdebugging/src/components/RuntimePage")
);
const Sidebar = createFactory(
require("devtools/client/aboutdebugging/src/components/sidebar/Sidebar")
);
class App extends PureComponent {
static get propTypes() {

Просмотреть файл

@ -13,9 +13,13 @@ const dom = require("devtools/client/shared/vendor/react-dom-factories");
const FluentReact = require("devtools/client/shared/vendor/fluent-react");
const Localized = createFactory(FluentReact.Localized);
const Message = createFactory(require("./shared/Message"));
const Message = createFactory(
require("devtools/client/aboutdebugging/src/components/shared/Message")
);
const { MESSAGE_LEVEL } = require("../constants");
const {
MESSAGE_LEVEL,
} = require("devtools/client/aboutdebugging/src/constants");
const {
COMPATIBILITY_STATUS,
} = require("devtools/client/shared/remote-debugging/version-checker");
@ -23,7 +27,7 @@ const {
const TROUBLESHOOTING_URL =
"https://developer.mozilla.org/docs/Tools/about:debugging#Troubleshooting";
const Types = require("../types/index");
const Types = require("devtools/client/aboutdebugging/src/types/index");
class CompatibilityWarning extends PureComponent {
static get propTypes() {

Просмотреть файл

@ -14,7 +14,7 @@ const PropTypes = require("devtools/client/shared/vendor/react-prop-types");
const FluentReact = require("devtools/client/shared/vendor/fluent-react");
const Localized = createFactory(FluentReact.Localized);
const Actions = require("../actions/index");
const Actions = require("devtools/client/aboutdebugging/src/actions/index");
class ConnectionPromptSetting extends PureComponent {
static get propTypes() {

Просмотреть файл

@ -14,8 +14,8 @@ const PropTypes = require("devtools/client/shared/vendor/react-prop-types");
const FluentReact = require("devtools/client/shared/vendor/fluent-react");
const Localized = createFactory(FluentReact.Localized);
const Actions = require("../actions/index");
const Types = require("../types/index");
const Actions = require("devtools/client/aboutdebugging/src/actions/index");
const Types = require("devtools/client/aboutdebugging/src/types/index");
/**
* This component a modal dialog containing the performance profiler UI.

Просмотреть файл

@ -15,12 +15,12 @@ const FluentReact = require("devtools/client/shared/vendor/fluent-react");
const Localized = createFactory(FluentReact.Localized);
const ConnectionPromptSetting = createFactory(
require("./ConnectionPromptSetting")
require("devtools/client/aboutdebugging/src/components/ConnectionPromptSetting")
);
const Actions = require("../actions/index");
const { RUNTIMES } = require("../constants");
const Types = require("../types/index");
const Actions = require("devtools/client/aboutdebugging/src/actions/index");
const { RUNTIMES } = require("devtools/client/aboutdebugging/src/constants");
const Types = require("devtools/client/aboutdebugging/src/types/index");
class RuntimeActions extends PureComponent {
static get propTypes() {

Просмотреть файл

@ -11,11 +11,11 @@ const {
const dom = require("devtools/client/shared/vendor/react-dom-factories");
const PropTypes = require("devtools/client/shared/vendor/react-prop-types");
const Actions = require("../actions/index");
const Actions = require("devtools/client/aboutdebugging/src/actions/index");
const FluentReact = require("devtools/client/shared/vendor/fluent-react");
const Localized = createFactory(FluentReact.Localized);
const { RUNTIMES } = require("../constants");
const { RUNTIMES } = require("devtools/client/aboutdebugging/src/constants");
/**
* This component displays runtime information.

Просмотреть файл

@ -15,47 +15,69 @@ const PropTypes = require("devtools/client/shared/vendor/react-prop-types");
const FluentReact = require("devtools/client/shared/vendor/fluent-react");
const Localized = createFactory(FluentReact.Localized);
const CompatibilityWarning = createFactory(require("./CompatibilityWarning"));
const DebugTargetPane = createFactory(require("./debugtarget/DebugTargetPane"));
const ExtensionDetail = createFactory(require("./debugtarget/ExtensionDetail"));
const InspectAction = createFactory(require("./debugtarget/InspectAction"));
const ProfilerDialog = createFactory(require("./ProfilerDialog"));
const RuntimeActions = createFactory(require("./RuntimeActions"));
const RuntimeInfo = createFactory(require("./RuntimeInfo"));
const CompatibilityWarning = createFactory(
require("devtools/client/aboutdebugging/src/components/CompatibilityWarning")
);
const DebugTargetPane = createFactory(
require("devtools/client/aboutdebugging/src/components/debugtarget/DebugTargetPane")
);
const ExtensionDetail = createFactory(
require("devtools/client/aboutdebugging/src/components/debugtarget/ExtensionDetail")
);
const InspectAction = createFactory(
require("devtools/client/aboutdebugging/src/components/debugtarget/InspectAction")
);
const ProfilerDialog = createFactory(
require("devtools/client/aboutdebugging/src/components/ProfilerDialog")
);
const RuntimeActions = createFactory(
require("devtools/client/aboutdebugging/src/components/RuntimeActions")
);
const RuntimeInfo = createFactory(
require("devtools/client/aboutdebugging/src/components/RuntimeInfo")
);
const ServiceWorkerAction = createFactory(
require("./debugtarget/ServiceWorkerAction")
require("devtools/client/aboutdebugging/src/components/debugtarget/ServiceWorkerAction")
);
const ServiceWorkerAdditionalActions = createFactory(
require("./debugtarget/ServiceWorkerAdditionalActions")
require("devtools/client/aboutdebugging/src/components/debugtarget/ServiceWorkerAdditionalActions")
);
const ServiceWorkersWarning = createFactory(
require("devtools/client/aboutdebugging/src/components/ServiceWorkersWarning")
);
const ProcessDetail = createFactory(
require("devtools/client/aboutdebugging/src/components/debugtarget/ProcessDetail")
);
const TabDetail = createFactory(
require("devtools/client/aboutdebugging/src/components/debugtarget/TabDetail")
);
const ServiceWorkersWarning = createFactory(require("./ServiceWorkersWarning"));
const ProcessDetail = createFactory(require("./debugtarget/ProcessDetail"));
const TabDetail = createFactory(require("./debugtarget/TabDetail"));
const TemporaryExtensionAdditionalActions = createFactory(
require("./debugtarget/TemporaryExtensionAdditionalActions")
require("devtools/client/aboutdebugging/src/components/debugtarget/TemporaryExtensionAdditionalActions")
);
const TemporaryExtensionDetail = createFactory(
require("./debugtarget/TemporaryExtensionDetail")
require("devtools/client/aboutdebugging/src/components/debugtarget/TemporaryExtensionDetail")
);
const TemporaryExtensionInstallSection = createFactory(
require("./debugtarget/TemporaryExtensionInstallSection")
require("devtools/client/aboutdebugging/src/components/debugtarget/TemporaryExtensionInstallSection")
);
const WorkerDetail = createFactory(
require("devtools/client/aboutdebugging/src/components/debugtarget/WorkerDetail")
);
const WorkerDetail = createFactory(require("./debugtarget/WorkerDetail"));
const Actions = require("../actions/index");
const Actions = require("devtools/client/aboutdebugging/src/actions/index");
const {
DEBUG_TARGETS,
DEBUG_TARGET_PANE,
PAGE_TYPES,
} = require("../constants");
const Types = require("../types/index");
} = require("devtools/client/aboutdebugging/src/constants");
const Types = require("devtools/client/aboutdebugging/src/types/index");
const {
getCurrentRuntimeDetails,
} = require("../modules/runtimes-state-helper");
} = require("devtools/client/aboutdebugging/src/modules/runtimes-state-helper");
const {
isSupportedDebugTargetPane,
} = require("../modules/debug-target-support");
} = require("devtools/client/aboutdebugging/src/modules/debug-target-support");
class RuntimePage extends PureComponent {
static get propTypes() {

Просмотреть файл

@ -13,9 +13,13 @@ const dom = require("devtools/client/shared/vendor/react-dom-factories");
const FluentReact = require("devtools/client/shared/vendor/fluent-react");
const Localized = createFactory(FluentReact.Localized);
const Message = createFactory(require("./shared/Message"));
const Message = createFactory(
require("devtools/client/aboutdebugging/src/components/shared/Message")
);
const { MESSAGE_LEVEL } = require("../constants");
const {
MESSAGE_LEVEL,
} = require("devtools/client/aboutdebugging/src/constants");
const DOC_URL =
"https://developer.mozilla.org/docs/Tools/about:debugging#Service_workers_not_compatible";

Просмотреть файл

@ -14,9 +14,9 @@ const PropTypes = require("devtools/client/shared/vendor/react-prop-types");
const FluentReact = require("devtools/client/shared/vendor/fluent-react");
const Localized = createFactory(FluentReact.Localized);
const { USB_STATES } = require("../../constants");
const { USB_STATES } = require("devtools/client/aboutdebugging/src/constants");
const Actions = require("../../actions/index");
const Actions = require("devtools/client/aboutdebugging/src/actions/index");
loader.lazyRequireGetter(
this,
@ -28,13 +28,24 @@ loader.lazyRequireGetter(
const Link = createFactory(
require("devtools/client/shared/vendor/react-router-dom").Link
);
const ConnectSection = createFactory(require("./ConnectSection"));
const ConnectSteps = createFactory(require("./ConnectSteps"));
const NetworkLocationsForm = createFactory(require("./NetworkLocationsForm"));
const NetworkLocationsList = createFactory(require("./NetworkLocationsList"));
const ConnectSection = createFactory(
require("devtools/client/aboutdebugging/src/components/connect/ConnectSection")
);
const ConnectSteps = createFactory(
require("devtools/client/aboutdebugging/src/components/connect/ConnectSteps")
);
const NetworkLocationsForm = createFactory(
require("devtools/client/aboutdebugging/src/components/connect/NetworkLocationsForm")
);
const NetworkLocationsList = createFactory(
require("devtools/client/aboutdebugging/src/components/connect/NetworkLocationsList")
);
const { PAGE_TYPES, RUNTIMES } = require("../../constants");
const Types = require("../../types/index");
const {
PAGE_TYPES,
RUNTIMES,
} = require("devtools/client/aboutdebugging/src/constants");
const Types = require("devtools/client/aboutdebugging/src/types/index");
const USB_ICON_SRC =
"chrome://devtools/skin/images/aboutdebugging-usb-icon.svg";

Просмотреть файл

@ -14,11 +14,15 @@ const PropTypes = require("devtools/client/shared/vendor/react-prop-types");
const FluentReact = require("devtools/client/shared/vendor/fluent-react");
const Localized = createFactory(FluentReact.Localized);
const Message = createFactory(require("../shared/Message"));
const Message = createFactory(
require("devtools/client/aboutdebugging/src/components/shared/Message")
);
const Actions = require("../../actions/index");
const { MESSAGE_LEVEL } = require("../../constants");
const Types = require("../../types/index");
const Actions = require("devtools/client/aboutdebugging/src/actions/index");
const {
MESSAGE_LEVEL,
} = require("devtools/client/aboutdebugging/src/constants");
const Types = require("devtools/client/aboutdebugging/src/types/index");
class NetworkLocationsForm extends PureComponent {
static get propTypes() {

Просмотреть файл

@ -14,8 +14,8 @@ const PropTypes = require("devtools/client/shared/vendor/react-prop-types");
const FluentReact = require("devtools/client/shared/vendor/fluent-react");
const Localized = createFactory(FluentReact.Localized);
const Actions = require("../../actions/index");
const Types = require("../../types/index");
const Actions = require("devtools/client/aboutdebugging/src/actions/index");
const Types = require("devtools/client/aboutdebugging/src/types/index");
class NetworkLocationsList extends PureComponent {
static get propTypes() {

Просмотреть файл

@ -8,7 +8,7 @@ const { PureComponent } = require("devtools/client/shared/vendor/react");
const dom = require("devtools/client/shared/vendor/react-dom-factories");
const PropTypes = require("devtools/client/shared/vendor/react-prop-types");
const Types = require("../../types/index");
const Types = require("devtools/client/aboutdebugging/src/types/index");
/**
* This component displays debug target.

Просмотреть файл

@ -14,9 +14,11 @@ const PropTypes = require("devtools/client/shared/vendor/react-prop-types");
const FluentReact = require("devtools/client/shared/vendor/fluent-react");
const Localized = createFactory(FluentReact.Localized);
const DebugTargetItem = createFactory(require("./DebugTargetItem"));
const DebugTargetItem = createFactory(
require("devtools/client/aboutdebugging/src/components/debugtarget/DebugTargetItem")
);
const Types = require("../../types/index");
const Types = require("devtools/client/aboutdebugging/src/types/index");
/**
* This component displays list of debug target.

Просмотреть файл

@ -14,10 +14,12 @@ const PropTypes = require("devtools/client/shared/vendor/react-prop-types");
const FluentReact = require("devtools/client/shared/vendor/fluent-react");
const DebugTargetList = createFactory(require("./DebugTargetList"));
const DebugTargetList = createFactory(
require("devtools/client/aboutdebugging/src/components/debugtarget/DebugTargetList")
);
const Actions = require("../../actions/index");
const Types = require("../../types/index");
const Actions = require("devtools/client/aboutdebugging/src/actions/index");
const Types = require("devtools/client/aboutdebugging/src/types/index");
/**
* This component provides list for debug target and name area.

Просмотреть файл

@ -14,12 +14,20 @@ const PropTypes = require("devtools/client/shared/vendor/react-prop-types");
const FluentReact = require("devtools/client/shared/vendor/fluent-react");
const Localized = createFactory(FluentReact.Localized);
const DetailsLog = createFactory(require("../shared/DetailsLog"));
const FieldPair = createFactory(require("./FieldPair"));
const Message = createFactory(require("../shared/Message"));
const DetailsLog = createFactory(
require("devtools/client/aboutdebugging/src/components/shared/DetailsLog")
);
const FieldPair = createFactory(
require("devtools/client/aboutdebugging/src/components/debugtarget/FieldPair")
);
const Message = createFactory(
require("devtools/client/aboutdebugging/src/components/shared/Message")
);
const { MESSAGE_LEVEL } = require("../../constants");
const Types = require("../../types/index");
const {
MESSAGE_LEVEL,
} = require("devtools/client/aboutdebugging/src/constants");
const Types = require("devtools/client/aboutdebugging/src/types/index");
/**
* This component displays detail information for extension.

Просмотреть файл

@ -14,8 +14,8 @@ const PropTypes = require("devtools/client/shared/vendor/react-prop-types");
const FluentReact = require("devtools/client/shared/vendor/fluent-react");
const Localized = createFactory(FluentReact.Localized);
const Actions = require("../../actions/index");
const Types = require("../../types/index");
const Actions = require("devtools/client/aboutdebugging/src/actions/index");
const Types = require("devtools/client/aboutdebugging/src/types/index");
/**
* This component provides inspect button.

Просмотреть файл

@ -6,7 +6,7 @@
const { PureComponent } = require("devtools/client/shared/vendor/react");
const dom = require("devtools/client/shared/vendor/react-dom-factories");
const Types = require("../../types/index");
const Types = require("devtools/client/aboutdebugging/src/types/index");
/**
* This component displays detail information for a process.

Просмотреть файл

@ -17,12 +17,16 @@ const Localized = createFactory(FluentReact.Localized);
const {
getCurrentRuntimeDetails,
} = require("../../modules/runtimes-state-helper");
} = require("devtools/client/aboutdebugging/src/modules/runtimes-state-helper");
const InspectAction = createFactory(require("./InspectAction"));
const InspectAction = createFactory(
require("devtools/client/aboutdebugging/src/components/debugtarget/InspectAction")
);
const Types = require("../../types/index");
const { SERVICE_WORKER_STATUSES } = require("../../constants");
const Types = require("devtools/client/aboutdebugging/src/types/index");
const {
SERVICE_WORKER_STATUSES,
} = require("devtools/client/aboutdebugging/src/constants");
/**
* This component displays buttons for service worker.

Просмотреть файл

@ -17,11 +17,13 @@ const Localized = createFactory(FluentReact.Localized);
const {
getCurrentRuntimeDetails,
} = require("../../modules/runtimes-state-helper");
} = require("devtools/client/aboutdebugging/src/modules/runtimes-state-helper");
const Actions = require("../../actions/index");
const Types = require("../../types/index");
const { SERVICE_WORKER_STATUSES } = require("../../constants");
const Actions = require("devtools/client/aboutdebugging/src/actions/index");
const Types = require("devtools/client/aboutdebugging/src/types/index");
const {
SERVICE_WORKER_STATUSES,
} = require("devtools/client/aboutdebugging/src/constants");
/**
* The main purpose of this component is to expose a meaningful prop

Просмотреть файл

@ -6,7 +6,7 @@
const { PureComponent } = require("devtools/client/shared/vendor/react");
const dom = require("devtools/client/shared/vendor/react-dom-factories");
const Types = require("../../types/index");
const Types = require("devtools/client/aboutdebugging/src/types/index");
/**
* This component displays detail information for tab.

Просмотреть файл

@ -14,12 +14,18 @@ const PropTypes = require("devtools/client/shared/vendor/react-prop-types");
const FluentReact = require("devtools/client/shared/vendor/fluent-react");
const Localized = createFactory(FluentReact.Localized);
const Actions = require("../../actions/index");
const Types = require("../../types/index");
const Actions = require("devtools/client/aboutdebugging/src/actions/index");
const Types = require("devtools/client/aboutdebugging/src/types/index");
const DetailsLog = createFactory(require("../shared/DetailsLog"));
const Message = createFactory(require("../shared/Message"));
const { MESSAGE_LEVEL } = require("../../constants");
const DetailsLog = createFactory(
require("devtools/client/aboutdebugging/src/components/shared/DetailsLog")
);
const Message = createFactory(
require("devtools/client/aboutdebugging/src/components/shared/Message")
);
const {
MESSAGE_LEVEL,
} = require("devtools/client/aboutdebugging/src/constants");
/**
* This component provides components that reload/remove temporary extension.

Просмотреть файл

@ -14,10 +14,14 @@ const PropTypes = require("devtools/client/shared/vendor/react-prop-types");
const FluentReact = require("devtools/client/shared/vendor/fluent-react");
const Localized = createFactory(FluentReact.Localized);
const ExtensionDetail = createFactory(require("./ExtensionDetail"));
const FieldPair = createFactory(require("./FieldPair"));
const ExtensionDetail = createFactory(
require("devtools/client/aboutdebugging/src/components/debugtarget/ExtensionDetail")
);
const FieldPair = createFactory(
require("devtools/client/aboutdebugging/src/components/debugtarget/FieldPair")
);
const Types = require("../../types/index");
const Types = require("devtools/client/aboutdebugging/src/types/index");
const TEMP_ID_DOC_URL =
"https://developer.mozilla.org/Add-ons/WebExtensions/WebExtensions_and_the_Add-on_ID";

Просмотреть файл

@ -14,13 +14,19 @@ const PropTypes = require("devtools/client/shared/vendor/react-prop-types");
const FluentReact = require("devtools/client/shared/vendor/fluent-react");
const Localized = createFactory(FluentReact.Localized);
const DetailsLog = createFactory(require("../shared/DetailsLog"));
const Message = createFactory(require("../shared/Message"));
const DetailsLog = createFactory(
require("devtools/client/aboutdebugging/src/components/shared/DetailsLog")
);
const Message = createFactory(
require("devtools/client/aboutdebugging/src/components/shared/Message")
);
const TemporaryExtensionInstaller = createFactory(
require("./TemporaryExtensionInstaller")
require("devtools/client/aboutdebugging/src/components/debugtarget/TemporaryExtensionInstaller")
);
const { MESSAGE_LEVEL } = require("../../constants");
const {
MESSAGE_LEVEL,
} = require("devtools/client/aboutdebugging/src/constants");
/**
* This component provides an installer and error message area for temporary extension.

Просмотреть файл

@ -14,7 +14,7 @@ const PropTypes = require("devtools/client/shared/vendor/react-prop-types");
const FluentReact = require("devtools/client/shared/vendor/fluent-react");
const Localized = createFactory(FluentReact.Localized);
const Actions = require("../../actions/index");
const Actions = require("devtools/client/aboutdebugging/src/actions/index");
/**
* This component provides an installer for temporary extension.

Просмотреть файл

@ -14,11 +14,15 @@ const PropTypes = require("devtools/client/shared/vendor/react-prop-types");
const FluentReact = require("devtools/client/shared/vendor/fluent-react");
const Localized = createFactory(FluentReact.Localized);
const { SERVICE_WORKER_FETCH_STATES } = require("../../constants");
const {
SERVICE_WORKER_FETCH_STATES,
} = require("devtools/client/aboutdebugging/src/constants");
const FieldPair = createFactory(require("./FieldPair"));
const FieldPair = createFactory(
require("devtools/client/aboutdebugging/src/components/debugtarget/FieldPair")
);
const Types = require("../../types/index");
const Types = require("devtools/client/aboutdebugging/src/types/index");
/**
* This component displays detail information for worker.

Просмотреть файл

@ -14,7 +14,9 @@ const PropTypes = require("devtools/client/shared/vendor/react-prop-types");
const FluentReact = require("devtools/client/shared/vendor/fluent-react");
const Localized = createFactory(FluentReact.Localized);
const { MESSAGE_LEVEL } = require("../../constants");
const {
MESSAGE_LEVEL,
} = require("devtools/client/aboutdebugging/src/constants");
/**
* This component is designed to wrap a warning / error log message

Просмотреть файл

@ -8,7 +8,9 @@ const { PureComponent } = require("devtools/client/shared/vendor/react");
const dom = require("devtools/client/shared/vendor/react-dom-factories");
const PropTypes = require("devtools/client/shared/vendor/react-prop-types");
const { ICON_LABEL_LEVEL } = require("../../constants");
const {
ICON_LABEL_LEVEL,
} = require("devtools/client/aboutdebugging/src/constants");
const ICONS = {
[ICON_LABEL_LEVEL.INFO]: "chrome://global/skin/icons/info.svg",

Просмотреть файл

@ -14,7 +14,9 @@ const PropTypes = require("devtools/client/shared/vendor/react-prop-types");
const FluentReact = require("devtools/client/shared/vendor/fluent-react");
const Localized = createFactory(FluentReact.Localized);
const { MESSAGE_LEVEL } = require("../../constants");
const {
MESSAGE_LEVEL,
} = require("devtools/client/aboutdebugging/src/constants");
const ICONS = {
[MESSAGE_LEVEL.ERROR]:

Просмотреть файл

@ -14,7 +14,7 @@ const FluentReact = require("devtools/client/shared/vendor/fluent-react");
const Localized = createFactory(FluentReact.Localized);
const PropTypes = require("devtools/client/shared/vendor/react-prop-types");
const Actions = require("../../actions/index");
const Actions = require("devtools/client/aboutdebugging/src/actions/index");
class RefreshDevicesButton extends PureComponent {
static get propTypes() {

Просмотреть файл

@ -14,8 +14,12 @@ const PropTypes = require("devtools/client/shared/vendor/react-prop-types");
const FluentReact = require("devtools/client/shared/vendor/fluent-react");
const Localized = createFactory(FluentReact.Localized);
const { ICON_LABEL_LEVEL, PAGE_TYPES, RUNTIMES } = require("../../constants");
const Types = require("../../types/index");
const {
ICON_LABEL_LEVEL,
PAGE_TYPES,
RUNTIMES,
} = require("devtools/client/aboutdebugging/src/constants");
const Types = require("devtools/client/aboutdebugging/src/types/index");
loader.lazyRequireGetter(
this,
"ADB_ADDON_STATES",
@ -23,11 +27,21 @@ loader.lazyRequireGetter(
true
);
const IconLabel = createFactory(require("../shared/IconLabel"));
const SidebarItem = createFactory(require("./SidebarItem"));
const SidebarFixedItem = createFactory(require("./SidebarFixedItem"));
const SidebarRuntimeItem = createFactory(require("./SidebarRuntimeItem"));
const RefreshDevicesButton = createFactory(require("./RefreshDevicesButton"));
const IconLabel = createFactory(
require("devtools/client/aboutdebugging/src/components/shared/IconLabel")
);
const SidebarItem = createFactory(
require("devtools/client/aboutdebugging/src/components/sidebar/SidebarItem")
);
const SidebarFixedItem = createFactory(
require("devtools/client/aboutdebugging/src/components/sidebar/SidebarFixedItem")
);
const SidebarRuntimeItem = createFactory(
require("devtools/client/aboutdebugging/src/components/sidebar/SidebarRuntimeItem")
);
const RefreshDevicesButton = createFactory(
require("devtools/client/aboutdebugging/src/components/sidebar/RefreshDevicesButton")
);
const FIREFOX_ICON =
"chrome://devtools/skin/images/aboutdebugging-firefox-logo.svg";
const CONNECT_ICON = "chrome://devtools/skin/images/settings.svg";

Просмотреть файл

@ -11,7 +11,9 @@ const {
const dom = require("devtools/client/shared/vendor/react-dom-factories");
const PropTypes = require("devtools/client/shared/vendor/react-prop-types");
const SidebarItem = createFactory(require("./SidebarItem"));
const SidebarItem = createFactory(
require("devtools/client/aboutdebugging/src/components/sidebar/SidebarItem")
);
/**
* This component displays a fixed item in the Sidebar component.

Просмотреть файл

@ -14,10 +14,16 @@ const PropTypes = require("devtools/client/shared/vendor/react-prop-types");
const FluentReact = require("devtools/client/shared/vendor/fluent-react");
const Localized = createFactory(FluentReact.Localized);
const Message = createFactory(require("../shared/Message"));
const SidebarItem = createFactory(require("./SidebarItem"));
const Actions = require("../../actions/index");
const { MESSAGE_LEVEL } = require("../../constants");
const Message = createFactory(
require("devtools/client/aboutdebugging/src/components/shared/Message")
);
const SidebarItem = createFactory(
require("devtools/client/aboutdebugging/src/components/sidebar/SidebarItem")
);
const Actions = require("devtools/client/aboutdebugging/src/actions/index");
const {
MESSAGE_LEVEL,
} = require("devtools/client/aboutdebugging/src/constants");
/**
* This component displays a runtime item of the Sidebar component.

Просмотреть файл

@ -15,23 +15,31 @@ const {
waitUntilService,
} = require("devtools/client/shared/redux/middleware/wait-service.js");
const rootReducer = require("./reducers/index");
const { DebugTargetsState } = require("./reducers/debug-targets-state");
const { RuntimesState } = require("./reducers/runtimes-state");
const { UiState } = require("./reducers/ui-state");
const debugTargetListenerMiddleware = require("./middleware/debug-target-listener");
const errorLoggingMiddleware = require("./middleware/error-logging");
const eventRecordingMiddleware = require("./middleware/event-recording");
const extensionComponentDataMiddleware = require("./middleware/extension-component-data");
const processComponentDataMiddleware = require("./middleware/process-component-data");
const tabComponentDataMiddleware = require("./middleware/tab-component-data");
const workerComponentDataMiddleware = require("./middleware/worker-component-data");
const rootReducer = require("devtools/client/aboutdebugging/src/reducers/index");
const {
DebugTargetsState,
} = require("devtools/client/aboutdebugging/src/reducers/debug-targets-state");
const {
RuntimesState,
} = require("devtools/client/aboutdebugging/src/reducers/runtimes-state");
const {
UiState,
} = require("devtools/client/aboutdebugging/src/reducers/ui-state");
const debugTargetListenerMiddleware = require("devtools/client/aboutdebugging/src/middleware/debug-target-listener");
const errorLoggingMiddleware = require("devtools/client/aboutdebugging/src/middleware/error-logging");
const eventRecordingMiddleware = require("devtools/client/aboutdebugging/src/middleware/event-recording");
const extensionComponentDataMiddleware = require("devtools/client/aboutdebugging/src/middleware/extension-component-data");
const processComponentDataMiddleware = require("devtools/client/aboutdebugging/src/middleware/process-component-data");
const tabComponentDataMiddleware = require("devtools/client/aboutdebugging/src/middleware/tab-component-data");
const workerComponentDataMiddleware = require("devtools/client/aboutdebugging/src/middleware/worker-component-data");
const {
getDebugTargetCollapsibilities,
} = require("./modules/debug-target-collapsibilities");
const { getNetworkLocations } = require("./modules/network-locations");
} = require("devtools/client/aboutdebugging/src/modules/debug-target-collapsibilities");
const {
getNetworkLocations,
} = require("devtools/client/aboutdebugging/src/modules/network-locations");
const { PREFERENCES } = require("./constants");
const { PREFERENCES } = require("devtools/client/aboutdebugging/src/constants");
function configureStore() {
const initialState = {

Просмотреть файл

@ -7,8 +7,8 @@
const {
UNWATCH_RUNTIME_START,
WATCH_RUNTIME_SUCCESS,
} = require("../constants");
const Actions = require("../actions/index");
} = require("devtools/client/aboutdebugging/src/constants");
const Actions = require("devtools/client/aboutdebugging/src/actions/index");
function debugTargetListenerMiddleware(store) {
const onExtensionsUpdated = () => {

Просмотреть файл

@ -24,13 +24,13 @@ const {
SHOW_PROFILER_DIALOG,
TELEMETRY_RECORD,
UPDATE_CONNECTION_PROMPT_SETTING_SUCCESS,
} = require("../constants");
} = require("devtools/client/aboutdebugging/src/constants");
const {
findRuntimeById,
getAllRuntimes,
getCurrentRuntime,
} = require("../modules/runtimes-state-helper");
} = require("devtools/client/aboutdebugging/src/modules/runtimes-state-helper");
function recordEvent(method, details) {
// Add the session id to the event details.

Просмотреть файл

@ -4,12 +4,15 @@
"use strict";
const { DEBUG_TARGETS, REQUEST_EXTENSIONS_SUCCESS } = require("../constants");
const {
DEBUG_TARGETS,
REQUEST_EXTENSIONS_SUCCESS,
} = require("devtools/client/aboutdebugging/src/constants");
const {
getExtensionUuid,
parseFileUri,
} = require("../modules/extensions-helper");
} = require("devtools/client/aboutdebugging/src/modules/extensions-helper");
/**
* This middleware converts extensions object that get from DebuggerClient.listAddons()

Просмотреть файл

@ -5,13 +5,13 @@
"use strict";
const Services = require("Services");
const { l10n } = require("../modules/l10n");
const { l10n } = require("devtools/client/aboutdebugging/src/modules/l10n");
const {
DEBUG_TARGETS,
PREFERENCES,
REQUEST_PROCESSES_SUCCESS,
} = require("../constants");
} = require("devtools/client/aboutdebugging/src/constants");
/**
* This middleware converts tabs object that get from DebuggerClient.listProcesses() to

Просмотреть файл

@ -4,7 +4,10 @@
"use strict";
const { DEBUG_TARGETS, REQUEST_TABS_SUCCESS } = require("../constants");
const {
DEBUG_TARGETS,
REQUEST_TABS_SUCCESS,
} = require("devtools/client/aboutdebugging/src/constants");
/**
* This middleware converts tabs object that get from DebuggerClient.listTabs() to data

Просмотреть файл

@ -9,7 +9,7 @@ const {
REQUEST_WORKERS_SUCCESS,
SERVICE_WORKER_FETCH_STATES,
SERVICE_WORKER_STATUSES,
} = require("../constants");
} = require("devtools/client/aboutdebugging/src/constants");
/**
* This middleware converts workers object that get from DebuggerClient.listAllWorkers()

Просмотреть файл

@ -8,7 +8,9 @@ const {
checkVersionCompatibility,
} = require("devtools/client/shared/remote-debugging/version-checker");
const { RUNTIME_PREFERENCE } = require("../constants");
const {
RUNTIME_PREFERENCE,
} = require("devtools/client/aboutdebugging/src/constants");
const { WorkersListener } = require("devtools/client/shared/workers-listener");
const PREF_TYPES = {

Просмотреть файл

@ -7,7 +7,9 @@
const Services = require("Services");
const PREF_PREFIX = "devtools.aboutdebugging.collapsibilities.";
const { DEBUG_TARGET_PANE } = require("../constants");
const {
DEBUG_TARGET_PANE,
} = require("devtools/client/aboutdebugging/src/constants");
/**
* This module provides a collection of helper methods to read and update the debug

Просмотреть файл

@ -4,7 +4,11 @@
"use strict";
const { DEBUG_TARGET_PANE, PREFERENCES, RUNTIMES } = require("../constants");
const {
DEBUG_TARGET_PANE,
PREFERENCES,
RUNTIMES,
} = require("devtools/client/aboutdebugging/src/constants");
const Services = require("Services");

Просмотреть файл

@ -18,7 +18,7 @@ loader.lazyRequireGetter(
true
);
const { PREFERENCES } = require("../constants");
const { PREFERENCES } = require("devtools/client/aboutdebugging/src/constants");
/**
* Uninstall the addon with the provided id.

Просмотреть файл

@ -7,12 +7,14 @@
const { prepareTCPConnection } = require("devtools/shared/adb/commands/index");
const { DebuggerClient } = require("devtools/shared/client/debugger-client");
const { DebuggerServer } = require("devtools/server/debugger-server");
const { ClientWrapper } = require("./client-wrapper");
const {
ClientWrapper,
} = require("devtools/client/aboutdebugging/src/modules/client-wrapper");
const {
remoteClientManager,
} = require("devtools/client/shared/remote-debugging/remote-client-manager");
const { RUNTIMES } = require("../constants");
const { RUNTIMES } = require("devtools/client/aboutdebugging/src/constants");
async function createLocalClient() {
DebuggerServer.init();

Просмотреть файл

@ -12,7 +12,7 @@ const {
TEMPORARY_EXTENSION_RELOAD_FAILURE,
TEMPORARY_EXTENSION_RELOAD_START,
UNWATCH_RUNTIME_SUCCESS,
} = require("../constants");
} = require("devtools/client/aboutdebugging/src/constants");
function DebugTargetsState() {
return {

Просмотреть файл

@ -5,9 +5,15 @@
"use strict";
const { combineReducers } = require("devtools/client/shared/vendor/redux");
const { debugTargetsReducer } = require("./debug-targets-state");
const { runtimesReducer } = require("./runtimes-state");
const { uiReducer } = require("./ui-state");
const {
debugTargetsReducer,
} = require("devtools/client/aboutdebugging/src/reducers/debug-targets-state");
const {
runtimesReducer,
} = require("devtools/client/aboutdebugging/src/reducers/runtimes-state");
const {
uiReducer,
} = require("devtools/client/aboutdebugging/src/reducers/ui-state");
module.exports = combineReducers({
debugTargets: debugTargetsReducer,

Просмотреть файл

@ -17,9 +17,11 @@ const {
REMOTE_RUNTIMES_UPDATED,
SELECTED_RUNTIME_ID_UPDATED,
THIS_FIREFOX_RUNTIME_CREATED,
} = require("../constants");
} = require("devtools/client/aboutdebugging/src/constants");
const { findRuntimeById } = require("../modules/runtimes-state-helper");
const {
findRuntimeById,
} = require("devtools/client/aboutdebugging/src/modules/runtimes-state-helper");
const {
remoteClientManager,

Просмотреть файл

@ -16,7 +16,7 @@ const {
TEMPORARY_EXTENSION_INSTALL_SUCCESS,
USB_RUNTIMES_SCAN_START,
USB_RUNTIMES_SCAN_SUCCESS,
} = require("../constants");
} = require("devtools/client/aboutdebugging/src/constants");
function UiState(
locations = [],

Просмотреть файл

@ -5,7 +5,9 @@
"use strict";
const PropTypes = require("devtools/client/shared/vendor/react-prop-types");
const { DEBUG_TARGETS } = require("../constants");
const {
DEBUG_TARGETS,
} = require("devtools/client/aboutdebugging/src/constants");
const extensionTargetDetails = {
// actor ID for this extention.

Просмотреть файл

@ -4,9 +4,9 @@
"use strict";
const debugTargetTypes = require("./debug-target");
const runtimeTypes = require("./runtime");
const uiTypes = require("./ui");
const debugTargetTypes = require("devtools/client/aboutdebugging/src/types/debug-target");
const runtimeTypes = require("devtools/client/aboutdebugging/src/types/runtime");
const uiTypes = require("devtools/client/aboutdebugging/src/types/ui");
module.exports = Object.assign(
{},

Просмотреть файл

@ -5,7 +5,9 @@
"use strict";
const PropTypes = require("devtools/client/shared/vendor/react-prop-types");
const { ClientWrapper } = require("../modules/client-wrapper");
const {
ClientWrapper,
} = require("devtools/client/aboutdebugging/src/modules/client-wrapper");
const {
COMPATIBILITY_STATUS,
} = require("devtools/client/shared/remote-debugging/version-checker");

Просмотреть файл

@ -6,7 +6,10 @@
const PropTypes = require("devtools/client/shared/vendor/react-prop-types");
const { ADB_ADDON_STATES } = require("devtools/shared/adb/adb-addon");
const { DEBUG_TARGET_PANE, PAGE_TYPES } = require("../constants");
const {
DEBUG_TARGET_PANE,
PAGE_TYPES,
} = require("devtools/client/aboutdebugging/src/constants");
function makeCollapsibilitiesType(isRequired) {
return (props, propName, componentName, _, propFullName) => {

Просмотреть файл

@ -16,18 +16,23 @@ const ReactDOM = require("devtools/client/shared/vendor/react-dom");
const { Provider } = require("devtools/client/shared/vendor/react-redux");
// Accessibility Panel
const MainFrame = createFactory(require("./components/MainFrame"));
const MainFrame = createFactory(
require("devtools/client/accessibility/components/MainFrame")
);
// Store
const createStore = require("devtools/client/shared/redux/create-store");
// Reducers
const { reducers } = require("./reducers/index");
const { reducers } = require("devtools/client/accessibility/reducers/index");
const store = createStore(reducers);
// Actions
const { reset } = require("./actions/ui");
const { select, highlight } = require("./actions/accessibles");
const { reset } = require("devtools/client/accessibility/actions/ui");
const {
select,
highlight,
} = require("devtools/client/accessibility/actions/accessibles");
/**
* This object represents view of the Accessibility panel and is responsible

Просмотреть файл

@ -8,7 +8,7 @@ const {
SELECT,
HIGHLIGHT,
UNHIGHLIGHT,
} = require("../constants");
} = require("devtools/client/accessibility/constants");
/**
* Fetch child accessibles for a given accessible object.

Просмотреть файл

@ -13,7 +13,7 @@ const {
AUDITING,
FILTER_TOGGLE,
FILTERS,
} = require("../constants");
} = require("devtools/client/accessibility/constants");
exports.filterToggle = filter => dispatch =>
dispatch({ filter, type: FILTER_TOGGLE });

Просмотреть файл

@ -3,7 +3,7 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
"use strict";
const { UPDATE_DETAILS } = require("../constants");
const { UPDATE_DETAILS } = require("devtools/client/accessibility/constants");
/**
* Update details with the given accessible object.

Просмотреть файл

@ -13,7 +13,7 @@ const {
UPDATE_CAN_BE_ENABLED,
UPDATE_PREF,
PREF_KEYS,
} = require("../constants");
} = require("devtools/client/accessibility/constants");
/**
* Reset accessibility panel UI.

Просмотреть файл

@ -9,7 +9,7 @@ const {
Component,
} = require("devtools/client/shared/vendor/react");
const PropTypes = require("devtools/client/shared/vendor/react-prop-types");
const { L10N } = require("../utils/l10n");
const { L10N } = require("devtools/client/accessibility/utils/l10n");
const { hr } = require("devtools/client/shared/vendor/react-dom-factories");
@ -29,13 +29,15 @@ loader.lazyGetter(this, "MenuList", function() {
);
});
const { A11Y_LEARN_MORE_LINK } = require("../constants");
const {
A11Y_LEARN_MORE_LINK,
} = require("devtools/client/accessibility/constants");
const { openDocLink } = require("devtools/client/shared/link");
const { updatePref } = require("../actions/ui");
const { updatePref } = require("devtools/client/accessibility/actions/ui");
const { connect } = require("devtools/client/shared/vendor/react-redux");
const { PREFS } = require("../constants");
const { PREFS } = require("devtools/client/accessibility/constants");
class AccessibilityPrefs extends Component {
static get propTypes() {

Просмотреть файл

@ -15,8 +15,12 @@ const { findDOMNode } = require("devtools/client/shared/vendor/react-dom");
const { connect } = require("devtools/client/shared/vendor/react-redux");
const TreeRow = require("devtools/client/shared/components/tree/TreeRow");
const AuditFilter = createFactory(require("./AuditFilter"));
const AuditController = createFactory(require("./AuditController"));
const AuditFilter = createFactory(
require("devtools/client/accessibility/components/AuditFilter")
);
const AuditController = createFactory(
require("devtools/client/accessibility/components/AuditController")
);
// Utils
const {
@ -28,15 +32,19 @@ const {
PREFS,
VALUE_FLASHING_DURATION,
VALUE_HIGHLIGHT_DURATION,
} = require("../constants");
} = require("devtools/client/accessibility/constants");
const nodeConstants = require("devtools/shared/dom-node-constants");
// Actions
const { updateDetails } = require("../actions/details");
const { unhighlight } = require("../actions/accessibles");
const {
updateDetails,
} = require("devtools/client/accessibility/actions/details");
const {
unhighlight,
} = require("devtools/client/accessibility/actions/accessibles");
const { L10N } = require("../utils/l10n");
const { L10N } = require("devtools/client/accessibility/utils/l10n");
loader.lazyRequireGetter(this, "Menu", "devtools/client/framework/menu");
loader.lazyRequireGetter(

Просмотреть файл

@ -11,8 +11,12 @@ const {
const PropTypes = require("devtools/client/shared/vendor/react-prop-types");
const { span } = require("devtools/client/shared/vendor/react-dom-factories");
const Badges = createFactory(require("./Badges"));
const AuditController = createFactory(require("./AuditController"));
const Badges = createFactory(
require("devtools/client/accessibility/components/Badges")
);
const AuditController = createFactory(
require("devtools/client/accessibility/components/AuditController")
);
const { REPS } = require("devtools/client/shared/components/reps/reps");
const { Grip } = REPS;

Просмотреть файл

@ -19,13 +19,19 @@ const TreeView = createFactory(
// Reps
const { MODE } = require("devtools/client/shared/components/reps/reps");
const { fetchChildren } = require("../actions/accessibles");
const {
fetchChildren,
} = require("devtools/client/accessibility/actions/accessibles");
const { L10N } = require("../utils/l10n");
const { isFiltered } = require("../utils/audit");
const AccessibilityRow = createFactory(require("./AccessibilityRow"));
const AccessibilityRowValue = createFactory(require("./AccessibilityRowValue"));
const { Provider } = require("../provider");
const { L10N } = require("devtools/client/accessibility/utils/l10n");
const { isFiltered } = require("devtools/client/accessibility/utils/audit");
const AccessibilityRow = createFactory(
require("devtools/client/accessibility/components/AccessibilityRow")
);
const AccessibilityRowValue = createFactory(
require("devtools/client/accessibility/components/AccessibilityRowValue")
);
const { Provider } = require("devtools/client/accessibility/provider");
const { scrollIntoView } = require("devtools/client/shared/scroll");

Просмотреть файл

@ -16,7 +16,7 @@ const {
span,
} = require("devtools/client/shared/vendor/react-dom-factories");
const PropTypes = require("devtools/client/shared/vendor/react-prop-types");
const { L10N } = require("../utils/l10n");
const { L10N } = require("devtools/client/accessibility/utils/l10n");
loader.lazyGetter(this, "MenuButton", function() {
return createFactory(
@ -34,10 +34,10 @@ loader.lazyGetter(this, "MenuList", function() {
);
});
const actions = require("../actions/audit");
const actions = require("devtools/client/accessibility/actions/audit");
const { connect } = require("devtools/client/shared/vendor/react-redux");
const { FILTERS } = require("../constants");
const { FILTERS } = require("devtools/client/accessibility/constants");
const TELEMETRY_AUDIT_ACTIVATED = "devtools.accessibility.audit_activated";
const FILTER_LABELS = {

Просмотреть файл

@ -23,14 +23,19 @@ const {
ORDERED_PROPS,
ACCESSIBLE_EVENTS,
VALUE_FLASHING_DURATION,
} = require("../constants");
const { L10N } = require("../utils/l10n");
} = require("devtools/client/accessibility/constants");
const { L10N } = require("devtools/client/accessibility/utils/l10n");
const {
flashElementOn,
flashElementOff,
} = require("devtools/client/inspector/markup/utils");
const { updateDetails } = require("../actions/details");
const { select, unhighlight } = require("../actions/accessibles");
const {
updateDetails,
} = require("devtools/client/accessibility/actions/details");
const {
select,
unhighlight,
} = require("devtools/client/accessibility/actions/accessibles");
const Tree = createFactory(
require("devtools/client/shared/components/VirtualizedTree")

Просмотреть файл

@ -8,8 +8,8 @@ const React = require("devtools/client/shared/vendor/react");
const PropTypes = require("devtools/client/shared/vendor/react-prop-types");
const { connect } = require("devtools/client/shared/vendor/react-redux");
const { isFiltered } = require("../utils/audit");
const { FILTERS } = require("../constants");
const { isFiltered } = require("devtools/client/accessibility/utils/audit");
const { FILTERS } = require("devtools/client/accessibility/constants");
const {
accessibility: {
AUDIT_TYPE,

Просмотреть файл

@ -10,7 +10,7 @@ const PropTypes = require("devtools/client/shared/vendor/react-prop-types");
const { connect } = require("devtools/client/shared/vendor/react-redux");
const { PluralForm } = require("devtools/shared/plural-form");
const { L10N } = require("../utils/l10n");
const { L10N } = require("devtools/client/accessibility/utils/l10n");
/**
* Helper functional component to render an accessible text progressbar.

Просмотреть файл

@ -11,22 +11,28 @@ const {
const PropTypes = require("devtools/client/shared/vendor/react-prop-types");
const { span } = require("devtools/client/shared/vendor/react-dom-factories");
const { L10N } = require("../utils/l10n");
const { L10N } = require("devtools/client/accessibility/utils/l10n");
const {
accessibility: { AUDIT_TYPE },
} = require("devtools/shared/constants");
loader.lazyGetter(this, "ContrastBadge", () =>
createFactory(require("./ContrastBadge"))
createFactory(
require("devtools/client/accessibility/components/ContrastBadge")
)
);
loader.lazyGetter(this, "KeyboardBadge", () =>
createFactory(require("./KeyboardBadge"))
createFactory(
require("devtools/client/accessibility/components/KeyboardBadge")
)
);
loader.lazyGetter(this, "TextLabelBadge", () =>
createFactory(require("./TextLabelBadge"))
createFactory(
require("devtools/client/accessibility/components/TextLabelBadge")
)
);
function getComponentForAuditType(type) {

Просмотреть файл

@ -16,11 +16,16 @@ const List = createFactory(
require("devtools/client/shared/components/List").List
);
const ColorContrastCheck = createFactory(
require("./ColorContrastAccessibility").ColorContrastCheck
require("devtools/client/accessibility/components/ColorContrastAccessibility")
.ColorContrastCheck
);
const TextLabelCheck = createFactory(require("./TextLabelCheck"));
const KeyboardCheck = createFactory(require("./KeyboardCheck"));
const { L10N } = require("../utils/l10n");
const TextLabelCheck = createFactory(
require("devtools/client/accessibility/components/TextLabelCheck")
);
const KeyboardCheck = createFactory(
require("devtools/client/accessibility/components/KeyboardCheck")
);
const { L10N } = require("devtools/client/accessibility/utils/l10n");
const {
accessibility: { AUDIT_TYPE },

Просмотреть файл

@ -14,10 +14,14 @@ const {
span,
h3,
} = require("devtools/client/shared/vendor/react-dom-factories");
const LearnMoreLink = createFactory(require("./LearnMoreLink"));
const LearnMoreLink = createFactory(
require("devtools/client/accessibility/components/LearnMoreLink")
);
const { A11Y_CONTRAST_LEARN_MORE_LINK } = require("../constants");
const { L10N } = require("../utils/l10n");
const {
A11Y_CONTRAST_LEARN_MORE_LINK,
} = require("devtools/client/accessibility/constants");
const { L10N } = require("devtools/client/accessibility/utils/l10n");
/**
* Component that renders a colour contrast value along with a swatch preview of what the

Просмотреть файл

@ -10,13 +10,15 @@ const {
} = require("devtools/client/shared/vendor/react");
const PropTypes = require("devtools/client/shared/vendor/react-prop-types");
const { L10N } = require("../utils/l10n");
const { L10N } = require("devtools/client/accessibility/utils/l10n");
const {
accessibility: { SCORES },
} = require("devtools/shared/constants");
loader.lazyGetter(this, "Badge", () => createFactory(require("./Badge")));
loader.lazyGetter(this, "Badge", () =>
createFactory(require("devtools/client/accessibility/components/Badge"))
);
/**
* Component for rendering a badge for contrast accessibliity check

Просмотреть файл

@ -18,17 +18,24 @@ const {
const PropTypes = require("devtools/client/shared/vendor/react-prop-types");
const { connect } = require("devtools/client/shared/vendor/react-redux");
const Button = createFactory(require("./Button").Button);
const LearnMoreLink = createFactory(require("./LearnMoreLink"));
const { enable, updateCanBeEnabled } = require("../actions/ui");
const Button = createFactory(
require("devtools/client/accessibility/components/Button").Button
);
const LearnMoreLink = createFactory(
require("devtools/client/accessibility/components/LearnMoreLink")
);
const {
enable,
updateCanBeEnabled,
} = require("devtools/client/accessibility/actions/ui");
// Localization
const { L10N } = require("../utils/l10n");
const { L10N } = require("devtools/client/accessibility/utils/l10n");
const {
A11Y_LEARN_MORE_LINK,
A11Y_SERVICE_ENABLED_COUNT,
} = require("../constants");
} = require("devtools/client/accessibility/constants");
/**
* Landing UI for the accessibility panel when Accessibility features are

Просмотреть файл

@ -11,7 +11,7 @@ const {
} = require("devtools/client/shared/vendor/react");
const PropTypes = require("devtools/client/shared/vendor/react-prop-types");
const { L10N } = require("../utils/l10n");
const { L10N } = require("devtools/client/accessibility/utils/l10n");
const {
accessibility: {
@ -19,7 +19,9 @@ const {
},
} = require("devtools/shared/constants");
loader.lazyGetter(this, "Badge", () => createFactory(require("./Badge")));
loader.lazyGetter(this, "Badge", () =>
createFactory(require("devtools/client/accessibility/components/Badge"))
);
/**
* Component for rendering a badge for keyboard accessibliity check failures

Просмотреть файл

@ -15,7 +15,9 @@ const Check = createFactory(
require("devtools/client/accessibility/components/Check")
);
const { A11Y_KEYBOARD_LINKS } = require("../constants");
const {
A11Y_KEYBOARD_LINKS,
} = require("devtools/client/accessibility/constants");
const {
accessibility: {
AUDIT_TYPE: { KEYBOARD },

Просмотреть файл

@ -14,21 +14,34 @@ const {
} = require("devtools/client/shared/vendor/react-dom-factories");
const PropTypes = require("devtools/client/shared/vendor/react-prop-types");
const { connect } = require("devtools/client/shared/vendor/react-redux");
const { reset } = require("../actions/ui");
const { reset } = require("devtools/client/accessibility/actions/ui");
// Localization
const FluentReact = require("devtools/client/shared/vendor/fluent-react");
const LocalizationProvider = createFactory(FluentReact.LocalizationProvider);
// Constants
const { SIDEBAR_WIDTH, PORTRAIT_MODE_WIDTH } = require("../constants");
const {
SIDEBAR_WIDTH,
PORTRAIT_MODE_WIDTH,
} = require("devtools/client/accessibility/constants");
// Accessibility Panel
const AccessibilityTree = createFactory(require("./AccessibilityTree"));
const AuditProgressOverlay = createFactory(require("./AuditProgressOverlay"));
const Description = createFactory(require("./Description").Description);
const RightSidebar = createFactory(require("./RightSidebar"));
const Toolbar = createFactory(require("./Toolbar"));
const AccessibilityTree = createFactory(
require("devtools/client/accessibility/components/AccessibilityTree")
);
const AuditProgressOverlay = createFactory(
require("devtools/client/accessibility/components/AuditProgressOverlay")
);
const Description = createFactory(
require("devtools/client/accessibility/components/Description").Description
);
const RightSidebar = createFactory(
require("devtools/client/accessibility/components/RightSidebar")
);
const Toolbar = createFactory(
require("devtools/client/accessibility/components/Toolbar")
);
const SplitBox = createFactory(
require("devtools/client/shared/components/splitter/SplitBox")
);

Просмотреть файл

@ -7,12 +7,16 @@
const { createFactory } = require("devtools/client/shared/vendor/react");
const { div } = require("devtools/client/shared/vendor/react-dom-factories");
const { L10N } = require("../utils/l10n");
const Accessible = createFactory(require("./Accessible"));
const { L10N } = require("devtools/client/accessibility/utils/l10n");
const Accessible = createFactory(
require("devtools/client/accessibility/components/Accessible")
);
const Accordion = createFactory(
require("devtools/client/shared/components/Accordion")
);
const Checks = createFactory(require("./Checks"));
const Checks = createFactory(
require("devtools/client/accessibility/components/Checks")
);
// Component that is responsible for rendering accessible panel's sidebar.
function RightSidebar({ toolbox }) {

Просмотреть файл

@ -16,7 +16,7 @@ const {
div,
} = require("devtools/client/shared/vendor/react-dom-factories");
const PropTypes = require("devtools/client/shared/vendor/react-prop-types");
const { L10N } = require("../utils/l10n");
const { L10N } = require("devtools/client/accessibility/utils/l10n");
const { connect } = require("devtools/client/shared/vendor/react-redux");
const MenuButton = createFactory(
require("devtools/client/shared/components/menu/MenuButton")
@ -28,7 +28,7 @@ const {
const {
accessibility: { SIMULATION_TYPE },
} = require("devtools/shared/constants");
const actions = require("../actions/simulation");
const actions = require("devtools/client/accessibility/actions/simulation");
loader.lazyGetter(this, "MenuItem", function() {
return createFactory(

Просмотреть файл

@ -11,7 +11,7 @@ const {
} = require("devtools/client/shared/vendor/react");
const PropTypes = require("devtools/client/shared/vendor/react-prop-types");
const { L10N } = require("../utils/l10n");
const { L10N } = require("devtools/client/accessibility/utils/l10n");
const {
accessibility: {
@ -19,7 +19,9 @@ const {
},
} = require("devtools/shared/constants");
loader.lazyGetter(this, "Badge", () => createFactory(require("./Badge")));
loader.lazyGetter(this, "Badge", () =>
createFactory(require("devtools/client/accessibility/components/Badge"))
);
/**
* Component for rendering a badge for text alternative accessibliity check

Просмотреть файл

@ -15,7 +15,9 @@ const Check = createFactory(
require("devtools/client/accessibility/components/Check")
);
const { A11Y_TEXT_LABEL_LINKS } = require("../constants");
const {
A11Y_TEXT_LABEL_LINKS,
} = require("devtools/client/accessibility/constants");
const {
accessibility: {
AUDIT_TYPE: { TEXT_LABEL },

Просмотреть файл

@ -13,18 +13,27 @@ const {
span,
} = require("devtools/client/shared/vendor/react-dom-factories");
const PropTypes = require("devtools/client/shared/vendor/react-prop-types");
const { L10N } = require("../utils/l10n");
const Button = createFactory(require("./Button").Button);
const AccessibilityTreeFilter = createFactory(
require("./AccessibilityTreeFilter")
const { L10N } = require("devtools/client/accessibility/utils/l10n");
const Button = createFactory(
require("devtools/client/accessibility/components/Button").Button
);
const AccessibilityTreeFilter = createFactory(
require("devtools/client/accessibility/components/AccessibilityTreeFilter")
);
const AccessibilityPrefs = createFactory(
require("devtools/client/accessibility/components/AccessibilityPrefs")
);
const AccessibilityPrefs = createFactory(require("./AccessibilityPrefs"));
loader.lazyGetter(this, "SimulationMenuButton", function() {
return createFactory(require("./SimulationMenuButton"));
return createFactory(
require("devtools/client/accessibility/components/SimulationMenuButton")
);
});
const { connect } = require("devtools/client/shared/vendor/react-redux");
const { disable, updateCanBeDisabled } = require("../actions/ui");
const {
disable,
updateCanBeDisabled,
} = require("devtools/client/accessibility/actions/ui");
class Toolbar extends Component {
static get propTypes() {

Просмотреть файл

@ -15,4 +15,4 @@ const require = BrowserLoader({
}).require;
// Load accessibility panel content
require("./accessibility-view.js");
require("devtools/client/accessibility/accessibility-view.js");

Просмотреть файл

@ -10,8 +10,10 @@ const EventEmitter = require("devtools/shared/event-emitter");
const Telemetry = require("devtools/client/shared/telemetry");
const { Picker } = require("./picker");
const { A11Y_SERVICE_DURATION } = require("./constants");
const { Picker } = require("devtools/client/accessibility/picker");
const {
A11Y_SERVICE_DURATION,
} = require("devtools/client/accessibility/constants");
// The panel's window global is an EventEmitter firing the following events:
const EVENTS = {

Просмотреть файл

@ -4,7 +4,7 @@
"use strict";
const { L10N } = require("./utils/l10n");
const { L10N } = require("devtools/client/accessibility/utils/l10n");
class Picker {
constructor(panel) {

Просмотреть файл

@ -3,7 +3,9 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
"use strict";
const { fetchChildren } = require("./actions/accessibles");
const {
fetchChildren,
} = require("devtools/client/accessibility/actions/accessibles");
/**
* Data provider that is responsible for mapping of an accessibles cache to the

Просмотреть файл

@ -9,7 +9,7 @@ const {
HIGHLIGHT,
RESET,
SELECT,
} = require("../constants");
} = require("devtools/client/accessibility/constants");
/**
* Initial state definition

Просмотреть файл

@ -15,7 +15,7 @@ const {
FILTERS,
RESET,
SELECT,
} = require("../constants");
} = require("devtools/client/accessibility/constants");
/**
* Initial state definition

Просмотреть файл

@ -3,7 +3,10 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
"use strict";
const { UPDATE_DETAILS, RESET } = require("../constants");
const {
UPDATE_DETAILS,
RESET,
} = require("devtools/client/accessibility/constants");
/**
* Initial state definition

Просмотреть файл

@ -3,11 +3,15 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
"use strict";
const { accessibles } = require("./accessibles");
const { audit } = require("./audit");
const { details } = require("./details");
const { simulation } = require("./simulation");
const { ui } = require("./ui");
const {
accessibles,
} = require("devtools/client/accessibility/reducers/accessibles");
const { audit } = require("devtools/client/accessibility/reducers/audit");
const { details } = require("devtools/client/accessibility/reducers/details");
const {
simulation,
} = require("devtools/client/accessibility/reducers/simulation");
const { ui } = require("devtools/client/accessibility/reducers/ui");
exports.reducers = {
accessibles,

Просмотреть файл

@ -20,7 +20,7 @@ const {
UPDATE_DETAILS,
PREF_KEYS,
PREFS,
} = require("../constants");
} = require("devtools/client/accessibility/constants");
const TreeView = require("devtools/client/shared/components/tree/TreeView");

Просмотреть файл

@ -10,7 +10,7 @@ module.exports = {
verbose: true,
moduleNameMapper: {
// Custom name mappers for modules that require m-c specific API.
"^../utils/l10n": `${__dirname}/fixtures/l10n`,
"^devtools/client/accessibility/utils/l10n": `${__dirname}/fixtures/l10n`,
"^devtools/client/shared/link": `${__dirname}/fixtures/stub`,
"^devtools/shared/flags": `${__dirname}/fixtures/stub`,
"^devtools/shared/event-emitter": `${__dirname}/node_modules/devtools-modules/src/utils/event-emitter`,

Просмотреть файл

@ -21,16 +21,22 @@ const Provider = createFactory(
require("devtools/client/shared/vendor/react-redux").Provider
);
const { bindActionCreators } = require("devtools/client/shared/vendor/redux");
const { l10n } = require("./src/modules/l10n");
const { l10n } = require("devtools/client/application/src/modules/l10n");
const { configureStore } = require("./src/create-store");
const actions = require("./src/actions/index");
const {
configureStore,
} = require("devtools/client/application/src/create-store");
const actions = require("devtools/client/application/src/actions/index");
const { WorkersListener } = require("devtools/client/shared/workers-listener");
const { services } = require("./src/modules/application-services");
const {
services,
} = require("devtools/client/application/src/modules/application-services");
const App = createFactory(require("./src/components/App"));
const App = createFactory(
require("devtools/client/application/src/components/App")
);
/**
* Global Application object in this panel. This object is expected by panel.js and is

Просмотреть файл

@ -4,9 +4,9 @@
"use strict";
const workers = require("./workers");
const page = require("./page");
const ui = require("./ui");
const manifest = require("./manifest");
const workers = require("devtools/client/application/src/actions/workers");
const page = require("devtools/client/application/src/actions/page");
const ui = require("devtools/client/application/src/actions/ui");
const manifest = require("devtools/client/application/src/actions/manifest");
Object.assign(exports, workers, page, ui, manifest);

Просмотреть файл

@ -4,18 +4,18 @@
"use strict";
const { l10n } = require("../modules/l10n");
const { l10n } = require("devtools/client/application/src/modules/l10n");
const {
services,
ManifestDevToolsError,
} = require("../modules/application-services");
} = require("devtools/client/application/src/modules/application-services");
const {
FETCH_MANIFEST_FAILURE,
FETCH_MANIFEST_START,
FETCH_MANIFEST_SUCCESS,
RESET_MANIFEST,
} = require("../constants");
} = require("devtools/client/application/src/constants");
function fetchManifest() {
return async (dispatch, getState) => {

Просмотреть файл

@ -4,7 +4,7 @@
"use strict";
const { UPDATE_DOMAIN } = require("../constants");
const { UPDATE_DOMAIN } = require("devtools/client/application/src/constants");
function updateDomain(url) {
return {

Просмотреть файл

@ -4,7 +4,9 @@
"use strict";
const { UPDATE_SELECTED_PAGE } = require("../constants");
const {
UPDATE_SELECTED_PAGE,
} = require("devtools/client/application/src/constants");
function updateSelectedPage(selectedPage) {
return {

Некоторые файлы не были показаны из-за слишком большого количества измененных файлов Показать больше