chrome-devtools-frontend 1.0.945677 → 1.0.947377
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintrc.js +1 -0
- package/config/gni/all_devtools_files.gni +0 -14
- package/config/gni/devtools_grd_files.gni +4 -42
- package/front_end/.eslintrc.js +5 -1
- package/front_end/core/host/InspectorFrontendHost.ts +0 -3
- package/front_end/core/host/InspectorFrontendHostAPI.ts +0 -1
- package/front_end/core/host/UserMetrics.ts +0 -22
- package/front_end/core/i18n/locales/en-US.json +33 -27
- package/front_end/core/i18n/locales/en-XL.json +33 -27
- package/front_end/core/root/Runtime.ts +0 -5
- package/front_end/core/sdk/AccessibilityModel.ts +0 -2
- package/front_end/core/sdk/CSSProperty.ts +16 -11
- package/front_end/core/sdk/CSSRule.ts +0 -2
- package/front_end/core/sdk/Cookie.ts +1 -5
- package/front_end/core/sdk/EmulationModel.ts +0 -2
- package/front_end/core/sdk/HeapProfilerModel.ts +0 -2
- package/front_end/core/sdk/NetworkManager.ts +0 -3
- package/front_end/core/sdk/Resource.ts +0 -3
- package/front_end/core/sdk/ResourceTreeModel.ts +0 -3
- package/front_end/core/sdk/ServiceWorkerManager.ts +0 -2
- package/front_end/core/sdk/sdk-meta.ts +20 -8
- package/front_end/devtools_compatibility.js +1 -8
- package/front_end/entrypoints/devtools_app/devtools_app.js +3 -0
- package/front_end/entrypoints/devtools_app/devtools_app.json +1 -3
- package/front_end/entrypoints/formatter_worker/CSSFormatter.ts +1 -3
- package/front_end/entrypoints/formatter_worker/FormatterActions.ts +0 -2
- package/front_end/entrypoints/formatter_worker/FormatterWorker.ts +0 -120
- package/front_end/entrypoints/formatter_worker/formatter_worker-entrypoint.ts +1 -11
- package/front_end/entrypoints/formatter_worker/formatter_worker.ts +5 -0
- package/front_end/entrypoints/inspector/{inspector.js → inspector.ts} +0 -3
- package/front_end/entrypoints/js_app/js_app.js +3 -0
- package/front_end/entrypoints/js_app/js_app.json +1 -2
- package/front_end/entrypoints/main/MainImpl.ts +0 -6
- package/front_end/entrypoints/ndb_app/ndb_app.js +3 -0
- package/front_end/entrypoints/ndb_app/ndb_app.json +1 -2
- package/front_end/entrypoints/{node_main → node_app}/NodeConnectionsPanel.ts +1 -1
- package/front_end/entrypoints/{node_main → node_app}/NodeMain.ts +2 -4
- package/front_end/entrypoints/{node_main → node_app}/nodeConnectionsPanel.css +0 -0
- package/front_end/entrypoints/node_app/node_app.ts +81 -0
- package/front_end/entrypoints/shell/shell.js +18 -1
- package/front_end/entrypoints/worker_app/{worker_app.js → worker_app.ts} +8 -2
- package/front_end/generated/InspectorBackendCommands.js +5 -1
- package/front_end/generated/protocol.d.ts +12 -0
- package/front_end/legacy_test_runner/sources_test_runner/sources_test_runner.js +0 -1
- package/front_end/models/bindings/CompilerScriptMapping.ts +0 -1
- package/front_end/models/bindings/DebuggerLanguagePlugins.ts +4 -11
- package/front_end/models/bindings/DebuggerWorkspaceBinding.ts +1 -1
- package/front_end/models/bindings/ResourceMapping.ts +1 -1
- package/front_end/models/bindings/SASSSourceMapping.ts +0 -1
- package/front_end/models/emulation/DeviceModeModel.ts +0 -2
- package/front_end/models/formatter/FormatterWorkerPool.ts +0 -18
- package/front_end/models/issues_manager/CorsIssue.ts +8 -0
- package/front_end/models/text_utils/CodeMirrorUtils.ts +6 -51
- package/front_end/models/text_utils/TextUtils.ts +1 -2
- package/front_end/models/text_utils/text_utils-legacy.ts +0 -5
- package/front_end/panels/animation/AnimationTimeline.ts +0 -2
- package/front_end/panels/animation/AnimationUI.ts +0 -2
- package/front_end/panels/application/ApplicationPanelSidebar.ts +2 -4
- package/front_end/panels/application/BackForwardCacheStrings.ts +1 -0
- package/front_end/panels/css_overview/CSSOverviewModel.ts +0 -2
- package/front_end/panels/css_overview/CSSOverviewPanel.ts +0 -7
- package/front_end/panels/css_overview/CSSOverviewProcessingView.ts +0 -2
- package/front_end/panels/elements/ColorSwatchPopoverIcon.ts +0 -11
- package/front_end/panels/elements/StylesSidebarPane.ts +0 -1
- package/front_end/panels/elements/elementsTreeOutline.css +0 -13
- package/front_end/panels/emulation/DeviceModeToolbar.ts +0 -16
- package/front_end/panels/issues/CorsIssueDetailsView.ts +6 -2
- package/front_end/panels/lighthouse/lighthouse-meta.ts +0 -3
- package/front_end/panels/network/NetworkConfigView.ts +10 -0
- package/front_end/panels/network/NetworkItemView.ts +3 -0
- package/front_end/panels/network/networkConfigView.css +5 -0
- package/front_end/panels/profiler/profilesPanel.css +1 -1
- package/front_end/panels/search/SearchView.ts +24 -4
- package/front_end/panels/settings/emulation/components/UserAgentClientHintsForm.ts +6 -4
- package/front_end/panels/settings/emulation/components/userAgentClientHintsForm.css +0 -12
- package/front_end/panels/sources/CSSPlugin.ts +3 -0
- package/front_end/panels/sources/CoveragePlugin.ts +2 -0
- package/front_end/panels/sources/DebuggerPlugin.ts +35 -7
- package/front_end/panels/sources/JavaScriptCompilerPlugin.ts +3 -0
- package/front_end/panels/sources/ProfilePlugin.ts +3 -0
- package/front_end/panels/sources/UISourceCodeFrame.ts +11 -2
- package/front_end/panels/sources/sourcesView.css +0 -130
- package/front_end/panels/timeline/TimelineTreeView.ts +1 -0
- package/front_end/third_party/codemirror/codemirror-tsconfig.json +1 -25
- package/front_end/third_party/codemirror.next/chunk/codemirror.js +1 -1
- package/front_end/third_party/codemirror.next/chunk/cpp.js +1 -2
- package/front_end/third_party/codemirror.next/chunk/java.js +1 -2
- package/front_end/third_party/codemirror.next/chunk/json.js +1 -2
- package/front_end/third_party/codemirror.next/chunk/markdown.js +1 -2
- package/front_end/third_party/codemirror.next/chunk/php.js +1 -2
- package/front_end/third_party/codemirror.next/chunk/python.js +1 -2
- package/front_end/third_party/codemirror.next/chunk/wast.js +1 -2
- package/front_end/third_party/codemirror.next/chunk/xml.js +1 -2
- package/front_end/third_party/codemirror.next/codemirror.next.d.ts +1486 -1423
- package/front_end/third_party/codemirror.next/codemirror.next.js +1 -2
- package/front_end/third_party/codemirror.next/package.json +10 -9
- package/front_end/third_party/lighthouse/lighthouse-dt-bundle.js +168 -164
- package/front_end/third_party/lighthouse/locales/ar-XB.json +0 -3
- package/front_end/third_party/lighthouse/locales/ar.json +0 -3
- package/front_end/third_party/lighthouse/locales/bg.json +17 -20
- package/front_end/third_party/lighthouse/locales/ca.json +0 -3
- package/front_end/third_party/lighthouse/locales/cs.json +0 -3
- package/front_end/third_party/lighthouse/locales/da.json +16 -19
- package/front_end/third_party/lighthouse/locales/de.json +0 -3
- package/front_end/third_party/lighthouse/locales/el.json +0 -3
- package/front_end/third_party/lighthouse/locales/en-GB.json +19 -22
- package/front_end/third_party/lighthouse/locales/en-US.json +33 -3
- package/front_end/third_party/lighthouse/locales/en-XA.json +0 -3
- package/front_end/third_party/lighthouse/locales/en-XL.json +33 -3
- package/front_end/third_party/lighthouse/locales/es-419.json +17 -20
- package/front_end/third_party/lighthouse/locales/es.json +0 -3
- package/front_end/third_party/lighthouse/locales/fi.json +16 -19
- package/front_end/third_party/lighthouse/locales/fil.json +33 -36
- package/front_end/third_party/lighthouse/locales/fr.json +16 -19
- package/front_end/third_party/lighthouse/locales/he.json +16 -19
- package/front_end/third_party/lighthouse/locales/hi.json +0 -3
- package/front_end/third_party/lighthouse/locales/hr.json +16 -19
- package/front_end/third_party/lighthouse/locales/hu.json +16 -19
- package/front_end/third_party/lighthouse/locales/id.json +16 -19
- package/front_end/third_party/lighthouse/locales/it.json +37 -40
- package/front_end/third_party/lighthouse/locales/ja.json +16 -19
- package/front_end/third_party/lighthouse/locales/ko.json +16 -19
- package/front_end/third_party/lighthouse/locales/lt.json +17 -20
- package/front_end/third_party/lighthouse/locales/lv.json +0 -3
- package/front_end/third_party/lighthouse/locales/nl.json +16 -19
- package/front_end/third_party/lighthouse/locales/no.json +17 -20
- package/front_end/third_party/lighthouse/locales/pl.json +16 -19
- package/front_end/third_party/lighthouse/locales/pt-PT.json +37 -40
- package/front_end/third_party/lighthouse/locales/pt.json +16 -19
- package/front_end/third_party/lighthouse/locales/ro.json +0 -3
- package/front_end/third_party/lighthouse/locales/ru.json +16 -19
- package/front_end/third_party/lighthouse/locales/sk.json +0 -3
- package/front_end/third_party/lighthouse/locales/sl.json +0 -3
- package/front_end/third_party/lighthouse/locales/sr-Latn.json +16 -19
- package/front_end/third_party/lighthouse/locales/sr.json +16 -19
- package/front_end/third_party/lighthouse/locales/sv.json +17 -20
- package/front_end/third_party/lighthouse/locales/ta.json +0 -3
- package/front_end/third_party/lighthouse/locales/te.json +0 -3
- package/front_end/third_party/lighthouse/locales/th.json +0 -3
- package/front_end/third_party/lighthouse/locales/tr.json +0 -3
- package/front_end/third_party/lighthouse/locales/uk.json +17 -20
- package/front_end/third_party/lighthouse/locales/vi.json +0 -3
- package/front_end/third_party/lighthouse/locales/zh-HK.json +0 -3
- package/front_end/third_party/lighthouse/locales/zh-TW.json +0 -3
- package/front_end/third_party/lighthouse/locales/zh.json +0 -3
- package/front_end/third_party/lighthouse/report/bundle.d.ts +63 -61
- package/front_end/third_party/lighthouse/report/bundle.js +36 -7
- package/front_end/third_party/lighthouse/report-assets/report-generator.js +205 -192
- package/front_end/ui/components/linear_memory_inspector/LinearMemoryValueInterpreter.ts +0 -8
- package/front_end/ui/components/text_editor/config.ts +8 -7
- package/front_end/ui/components/text_editor/javascript.ts +28 -10
- package/front_end/ui/components/text_editor/theme.ts +1 -0
- package/front_end/ui/legacy/InspectorView.ts +10 -0
- package/front_end/ui/legacy/components/object_ui/ObjectPropertiesSection.ts +2 -3
- package/front_end/ui/legacy/components/object_ui/objectPropertiesSection.css +0 -1
- package/front_end/ui/legacy/components/object_ui/object_ui-legacy.ts +0 -8
- package/front_end/ui/legacy/components/object_ui/object_ui.ts +0 -4
- package/front_end/ui/legacy/components/source_frame/SourceFrame.ts +40 -29
- package/front_end/ui/legacy/inspectorSyntaxHighlight.css +0 -211
- package/front_end/ui/legacy/legacy-legacy.ts +0 -6
- package/front_end/ui/legacy/legacy.ts +0 -2
- package/front_end/ui/legacy/tabbedPane.css +1 -1
- package/front_end/ui/legacy/themeColors.css +1 -1
- package/package.json +1 -1
- package/scripts/check_gn.js +1 -1
- package/scripts/eslint_rules/lib/l10n_filename_matches.js +4 -4
- package/scripts/eslint_rules/tests/l10n_filename_matches_test.js +4 -0
- package/scripts/hosted_mode/server.js +17 -2
- package/front_end/entrypoints/inspector/inspector.json +0 -4
- package/front_end/entrypoints/node_app/node_app-meta.ts +0 -43
- package/front_end/entrypoints/node_app/node_app.js +0 -13
- package/front_end/entrypoints/node_app/node_app.json +0 -4
- package/front_end/entrypoints/node_main/node_main-meta.ts +0 -48
- package/front_end/entrypoints/node_main/node_main.ts +0 -11
- package/front_end/entrypoints/shell/shell-meta-files.ts +0 -22
- package/front_end/entrypoints/shell/shell.json +0 -5
- package/front_end/entrypoints/worker_app/worker_app.json +0 -4
- package/front_end/panels/lighthouse/module.json +0 -6
- package/front_end/third_party/lighthouse/report-assets/report.d.ts +0 -1
- package/front_end/third_party/lighthouse/report-assets/report.js +0 -233
- package/front_end/third_party/lighthouse/report-assets/standalone-template.html +0 -38
- package/front_end/ui/legacy/TextEditor.ts +0 -82
- package/front_end/ui/legacy/components/object_ui/JavaScriptAutocomplete.ts +0 -836
- package/front_end/ui/legacy/components/text_editor/CodeMirrorTextEditor.ts +0 -1676
- package/front_end/ui/legacy/components/text_editor/TextEditorAutocompleteController.ts +0 -586
- package/front_end/ui/legacy/components/text_editor/autocompleteTooltip.css +0 -20
- package/front_end/ui/legacy/components/text_editor/cm_modes.ts +0 -23
- package/front_end/ui/legacy/components/text_editor/cmdevtools.css +0 -995
- package/front_end/ui/legacy/components/text_editor/module.json +0 -7
- package/front_end/ui/legacy/components/text_editor/text_editor-legacy.ts +0 -33
- package/front_end/ui/legacy/components/text_editor/text_editor.ts +0 -13
|
@@ -5,9 +5,6 @@
|
|
|
5
5
|
'use strict';
|
|
6
6
|
|
|
7
7
|
const path = require('path');
|
|
8
|
-
const {devtoolsRootPath} = require('../../devtools_paths.js');
|
|
9
|
-
|
|
10
|
-
const DEFAULT_FRONT_END_DIRECTORY = path.join(devtoolsRootPath(), 'front_end');
|
|
11
8
|
|
|
12
9
|
function isModuleScope(context) {
|
|
13
10
|
return context.getScope().type === 'module';
|
|
@@ -60,10 +57,13 @@ module.exports = {
|
|
|
60
57
|
return;
|
|
61
58
|
}
|
|
62
59
|
|
|
63
|
-
let frontEndDirectory =
|
|
60
|
+
let frontEndDirectory = '';
|
|
64
61
|
if (context.options && context.options[0]?.rootFrontendDirectory) {
|
|
65
62
|
frontEndDirectory = context.options[0].rootFrontendDirectory;
|
|
66
63
|
}
|
|
64
|
+
if (!frontEndDirectory) {
|
|
65
|
+
throw new Error('rootFrontendDirectory must be provided.');
|
|
66
|
+
}
|
|
67
67
|
const currentSourceFile = path.resolve(context.getFilename());
|
|
68
68
|
const currentFileRelativeToFrontEnd = path.relative(frontEndDirectory, currentSourceFile);
|
|
69
69
|
|
|
@@ -17,14 +17,17 @@ ruleTester.run('l10n_filename_matches', rule, {
|
|
|
17
17
|
{
|
|
18
18
|
code: 'const str_ = i18n.i18n.registerUIStrings(\'components/test.ts\', UIStrings);',
|
|
19
19
|
filename: 'front_end/components/test.ts',
|
|
20
|
+
options: [{rootFrontendDirectory: path.join(__dirname, '..', '..', '..', 'front_end')}]
|
|
20
21
|
},
|
|
21
22
|
{
|
|
22
23
|
code: 'const str_ = i18n.i18n.registerUIStrings(\'components/ModuleUIStrings.js\', UIStrings);',
|
|
23
24
|
filename: 'front_end/components/test.ts',
|
|
25
|
+
options: [{rootFrontendDirectory: path.join(__dirname, '..', '..', '..', 'front_end')}]
|
|
24
26
|
},
|
|
25
27
|
{
|
|
26
28
|
code: 'const str_ = i18n.i18n.registerUIStrings(\'components/ModuleUIStrings.ts\', UIStrings);',
|
|
27
29
|
filename: 'front_end/components/test.ts',
|
|
30
|
+
options: [{rootFrontendDirectory: path.join(__dirname, '..', '..', '..', 'front_end')}]
|
|
28
31
|
},
|
|
29
32
|
{
|
|
30
33
|
code: 'const str_ = i18n.i18n.registerUIStrings(\'ModuleUIStrings.ts\', UIStrings);',
|
|
@@ -41,6 +44,7 @@ ruleTester.run('l10n_filename_matches', rule, {
|
|
|
41
44
|
{
|
|
42
45
|
code: 'const str_ = i18n.i18n.registerUIStrings(\'components/foo.ts\', UIStrings);',
|
|
43
46
|
filename: 'front_end/components/test.ts',
|
|
47
|
+
options: [{rootFrontendDirectory: path.join(__dirname, '..', '..', '..', 'front_end')}],
|
|
44
48
|
errors: [{
|
|
45
49
|
message:
|
|
46
50
|
'First argument to \'registerUIStrings\' call must be \'components/test.ts\' or the ModuleUIStrings.(js|ts)'
|
|
@@ -66,10 +66,19 @@ wss.on('connection', ws => {
|
|
|
66
66
|
});
|
|
67
67
|
});
|
|
68
68
|
|
|
69
|
+
let delayResolve = null;
|
|
70
|
+
|
|
69
71
|
server.listen(requestedPort);
|
|
70
72
|
|
|
71
73
|
async function requestHandler(request, response) {
|
|
72
|
-
const
|
|
74
|
+
const url = parseURL(request.url);
|
|
75
|
+
const filePath = unescape(url.pathname);
|
|
76
|
+
|
|
77
|
+
if (url.search === '?send_delayed' && delayResolve) {
|
|
78
|
+
delayResolve();
|
|
79
|
+
delayResolve = null;
|
|
80
|
+
}
|
|
81
|
+
|
|
73
82
|
if (filePath === '/') {
|
|
74
83
|
const landingURL = `http://localhost:${remoteDebuggingPort}#custom=true`;
|
|
75
84
|
sendResponse(200, `<html>Please go to <a href="${landingURL}">${landingURL}</a></html>`, 'utf8');
|
|
@@ -147,7 +156,13 @@ async function requestHandler(request, response) {
|
|
|
147
156
|
return null;
|
|
148
157
|
}
|
|
149
158
|
|
|
150
|
-
function sendResponse(statusCode, data, encoding, headers) {
|
|
159
|
+
async function sendResponse(statusCode, data, encoding, headers) {
|
|
160
|
+
if (url.search === '?delay') {
|
|
161
|
+
delayPromise = new Promise(resolve => {
|
|
162
|
+
delayResolve = resolve;
|
|
163
|
+
});
|
|
164
|
+
await delayPromise;
|
|
165
|
+
}
|
|
151
166
|
if (!headers) {
|
|
152
167
|
headers = new Map();
|
|
153
168
|
}
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
// Copyright 2020 The Chromium Authors. All rights reserved.
|
|
2
|
-
// Use of this source code is governed by a BSD-style license that can be
|
|
3
|
-
// found in the LICENSE file.
|
|
4
|
-
|
|
5
|
-
import * as i18n from '../../core/i18n/i18n.js';
|
|
6
|
-
import * as UI from '../../ui/legacy/legacy.js';
|
|
7
|
-
import type * as Sources from '../../panels/sources/sources.js';
|
|
8
|
-
|
|
9
|
-
const UIStrings = {
|
|
10
|
-
/**
|
|
11
|
-
*@description Title of the 'Node' tool in the Network Navigator View, which is part of the Sources tool
|
|
12
|
-
*/
|
|
13
|
-
node: 'Node',
|
|
14
|
-
/**
|
|
15
|
-
*@description Command for showing the 'Node' tool in the Network Navigator View, which is part of the Sources tool
|
|
16
|
-
*/
|
|
17
|
-
showNode: 'Node',
|
|
18
|
-
};
|
|
19
|
-
|
|
20
|
-
const str_ = i18n.i18n.registerUIStrings('entrypoints/node_app/node_app-meta.ts', UIStrings);
|
|
21
|
-
const i18nLazyString = i18n.i18n.getLazilyComputedLocalizedString.bind(undefined, str_);
|
|
22
|
-
|
|
23
|
-
let loadedSourcesModule: (typeof Sources|undefined);
|
|
24
|
-
|
|
25
|
-
async function loadHelpModule(): Promise<typeof Sources> {
|
|
26
|
-
if (!loadedSourcesModule) {
|
|
27
|
-
loadedSourcesModule = await import('../../panels/sources/sources.js');
|
|
28
|
-
}
|
|
29
|
-
return loadedSourcesModule;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
UI.ViewManager.registerViewExtension({
|
|
33
|
-
location: UI.ViewManager.ViewLocationValues.NAVIGATOR_VIEW,
|
|
34
|
-
id: 'navigator-network',
|
|
35
|
-
title: i18nLazyString(UIStrings.node),
|
|
36
|
-
commandPrompt: i18nLazyString(UIStrings.showNode),
|
|
37
|
-
order: 2,
|
|
38
|
-
persistence: UI.ViewManager.ViewPersistence.PERMANENT,
|
|
39
|
-
async loadView() {
|
|
40
|
-
const Sources = await loadHelpModule();
|
|
41
|
-
return Sources.SourcesNavigator.NetworkNavigatorView.instance();
|
|
42
|
-
},
|
|
43
|
-
});
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
// Copyright 2018 The Chromium Authors. All rights reserved.
|
|
2
|
-
// Use of this source code is governed by a BSD-style license that can be
|
|
3
|
-
// found in the LICENSE file.
|
|
4
|
-
import '../shell/shell.js';
|
|
5
|
-
import '../../panels/js_profiler/js_profiler-meta.js';
|
|
6
|
-
import '../node_main/node_main-meta.js';
|
|
7
|
-
import './node_app-meta.js';
|
|
8
|
-
import * as Startup from '../startup/startup.js';
|
|
9
|
-
|
|
10
|
-
// Side-effect start the `node_main` module, which implements runnables in
|
|
11
|
-
// the NodeMain class
|
|
12
|
-
await import('../node_main/node_main.js');
|
|
13
|
-
Startup.RuntimeInstantiator.startApplication('node_app');
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
// Copyright 2020 The Chromium Authors. All rights reserved.
|
|
2
|
-
// Use of this source code is governed by a BSD-style license that can be
|
|
3
|
-
// found in the LICENSE file.
|
|
4
|
-
|
|
5
|
-
import * as i18n from '../../core/i18n/i18n.js';
|
|
6
|
-
import * as UI from '../../ui/legacy/legacy.js';
|
|
7
|
-
|
|
8
|
-
import type * as NodeMain from './node_main.js';
|
|
9
|
-
|
|
10
|
-
const UIStrings = {
|
|
11
|
-
/**
|
|
12
|
-
*@description Text that refers to the network connection
|
|
13
|
-
*/
|
|
14
|
-
connection: 'Connection',
|
|
15
|
-
/**
|
|
16
|
-
*@description A tag of Node.js Connection Panel that can be searched in the command menu
|
|
17
|
-
*/
|
|
18
|
-
node: 'node',
|
|
19
|
-
/**
|
|
20
|
-
*@description Command for showing the Connection tool
|
|
21
|
-
*/
|
|
22
|
-
showConnection: 'Show Connection',
|
|
23
|
-
};
|
|
24
|
-
|
|
25
|
-
const str_ = i18n.i18n.registerUIStrings('entrypoints/node_main/node_main-meta.ts', UIStrings);
|
|
26
|
-
const i18nLazyString = i18n.i18n.getLazilyComputedLocalizedString.bind(undefined, str_);
|
|
27
|
-
|
|
28
|
-
let loadedNodeMainModule: (typeof NodeMain|undefined);
|
|
29
|
-
|
|
30
|
-
async function loadNodeMainModule(): Promise<typeof NodeMain> {
|
|
31
|
-
if (!loadedNodeMainModule) {
|
|
32
|
-
loadedNodeMainModule = await import('./node_main.js');
|
|
33
|
-
}
|
|
34
|
-
return loadedNodeMainModule;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
UI.ViewManager.registerViewExtension({
|
|
38
|
-
location: UI.ViewManager.ViewLocationValues.PANEL,
|
|
39
|
-
id: 'node-connection',
|
|
40
|
-
title: i18nLazyString(UIStrings.connection),
|
|
41
|
-
commandPrompt: i18nLazyString(UIStrings.showConnection),
|
|
42
|
-
order: 0,
|
|
43
|
-
async loadView() {
|
|
44
|
-
const NodeMain = await loadNodeMainModule();
|
|
45
|
-
return NodeMain.NodeConnectionsPanel.NodeConnectionsPanel.instance();
|
|
46
|
-
},
|
|
47
|
-
tags: [i18nLazyString(UIStrings.node)],
|
|
48
|
-
});
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
// Copyright 2019 The Chromium Authors. All rights reserved.
|
|
2
|
-
// Use of this source code is governed by a BSD-style license that can be
|
|
3
|
-
// found in the LICENSE file.
|
|
4
|
-
|
|
5
|
-
import * as NodeConnectionsPanel from './NodeConnectionsPanel.js';
|
|
6
|
-
import * as NodeMain from './NodeMain.js';
|
|
7
|
-
|
|
8
|
-
export {
|
|
9
|
-
NodeConnectionsPanel,
|
|
10
|
-
NodeMain,
|
|
11
|
-
};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
// Copyright 2021 The Chromium Authors. All rights reserved.
|
|
2
|
-
// Use of this source code is governed by a BSD-style license that can be
|
|
3
|
-
// found in the LICENSE file.
|
|
4
|
-
|
|
5
|
-
import '../../panels/sources/sources-meta.js';
|
|
6
|
-
import '../../panels/profiler/profiler-meta.js';
|
|
7
|
-
import '../../panels/console/console-meta.js';
|
|
8
|
-
import '../../panels/coverage/coverage-meta.js';
|
|
9
|
-
import '../../panels/changes/changes-meta.js';
|
|
10
|
-
import '../../panels/input/input-meta.js';
|
|
11
|
-
import '../../ui/components/linear_memory_inspector/linear_memory_inspector-meta.js';
|
|
12
|
-
import '../../panels/settings/settings-meta.js';
|
|
13
|
-
import '../../panels/protocol_monitor/protocol_monitor-meta.js';
|
|
14
|
-
import '../../models/persistence/persistence-meta.js';
|
|
15
|
-
import '../../models/logs/logs-meta.js';
|
|
16
|
-
import '../main/main-meta.js';
|
|
17
|
-
import '../../ui/legacy/components/perf_ui/perf_ui-meta.js';
|
|
18
|
-
import '../../ui/legacy/components/quick_open/quick_open-meta.js';
|
|
19
|
-
import '../../core/sdk/sdk-meta.js';
|
|
20
|
-
import '../../ui/legacy/components/source_frame/source_frame-meta.js';
|
|
21
|
-
import '../../panels/console_counters/console_counters-meta.js';
|
|
22
|
-
import '../../ui/legacy/components/object_ui/object_ui-meta.js';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {}
|