mirror of
https://github.com/react/react-native-devtools-frontend.git
synced 2026-10-06 20:11:38 +08:00
The Network Conditions drawer allows emulating the User-Agent string. Previously, this functionality was not discoverable through the Command Menu when entering "User-Agent" (i.e. the literal HTTP Header name). This patch fixes that. Fixed: 1029495 Change-Id: Id9a7b26ff9652a7d13987404c798aa16fdb1eaf1 Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/1944330 Auto-Submit: Mathias Bynens <mathias@chromium.org> Reviewed-by: Changhao Han <changhaohan@chromium.org> Commit-Queue: Mathias Bynens <mathias@chromium.org>
231 lines
6.9 KiB
JSON
231 lines
6.9 KiB
JSON
{
|
|
"extensions": [
|
|
{
|
|
"type": "view",
|
|
"location": "panel",
|
|
"id": "network",
|
|
"title": "Network",
|
|
"order": 40,
|
|
"className": "Network.NetworkPanel"
|
|
},
|
|
{
|
|
"type": "@UI.ContextMenu.Provider",
|
|
"contextTypes": [
|
|
"SDK.NetworkRequest",
|
|
"SDK.Resource",
|
|
"Workspace.UISourceCode"
|
|
],
|
|
"className": "Network.NetworkPanel.ContextMenuProvider"
|
|
},
|
|
{
|
|
"type": "@Common.Revealer",
|
|
"contextTypes": [
|
|
"SDK.NetworkRequest"
|
|
],
|
|
"destination": "Network panel",
|
|
"className": "Network.NetworkPanel.RequestRevealer"
|
|
},
|
|
{
|
|
"type": "@Common.Revealer",
|
|
"contextTypes": [
|
|
"Network.UIRequestLocation"
|
|
],
|
|
"className": "Network.NetworkPanel.RequestLocationRevealer"
|
|
},
|
|
{
|
|
"type": "setting",
|
|
"category": "Network",
|
|
"title": "Color-code resource types",
|
|
"settingName": "networkColorCodeResourceTypes",
|
|
"settingType": "boolean",
|
|
"defaultValue": false,
|
|
"tags": "color code, resource type",
|
|
"options": [
|
|
{
|
|
"value": true,
|
|
"title": "Color code by resource type"
|
|
},
|
|
{
|
|
"value": false,
|
|
"title": "Use default colors"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "setting",
|
|
"category": "Network",
|
|
"title": "Group network log by frame",
|
|
"settingName": "network.group-by-frame",
|
|
"settingType": "boolean",
|
|
"defaultValue": false,
|
|
"tags": "network, frame, group",
|
|
"options": [
|
|
{
|
|
"value": true,
|
|
"title": "Group network log items by frame"
|
|
},
|
|
{
|
|
"value": false,
|
|
"title": "Don't group network log items by frame"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "action",
|
|
"actionId": "network.toggle-recording",
|
|
"iconClass": "largeicon-start-recording",
|
|
"toggleable": true,
|
|
"toggledIconClass": "largeicon-stop-recording",
|
|
"toggleWithRedColor": true,
|
|
"contextTypes": [
|
|
"Network.NetworkPanel"
|
|
],
|
|
"className": "Network.NetworkPanel.ActionDelegate",
|
|
"options": [
|
|
{
|
|
"value": true,
|
|
"title": "Record network log"
|
|
},
|
|
{
|
|
"value": false,
|
|
"title": "Stop recording network log"
|
|
}
|
|
],
|
|
"bindings": [
|
|
{
|
|
"platform": "windows,linux",
|
|
"shortcut": "Ctrl+E"
|
|
},
|
|
{
|
|
"platform": "mac",
|
|
"shortcut": "Meta+E"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "action",
|
|
"actionId": "network.hide-request-details",
|
|
"contextTypes": [
|
|
"Network.NetworkPanel"
|
|
],
|
|
"className": "Network.NetworkPanel.ActionDelegate",
|
|
"bindings": [
|
|
{
|
|
"shortcut": "Esc"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "view",
|
|
"location": "drawer-view",
|
|
"id": "network.blocked-urls",
|
|
"title": "Request blocking",
|
|
"persistence": "closeable",
|
|
"order": 60,
|
|
"className": "Network.BlockedURLsPane"
|
|
},
|
|
{
|
|
"type": "view",
|
|
"location": "drawer-view",
|
|
"id": "network.config",
|
|
"title": "Network conditions",
|
|
"persistence": "closeable",
|
|
"order": 40,
|
|
"className": "Network.NetworkConfigView",
|
|
"tags": "disk cache, network throttling, useragent, user agent, user-agent"
|
|
},
|
|
{
|
|
"type": "@UI.ViewLocationResolver",
|
|
"name": "network-sidebar",
|
|
"category": "Network",
|
|
"className": "Network.NetworkPanel"
|
|
},
|
|
{
|
|
"type": "view",
|
|
"location": "network-sidebar",
|
|
"id": "network.search-network-tab",
|
|
"title": "Search",
|
|
"persistence": "permanent",
|
|
"className": "Network.SearchNetworkView"
|
|
},
|
|
{
|
|
"type": "action",
|
|
"actionId": "network.search",
|
|
"title": "Search",
|
|
"className": "Network.NetworkPanel.ActionDelegate",
|
|
"contextTypes": [
|
|
"Network.NetworkPanel"
|
|
],
|
|
"category": "DevTools",
|
|
"bindings": [
|
|
{
|
|
"platform": "mac",
|
|
"shortcut": "Meta+F"
|
|
},
|
|
{
|
|
"platform": "windows,linux",
|
|
"shortcut": "Ctrl+F"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"dependencies": [
|
|
"search",
|
|
"source_frame",
|
|
"components",
|
|
"perf_ui",
|
|
"cookie_table",
|
|
"data_grid",
|
|
"browser_sdk",
|
|
"mobile_throttling",
|
|
"har_importer",
|
|
"persistence"
|
|
],
|
|
"scripts": [
|
|
"BinaryResourceView.js",
|
|
"BlockedURLsPane.js",
|
|
"EventSourceMessagesView.js",
|
|
"HARWriter.js",
|
|
"NetworkConfigView.js",
|
|
"NetworkDataGridNode.js",
|
|
"NetworkItemView.js",
|
|
"NetworkTimeCalculator.js",
|
|
"NetworkLogView.js",
|
|
"NetworkLogViewColumns.js",
|
|
"NetworkFrameGrouper.js",
|
|
"NetworkManageCustomHeadersView.js",
|
|
"NetworkSearchScope.js",
|
|
"NetworkWaterfallColumn.js",
|
|
"RequestCookiesView.js",
|
|
"RequestHeadersView.js",
|
|
"RequestHTMLView.js",
|
|
"RequestInitiatorView.js",
|
|
"RequestResponseView.js",
|
|
"RequestPreviewView.js",
|
|
"RequestTimingView.js",
|
|
"ResourceWebSocketFrameView.js",
|
|
"SignedExchangeInfoView.js",
|
|
"NetworkOverview.js",
|
|
"NetworkPanel.js"
|
|
],
|
|
"resources": [
|
|
"binaryResourceView.css",
|
|
"blockedURLsPane.css",
|
|
"eventSourceMessagesView.css",
|
|
"networkConfigView.css",
|
|
"networkLogView.css",
|
|
"networkManageCustomHeadersView.css",
|
|
"networkPanel.css",
|
|
"networkTimingTable.css",
|
|
"networkWaterfallColumn.css",
|
|
"requestCookiesView.css",
|
|
"requestHeadersTree.css",
|
|
"requestHeadersView.css",
|
|
"requestHTMLView.css",
|
|
"requestInitiatorView.css",
|
|
"signedExchangeInfoTree.css",
|
|
"signedExchangeInfoView.css",
|
|
"webSocketFrameView.css"
|
|
]
|
|
}
|