chrome-devtools-frontend 1.0.1549484 → 1.0.1550444
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/docs/styleguide/ux/components.md +53 -12
- package/docs/styleguide/ux/images/cards.png +0 -0
- package/docs/ui_engineering.md +2 -2
- package/front_end/core/sdk/NetworkManager.ts +12 -10
- package/front_end/core/sdk/PageResourceLoader.ts +8 -1
- package/front_end/core/sdk/SourceMapManager.ts +12 -6
- package/front_end/entrypoints/main/MainImpl.ts +0 -9
- package/front_end/foundation/Universe.ts +7 -0
- package/front_end/generated/InspectorBackendCommands.ts +5 -2
- package/front_end/generated/protocol-mapping.d.ts +8 -0
- package/front_end/generated/protocol-proxy-api.d.ts +6 -0
- package/front_end/generated/protocol.ts +76 -0
- package/front_end/models/ai_assistance/BuiltInAi.ts +79 -5
- package/front_end/models/issues_manager/AttributionReportingIssue.ts +6 -8
- package/front_end/models/issues_manager/BounceTrackingIssue.ts +4 -14
- package/front_end/models/issues_manager/ClientHintIssue.ts +5 -12
- package/front_end/models/issues_manager/ContentSecurityPolicyIssue.ts +5 -12
- package/front_end/models/issues_manager/CookieDeprecationMetadataIssue.ts +7 -14
- package/front_end/models/issues_manager/CookieIssue.ts +27 -30
- package/front_end/models/issues_manager/CorsIssue.ts +8 -17
- package/front_end/models/issues_manager/CrossOriginEmbedderPolicyIssue.ts +5 -8
- package/front_end/models/issues_manager/DeprecationIssue.ts +7 -14
- package/front_end/models/issues_manager/ElementAccessibilityIssue.ts +7 -14
- package/front_end/models/issues_manager/FederatedAuthRequestIssue.ts +4 -11
- package/front_end/models/issues_manager/FederatedAuthUserInfoRequestIssue.ts +4 -11
- package/front_end/models/issues_manager/GenericIssue.ts +11 -16
- package/front_end/models/issues_manager/HeavyAdIssue.ts +4 -11
- package/front_end/models/issues_manager/Issue.ts +12 -4
- package/front_end/models/issues_manager/IssueAggregator.ts +8 -2
- package/front_end/models/issues_manager/LowTextContrastIssue.ts +3 -10
- package/front_end/models/issues_manager/MixedContentIssue.ts +7 -13
- package/front_end/models/issues_manager/PartitioningBlobURLIssue.ts +4 -11
- package/front_end/models/issues_manager/PropertyRuleIssue.ts +6 -12
- package/front_end/models/issues_manager/QuirksModeIssue.ts +3 -10
- package/front_end/models/issues_manager/SRIMessageSignatureIssue.ts +7 -13
- package/front_end/models/issues_manager/SharedArrayBufferIssue.ts +4 -11
- package/front_end/models/issues_manager/SharedDictionaryIssue.ts +6 -13
- package/front_end/models/issues_manager/StylesheetLoadingIssue.ts +8 -13
- package/front_end/models/issues_manager/UnencodedDigestIssue.ts +2 -9
- package/front_end/models/javascript_metadata/NativeFunctions.js +0 -13
- package/front_end/panels/application/AppManifestView.ts +4 -4
- package/front_end/panels/application/ApplicationPanelSidebar.ts +21 -21
- package/front_end/panels/application/BackForwardCacheTreeElement.ts +2 -2
- package/front_end/panels/application/BounceTrackingMitigationsTreeElement.ts +2 -2
- package/front_end/panels/application/InterestGroupTreeElement.ts +2 -2
- package/front_end/panels/application/OpenedWindowDetailsView.ts +2 -2
- package/front_end/panels/application/OriginTrialTreeView.ts +1 -1
- package/front_end/panels/application/PreloadingTreeElement.ts +3 -3
- package/front_end/panels/application/ReportingApiTreeElement.ts +2 -2
- package/front_end/panels/application/ServiceWorkerCacheTreeElement.ts +3 -3
- package/front_end/panels/application/SharedStorageListTreeElement.ts +2 -2
- package/front_end/panels/application/StorageBucketsTreeElement.ts +3 -3
- package/front_end/panels/application/StorageView.ts +2 -2
- package/front_end/panels/application/TrustTokensTreeElement.ts +2 -2
- package/front_end/panels/application/components/PermissionsPolicySection.ts +1 -1
- package/front_end/panels/application/components/ProtocolHandlersView.ts +1 -1
- package/front_end/panels/application/components/SharedStorageMetadataView.ts +1 -1
- package/front_end/panels/application/components/TrustTokensView.ts +1 -1
- package/front_end/panels/application/preloading/components/PreloadingGrid.ts +1 -1
- package/front_end/panels/application/preloading/components/RuleSetGrid.ts +1 -1
- package/front_end/panels/application/preloading/components/UsedPreloadingView.ts +1 -1
- package/front_end/panels/changes/ChangesSidebar.ts +2 -0
- package/front_end/panels/changes/CombinedDiffView.ts +2 -0
- package/front_end/panels/common/AnnotationManager.ts +71 -0
- package/front_end/panels/common/PersistenceUtils.ts +6 -7
- package/front_end/panels/common/common.ts +1 -0
- package/front_end/panels/console/ConsolePrompt.ts +4 -4
- package/front_end/panels/console/ConsoleView.ts +2 -2
- package/front_end/panels/console/ConsoleViewMessage.ts +10 -11
- package/front_end/panels/console_counters/WarningErrorCounter.ts +2 -0
- package/front_end/panels/css_overview/CSSOverviewCompletedView.ts +1 -1
- package/front_end/panels/elements/ColorSwatchPopoverIcon.ts +3 -3
- package/front_end/panels/elements/ElementsPanel.ts +49 -0
- package/front_end/panels/elements/ElementsTreeElement.ts +156 -108
- package/front_end/panels/elements/ElementsTreeOutline.ts +9 -2
- package/front_end/panels/elements/ShortcutTreeElement.ts +2 -2
- package/front_end/panels/elements/StyleEditorWidget.ts +2 -2
- package/front_end/panels/elements/StylePropertyTreeElement.ts +6 -6
- package/front_end/panels/elements/StylesSidebarPane.ts +4 -5
- package/front_end/panels/elements/TopLayerContainer.ts +2 -2
- package/front_end/panels/elements/components/ElementsBreadcrumbs.ts +1 -1
- package/front_end/panels/elements/components/ElementsTreeExpandButton.ts +1 -1
- package/front_end/panels/elements/components/QueryContainer.ts +1 -1
- package/front_end/panels/elements/components/StylePropertyEditor.ts +1 -1
- package/front_end/panels/emulation/DeviceModeWrapper.ts +48 -3
- package/front_end/panels/explain/components/ConsoleInsight.ts +6 -4
- package/front_end/panels/issues/AffectedResourcesView.ts +2 -2
- package/front_end/panels/issues/AttributionReportingIssueDetailsView.ts +2 -2
- package/front_end/panels/issues/IssueKindView.ts +2 -2
- package/front_end/panels/issues/IssueView.ts +4 -4
- package/front_end/panels/js_timeline/js_timeline-meta.ts +4 -2
- package/front_end/panels/linear_memory_inspector/components/LinearMemoryHighlightChipList.ts +1 -1
- package/front_end/panels/linear_memory_inspector/components/LinearMemoryNavigator.ts +1 -1
- package/front_end/panels/linear_memory_inspector/components/LinearMemoryValueInterpreter.ts +1 -1
- package/front_end/panels/linear_memory_inspector/components/ValueInterpreterDisplay.ts +1 -1
- package/front_end/panels/media/PlayerListView.ts +1 -1
- package/front_end/panels/mobile_throttling/ThrottlingManager.ts +2 -2
- package/front_end/panels/mobile_throttling/ThrottlingSettingsTab.ts +2 -3
- package/front_end/panels/network/NetworkDataGridNode.ts +3 -3
- package/front_end/panels/network/NetworkFrameGrouper.ts +2 -2
- package/front_end/panels/network/NetworkItemView.ts +4 -4
- package/front_end/panels/network/NetworkLogViewColumns.ts +3 -3
- package/front_end/panels/network/RequestCookiesView.ts +2 -2
- package/front_end/panels/network/SignedExchangeInfoView.ts +2 -2
- package/front_end/panels/network/components/RequestTrustTokensView.ts +5 -6
- package/front_end/panels/profiler/HeapSnapshotGridNodes.ts +3 -3
- package/front_end/panels/profiler/ProfileDataGrid.ts +2 -2
- package/front_end/panels/profiler/ProfilesPanel.ts +2 -2
- package/front_end/panels/protocol_monitor/JSONEditor.ts +1 -1
- package/front_end/panels/recorder/components/CreateRecordingView.ts +1 -1
- package/front_end/panels/recorder/components/ExtensionView.ts +1 -1
- package/front_end/panels/recorder/components/RecordingListView.ts +1 -1
- package/front_end/panels/recorder/components/RecordingView.ts +1 -1
- package/front_end/panels/recorder/components/StepView.ts +1 -1
- package/front_end/panels/screencast/ScreencastView.ts +8 -8
- package/front_end/panels/search/SearchView.ts +1 -1
- package/front_end/panels/security/CookieControlsTreeElement.ts +2 -2
- package/front_end/panels/security/CookieReportTreeElement.ts +2 -2
- package/front_end/panels/security/SecurityPanel.ts +5 -5
- package/front_end/panels/security/SecurityPanelSidebar.ts +3 -4
- package/front_end/panels/settings/KeybindsSettingsTab.ts +4 -4
- package/front_end/panels/settings/SettingsScreen.ts +2 -3
- package/front_end/panels/snippets/SnippetsQuickOpen.ts +16 -8
- package/front_end/panels/sources/BreakpointEditDialog.ts +3 -3
- package/front_end/panels/sources/BreakpointsView.ts +1 -1
- package/front_end/panels/sources/CSSPlugin.ts +3 -3
- package/front_end/panels/sources/CallStackSidebarPane.ts +4 -4
- package/front_end/panels/sources/DebuggerPausedMessage.ts +3 -3
- package/front_end/panels/sources/FilteredUISourceCodeListProvider.ts +39 -30
- package/front_end/panels/sources/GoToLineQuickOpen.ts +11 -7
- package/front_end/panels/sources/NavigatorView.ts +2 -2
- package/front_end/panels/sources/OpenFileQuickOpen.ts +11 -15
- package/front_end/panels/sources/OutlineQuickOpen.ts +23 -26
- package/front_end/panels/sources/SourcesView.ts +2 -2
- package/front_end/panels/sources/TabbedEditorContainer.ts +4 -5
- package/front_end/panels/sources/ThreadsSidebarPane.ts +2 -2
- package/front_end/panels/sources/UISourceCodeFrame.ts +5 -5
- package/front_end/panels/timeline/TimelineHistoryManager.ts +2 -2
- package/front_end/panels/timeline/TimelinePanel.ts +14 -9
- package/front_end/panels/timeline/components/CPUThrottlingSelector.ts +1 -1
- package/front_end/panels/timeline/components/LiveMetricsView.ts +1 -1
- package/front_end/panels/timeline/components/NetworkRequestTooltip.ts +1 -1
- package/front_end/panels/timeline/components/NetworkThrottlingSelector.ts +1 -1
- package/front_end/panels/timeline/components/OriginMap.ts +1 -1
- package/front_end/panels/timeline/components/insights/Checklist.ts +1 -1
- package/front_end/panels/timeline/components/insights/DOMSize.ts +1 -1
- package/front_end/panels/timeline/components/insights/ImageDelivery.ts +1 -1
- package/front_end/panels/timeline/components/insights/NetworkDependencyTree.ts +1 -1
- package/front_end/panels/timeline/overlays/components/EntriesLinkOverlay.ts +1 -1
- package/front_end/panels/timeline/overlays/components/EntryLabelOverlay.ts +1 -1
- package/front_end/panels/timeline/timeline-meta.ts +3 -2
- package/front_end/panels/utils/utils.ts +1 -0
- package/front_end/third_party/chromium/README.chromium +1 -1
- package/front_end/ui/components/adorners/Adorner.ts +20 -0
- package/front_end/ui/components/annotations/AnnotationRepository.ts +1 -1
- package/front_end/ui/components/buttons/Button.ts +1 -1
- package/front_end/ui/components/buttons/FloatingButton.ts +1 -1
- package/front_end/ui/components/highlighting/HighlightElement.ts +15 -2
- package/front_end/ui/components/icon_button/FileSourceIcon.ts +1 -1
- package/front_end/ui/components/icon_button/IconButton.ts +1 -1
- package/front_end/ui/components/icon_button/icon_button.ts +0 -2
- package/front_end/ui/components/issue_counter/IssueCounter.ts +1 -1
- package/front_end/ui/components/issue_counter/IssueLinkIcon.ts +1 -1
- package/front_end/ui/components/markdown_view/MarkdownImage.ts +3 -3
- package/front_end/ui/components/request_link_icon/RequestLinkIcon.ts +1 -1
- package/front_end/ui/components/settings/SettingDeprecationWarning.ts +1 -1
- package/front_end/ui/components/survey_link/SurveyLink.ts +1 -1
- package/front_end/ui/components/text_editor/config.ts +2 -2
- package/front_end/ui/kit/cards/Card.docs.ts +43 -0
- package/front_end/ui/{components/icon_button → kit/icons}/Icon.docs.ts +3 -4
- package/front_end/ui/{components/icon_button → kit/icons}/Icon.ts +4 -4
- package/front_end/ui/kit/kit.ts +1 -0
- package/front_end/ui/legacy/Infobar.ts +3 -3
- package/front_end/ui/legacy/InspectorView.ts +3 -3
- package/front_end/ui/legacy/SearchableView.ts +2 -2
- package/front_end/ui/legacy/SoftContextMenu.ts +5 -5
- package/front_end/ui/legacy/SoftDropDown.ts +2 -2
- package/front_end/ui/legacy/TabbedPane.ts +9 -9
- package/front_end/ui/legacy/Toolbar.ts +3 -3
- package/front_end/ui/legacy/Treeoutline.ts +2 -2
- package/front_end/ui/legacy/UIUtils.ts +4 -4
- package/front_end/ui/legacy/ViewManager.ts +4 -4
- package/front_end/ui/legacy/components/color_picker/ContrastDetails.ts +8 -8
- package/front_end/ui/legacy/components/color_picker/Spectrum.ts +4 -4
- package/front_end/ui/legacy/components/cookie_table/CookiesTable.ts +4 -4
- package/front_end/ui/legacy/components/inline_editor/FontEditor.ts +2 -2
- package/front_end/ui/legacy/components/inline_editor/Swatches.ts +5 -5
- package/front_end/ui/legacy/components/object_ui/CustomPreviewComponent.ts +3 -3
- package/front_end/ui/legacy/components/perf_ui/OverviewGrid.ts +3 -3
- package/front_end/ui/legacy/components/quick_open/CommandMenu.ts +22 -29
- package/front_end/ui/legacy/components/quick_open/FilteredListWidget.ts +8 -15
- package/front_end/ui/legacy/components/quick_open/HelpQuickOpen.ts +11 -14
- package/front_end/ui/legacy/components/utils/Linkifier.ts +3 -3
- package/mcp/mcp.ts +1 -0
- package/package.json +1 -1
- /package/front_end/ui/{components/icon_button → kit/icons}/icon.css +0 -0
|
@@ -13,40 +13,35 @@ export const lateImportStylesheetLoadingCode = [
|
|
|
13
13
|
Protocol.Audits.StyleSheetLoadingIssueReason.LateImportRule,
|
|
14
14
|
].join('::');
|
|
15
15
|
|
|
16
|
-
export class StylesheetLoadingIssue extends Issue {
|
|
17
|
-
#issueDetails: Protocol.Audits.StylesheetLoadingIssueDetails;
|
|
16
|
+
export class StylesheetLoadingIssue extends Issue<Protocol.Audits.StylesheetLoadingIssueDetails> {
|
|
18
17
|
constructor(
|
|
19
18
|
issueDetails: Protocol.Audits.StylesheetLoadingIssueDetails, issuesModel: SDK.IssuesModel.IssuesModel|null) {
|
|
20
19
|
const code =
|
|
21
20
|
`${Protocol.Audits.InspectorIssueCode.StylesheetLoadingIssue}::${issueDetails.styleSheetLoadingIssueReason}`;
|
|
22
|
-
super(code, issuesModel);
|
|
23
|
-
this.#issueDetails = issueDetails;
|
|
21
|
+
super(code, issueDetails, issuesModel);
|
|
24
22
|
}
|
|
25
23
|
|
|
26
24
|
override sources(): Protocol.Audits.SourceCodeLocation[] {
|
|
27
|
-
return [this
|
|
25
|
+
return [this.details().sourceCodeLocation];
|
|
28
26
|
}
|
|
29
27
|
override requests(): Protocol.Audits.AffectedRequest[] {
|
|
30
|
-
|
|
28
|
+
const details = this.details();
|
|
29
|
+
if (!details.failedRequestInfo) {
|
|
31
30
|
return [];
|
|
32
31
|
}
|
|
33
|
-
const {url, requestId} =
|
|
32
|
+
const {url, requestId} = details.failedRequestInfo;
|
|
34
33
|
if (!requestId) {
|
|
35
34
|
return [];
|
|
36
35
|
}
|
|
37
36
|
return [{url, requestId}];
|
|
38
37
|
}
|
|
39
38
|
|
|
40
|
-
details(): Protocol.Audits.StylesheetLoadingIssueDetails {
|
|
41
|
-
return this.#issueDetails;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
39
|
primaryKey(): string {
|
|
45
|
-
return JSON.stringify(this
|
|
40
|
+
return JSON.stringify(this.details());
|
|
46
41
|
}
|
|
47
42
|
|
|
48
43
|
getDescription(): MarkdownIssueDescription {
|
|
49
|
-
switch (this
|
|
44
|
+
switch (this.details().styleSheetLoadingIssueReason) {
|
|
50
45
|
case Protocol.Audits.StyleSheetLoadingIssueReason.LateImportRule:
|
|
51
46
|
return {
|
|
52
47
|
file: 'stylesheetLateImport.md',
|
|
@@ -26,9 +26,7 @@ const UIStrings = {
|
|
|
26
26
|
const str_ = i18n.i18n.registerUIStrings('models/issues_manager/UnencodedDigestIssue.ts', UIStrings);
|
|
27
27
|
const i18nLazyString = i18n.i18n.getLazilyComputedLocalizedString.bind(undefined, str_);
|
|
28
28
|
|
|
29
|
-
export class UnencodedDigestIssue extends Issue<
|
|
30
|
-
readonly #issueDetails: Protocol.Audits.UnencodedDigestIssueDetails;
|
|
31
|
-
|
|
29
|
+
export class UnencodedDigestIssue extends Issue<Protocol.Audits.UnencodedDigestIssueDetails> {
|
|
32
30
|
constructor(
|
|
33
31
|
issueDetails: Protocol.Audits.UnencodedDigestIssueDetails, issuesModel: SDK.IssuesModel.IssuesModel|null) {
|
|
34
32
|
super(
|
|
@@ -36,12 +34,7 @@ export class UnencodedDigestIssue extends Issue<string> {
|
|
|
36
34
|
code: `${Protocol.Audits.InspectorIssueCode.UnencodedDigestIssue}::${issueDetails.error}`,
|
|
37
35
|
umaCode: `${Protocol.Audits.InspectorIssueCode.UnencodedDigestIssue}::${issueDetails.error}`,
|
|
38
36
|
},
|
|
39
|
-
issuesModel);
|
|
40
|
-
this.#issueDetails = issueDetails;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
details(): Protocol.Audits.UnencodedDigestIssueDetails {
|
|
44
|
-
return this.#issueDetails;
|
|
37
|
+
issueDetails, issuesModel);
|
|
45
38
|
}
|
|
46
39
|
|
|
47
40
|
override primaryKey(): string {
|
|
@@ -709,11 +709,6 @@ export const NativeFunctions = [
|
|
|
709
709
|
signatures: [["property","cssText"]],
|
|
710
710
|
receivers: ["CSSStyleValue"]
|
|
711
711
|
},
|
|
712
|
-
{
|
|
713
|
-
name: "parse",
|
|
714
|
-
signatures: [["serializedOrigin"]],
|
|
715
|
-
receivers: ["Origin"]
|
|
716
|
-
},
|
|
717
712
|
{
|
|
718
713
|
name: "parse",
|
|
719
714
|
signatures: [["url","?base"]],
|
|
@@ -7386,14 +7381,6 @@ export const NativeFunctions = [
|
|
|
7386
7381
|
name: "compareComponent",
|
|
7387
7382
|
signatures: [["component","left","right"]]
|
|
7388
7383
|
},
|
|
7389
|
-
{
|
|
7390
|
-
name: "Origin",
|
|
7391
|
-
signatures: [["?serializedOrigin"]]
|
|
7392
|
-
},
|
|
7393
|
-
{
|
|
7394
|
-
name: "fromURL",
|
|
7395
|
-
signatures: [["serializedURL"]]
|
|
7396
|
-
},
|
|
7397
7384
|
{
|
|
7398
7385
|
name: "isSameOrigin",
|
|
7399
7386
|
signatures: [["other"]]
|
|
@@ -10,8 +10,8 @@ import type * as Platform from '../../core/platform/platform.js';
|
|
|
10
10
|
import * as SDK from '../../core/sdk/sdk.js';
|
|
11
11
|
import type * as Protocol from '../../generated/protocol.js';
|
|
12
12
|
import * as Buttons from '../../ui/components/buttons/buttons.js';
|
|
13
|
-
import * as IconButton from '../../ui/components/icon_button/icon_button.js';
|
|
14
13
|
import * as uiI18n from '../../ui/i18n/i18n.js';
|
|
14
|
+
import {createIcon} from '../../ui/kit/kit.js';
|
|
15
15
|
import * as InlineEditor from '../../ui/legacy/components/inline_editor/inline_editor.js';
|
|
16
16
|
import * as Components from '../../ui/legacy/components/utils/utils.js';
|
|
17
17
|
import * as UI from '../../ui/legacy/legacy.js';
|
|
@@ -676,7 +676,7 @@ export class AppManifestView extends Common.ObjectWrapper.eventMixin<EventTypes,
|
|
|
676
676
|
UI.ARIAUtils.setLabel(appIdField, 'App Id');
|
|
677
677
|
appIdField.textContent = appId;
|
|
678
678
|
|
|
679
|
-
const helpIcon =
|
|
679
|
+
const helpIcon = createIcon('help', 'inline-icon');
|
|
680
680
|
helpIcon.title = i18nString(UIStrings.appIdExplainer);
|
|
681
681
|
helpIcon.setAttribute('jslog', `${VisualLogging.action('help').track({hover: true})}`);
|
|
682
682
|
appIdField.appendChild(helpIcon);
|
|
@@ -934,7 +934,7 @@ export class AppManifestView extends Common.ObjectWrapper.eventMixin<EventTypes,
|
|
|
934
934
|
const wcoStatusMessage = this.windowControlsSection.appendRow();
|
|
935
935
|
|
|
936
936
|
if (hasWco) {
|
|
937
|
-
const checkmarkIcon =
|
|
937
|
+
const checkmarkIcon = createIcon('check-circle', 'inline-icon');
|
|
938
938
|
wcoStatusMessage.appendChild(checkmarkIcon);
|
|
939
939
|
|
|
940
940
|
const wco = document.createElement('code');
|
|
@@ -947,7 +947,7 @@ export class AppManifestView extends Common.ObjectWrapper.eventMixin<EventTypes,
|
|
|
947
947
|
await this.appendWindowControlsToSection(this.overlayModel, url, stringProperty('theme_color'));
|
|
948
948
|
}
|
|
949
949
|
} else {
|
|
950
|
-
const infoIcon =
|
|
950
|
+
const infoIcon = createIcon('info', 'inline-icon');
|
|
951
951
|
|
|
952
952
|
wcoStatusMessage.appendChild(infoIcon);
|
|
953
953
|
|
|
@@ -40,8 +40,8 @@ import * as Platform from '../../core/platform/platform.js';
|
|
|
40
40
|
import * as SDK from '../../core/sdk/sdk.js';
|
|
41
41
|
import * as Protocol from '../../generated/protocol.js';
|
|
42
42
|
import * as IssuesManager from '../../models/issues_manager/issues_manager.js';
|
|
43
|
-
import * as IconButton from '../../ui/components/icon_button/icon_button.js';
|
|
44
43
|
import * as LegacyWrapper from '../../ui/components/legacy_wrapper/legacy_wrapper.js';
|
|
44
|
+
import {createIcon} from '../../ui/kit/kit.js';
|
|
45
45
|
import * as SourceFrame from '../../ui/legacy/components/source_frame/source_frame.js';
|
|
46
46
|
import * as UI from '../../ui/legacy/legacy.js';
|
|
47
47
|
|
|
@@ -406,7 +406,7 @@ export class ApplicationPanelSidebar extends UI.Widget.VBox implements SDK.Targe
|
|
|
406
406
|
i18nString(UIStrings.localStorageDescription), 'local-storage');
|
|
407
407
|
this.localStorageListTreeElement.setLink(
|
|
408
408
|
'https://developer.chrome.com/docs/devtools/storage/localstorage/' as Platform.DevToolsPath.UrlString);
|
|
409
|
-
const localStorageIcon =
|
|
409
|
+
const localStorageIcon = createIcon('table');
|
|
410
410
|
this.localStorageListTreeElement.setLeadingIcons([localStorageIcon]);
|
|
411
411
|
|
|
412
412
|
storageTreeElement.appendChild(this.localStorageListTreeElement);
|
|
@@ -415,7 +415,7 @@ export class ApplicationPanelSidebar extends UI.Widget.VBox implements SDK.Targe
|
|
|
415
415
|
i18nString(UIStrings.sessionStorageDescription), 'session-storage');
|
|
416
416
|
this.sessionStorageListTreeElement.setLink(
|
|
417
417
|
'https://developer.chrome.com/docs/devtools/storage/sessionstorage/' as Platform.DevToolsPath.UrlString);
|
|
418
|
-
const sessionStorageIcon =
|
|
418
|
+
const sessionStorageIcon = createIcon('table');
|
|
419
419
|
this.sessionStorageListTreeElement.setLeadingIcons([sessionStorageIcon]);
|
|
420
420
|
|
|
421
421
|
storageTreeElement.appendChild(this.sessionStorageListTreeElement);
|
|
@@ -425,7 +425,7 @@ export class ApplicationPanelSidebar extends UI.Widget.VBox implements SDK.Targe
|
|
|
425
425
|
i18nString(UIStrings.extensionStorageDescription), 'extension-storage');
|
|
426
426
|
this.extensionStorageListTreeElement.setLink(
|
|
427
427
|
'https://developer.chrome.com/docs/extensions/reference/api/storage/' as Platform.DevToolsPath.UrlString);
|
|
428
|
-
const extensionStorageIcon =
|
|
428
|
+
const extensionStorageIcon = createIcon('table');
|
|
429
429
|
this.extensionStorageListTreeElement.setLeadingIcons([extensionStorageIcon]);
|
|
430
430
|
|
|
431
431
|
storageTreeElement.appendChild(this.extensionStorageListTreeElement);
|
|
@@ -440,7 +440,7 @@ export class ApplicationPanelSidebar extends UI.Widget.VBox implements SDK.Targe
|
|
|
440
440
|
'cookies');
|
|
441
441
|
this.cookieListTreeElement.setLink(
|
|
442
442
|
'https://developer.chrome.com/docs/devtools/storage/cookies/' as Platform.DevToolsPath.UrlString);
|
|
443
|
-
const cookieIcon =
|
|
443
|
+
const cookieIcon = createIcon('cookie');
|
|
444
444
|
this.cookieListTreeElement.setLeadingIcons([cookieIcon]);
|
|
445
445
|
storageTreeElement.appendChild(this.cookieListTreeElement);
|
|
446
446
|
|
|
@@ -1064,7 +1064,7 @@ export class BackgroundServiceTreeElement extends ApplicationPanelTreeElement {
|
|
|
1064
1064
|
|
|
1065
1065
|
this.model = null;
|
|
1066
1066
|
|
|
1067
|
-
const backgroundServiceIcon =
|
|
1067
|
+
const backgroundServiceIcon = createIcon(this.getIconType());
|
|
1068
1068
|
this.setLeadingIcons([backgroundServiceIcon]);
|
|
1069
1069
|
}
|
|
1070
1070
|
|
|
@@ -1130,7 +1130,7 @@ export class ServiceWorkersTreeElement extends ApplicationPanelTreeElement {
|
|
|
1130
1130
|
|
|
1131
1131
|
constructor(storagePanel: ResourcesPanel) {
|
|
1132
1132
|
super(storagePanel, i18n.i18n.lockedString('Service workers'), false, 'service-workers');
|
|
1133
|
-
const icon =
|
|
1133
|
+
const icon = createIcon('gears');
|
|
1134
1134
|
this.setLeadingIcons([icon]);
|
|
1135
1135
|
}
|
|
1136
1136
|
|
|
@@ -1153,7 +1153,7 @@ export class AppManifestTreeElement extends ApplicationPanelTreeElement {
|
|
|
1153
1153
|
private view: AppManifestView;
|
|
1154
1154
|
constructor(storagePanel: ResourcesPanel) {
|
|
1155
1155
|
super(storagePanel, i18nString(UIStrings.manifest), true, 'manifest');
|
|
1156
|
-
const icon =
|
|
1156
|
+
const icon = createIcon('document');
|
|
1157
1157
|
this.setLeadingIcons([icon]);
|
|
1158
1158
|
self.onInvokeElement(this.listItemElement, this.onInvoke.bind(this));
|
|
1159
1159
|
const emptyView = new UI.EmptyWidget.EmptyWidget(
|
|
@@ -1207,7 +1207,7 @@ export class ManifestChildTreeElement extends ApplicationPanelTreeElement {
|
|
|
1207
1207
|
storagePanel: ResourcesPanel, element: Element, childTitle: string, fieldElement: HTMLElement,
|
|
1208
1208
|
jslogContext: string) {
|
|
1209
1209
|
super(storagePanel, childTitle, false, jslogContext);
|
|
1210
|
-
const icon =
|
|
1210
|
+
const icon = createIcon('document');
|
|
1211
1211
|
this.setLeadingIcons([icon]);
|
|
1212
1212
|
this.#sectionElement = element;
|
|
1213
1213
|
this.#sectionFieldElement = fieldElement;
|
|
@@ -1252,7 +1252,7 @@ export class ClearStorageTreeElement extends ApplicationPanelTreeElement {
|
|
|
1252
1252
|
private view?: StorageView;
|
|
1253
1253
|
constructor(storagePanel: ResourcesPanel) {
|
|
1254
1254
|
super(storagePanel, i18nString(UIStrings.storage), false, 'storage');
|
|
1255
|
-
const icon =
|
|
1255
|
+
const icon = createIcon('database');
|
|
1256
1256
|
this.setLeadingIcons([icon]);
|
|
1257
1257
|
}
|
|
1258
1258
|
|
|
@@ -1278,7 +1278,7 @@ export class IndexedDBTreeElement extends ExpandableApplicationPanelTreeElement
|
|
|
1278
1278
|
super(
|
|
1279
1279
|
storagePanel, i18nString(UIStrings.indexeddb), i18nString(UIStrings.noIndexeddb),
|
|
1280
1280
|
i18nString(UIStrings.indexeddbDescription), 'indexed-db');
|
|
1281
|
-
const icon =
|
|
1281
|
+
const icon = createIcon('database');
|
|
1282
1282
|
this.setLeadingIcons([icon]);
|
|
1283
1283
|
this.idbDatabaseTreeElements = [];
|
|
1284
1284
|
this.storageBucket = storageBucket;
|
|
@@ -1421,7 +1421,7 @@ export class IDBDatabaseTreeElement extends ApplicationPanelTreeElement {
|
|
|
1421
1421
|
this.model = model;
|
|
1422
1422
|
this.databaseId = databaseId;
|
|
1423
1423
|
this.idbObjectStoreTreeElements = new Map();
|
|
1424
|
-
const icon =
|
|
1424
|
+
const icon = createIcon('database');
|
|
1425
1425
|
this.setLeadingIcons([icon]);
|
|
1426
1426
|
this.model.addEventListener(IndexedDBModelEvents.DatabaseNamesRefreshed, this.refreshIndexedDB, this);
|
|
1427
1427
|
}
|
|
@@ -1546,7 +1546,7 @@ export class IDBObjectStoreTreeElement extends ApplicationPanelTreeElement {
|
|
|
1546
1546
|
this.idbIndexTreeElements = new Map();
|
|
1547
1547
|
this.objectStore = objectStore;
|
|
1548
1548
|
this.view = null;
|
|
1549
|
-
const icon =
|
|
1549
|
+
const icon = createIcon('table');
|
|
1550
1550
|
this.setLeadingIcons([icon]);
|
|
1551
1551
|
}
|
|
1552
1552
|
|
|
@@ -1758,7 +1758,7 @@ export class DOMStorageTreeElement extends ApplicationPanelTreeElement {
|
|
|
1758
1758
|
i18nString(UIStrings.localFiles),
|
|
1759
1759
|
false, domStorage.isLocalStorage ? 'local-storage-for-domain' : 'session-storage-for-domain');
|
|
1760
1760
|
this.domStorage = domStorage;
|
|
1761
|
-
const icon =
|
|
1761
|
+
const icon = createIcon('table');
|
|
1762
1762
|
this.setLeadingIcons([icon]);
|
|
1763
1763
|
}
|
|
1764
1764
|
|
|
@@ -1793,7 +1793,7 @@ export class ExtensionStorageTreeElement extends ApplicationPanelTreeElement {
|
|
|
1793
1793
|
super(
|
|
1794
1794
|
storagePanel, nameForExtensionStorageArea(extensionStorage.storageArea), false, 'extension-storage-for-domain');
|
|
1795
1795
|
this.extensionStorage = extensionStorage;
|
|
1796
|
-
const icon =
|
|
1796
|
+
const icon = createIcon('table');
|
|
1797
1797
|
this.setLeadingIcons([icon]);
|
|
1798
1798
|
}
|
|
1799
1799
|
|
|
@@ -1831,7 +1831,7 @@ export class ExtensionStorageTreeParentElement extends ApplicationPanelTreeEleme
|
|
|
1831
1831
|
constructor(storagePanel: ResourcesPanel, extensionId: string, extensionName: string) {
|
|
1832
1832
|
super(storagePanel, extensionName || extensionId, true, 'extension-storage-for-domain');
|
|
1833
1833
|
this.extensionId = extensionId;
|
|
1834
|
-
const icon =
|
|
1834
|
+
const icon = createIcon('table');
|
|
1835
1835
|
this.setLeadingIcons([icon]);
|
|
1836
1836
|
}
|
|
1837
1837
|
|
|
@@ -1851,7 +1851,7 @@ export class CookieTreeElement extends ApplicationPanelTreeElement {
|
|
|
1851
1851
|
this.target = frame.resourceTreeModel().target();
|
|
1852
1852
|
this.#cookieDomain = cookieUrl.securityOrigin();
|
|
1853
1853
|
this.tooltip = i18nString(UIStrings.cookiesUsedByFramesFromS, {PH1: this.#cookieDomain});
|
|
1854
|
-
const icon =
|
|
1854
|
+
const icon = createIcon('cookie');
|
|
1855
1855
|
// Note that we cannot use `cookieDomainInternal` here since it contains scheme.
|
|
1856
1856
|
if (IssuesManager.RelatedIssue.hasThirdPartyPhaseoutCookieIssueForDomain(cookieUrl.domain())) {
|
|
1857
1857
|
icon.name = 'warning-filled';
|
|
@@ -2172,7 +2172,7 @@ export class FrameTreeElement extends ApplicationPanelTreeElement {
|
|
|
2172
2172
|
}
|
|
2173
2173
|
|
|
2174
2174
|
async frameNavigated(frame: SDK.ResourceTreeModel.ResourceTreeFrame): Promise<void> {
|
|
2175
|
-
const icon =
|
|
2175
|
+
const icon = createIcon(this.getIconTypeForFrame(frame));
|
|
2176
2176
|
if (frame.unreachableUrl()) {
|
|
2177
2177
|
icon.classList.add('red-icon');
|
|
2178
2178
|
}
|
|
@@ -2374,7 +2374,7 @@ export class FrameResourceTreeElement extends ApplicationPanelTreeElement {
|
|
|
2374
2374
|
this.tooltip = resource.url;
|
|
2375
2375
|
resourceToFrameResourceTreeElement.set(this.resource, this);
|
|
2376
2376
|
|
|
2377
|
-
const icon =
|
|
2377
|
+
const icon = createIcon('document', 'navigator-file-tree-item');
|
|
2378
2378
|
icon.classList.add('navigator-' + resource.resourceType().name() + '-tree-item');
|
|
2379
2379
|
this.setLeadingIcons([icon]);
|
|
2380
2380
|
}
|
|
@@ -2465,7 +2465,7 @@ class FrameWindowTreeElement extends ApplicationPanelTreeElement {
|
|
|
2465
2465
|
|
|
2466
2466
|
updateIcon(canAccessOpener: boolean): void {
|
|
2467
2467
|
const iconType = canAccessOpener ? 'popup' : 'frame';
|
|
2468
|
-
const icon =
|
|
2468
|
+
const icon = createIcon(iconType);
|
|
2469
2469
|
this.setLeadingIcons([icon]);
|
|
2470
2470
|
}
|
|
2471
2471
|
|
|
@@ -2514,7 +2514,7 @@ class WorkerTreeElement extends ApplicationPanelTreeElement {
|
|
|
2514
2514
|
super(storagePanel, targetInfo.title || targetInfo.url || i18nString(UIStrings.worker), false, 'worker');
|
|
2515
2515
|
this.targetInfo = targetInfo;
|
|
2516
2516
|
this.view = null;
|
|
2517
|
-
const icon =
|
|
2517
|
+
const icon = createIcon('gears', 'navigator-file-tree-item');
|
|
2518
2518
|
this.setLeadingIcons([icon]);
|
|
2519
2519
|
}
|
|
2520
2520
|
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
import * as Host from '../../core/host/host.js';
|
|
6
6
|
import * as i18n from '../../core/i18n/i18n.js';
|
|
7
7
|
import type * as Platform from '../../core/platform/platform.js';
|
|
8
|
-
import
|
|
8
|
+
import {createIcon} from '../../ui/kit/kit.js';
|
|
9
9
|
|
|
10
10
|
import {ApplicationPanelTreeElement} from './ApplicationPanelTreeElement.js';
|
|
11
11
|
import * as ApplicationComponents from './components/components.js';
|
|
@@ -25,7 +25,7 @@ export class BackForwardCacheTreeElement extends ApplicationPanelTreeElement {
|
|
|
25
25
|
|
|
26
26
|
constructor(resourcesPanel: ResourcesPanel) {
|
|
27
27
|
super(resourcesPanel, i18nString(UIStrings.backForwardCache), false, 'bfcache');
|
|
28
|
-
const icon =
|
|
28
|
+
const icon = createIcon('database');
|
|
29
29
|
this.setLeadingIcons([icon]);
|
|
30
30
|
}
|
|
31
31
|
|
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
import * as Host from '../../core/host/host.js';
|
|
6
6
|
import * as i18n from '../../core/i18n/i18n.js';
|
|
7
7
|
import type * as Platform from '../../core/platform/platform.js';
|
|
8
|
-
import * as IconButton from '../../ui/components/icon_button/icon_button.js';
|
|
9
8
|
import * as LegacyWrapper from '../../ui/components/legacy_wrapper/legacy_wrapper.js';
|
|
9
|
+
import {createIcon} from '../../ui/kit/kit.js';
|
|
10
10
|
import * as UI from '../../ui/legacy/legacy.js';
|
|
11
11
|
|
|
12
12
|
import {ApplicationPanelTreeElement} from './ApplicationPanelTreeElement.js';
|
|
@@ -28,7 +28,7 @@ export class BounceTrackingMitigationsTreeElement extends ApplicationPanelTreeEl
|
|
|
28
28
|
|
|
29
29
|
constructor(resourcesPanel: ResourcesPanel) {
|
|
30
30
|
super(resourcesPanel, i18nString(UIStrings.bounceTrackingMitigations), false, 'bounce-tracking-mitigations');
|
|
31
|
-
const icon =
|
|
31
|
+
const icon = createIcon('database');
|
|
32
32
|
this.setLeadingIcons([icon]);
|
|
33
33
|
}
|
|
34
34
|
|
|
@@ -7,7 +7,7 @@ import * as i18n from '../../core/i18n/i18n.js';
|
|
|
7
7
|
import type * as Platform from '../../core/platform/platform.js';
|
|
8
8
|
import * as SDK from '../../core/sdk/sdk.js';
|
|
9
9
|
import type * as Protocol from '../../generated/protocol.js';
|
|
10
|
-
import
|
|
10
|
+
import {createIcon} from '../../ui/kit/kit.js';
|
|
11
11
|
|
|
12
12
|
import {ApplicationPanelTreeElement} from './ApplicationPanelTreeElement.js';
|
|
13
13
|
import {InterestGroupStorageView} from './InterestGroupStorageView.js';
|
|
@@ -30,7 +30,7 @@ export class InterestGroupTreeElement extends ApplicationPanelTreeElement {
|
|
|
30
30
|
|
|
31
31
|
constructor(storagePanel: ResourcesPanel) {
|
|
32
32
|
super(storagePanel, i18nString(UIStrings.interestGroups), false, 'interest-groups');
|
|
33
|
-
const interestGroupIcon =
|
|
33
|
+
const interestGroupIcon = createIcon('database');
|
|
34
34
|
this.setLeadingIcons([interestGroupIcon]);
|
|
35
35
|
this.view = new InterestGroupStorageView(this);
|
|
36
36
|
}
|
|
@@ -7,7 +7,7 @@ import * as Common from '../../core/common/common.js';
|
|
|
7
7
|
import * as i18n from '../../core/i18n/i18n.js';
|
|
8
8
|
import * as SDK from '../../core/sdk/sdk.js';
|
|
9
9
|
import * as Protocol from '../../generated/protocol.js';
|
|
10
|
-
import
|
|
10
|
+
import {createIcon} from '../../ui/kit/kit.js';
|
|
11
11
|
import * as UI from '../../ui/legacy/legacy.js';
|
|
12
12
|
|
|
13
13
|
import openedWindowDetailsViewStyles from './openedWindowDetailsView.css.js';
|
|
@@ -93,7 +93,7 @@ const booleanToYesNo = (b: boolean): Common.UIString.LocalizedString =>
|
|
|
93
93
|
b ? i18nString(UIStrings.yes) : i18nString(UIStrings.no);
|
|
94
94
|
|
|
95
95
|
function linkifyIcon(iconType: string, title: string, eventHandler: () => (void|Promise<void>)): Element {
|
|
96
|
-
const icon =
|
|
96
|
+
const icon = createIcon(iconType, 'icon-link devtools-link');
|
|
97
97
|
const button = document.createElement('button');
|
|
98
98
|
UI.Tooltip.Tooltip.install(button, title);
|
|
99
99
|
button.classList.add('devtools-link', 'link-style', 'text-button');
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// Use of this source code is governed by a BSD-style license that can be
|
|
3
3
|
// found in the LICENSE file.
|
|
4
4
|
|
|
5
|
-
import '../../ui/
|
|
5
|
+
import '../../ui/kit/kit.js';
|
|
6
6
|
import '../../ui/legacy/legacy.js';
|
|
7
7
|
import '../../ui/components/adorners/adorners.js';
|
|
8
8
|
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
import * as i18n from '../../core/i18n/i18n.js';
|
|
6
6
|
import type * as Platform from '../../core/platform/platform.js';
|
|
7
7
|
import type * as SDK from '../../core/sdk/sdk.js';
|
|
8
|
-
import
|
|
8
|
+
import {createIcon} from '../../ui/kit/kit.js';
|
|
9
9
|
|
|
10
10
|
import {ApplicationPanelTreeElement, ExpandableApplicationPanelTreeElement} from './ApplicationPanelTreeElement.js';
|
|
11
11
|
import * as PreloadingHelper from './preloading/helper/helper.js';
|
|
@@ -45,7 +45,7 @@ class PreloadingTreeElementBase<View extends PreloadingRuleSetView|PreloadingAtt
|
|
|
45
45
|
this.#viewConstructor = viewConstructor;
|
|
46
46
|
this.#path = path;
|
|
47
47
|
|
|
48
|
-
const icon =
|
|
48
|
+
const icon = createIcon('speculative-loads');
|
|
49
49
|
this.setLeadingIcons([icon]);
|
|
50
50
|
this.#selected = false;
|
|
51
51
|
|
|
@@ -94,7 +94,7 @@ export class PreloadingSummaryTreeElement extends ExpandableApplicationPanelTree
|
|
|
94
94
|
constructor(panel: ResourcesPanel) {
|
|
95
95
|
super(panel, i18nString(UIStrings.speculativeLoads), '', '', 'preloading');
|
|
96
96
|
|
|
97
|
-
const icon =
|
|
97
|
+
const icon = createIcon('speculative-loads');
|
|
98
98
|
this.setLeadingIcons([icon]);
|
|
99
99
|
this.#selected = false;
|
|
100
100
|
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
import * as Host from '../../core/host/host.js';
|
|
6
6
|
import * as i18n from '../../core/i18n/i18n.js';
|
|
7
7
|
import type * as Platform from '../../core/platform/platform.js';
|
|
8
|
-
import
|
|
8
|
+
import {createIcon} from '../../ui/kit/kit.js';
|
|
9
9
|
|
|
10
10
|
import {ApplicationPanelTreeElement} from './ApplicationPanelTreeElement.js';
|
|
11
11
|
import {ReportingApiView} from './ReportingApiView.js';
|
|
@@ -25,7 +25,7 @@ export class ReportingApiTreeElement extends ApplicationPanelTreeElement {
|
|
|
25
25
|
|
|
26
26
|
constructor(storagePanel: ResourcesPanel) {
|
|
27
27
|
super(storagePanel, i18nString(UIStrings.reportingApi), false, 'reporting-api');
|
|
28
|
-
const icon =
|
|
28
|
+
const icon = createIcon('document');
|
|
29
29
|
this.setLeadingIcons([icon]);
|
|
30
30
|
}
|
|
31
31
|
|
|
@@ -8,7 +8,7 @@ import * as i18n from '../../core/i18n/i18n.js';
|
|
|
8
8
|
import type * as Platform from '../../core/platform/platform.js';
|
|
9
9
|
import * as SDK from '../../core/sdk/sdk.js';
|
|
10
10
|
import type * as Protocol from '../../generated/protocol.js';
|
|
11
|
-
import
|
|
11
|
+
import {createIcon} from '../../ui/kit/kit.js';
|
|
12
12
|
import * as UI from '../../ui/legacy/legacy.js';
|
|
13
13
|
|
|
14
14
|
import {ApplicationPanelTreeElement, ExpandableApplicationPanelTreeElement} from './ApplicationPanelTreeElement.js';
|
|
@@ -48,7 +48,7 @@ export class ServiceWorkerCacheTreeElement extends ExpandableApplicationPanelTre
|
|
|
48
48
|
super(
|
|
49
49
|
resourcesPanel, i18nString(UIStrings.cacheStorage), i18nString(UIStrings.noCacheStorage),
|
|
50
50
|
i18nString(UIStrings.cacheStorageDescription), 'cache-storage');
|
|
51
|
-
const icon =
|
|
51
|
+
const icon = createIcon('database');
|
|
52
52
|
this.setLink('https://developer.chrome.com/docs/devtools/storage/cache/' as Platform.DevToolsPath.UrlString);
|
|
53
53
|
this.setLeadingIcons([icon]);
|
|
54
54
|
this.swCacheModels = new Set();
|
|
@@ -175,7 +175,7 @@ export class SWCacheTreeElement extends ApplicationPanelTreeElement {
|
|
|
175
175
|
this.model = model;
|
|
176
176
|
this.cache = cache;
|
|
177
177
|
this.view = null;
|
|
178
|
-
const icon =
|
|
178
|
+
const icon = createIcon('table');
|
|
179
179
|
this.setLeadingIcons([icon]);
|
|
180
180
|
}
|
|
181
181
|
|
|
@@ -6,7 +6,7 @@ import * as Common from '../../core/common/common.js';
|
|
|
6
6
|
import * as i18n from '../../core/i18n/i18n.js';
|
|
7
7
|
import type * as Platform from '../../core/platform/platform.js';
|
|
8
8
|
import type * as Protocol from '../../generated/protocol.js';
|
|
9
|
-
import
|
|
9
|
+
import {createIcon} from '../../ui/kit/kit.js';
|
|
10
10
|
|
|
11
11
|
import {ApplicationPanelTreeElement} from './ApplicationPanelTreeElement.js';
|
|
12
12
|
import type {ResourcesPanel} from './ResourcesPanel.js';
|
|
@@ -29,7 +29,7 @@ export class SharedStorageListTreeElement extends ApplicationPanelTreeElement {
|
|
|
29
29
|
super(resourcesPanel, i18nString(UIStrings.sharedStorage), false, 'shared-storage');
|
|
30
30
|
this.#expandedSetting =
|
|
31
31
|
Common.Settings.Settings.instance().createSetting('resources-shared-storage-expanded', expandedSettingsDefault);
|
|
32
|
-
const sharedStorageIcon =
|
|
32
|
+
const sharedStorageIcon = createIcon('database');
|
|
33
33
|
this.setLeadingIcons([sharedStorageIcon]);
|
|
34
34
|
this.view = new SharedStorageEventsView();
|
|
35
35
|
}
|
|
@@ -7,8 +7,8 @@ import * as i18n from '../../core/i18n/i18n.js';
|
|
|
7
7
|
import type * as Platform from '../../core/platform/platform.js';
|
|
8
8
|
import * as SDK from '../../core/sdk/sdk.js';
|
|
9
9
|
import type * as Protocol from '../../generated/protocol.js';
|
|
10
|
-
import * as IconButton from '../../ui/components/icon_button/icon_button.js';
|
|
11
10
|
import * as LegacyWrapper from '../../ui/components/legacy_wrapper/legacy_wrapper.js';
|
|
11
|
+
import {createIcon} from '../../ui/kit/kit.js';
|
|
12
12
|
import * as UI from '../../ui/legacy/legacy.js';
|
|
13
13
|
|
|
14
14
|
import {IndexedDBTreeElement} from './ApplicationPanelSidebar.js';
|
|
@@ -49,7 +49,7 @@ export class StorageBucketsTreeParentElement extends ExpandableApplicationPanelT
|
|
|
49
49
|
super(
|
|
50
50
|
storagePanel, i18nString(UIStrings.storageBuckets), i18nString(UIStrings.noStorageBuckets),
|
|
51
51
|
i18nString(UIStrings.storageBucketsDescription), 'storage-buckets');
|
|
52
|
-
const icon =
|
|
52
|
+
const icon = createIcon('bucket');
|
|
53
53
|
this.setLeadingIcons([icon]);
|
|
54
54
|
this.setLink(
|
|
55
55
|
'https://github.com/WICG/storage-buckets/blob/gh-pages/explainer.md' as Platform.DevToolsPath.UrlString);
|
|
@@ -153,7 +153,7 @@ export class StorageBucketsTreeElement extends ExpandableApplicationPanelTreeEle
|
|
|
153
153
|
super(resourcesPanel, `${bucket.name} - ${origin}`, '', '', 'storage-bucket');
|
|
154
154
|
this.bucketModel = model;
|
|
155
155
|
this.storageBucketInfo = bucketInfo;
|
|
156
|
-
const icon =
|
|
156
|
+
const icon = createIcon('database');
|
|
157
157
|
this.setLeadingIcons([icon]);
|
|
158
158
|
}
|
|
159
159
|
|
|
@@ -9,8 +9,8 @@ import * as Platform from '../../core/platform/platform.js';
|
|
|
9
9
|
import * as SDK from '../../core/sdk/sdk.js';
|
|
10
10
|
import * as Protocol from '../../generated/protocol.js';
|
|
11
11
|
import type * as Buttons from '../../ui/components/buttons/buttons.js';
|
|
12
|
-
import * as IconButton from '../../ui/components/icon_button/icon_button.js';
|
|
13
12
|
import * as uiI18n from '../../ui/i18n/i18n.js';
|
|
13
|
+
import {Icon} from '../../ui/kit/kit.js';
|
|
14
14
|
import * as PerfUI from '../../ui/legacy/components/perf_ui/perf_ui.js';
|
|
15
15
|
import * as SettingsUI from '../../ui/legacy/components/settings_ui/settings_ui.js';
|
|
16
16
|
import * as UI from '../../ui/legacy/legacy.js';
|
|
@@ -520,7 +520,7 @@ export class StorageView extends UI.Widget.VBox {
|
|
|
520
520
|
{PH1: response.usage.toLocaleString(), PH2: response.quota.toLocaleString()}));
|
|
521
521
|
|
|
522
522
|
if (!response.overrideActive && response.quota < 125829120) { // 120 MB
|
|
523
|
-
const icon = new
|
|
523
|
+
const icon = new Icon();
|
|
524
524
|
icon.name = 'info';
|
|
525
525
|
icon.style.color = 'var(--icon-info)';
|
|
526
526
|
icon.classList.add('small');
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
import * as Host from '../../core/host/host.js';
|
|
6
6
|
import * as i18n from '../../core/i18n/i18n.js';
|
|
7
7
|
import type * as Platform from '../../core/platform/platform.js';
|
|
8
|
-
import
|
|
8
|
+
import {createIcon} from '../../ui/kit/kit.js';
|
|
9
9
|
|
|
10
10
|
import {ApplicationPanelTreeElement} from './ApplicationPanelTreeElement.js';
|
|
11
11
|
import * as ApplicationComponents from './components/components.js';
|
|
@@ -26,7 +26,7 @@ export class TrustTokensTreeElement extends ApplicationPanelTreeElement {
|
|
|
26
26
|
|
|
27
27
|
constructor(storagePanel: ResourcesPanel) {
|
|
28
28
|
super(storagePanel, i18nString(UIStrings.trustTokens), false, 'private-state-tokens');
|
|
29
|
-
const icon =
|
|
29
|
+
const icon = createIcon('database');
|
|
30
30
|
this.setLeadingIcons([icon]);
|
|
31
31
|
}
|
|
32
32
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// Use of this source code is governed by a BSD-style license that can be
|
|
3
3
|
// found in the LICENSE file.
|
|
4
4
|
|
|
5
|
-
import '../../../ui/
|
|
5
|
+
import '../../../ui/kit/kit.js';
|
|
6
6
|
import '../../../ui/components/report_view/report_view.js';
|
|
7
7
|
|
|
8
8
|
import * as Common from '../../../core/common/common.js';
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// Use of this source code is governed by a BSD-style license that can be
|
|
3
3
|
// found in the LICENSE file.
|
|
4
4
|
|
|
5
|
-
import '../../../ui/
|
|
5
|
+
import '../../../ui/kit/kit.js';
|
|
6
6
|
|
|
7
7
|
import * as Host from '../../../core/host/host.js';
|
|
8
8
|
import * as i18n from '../../../core/i18n/i18n.js';
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// Use of this source code is governed by a BSD-style license that can be
|
|
3
3
|
// found in the LICENSE file.
|
|
4
4
|
|
|
5
|
-
import '../../../ui/
|
|
5
|
+
import '../../../ui/kit/kit.js';
|
|
6
6
|
|
|
7
7
|
import * as i18n from '../../../core/i18n/i18n.js';
|
|
8
8
|
import type * as Protocol from '../../../generated/protocol.js';
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// Use of this source code is governed by a BSD-style license that can be
|
|
3
3
|
// found in the LICENSE file.
|
|
4
4
|
|
|
5
|
-
import '../../../ui/
|
|
5
|
+
import '../../../ui/kit/kit.js';
|
|
6
6
|
import '../../../ui/legacy/components/data_grid/data_grid.js';
|
|
7
7
|
|
|
8
8
|
import * as i18n from '../../../core/i18n/i18n.js';
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
/* eslint-disable @devtools/no-lit-render-outside-of-view */
|
|
5
5
|
|
|
6
6
|
import '../../../../ui/legacy/components/data_grid/data_grid.js';
|
|
7
|
-
import '../../../../ui/
|
|
7
|
+
import '../../../../ui/kit/kit.js';
|
|
8
8
|
|
|
9
9
|
import * as Common from '../../../../core/common/common.js';
|
|
10
10
|
import * as i18n from '../../../../core/i18n/i18n.js';
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
/* eslint-disable @devtools/no-lit-render-outside-of-view */
|
|
5
5
|
|
|
6
6
|
import '../../../../ui/legacy/components/data_grid/data_grid.js';
|
|
7
|
-
import '../../../../ui/
|
|
7
|
+
import '../../../../ui/kit/kit.js';
|
|
8
8
|
|
|
9
9
|
import * as Common from '../../../../core/common/common.js';
|
|
10
10
|
import * as i18n from '../../../../core/i18n/i18n.js';
|