chrome-devtools-frontend 1.0.945884 → 1.0.948295
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 +1 -20
- package/config/gni/devtools_grd_files.gni +9 -48
- package/config/gni/devtools_image_files.gni +1 -0
- package/front_end/.eslintrc.js +6 -1
- package/front_end/Images/src/circled_backslash_icon.svg +3 -0
- 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 +1 -23
- package/front_end/core/i18n/locales/en-US.json +41 -41
- package/front_end/core/i18n/locales/en-XL.json +41 -41
- package/front_end/core/platform/platform.ts +0 -2
- package/front_end/core/platform/string-utilities.ts +14 -1
- package/front_end/core/platform/utilities.ts +0 -29
- package/front_end/core/root/Runtime.ts +4 -212
- 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 +0 -25
- 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-legacy.ts +0 -3
- package/front_end/devtools_compatibility.js +1 -8
- package/front_end/entrypoints/devtools_app/{devtools_app-meta-files.ts → devtools_app.ts} +9 -2
- 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/heap_snapshot_worker/HeapSnapshot.ts +2 -1
- package/front_end/entrypoints/inspector/{inspector.js → inspector.ts} +0 -3
- package/front_end/entrypoints/js_app/{JsMain.ts → js_app.ts} +5 -1
- package/front_end/entrypoints/main/MainImpl.ts +0 -7
- package/front_end/entrypoints/ndb_app/{ndb_app.js → ndb_app.ts} +3 -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 +79 -0
- package/front_end/entrypoints/shell/{shell-meta-files.ts → shell.ts} +7 -1
- package/front_end/entrypoints/worker_app/{worker_app.js → worker_app.ts} +6 -2
- package/front_end/generated/InspectorBackendCommands.js +5 -1
- package/front_end/generated/protocol.d.ts +12 -0
- package/front_end/legacy/legacy-defs.d.ts +0 -4
- package/front_end/legacy_test_runner/sources_test_runner/sources_test_runner.js +0 -1
- package/front_end/legacy_test_runner/test_runner/TestRunner.js +35 -59
- 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 +17 -9
- package/front_end/models/issues_manager/descriptions/{corsInsecurePrivateNetworkPreflight.md → corsPreflightAllowPrivateNetworkError.md} +1 -1
- 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/accessibility/AccessibilitySidebarView.ts +3 -1
- 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 +2 -5
- package/front_end/panels/application/BackForwardCacheView.ts +150 -58
- package/front_end/panels/application/ResourcesPanel.ts +0 -42
- package/front_end/panels/application/application-legacy.ts +0 -3
- package/front_end/panels/application/application-meta.ts +0 -13
- package/front_end/panels/application/backForwardCacheView.css +44 -6
- package/front_end/panels/application/components/FrameDetailsView.ts +3 -3
- package/front_end/panels/application/components/OriginTrialTreeView.ts +3 -3
- package/front_end/panels/application/components/StackTrace.ts +1 -1
- package/front_end/panels/coverage/CoverageView.ts +1 -1
- 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/css_overview/components/cssOverviewStartView.css +1 -0
- package/front_end/panels/css_overview/cssOverviewCompletedView.css +1 -1
- package/front_end/panels/developer_resources/DeveloperResourcesView.ts +2 -1
- package/front_end/panels/elements/ColorSwatchPopoverIcon.ts +0 -11
- package/front_end/panels/elements/ElementsPanel.ts +9 -1
- package/front_end/panels/elements/ElementsTreeElement.ts +1 -1
- package/front_end/panels/elements/StylesSidebarPane.ts +0 -1
- package/front_end/panels/elements/components/ElementsBreadcrumbs.ts +1 -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 +18 -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/NetworkWaterfallColumn.ts +2 -0
- package/front_end/panels/network/networkConfigView.css +5 -0
- package/front_end/panels/profiler/CPUProfileFlameChart.ts +3 -1
- package/front_end/panels/profiler/ProfileDataGrid.ts +2 -1
- package/front_end/panels/profiler/profilesPanel.css +1 -1
- package/front_end/panels/search/SearchView.ts +24 -4
- package/front_end/panels/settings/components/SyncSection.ts +2 -2
- package/front_end/panels/settings/emulation/components/UserAgentClientHintsForm.ts +52 -50
- 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 +3 -1
- 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/diff_view/DiffView.ts +4 -4
- package/front_end/ui/components/helpers/component-server-setup.ts +1 -12
- package/front_end/ui/components/helpers/helpers.ts +0 -2
- package/front_end/ui/components/icon_button/IconButton.ts +1 -1
- package/front_end/ui/components/issue_counter/IssueCounter.ts +2 -2
- package/front_end/ui/components/linear_memory_inspector/LinearMemoryViewer.ts +3 -3
- package/front_end/ui/components/markdown_view/MarkdownView.ts +4 -4
- package/front_end/ui/components/panel_feedback/PreviewToggle.ts +98 -0
- package/front_end/ui/components/panel_feedback/panel_feedback.ts +1 -0
- package/front_end/ui/components/panel_feedback/previewToggle.css +24 -0
- package/front_end/ui/components/report_view/ReportView.ts +22 -0
- package/front_end/ui/components/report_view/reportSection.css +20 -0
- package/front_end/ui/components/request_link_icon/RequestLinkIcon.ts +1 -1
- package/front_end/ui/components/settings/SettingCheckbox.ts +2 -2
- package/front_end/ui/components/text_editor/config.ts +11 -9
- package/front_end/ui/components/text_editor/javascript.ts +34 -12
- package/front_end/ui/components/text_editor/theme.ts +1 -0
- package/front_end/ui/components/text_prompt/TextPrompt.ts +2 -2
- package/front_end/ui/legacy/GlassPane.ts +1 -1
- package/front_end/ui/legacy/InspectorView.ts +10 -0
- package/front_end/ui/legacy/SearchableView.ts +2 -1
- package/front_end/ui/legacy/Treeoutline.ts +1 -1
- package/front_end/ui/legacy/Widget.ts +1 -1
- package/front_end/ui/legacy/XWidget.ts +0 -5
- package/front_end/ui/legacy/components/inline_editor/CSSVarSwatch.ts +2 -2
- package/front_end/ui/legacy/components/inline_editor/ColorSwatch.ts +1 -1
- 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/front_end/ui/legacy/utils/append-style.ts +2 -13
- package/front_end/ui/legacy/utils/create-shadow-root-with-core-styles.ts +7 -5
- package/package.json +2 -4
- package/scripts/build/build_inspector_overlay.py +15 -1
- package/scripts/build/rjsmin.py +84 -115
- package/scripts/eslint_rules/lib/l10n_filename_matches.js +4 -4
- package/scripts/eslint_rules/lib/lit_html_no_attribute_quotes.js +101 -0
- package/scripts/eslint_rules/lib/no_only_eslint_tests.js +53 -0
- package/scripts/eslint_rules/tests/.eslintrc.js +14 -0
- package/scripts/eslint_rules/tests/l10n_filename_matches_test.js +4 -0
- package/scripts/eslint_rules/tests/lit_html_no_attribute_quotes_test.js +45 -0
- package/scripts/eslint_rules/tests/no_only_eslint_tests_test.js +94 -0
- package/scripts/hosted_mode/server.js +17 -2
- package/front_end/entrypoints/devtools_app/devtools_app.js +0 -8
- package/front_end/entrypoints/devtools_app/devtools_app.json +0 -6
- package/front_end/entrypoints/inspector/inspector.json +0 -4
- package/front_end/entrypoints/js_app/js_app.js +0 -9
- package/front_end/entrypoints/js_app/js_app.json +0 -4
- package/front_end/entrypoints/ndb_app/ndb_app.json +0 -5
- 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.js +0 -13
- package/front_end/entrypoints/shell/shell.json +0 -5
- package/front_end/entrypoints/startup/RuntimeInstantiator.ts +0 -95
- package/front_end/entrypoints/startup/startup.ts +0 -9
- 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/components/helpers/get-stylesheet.ts +0 -45
- 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
- package/scripts/build/build_release_applications.py +0 -216
- package/scripts/build/modular_build.py +0 -184
- package/scripts/check_gn.js +0 -119
- package/scripts/json_validator/module.schema.json +0 -19
- package/scripts/json_validator/validate_module_json.js +0 -44
|
@@ -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,8 +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 './devtools_app-meta-files.js';
|
|
6
|
-
import * as Startup from '../startup/startup.js';
|
|
7
|
-
|
|
8
|
-
Startup.RuntimeInstantiator.startApplication('devtools_app');
|
|
@@ -1,9 +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 './JsMain.js';
|
|
7
|
-
import * as Startup from '../startup/startup.js';
|
|
8
|
-
|
|
9
|
-
Startup.RuntimeInstantiator.startApplication('js_app');
|
|
@@ -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,13 +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 '../../Images/Images.js';
|
|
6
|
-
import '../startup/startup.js';
|
|
7
|
-
import '../../core/root/root-legacy.js';
|
|
8
|
-
import '../../core/platform/platform.js';
|
|
9
|
-
import '../../core/dom_extension/dom_extension.js';
|
|
10
|
-
|
|
11
|
-
import './shell-meta-files.js';
|
|
12
|
-
import '../main/main.js';
|
|
13
|
-
// We generate the descriptors in this file, which depend on the runtime.
|
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (C) 2014 Google Inc. All rights reserved.
|
|
3
|
-
*
|
|
4
|
-
* Redistribution and use in source and binary forms, with or without
|
|
5
|
-
* modification, are permitted provided that the following conditions are
|
|
6
|
-
* met:
|
|
7
|
-
*
|
|
8
|
-
* * Redistributions of source code must retain the above copyright
|
|
9
|
-
* notice, this list of conditions and the following disclaimer.
|
|
10
|
-
* * Redistributions in binary form must reproduce the above
|
|
11
|
-
* copyright notice, this list of conditions and the following disclaimer
|
|
12
|
-
* in the documentation and/or other materials provided with the
|
|
13
|
-
* distribution.
|
|
14
|
-
* * Neither the name of Google Inc. nor the names of its
|
|
15
|
-
* contributors may be used to endorse or promote products derived from
|
|
16
|
-
* this software without specific prior written permission.
|
|
17
|
-
*
|
|
18
|
-
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
19
|
-
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
20
|
-
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
|
21
|
-
* A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
|
22
|
-
* OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
|
23
|
-
* SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
|
24
|
-
* LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
|
25
|
-
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
|
26
|
-
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
27
|
-
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
28
|
-
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
29
|
-
*/
|
|
30
|
-
|
|
31
|
-
import '../../core/root/root-legacy.js';
|
|
32
|
-
|
|
33
|
-
import * as RootModule from '../../core/root/root.js';
|
|
34
|
-
|
|
35
|
-
// Legacy runtime namespace definitions
|
|
36
|
-
// @ts-ignore
|
|
37
|
-
self.Runtime = self.Runtime || {};
|
|
38
|
-
// @ts-ignore
|
|
39
|
-
Runtime = Runtime || {};
|
|
40
|
-
// The following two variables are initialized in `build_release_applications`
|
|
41
|
-
// @ts-ignore
|
|
42
|
-
Root.allDescriptors = Root.allDescriptors || [];
|
|
43
|
-
// @ts-ignore
|
|
44
|
-
Root.applicationDescriptor = Root.applicationDescriptor || undefined;
|
|
45
|
-
|
|
46
|
-
export async function startApplication(_appName: string): Promise<void> {
|
|
47
|
-
console.timeStamp('Root.Runtime.startApplication');
|
|
48
|
-
|
|
49
|
-
const allDescriptorsByName: {
|
|
50
|
-
[x: string]: RootModule.Runtime.ModuleDescriptor,
|
|
51
|
-
} = {};
|
|
52
|
-
// TODO(crbug.com/1172300) Ignored during the jsdoc to ts migration
|
|
53
|
-
// @ts-ignore
|
|
54
|
-
for (let i = 0; i < Root.allDescriptors.length; ++i) {
|
|
55
|
-
// TODO(crbug.com/1172300) Ignored during the jsdoc to ts migration
|
|
56
|
-
// @ts-ignore
|
|
57
|
-
const d = Root.allDescriptors[i];
|
|
58
|
-
allDescriptorsByName[d['name']] = d;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
// TODO(crbug.com/1172300) Ignored during the jsdoc to ts migration
|
|
62
|
-
// @ts-ignore
|
|
63
|
-
const configuration = Root.applicationDescriptor.modules;
|
|
64
|
-
const moduleDescriptors = [];
|
|
65
|
-
const coreModuleNames = [];
|
|
66
|
-
for (let i = 0; i < configuration.length; ++i) {
|
|
67
|
-
const descriptor = configuration[i];
|
|
68
|
-
const name = descriptor['name'];
|
|
69
|
-
moduleDescriptors.push(allDescriptorsByName[name]);
|
|
70
|
-
if (descriptor['type'] === 'autostart') {
|
|
71
|
-
coreModuleNames.push(name);
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
for (let i = 0; i < moduleDescriptors.length; ++i) {
|
|
76
|
-
moduleDescriptors[i].name = configuration[i]['name'];
|
|
77
|
-
moduleDescriptors[i].condition = configuration[i]['condition'];
|
|
78
|
-
}
|
|
79
|
-
const runtimeInstance = RootModule.Runtime.Runtime.instance({forceNew: true, moduleDescriptors});
|
|
80
|
-
// @ts-ignore Exposed for legacy layout tests
|
|
81
|
-
self.runtime = runtimeInstance;
|
|
82
|
-
if (coreModuleNames) {
|
|
83
|
-
await runtimeInstance.loadAutoStartModules(coreModuleNames);
|
|
84
|
-
}
|
|
85
|
-
RootModule.Runtime.appStartedPromiseCallback();
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
export async function startWorker(appName: string): Promise<void> {
|
|
89
|
-
return startApplication(appName).then(sendWorkerReady);
|
|
90
|
-
|
|
91
|
-
function sendWorkerReady(): void {
|
|
92
|
-
// @ts-ignore
|
|
93
|
-
self.postMessage('workerReady');
|
|
94
|
-
}
|
|
95
|
-
}
|
|
@@ -1,9 +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 RuntimeInstantiator from './RuntimeInstantiator.js';
|
|
6
|
-
|
|
7
|
-
export {
|
|
8
|
-
RuntimeInstantiator,
|
|
9
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {}
|