mirror of
https://github.com/facebook/react-native.git
synced 2026-11-18 20:19:07 +00:00
Update debugger-frontend from d8824de...e1dd7af (#54483)
Summary: Pull Request resolved: https://github.com/facebook/react-native/pull/54483 Changelog: [Internal] - Update `react-native/debugger-frontend` from d8824de...e1dd7af Resyncs `react-native/debugger-frontend` from GitHub - see `rn-chrome-devtools-frontend` [changelog](https://github.com/facebook/react-native-devtools-frontend/compare/d8824de5790a32c018ec9926a970daa7feb9a84c...e1dd7af9019d54f5a7b89d2ca09c2e63da02e76c). ### Changelog | Commit | Author | Date/Time | Subject | | ------ | ------ | --------- | ------- | | [e1dd7af90](https://github.com/facebook/react-native-devtools-frontend/commit/e1dd7af90) | Alex Hunt (hello@alexhunt.dev) | 2025-11-10T18:06:01+00:00 | [Remove network experiment and experimental icon (#220)](https://github.com/facebook/react-native-devtools-frontend/commit/e1dd7af90) | | [e1743557e](https://github.com/facebook/react-native-devtools-frontend/commit/e1743557e) | Alex Hunt (hello@alexhunt.dev) | 2025-11-07T18:02:38+00:00 | [Update Network list to use x-fb-friendly-name header (#221)](https://github.com/facebook/react-native-devtools-frontend/commit/e1743557e) | | [59c63cbe2](https://github.com/facebook/react-native-devtools-frontend/commit/59c63cbe2) | Alex Hunt (hello@alexhunt.dev) | 2025-11-06T19:13:11+00:00 | [Add conditional disabling of features incompatible with multiple hosts (#218)](https://github.com/facebook/react-native-devtools-frontend/commit/59c63cbe2) | | [d37d4264b](https://github.com/facebook/react-native-devtools-frontend/commit/d37d4264b) | Alex Hunt (hello@alexhunt.dev) | 2025-11-06T18:01:59+00:00 | [Add experimental Perf Issues sub-panel (#217)](https://github.com/facebook/react-native-devtools-frontend/commit/d37d4264b) | Reviewed By: cipolleschi Differential Revision: D86685451 fbshipit-source-id: 7f417f50eaa7fdd0de85ac05fc883806a011d308
This commit is contained in:
1 parent
4c732b4ccf
commit
f097ed28c1
20 files changed
+301
-230
No files matched your search
@@ -1,5 +1,5 @@
|
||||
@generated SignedSource<<b62ff235444c99d1d66a64ceb11e3bad>>
|
||||
Git revision: d8824de5790a32c018ec9926a970daa7feb9a84c
|
||||
@generated SignedSource<<e06b1f2e62286749dc811af700de2391>>
|
||||
Git revision: e1dd7af9019d54f5a7b89d2ca09c2e63da02e76c
|
||||
Built with --nohooks: false
|
||||
Is local checkout: false
|
||||
Remote URL: https://github.com/facebook/react-native-devtools-frontend
|
||||
|
||||
+1
-1
@@ -1 +1 @@
|
||||
{"core/common/ResourceType.ts | cspviolationreport":{"message":"CSPViolationReport"},"core/common/ResourceType.ts | css":{"message":"CSS"},"core/common/ResourceType.ts | directsocket":{"message":"DirectSocket"},"core/common/ResourceType.ts | doc":{"message":"Doc"},"core/common/ResourceType.ts | document":{"message":"Document"},"core/common/ResourceType.ts | eventsource":{"message":"EventSource"},"core/common/ResourceType.ts | fetch":{"message":"Fetch"},"core/common/ResourceType.ts | fetchAndXHR":{"message":"Fetch and XHR"},"core/common/ResourceType.ts | font":{"message":"Font"},"core/common/ResourceType.ts | image":{"message":"Image"},"core/common/ResourceType.ts | img":{"message":"Img"},"core/common/ResourceType.ts | javascript":{"message":"JavaScript"},"core/common/ResourceType.ts | js":{"message":"JS"},"core/common/ResourceType.ts | manifest":{"message":"Manifest"},"core/common/ResourceType.ts | media":{"message":"Media"},"core/common/ResourceType.ts | other":{"message":"Other"},"core/common/ResourceType.ts | ping":{"message":"Ping"},"core/common/ResourceType.ts | preflight":{"message":"Preflight"},"core/common/ResourceType.ts | script":{"message":"Script"},"core/common/ResourceType.ts | signedexchange":{"message":"SignedExchange"},"core/common/ResourceType.ts | socketShort":{"message":"Socket"},"core/common/ResourceType.ts | stylesheet":{"message":"Stylesheet"},"core/common/ResourceType.ts | texttrack":{"message":"TextTrack"},"core/common/ResourceType.ts | wasm":{"message":"Wasm"},"core/common/ResourceType.ts | webassembly":{"message":"WebAssembly"},"core/common/ResourceType.ts | webbundle":{"message":"WebBundle"},"core/common/ResourceType.ts | websocket":{"message":"WebSocket"},"core/common/ResourceType.ts | webtransport":{"message":"WebTransport"},"core/common/Revealer.ts | animationsPanel":{"message":"Animations panel"},"core/common/Revealer.ts | applicationPanel":{"message":"Application panel"},"core/common/Revealer.ts | changesDrawer":{"message":"Changes drawer"},"core/common/Revealer.ts | developerResourcesPanel":{"message":"Developer Resources panel"},"core/common/Revealer.ts | elementsPanel":{"message":"Elements panel"},"core/common/Revealer.ts | issuesView":{"message":"Issues view"},"core/common/Revealer.ts | memoryInspectorPanel":{"message":"Memory inspector panel"},"core/common/Revealer.ts | networkPanel":{"message":"Network panel"},"core/common/Revealer.ts | securityPanel":{"message":"Security panel"},"core/common/Revealer.ts | sourcesPanel":{"message":"Sources panel"},"core/common/Revealer.ts | stylesSidebar":{"message":"styles sidebar"},"core/common/Revealer.ts | timelinePanel":{"message":"Performance panel"},"core/common/SettingRegistration.ts | adorner":{"message":"Adorner"},"core/common/SettingRegistration.ts | ai":{"message":"AI"},"core/common/SettingRegistration.ts | appearance":{"message":"Appearance"},"core/common/SettingRegistration.ts | console":{"message":"Console"},"core/common/SettingRegistration.ts | debugger":{"message":"Debugger"},"core/common/SettingRegistration.ts | elements":{"message":"Elements"},"core/common/SettingRegistration.ts | extension":{"message":"Extension"},"core/common/SettingRegistration.ts | global":{"message":"Global"},"core/common/SettingRegistration.ts | grid":{"message":"Grid"},"core/common/SettingRegistration.ts | memory":{"message":"Memory"},"core/common/SettingRegistration.ts | mobile":{"message":"Mobile"},"core/common/SettingRegistration.ts | network":{"message":"Network"},"core/common/SettingRegistration.ts | performance":{"message":"Performance"},"core/common/SettingRegistration.ts | persistence":{"message":"Persistence"},"core/common/SettingRegistration.ts | privacy":{"message":"Privacy"},"core/common/SettingRegistration.ts | rendering":{"message":"Rendering"},"core/common/SettingRegistration.ts | sources":{"message":"Sources"},"core/common/SettingRegistration.ts | sync":{"message":"Sync"},"core/host/InspectorFrontendHost.ts | devtoolsS":{"message":"DevTools - {PH1}"},"core/host/ResourceLoader.ts | cacheError":{"message":"Cache error"},"core/host/ResourceLoader.ts | certificateError":{"message":"Certificate error"},"core/host/ResourceLoader.ts | certificateManagerError":{"message":"Certificate manager error"},"core/host/ResourceLoader.ts | connectionError":{"message":"Connection error"},"core/host/ResourceLoader.ts | decodingDataUrlFailed":{"message":"Decoding Data URL failed"},"core/host/ResourceLoader.ts | dnsResolverError":{"message":"DNS resolver error"},"core/host/ResourceLoader.ts | ftpError":{"message":"FTP error"},"core/host/ResourceLoader.ts | httpError":{"message":"HTTP error"},"core/host/ResourceLoader.ts | httpErrorStatusCodeSS":{"message":"HTTP error: status code {PH1}, {PH2}"},"core/host/ResourceLoader.ts | invalidUrl":{"message":"Invalid URL"},"core/host/ResourceLoader.ts | signedExchangeError":{"message":"Signed Exchange error"},"core/host/ResourceLoader.ts | systemError":{"message":"System error"},"core/host/ResourceLoader.ts | Line truncated
|
||||
{"core/common/ResourceType.ts | cspviolationreport":{"message":"CSPViolationReport"},"core/common/ResourceType.ts | css":{"message":"CSS"},"core/common/ResourceType.ts | directsocket":{"message":"DirectSocket"},"core/common/ResourceType.ts | doc":{"message":"Doc"},"core/common/ResourceType.ts | document":{"message":"Document"},"core/common/ResourceType.ts | eventsource":{"message":"EventSource"},"core/common/ResourceType.ts | fetch":{"message":"Fetch"},"core/common/ResourceType.ts | fetchAndXHR":{"message":"Fetch and XHR"},"core/common/ResourceType.ts | font":{"message":"Font"},"core/common/ResourceType.ts | image":{"message":"Image"},"core/common/ResourceType.ts | img":{"message":"Img"},"core/common/ResourceType.ts | javascript":{"message":"JavaScript"},"core/common/ResourceType.ts | js":{"message":"JS"},"core/common/ResourceType.ts | manifest":{"message":"Manifest"},"core/common/ResourceType.ts | media":{"message":"Media"},"core/common/ResourceType.ts | other":{"message":"Other"},"core/common/ResourceType.ts | ping":{"message":"Ping"},"core/common/ResourceType.ts | preflight":{"message":"Preflight"},"core/common/ResourceType.ts | script":{"message":"Script"},"core/common/ResourceType.ts | signedexchange":{"message":"SignedExchange"},"core/common/ResourceType.ts | socketShort":{"message":"Socket"},"core/common/ResourceType.ts | stylesheet":{"message":"Stylesheet"},"core/common/ResourceType.ts | texttrack":{"message":"TextTrack"},"core/common/ResourceType.ts | wasm":{"message":"Wasm"},"core/common/ResourceType.ts | webassembly":{"message":"WebAssembly"},"core/common/ResourceType.ts | webbundle":{"message":"WebBundle"},"core/common/ResourceType.ts | websocket":{"message":"WebSocket"},"core/common/ResourceType.ts | webtransport":{"message":"WebTransport"},"core/common/Revealer.ts | animationsPanel":{"message":"Animations panel"},"core/common/Revealer.ts | applicationPanel":{"message":"Application panel"},"core/common/Revealer.ts | changesDrawer":{"message":"Changes drawer"},"core/common/Revealer.ts | developerResourcesPanel":{"message":"Developer Resources panel"},"core/common/Revealer.ts | elementsPanel":{"message":"Elements panel"},"core/common/Revealer.ts | issuesView":{"message":"Issues view"},"core/common/Revealer.ts | memoryInspectorPanel":{"message":"Memory inspector panel"},"core/common/Revealer.ts | networkPanel":{"message":"Network panel"},"core/common/Revealer.ts | securityPanel":{"message":"Security panel"},"core/common/Revealer.ts | sourcesPanel":{"message":"Sources panel"},"core/common/Revealer.ts | stylesSidebar":{"message":"styles sidebar"},"core/common/Revealer.ts | timelinePanel":{"message":"Performance panel"},"core/common/SettingRegistration.ts | adorner":{"message":"Adorner"},"core/common/SettingRegistration.ts | ai":{"message":"AI"},"core/common/SettingRegistration.ts | appearance":{"message":"Appearance"},"core/common/SettingRegistration.ts | console":{"message":"Console"},"core/common/SettingRegistration.ts | debugger":{"message":"Debugger"},"core/common/SettingRegistration.ts | elements":{"message":"Elements"},"core/common/SettingRegistration.ts | extension":{"message":"Extension"},"core/common/SettingRegistration.ts | global":{"message":"Global"},"core/common/SettingRegistration.ts | grid":{"message":"Grid"},"core/common/SettingRegistration.ts | memory":{"message":"Memory"},"core/common/SettingRegistration.ts | mobile":{"message":"Mobile"},"core/common/SettingRegistration.ts | network":{"message":"Network"},"core/common/SettingRegistration.ts | performance":{"message":"Performance"},"core/common/SettingRegistration.ts | persistence":{"message":"Persistence"},"core/common/SettingRegistration.ts | privacy":{"message":"Privacy"},"core/common/SettingRegistration.ts | rendering":{"message":"Rendering"},"core/common/SettingRegistration.ts | sources":{"message":"Sources"},"core/common/SettingRegistration.ts | sync":{"message":"Sync"},"core/host/InspectorFrontendHost.ts | devtoolsS":{"message":"DevTools - {PH1}"},"core/host/ResourceLoader.ts | cacheError":{"message":"Cache error"},"core/host/ResourceLoader.ts | certificateError":{"message":"Certificate error"},"core/host/ResourceLoader.ts | certificateManagerError":{"message":"Certificate manager error"},"core/host/ResourceLoader.ts | connectionError":{"message":"Connection error"},"core/host/ResourceLoader.ts | decodingDataUrlFailed":{"message":"Decoding Data URL failed"},"core/host/ResourceLoader.ts | dnsResolverError":{"message":"DNS resolver error"},"core/host/ResourceLoader.ts | ftpError":{"message":"FTP error"},"core/host/ResourceLoader.ts | httpError":{"message":"HTTP error"},"core/host/ResourceLoader.ts | httpErrorStatusCodeSS":{"message":"HTTP error: status code {PH1}, {PH2}"},"core/host/ResourceLoader.ts | invalidUrl":{"message":"Invalid URL"},"core/host/ResourceLoader.ts | signedExchangeError":{"message":"Signed Exchange error"},"core/host/ResourceLoader.ts | systemError":{"message":"System error"},"core/host/ResourceLoader.ts | Line truncated
|
||||
Vendored
+1
-1
@@ -1 +1 @@
|
||||
import*as e from"../common/common.js";import*as t from"../host/host.js";class n{static patch(i){!function i(o,r){o.url&&n.isPlatformPath(o.url,t.Platform.isWin())&&(o.url=e.ParsedURL.ParsedURL.rawPathToUrlString(o.url));for(const e of Object.entries(o)){const t=e[0],n=e[1],o=r+"."+t;".result.result.value"!==o&&null!==n&&"object"==typeof n&&i(n,o)}}(i,"")}static isPlatformPath(e,t){if(t){return/^([a-z]:[\/\\]|\\\\)/i.test(e)}return!!e.length&&"/"===e[0]}}var i=Object.freeze({__proto__:null,NodeURL:n});const o=-32015,r=-32e3,a=-32001,s=e=>{const[t,n]=e.split(".");return[t,n]},p=(e,t)=>`${e}.${t}`;class l{agentPrototypes=new Map;#e=!1;#t=new Map;typeMap=new Map;enumMap=new Map;getOrCreateEventParameterNamesForDomain(e){let t=this.#t.get(e);return t||(t=new Map,this.#t.set(e,t)),t}getOrCreateEventParameterNamesForDomainForTesting(e){return this.getOrCreateEventParameterNamesForDomain(e)}getEventParameterNames(){return this.#t}static reportProtocolError(e,t){console.error(e+": "+JSON.stringify(t))}static reportProtocolWarning(e,t){console.warn(e+": "+JSON.stringify(t))}isInitialized(){return this.#e}agentPrototype(e){let t=this.agentPrototypes.get(e);return t||(t=new y(e),this.agentPrototypes.set(e,t)),t}registerCommand(e,t,n,i){const[o,r]=s(e);this.agentPrototype(o).registerCommand(r,t,n,i),this.#e=!0}registerEnum(e,t){const[n,i]=s(e);globalThis.Protocol[n]||(globalThis.Protocol[n]={}),globalThis.Protocol[n][i]=t,this.enumMap.set(e,t),this.#e=!0}registerType(e,t){this.typeMap.set(e,t),this.#e=!0}registerEvent(e,t){const n=e.split(".")[0];this.getOrCreateEventParameterNamesForDomain(n).set(e,t),this.#e=!0}}let d;const c={dumpProtocol:null,deprecatedRunAfterPendingDispatches:null,sendRawMessage:null,suppressRequestErrors:!1,onMessageSent:null,onMessageReceived:null},u=new Set(["CSS.takeComputedStyleUpdates"]);class m{#n;#i=1;#o=0;#r=new Set;#a=new Map;#s=[];constructor(e){this.#n=e,c.deprecatedRunAfterPendingDispatches=this.deprecatedRunAfterPendingDispatches.bind(this),c.sendRawMessage=this.sendRawMessageForTesting.bind(this),this.#n.setOnMessage(this.onMessage.bind(this)),this.#n.setOnDisconnect((e=>{const t=this.#a.get("");t&&t.target.dispose(e)}))}registerSession(e,t,n){if(n)for(const e of this.#a.values())if(e.proxyConnection){console.error("Multiple simultaneous proxy connections are currently unsupported");break}this.#a.set(t,{target:e,callbacks:new Map,proxyConnection:n})}unregisterSession(e){const t=this.#a.get(e);if(t){for(const e of t.callbacks.values())m.dispatchUnregisterSessionError(e);this.#a.delete(e)}}getTargetBySessionId(e){const t=this.#a.get(e||"");return t?t.target:null}nextMessageId(){return this.#i++}connection(){return this.#n}sendMessage(e,t,n,i,o){const r=this.nextMessageId(),a={id:r,method:n};if(i&&(a.params=i),e&&(a.sessionId=e),c.dumpProtocol&&c.dumpProtocol("frontend: "+JSON.stringify(a)),c.onMessageSent){const o=JSON.parse(JSON.stringify(i||{}));c.onMessageSent({domain:t,method:n,params:o,id:r,sessionId:e},this.getTargetBySessionId(e))}++this.#o,u.has(n)&&this.#r.add(r);const s=this.#a.get(e);s&&(s.callbacks.set(r,{callback:o,method:n}),this.#n.sendRawMessage(JSON.stringify(a)))}sendRawMessageForTesting(e,t,n,i=""){const o=e.split(".")[0];this.sendMessage(i,o,e,t,n||(()=>{}))}onMessage(e){if(c.dumpProtocol&&c.dumpProtocol("backend: "+("string"==typeof e?e:JSON.stringify(e))),c.onMessageReceived){const t=JSON.parse("string"==typeof e?e:JSON.stringify(e));c.onMessageReceived(t,this.getTargetBySessionId(t.sessionId))}const t="string"==typeof e?JSON.parse(e):e;let i=!1;for(const e of this.#a.values())e.proxyConnection&&(e.proxyConnection.onMessage?(e.proxyConnection.onMessage(t),i=!0):l.reportProtocolError("Protocol Error: the session has a proxyConnection with no _onMessage",t));const o=t.sessionId||"",r=this.#a.get(o);if(r){if(!r.proxyConnection)if(r.target.getNeedsNodeJSPatching()&&n.patch(t),void 0!==t.id){const e=r.callbacks.get(t.id);if(r.callbacks.delete(t.id),!e){if(t.error?.code===a)return;return void(i||l.reportProtocolError("Protocol Error: the message with wrong id",t))}e.callback(t.error||null,t.result||null),--this.#o,this.#r.delete(t.id),this.#s.length&&!this.hasOutstandingNonLongPollingRequests()&&this.deprecatedRunAfterPendingDispatches()}else{if(void 0===t.method)return void l.reportProtocolError("Protocol Error: the message without method",t);const e=t;r.target.dispatch(e)}}else i||l.reportProtocolError("Protocol Error: the message with wrong session id",t)}hasOutstandingNonLongPollingRequests(){return this.#o-this.#r.size>0}deprecatedRunAfterPendingDispatches(e){e&&this.#s.push(e),window.setTimeout((()=>{this.hasOutstandingNonLongPollingRequests()?this.deprecatedRunAfterPendingDispatches():this.executeAfterPendingDispatches()}),0)}executeAfterPendingDispatches(){if(!this.hasOutstandingNonLongPollingRequests()){const e=this.#s;this.#s=[];for(let t=0;t<e.length;++t)e[t]()}}static dispatchConnectionError(e,t){const n={message:`Connection is closed, can't dispatch pendi
Line truncated
|
||||
import*as e from"../common/common.js";import*as t from"../host/host.js";class n{static patch(i){!function i(o,r){o.url&&n.isPlatformPath(o.url,t.Platform.isWin())&&(o.url=e.ParsedURL.ParsedURL.rawPathToUrlString(o.url));for(const e of Object.entries(o)){const t=e[0],n=e[1],o=r+"."+t;".result.result.value"!==o&&null!==n&&"object"==typeof n&&i(n,o)}}(i,"")}static isPlatformPath(e,t){if(t){return/^([a-z]:[\/\\]|\\\\)/i.test(e)}return!!e.length&&"/"===e[0]}}var i=Object.freeze({__proto__:null,NodeURL:n});const o=-32015,r=-32e3,a=-32001,s=e=>{const[t,n]=e.split(".");return[t,n]},p=(e,t)=>`${e}.${t}`;class l{agentPrototypes=new Map;#e=!1;#t=new Map;typeMap=new Map;enumMap=new Map;getOrCreateEventParameterNamesForDomain(e){let t=this.#t.get(e);return t||(t=new Map,this.#t.set(e,t)),t}getOrCreateEventParameterNamesForDomainForTesting(e){return this.getOrCreateEventParameterNamesForDomain(e)}getEventParameterNames(){return this.#t}static reportProtocolError(e,t){console.error(e+": "+JSON.stringify(t))}static reportProtocolWarning(e,t){console.warn(e+": "+JSON.stringify(t))}isInitialized(){return this.#e}agentPrototype(e){let t=this.agentPrototypes.get(e);return t||(t=new y(e),this.agentPrototypes.set(e,t)),t}registerCommand(e,t,n,i){const[o,r]=s(e);this.agentPrototype(o).registerCommand(r,t,n,i),this.#e=!0}registerEnum(e,t){const[n,i]=s(e);globalThis.Protocol[n]||(globalThis.Protocol[n]={}),globalThis.Protocol[n][i]=t,this.enumMap.set(e,t),this.#e=!0}registerType(e,t){this.typeMap.set(e,t),this.#e=!0}registerEvent(e,t){const n=e.split(".")[0];this.getOrCreateEventParameterNamesForDomain(n).set(e,t),this.#e=!0}}let d;const c={dumpProtocol:null,deprecatedRunAfterPendingDispatches:null,sendRawMessage:null,suppressRequestErrors:!1,onMessageSent:null,onMessageReceived:null},u=new Set(["CSS.takeComputedStyleUpdates"]);class m{#n;#i=1;#o=0;#r=new Set;#a=new Map;#s=[];constructor(e){this.#n=e,c.deprecatedRunAfterPendingDispatches=this.deprecatedRunAfterPendingDispatches.bind(this),c.sendRawMessage=this.sendRawMessageForTesting.bind(this),this.#n.setOnMessage(this.onMessage.bind(this)),this.#n.setOnDisconnect((e=>{const t=this.#a.get("");t&&t.target.dispose(e)}))}registerSession(e,t,n){if(n)for(const e of this.#a.values())if(e.proxyConnection){console.error("Multiple simultaneous proxy connections are currently unsupported");break}this.#a.set(t,{target:e,callbacks:new Map,proxyConnection:n})}unregisterSession(e){const t=this.#a.get(e);if(t){for(const e of t.callbacks.values())m.dispatchUnregisterSessionError(e);this.#a.delete(e)}}getTargetBySessionId(e){const t=this.#a.get(e||"");return t?t.target:null}nextMessageId(){return this.#i++}connection(){return this.#n}sendMessage(e,t,n,i,o){const r=this.nextMessageId(),a={id:r,method:n};if(i&&(a.params=i),e&&(a.sessionId=e),c.dumpProtocol&&c.dumpProtocol("frontend: "+JSON.stringify(a)),c.onMessageSent){const o=JSON.parse(JSON.stringify(i||{}));c.onMessageSent({domain:t,method:n,params:o,id:r,sessionId:e},this.getTargetBySessionId(e))}++this.#o,u.has(n)&&this.#r.add(r);const s=this.#a.get(e);s&&(s.callbacks.set(r,{callback:o,method:n}),this.#n.sendRawMessage(JSON.stringify(a)))}sendRawMessageForTesting(e,t,n,i=""){const o=e.split(".")[0];this.sendMessage(i,o,e,t,n||(()=>{}))}onMessage(e){if(c.dumpProtocol&&c.dumpProtocol("backend: "+("string"==typeof e?e:JSON.stringify(e))),c.onMessageReceived){const t=JSON.parse("string"==typeof e?e:JSON.stringify(e));c.onMessageReceived(t,this.getTargetBySessionId(t.sessionId))}const t="string"==typeof e?JSON.parse(e):e;let i=!1;for(const e of this.#a.values())e.proxyConnection&&(e.proxyConnection.onMessage?(e.proxyConnection.onMessage(t),i=!0):l.reportProtocolError("Protocol Error: the session has a proxyConnection with no _onMessage",t));const o=t.sessionId||"",r=this.#a.get(o);if(r){if(!r.proxyConnection)if(r.target.getNeedsNodeJSPatching()&&n.patch(t),void 0!==t.id){const e=r.callbacks.get(t.id);if(r.callbacks.delete(t.id),!e){if(t.error?.code===a)return;return void(i||l.reportProtocolError("Protocol Error: the message with wrong id",t))}e.callback(t.error||null,t.result||null),--this.#o,this.#r.delete(t.id),this.#s.length&&!this.hasOutstandingNonLongPollingRequests()&&this.deprecatedRunAfterPendingDispatches()}else{if(void 0===t.method)return void l.reportProtocolError("Protocol Error: the message without method",t);const e=t;r.target.dispatch(e)}}else i||l.reportProtocolError("Protocol Error: the message with wrong session id",t)}hasOutstandingNonLongPollingRequests(){return this.#o-this.#r.size>0}deprecatedRunAfterPendingDispatches(e){e&&this.#s.push(e),window.setTimeout((()=>{this.hasOutstandingNonLongPollingRequests()?this.deprecatedRunAfterPendingDispatches():this.executeAfterPendingDispatches()}),0)}executeAfterPendingDispatches(){if(!this.hasOutstandingNonLongPollingRequests()){const e=this.#s;this.#s=[];for(let t=0;t<e.length;++t)e[t]()}}static dispatchConnectionError(e,t){const n={message:`Connection is closed, can't dispatch pendi
Line truncated
|
||||
Vendored
+1
-1
@@ -1 +1 @@
|
||||
import*as e from"../root/root.js";const t=e.Runtime.RNExperimentName,i={didInitializeExperiments:!1,isReactNativeEntryPoint:!1};class n{name;title;unstable;docLink;feedbackLink;enabledByDefault;constructor(e){this.name=e.name,this.title=e.title,this.unstable=e.unstable,this.docLink=e.docLink,this.feedbackLink=e.feedbackLink,this.enabledByDefault=function(e,t){if(null==e)return()=>t;if("boolean"==typeof e)return()=>e;return e}(e.enabledByDefault,!1)}}const r=new class{#e=new Map;#t=new Set;register(e){if(i.didInitializeExperiments)throw new Error("Experiments must be registered before constructing MainImpl");const{name:t}=e;if(this.#e.has(t))throw new Error(`React Native Experiment ${t} is already registered`);this.#e.set(t,new n(e))}enableExperimentsByDefault(e){if(i.didInitializeExperiments)throw new Error("Experiments must be configured before constructing MainImpl");for(const i of e)if(Object.prototype.hasOwnProperty.call(t,i)){const e=this.#e.get(i);if(!e)throw new Error(`React Native Experiment ${i} is not registered`);e.enabledByDefault=()=>!0}else this.#t.add(i)}copyInto(e,t=""){for(const[n,r]of this.#e)e.register(n,t+r.title,r.unstable,r.docLink,r.feedbackLink),r.enabledByDefault({isReactNativeEntryPoint:i.isReactNativeEntryPoint})&&e.enableExperimentsByDefault([n]);for(const t of this.#t)e.enableExperimentsByDefault([t]);i.didInitializeExperiments=!0}};r.register({name:t.JS_HEAP_PROFILER_ENABLE,title:"Enable Heap Profiler (Memory Panel)",unstable:!1,enabledByDefault:({isReactNativeEntryPoint:e})=>!e}),r.register({name:t.REACT_NATIVE_SPECIFIC_UI,title:"Show React Native-specific UI",unstable:!1,enabledByDefault:({isReactNativeEntryPoint:e})=>e}),r.register({name:t.ENABLE_NETWORK_PANEL,title:"Enable Network panel",unstable:!0,enabledByDefault:()=>!1});var a=Object.freeze({__proto__:null,Instance:r,RNExperimentName:t,setIsReactNativeEntryPoint:function(e){if(i.didInitializeExperiments)throw new Error("setIsReactNativeEntryPoint must be called before constructing MainImpl");i.isReactNativeEntryPoint=e}});export{a as RNExperimentsImpl};
|
||||
import*as e from"../root/root.js";const t=e.Runtime.RNExperimentName,i={didInitializeExperiments:!1,isReactNativeEntryPoint:!1};class n{name;title;unstable;docLink;feedbackLink;enabledByDefault;constructor(e){this.name=e.name,this.title=e.title,this.unstable=e.unstable,this.docLink=e.docLink,this.feedbackLink=e.feedbackLink,this.enabledByDefault=function(e,t){if(null==e)return()=>t;if("boolean"==typeof e)return()=>e;return e}(e.enabledByDefault,!1)}}const r=new class{#e=new Map;#t=new Set;register(e){if(i.didInitializeExperiments)throw new Error("Experiments must be registered before constructing MainImpl");const{name:t}=e;if(this.#e.has(t))throw new Error(`React Native Experiment ${t} is already registered`);this.#e.set(t,new n(e))}enableExperimentsByDefault(e){if(i.didInitializeExperiments)throw new Error("Experiments must be configured before constructing MainImpl");for(const i of e)if(Object.prototype.hasOwnProperty.call(t,i)){const e=this.#e.get(i);if(!e)throw new Error(`React Native Experiment ${i} is not registered`);e.enabledByDefault=()=>!0}else this.#t.add(i)}copyInto(e,t=""){for(const[n,r]of this.#e)e.register(n,t+r.title,r.unstable,r.docLink,r.feedbackLink),r.enabledByDefault({isReactNativeEntryPoint:i.isReactNativeEntryPoint})&&e.enableExperimentsByDefault([n]);for(const t of this.#t)e.enableExperimentsByDefault([t]);i.didInitializeExperiments=!0}};r.register({name:t.JS_HEAP_PROFILER_ENABLE,title:"Enable Heap Profiler (Memory Panel)",unstable:!1,enabledByDefault:({isReactNativeEntryPoint:e})=>!e}),r.register({name:t.REACT_NATIVE_SPECIFIC_UI,title:"Show React Native-specific UI",unstable:!1,enabledByDefault:({isReactNativeEntryPoint:e})=>e});var a=Object.freeze({__proto__:null,Instance:r,RNExperimentName:t,setIsReactNativeEntryPoint:function(e){if(i.didInitializeExperiments)throw new Error("setIsReactNativeEntryPoint must be called before constructing MainImpl");i.isReactNativeEntryPoint=e}});export{a as RNExperimentsImpl};
|
||||
@@ -1 +1 @@
|
||||
import*as e from"../platform/platform.js";const t=new URLSearchParams(location.search);let n,r,s="";function a(){return window.location.pathname}function i(e){return["node_app","js_app"].some((t=>e.includes(t)))}class o{constructor(){}static instance(e={forceNew:null}){const{forceNew:t}=e;return n&&!t||(n=new o),n}static removeInstance(){n=void 0}static queryParam(e){return t.get(e)}static setQueryParamForTesting(e,n){t.set(e,n)}static isNode(){return void 0===r&&(r=i(a())),r}static setPlatform(e){s=e}static platform(){return s}static isDescriptorEnabled(e){const{experiment:t}=e;if("*"===t)return!0;if(t&&t.startsWith("!")&&h.isEnabled(t.substring(1)))return!1;if(t&&!t.startsWith("!")&&!h.isEnabled(t))return!1;const{condition:n}=e;return!n||n(_)}loadLegacyModule(e){console.log("Loading legacy module: "+e);return import(`../../${e}`).then((t=>(console.log("Loaded legacy module: "+e),t)))}}class l{#e=[];#t=new Set;#n=new Set;#r=new Set;#s=new Set;#a=new c;allConfigurableExperiments(){const e=[];for(const t of this.#e)this.#n.has(t.name)||e.push(t);return e}register(t,n,r,s,a){if(this.#t.has(t))throw new Error(`Duplicate registration of experiment '${t}'`);this.#t.add(t),this.#e.push(new m(this,t,n,Boolean(r),s??e.DevToolsPath.EmptyUrlString,a??e.DevToolsPath.EmptyUrlString))}isEnabled(e){return this.checkExperiment(e),!1!==this.#a.get(e)&&(!(!this.#n.has(e)&&!this.#r.has(e))||(!!this.#s.has(e)||Boolean(this.#a.get(e))))}setEnabled(e,t){this.checkExperiment(e),this.#a.set(e,t)}enableExperimentsTransiently(e){for(const t of e)this.checkExperiment(t),this.#n.add(t)}enableExperimentsByDefault(e){for(const t of e)this.checkExperiment(t),this.#r.add(t)}setServerEnabledExperiments(e){for(const t of e)this.checkExperiment(t),this.#s.add(t)}enableForTest(e){this.checkExperiment(e),this.#n.add(e)}disableForTest(e){this.checkExperiment(e),this.#n.delete(e)}clearForTest(){this.#e=[],this.#t.clear(),this.#n.clear(),this.#r.clear(),this.#s.clear()}cleanUpStaleExperiments(){this.#a.cleanUpStaleExperiments(this.#t)}checkExperiment(e){if(!this.#t.has(e))throw new Error(`Unknown experiment '${e}'`)}}class c{#e={};constructor(){try{const e=self.localStorage?.getItem("experiments");e&&(this.#e=JSON.parse(e))}catch{console.error("Failed to parse localStorage['experiments']")}}get(e){return this.#e[e]}set(e,t){this.#e[e]=t,this.#i()}cleanUpStaleExperiments(e){for(const[t]of Object.entries(this.#e))e.has(t)||delete this.#e[t];this.#i()}#i(){self.localStorage?.setItem("experiments",JSON.stringify(this.#e))}}class m{name;title;unstable;docLink;feedbackLink;#e;constructor(e,t,n,r,s,a){this.name=t,this.title=n,this.unstable=r,this.docLink=s,this.feedbackLink=a,this.#e=e}isEnabled(){return this.#e.isEnabled(this.name)}setEnabled(e){this.#e.setEnabled(this.name,e)}}const h=new l;var E,p,d,u;!function(e){e.REACT_NATIVE_SPECIFIC_UI="react-native-specific-ui",e.JS_HEAP_PROFILER_ENABLE="js-heap-profiler-enable",e.ENABLE_NETWORK_PANEL="enable-network-panel"}(E||(E={})),function(e){e.NOT_SOURCES_HIDE_ADD_FOLDER="!sources.hide_add_folder",e.REACT_NATIVE_UNSTABLE_NETWORK_PANEL="unstable_enableNetworkPanel"}(p||(p={})),function(e){e[e.ALLOW=0]="ALLOW",e[e.ALLOW_WITHOUT_LOGGING=1]="ALLOW_WITHOUT_LOGGING",e[e.DISABLE=2]="DISABLE"}(d||(d={})),function(e){e.ALL_SCRIPTS="ALL_SCRIPTS",e.SIDE_EFFECT_FREE_SCRIPTS_ONLY="SIDE_EFFECT_FREE_SCRIPTS_ONLY",e.NO_SCRIPTS="NO_SCRIPTS"}(u||(u={}));const _=Object.create(null),f={canDock:()=>Boolean(o.queryParam("can_dock")),notSourcesHideAddFolder:()=>Boolean(o.queryParam(p.NOT_SOURCES_HIDE_ADD_FOLDER)),reactNativeUnstableNetworkPanel:()=>Boolean(o.queryParam(p.REACT_NATIVE_UNSTABLE_NETWORK_PANEL))||h.isEnabled("enable-network-panel")};var x=Object.freeze({__proto__:null,get ConditionName(){return p},Experiment:m,ExperimentsSupport:l,get GenAiEnterprisePolicyValue(){return d},get HostConfigFreestylerExecutionMode(){return u},get RNExperimentName(){return E},Runtime:o,conditions:f,experiments:h,getChromeVersion:()=>{const e=navigator.userAgent.match(/(?:^|\W)(?:Chrome|HeadlessChrome)\/(\S+)/);return e&&e.length>1?e[1]:""},getPathName:a,getRemoteBase:function(e=self.location.toString()){const t=new URL(e).searchParams.get("remoteBase");if(!t)return null;const n=/\/serve_file\/(@[0-9a-zA-Z]+)\/?$/.exec(t);return n?{base:`devtools://devtools/remote/serve_file/${n[1]}/`,version:n[1]}:null},hostConfig:_,isNodeEntry:i});export{x as Runtime};
|
||||
import*as e from"../platform/platform.js";const t=new URLSearchParams(location.search);let n,r,s="";function i(){return window.location.pathname}function a(e){return["node_app","js_app"].some((t=>e.includes(t)))}class o{constructor(){}static instance(e={forceNew:null}){const{forceNew:t}=e;return n&&!t||(n=new o),n}static removeInstance(){n=void 0}static queryParam(e){return t.get(e)}static setQueryParamForTesting(e,n){t.set(e,n)}static isNode(){return void 0===r&&(r=a(i())),r}static setPlatform(e){s=e}static platform(){return s}static isDescriptorEnabled(e){const{experiment:t}=e;if("*"===t)return!0;if(t&&t.startsWith("!")&&h.isEnabled(t.substring(1)))return!1;if(t&&!t.startsWith("!")&&!h.isEnabled(t))return!1;const{condition:n}=e;return!n||n(f)}loadLegacyModule(e){console.log("Loading legacy module: "+e);return import(`../../${e}`).then((t=>(console.log("Loaded legacy module: "+e),t)))}}class l{#e=[];#t=new Set;#n=new Set;#r=new Set;#s=new Set;#i=new c;allConfigurableExperiments(){const e=[];for(const t of this.#e)this.#n.has(t.name)||e.push(t);return e}register(t,n,r,s,i){if(this.#t.has(t))throw new Error(`Duplicate registration of experiment '${t}'`);this.#t.add(t),this.#e.push(new m(this,t,n,Boolean(r),s??e.DevToolsPath.EmptyUrlString,i??e.DevToolsPath.EmptyUrlString))}isEnabled(e){return this.checkExperiment(e),!1!==this.#i.get(e)&&(!(!this.#n.has(e)&&!this.#r.has(e))||(!!this.#s.has(e)||Boolean(this.#i.get(e))))}setEnabled(e,t){this.checkExperiment(e),this.#i.set(e,t)}enableExperimentsTransiently(e){for(const t of e)this.checkExperiment(t),this.#n.add(t)}enableExperimentsByDefault(e){for(const t of e)this.checkExperiment(t),this.#r.add(t)}setServerEnabledExperiments(e){for(const t of e)this.checkExperiment(t),this.#s.add(t)}enableForTest(e){this.checkExperiment(e),this.#n.add(e)}disableForTest(e){this.checkExperiment(e),this.#n.delete(e)}clearForTest(){this.#e=[],this.#t.clear(),this.#n.clear(),this.#r.clear(),this.#s.clear()}cleanUpStaleExperiments(){this.#i.cleanUpStaleExperiments(this.#t)}checkExperiment(e){if(!this.#t.has(e))throw new Error(`Unknown experiment '${e}'`)}}class c{#e={};constructor(){try{const e=self.localStorage?.getItem("experiments");e&&(this.#e=JSON.parse(e))}catch{console.error("Failed to parse localStorage['experiments']")}}get(e){return this.#e[e]}set(e,t){this.#e[e]=t,this.#a()}cleanUpStaleExperiments(e){for(const[t]of Object.entries(this.#e))e.has(t)||delete this.#e[t];this.#a()}#a(){self.localStorage?.setItem("experiments",JSON.stringify(this.#e))}}class m{name;title;unstable;docLink;feedbackLink;#e;constructor(e,t,n,r,s,i){this.name=t,this.title=n,this.unstable=r,this.docLink=s,this.feedbackLink=i,this.#e=e}isEnabled(){return this.#e.isEnabled(this.name)}setEnabled(e){this.#e.setEnabled(this.name,e)}}const h=new l;var p,E,d,u;!function(e){e.REACT_NATIVE_SPECIFIC_UI="react-native-specific-ui",e.JS_HEAP_PROFILER_ENABLE="js-heap-profiler-enable"}(p||(p={})),function(e){e.NOT_SOURCES_HIDE_ADD_FOLDER="!sources.hide_add_folder",e.REACT_NATIVE_UNSTABLE_NETWORK_PANEL="unstable_enableNetworkPanel"}(E||(E={})),function(e){e[e.ALLOW=0]="ALLOW",e[e.ALLOW_WITHOUT_LOGGING=1]="ALLOW_WITHOUT_LOGGING",e[e.DISABLE=2]="DISABLE"}(d||(d={})),function(e){e.ALL_SCRIPTS="ALL_SCRIPTS",e.SIDE_EFFECT_FREE_SCRIPTS_ONLY="SIDE_EFFECT_FREE_SCRIPTS_ONLY",e.NO_SCRIPTS="NO_SCRIPTS"}(u||(u={}));const f=Object.create(null),x={canDock:()=>Boolean(o.queryParam("can_dock")),notSourcesHideAddFolder:()=>Boolean(o.queryParam(E.NOT_SOURCES_HIDE_ADD_FOLDER)),reactNativeExpoNetworkPanel:()=>Boolean(o.queryParam(E.REACT_NATIVE_UNSTABLE_NETWORK_PANEL))};var _=Object.freeze({__proto__:null,get ConditionName(){return E},Experiment:m,ExperimentsSupport:l,get GenAiEnterprisePolicyValue(){return d},get HostConfigFreestylerExecutionMode(){return u},get RNExperimentName(){return p},Runtime:o,conditions:x,experiments:h,getChromeVersion:()=>{const e=navigator.userAgent.match(/(?:^|\W)(?:Chrome|HeadlessChrome)\/(\S+)/);return e&&e.length>1?e[1]:""},getPathName:i,getRemoteBase:function(e=self.location.toString()){const t=new URL(e).searchParams.get("remoteBase");if(!t)return null;const n=/\/serve_file\/(@[0-9a-zA-Z]+)\/?$/.exec(t);return n?{base:`devtools://devtools/remote/serve_file/${n[1]}/`,version:n[1]}:null},hostConfig:f,isNodeEntry:a});export{_ as Runtime};
|
||||
@@ -1 +1 @@
|
||||
import*as e from"../common/common.js";import*as t from"../i18n/i18n.js";const a={preserveLogUponNavigation:"Preserve log upon navigation",doNotPreserveLogUponNavigation:"Do not preserve log upon navigation",pauseOnExceptions:"Pause on exceptions",doNotPauseOnExceptions:"Do not pause on exceptions",disableJavascript:"Disable JavaScript",enableJavascript:"Enable JavaScript",disableAsyncStackTraces:"Disable async stack traces",doNotCaptureAsyncStackTraces:"Do not capture async stack traces",captureAsyncStackTraces:"Capture async stack traces",showRulersOnHover:"Show rulers on hover",doNotShowRulersOnHover:"Do not show rulers on hover",showAreaNames:"Show area names",showGridNamedAreas:"Show grid named areas",doNotShowGridNamedAreas:"Do not show grid named areas",showTrackSizes:"Show track sizes",showGridTrackSizes:"Show grid track sizes",doNotShowGridTrackSizes:"Do not show grid track sizes",extendGridLines:"Extend grid lines",doNotExtendGridLines:"Do not extend grid lines",showLineLabels:"Show line labels",hideLineLabels:"Hide line labels",showLineNumbers:"Show line numbers",showLineNames:"Show line names",showPaintFlashingRectangles:"Show paint flashing rectangles",hidePaintFlashingRectangles:"Hide paint flashing rectangles",showLayoutShiftRegions:"Show layout shift regions",hideLayoutShiftRegions:"Hide layout shift regions",highlightAdFrames:"Highlight ad frames",doNotHighlightAdFrames:"Do not highlight ad frames",showLayerBorders:"Show layer borders",hideLayerBorders:"Hide layer borders",showFramesPerSecondFpsMeter:"Show frames per second (FPS) meter",hideFramesPerSecondFpsMeter:"Hide frames per second (FPS) meter",showScrollPerformanceBottlenecks:"Show scroll performance bottlenecks",hideScrollPerformanceBottlenecks:"Hide scroll performance bottlenecks",emulateAFocusedPage:"Emulate a focused page",doNotEmulateAFocusedPage:"Do not emulate a focused page",doNotEmulateCssMediaType:"Do not emulate CSS media type",noEmulation:"No emulation",emulateCssPrintMediaType:"Emulate CSS print media type",print:"print",emulateCssScreenMediaType:"Emulate CSS screen media type",screen:"screen",query:"query",emulateCssMediaType:"Emulate CSS media type",doNotEmulateCss:"Do not emulate CSS {PH1}",emulateCss:"Emulate CSS {PH1}",emulateCssMediaFeature:"Emulate CSS media feature {PH1}",doNotEmulateAnyVisionDeficiency:"Do not emulate any vision deficiency",emulateBlurredVision:"Emulate blurred vision",emulateReducedContrast:"Emulate reduced contrast",blurredVision:"Blurred vision",reducedContrast:"Reduced contrast",emulateProtanopia:"Emulate protanopia (no red)",protanopia:"Protanopia (no red)",emulateDeuteranopia:"Emulate deuteranopia (no green)",deuteranopia:"Deuteranopia (no green)",emulateTritanopia:"Emulate tritanopia (no blue)",tritanopia:"Tritanopia (no blue)",emulateAchromatopsia:"Emulate achromatopsia (no color)",achromatopsia:"Achromatopsia (no color)",emulateVisionDeficiencies:"Emulate vision deficiencies",disableLocalFonts:"Disable local fonts",enableLocalFonts:"Enable local fonts",disableAvifFormat:"Disable `AVIF` format",enableAvifFormat:"Enable `AVIF` format",disableWebpFormat:"Disable `WebP` format",enableWebpFormat:"Enable `WebP` format",customFormatters:"Custom formatters",networkRequestBlocking:"Network request blocking",enableNetworkRequestBlocking:"Enable network request blocking",disableNetworkRequestBlocking:"Disable network request blocking",enableCache:"Enable cache",disableCache:"Disable cache while DevTools is open",emulateAutoDarkMode:"Emulate auto dark mode",enableRemoteFileLoading:"Allow `DevTools` to load resources, such as source maps, from remote file paths. Disabled by default for security reasons.",networkCacheExplanation:"Disabling the network cache will simulate a network experience similar to a first time visitor."},s=t.i18n.registerUIStrings("core/sdk/sdk-meta.ts",a),o=t.i18n.getLazilyComputedLocalizedString.bind(void 0,s);e.Settings.registerSettingExtension({storageType:"Synced",settingName:"skip-stack-frames-pattern",settingType:"regex",defaultValue:""}),e.Settings.registerSettingExtension({storageType:"Synced",settingName:"skip-content-scripts",settingType:"boolean",defaultValue:!0}),e.Settings.registerSettingExtension({storageType:"Synced",settingName:"automatically-ignore-list-known-third-party-scripts",settingType:"boolean",defaultValue:!0}),e.Settings.registerSettingExtension({storageType:"Synced",settingName:"skip-anonymous-scripts",settingType:"boolean",defaultValue:!1}),e.Settings.registerSettingExtension({storageType:"Synced",settingName:"enable-ignore-listing",settingType:"boolean",defaultValue:!0}),e.Settings.registerSettingExtension({category:"CONSOLE",storageType:"Synced",title:o(a.preserveLogUponNavigation),settingName:"preserve-console-log",settingType:"boolean",defaultValue:!1,options:[{value:!0,title:o(a.preserveLogUponNavigation)},{value:!1,title:o(a.doNotPreserveLogUponNavigation)}]}),e.Settings.registerSettingExtension({category:"DEBUGGER",settingName:"pause-on-exceptLine truncated
|
||||
import*as e from"../common/common.js";import*as t from"../i18n/i18n.js";const a={preserveLogUponNavigation:"Preserve log upon navigation",doNotPreserveLogUponNavigation:"Do not preserve log upon navigation",pauseOnExceptions:"Pause on exceptions",doNotPauseOnExceptions:"Do not pause on exceptions",disableJavascript:"Disable JavaScript",enableJavascript:"Enable JavaScript",disableAsyncStackTraces:"Disable async stack traces",doNotCaptureAsyncStackTraces:"Do not capture async stack traces",captureAsyncStackTraces:"Capture async stack traces",showRulersOnHover:"Show rulers on hover",doNotShowRulersOnHover:"Do not show rulers on hover",showAreaNames:"Show area names",showGridNamedAreas:"Show grid named areas",doNotShowGridNamedAreas:"Do not show grid named areas",showTrackSizes:"Show track sizes",showGridTrackSizes:"Show grid track sizes",doNotShowGridTrackSizes:"Do not show grid track sizes",extendGridLines:"Extend grid lines",doNotExtendGridLines:"Do not extend grid lines",showLineLabels:"Show line labels",hideLineLabels:"Hide line labels",showLineNumbers:"Show line numbers",showLineNames:"Show line names",showPaintFlashingRectangles:"Show paint flashing rectangles",hidePaintFlashingRectangles:"Hide paint flashing rectangles",showLayoutShiftRegions:"Show layout shift regions",hideLayoutShiftRegions:"Hide layout shift regions",highlightAdFrames:"Highlight ad frames",doNotHighlightAdFrames:"Do not highlight ad frames",showLayerBorders:"Show layer borders",hideLayerBorders:"Hide layer borders",showFramesPerSecondFpsMeter:"Show frames per second (FPS) meter",hideFramesPerSecondFpsMeter:"Hide frames per second (FPS) meter",showScrollPerformanceBottlenecks:"Show scroll performance bottlenecks",hideScrollPerformanceBottlenecks:"Hide scroll performance bottlenecks",emulateAFocusedPage:"Emulate a focused page",doNotEmulateAFocusedPage:"Do not emulate a focused page",doNotEmulateCssMediaType:"Do not emulate CSS media type",noEmulation:"No emulation",emulateCssPrintMediaType:"Emulate CSS print media type",print:"print",emulateCssScreenMediaType:"Emulate CSS screen media type",screen:"screen",query:"query",emulateCssMediaType:"Emulate CSS media type",doNotEmulateCss:"Do not emulate CSS {PH1}",emulateCss:"Emulate CSS {PH1}",emulateCssMediaFeature:"Emulate CSS media feature {PH1}",doNotEmulateAnyVisionDeficiency:"Do not emulate any vision deficiency",emulateBlurredVision:"Emulate blurred vision",emulateReducedContrast:"Emulate reduced contrast",blurredVision:"Blurred vision",reducedContrast:"Reduced contrast",emulateProtanopia:"Emulate protanopia (no red)",protanopia:"Protanopia (no red)",emulateDeuteranopia:"Emulate deuteranopia (no green)",deuteranopia:"Deuteranopia (no green)",emulateTritanopia:"Emulate tritanopia (no blue)",tritanopia:"Tritanopia (no blue)",emulateAchromatopsia:"Emulate achromatopsia (no color)",achromatopsia:"Achromatopsia (no color)",emulateVisionDeficiencies:"Emulate vision deficiencies",disableLocalFonts:"Disable local fonts",enableLocalFonts:"Enable local fonts",disableAvifFormat:"Disable `AVIF` format",enableAvifFormat:"Enable `AVIF` format",disableWebpFormat:"Disable `WebP` format",enableWebpFormat:"Enable `WebP` format",customFormatters:"Custom formatters",networkRequestBlocking:"Network request blocking",enableNetworkRequestBlocking:"Enable network request blocking",disableNetworkRequestBlocking:"Disable network request blocking",enableCache:"Enable cache",disableCache:"Disable cache while DevTools is open",emulateAutoDarkMode:"Emulate auto dark mode",enableRemoteFileLoading:"Allow `DevTools` to load resources, such as source maps, from remote file paths. Disabled by default for security reasons.",networkCacheExplanation:"Disabling the network cache will simulate a network experience similar to a first time visitor."},s=t.i18n.registerUIStrings("core/sdk/sdk-meta.ts",a),o=t.i18n.getLazilyComputedLocalizedString.bind(void 0,s);e.Settings.registerSettingExtension({storageType:"Synced",settingName:"skip-stack-frames-pattern",settingType:"regex",defaultValue:""}),e.Settings.registerSettingExtension({storageType:"Synced",settingName:"skip-content-scripts",settingType:"boolean",defaultValue:!0}),e.Settings.registerSettingExtension({storageType:"Synced",settingName:"automatically-ignore-list-known-third-party-scripts",settingType:"boolean",defaultValue:!0}),e.Settings.registerSettingExtension({storageType:"Synced",settingName:"skip-anonymous-scripts",settingType:"boolean",defaultValue:!1}),e.Settings.registerSettingExtension({storageType:"Synced",settingName:"enable-ignore-listing",settingType:"boolean",defaultValue:!0}),e.Settings.registerSettingExtension({category:"CONSOLE",storageType:"Synced",title:o(a.preserveLogUponNavigation),settingName:"preserve-console-log",settingType:"boolean",defaultValue:!1,options:[{value:!0,title:o(a.preserveLogUponNavigation)},{value:!1,title:o(a.doNotPreserveLogUponNavigation)}]}),e.Settings.registerSettingExtension({category:"DEBUGGER",settingName:"pause-on-exceptLine truncated
|
||||
@@ -1 +1 @@
|
||||
import*as e from"../common/common.js";import*as t from"../../models/text_utils/text_utils.js";import*as n from"../i18n/i18n.js";import*as r from"../platform/platform.js";import{assertNotNullOrUndefined as s,UserVisibleError as i}from"../platform/platform.js";import*as o from"../root/root.js";import*as a from"../host/host.js";import*as l from"../protocol_client/protocol_client.js";import*as d from"../../third_party/codemirror.next/codemirror.next.js";const c=new Map;class h extends e.ObjectWrapper.ObjectWrapper{#e;constructor(e){super(),this.#e=e}target(){return this.#e}async preSuspendModel(e){}async suspendModel(e){}async resumeModel(){}async postResumeModel(){}dispose(){}static register(e,t){if(t.early&&!t.autostart)throw new Error(`Error registering model ${e.name}: early models must be autostarted.`);c.set(e,t)}static get registeredModels(){return c}}var u=Object.freeze({__proto__:null,SDKModel:h});const g=[{inherited:!0,name:"-webkit-border-horizontal-spacing"},{name:"-webkit-border-image"},{inherited:!0,name:"-webkit-border-vertical-spacing"},{keywords:["stretch","start","center","end","baseline"],name:"-webkit-box-align"},{keywords:["slice","clone"],name:"-webkit-box-decoration-break"},{keywords:["normal","reverse"],name:"-webkit-box-direction"},{name:"-webkit-box-flex"},{name:"-webkit-box-ordinal-group"},{keywords:["horizontal","vertical"],name:"-webkit-box-orient"},{keywords:["start","center","end","justify"],name:"-webkit-box-pack"},{name:"-webkit-box-reflect"},{longhands:["break-after"],name:"-webkit-column-break-after"},{longhands:["break-before"],name:"-webkit-column-break-before"},{longhands:["break-inside"],name:"-webkit-column-break-inside"},{inherited:!0,name:"-webkit-font-smoothing"},{inherited:!0,keywords:["auto","loose","normal","strict","after-white-space","anywhere"],name:"-webkit-line-break"},{keywords:["none"],name:"-webkit-line-clamp"},{inherited:!0,name:"-webkit-locale"},{longhands:["-webkit-mask-box-image-source","-webkit-mask-box-image-slice","-webkit-mask-box-image-width","-webkit-mask-box-image-outset","-webkit-mask-box-image-repeat"],name:"-webkit-mask-box-image"},{name:"-webkit-mask-box-image-outset"},{name:"-webkit-mask-box-image-repeat"},{name:"-webkit-mask-box-image-slice"},{name:"-webkit-mask-box-image-source"},{name:"-webkit-mask-box-image-width"},{name:"-webkit-mask-position-x"},{name:"-webkit-mask-position-y"},{name:"-webkit-perspective-origin-x"},{name:"-webkit-perspective-origin-y"},{inherited:!0,keywords:["logical","visual"],name:"-webkit-rtl-ordering"},{inherited:!0,name:"-webkit-ruby-position"},{inherited:!0,name:"-webkit-tap-highlight-color"},{inherited:!0,name:"-webkit-text-combine"},{inherited:!0,name:"-webkit-text-decorations-in-effect"},{inherited:!0,name:"-webkit-text-fill-color"},{inherited:!0,name:"-webkit-text-orientation"},{inherited:!0,keywords:["none","disc","circle","square"],name:"-webkit-text-security"},{inherited:!0,longhands:["-webkit-text-stroke-width","-webkit-text-stroke-color"],name:"-webkit-text-stroke"},{inherited:!0,name:"-webkit-text-stroke-color"},{inherited:!0,name:"-webkit-text-stroke-width"},{name:"-webkit-transform-origin-x"},{name:"-webkit-transform-origin-y"},{name:"-webkit-transform-origin-z"},{keywords:["auto","none","element"],name:"-webkit-user-drag"},{inherited:!0,keywords:["read-only","read-write","read-write-plaintext-only"],name:"-webkit-user-modify"},{inherited:!0,name:"-webkit-writing-mode"},{inherited:!0,keywords:["auto","currentcolor"],name:"accent-color"},{name:"additive-symbols"},{name:"align-content"},{name:"align-items"},{name:"align-self"},{keywords:["auto","baseline","alphabetic","ideographic","middle","central","mathematical","before-edge","text-before-edge","after-edge","text-after-edge","hanging"],name:"alignment-baseline"},{longhands:["-webkit-border-horizontal-spacing","-webkit-border-vertical-spacing","-webkit-box-align","-webkit-box-decoration-break","-webkit-box-direction","-webkit-box-flex","-webkit-box-ordinal-group","-webkit-box-orient","-webkit-box-pack","-webkit-box-reflect","-webkit-font-smoothing","-webkit-line-break","-webkit-line-clamp","-webkit-locale","-webkit-mask-box-image-outset","-webkit-mask-box-image-repeat","-webkit-mask-box-image-slice","-webkit-mask-box-image-source","-webkit-mask-box-image-width","-webkit-mask-position-x","-webkit-mask-position-y","-webkit-rtl-ordering","-webkit-ruby-position","-webkit-tap-highlight-color","-webkit-text-combine","-webkit-text-decorations-in-effect","-webkit-text-fill-color","-webkit-text-orientation","-webkit-text-security","-webkit-text-stroke-color","-webkit-text-stroke-width","-webkit-user-drag","-webkit-writing-mode","accent-color","additive-symbols","align-content","align-items","align-self","alignment-baseline","anchor-name","anchor-scope","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range-end","animation-raLine truncated
|
||||
import*as e from"../common/common.js";import*as t from"../../models/text_utils/text_utils.js";import*as n from"../i18n/i18n.js";import*as r from"../platform/platform.js";import{assertNotNullOrUndefined as s,UserVisibleError as i}from"../platform/platform.js";import*as o from"../root/root.js";import*as a from"../host/host.js";import*as l from"../protocol_client/protocol_client.js";import*as d from"../../third_party/codemirror.next/codemirror.next.js";const c=new Map;class h extends e.ObjectWrapper.ObjectWrapper{#e;constructor(e){super(),this.#e=e}target(){return this.#e}async preSuspendModel(e){}async suspendModel(e){}async resumeModel(){}async postResumeModel(){}dispose(){}static register(e,t){if(t.early&&!t.autostart)throw new Error(`Error registering model ${e.name}: early models must be autostarted.`);c.set(e,t)}static get registeredModels(){return c}}var u=Object.freeze({__proto__:null,SDKModel:h});const g=[{inherited:!0,name:"-webkit-border-horizontal-spacing"},{name:"-webkit-border-image"},{inherited:!0,name:"-webkit-border-vertical-spacing"},{keywords:["stretch","start","center","end","baseline"],name:"-webkit-box-align"},{keywords:["slice","clone"],name:"-webkit-box-decoration-break"},{keywords:["normal","reverse"],name:"-webkit-box-direction"},{name:"-webkit-box-flex"},{name:"-webkit-box-ordinal-group"},{keywords:["horizontal","vertical"],name:"-webkit-box-orient"},{keywords:["start","center","end","justify"],name:"-webkit-box-pack"},{name:"-webkit-box-reflect"},{longhands:["break-after"],name:"-webkit-column-break-after"},{longhands:["break-before"],name:"-webkit-column-break-before"},{longhands:["break-inside"],name:"-webkit-column-break-inside"},{inherited:!0,name:"-webkit-font-smoothing"},{inherited:!0,keywords:["auto","loose","normal","strict","after-white-space","anywhere"],name:"-webkit-line-break"},{keywords:["none"],name:"-webkit-line-clamp"},{inherited:!0,name:"-webkit-locale"},{longhands:["-webkit-mask-box-image-source","-webkit-mask-box-image-slice","-webkit-mask-box-image-width","-webkit-mask-box-image-outset","-webkit-mask-box-image-repeat"],name:"-webkit-mask-box-image"},{name:"-webkit-mask-box-image-outset"},{name:"-webkit-mask-box-image-repeat"},{name:"-webkit-mask-box-image-slice"},{name:"-webkit-mask-box-image-source"},{name:"-webkit-mask-box-image-width"},{name:"-webkit-mask-position-x"},{name:"-webkit-mask-position-y"},{name:"-webkit-perspective-origin-x"},{name:"-webkit-perspective-origin-y"},{inherited:!0,keywords:["logical","visual"],name:"-webkit-rtl-ordering"},{inherited:!0,name:"-webkit-ruby-position"},{inherited:!0,name:"-webkit-tap-highlight-color"},{inherited:!0,name:"-webkit-text-combine"},{inherited:!0,name:"-webkit-text-decorations-in-effect"},{inherited:!0,name:"-webkit-text-fill-color"},{inherited:!0,name:"-webkit-text-orientation"},{inherited:!0,keywords:["none","disc","circle","square"],name:"-webkit-text-security"},{inherited:!0,longhands:["-webkit-text-stroke-width","-webkit-text-stroke-color"],name:"-webkit-text-stroke"},{inherited:!0,name:"-webkit-text-stroke-color"},{inherited:!0,name:"-webkit-text-stroke-width"},{name:"-webkit-transform-origin-x"},{name:"-webkit-transform-origin-y"},{name:"-webkit-transform-origin-z"},{keywords:["auto","none","element"],name:"-webkit-user-drag"},{inherited:!0,keywords:["read-only","read-write","read-write-plaintext-only"],name:"-webkit-user-modify"},{inherited:!0,name:"-webkit-writing-mode"},{inherited:!0,keywords:["auto","currentcolor"],name:"accent-color"},{name:"additive-symbols"},{name:"align-content"},{name:"align-items"},{name:"align-self"},{keywords:["auto","baseline","alphabetic","ideographic","middle","central","mathematical","before-edge","text-before-edge","after-edge","text-after-edge","hanging"],name:"alignment-baseline"},{longhands:["-webkit-border-horizontal-spacing","-webkit-border-vertical-spacing","-webkit-box-align","-webkit-box-decoration-break","-webkit-box-direction","-webkit-box-flex","-webkit-box-ordinal-group","-webkit-box-orient","-webkit-box-pack","-webkit-box-reflect","-webkit-font-smoothing","-webkit-line-break","-webkit-line-clamp","-webkit-locale","-webkit-mask-box-image-outset","-webkit-mask-box-image-repeat","-webkit-mask-box-image-slice","-webkit-mask-box-image-source","-webkit-mask-box-image-width","-webkit-mask-position-x","-webkit-mask-position-y","-webkit-rtl-ordering","-webkit-ruby-position","-webkit-tap-highlight-color","-webkit-text-combine","-webkit-text-decorations-in-effect","-webkit-text-fill-color","-webkit-text-orientation","-webkit-text-security","-webkit-text-stroke-color","-webkit-text-stroke-width","-webkit-user-drag","-webkit-writing-mode","accent-color","additive-symbols","align-content","align-items","align-self","alignment-baseline","anchor-name","anchor-scope","animation-composition","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-range-end","animation-raLine truncated
|
||||
Vendored
+1
-1
@@ -1 +1 @@
|
||||
import"../shell/shell.js";import*as e from"../../core/i18n/i18n.js";import*as t from"../../ui/legacy/legacy.js";import*as o from"../../core/common/common.js";import*as i from"../../core/root/root.js";import*as n from"../../core/sdk/sdk.js";import*as a from"../../models/extensions/extensions.js";import*as r from"../../models/workspace/workspace.js";import*as s from"../../panels/network/forward/forward.js";import*as l from"../../panels/security/security.js";import*as c from"../../ui/components/legacy_wrapper/legacy_wrapper.js";import*as d from"../../panels/application/preloading/helper/helper.js";import*as g from"../../models/issues_manager/issues_manager.js";import*as w from"../main/main.js";const m={cssOverview:"CSS overview",showCssOverview:"Show CSS overview"},p=e.i18n.registerUIStrings("panels/css_overview/css_overview-meta.ts",m),u=e.i18n.getLazilyComputedLocalizedString.bind(void 0,p);let y;t.ViewManager.registerViewExtension({location:"panel",id:"cssoverview",commandPrompt:u(m.showCssOverview),title:u(m.cssOverview),order:95,persistence:"closeable",async loadView(){const e=await async function(){return y||(y=await import("../../panels/css_overview/css_overview.js")),y}();return new e.CSSOverviewPanel.CSSOverviewPanel(new e.CSSOverviewController.OverviewController)},isPreviewFeature:!0});const h={showElements:"Show Elements",elements:"Elements",showEventListeners:"Show Event Listeners",eventListeners:"Event Listeners",showProperties:"Show Properties",properties:"Properties",showStackTrace:"Show Stack Trace",stackTrace:"Stack Trace",showLayout:"Show Layout",layout:"Layout",hideElement:"Hide element",editAsHtml:"Edit as HTML",duplicateElement:"Duplicate element",undo:"Undo",redo:"Redo",captureAreaScreenshot:"Capture area screenshot",selectAnElementInThePageTo:"Select an element in the page to inspect it",newStyleRule:"New Style Rule",refreshEventListeners:"Refresh event listeners",wordWrap:"Word wrap",enableDomWordWrap:"Enable `DOM` word wrap",disableDomWordWrap:"Disable `DOM` word wrap",showHtmlComments:"Show `HTML` comments",hideHtmlComments:"Hide `HTML` comments",revealDomNodeOnHover:"Reveal `DOM` node on hover",showDetailedInspectTooltip:"Show detailed inspect tooltip",showCSSDocumentationTooltip:"Show CSS documentation tooltip",copyStyles:"Copy styles",showUserAgentShadowDOM:"Show user agent shadow `DOM`",showComputedStyles:"Show Computed Styles",showStyles:"Show Styles",toggleEyeDropper:"Toggle eye dropper"},v=e.i18n.registerUIStrings("panels/elements/elements-meta.ts",h),R=e.i18n.getLazilyComputedLocalizedString.bind(void 0,v);let S,E;async function A(){return S||(S=await import("../../panels/elements/elements.js")),S}function b(e){return void 0===S?[]:e(S)}t.ViewManager.registerViewExtension({location:"panel",id:"elements",commandPrompt:R(h.showElements),title:R(h.elements),order:10,persistence:"permanent",hasToolbar:!1,loadView:async()=>(await A()).ElementsPanel.ElementsPanel.instance()}),t.ActionRegistration.registerActionExtension({actionId:"elements.show-styles",category:"ELEMENTS",title:R(h.showStyles),loadActionDelegate:async()=>new((await A()).ElementsPanel.ElementsActionDelegate)}),t.ActionRegistration.registerActionExtension({actionId:"elements.show-computed",category:"ELEMENTS",title:R(h.showComputedStyles),loadActionDelegate:async()=>new((await A()).ElementsPanel.ElementsActionDelegate)}),t.ViewManager.registerViewExtension({location:"elements-sidebar",id:"elements.event-listeners",commandPrompt:R(h.showEventListeners),title:R(h.eventListeners),order:5,hasToolbar:!0,persistence:"permanent",loadView:async()=>(await A()).EventListenersWidget.EventListenersWidget.instance()}),t.ViewManager.registerViewExtension({location:"elements-sidebar",id:"elements.dom-properties",commandPrompt:R(h.showProperties),title:R(h.properties),order:7,persistence:"permanent",loadView:async()=>new((await A()).PropertiesWidget.PropertiesWidget)}),t.ViewManager.registerViewExtension({experiment:"capture-node-creation-stacks",location:"elements-sidebar",id:"elements.dom-creation",commandPrompt:R(h.showStackTrace),title:R(h.stackTrace),order:10,persistence:"permanent",loadView:async()=>new((await A()).NodeStackTraceWidget.NodeStackTraceWidget)}),t.ViewManager.registerViewExtension({location:"elements-sidebar",id:"elements.layout",commandPrompt:R(h.showLayout),title:R(h.layout),order:4,persistence:"permanent",loadView:async()=>(await async function(){return E||(E=await import("../../panels/elements/components/components.js")),E}()).LayoutPane.LayoutPane.instance().wrapper}),t.ActionRegistration.registerActionExtension({actionId:"elements.hide-element",category:"ELEMENTS",title:R(h.hideElement),loadActionDelegate:async()=>new((await A()).ElementsPanel.ElementsActionDelegate),contextTypes:()=>b((e=>[e.ElementsPanel.ElementsPanel])),bindings:[{shortcut:"H"}]}),t.ActionRegistration.registerActionExtension({actionId:"elements.toggle-eye-dropper",category:"ELEMENTS",title:R(h.toggleEyeDropper),loadActionDelegate:async()Line truncated
|
||||
import"../shell/shell.js";import*as e from"../../core/i18n/i18n.js";import*as t from"../../ui/legacy/legacy.js";import*as o from"../../core/common/common.js";import*as i from"../../core/root/root.js";import*as n from"../../core/sdk/sdk.js";import*as a from"../../models/extensions/extensions.js";import*as r from"../../models/workspace/workspace.js";import*as s from"../../panels/network/forward/forward.js";import*as l from"../../panels/security/security.js";import*as c from"../../ui/components/legacy_wrapper/legacy_wrapper.js";import*as d from"../../panels/application/preloading/helper/helper.js";import*as g from"../../models/issues_manager/issues_manager.js";import*as w from"../main/main.js";const m={cssOverview:"CSS overview",showCssOverview:"Show CSS overview"},p=e.i18n.registerUIStrings("panels/css_overview/css_overview-meta.ts",m),u=e.i18n.getLazilyComputedLocalizedString.bind(void 0,p);let y;t.ViewManager.registerViewExtension({location:"panel",id:"cssoverview",commandPrompt:u(m.showCssOverview),title:u(m.cssOverview),order:95,persistence:"closeable",async loadView(){const e=await async function(){return y||(y=await import("../../panels/css_overview/css_overview.js")),y}();return new e.CSSOverviewPanel.CSSOverviewPanel(new e.CSSOverviewController.OverviewController)},isPreviewFeature:!0});const h={showElements:"Show Elements",elements:"Elements",showEventListeners:"Show Event Listeners",eventListeners:"Event Listeners",showProperties:"Show Properties",properties:"Properties",showStackTrace:"Show Stack Trace",stackTrace:"Stack Trace",showLayout:"Show Layout",layout:"Layout",hideElement:"Hide element",editAsHtml:"Edit as HTML",duplicateElement:"Duplicate element",undo:"Undo",redo:"Redo",captureAreaScreenshot:"Capture area screenshot",selectAnElementInThePageTo:"Select an element in the page to inspect it",newStyleRule:"New Style Rule",refreshEventListeners:"Refresh event listeners",wordWrap:"Word wrap",enableDomWordWrap:"Enable `DOM` word wrap",disableDomWordWrap:"Disable `DOM` word wrap",showHtmlComments:"Show `HTML` comments",hideHtmlComments:"Hide `HTML` comments",revealDomNodeOnHover:"Reveal `DOM` node on hover",showDetailedInspectTooltip:"Show detailed inspect tooltip",showCSSDocumentationTooltip:"Show CSS documentation tooltip",copyStyles:"Copy styles",showUserAgentShadowDOM:"Show user agent shadow `DOM`",showComputedStyles:"Show Computed Styles",showStyles:"Show Styles",toggleEyeDropper:"Toggle eye dropper"},v=e.i18n.registerUIStrings("panels/elements/elements-meta.ts",h),S=e.i18n.getLazilyComputedLocalizedString.bind(void 0,v);let R,E;async function A(){return R||(R=await import("../../panels/elements/elements.js")),R}function b(e){return void 0===R?[]:e(R)}t.ViewManager.registerViewExtension({location:"panel",id:"elements",commandPrompt:S(h.showElements),title:S(h.elements),order:10,persistence:"permanent",hasToolbar:!1,loadView:async()=>(await A()).ElementsPanel.ElementsPanel.instance()}),t.ActionRegistration.registerActionExtension({actionId:"elements.show-styles",category:"ELEMENTS",title:S(h.showStyles),loadActionDelegate:async()=>new((await A()).ElementsPanel.ElementsActionDelegate)}),t.ActionRegistration.registerActionExtension({actionId:"elements.show-computed",category:"ELEMENTS",title:S(h.showComputedStyles),loadActionDelegate:async()=>new((await A()).ElementsPanel.ElementsActionDelegate)}),t.ViewManager.registerViewExtension({location:"elements-sidebar",id:"elements.event-listeners",commandPrompt:S(h.showEventListeners),title:S(h.eventListeners),order:5,hasToolbar:!0,persistence:"permanent",loadView:async()=>(await A()).EventListenersWidget.EventListenersWidget.instance()}),t.ViewManager.registerViewExtension({location:"elements-sidebar",id:"elements.dom-properties",commandPrompt:S(h.showProperties),title:S(h.properties),order:7,persistence:"permanent",loadView:async()=>new((await A()).PropertiesWidget.PropertiesWidget)}),t.ViewManager.registerViewExtension({experiment:"capture-node-creation-stacks",location:"elements-sidebar",id:"elements.dom-creation",commandPrompt:S(h.showStackTrace),title:S(h.stackTrace),order:10,persistence:"permanent",loadView:async()=>new((await A()).NodeStackTraceWidget.NodeStackTraceWidget)}),t.ViewManager.registerViewExtension({location:"elements-sidebar",id:"elements.layout",commandPrompt:S(h.showLayout),title:S(h.layout),order:4,persistence:"permanent",loadView:async()=>(await async function(){return E||(E=await import("../../panels/elements/components/components.js")),E}()).LayoutPane.LayoutPane.instance().wrapper}),t.ActionRegistration.registerActionExtension({actionId:"elements.hide-element",category:"ELEMENTS",title:S(h.hideElement),loadActionDelegate:async()=>new((await A()).ElementsPanel.ElementsActionDelegate),contextTypes:()=>b((e=>[e.ElementsPanel.ElementsPanel])),bindings:[{shortcut:"H"}]}),t.ActionRegistration.registerActionExtension({actionId:"elements.toggle-eye-dropper",category:"ELEMENTS",title:S(h.toggleEyeDropper),loadActionDelegate:async()Line truncated
|
||||
+1
-1
@@ -1 +1 @@
|
||||
import*as e from"../../core/common/common.js";import*as t from"../../core/i18n/i18n.js";import*as o from"../../ui/legacy/legacy.js";const i={rendering:"Rendering",showRendering:"Show Rendering",paint:"paint",layout:"layout",fps:"fps",cssMediaType:"CSS media type",cssMediaFeature:"CSS media feature",visionDeficiency:"vision deficiency",colorVisionDeficiency:"color vision deficiency",reloadPage:"Reload page",hardReloadPage:"Hard reload page",forceAdBlocking:"Force ad blocking on this site",blockAds:"Block ads on this site",showAds:"Show ads on this site, if allowed",autoOpenDevTools:"Auto-open DevTools for popups",doNotAutoOpen:"Do not auto-open DevTools for popups",disablePaused:"Disable paused state overlay",toggleCssPrefersColorSchemeMedia:"Toggle CSS media feature prefers-color-scheme"},a=t.i18n.registerUIStrings("entrypoints/inspector_main/inspector_main-meta.ts",i),n=t.i18n.getLazilyComputedLocalizedString.bind(void 0,a);let r;async function s(){return r||(r=await import("./inspector_main.js")),r}o.ViewManager.registerViewExtension({location:"drawer-view",id:"rendering",title:n(i.rendering),commandPrompt:n(i.showRendering),persistence:"closeable",order:50,loadView:async()=>new((await s()).RenderingOptions.RenderingOptionsView),tags:[n(i.paint),n(i.layout),n(i.fps),n(i.cssMediaType),n(i.cssMediaFeature),n(i.visionDeficiency),n(i.colorVisionDeficiency)]}),o.ActionRegistration.registerActionExtension({category:"NAVIGATION",actionId:"inspector-main.reload",loadActionDelegate:async()=>new((await s()).InspectorMain.ReloadActionDelegate),iconClass:"refresh",title:n(i.reloadPage),bindings:[{platform:"windows,linux",shortcut:"Ctrl+R"},{platform:"windows,linux",shortcut:"F5"},{platform:"mac",shortcut:"Meta+R"}]}),o.ActionRegistration.registerActionExtension({category:"NAVIGATION",actionId:"inspector-main.hard-reload",loadActionDelegate:async()=>new((await s()).InspectorMain.ReloadActionDelegate),title:n(i.hardReloadPage),bindings:[{platform:"windows,linux",shortcut:"Shift+Ctrl+R"},{platform:"windows,linux",shortcut:"Shift+F5"},{platform:"windows,linux",shortcut:"Ctrl+F5"},{platform:"windows,linux",shortcut:"Ctrl+Shift+F5"},{platform:"mac",shortcut:"Shift+Meta+R"}]}),o.ActionRegistration.registerActionExtension({actionId:"rendering.toggle-prefers-color-scheme",category:"RENDERING",title:n(i.toggleCssPrefersColorSchemeMedia),loadActionDelegate:async()=>new((await s()).RenderingOptions.ReloadActionDelegate)}),e.Settings.registerSettingExtension({category:"NETWORK",title:n(i.forceAdBlocking),settingName:"network.ad-blocking-enabled",settingType:"boolean",storageType:"Session",defaultValue:!1,options:[{value:!0,title:n(i.blockAds)},{value:!1,title:n(i.showAds)}]}),e.Settings.registerSettingExtension({category:"GLOBAL",storageType:"Synced",title:n(i.autoOpenDevTools),settingName:"auto-attach-to-created-pages",settingType:"boolean",order:2,defaultValue:!1,options:[{value:!0,title:n(i.autoOpenDevTools)},{value:!1,title:n(i.doNotAutoOpen)}]}),e.Settings.registerSettingExtension({category:"APPEARANCE",storageType:"Synced",title:n(i.disablePaused),settingName:"disable-paused-state-overlay",settingType:"boolean",defaultValue:!1}),o.Toolbar.registerToolbarItem({loadItem:async()=>(await s()).InspectorMain.NodeIndicator.instance(),order:2,location:"main-toolbar-left"}),o.Toolbar.registerToolbarItem({loadItem:async()=>(await s()).OutermostTargetSelector.OutermostTargetSelector.instance(),order:98,location:"main-toolbar-right"});
|
||||
import*as e from"../../core/common/common.js";import*as t from"../../core/i18n/i18n.js";import*as o from"../../ui/legacy/legacy.js";const i={rendering:"Rendering",showRendering:"Show Rendering",paint:"paint",layout:"layout",fps:"fps",cssMediaType:"CSS media type",cssMediaFeature:"CSS media feature",visionDeficiency:"vision deficiency",colorVisionDeficiency:"color vision deficiency",reloadPage:"Reload page",hardReloadPage:"Hard reload page",forceAdBlocking:"Force ad blocking on this site",blockAds:"Block ads on this site",showAds:"Show ads on this site, if allowed",autoOpenDevTools:"Auto-open DevTools for popups",doNotAutoOpen:"Do not auto-open DevTools for popups",disablePaused:"Disable paused state overlay",toggleCssPrefersColorSchemeMedia:"Toggle CSS media feature prefers-color-scheme"},a=t.i18n.registerUIStrings("entrypoints/inspector_main/inspector_main-meta.ts",i),n=t.i18n.getLazilyComputedLocalizedString.bind(void 0,a);let r;async function s(){return r||(r=await import("./inspector_main.js")),r}o.ViewManager.registerViewExtension({location:"drawer-view",id:"rendering",title:n(i.rendering),commandPrompt:n(i.showRendering),persistence:"closeable",order:50,loadView:async()=>new((await s()).RenderingOptions.RenderingOptionsView),tags:[n(i.paint),n(i.layout),n(i.fps),n(i.cssMediaType),n(i.cssMediaFeature),n(i.visionDeficiency),n(i.colorVisionDeficiency)]}),o.ActionRegistration.registerActionExtension({category:"NAVIGATION",actionId:"inspector-main.reload",loadActionDelegate:async()=>new((await s()).InspectorMain.ReloadActionDelegate),iconClass:"refresh",title:n(i.reloadPage),bindings:[{platform:"windows,linux",shortcut:"Ctrl+R"},{platform:"windows,linux",shortcut:"F5"},{platform:"mac",shortcut:"Meta+R"}]}),o.ActionRegistration.registerActionExtension({category:"NAVIGATION",actionId:"inspector-main.hard-reload",loadActionDelegate:async()=>new((await s()).InspectorMain.ReloadActionDelegate),title:n(i.hardReloadPage),bindings:[{platform:"windows,linux",shortcut:"Shift+Ctrl+R"},{platform:"windows,linux",shortcut:"Shift+F5"},{platform:"windows,linux",shortcut:"Ctrl+F5"},{platform:"windows,linux",shortcut:"Ctrl+Shift+F5"},{platform:"mac",shortcut:"Shift+Meta+R"}]}),o.ActionRegistration.registerActionExtension({actionId:"rendering.toggle-prefers-color-scheme",category:"RENDERING",title:n(i.toggleCssPrefersColorSchemeMedia),loadActionDelegate:async()=>new((await s()).RenderingOptions.ReloadActionDelegate)}),e.Settings.registerSettingExtension({category:"",title:n(i.forceAdBlocking),settingName:"network.ad-blocking-enabled",settingType:"boolean",storageType:"Session",defaultValue:!1,options:[{value:!0,title:n(i.blockAds)},{value:!1,title:n(i.showAds)}]}),e.Settings.registerSettingExtension({category:"GLOBAL",storageType:"Synced",title:n(i.autoOpenDevTools),settingName:"auto-attach-to-created-pages",settingType:"boolean",order:2,defaultValue:!1,options:[{value:!0,title:n(i.autoOpenDevTools)},{value:!1,title:n(i.doNotAutoOpen)}]}),e.Settings.registerSettingExtension({category:"APPEARANCE",storageType:"Synced",title:n(i.disablePaused),settingName:"disable-paused-state-overlay",settingType:"boolean",defaultValue:!1}),o.Toolbar.registerToolbarItem({loadItem:async()=>(await s()).InspectorMain.NodeIndicator.instance(),order:2,location:"main-toolbar-left"}),o.Toolbar.registerToolbarItem({loadItem:async()=>(await s()).OutermostTargetSelector.OutermostTargetSelector.instance(),order:98,location:"main-toolbar-right"});
|
||||
+1
-1
@@ -1 +1 @@
|
||||
import"../shell/shell.js";import*as e from"../../core/common/common.js";import*as t from"../../core/i18n/i18n.js";import*as o from"../../ui/legacy/legacy.js";import*as n from"../../core/root/root.js";import*as i from"../../core/sdk/sdk.js";import*as r from"../../models/extensions/extensions.js";import*as a from"../../models/workspace/workspace.js";import*as s from"../../panels/network/forward/forward.js";import*as l from"../../core/host/host.js";import*as c from"../../ui/legacy/components/utils/utils.js";import*as g from"../main/main.js";const w={performance:"Performance",showPerformance:"Show Performance",showRecentTimelineSessions:"Show recent timeline sessions",record:"Record",stop:"Stop",recordAndReload:"Record and reload"},d=t.i18n.registerUIStrings("panels/js_timeline/js_timeline-meta.ts",w),m=t.i18n.getLazilyComputedLocalizedString.bind(void 0,d);let k;async function u(){return k||(k=await import("../../panels/timeline/timeline.js")),k}function p(e){return void 0===k?[]:e(k)}o.ViewManager.registerViewExtension({location:"panel",id:"timeline",title:m(w.performance),commandPrompt:m(w.showPerformance),order:66,hasToolbar:!1,isPreviewFeature:!0,loadView:async()=>(await u()).TimelinePanel.TimelinePanel.instance({forceNew:null,isNode:!0})}),o.ActionRegistration.registerActionExtension({actionId:"timeline.show-history",loadActionDelegate:async()=>new((await u()).TimelinePanel.ActionDelegate),category:"PERFORMANCE",title:m(w.showRecentTimelineSessions),contextTypes:()=>p((e=>[e.TimelinePanel.TimelinePanel])),bindings:[{platform:"windows,linux",shortcut:"Ctrl+H"},{platform:"mac",shortcut:"Meta+Y"}]}),o.ActionRegistration.registerActionExtension({actionId:"timeline.toggle-recording",category:"PERFORMANCE",iconClass:"record-start",toggleable:!0,toggledIconClass:"record-stop",toggleWithRedColor:!0,contextTypes:()=>p((e=>[e.TimelinePanel.TimelinePanel])),loadActionDelegate:async()=>new((await u()).TimelinePanel.ActionDelegate),options:[{value:!0,title:m(w.record)},{value:!1,title:m(w.stop)}],bindings:[{platform:"windows,linux",shortcut:"Ctrl+E"},{platform:"mac",shortcut:"Meta+E"}]}),o.ActionRegistration.registerActionExtension({actionId:"timeline.record-reload",iconClass:"refresh",contextTypes:()=>p((e=>[e.TimelinePanel.TimelinePanel])),category:"PERFORMANCE",title:m(w.recordAndReload),loadActionDelegate:async()=>new((await u()).TimelinePanel.ActionDelegate),bindings:[{platform:"windows,linux",shortcut:"Ctrl+Shift+E"},{platform:"mac",shortcut:"Meta+Shift+E"}]}),e.Settings.registerSettingExtension({category:"PERFORMANCE",storageType:"Synced",settingName:"annotations-hidden",settingType:"boolean",defaultValue:!0});const R={throttling:"Throttling",showThrottling:"Show Throttling",goOffline:"Go offline",device:"device",throttlingTag:"throttling",enableSlowGThrottling:"Enable slow `3G` throttling",enableFastGThrottling:"Enable fast `3G` throttling",goOnline:"Go online"},y=t.i18n.registerUIStrings("panels/mobile_throttling/mobile_throttling-meta.ts",R),h=t.i18n.getLazilyComputedLocalizedString.bind(void 0,y);let N;async function T(){return N||(N=await import("../../panels/mobile_throttling/mobile_throttling.js")),N}o.ViewManager.registerViewExtension({location:"settings-view",id:"throttling-conditions",title:h(R.throttling),commandPrompt:h(R.showThrottling),order:35,loadView:async()=>new((await T()).ThrottlingSettingsTab.ThrottlingSettingsTab),settings:["custom-network-conditions","calibrated-cpu-throttling"],iconName:"performance"}),o.ActionRegistration.registerActionExtension({actionId:"network-conditions.network-offline",category:"NETWORK",title:h(R.goOffline),loadActionDelegate:async()=>new((await T()).ThrottlingManager.ActionDelegate),tags:[h(R.device),h(R.throttlingTag)]}),o.ActionRegistration.registerActionExtension({actionId:"network-conditions.network-low-end-mobile",category:"NETWORK",title:h(R.enableSlowGThrottling),loadActionDelegate:async()=>new((await T()).ThrottlingManager.ActionDelegate),tags:[h(R.device),h(R.throttlingTag)]}),o.ActionRegistration.registerActionExtension({actionId:"network-conditions.network-mid-tier-mobile",category:"NETWORK",title:h(R.enableFastGThrottling),loadActionDelegate:async()=>new((await T()).ThrottlingManager.ActionDelegate),tags:[h(R.device),h(R.throttlingTag)]}),o.ActionRegistration.registerActionExtension({actionId:"network-conditions.network-online",category:"NETWORK",title:h(R.goOnline),loadActionDelegate:async()=>new((await T()).ThrottlingManager.ActionDelegate),tags:[h(R.device),h(R.throttlingTag)]}),e.Settings.registerSettingExtension({storageType:"Synced",settingName:"custom-network-conditions",settingType:"array",defaultValue:[]});const v={showNetwork:"Show Network",network:"Network",networkExpoUnstable:"Network (Expo, unstable)",showNetworkRequestBlocking:"Show Network request blocking",networkRequestBlocking:"Network request blocking",showNetworkConditions:"Show Network conditions",networkConditions:"Network conditions",diskCache:"disk cache",networkThrottling:"nLine truncated
|
||||
import"../shell/shell.js";import*as e from"../../core/common/common.js";import*as t from"../../core/i18n/i18n.js";import*as o from"../../ui/legacy/legacy.js";import*as n from"../../core/root/root.js";import*as i from"../../core/sdk/sdk.js";import*as r from"../../models/extensions/extensions.js";import*as a from"../../models/workspace/workspace.js";import*as s from"../../panels/network/forward/forward.js";import*as l from"../../core/host/host.js";import*as c from"../../ui/legacy/components/utils/utils.js";import*as g from"../main/main.js";const w={performance:"Performance",showPerformance:"Show Performance",showRecentTimelineSessions:"Show recent timeline sessions",record:"Record",stop:"Stop",recordAndReload:"Record and reload"},d=t.i18n.registerUIStrings("panels/js_timeline/js_timeline-meta.ts",w),k=t.i18n.getLazilyComputedLocalizedString.bind(void 0,d);let m;async function u(){return m||(m=await import("../../panels/timeline/timeline.js")),m}function p(e){return void 0===m?[]:e(m)}o.ViewManager.registerViewExtension({location:"panel",id:"timeline",title:k(w.performance),commandPrompt:k(w.showPerformance),order:66,hasToolbar:!1,isPreviewFeature:!0,loadView:async()=>(await u()).TimelinePanel.TimelinePanel.instance({forceNew:null,isNode:!0})}),o.ActionRegistration.registerActionExtension({actionId:"timeline.show-history",loadActionDelegate:async()=>new((await u()).TimelinePanel.ActionDelegate),category:"PERFORMANCE",title:k(w.showRecentTimelineSessions),contextTypes:()=>p((e=>[e.TimelinePanel.TimelinePanel])),bindings:[{platform:"windows,linux",shortcut:"Ctrl+H"},{platform:"mac",shortcut:"Meta+Y"}]}),o.ActionRegistration.registerActionExtension({actionId:"timeline.toggle-recording",category:"PERFORMANCE",iconClass:"record-start",toggleable:!0,toggledIconClass:"record-stop",toggleWithRedColor:!0,contextTypes:()=>p((e=>[e.TimelinePanel.TimelinePanel])),loadActionDelegate:async()=>new((await u()).TimelinePanel.ActionDelegate),options:[{value:!0,title:k(w.record)},{value:!1,title:k(w.stop)}],bindings:[{platform:"windows,linux",shortcut:"Ctrl+E"},{platform:"mac",shortcut:"Meta+E"}]}),o.ActionRegistration.registerActionExtension({actionId:"timeline.record-reload",iconClass:"refresh",contextTypes:()=>p((e=>[e.TimelinePanel.TimelinePanel])),category:"PERFORMANCE",title:k(w.recordAndReload),loadActionDelegate:async()=>new((await u()).TimelinePanel.ActionDelegate),bindings:[{platform:"windows,linux",shortcut:"Ctrl+Shift+E"},{platform:"mac",shortcut:"Meta+Shift+E"}]}),e.Settings.registerSettingExtension({category:"PERFORMANCE",storageType:"Synced",settingName:"annotations-hidden",settingType:"boolean",defaultValue:!0});const y={throttling:"Throttling",showThrottling:"Show Throttling",goOffline:"Go offline",device:"device",throttlingTag:"throttling",enableSlowGThrottling:"Enable slow `3G` throttling",enableFastGThrottling:"Enable fast `3G` throttling",goOnline:"Go online"},R=t.i18n.registerUIStrings("panels/mobile_throttling/mobile_throttling-meta.ts",y),h=t.i18n.getLazilyComputedLocalizedString.bind(void 0,R);let T;async function N(){return T||(T=await import("../../panels/mobile_throttling/mobile_throttling.js")),T}o.ViewManager.registerViewExtension({location:"settings-view",id:"throttling-conditions",title:h(y.throttling),commandPrompt:h(y.showThrottling),order:35,loadView:async()=>new((await N()).ThrottlingSettingsTab.ThrottlingSettingsTab),settings:["custom-network-conditions","calibrated-cpu-throttling"],iconName:"performance"}),o.ActionRegistration.registerActionExtension({actionId:"network-conditions.network-offline",category:"NETWORK",title:h(y.goOffline),loadActionDelegate:async()=>new((await N()).ThrottlingManager.ActionDelegate),tags:[h(y.device),h(y.throttlingTag)]}),o.ActionRegistration.registerActionExtension({actionId:"network-conditions.network-low-end-mobile",category:"NETWORK",title:h(y.enableSlowGThrottling),loadActionDelegate:async()=>new((await N()).ThrottlingManager.ActionDelegate),tags:[h(y.device),h(y.throttlingTag)]}),o.ActionRegistration.registerActionExtension({actionId:"network-conditions.network-mid-tier-mobile",category:"NETWORK",title:h(y.enableFastGThrottling),loadActionDelegate:async()=>new((await N()).ThrottlingManager.ActionDelegate),tags:[h(y.device),h(y.throttlingTag)]}),o.ActionRegistration.registerActionExtension({actionId:"network-conditions.network-online",category:"NETWORK",title:h(y.goOnline),loadActionDelegate:async()=>new((await N()).ThrottlingManager.ActionDelegate),tags:[h(y.device),h(y.throttlingTag)]}),e.Settings.registerSettingExtension({storageType:"Synced",settingName:"custom-network-conditions",settingType:"array",defaultValue:[]});const v={showNetwork:"Show Network",network:"Network",networkExpoUnstable:"Expo Network",showNetworkRequestBlocking:"Show Network request blocking",networkRequestBlocking:"Network request blocking",showNetworkConditions:"Show Network conditions",networkConditions:"Network conditions",diskCache:"disk cache",networkThrottling:"network throtLine truncated
|
||||
+1
-1
@@ -1 +1 @@
|
||||
import"../shell/shell.js";import*as e from"../../core/common/common.js";import*as t from"../../core/i18n/i18n.js";import*as o from"../../ui/legacy/legacy.js";import*as n from"../../core/root/root.js";import*as i from"../../core/sdk/sdk.js";import*as r from"../../models/extensions/extensions.js";import*as s from"../../models/workspace/workspace.js";import*as a from"../../panels/network/forward/forward.js";import*as c from"../main/main.js";import*as l from"../../core/host/host.js";import"../../ui/components/buttons/buttons.js";import*as d from"../../ui/legacy/components/utils/utils.js";const g={throttling:"Throttling",showThrottling:"Show Throttling",goOffline:"Go offline",device:"device",throttlingTag:"throttling",enableSlowGThrottling:"Enable slow `3G` throttling",enableFastGThrottling:"Enable fast `3G` throttling",goOnline:"Go online"},w=t.i18n.registerUIStrings("panels/mobile_throttling/mobile_throttling-meta.ts",g),p=t.i18n.getLazilyComputedLocalizedString.bind(void 0,w);let h;async function m(){return h||(h=await import("../../panels/mobile_throttling/mobile_throttling.js")),h}o.ViewManager.registerViewExtension({location:"settings-view",id:"throttling-conditions",title:p(g.throttling),commandPrompt:p(g.showThrottling),order:35,loadView:async()=>new((await m()).ThrottlingSettingsTab.ThrottlingSettingsTab),settings:["custom-network-conditions","calibrated-cpu-throttling"],iconName:"performance"}),o.ActionRegistration.registerActionExtension({actionId:"network-conditions.network-offline",category:"NETWORK",title:p(g.goOffline),loadActionDelegate:async()=>new((await m()).ThrottlingManager.ActionDelegate),tags:[p(g.device),p(g.throttlingTag)]}),o.ActionRegistration.registerActionExtension({actionId:"network-conditions.network-low-end-mobile",category:"NETWORK",title:p(g.enableSlowGThrottling),loadActionDelegate:async()=>new((await m()).ThrottlingManager.ActionDelegate),tags:[p(g.device),p(g.throttlingTag)]}),o.ActionRegistration.registerActionExtension({actionId:"network-conditions.network-mid-tier-mobile",category:"NETWORK",title:p(g.enableFastGThrottling),loadActionDelegate:async()=>new((await m()).ThrottlingManager.ActionDelegate),tags:[p(g.device),p(g.throttlingTag)]}),o.ActionRegistration.registerActionExtension({actionId:"network-conditions.network-online",category:"NETWORK",title:p(g.goOnline),loadActionDelegate:async()=>new((await m()).ThrottlingManager.ActionDelegate),tags:[p(g.device),p(g.throttlingTag)]}),e.Settings.registerSettingExtension({storageType:"Synced",settingName:"custom-network-conditions",settingType:"array",defaultValue:[]});const u={performance:"Performance",showPerformance:"Show Performance",showRecentTimelineSessions:"Show recent timeline sessions",record:"Record",stop:"Stop",recordAndReload:"Record and reload"},k=t.i18n.registerUIStrings("panels/js_timeline/js_timeline-meta.ts",u),v=t.i18n.getLazilyComputedLocalizedString.bind(void 0,k);let y;async function f(){return y||(y=await import("../../panels/timeline/timeline.js")),y}function R(e){return void 0===y?[]:e(y)}o.ViewManager.registerViewExtension({location:"panel",id:"timeline",title:v(u.performance),commandPrompt:v(u.showPerformance),order:66,hasToolbar:!1,isPreviewFeature:!0,loadView:async()=>(await f()).TimelinePanel.TimelinePanel.instance({forceNew:null,isNode:!0})}),o.ActionRegistration.registerActionExtension({actionId:"timeline.show-history",loadActionDelegate:async()=>new((await f()).TimelinePanel.ActionDelegate),category:"PERFORMANCE",title:v(u.showRecentTimelineSessions),contextTypes:()=>R((e=>[e.TimelinePanel.TimelinePanel])),bindings:[{platform:"windows,linux",shortcut:"Ctrl+H"},{platform:"mac",shortcut:"Meta+Y"}]}),o.ActionRegistration.registerActionExtension({actionId:"timeline.toggle-recording",category:"PERFORMANCE",iconClass:"record-start",toggleable:!0,toggledIconClass:"record-stop",toggleWithRedColor:!0,contextTypes:()=>R((e=>[e.TimelinePanel.TimelinePanel])),loadActionDelegate:async()=>new((await f()).TimelinePanel.ActionDelegate),options:[{value:!0,title:v(u.record)},{value:!1,title:v(u.stop)}],bindings:[{platform:"windows,linux",shortcut:"Ctrl+E"},{platform:"mac",shortcut:"Meta+E"}]}),o.ActionRegistration.registerActionExtension({actionId:"timeline.record-reload",iconClass:"refresh",contextTypes:()=>R((e=>[e.TimelinePanel.TimelinePanel])),category:"PERFORMANCE",title:v(u.recordAndReload),loadActionDelegate:async()=>new((await f()).TimelinePanel.ActionDelegate),bindings:[{platform:"windows,linux",shortcut:"Ctrl+Shift+E"},{platform:"mac",shortcut:"Meta+Shift+E"}]}),e.Settings.registerSettingExtension({category:"PERFORMANCE",storageType:"Synced",settingName:"annotations-hidden",settingType:"boolean",defaultValue:!0});const T={showNetwork:"Show Network",network:"Network",networkExpoUnstable:"Network (Expo, unstable)",showNetworkRequestBlocking:"Show Network request blocking",networkRequestBlocking:"Network request blocking",showNetworkConditions:"Show Network conditions",networkConditions:"Network conditioLine truncated
|
||||
import"../shell/shell.js";import*as e from"../../core/common/common.js";import*as t from"../../core/i18n/i18n.js";import*as o from"../../ui/legacy/legacy.js";import*as n from"../../core/root/root.js";import*as i from"../../core/sdk/sdk.js";import*as r from"../../models/extensions/extensions.js";import*as s from"../../models/workspace/workspace.js";import*as a from"../../panels/network/forward/forward.js";import*as c from"../main/main.js";import*as l from"../../core/host/host.js";import"../../ui/components/buttons/buttons.js";import*as d from"../../ui/legacy/components/utils/utils.js";const g={throttling:"Throttling",showThrottling:"Show Throttling",goOffline:"Go offline",device:"device",throttlingTag:"throttling",enableSlowGThrottling:"Enable slow `3G` throttling",enableFastGThrottling:"Enable fast `3G` throttling",goOnline:"Go online"},w=t.i18n.registerUIStrings("panels/mobile_throttling/mobile_throttling-meta.ts",g),p=t.i18n.getLazilyComputedLocalizedString.bind(void 0,w);let h;async function m(){return h||(h=await import("../../panels/mobile_throttling/mobile_throttling.js")),h}o.ViewManager.registerViewExtension({location:"settings-view",id:"throttling-conditions",title:p(g.throttling),commandPrompt:p(g.showThrottling),order:35,loadView:async()=>new((await m()).ThrottlingSettingsTab.ThrottlingSettingsTab),settings:["custom-network-conditions","calibrated-cpu-throttling"],iconName:"performance"}),o.ActionRegistration.registerActionExtension({actionId:"network-conditions.network-offline",category:"NETWORK",title:p(g.goOffline),loadActionDelegate:async()=>new((await m()).ThrottlingManager.ActionDelegate),tags:[p(g.device),p(g.throttlingTag)]}),o.ActionRegistration.registerActionExtension({actionId:"network-conditions.network-low-end-mobile",category:"NETWORK",title:p(g.enableSlowGThrottling),loadActionDelegate:async()=>new((await m()).ThrottlingManager.ActionDelegate),tags:[p(g.device),p(g.throttlingTag)]}),o.ActionRegistration.registerActionExtension({actionId:"network-conditions.network-mid-tier-mobile",category:"NETWORK",title:p(g.enableFastGThrottling),loadActionDelegate:async()=>new((await m()).ThrottlingManager.ActionDelegate),tags:[p(g.device),p(g.throttlingTag)]}),o.ActionRegistration.registerActionExtension({actionId:"network-conditions.network-online",category:"NETWORK",title:p(g.goOnline),loadActionDelegate:async()=>new((await m()).ThrottlingManager.ActionDelegate),tags:[p(g.device),p(g.throttlingTag)]}),e.Settings.registerSettingExtension({storageType:"Synced",settingName:"custom-network-conditions",settingType:"array",defaultValue:[]});const u={performance:"Performance",showPerformance:"Show Performance",showRecentTimelineSessions:"Show recent timeline sessions",record:"Record",stop:"Stop",recordAndReload:"Record and reload"},k=t.i18n.registerUIStrings("panels/js_timeline/js_timeline-meta.ts",u),v=t.i18n.getLazilyComputedLocalizedString.bind(void 0,k);let y;async function f(){return y||(y=await import("../../panels/timeline/timeline.js")),y}function T(e){return void 0===y?[]:e(y)}o.ViewManager.registerViewExtension({location:"panel",id:"timeline",title:v(u.performance),commandPrompt:v(u.showPerformance),order:66,hasToolbar:!1,isPreviewFeature:!0,loadView:async()=>(await f()).TimelinePanel.TimelinePanel.instance({forceNew:null,isNode:!0})}),o.ActionRegistration.registerActionExtension({actionId:"timeline.show-history",loadActionDelegate:async()=>new((await f()).TimelinePanel.ActionDelegate),category:"PERFORMANCE",title:v(u.showRecentTimelineSessions),contextTypes:()=>T((e=>[e.TimelinePanel.TimelinePanel])),bindings:[{platform:"windows,linux",shortcut:"Ctrl+H"},{platform:"mac",shortcut:"Meta+Y"}]}),o.ActionRegistration.registerActionExtension({actionId:"timeline.toggle-recording",category:"PERFORMANCE",iconClass:"record-start",toggleable:!0,toggledIconClass:"record-stop",toggleWithRedColor:!0,contextTypes:()=>T((e=>[e.TimelinePanel.TimelinePanel])),loadActionDelegate:async()=>new((await f()).TimelinePanel.ActionDelegate),options:[{value:!0,title:v(u.record)},{value:!1,title:v(u.stop)}],bindings:[{platform:"windows,linux",shortcut:"Ctrl+E"},{platform:"mac",shortcut:"Meta+E"}]}),o.ActionRegistration.registerActionExtension({actionId:"timeline.record-reload",iconClass:"refresh",contextTypes:()=>T((e=>[e.TimelinePanel.TimelinePanel])),category:"PERFORMANCE",title:v(u.recordAndReload),loadActionDelegate:async()=>new((await f()).TimelinePanel.ActionDelegate),bindings:[{platform:"windows,linux",shortcut:"Ctrl+Shift+E"},{platform:"mac",shortcut:"Meta+Shift+E"}]}),e.Settings.registerSettingExtension({category:"PERFORMANCE",storageType:"Synced",settingName:"annotations-hidden",settingType:"boolean",defaultValue:!0});const R={showNetwork:"Show Network",network:"Network",networkExpoUnstable:"Expo Network",showNetworkRequestBlocking:"Show Network request blocking",networkRequestBlocking:"Network request blocking",showNetworkConditions:"Show Network conditions",networkConditions:"Network conditions",diskCachLine truncated
|
||||
+1
-1
@@ -1 +1 @@
|
||||
import*as e from"../../core/common/common.js";import*as t from"../../core/host/host.js";import*as o from"../../core/i18n/i18n.js";import*as i from"../../core/sdk/sdk.js";import*as n from"../../models/workspace/workspace.js";import*as a from"../../ui/legacy/components/utils/utils.js";import*as s from"../../ui/legacy/legacy.js";import"../../Images/Images.js";import*as r from"../../core/root/root.js";import*as l from"../../ui/components/legacy_wrapper/legacy_wrapper.js";import*as c from"../../models/breakpoints/breakpoints.js";import*as d from"../../ui/legacy/components/object_ui/object_ui.js";import*as g from"../../ui/legacy/components/quick_open/quick_open.js";import*as u from"../main/main.js";const p={focusDebuggee:"Focus page",toggleDrawer:"Toggle drawer",nextPanel:"Next panel",previousPanel:"Previous panel",reloadDevtools:"Reload DevTools",restoreLastDockPosition:"Restore last dock position",zoomIn:"Zoom in",zoomOut:"Zoom out",resetZoomLevel:"Reset zoom level",searchInPanel:"Search in panel",cancelSearch:"Cancel search",findNextResult:"Find next result",findPreviousResult:"Find previous result",theme:"Theme:",switchToBrowserPreferredTheme:"Switch to browser's preferred theme",autoTheme:"Auto",switchToLightTheme:"Switch to light theme",lightCapital:"Light",switchToDarkTheme:"Switch to dark theme",darkCapital:"Dark",darkLower:"dark",lightLower:"light",panelLayout:"Panel layout:",useHorizontalPanelLayout:"Use horizontal panel layout",horizontal:"horizontal",useVerticalPanelLayout:"Use vertical panel layout",vertical:"vertical",useAutomaticPanelLayout:"Use automatic panel layout",auto:"auto",enableCtrlShortcutToSwitchPanels:"Enable Ctrl + 1-9 shortcut to switch panels",enableShortcutToSwitchPanels:"Enable ⌘ + 1-9 shortcut to switch panels",right:"Right",dockToRight:"Dock to right",bottom:"Bottom",dockToBottom:"Dock to bottom",left:"Left",dockToLeft:"Dock to left",undocked:"Undocked",undockIntoSeparateWindow:"Undock into separate window",devtoolsDefault:"DevTools (Default)",language:"Language:",browserLanguage:"Browser UI language",enableSync:"Enable settings sync",searchAsYouTypeSetting:"Search as you type",searchAsYouTypeCommand:"Enable search as you type",searchOnEnterCommand:"Disable search as you type (press Enter to search)",matchChromeColorScheme:"Match Chrome color scheme",matchChromeColorSchemeDocumentation:"Match DevTools colors to your customized Chrome theme (when enabled)",matchChromeColorSchemeCommand:"Match Chrome color scheme",dontMatchChromeColorSchemeCommand:"Don't match Chrome color scheme"},m=o.i18n.registerUIStrings("entrypoints/main/main-meta.ts",p),S=o.i18n.getLazilyComputedLocalizedString.bind(void 0,m);let w,y;async function h(){return w||(w=await import("../main/main.js")),w}function b(){return!t.InspectorFrontendHost.InspectorFrontendHostInstance.isHostedMode()}function v(e){return()=>o.i18n.getLocalizedLanguageRegion(e,o.DevToolsLocale.DevToolsLocale.instance())}s.ActionRegistration.registerActionExtension({category:"DRAWER",actionId:"inspector-main.focus-debuggee",loadActionDelegate:async()=>new((await async function(){return y||(y=await import("../inspector_main/inspector_main.js")),y}()).InspectorMain.FocusDebuggeeActionDelegate),order:100,title:S(p.focusDebuggee)}),s.ActionRegistration.registerActionExtension({category:"DRAWER",actionId:"main.toggle-drawer",loadActionDelegate:async()=>new s.InspectorView.ActionDelegate,order:101,title:S(p.toggleDrawer),bindings:[{shortcut:"Esc"}]}),s.ActionRegistration.registerActionExtension({actionId:"main.next-tab",category:"GLOBAL",title:S(p.nextPanel),loadActionDelegate:async()=>new s.InspectorView.ActionDelegate,bindings:[{platform:"windows,linux",shortcut:"Ctrl+]"},{platform:"mac",shortcut:"Meta+]"}]}),s.ActionRegistration.registerActionExtension({actionId:"main.previous-tab",category:"GLOBAL",title:S(p.previousPanel),loadActionDelegate:async()=>new s.InspectorView.ActionDelegate,bindings:[{platform:"windows,linux",shortcut:"Ctrl+["},{platform:"mac",shortcut:"Meta+["}]}),s.ActionRegistration.registerActionExtension({actionId:"main.debug-reload",category:"GLOBAL",title:S(p.reloadDevtools),loadActionDelegate:async()=>new((await h()).MainImpl.ReloadActionDelegate),bindings:[{shortcut:"Alt+R"}]}),s.ActionRegistration.registerActionExtension({category:"GLOBAL",title:S(p.restoreLastDockPosition),actionId:"main.toggle-dock",loadActionDelegate:async()=>new s.DockController.ToggleDockActionDelegate,bindings:[{platform:"windows,linux",shortcut:"Ctrl+Shift+D"},{platform:"mac",shortcut:"Meta+Shift+D"}]}),s.ActionRegistration.registerActionExtension({actionId:"main.zoom-in",category:"GLOBAL",title:S(p.zoomIn),loadActionDelegate:async()=>new((await h()).MainImpl.ZoomActionDelegate),bindings:[{platform:"windows,linux",shortcut:"Ctrl+Plus",keybindSets:["devToolsDefault","vsCode"]},{platform:"windows,linux",shortcut:"Ctrl+Shift+Plus"},{platform:"windows,linux",shortcut:"Ctrl+NumpadPlus"},{platform:"windows,linux",shortcut:"Ctrl+Shift+NumpadPlus"},{platLine truncated
|
||||
import*as e from"../../core/common/common.js";import*as t from"../../core/host/host.js";import*as o from"../../core/i18n/i18n.js";import*as i from"../../core/sdk/sdk.js";import*as n from"../../models/workspace/workspace.js";import*as a from"../../ui/legacy/components/utils/utils.js";import*as s from"../../ui/legacy/legacy.js";import"../../Images/Images.js";import*as r from"../../core/root/root.js";import*as l from"../../ui/components/legacy_wrapper/legacy_wrapper.js";import*as c from"../../models/breakpoints/breakpoints.js";import*as d from"../../ui/legacy/components/object_ui/object_ui.js";import*as g from"../../ui/legacy/components/quick_open/quick_open.js";import*as u from"../main/main.js";const p={focusDebuggee:"Focus page",toggleDrawer:"Toggle drawer",nextPanel:"Next panel",previousPanel:"Previous panel",reloadDevtools:"Reload DevTools",restoreLastDockPosition:"Restore last dock position",zoomIn:"Zoom in",zoomOut:"Zoom out",resetZoomLevel:"Reset zoom level",searchInPanel:"Search in panel",cancelSearch:"Cancel search",findNextResult:"Find next result",findPreviousResult:"Find previous result",theme:"Theme:",switchToBrowserPreferredTheme:"Switch to browser's preferred theme",autoTheme:"Auto",switchToLightTheme:"Switch to light theme",lightCapital:"Light",switchToDarkTheme:"Switch to dark theme",darkCapital:"Dark",darkLower:"dark",lightLower:"light",panelLayout:"Panel layout:",useHorizontalPanelLayout:"Use horizontal panel layout",horizontal:"horizontal",useVerticalPanelLayout:"Use vertical panel layout",vertical:"vertical",useAutomaticPanelLayout:"Use automatic panel layout",auto:"auto",enableCtrlShortcutToSwitchPanels:"Enable Ctrl + 1-9 shortcut to switch panels",enableShortcutToSwitchPanels:"Enable ⌘ + 1-9 shortcut to switch panels",right:"Right",dockToRight:"Dock to right",bottom:"Bottom",dockToBottom:"Dock to bottom",left:"Left",dockToLeft:"Dock to left",undocked:"Undocked",undockIntoSeparateWindow:"Undock into separate window",devtoolsDefault:"DevTools (Default)",language:"Language:",browserLanguage:"Browser UI language",enableSync:"Enable settings sync",searchAsYouTypeSetting:"Search as you type",searchAsYouTypeCommand:"Enable search as you type",searchOnEnterCommand:"Disable search as you type (press Enter to search)",matchChromeColorScheme:"Match Chrome color scheme",matchChromeColorSchemeDocumentation:"Match DevTools colors to your customized Chrome theme (when enabled)",matchChromeColorSchemeCommand:"Match Chrome color scheme",dontMatchChromeColorSchemeCommand:"Don't match Chrome color scheme"},m=o.i18n.registerUIStrings("entrypoints/main/main-meta.ts",p),S=o.i18n.getLazilyComputedLocalizedString.bind(void 0,m);let w,y;async function h(){return w||(w=await import("../main/main.js")),w}function b(){return!t.InspectorFrontendHost.InspectorFrontendHostInstance.isHostedMode()}function v(e){return()=>o.i18n.getLocalizedLanguageRegion(e,o.DevToolsLocale.DevToolsLocale.instance())}s.ActionRegistration.registerActionExtension({category:"DRAWER",actionId:"inspector-main.focus-debuggee",loadActionDelegate:async()=>new((await async function(){return y||(y=await import("../inspector_main/inspector_main.js")),y}()).InspectorMain.FocusDebuggeeActionDelegate),order:100,title:S(p.focusDebuggee)}),s.ActionRegistration.registerActionExtension({category:"DRAWER",actionId:"main.toggle-drawer",loadActionDelegate:async()=>new s.InspectorView.ActionDelegate,order:101,title:S(p.toggleDrawer),bindings:[{shortcut:"Esc"}]}),s.ActionRegistration.registerActionExtension({actionId:"main.next-tab",category:"GLOBAL",title:S(p.nextPanel),loadActionDelegate:async()=>new s.InspectorView.ActionDelegate,bindings:[{platform:"windows,linux",shortcut:"Ctrl+]"},{platform:"mac",shortcut:"Meta+]"}]}),s.ActionRegistration.registerActionExtension({actionId:"main.previous-tab",category:"GLOBAL",title:S(p.previousPanel),loadActionDelegate:async()=>new s.InspectorView.ActionDelegate,bindings:[{platform:"windows,linux",shortcut:"Ctrl+["},{platform:"mac",shortcut:"Meta+["}]}),s.ActionRegistration.registerActionExtension({actionId:"main.debug-reload",category:"GLOBAL",title:S(p.reloadDevtools),loadActionDelegate:async()=>new((await h()).MainImpl.ReloadActionDelegate),bindings:[{shortcut:"Alt+R"}]}),s.ActionRegistration.registerActionExtension({category:"GLOBAL",title:S(p.restoreLastDockPosition),actionId:"main.toggle-dock",loadActionDelegate:async()=>new s.DockController.ToggleDockActionDelegate,bindings:[{platform:"windows,linux",shortcut:"Ctrl+Shift+D"},{platform:"mac",shortcut:"Meta+Shift+D"}]}),s.ActionRegistration.registerActionExtension({actionId:"main.zoom-in",category:"GLOBAL",title:S(p.zoomIn),loadActionDelegate:async()=>new((await h()).MainImpl.ZoomActionDelegate),bindings:[{platform:"windows,linux",shortcut:"Ctrl+Plus",keybindSets:["devToolsDefault","vsCode"]},{platform:"windows,linux",shortcut:"Ctrl+Shift+Plus"},{platform:"windows,linux",shortcut:"Ctrl+NumpadPlus"},{platform:"windows,linux",shortcut:"Ctrl+Shift+NumpadPlus"},{platLine truncated
|
||||
+24
-1
@@ -1 +1,24 @@
|
||||
import"../shell/shell.js";import*as e from"../../core/common/common.js";import*as t from"../../core/i18n/i18n.js";import*as o from"../../core/root/root.js";import*as i from"../../ui/legacy/legacy.js";import*as n from"../../core/sdk/sdk.js";import*as a from"../../models/issues_manager/issues_manager.js";import*as r from"../../models/extensions/extensions.js";import*as s from"../../models/workspace/workspace.js";import*as l from"../../panels/network/forward/forward.js";import*as c from"../../core/host/host.js";import*as d from"../../core/rn_experiments/rn_experiments.js";import*as g from"../main/main.js";const u={toggleDeviceToolbar:"Toggle device toolbar",captureScreenshot:"Capture screenshot",captureFullSizeScreenshot:"Capture full size screenshot",captureNodeScreenshot:"Capture node screenshot",showMediaQueries:"Show media queries",device:"device",hideMediaQueries:"Hide media queries",showRulers:"Show rulers in the Device Mode toolbar",hideRulers:"Hide rulers in the Device Mode toolbar",showDeviceFrame:"Show device frame",hideDeviceFrame:"Hide device frame"},m=t.i18n.registerUIStrings("panels/emulation/emulation-meta.ts",u),w=t.i18n.getLazilyComputedLocalizedString.bind(void 0,m);let p;async function v(){return p||(p=await import("../../panels/emulation/emulation.js")),p}i.ActionRegistration.registerActionExtension({category:"MOBILE",actionId:"emulation.toggle-device-mode",toggleable:!0,loadActionDelegate:async()=>new((await v()).DeviceModeWrapper.ActionDelegate),condition:o.Runtime.conditions.canDock,title:w(u.toggleDeviceToolbar),iconClass:"devices",bindings:[{platform:"windows,linux",shortcut:"Shift+Ctrl+M"},{platform:"mac",shortcut:"Shift+Meta+M"}]}),i.ActionRegistration.registerActionExtension({actionId:"emulation.capture-screenshot",category:"SCREENSHOT",loadActionDelegate:async()=>new((await v()).DeviceModeWrapper.ActionDelegate),condition:o.Runtime.conditions.canDock,title:w(u.captureScreenshot)}),i.ActionRegistration.registerActionExtension({actionId:"emulation.capture-full-height-screenshot",category:"SCREENSHOT",loadActionDelegate:async()=>new((await v()).DeviceModeWrapper.ActionDelegate),condition:o.Runtime.conditions.canDock,title:w(u.captureFullSizeScreenshot)}),i.ActionRegistration.registerActionExtension({actionId:"emulation.capture-node-screenshot",category:"SCREENSHOT",loadActionDelegate:async()=>new((await v()).DeviceModeWrapper.ActionDelegate),condition:o.Runtime.conditions.canDock,title:w(u.captureNodeScreenshot)}),e.Settings.registerSettingExtension({category:"MOBILE",settingName:"show-media-query-inspector",settingType:"boolean",defaultValue:!1,options:[{value:!0,title:w(u.showMediaQueries)},{value:!1,title:w(u.hideMediaQueries)}],tags:[w(u.device)]}),e.Settings.registerSettingExtension({category:"MOBILE",settingName:"emulation.show-rulers",settingType:"boolean",defaultValue:!1,options:[{value:!0,title:w(u.showRulers)},{value:!1,title:w(u.hideRulers)}],tags:[w(u.device)]}),e.Settings.registerSettingExtension({category:"MOBILE",settingName:"emulation.show-device-outline",settingType:"boolean",defaultValue:!1,options:[{value:!0,title:w(u.showDeviceFrame)},{value:!1,title:w(u.hideDeviceFrame)}],tags:[w(u.device)]}),i.Toolbar.registerToolbarItem({actionId:"emulation.toggle-device-mode",condition:o.Runtime.conditions.canDock,location:"main-toolbar-left",order:1,loadItem:void 0,separator:void 0}),e.AppProvider.registerAppProvider({loadAppProvider:async()=>(await v()).AdvancedApp.AdvancedAppProvider.instance(),condition:o.Runtime.conditions.canDock,order:0}),i.ContextMenu.registerItem({location:"deviceModeMenu/save",order:12,actionId:"emulation.capture-screenshot"}),i.ContextMenu.registerItem({location:"deviceModeMenu/save",order:13,actionId:"emulation.capture-full-height-screenshot"});const h={sensors:"Sensors",geolocation:"geolocation",timezones:"timezones",locale:"locale",locales:"locales",accelerometer:"accelerometer",deviceOrientation:"device orientation",locations:"Locations",touch:"Touch",devicebased:"Device-based",forceEnabled:"Force enabled",emulateIdleDetectorState:"Emulate Idle Detector state",noIdleEmulation:"No idle emulation",userActiveScreenUnlocked:"User active, screen unlocked",userActiveScreenLocked:"User active, screen locked",userIdleScreenUnlocked:"User idle, screen unlocked",userIdleScreenLocked:"User idle, screen locked",showSensors:"Show Sensors",showLocations:"Show Locations",cpuPressure:"CPU Pressure",noPressureEmulation:"No override",nominal:"Nominal",fair:"Fair",serious:"Serious",critical:"Critical"},R=t.i18n.registerUIStrings("panels/sensors/sensors-meta.ts",h),y=t.i18n.getLazilyComputedLocalizedString.bind(void 0,R);let f;async function k(){return f||(f=await import("../../panels/sensors/sensors.js")),f}i.ViewManager.registerViewExtension({location:"drawer-view",commandPrompt:y(h.showSensors),title:y(h.sensors),id:"sensors",persistence:"closeable",order:100,loadView:async()=>new((await k()).SensorsView.SensorsView),tags:[y(h.geolocation),y(h.timezones),y(h.locLine truncated
|
||||
import"../shell/shell.js";import*as e from"../../core/common/common.js";import*as t from"../../core/i18n/i18n.js";import*as o from"../../core/root/root.js";import*as i from"../../ui/legacy/legacy.js";import*as n from"../../core/sdk/sdk.js";import*as a from"../../models/issues_manager/issues_manager.js";import*as r from"../../models/extensions/extensions.js";import*as s from"../../models/workspace/workspace.js";import*as l from"../../panels/network/forward/forward.js";import*as c from"../../core/host/host.js";import*as d from"../../core/rn_experiments/rn_experiments.js";import*as g from"../main/main.js";import*as u from"../../ui/lit/lit.js";import*as m from"../../ui/visual_logging/visual_logging.js";const w={toggleDeviceToolbar:"Toggle device toolbar",captureScreenshot:"Capture screenshot",captureFullSizeScreenshot:"Capture full size screenshot",captureNodeScreenshot:"Capture node screenshot",showMediaQueries:"Show media queries",device:"device",hideMediaQueries:"Hide media queries",showRulers:"Show rulers in the Device Mode toolbar",hideRulers:"Hide rulers in the Device Mode toolbar",showDeviceFrame:"Show device frame",hideDeviceFrame:"Hide device frame"},p=t.i18n.registerUIStrings("panels/emulation/emulation-meta.ts",w),v=t.i18n.getLazilyComputedLocalizedString.bind(void 0,p);let h;async function y(){return h||(h=await import("../../panels/emulation/emulation.js")),h}i.ActionRegistration.registerActionExtension({category:"MOBILE",actionId:"emulation.toggle-device-mode",toggleable:!0,loadActionDelegate:async()=>new((await y()).DeviceModeWrapper.ActionDelegate),condition:o.Runtime.conditions.canDock,title:v(w.toggleDeviceToolbar),iconClass:"devices",bindings:[{platform:"windows,linux",shortcut:"Shift+Ctrl+M"},{platform:"mac",shortcut:"Shift+Meta+M"}]}),i.ActionRegistration.registerActionExtension({actionId:"emulation.capture-screenshot",category:"SCREENSHOT",loadActionDelegate:async()=>new((await y()).DeviceModeWrapper.ActionDelegate),condition:o.Runtime.conditions.canDock,title:v(w.captureScreenshot)}),i.ActionRegistration.registerActionExtension({actionId:"emulation.capture-full-height-screenshot",category:"SCREENSHOT",loadActionDelegate:async()=>new((await y()).DeviceModeWrapper.ActionDelegate),condition:o.Runtime.conditions.canDock,title:v(w.captureFullSizeScreenshot)}),i.ActionRegistration.registerActionExtension({actionId:"emulation.capture-node-screenshot",category:"SCREENSHOT",loadActionDelegate:async()=>new((await y()).DeviceModeWrapper.ActionDelegate),condition:o.Runtime.conditions.canDock,title:v(w.captureNodeScreenshot)}),e.Settings.registerSettingExtension({category:"MOBILE",settingName:"show-media-query-inspector",settingType:"boolean",defaultValue:!1,options:[{value:!0,title:v(w.showMediaQueries)},{value:!1,title:v(w.hideMediaQueries)}],tags:[v(w.device)]}),e.Settings.registerSettingExtension({category:"MOBILE",settingName:"emulation.show-rulers",settingType:"boolean",defaultValue:!1,options:[{value:!0,title:v(w.showRulers)},{value:!1,title:v(w.hideRulers)}],tags:[v(w.device)]}),e.Settings.registerSettingExtension({category:"MOBILE",settingName:"emulation.show-device-outline",settingType:"boolean",defaultValue:!1,options:[{value:!0,title:v(w.showDeviceFrame)},{value:!1,title:v(w.hideDeviceFrame)}],tags:[v(w.device)]}),i.Toolbar.registerToolbarItem({actionId:"emulation.toggle-device-mode",condition:o.Runtime.conditions.canDock,location:"main-toolbar-left",order:1,loadItem:void 0,separator:void 0}),e.AppProvider.registerAppProvider({loadAppProvider:async()=>(await y()).AdvancedApp.AdvancedAppProvider.instance(),condition:o.Runtime.conditions.canDock,order:0}),i.ContextMenu.registerItem({location:"deviceModeMenu/save",order:12,actionId:"emulation.capture-screenshot"}),i.ContextMenu.registerItem({location:"deviceModeMenu/save",order:13,actionId:"emulation.capture-full-height-screenshot"});const R={sensors:"Sensors",geolocation:"geolocation",timezones:"timezones",locale:"locale",locales:"locales",accelerometer:"accelerometer",deviceOrientation:"device orientation",locations:"Locations",touch:"Touch",devicebased:"Device-based",forceEnabled:"Force enabled",emulateIdleDetectorState:"Emulate Idle Detector state",noIdleEmulation:"No idle emulation",userActiveScreenUnlocked:"User active, screen unlocked",userActiveScreenLocked:"User active, screen locked",userIdleScreenUnlocked:"User idle, screen unlocked",userIdleScreenLocked:"User idle, screen locked",showSensors:"Show Sensors",showLocations:"Show Locations",cpuPressure:"CPU Pressure",noPressureEmulation:"No override",nominal:"Nominal",fair:"Fair",serious:"Serious",critical:"Critical"},f=t.i18n.registerUIStrings("panels/sensors/sensors-meta.ts",R),b=t.i18n.getLazilyComputedLocalizedString.bind(void 0,f);let k;async function S(){return k||(k=await import("../../panels/sensors/sensors.js")),k}i.ViewManager.registerViewExtension({location:"drawer-view",commandPrompt:b(R.showSensors),title:b(R.sensors),id:"sensors",persistence:"closeable",order:100,loadViLine truncated
|
||||
<style>
|
||||
.alert-bar {
|
||||
background: var(--sys-color-tonal-container);
|
||||
color: var(--sys-color-on-tonal-container);
|
||||
padding: var(--sys-size-6) var(--sys-size-8);
|
||||
border-bottom: 1px solid var(--sys-color-tonal-outline);
|
||||
}
|
||||
.alert-title {
|
||||
font: var(--sys-typescale-body2-medium);
|
||||
margin-bottom: var(--sys-size-3);
|
||||
}
|
||||
.alert-detail {
|
||||
font: var(--sys-typescale-body4-regular);
|
||||
}
|
||||
</style>
|
||||
<div class="alert-bar">
|
||||
<div class="alert-title">${o}</div>
|
||||
<div class="alert-detail">
|
||||
${fe(ye.multiHostFeatureDisabledDetail)}
|
||||
See <x-link href="https://github.com/react-native-community/discussions-and-proposals/discussions/954" class="devtools-link" jslog=${m.link().track({click:!0,keydown:"Enter|Space"}).context("multi-host-learn-more")}>discussions/954</x-link>.
|
||||
</div>
|
||||
</div>
|
||||
`,i,{host:this}),e.element.insertBefore(i,e.element.firstChild)};t.tabbedPane.addEventListener(i.TabbedPane.Events.TabSelected,(e=>{const i=e.data.tabId;be.has(i)&&!o.has(i)&&(o.add(i),t.panel(i).then((e=>{e&&a(e,i)})))}));const r=t.tabbedPane.selectedTabId;r&&be.has(r)&&(o.add(r),t.panel(r).then((e=>{e&&a(e,r)}))),this.#d=!0}async#p(){const e=i.InspectorView.InspectorView.instance();try{const t=await e.panel("network");t&&"toggleRecord"in t&&t.toggleRecord(!1)}catch{}}}(n.TargetManager.TargetManager.instance()),c.rnPerfMetrics.entryPointLoadingFinished("rn_fusebox");
|
||||
Vendored
+1
-1
@@ -1 +1 @@
|
||||
import"../shell/shell.js";import*as e from"../../core/common/common.js";import*as t from"../../core/i18n/i18n.js";import*as o from"../../core/root/root.js";import*as i from"../../ui/legacy/legacy.js";import*as n from"../../core/sdk/sdk.js";import*as r from"../../models/issues_manager/issues_manager.js";import*as a from"../../models/extensions/extensions.js";import*as s from"../../models/workspace/workspace.js";import*as l from"../../panels/network/forward/forward.js";import*as c from"../../core/host/host.js";import*as d from"../../core/rn_experiments/rn_experiments.js";import*as g from"../main/main.js";const u={toggleDeviceToolbar:"Toggle device toolbar",captureScreenshot:"Capture screenshot",captureFullSizeScreenshot:"Capture full size screenshot",captureNodeScreenshot:"Capture node screenshot",showMediaQueries:"Show media queries",device:"device",hideMediaQueries:"Hide media queries",showRulers:"Show rulers in the Device Mode toolbar",hideRulers:"Hide rulers in the Device Mode toolbar",showDeviceFrame:"Show device frame",hideDeviceFrame:"Hide device frame"},w=t.i18n.registerUIStrings("panels/emulation/emulation-meta.ts",u),m=t.i18n.getLazilyComputedLocalizedString.bind(void 0,w);let p;async function v(){return p||(p=await import("../../panels/emulation/emulation.js")),p}i.ActionRegistration.registerActionExtension({category:"MOBILE",actionId:"emulation.toggle-device-mode",toggleable:!0,loadActionDelegate:async()=>new((await v()).DeviceModeWrapper.ActionDelegate),condition:o.Runtime.conditions.canDock,title:m(u.toggleDeviceToolbar),iconClass:"devices",bindings:[{platform:"windows,linux",shortcut:"Shift+Ctrl+M"},{platform:"mac",shortcut:"Shift+Meta+M"}]}),i.ActionRegistration.registerActionExtension({actionId:"emulation.capture-screenshot",category:"SCREENSHOT",loadActionDelegate:async()=>new((await v()).DeviceModeWrapper.ActionDelegate),condition:o.Runtime.conditions.canDock,title:m(u.captureScreenshot)}),i.ActionRegistration.registerActionExtension({actionId:"emulation.capture-full-height-screenshot",category:"SCREENSHOT",loadActionDelegate:async()=>new((await v()).DeviceModeWrapper.ActionDelegate),condition:o.Runtime.conditions.canDock,title:m(u.captureFullSizeScreenshot)}),i.ActionRegistration.registerActionExtension({actionId:"emulation.capture-node-screenshot",category:"SCREENSHOT",loadActionDelegate:async()=>new((await v()).DeviceModeWrapper.ActionDelegate),condition:o.Runtime.conditions.canDock,title:m(u.captureNodeScreenshot)}),e.Settings.registerSettingExtension({category:"MOBILE",settingName:"show-media-query-inspector",settingType:"boolean",defaultValue:!1,options:[{value:!0,title:m(u.showMediaQueries)},{value:!1,title:m(u.hideMediaQueries)}],tags:[m(u.device)]}),e.Settings.registerSettingExtension({category:"MOBILE",settingName:"emulation.show-rulers",settingType:"boolean",defaultValue:!1,options:[{value:!0,title:m(u.showRulers)},{value:!1,title:m(u.hideRulers)}],tags:[m(u.device)]}),e.Settings.registerSettingExtension({category:"MOBILE",settingName:"emulation.show-device-outline",settingType:"boolean",defaultValue:!1,options:[{value:!0,title:m(u.showDeviceFrame)},{value:!1,title:m(u.hideDeviceFrame)}],tags:[m(u.device)]}),i.Toolbar.registerToolbarItem({actionId:"emulation.toggle-device-mode",condition:o.Runtime.conditions.canDock,location:"main-toolbar-left",order:1,loadItem:void 0,separator:void 0}),e.AppProvider.registerAppProvider({loadAppProvider:async()=>(await v()).AdvancedApp.AdvancedAppProvider.instance(),condition:o.Runtime.conditions.canDock,order:0}),i.ContextMenu.registerItem({location:"deviceModeMenu/save",order:12,actionId:"emulation.capture-screenshot"}),i.ContextMenu.registerItem({location:"deviceModeMenu/save",order:13,actionId:"emulation.capture-full-height-screenshot"});const h={sensors:"Sensors",geolocation:"geolocation",timezones:"timezones",locale:"locale",locales:"locales",accelerometer:"accelerometer",deviceOrientation:"device orientation",locations:"Locations",touch:"Touch",devicebased:"Device-based",forceEnabled:"Force enabled",emulateIdleDetectorState:"Emulate Idle Detector state",noIdleEmulation:"No idle emulation",userActiveScreenUnlocked:"User active, screen unlocked",userActiveScreenLocked:"User active, screen locked",userIdleScreenUnlocked:"User idle, screen unlocked",userIdleScreenLocked:"User idle, screen locked",showSensors:"Show Sensors",showLocations:"Show Locations",cpuPressure:"CPU Pressure",noPressureEmulation:"No override",nominal:"Nominal",fair:"Fair",serious:"Serious",critical:"Critical"},R=t.i18n.registerUIStrings("panels/sensors/sensors-meta.ts",h),k=t.i18n.getLazilyComputedLocalizedString.bind(void 0,R);let y;async function S(){return y||(y=await import("../../panels/sensors/sensors.js")),y}i.ViewManager.registerViewExtension({location:"drawer-view",commandPrompt:k(h.showSensors),title:k(h.sensors),id:"sensors",persistence:"closeable",order:100,loadView:async()=>new((await S()).SensorsView.SensorsView),tags:[k(h.geolocation),k(h.timezones),k(h.locLine truncated
|
||||
import"../shell/shell.js";import*as e from"../../core/common/common.js";import*as t from"../../core/i18n/i18n.js";import*as o from"../../core/root/root.js";import*as i from"../../ui/legacy/legacy.js";import*as n from"../../core/sdk/sdk.js";import*as r from"../../models/issues_manager/issues_manager.js";import*as a from"../../models/extensions/extensions.js";import*as s from"../../models/workspace/workspace.js";import*as l from"../../panels/network/forward/forward.js";import*as c from"../../core/host/host.js";import*as d from"../../core/rn_experiments/rn_experiments.js";import*as g from"../main/main.js";const u={toggleDeviceToolbar:"Toggle device toolbar",captureScreenshot:"Capture screenshot",captureFullSizeScreenshot:"Capture full size screenshot",captureNodeScreenshot:"Capture node screenshot",showMediaQueries:"Show media queries",device:"device",hideMediaQueries:"Hide media queries",showRulers:"Show rulers in the Device Mode toolbar",hideRulers:"Hide rulers in the Device Mode toolbar",showDeviceFrame:"Show device frame",hideDeviceFrame:"Hide device frame"},w=t.i18n.registerUIStrings("panels/emulation/emulation-meta.ts",u),m=t.i18n.getLazilyComputedLocalizedString.bind(void 0,w);let p;async function v(){return p||(p=await import("../../panels/emulation/emulation.js")),p}i.ActionRegistration.registerActionExtension({category:"MOBILE",actionId:"emulation.toggle-device-mode",toggleable:!0,loadActionDelegate:async()=>new((await v()).DeviceModeWrapper.ActionDelegate),condition:o.Runtime.conditions.canDock,title:m(u.toggleDeviceToolbar),iconClass:"devices",bindings:[{platform:"windows,linux",shortcut:"Shift+Ctrl+M"},{platform:"mac",shortcut:"Shift+Meta+M"}]}),i.ActionRegistration.registerActionExtension({actionId:"emulation.capture-screenshot",category:"SCREENSHOT",loadActionDelegate:async()=>new((await v()).DeviceModeWrapper.ActionDelegate),condition:o.Runtime.conditions.canDock,title:m(u.captureScreenshot)}),i.ActionRegistration.registerActionExtension({actionId:"emulation.capture-full-height-screenshot",category:"SCREENSHOT",loadActionDelegate:async()=>new((await v()).DeviceModeWrapper.ActionDelegate),condition:o.Runtime.conditions.canDock,title:m(u.captureFullSizeScreenshot)}),i.ActionRegistration.registerActionExtension({actionId:"emulation.capture-node-screenshot",category:"SCREENSHOT",loadActionDelegate:async()=>new((await v()).DeviceModeWrapper.ActionDelegate),condition:o.Runtime.conditions.canDock,title:m(u.captureNodeScreenshot)}),e.Settings.registerSettingExtension({category:"MOBILE",settingName:"show-media-query-inspector",settingType:"boolean",defaultValue:!1,options:[{value:!0,title:m(u.showMediaQueries)},{value:!1,title:m(u.hideMediaQueries)}],tags:[m(u.device)]}),e.Settings.registerSettingExtension({category:"MOBILE",settingName:"emulation.show-rulers",settingType:"boolean",defaultValue:!1,options:[{value:!0,title:m(u.showRulers)},{value:!1,title:m(u.hideRulers)}],tags:[m(u.device)]}),e.Settings.registerSettingExtension({category:"MOBILE",settingName:"emulation.show-device-outline",settingType:"boolean",defaultValue:!1,options:[{value:!0,title:m(u.showDeviceFrame)},{value:!1,title:m(u.hideDeviceFrame)}],tags:[m(u.device)]}),i.Toolbar.registerToolbarItem({actionId:"emulation.toggle-device-mode",condition:o.Runtime.conditions.canDock,location:"main-toolbar-left",order:1,loadItem:void 0,separator:void 0}),e.AppProvider.registerAppProvider({loadAppProvider:async()=>(await v()).AdvancedApp.AdvancedAppProvider.instance(),condition:o.Runtime.conditions.canDock,order:0}),i.ContextMenu.registerItem({location:"deviceModeMenu/save",order:12,actionId:"emulation.capture-screenshot"}),i.ContextMenu.registerItem({location:"deviceModeMenu/save",order:13,actionId:"emulation.capture-full-height-screenshot"});const h={sensors:"Sensors",geolocation:"geolocation",timezones:"timezones",locale:"locale",locales:"locales",accelerometer:"accelerometer",deviceOrientation:"device orientation",locations:"Locations",touch:"Touch",devicebased:"Device-based",forceEnabled:"Force enabled",emulateIdleDetectorState:"Emulate Idle Detector state",noIdleEmulation:"No idle emulation",userActiveScreenUnlocked:"User active, screen unlocked",userActiveScreenLocked:"User active, screen locked",userIdleScreenUnlocked:"User idle, screen unlocked",userIdleScreenLocked:"User idle, screen locked",showSensors:"Show Sensors",showLocations:"Show Locations",cpuPressure:"CPU Pressure",noPressureEmulation:"No override",nominal:"Nominal",fair:"Fair",serious:"Serious",critical:"Critical"},k=t.i18n.registerUIStrings("panels/sensors/sensors-meta.ts",h),R=t.i18n.getLazilyComputedLocalizedString.bind(void 0,k);let y;async function S(){return y||(y=await import("../../panels/sensors/sensors.js")),y}i.ViewManager.registerViewExtension({location:"drawer-view",commandPrompt:R(h.showSensors),title:R(h.sensors),id:"sensors",persistence:"closeable",order:100,loadView:async()=>new((await S()).SensorsView.SensorsView),tags:[R(h.geolocation),R(h.timezones),R(h.locLine truncated
|
||||
+1
-1
@@ -1 +1 @@
|
||||
import"../../Images/Images.js";import"../../core/dom_extension/dom_extension.js";import*as e from"../../core/common/common.js";import*as t from"../../core/host/host.js";import*as o from"../../core/i18n/i18n.js";import*as i from"../../core/root/root.js";import*as a from"../../core/sdk/sdk.js";import*as n from"../../models/breakpoints/breakpoints.js";import*as s from"../../models/workspace/workspace.js";import*as r from"../../ui/legacy/components/object_ui/object_ui.js";import*as l from"../../ui/legacy/components/quick_open/quick_open.js";import*as c from"../../ui/legacy/legacy.js";import*as g from"../../ui/components/legacy_wrapper/legacy_wrapper.js";import*as d from"../../ui/legacy/components/utils/utils.js";import*as u from"../../panels/console/console.js";import"../main/main.js";navigator.userAgent.includes("Chrome")||alert("DevTools is only supported in Chrome, Edge and other Blink-based browsers.\n\nOpen this page in a compatible browser to continue.");const p={showSources:"Show Sources",sources:"Sources",showWorkspace:"Show Workspace",workspace:"Workspace",showSnippets:"Show Snippets",snippets:"Snippets",showSearch:"Show Search",search:"Search",showQuickSource:"Show Quick source",quickSource:"Quick source",showThreads:"Show Threads",threads:"Threads",showScope:"Show Scope",scope:"Scope",showWatch:"Show Watch",watch:"Watch",showBreakpoints:"Show Breakpoints",breakpoints:"Breakpoints",pauseScriptExecution:"Pause script execution",resumeScriptExecution:"Resume script execution",stepOverNextFunctionCall:"Step over next function call",stepIntoNextFunctionCall:"Step into next function call",step:"Step",stepOutOfCurrentFunction:"Step out of current function",runSnippet:"Run snippet",deactivateBreakpoints:"Deactivate breakpoints",activateBreakpoints:"Activate breakpoints",addSelectedTextToWatches:"Add selected text to watches",evaluateSelectedTextInConsole:"Evaluate selected text in console",switchFile:"Switch file",rename:"Rename",closeAll:"Close all",jumpToPreviousEditingLocation:"Jump to previous editing location",jumpToNextEditingLocation:"Jump to next editing location",closeTheActiveTab:"Close the active tab",goToLine:"Go to line",goToAFunctionDeclarationruleSet:"Go to a function declaration/rule set",toggleBreakpoint:"Toggle breakpoint",toggleBreakpointEnabled:"Toggle breakpoint enabled",toggleBreakpointInputWindow:"Toggle breakpoint input window",save:"Save",saveAll:"Save all",createNewSnippet:"Create new snippet",addFolderToWorkspace:"Add folder to workspace",addFolder:"Add folder",previousCallFrame:"Previous call frame",nextCallFrame:"Next call frame",incrementCssUnitBy:"Increment CSS unit by {PH1}",decrementCssUnitBy:"Decrement CSS unit by {PH1}",searchInAnonymousAndContent:"Search in anonymous and content scripts",doNotSearchInAnonymousAndContent:"Do not search in anonymous and content scripts",automaticallyRevealFilesIn:"Automatically reveal files in sidebar",doNotAutomaticallyRevealFilesIn:"Do not automatically reveal files in sidebar",javaScriptSourceMaps:"JavaScript source maps",enableJavaScriptSourceMaps:"Enable JavaScript source maps",disableJavaScriptSourceMaps:"Disable JavaScript source maps",tabMovesFocus:"Tab moves focus",enableTabMovesFocus:"Enable tab moves focus",disableTabMovesFocus:"Disable tab moves focus",detectIndentation:"Detect indentation",doNotDetectIndentation:"Do not detect indentation",automaticallyPrettyPrintMinifiedSources:"Automatically pretty print minified sources",doNotAutomaticallyPrettyPrintMinifiedSources:"Do not automatically pretty print minified sources",autocompletion:"Autocompletion",enableAutocompletion:"Enable autocompletion",disableAutocompletion:"Disable autocompletion",bracketClosing:"Auto closing brackets",enableBracketClosing:"Enable auto closing brackets",disableBracketClosing:"Disable auto closing brackets",bracketMatching:"Bracket matching",enableBracketMatching:"Enable bracket matching",disableBracketMatching:"Disable bracket matching",codeFolding:"Code folding",enableCodeFolding:"Enable code folding",disableCodeFolding:"Disable code folding",showWhitespaceCharacters:"Show whitespace characters:",doNotShowWhitespaceCharacters:"Do not show whitespace characters",none:"None",showAllWhitespaceCharacters:"Show all whitespace characters",all:"All",showTrailingWhitespaceCharacters:"Show trailing whitespace characters",trailing:"Trailing",displayVariableValuesInlineWhile:"Display variable values inline while debugging",doNotDisplayVariableValuesInline:"Do not display variable values inline while debugging",cssSourceMaps:"CSS source maps",enableCssSourceMaps:"Enable CSS source maps",disableCssSourceMaps:"Disable CSS source maps",allowScrollingPastEndOfFile:"Allow scrolling past end of file",disallowScrollingPastEndOfFile:"Disallow scrolling past end of file",wasmAutoStepping:"When debugging Wasm with debug information, do not pause on wasm bytecode if possible",enableWasmAutoStepping:"Enable Wasm auto-stepping",disableWasmAutoStepping:"Disable Wasm auto-steLine truncated
|
||||
import"../../Images/Images.js";import"../../core/dom_extension/dom_extension.js";import*as e from"../../core/common/common.js";import*as t from"../../core/host/host.js";import*as o from"../../core/i18n/i18n.js";import*as i from"../../core/root/root.js";import*as a from"../../core/sdk/sdk.js";import*as n from"../../models/breakpoints/breakpoints.js";import*as s from"../../models/workspace/workspace.js";import*as r from"../../ui/legacy/components/object_ui/object_ui.js";import*as l from"../../ui/legacy/components/quick_open/quick_open.js";import*as c from"../../ui/legacy/legacy.js";import*as g from"../../ui/components/legacy_wrapper/legacy_wrapper.js";import*as d from"../../ui/legacy/components/utils/utils.js";import*as u from"../../panels/console/console.js";import"../main/main.js";navigator.userAgent.includes("Chrome")||alert("DevTools is only supported in Chrome, Edge and other Blink-based browsers.\n\nOpen this page in a compatible browser to continue.");const p={showSources:"Show Sources",sources:"Sources",showWorkspace:"Show Workspace",workspace:"Workspace",showSnippets:"Show Snippets",snippets:"Snippets",showSearch:"Show Search",search:"Search",showQuickSource:"Show Quick source",quickSource:"Quick source",showThreads:"Show Threads",threads:"Threads",showScope:"Show Scope",scope:"Scope",showWatch:"Show Watch",watch:"Watch",showBreakpoints:"Show Breakpoints",breakpoints:"Breakpoints",pauseScriptExecution:"Pause script execution",resumeScriptExecution:"Resume script execution",stepOverNextFunctionCall:"Step over next function call",stepIntoNextFunctionCall:"Step into next function call",step:"Step",stepOutOfCurrentFunction:"Step out of current function",runSnippet:"Run snippet",deactivateBreakpoints:"Deactivate breakpoints",activateBreakpoints:"Activate breakpoints",addSelectedTextToWatches:"Add selected text to watches",evaluateSelectedTextInConsole:"Evaluate selected text in console",switchFile:"Switch file",rename:"Rename",closeAll:"Close all",jumpToPreviousEditingLocation:"Jump to previous editing location",jumpToNextEditingLocation:"Jump to next editing location",closeTheActiveTab:"Close the active tab",goToLine:"Go to line",goToAFunctionDeclarationruleSet:"Go to a function declaration/rule set",toggleBreakpoint:"Toggle breakpoint",toggleBreakpointEnabled:"Toggle breakpoint enabled",toggleBreakpointInputWindow:"Toggle breakpoint input window",save:"Save",saveAll:"Save all",createNewSnippet:"Create new snippet",addFolderToWorkspace:"Add folder to workspace",addFolder:"Add folder",previousCallFrame:"Previous call frame",nextCallFrame:"Next call frame",incrementCssUnitBy:"Increment CSS unit by {PH1}",decrementCssUnitBy:"Decrement CSS unit by {PH1}",searchInAnonymousAndContent:"Search in anonymous and content scripts",doNotSearchInAnonymousAndContent:"Do not search in anonymous and content scripts",automaticallyRevealFilesIn:"Automatically reveal files in sidebar",doNotAutomaticallyRevealFilesIn:"Do not automatically reveal files in sidebar",javaScriptSourceMaps:"JavaScript source maps",enableJavaScriptSourceMaps:"Enable JavaScript source maps",disableJavaScriptSourceMaps:"Disable JavaScript source maps",tabMovesFocus:"Tab moves focus",enableTabMovesFocus:"Enable tab moves focus",disableTabMovesFocus:"Disable tab moves focus",detectIndentation:"Detect indentation",doNotDetectIndentation:"Do not detect indentation",automaticallyPrettyPrintMinifiedSources:"Automatically pretty print minified sources",doNotAutomaticallyPrettyPrintMinifiedSources:"Do not automatically pretty print minified sources",autocompletion:"Autocompletion",enableAutocompletion:"Enable autocompletion",disableAutocompletion:"Disable autocompletion",bracketClosing:"Auto closing brackets",enableBracketClosing:"Enable auto closing brackets",disableBracketClosing:"Disable auto closing brackets",bracketMatching:"Bracket matching",enableBracketMatching:"Enable bracket matching",disableBracketMatching:"Disable bracket matching",codeFolding:"Code folding",enableCodeFolding:"Enable code folding",disableCodeFolding:"Disable code folding",showWhitespaceCharacters:"Show whitespace characters:",doNotShowWhitespaceCharacters:"Do not show whitespace characters",none:"None",showAllWhitespaceCharacters:"Show all whitespace characters",all:"All",showTrailingWhitespaceCharacters:"Show trailing whitespace characters",trailing:"Trailing",displayVariableValuesInlineWhile:"Display variable values inline while debugging",doNotDisplayVariableValuesInline:"Do not display variable values inline while debugging",cssSourceMaps:"CSS source maps",enableCssSourceMaps:"Enable CSS source maps",disableCssSourceMaps:"Disable CSS source maps",allowScrollingPastEndOfFile:"Allow scrolling past end of file",disallowScrollingPastEndOfFile:"Disallow scrolling past end of file",wasmAutoStepping:"When debugging Wasm with debug information, do not pause on wasm bytecode if possible",enableWasmAutoStepping:"Enable Wasm auto-stepping",disableWasmAutoStepping:"Disable Wasm auto-steLine truncated
|
||||
+1
-1
@@ -1 +1 @@
|
||||
import"../shell/shell.js";import*as e from"../../core/i18n/i18n.js";import*as t from"../../core/root/root.js";import*as o from"../../core/sdk/sdk.js";import*as i from"../../ui/legacy/legacy.js";import*as n from"../../core/common/common.js";import*as a from"../../models/issues_manager/issues_manager.js";import*as r from"../../models/extensions/extensions.js";import*as s from"../../models/workspace/workspace.js";import*as l from"../../panels/network/forward/forward.js";import*as c from"../../panels/application/preloading/helper/helper.js";import*as g from"../../panels/mobile_throttling/mobile_throttling.js";import*as d from"../../ui/legacy/components/utils/utils.js";import*as w from"../main/main.js";const p={showEventListenerBreakpoints:"Show Event Listener Breakpoints",eventListenerBreakpoints:"Event Listener Breakpoints",showCspViolationBreakpoints:"Show CSP Violation Breakpoints",cspViolationBreakpoints:"CSP Violation Breakpoints",showXhrfetchBreakpoints:"Show XHR/fetch Breakpoints",xhrfetchBreakpoints:"XHR/fetch Breakpoints",showDomBreakpoints:"Show DOM Breakpoints",domBreakpoints:"DOM Breakpoints",showGlobalListeners:"Show Global Listeners",globalListeners:"Global Listeners",page:"Page",showPage:"Show Page",overrides:"Overrides",showOverrides:"Show Overrides",contentScripts:"Content scripts",showContentScripts:"Show Content scripts",refreshGlobalListeners:"Refresh global listeners"},m=e.i18n.registerUIStrings("panels/browser_debugger/browser_debugger-meta.ts",p),u=e.i18n.getLazilyComputedLocalizedString.bind(void 0,m);let R,v;async function h(){return R||(R=await import("../../panels/browser_debugger/browser_debugger.js")),R}async function y(){return v||(v=await import("../../panels/sources/sources.js")),v}i.ViewManager.registerViewExtension({loadView:async()=>(await h()).EventListenerBreakpointsSidebarPane.EventListenerBreakpointsSidebarPane.instance(),id:"sources.event-listener-breakpoints",location:"sources.sidebar-bottom",commandPrompt:u(p.showEventListenerBreakpoints),title:u(p.eventListenerBreakpoints),order:9,persistence:"permanent"}),i.ViewManager.registerViewExtension({loadView:async()=>new((await h()).CSPViolationBreakpointsSidebarPane.CSPViolationBreakpointsSidebarPane),id:"sources.csp-violation-breakpoints",location:"sources.sidebar-bottom",commandPrompt:u(p.showCspViolationBreakpoints),title:u(p.cspViolationBreakpoints),order:10,persistence:"permanent"}),i.ViewManager.registerViewExtension({loadView:async()=>(await h()).XHRBreakpointsSidebarPane.XHRBreakpointsSidebarPane.instance(),id:"sources.xhr-breakpoints",location:"sources.sidebar-bottom",commandPrompt:u(p.showXhrfetchBreakpoints),title:u(p.xhrfetchBreakpoints),order:5,persistence:"permanent",hasToolbar:!0}),i.ViewManager.registerViewExtension({loadView:async()=>(await h()).DOMBreakpointsSidebarPane.DOMBreakpointsSidebarPane.instance(),id:"sources.dom-breakpoints",location:"sources.sidebar-bottom",commandPrompt:u(p.showDomBreakpoints),title:u(p.domBreakpoints),order:7,persistence:"permanent"}),i.ViewManager.registerViewExtension({loadView:async()=>new((await h()).ObjectEventListenersSidebarPane.ObjectEventListenersSidebarPane),id:"sources.global-listeners",location:"sources.sidebar-bottom",commandPrompt:u(p.showGlobalListeners),title:u(p.globalListeners),order:8,persistence:"permanent",hasToolbar:!0}),i.ViewManager.registerViewExtension({loadView:async()=>(await h()).DOMBreakpointsSidebarPane.DOMBreakpointsSidebarPane.instance(),id:"elements.dom-breakpoints",location:"elements-sidebar",commandPrompt:u(p.showDomBreakpoints),title:u(p.domBreakpoints),order:6,persistence:"permanent"}),i.ViewManager.registerViewExtension({location:"navigator-view",id:"navigator-network",title:u(p.page),commandPrompt:u(p.showPage),order:2,persistence:"permanent",loadView:async()=>(await y()).SourcesNavigator.NetworkNavigatorView.instance()}),i.ViewManager.registerViewExtension({location:"navigator-view",id:"navigator-overrides",title:u(p.overrides),commandPrompt:u(p.showOverrides),order:4,persistence:"permanent",loadView:async()=>(await y()).SourcesNavigator.OverridesNavigatorView.instance()}),i.ViewManager.registerViewExtension({location:"navigator-view",id:"navigator-content-scripts",title:u(p.contentScripts),commandPrompt:u(p.showContentScripts),order:5,persistence:"permanent",condition:()=>"/bundled/worker_app.html"!==t.Runtime.getPathName(),loadView:async()=>new((await y()).SourcesNavigator.ContentScriptsNavigatorView)}),i.ActionRegistration.registerActionExtension({category:"DEBUGGER",actionId:"browser-debugger.refresh-global-event-listeners",loadActionDelegate:async()=>new((await h()).ObjectEventListenersSidebarPane.ActionDelegate),title:u(p.refreshGlobalListeners),iconClass:"refresh",contextTypes:()=>void 0===R?[]:(e=>[e.ObjectEventListenersSidebarPane.ObjectEventListenersSidebarPane])(R)}),i.ContextMenu.registerProvider({contextTypes:()=>[o.DOMModel.DOMNode],loadProvider:async()=>new((await h()).DOMBreakpointsSidebarPane.ContextMenuProvider),experiLine truncated
|
||||
import"../shell/shell.js";import*as e from"../../core/i18n/i18n.js";import*as t from"../../core/root/root.js";import*as o from"../../core/sdk/sdk.js";import*as i from"../../ui/legacy/legacy.js";import*as n from"../../core/common/common.js";import*as a from"../../models/issues_manager/issues_manager.js";import*as r from"../../models/extensions/extensions.js";import*as s from"../../models/workspace/workspace.js";import*as l from"../../panels/network/forward/forward.js";import*as c from"../../panels/application/preloading/helper/helper.js";import*as g from"../../panels/mobile_throttling/mobile_throttling.js";import*as d from"../../ui/legacy/components/utils/utils.js";import*as w from"../main/main.js";const p={showEventListenerBreakpoints:"Show Event Listener Breakpoints",eventListenerBreakpoints:"Event Listener Breakpoints",showCspViolationBreakpoints:"Show CSP Violation Breakpoints",cspViolationBreakpoints:"CSP Violation Breakpoints",showXhrfetchBreakpoints:"Show XHR/fetch Breakpoints",xhrfetchBreakpoints:"XHR/fetch Breakpoints",showDomBreakpoints:"Show DOM Breakpoints",domBreakpoints:"DOM Breakpoints",showGlobalListeners:"Show Global Listeners",globalListeners:"Global Listeners",page:"Page",showPage:"Show Page",overrides:"Overrides",showOverrides:"Show Overrides",contentScripts:"Content scripts",showContentScripts:"Show Content scripts",refreshGlobalListeners:"Refresh global listeners"},m=e.i18n.registerUIStrings("panels/browser_debugger/browser_debugger-meta.ts",p),u=e.i18n.getLazilyComputedLocalizedString.bind(void 0,m);let R,v;async function h(){return R||(R=await import("../../panels/browser_debugger/browser_debugger.js")),R}async function y(){return v||(v=await import("../../panels/sources/sources.js")),v}i.ViewManager.registerViewExtension({loadView:async()=>(await h()).EventListenerBreakpointsSidebarPane.EventListenerBreakpointsSidebarPane.instance(),id:"sources.event-listener-breakpoints",location:"sources.sidebar-bottom",commandPrompt:u(p.showEventListenerBreakpoints),title:u(p.eventListenerBreakpoints),order:9,persistence:"permanent"}),i.ViewManager.registerViewExtension({loadView:async()=>new((await h()).CSPViolationBreakpointsSidebarPane.CSPViolationBreakpointsSidebarPane),id:"sources.csp-violation-breakpoints",location:"sources.sidebar-bottom",commandPrompt:u(p.showCspViolationBreakpoints),title:u(p.cspViolationBreakpoints),order:10,persistence:"permanent"}),i.ViewManager.registerViewExtension({loadView:async()=>(await h()).XHRBreakpointsSidebarPane.XHRBreakpointsSidebarPane.instance(),id:"sources.xhr-breakpoints",location:"sources.sidebar-bottom",commandPrompt:u(p.showXhrfetchBreakpoints),title:u(p.xhrfetchBreakpoints),order:5,persistence:"permanent",hasToolbar:!0}),i.ViewManager.registerViewExtension({loadView:async()=>(await h()).DOMBreakpointsSidebarPane.DOMBreakpointsSidebarPane.instance(),id:"sources.dom-breakpoints",location:"sources.sidebar-bottom",commandPrompt:u(p.showDomBreakpoints),title:u(p.domBreakpoints),order:7,persistence:"permanent"}),i.ViewManager.registerViewExtension({loadView:async()=>new((await h()).ObjectEventListenersSidebarPane.ObjectEventListenersSidebarPane),id:"sources.global-listeners",location:"sources.sidebar-bottom",commandPrompt:u(p.showGlobalListeners),title:u(p.globalListeners),order:8,persistence:"permanent",hasToolbar:!0}),i.ViewManager.registerViewExtension({loadView:async()=>(await h()).DOMBreakpointsSidebarPane.DOMBreakpointsSidebarPane.instance(),id:"elements.dom-breakpoints",location:"elements-sidebar",commandPrompt:u(p.showDomBreakpoints),title:u(p.domBreakpoints),order:6,persistence:"permanent"}),i.ViewManager.registerViewExtension({location:"navigator-view",id:"navigator-network",title:u(p.page),commandPrompt:u(p.showPage),order:2,persistence:"permanent",loadView:async()=>(await y()).SourcesNavigator.NetworkNavigatorView.instance()}),i.ViewManager.registerViewExtension({location:"navigator-view",id:"navigator-overrides",title:u(p.overrides),commandPrompt:u(p.showOverrides),order:4,persistence:"permanent",loadView:async()=>(await y()).SourcesNavigator.OverridesNavigatorView.instance()}),i.ViewManager.registerViewExtension({location:"navigator-view",id:"navigator-content-scripts",title:u(p.contentScripts),commandPrompt:u(p.showContentScripts),order:5,persistence:"permanent",condition:()=>"/bundled/worker_app.html"!==t.Runtime.getPathName(),loadView:async()=>new((await y()).SourcesNavigator.ContentScriptsNavigatorView)}),i.ActionRegistration.registerActionExtension({category:"DEBUGGER",actionId:"browser-debugger.refresh-global-event-listeners",loadActionDelegate:async()=>new((await h()).ObjectEventListenersSidebarPane.ActionDelegate),title:u(p.refreshGlobalListeners),iconClass:"refresh",contextTypes:()=>void 0===R?[]:(e=>[e.ObjectEventListenersSidebarPane.ObjectEventListenersSidebarPane])(R)}),i.ContextMenu.registerProvider({contextTypes:()=>[o.DOMModel.DOMNode],loadProvider:async()=>new((await h()).DOMBreakpointsSidebarPane.ContextMenuProvider),experiLine truncated
|
||||
+1
-1
@@ -1 +1 @@
|
||||
import*as e from"../../core/common/common.js";import*as t from"../../core/i18n/i18n.js";import*as o from"../../core/root/root.js";import*as r from"../../core/sdk/sdk.js";import*as n from"../../models/extensions/extensions.js";import*as a from"../../models/workspace/workspace.js";import*as i from"../../ui/legacy/legacy.js";import*as s from"./forward/forward.js";const l={showNetwork:"Show Network",network:"Network",networkExpoUnstable:"Network (Expo, unstable)",showNetworkRequestBlocking:"Show Network request blocking",networkRequestBlocking:"Network request blocking",showNetworkConditions:"Show Network conditions",networkConditions:"Network conditions",diskCache:"disk cache",networkThrottling:"network throttling",showSearch:"Show Search",search:"Search",recordNetworkLog:"Record network log",stopRecordingNetworkLog:"Stop recording network log",hideRequestDetails:"Hide request details",colorcodeResourceTypes:"Color-code resource types",colorCode:"color code",resourceType:"resource type",colorCodeByResourceType:"Color code by resource type",useDefaultColors:"Use default colors",groupNetworkLogByFrame:"Group network log by frame",netWork:"network",frame:"frame",group:"group",groupNetworkLogItemsByFrame:"Group network log items by frame",dontGroupNetworkLogItemsByFrame:"Don't group network log items by frame",clear:"Clear network log",addNetworkRequestBlockingPattern:"Add network request blocking pattern",removeAllNetworkRequestBlockingPatterns:"Remove all network request blocking patterns",allowToGenerateHarWithSensitiveData:"Allow to generate `HAR` with sensitive data",dontAllowToGenerateHarWithSensitiveData:"Don't allow to generate `HAR` with sensitive data",allowToGenerateHarWithSensitiveDataDocumentation:"By default generated HAR logs are sanitized and don't include `Cookie`, `Set-Cookie`, or `Authorization` HTTP headers. When this setting is enabled, options to export/copy HAR with sensitive data are provided."},c=t.i18n.registerUIStrings("panels/network/network-meta.ts",l),w=t.i18n.getLazilyComputedLocalizedString.bind(void 0,c),d=t.i18n.getLocalizedString.bind(void 0,c);let g;async function k(){return g||(g=await import("./network.js")),g}function u(e){return void 0===g?[]:e(g)}i.ViewManager.registerViewExtension({location:"panel",id:"network",commandPrompt:w(l.showNetwork),title:()=>o.Runtime.experiments.isEnabled(o.Runtime.RNExperimentName.ENABLE_NETWORK_PANEL)?d(l.network):d(l.networkExpoUnstable),order:40,isPreviewFeature:!0,condition:o.Runtime.conditions.reactNativeUnstableNetworkPanel,loadView:async()=>(await k()).NetworkPanel.NetworkPanel.instance()}),i.ViewManager.registerViewExtension({location:"drawer-view",id:"network.blocked-urls",commandPrompt:w(l.showNetworkRequestBlocking),title:w(l.networkRequestBlocking),persistence:"closeable",order:60,loadView:async()=>new((await k()).BlockedURLsPane.BlockedURLsPane)}),i.ViewManager.registerViewExtension({location:"drawer-view",id:"network.config",commandPrompt:w(l.showNetworkConditions),title:w(l.networkConditions),persistence:"closeable",order:40,tags:[w(l.diskCache),w(l.networkThrottling),t.i18n.lockedLazyString("useragent"),t.i18n.lockedLazyString("user agent"),t.i18n.lockedLazyString("user-agent")],loadView:async()=>(await k()).NetworkConfigView.NetworkConfigView.instance()}),i.ViewManager.registerViewExtension({location:"network-sidebar",id:"network.search-network-tab",commandPrompt:w(l.showSearch),title:w(l.search),persistence:"permanent",loadView:async()=>(await k()).NetworkPanel.SearchNetworkView.instance()}),i.ActionRegistration.registerActionExtension({actionId:"network.toggle-recording",category:"NETWORK",iconClass:"record-start",toggleable:!0,toggledIconClass:"record-stop",toggleWithRedColor:!0,contextTypes:()=>u((e=>[e.NetworkPanel.NetworkPanel])),loadActionDelegate:async()=>new((await k()).NetworkPanel.ActionDelegate),options:[{value:!0,title:w(l.recordNetworkLog)},{value:!1,title:w(l.stopRecordingNetworkLog)}],bindings:[{shortcut:"Ctrl+E",platform:"windows,linux"},{shortcut:"Meta+E",platform:"mac"}]}),i.ActionRegistration.registerActionExtension({actionId:"network.clear",category:"NETWORK",title:w(l.clear),iconClass:"clear",loadActionDelegate:async()=>new((await k()).NetworkPanel.ActionDelegate),contextTypes:()=>u((e=>[e.NetworkPanel.NetworkPanel])),bindings:[{shortcut:"Ctrl+L"},{shortcut:"Meta+K",platform:"mac"}]}),i.ActionRegistration.registerActionExtension({actionId:"network.hide-request-details",category:"NETWORK",title:w(l.hideRequestDetails),contextTypes:()=>u((e=>[e.NetworkPanel.NetworkPanel])),loadActionDelegate:async()=>new((await k()).NetworkPanel.ActionDelegate),bindings:[{shortcut:"Esc"}]}),i.ActionRegistration.registerActionExtension({actionId:"network.search",category:"NETWORK",title:w(l.search),contextTypes:()=>u((e=>[e.NetworkPanel.NetworkPanel])),loadActionDelegate:async()=>new((await k()).NetworkPanel.ActionDelegate),bindings:[{platform:"mac",shortcut:"Meta+F",keybindSets:["devToolsDefault","vsCode"]},{platform:"windoLine truncated
|
||||
import*as e from"../../core/common/common.js";import*as t from"../../core/i18n/i18n.js";import*as o from"../../core/root/root.js";import*as r from"../../core/sdk/sdk.js";import*as n from"../../models/extensions/extensions.js";import*as a from"../../models/workspace/workspace.js";import*as i from"../../ui/legacy/legacy.js";import*as s from"./forward/forward.js";const l={showNetwork:"Show Network",network:"Network",networkExpoUnstable:"Expo Network",showNetworkRequestBlocking:"Show Network request blocking",networkRequestBlocking:"Network request blocking",showNetworkConditions:"Show Network conditions",networkConditions:"Network conditions",diskCache:"disk cache",networkThrottling:"network throttling",showSearch:"Show Search",search:"Search",recordNetworkLog:"Record network log",stopRecordingNetworkLog:"Stop recording network log",hideRequestDetails:"Hide request details",colorcodeResourceTypes:"Color-code resource types",colorCode:"color code",resourceType:"resource type",colorCodeByResourceType:"Color code by resource type",useDefaultColors:"Use default colors",groupNetworkLogByFrame:"Group network log by frame",netWork:"network",frame:"frame",group:"group",groupNetworkLogItemsByFrame:"Group network log items by frame",dontGroupNetworkLogItemsByFrame:"Don't group network log items by frame",clear:"Clear network log",addNetworkRequestBlockingPattern:"Add network request blocking pattern",removeAllNetworkRequestBlockingPatterns:"Remove all network request blocking patterns",allowToGenerateHarWithSensitiveData:"Allow to generate `HAR` with sensitive data",dontAllowToGenerateHarWithSensitiveData:"Don't allow to generate `HAR` with sensitive data",allowToGenerateHarWithSensitiveDataDocumentation:"By default generated HAR logs are sanitized and don't include `Cookie`, `Set-Cookie`, or `Authorization` HTTP headers. When this setting is enabled, options to export/copy HAR with sensitive data are provided."},c=t.i18n.registerUIStrings("panels/network/network-meta.ts",l),w=t.i18n.getLazilyComputedLocalizedString.bind(void 0,c),d=t.i18n.getLocalizedString.bind(void 0,c);let g;async function k(){return g||(g=await import("./network.js")),g}function u(e){return void 0===g?[]:e(g)}i.ViewManager.registerViewExtension({location:"panel",id:"network",commandPrompt:w(l.showNetwork),title:()=>o.Runtime.conditions.reactNativeExpoNetworkPanel()?d(l.networkExpoUnstable):d(l.network),order:40,loadView:async()=>(await k()).NetworkPanel.NetworkPanel.instance()}),i.ViewManager.registerViewExtension({location:"drawer-view",id:"network.blocked-urls",commandPrompt:w(l.showNetworkRequestBlocking),title:w(l.networkRequestBlocking),persistence:"closeable",order:60,loadView:async()=>new((await k()).BlockedURLsPane.BlockedURLsPane)}),i.ViewManager.registerViewExtension({location:"drawer-view",id:"network.config",commandPrompt:w(l.showNetworkConditions),title:w(l.networkConditions),persistence:"closeable",order:40,tags:[w(l.diskCache),w(l.networkThrottling),t.i18n.lockedLazyString("useragent"),t.i18n.lockedLazyString("user agent"),t.i18n.lockedLazyString("user-agent")],loadView:async()=>(await k()).NetworkConfigView.NetworkConfigView.instance()}),i.ViewManager.registerViewExtension({location:"network-sidebar",id:"network.search-network-tab",commandPrompt:w(l.showSearch),title:w(l.search),persistence:"permanent",loadView:async()=>(await k()).NetworkPanel.SearchNetworkView.instance()}),i.ActionRegistration.registerActionExtension({actionId:"network.toggle-recording",category:"NETWORK",iconClass:"record-start",toggleable:!0,toggledIconClass:"record-stop",toggleWithRedColor:!0,contextTypes:()=>u((e=>[e.NetworkPanel.NetworkPanel])),loadActionDelegate:async()=>new((await k()).NetworkPanel.ActionDelegate),options:[{value:!0,title:w(l.recordNetworkLog)},{value:!1,title:w(l.stopRecordingNetworkLog)}],bindings:[{shortcut:"Ctrl+E",platform:"windows,linux"},{shortcut:"Meta+E",platform:"mac"}]}),i.ActionRegistration.registerActionExtension({actionId:"network.clear",category:"NETWORK",title:w(l.clear),iconClass:"clear",loadActionDelegate:async()=>new((await k()).NetworkPanel.ActionDelegate),contextTypes:()=>u((e=>[e.NetworkPanel.NetworkPanel])),bindings:[{shortcut:"Ctrl+L"},{shortcut:"Meta+K",platform:"mac"}]}),i.ActionRegistration.registerActionExtension({actionId:"network.hide-request-details",category:"NETWORK",title:w(l.hideRequestDetails),contextTypes:()=>u((e=>[e.NetworkPanel.NetworkPanel])),loadActionDelegate:async()=>new((await k()).NetworkPanel.ActionDelegate),bindings:[{shortcut:"Esc"}]}),i.ActionRegistration.registerActionExtension({actionId:"network.search",category:"NETWORK",title:w(l.search),contextTypes:()=>u((e=>[e.NetworkPanel.NetworkPanel])),loadActionDelegate:async()=>new((await k()).NetworkPanel.ActionDelegate),bindings:[{platform:"mac",shortcut:"Meta+F",keybindSets:["devToolsDefault","vsCode"]},{platform:"windows,linux",shortcut:"Ctrl+F",keybindSets:["devToolsDefault","vsCode"]}]}),i.ActionRegistration.registerActionExtension({actionLine truncated
|
||||
+1
-1
@@ -1 +1 @@
|
||||
import*as e from"../../ui/legacy/legacy.js";import*as t from"../../core/common/common.js";import*as i from"../../core/host/host.js";import*as r from"../../core/i18n/i18n.js";import*as o from"../../ui/legacy/components/source_frame/source_frame.js";import*as s from"../../core/platform/platform.js";import*as n from"../../core/sdk/sdk.js";import*as a from"../../models/logs/logs.js";import*as l from"../../ui/components/buttons/buttons.js";import*as d from"../../ui/visual_logging/visual_logging.js";import*as c from"../../ui/legacy/components/data_grid/data_grid.js";import*as h from"../mobile_throttling/mobile_throttling.js";import*as u from"../settings/emulation/components/components.js";import*as p from"../../models/bindings/bindings.js";import*as g from"../../models/workspace/workspace.js";import*as m from"./forward/forward.js";import*as w from"../../ui/components/floating_button/floating_button.js";import*as k from"../../ui/components/icon_button/icon_button.js";import*as v from"../../ui/legacy/components/perf_ui/perf_ui.js";import*as b from"../../ui/legacy/components/utils/utils.js";import{PanelUtils as f}from"../utils/utils.js";import*as C from"../../core/root/root.js";import*as S from"../../ui/components/legacy_wrapper/legacy_wrapper.js";import*as y from"./components/components.js";import*as T from"../../ui/legacy/components/cookie_table/cookie_table.js";import*as x from"../../ui/legacy/components/object_ui/object_ui.js";import*as R from"../../models/text_utils/text_utils.js";import*as I from"../../models/har/har.js";import*as q from"../../models/persistence/persistence.js";import*as L from"../sources/sources.js";import*as F from"../../ui/components/adorners/adorners.js";import*as E from"../../ui/components/render_coordinator/render_coordinator.js";import*as H from"../../ui/legacy/theme_support/theme_support.js";import*as P from"../../models/trace/trace.js";import*as A from"../search/search.js";var M={cssText:`.panel.network devtools-toolbar.binary-view-toolbar{border-top:1px solid var(--sys-color-divider);border-bottom:0;padding-left:5px}.binary-view-copied-text{opacity:100%}.binary-view-copied-text.fadeout{opacity:0%;transition:opacity 1s}\n/*# sourceURL=${import.meta.resolve("./binaryResourceView.css")} */\n`};const N={copiedAsBase:"Copied as `Base64`",hexViewer:"`Hex` Viewer",copiedAsHex:"Copied as `Hex`",copiedAsUtf:"Copied as `UTF-8`",binaryViewType:"Binary view type",copyToClipboard:"Copy to clipboard",copyAsBase:"Copy as `Base64`",copyAsHex:"Copy as `Hex`",copyAsUtf:"Copy as `UTF-8`"},U=r.i18n.registerUIStrings("panels/network/BinaryResourceView.ts",N),B=r.i18n.getLocalizedString.bind(void 0,U);class V extends e.Widget.VBox{binaryResourceViewFactory;toolbar;binaryViewObjects;binaryViewTypeSetting;binaryViewTypeCombobox;copiedText;addFadeoutSettimeoutId;lastView;constructor(i,s,n){super(),this.registerRequiredCSS(M),this.binaryResourceViewFactory=new o.BinaryResourceViewFactory.BinaryResourceViewFactory(i,s,n),this.toolbar=this.element.createChild("devtools-toolbar","binary-view-toolbar"),this.binaryViewObjects=[new W("base64",r.i18n.lockedString("Base64"),B(N.copiedAsBase),this.binaryResourceViewFactory.createBase64View.bind(this.binaryResourceViewFactory),this.binaryResourceViewFactory.base64.bind(this.binaryResourceViewFactory)),new W("hex",B(N.hexViewer),B(N.copiedAsHex),this.binaryResourceViewFactory.createHexView.bind(this.binaryResourceViewFactory),this.binaryResourceViewFactory.hex.bind(this.binaryResourceViewFactory)),new W("utf8",r.i18n.lockedString("UTF-8"),B(N.copiedAsUtf),this.binaryResourceViewFactory.createUtf8View.bind(this.binaryResourceViewFactory),this.binaryResourceViewFactory.utf8.bind(this.binaryResourceViewFactory))],this.binaryViewTypeSetting=t.Settings.Settings.instance().createSetting("binary-view-type","hex"),this.binaryViewTypeCombobox=new e.Toolbar.ToolbarComboBox(this.binaryViewTypeChanged.bind(this),B(N.binaryViewType));for(const e of this.binaryViewObjects)this.binaryViewTypeCombobox.addOption(this.binaryViewTypeCombobox.createOption(e.label,e.type));this.toolbar.appendToolbarItem(this.binaryViewTypeCombobox);const a=new e.Toolbar.ToolbarButton(B(N.copyToClipboard),"copy");a.addEventListener("Click",(e=>{this.copySelectedViewToClipboard()}),this),this.toolbar.appendToolbarItem(a),this.copiedText=new e.Toolbar.ToolbarText,this.copiedText.element.classList.add("binary-view-copied-text"),this.toolbar.appendChild(this.copiedText.element),this.addFadeoutSettimeoutId=null,this.lastView=null,this.updateView()}getCurrentViewObject(){const e=this.binaryViewObjects.find((e=>e.type===this.binaryViewTypeSetting.get()));return console.assert(Boolean(e),`No binary view found for binary view type found in setting 'binary-view-type': ${this.binaryViewTypeSetting.get()}`),e||null}copySelectedViewToClipboard(){const e=this.getCurrentViewObject();e&&(i.InspectorFrontendHost.InspectorFrontendHostInstance.copyText(e.content()),this.copiedText.setText(e.copiedMessage),this.copiedText.elemLine truncated
|
||||
import*as e from"../../ui/legacy/legacy.js";import*as t from"../../core/common/common.js";import*as i from"../../core/host/host.js";import*as r from"../../core/i18n/i18n.js";import*as o from"../../ui/legacy/components/source_frame/source_frame.js";import*as s from"../../core/platform/platform.js";import*as n from"../../core/sdk/sdk.js";import*as a from"../../models/logs/logs.js";import*as l from"../../ui/components/buttons/buttons.js";import*as d from"../../ui/visual_logging/visual_logging.js";import*as c from"../../ui/legacy/components/data_grid/data_grid.js";import*as h from"../mobile_throttling/mobile_throttling.js";import*as u from"../settings/emulation/components/components.js";import*as p from"../../models/bindings/bindings.js";import*as g from"../../models/workspace/workspace.js";import*as m from"./forward/forward.js";import*as w from"../../ui/components/floating_button/floating_button.js";import*as k from"../../ui/components/icon_button/icon_button.js";import*as v from"../../ui/legacy/components/perf_ui/perf_ui.js";import*as b from"../../ui/legacy/components/utils/utils.js";import{PanelUtils as f}from"../utils/utils.js";import*as C from"../../core/root/root.js";import*as S from"../../ui/components/legacy_wrapper/legacy_wrapper.js";import*as y from"./components/components.js";import*as T from"../../ui/legacy/components/cookie_table/cookie_table.js";import*as x from"../../ui/legacy/components/object_ui/object_ui.js";import*as R from"../../models/text_utils/text_utils.js";import*as I from"../../models/har/har.js";import*as q from"../../models/persistence/persistence.js";import*as L from"../sources/sources.js";import*as F from"../../ui/components/adorners/adorners.js";import*as E from"../../ui/components/render_coordinator/render_coordinator.js";import*as H from"../../ui/legacy/theme_support/theme_support.js";import*as P from"../../models/trace/trace.js";import*as M from"../search/search.js";var A={cssText:`.panel.network devtools-toolbar.binary-view-toolbar{border-top:1px solid var(--sys-color-divider);border-bottom:0;padding-left:5px}.binary-view-copied-text{opacity:100%}.binary-view-copied-text.fadeout{opacity:0%;transition:opacity 1s}\n/*# sourceURL=${import.meta.resolve("./binaryResourceView.css")} */\n`};const N={copiedAsBase:"Copied as `Base64`",hexViewer:"`Hex` Viewer",copiedAsHex:"Copied as `Hex`",copiedAsUtf:"Copied as `UTF-8`",binaryViewType:"Binary view type",copyToClipboard:"Copy to clipboard",copyAsBase:"Copy as `Base64`",copyAsHex:"Copy as `Hex`",copyAsUtf:"Copy as `UTF-8`"},U=r.i18n.registerUIStrings("panels/network/BinaryResourceView.ts",N),B=r.i18n.getLocalizedString.bind(void 0,U);class V extends e.Widget.VBox{binaryResourceViewFactory;toolbar;binaryViewObjects;binaryViewTypeSetting;binaryViewTypeCombobox;copiedText;addFadeoutSettimeoutId;lastView;constructor(i,s,n){super(),this.registerRequiredCSS(A),this.binaryResourceViewFactory=new o.BinaryResourceViewFactory.BinaryResourceViewFactory(i,s,n),this.toolbar=this.element.createChild("devtools-toolbar","binary-view-toolbar"),this.binaryViewObjects=[new W("base64",r.i18n.lockedString("Base64"),B(N.copiedAsBase),this.binaryResourceViewFactory.createBase64View.bind(this.binaryResourceViewFactory),this.binaryResourceViewFactory.base64.bind(this.binaryResourceViewFactory)),new W("hex",B(N.hexViewer),B(N.copiedAsHex),this.binaryResourceViewFactory.createHexView.bind(this.binaryResourceViewFactory),this.binaryResourceViewFactory.hex.bind(this.binaryResourceViewFactory)),new W("utf8",r.i18n.lockedString("UTF-8"),B(N.copiedAsUtf),this.binaryResourceViewFactory.createUtf8View.bind(this.binaryResourceViewFactory),this.binaryResourceViewFactory.utf8.bind(this.binaryResourceViewFactory))],this.binaryViewTypeSetting=t.Settings.Settings.instance().createSetting("binary-view-type","hex"),this.binaryViewTypeCombobox=new e.Toolbar.ToolbarComboBox(this.binaryViewTypeChanged.bind(this),B(N.binaryViewType));for(const e of this.binaryViewObjects)this.binaryViewTypeCombobox.addOption(this.binaryViewTypeCombobox.createOption(e.label,e.type));this.toolbar.appendToolbarItem(this.binaryViewTypeCombobox);const a=new e.Toolbar.ToolbarButton(B(N.copyToClipboard),"copy");a.addEventListener("Click",(e=>{this.copySelectedViewToClipboard()}),this),this.toolbar.appendToolbarItem(a),this.copiedText=new e.Toolbar.ToolbarText,this.copiedText.element.classList.add("binary-view-copied-text"),this.toolbar.appendChild(this.copiedText.element),this.addFadeoutSettimeoutId=null,this.lastView=null,this.updateView()}getCurrentViewObject(){const e=this.binaryViewObjects.find((e=>e.type===this.binaryViewTypeSetting.get()));return console.assert(Boolean(e),`No binary view found for binary view type found in setting 'binary-view-type': ${this.binaryViewTypeSetting.get()}`),e||null}copySelectedViewToClipboard(){const e=this.getCurrentViewObject();e&&(i.InspectorFrontendHost.InspectorFrontendHostInstance.copyText(e.content()),this.copiedText.setText(e.copiedMessage),this.copiedText.elemLine truncated
|
||||
Vendored
+257
-209
File diff suppressed because it is too large.
Load diff
+2
-2
@@ -1,4 +1,4 @@
|
||||
import*as e from"../../core/i18n/i18n.js";import*as t from"../../models/trace/trace.js";import*as i from"../../ui/legacy/components/perf_ui/perf_ui.js";import*as n from"../../ui/legacy/theme_support/theme_support.js";import*as r from"../../core/platform/platform.js";import*as a from"../../services/trace_bounds/trace_bounds.js";import*as s from"./utils/utils.js";export{s as Utils};import*as o from"../../core/sdk/sdk.js";import*as l from"../../core/common/common.js";import*as d from"../../core/root/root.js";import*as c from"./components/components.js";import*as h from"./extensions/extensions.js";import*as p from"../../ui/components/helpers/helpers.js";import*as m from"../../ui/legacy/legacy.js";import*as u from"../../models/bindings/bindings.js";import*as g from"../../models/crux-manager/crux-manager.js";import*as v from"../../ui/visual_logging/visual_logging.js";import*as T from"./components/insights/insights.js";import*as y from"./overlays/components/components.js";import*as f from"./overlays/overlays.js";import*as S from"../../ui/legacy/components/utils/utils.js";import*as w from"../../ui/legacy/components/data_grid/data_grid.js";import*as b from"../../ui/components/code_highlighter/code_highlighter.js";import*as E from"../../ui/components/buttons/buttons.js";import*as C from"../../core/host/host.js";import*as k from"../../models/workspace/workspace.js";import*as I from"../../ui/components/adorners/adorners.js";import*as M from"../../ui/components/dialogs/dialogs.js";import*as x from"../../ui/components/legacy_wrapper/legacy_wrapper.js";import*as P from"../mobile_throttling/mobile_throttling.js";import*as R from"../../ui/components/menus/menus.js";import*as F from"../../models/emulation/emulation.js";import*as L from"../../models/extensions/extensions.js";import*as A from"../../models/live-metrics/live-metrics.js";import*as N from"../../ui/components/icon_button/icon_button.js";import*as D from"../layer_viewer/layer_viewer.js";import"../../ui/components/linkifier/linkifier.js";import{render as B,html as H}from"../../ui/lit/lit.js";const U={sSelfS:"{PH1} (self {PH2})"},O=e.i18n.registerUIStrings("panels/timeline/AppenderUtils.ts",U),_=e.i18n.getLocalizedString.bind(void 0,O);function W(e){const t={padding:4,height:17,collapsible:!0,color:n.ThemeSupport.instance().getComputedValue("--sys-color-on-surface"),backgroundColor:n.ThemeSupport.instance().getComputedValue("--sys-color-cdt-base-container"),nestingLevel:0,shareHeaderLine:!0};return Object.assign(t,e)}function V(e,t,i,n,r,a,s){const o={startLevel:t,name:i,style:n,selectable:r,expanded:a,showStackContextMenu:s};return null!==e&&(o.jslogContext=e),o}function G(i,n){if(!i)return"";const r=t.Helpers.Timing.microToMilli(i);if(void 0===n)return e.TimeUtilities.millisToString(r,!0);const a=t.Helpers.Timing.microToMilli(n),s=t.Types.Timing.Milli(1e-6);return Math.abs(r-a)>s&&a>s?_(U.sSelfS,{PH1:e.TimeUtilities.millisToString(r,!0),PH2:e.TimeUtilities.millisToString(a,!0)}):e.TimeUtilities.millisToString(r,!0)}function z(e,t){let i=0;const n=e.ts,r=e.ts+(e.dur||0);for(;i<t.length&&n<t[i];)++i;return t[i]=r,i}function j(e,t,i){const n=e.entryDecorations[t]||[];n.push(i),e.entryDecorations[t]=n}var $=Object.freeze({__proto__:null,addDecorationToEvent:j,buildGroupStyle:W,buildTrackHeader:V,getDurationString:G,getEventLevel:z});const K={animations:"Animations"},q=e.i18n.registerUIStrings("panels/timeline/AnimationsTrackAppender.ts",K),Y=e.i18n.getLocalizedString.bind(void 0,q);class J{appenderName="Animations";#e;#t;#i=this.#n.bind(this);constructor(e,t){this.#e=e,this.#t=t}appendTrackAtLevel(e,t){const i=this.#t.Animations.animations;return 0===i.length?e:(this.#r(e,t),this.#e.appendEventsAtLevel(i,e,this,this.#i))}#r(e,t){const i=W({useFirstLineForOverview:!1}),n=V("animations",e,Y(K.animations),i,!0,t);this.#e.registerTrackForGroup(n,this)}#n(e,i){if(e&&t.Types.Events.isSyntheticAnimation(e)){t.Insights.Models.CLSCulprits.getNonCompositedFailure(e).length&&j(this.#e.getFlameChartTimelineData(),i,{type:"WARNING_TRIANGLE"})}}colorForEvent(){return n.ThemeSupport.instance().getComputedValue("--app-color-rendering")}}var X=Object.freeze({__proto__:null,AnimationsTrackAppender:J});const Z={srEnterLabelEditMode:"Editing the annotation label text",srLabelTextUpdated:"Label updated to {PH1}",srTimeRangeBoundsUpdated:"Time range updated, starting at {PH1} and ending at {PH2}",timeRange:"time range",entryLabel:"entry label",entriesLink:"connected entries",srAnnotationRemoved:"The {PH1} annotation has been removed",srAnnotationAdded:"The {PH1} annotation has been added",srEntriesLinked:"The connected entries annotation now links from {PH1} to {PH2}"},Q=e.i18n.registerUIStrings("panels/timeline/AnnotationHelpers.ts",Z),ee=e.i18n.getLocalizedString.bind(void 0,Q);function te(e){const t=[];switch(e.type){case"ENTRY_LABEL":t.push(e.entry);break;case"TIME_RANGE":break;case"ENTRIES_LINK":t.push(e.entryFrom),e.entryTo&&t.push(e.entryTo);break;default:r.assertNever(e,"UnsupportedLine truncated
|
||||
import*as e from"../../core/i18n/i18n.js";import*as t from"../../models/trace/trace.js";import*as i from"../../ui/legacy/components/perf_ui/perf_ui.js";import*as n from"../../ui/legacy/theme_support/theme_support.js";import*as r from"../../core/platform/platform.js";import*as a from"../../services/trace_bounds/trace_bounds.js";import*as s from"./utils/utils.js";export{s as Utils};import*as o from"../../core/sdk/sdk.js";import*as l from"../../core/common/common.js";import*as d from"../../core/root/root.js";import*as c from"./components/components.js";import*as h from"./extensions/extensions.js";import*as p from"../../ui/components/helpers/helpers.js";import*as m from"../../ui/legacy/legacy.js";import*as u from"../../models/bindings/bindings.js";import*as g from"../../models/crux-manager/crux-manager.js";import*as v from"../../ui/visual_logging/visual_logging.js";import*as T from"./components/insights/insights.js";import*as y from"./overlays/components/components.js";import*as f from"./overlays/overlays.js";import*as S from"../../ui/legacy/components/utils/utils.js";import*as w from"../../ui/legacy/components/data_grid/data_grid.js";import*as b from"../../ui/components/code_highlighter/code_highlighter.js";import*as E from"../../ui/components/buttons/buttons.js";import*as C from"../../core/host/host.js";import*as k from"../../models/workspace/workspace.js";import*as I from"../../ui/components/adorners/adorners.js";import*as M from"../../ui/components/dialogs/dialogs.js";import*as x from"../../ui/components/legacy_wrapper/legacy_wrapper.js";import*as P from"../mobile_throttling/mobile_throttling.js";import*as R from"../../ui/components/menus/menus.js";import*as F from"../../models/emulation/emulation.js";import*as L from"../../models/extensions/extensions.js";import*as A from"../../models/live-metrics/live-metrics.js";import*as N from"../../ui/components/icon_button/icon_button.js";import*as D from"../layer_viewer/layer_viewer.js";import"../../ui/components/linkifier/linkifier.js";import{render as B,html as H}from"../../ui/lit/lit.js";const U={sSelfS:"{PH1} (self {PH2})"},O=e.i18n.registerUIStrings("panels/timeline/AppenderUtils.ts",U),_=e.i18n.getLocalizedString.bind(void 0,O);function W(e){const t={padding:4,height:17,collapsible:!0,color:n.ThemeSupport.instance().getComputedValue("--sys-color-on-surface"),backgroundColor:n.ThemeSupport.instance().getComputedValue("--sys-color-cdt-base-container"),nestingLevel:0,shareHeaderLine:!0};return Object.assign(t,e)}function V(e,t,i,n,r,a,s){const o={startLevel:t,name:i,style:n,selectable:r,expanded:a,showStackContextMenu:s};return null!==e&&(o.jslogContext=e),o}function G(i,n){if(!i)return"";const r=t.Helpers.Timing.microToMilli(i);if(void 0===n)return e.TimeUtilities.millisToString(r,!0);const a=t.Helpers.Timing.microToMilli(n),s=t.Types.Timing.Milli(1e-6);return Math.abs(r-a)>s&&a>s?_(U.sSelfS,{PH1:e.TimeUtilities.millisToString(r,!0),PH2:e.TimeUtilities.millisToString(a,!0)}):e.TimeUtilities.millisToString(r,!0)}function z(e,t){let i=0;const n=e.ts,r=e.ts+(e.dur||0);for(;i<t.length&&n<t[i];)++i;return t[i]=r,i}function j(e,t,i){const n=e.entryDecorations[t]||[];n.push(i),e.entryDecorations[t]=n}var $=Object.freeze({__proto__:null,addDecorationToEvent:j,buildGroupStyle:W,buildTrackHeader:V,getDurationString:G,getEventLevel:z});const K={animations:"Animations"},q=e.i18n.registerUIStrings("panels/timeline/AnimationsTrackAppender.ts",K),Y=e.i18n.getLocalizedString.bind(void 0,q);class J{appenderName="Animations";#e;#t;#i=this.#n.bind(this);constructor(e,t){this.#e=e,this.#t=t}appendTrackAtLevel(e,t){const i=this.#t.Animations.animations;return 0===i.length?e:(this.#r(e,t),this.#e.appendEventsAtLevel(i,e,this,this.#i))}#r(e,t){const i=W({useFirstLineForOverview:!1}),n=V("animations",e,Y(K.animations),i,!0,t);this.#e.registerTrackForGroup(n,this)}#n(e,i){if(e&&t.Types.Events.isSyntheticAnimation(e)){t.Insights.Models.CLSCulprits.getNonCompositedFailure(e).length&&j(this.#e.getFlameChartTimelineData(),i,{type:"WARNING_TRIANGLE"})}}colorForEvent(){return n.ThemeSupport.instance().getComputedValue("--app-color-rendering")}}var X=Object.freeze({__proto__:null,AnimationsTrackAppender:J});const Z={srEnterLabelEditMode:"Editing the annotation label text",srLabelTextUpdated:"Label updated to {PH1}",srTimeRangeBoundsUpdated:"Time range updated, starting at {PH1} and ending at {PH2}",timeRange:"time range",entryLabel:"entry label",entriesLink:"connected entries",srAnnotationRemoved:"The {PH1} annotation has been removed",srAnnotationAdded:"The {PH1} annotation has been added",srEntriesLinked:"The connected entries annotation now links from {PH1} to {PH2}"},Q=e.i18n.registerUIStrings("panels/timeline/AnnotationHelpers.ts",Z),ee=e.i18n.getLocalizedString.bind(void 0,Q);function te(e){const t=[];switch(e.type){case"ENTRY_LABEL":t.push(e.entry);break;case"TIME_RANGE":break;case"ENTRIES_LINK":t.push(e.entryFrom),e.entryTo&&t.push(e.entryTo);break;default:r.assertNever(e,"UnsupportedLine truncated
|
||||
<devtools-data-grid striped name=${Yn(Kn.selectorStats)}
|
||||
@contextmenu=${e.onContextMenu.bind(e)}>
|
||||
<table>
|
||||
@@ -40,4 +40,4 @@ import*as e from"../../core/i18n/i18n.js";import*as t from"../../models/trace/tr
|
||||
</td>
|
||||
</tr>`}))}
|
||||
</table>
|
||||
</devtools-data-grid>`,i,{host:this})}){super(),this.registerRequiredCSS($n),this.#bi=t,this.element.setAttribute("jslog",`${v.pane("selector-stats").track({resize:!0})}`),this.#Si=new Map,this.#t=e,this.performUpdate()}#Ci(e){const{menu:t}=e.detail;t.defaultSection().appendItem(Yn(Kn.copyTable),(()=>{const e=[],t=[Yn(Kn.elapsed),Yn(Kn.matchAttempts),Yn(Kn.matchCount),Yn(Kn.rejectPercentage),Yn(Kn.selector),Yn(Kn.styleSheetId)];e.push(t.join("\t"));for(const t of this.#Ei){const i=t[Jn.MatchAttempts]-t[Jn.MatchCount],n=100*(i?t[Jn.FastRejectCount]/i:1),r=t[Jn.StyleSheetId];let a="";const s=o.TargetManager.TargetManager.instance().primaryPageTarget(),l=s?.model(o.CSSModel.CSSModel);if(l){const e=l.styleSheetHeaderForId(r);e&&(a=e.resourceURL().toString())}a||(a=Yn(Kn.unableToLink)),e.push([t[Jn.Elapsed]/1e3,t[Jn.MatchAttempts],t[Jn.MatchCount],n,t[Jn.Selector],a].join("\t"))}const i=e.join("\n");navigator.clipboard.writeText(i),m.ARIAUtils.alert(Yn(Kn.tableCopiedToClipboard))}))}performUpdate(){const e={timings:this.#Ei,onContextMenu:e=>{this.#Ci(e)}};this.#bi(e,{},this.contentElement)}setEvent(e){if(!this.#t)return!1;if(this.#wi===e)return!1;this.#wi=e;const t=this.#t.SelectorStats.dataForUpdateLayoutEvent.get(e);return t?(this.processSelectorTimings(t.timings).then((e=>{this.#Ei=e,this.requestUpdate()})),!0):(this.#Ei=[],this.requestUpdate(),!1)}setAggregatedEvents(e){const t=[],i=new Map;if(!this.#t)return;const n={[Jn.Elapsed]:0,[Jn.MatchAttempts]:0,[Jn.MatchCount]:0,[Jn.FastRejectCount]:0};if(!Array.isArray(this.#wi)||this.#wi.length!==e.length||!e.every(((e,t)=>e===this.#wi[t]))){this.#wi=e;for(let t=0;t<e.length;t++){const r=e[t],a=r?this.#t.SelectorStats.dataForUpdateLayoutEvent.get(r):void 0;if(a){const e=a.timings;for(const t of e){const e=t[Jn.Selector]+"_"+t[Jn.StyleSheetId],r=i.get(e);void 0!==r?(r[Jn.Elapsed]+=t[Jn.Elapsed],r[Jn.FastRejectCount]+=t[Jn.FastRejectCount],r[Jn.MatchAttempts]+=t[Jn.MatchAttempts],r[Jn.MatchCount]+=t[Jn.MatchCount]):i.set(e,structuredClone(t)),n[Jn.Elapsed]+=t[Jn.Elapsed],n[Jn.MatchAttempts]+=t[Jn.MatchAttempts],n[Jn.MatchCount]+=t[Jn.MatchCount],n[Jn.FastRejectCount]+=t[Jn.FastRejectCount]}}}if(!(i.size>0))return this.#Ei=[],void this.requestUpdate();i.forEach((e=>{t.push(e)})),i.clear(),t.unshift({[Jn.Elapsed]:n[Jn.Elapsed],[Jn.FastRejectCount]:n[Jn.FastRejectCount],[Jn.MatchAttempts]:n[Jn.MatchAttempts],[Jn.MatchCount]:n[Jn.MatchCount],[Jn.Selector]:Yn(Kn.totalForAllSelectors),[Jn.StyleSheetId]:"n/a"}),this.processSelectorTimings(t).then((e=>{this.#Ei=e,this.requestUpdate()}))}}async processSelectorTimings(e){const t=o.TargetManager.TargetManager.instance().primaryPageTarget(),i=t?.model(o.CSSModel.CSSModel);return i?await Promise.all(e.sort(((e,t)=>t[Jn.Elapsed]-e[Jn.Elapsed])).map((async e=>{const t=e[Jn.StyleSheetId],n=e[Jn.Selector].trim(),r="n/a"===t?null:await async function(e,t,i,n){if(!e)return;const r=e.styleSheetHeaderForId(t);if(!r||!r.resourceURL())return;const a=JSON.stringify({selectorText:i,styleSheetId:t});let s=n.get(a);if(!s){const r=await e.agent.invoke_getLocationForSelector({styleSheetId:t,selectorText:i});if(r.getError()||!r.ranges)return;s=r.ranges,n.set(a,s)}return s.map((e=>({url:r.resourceURL(),lineNumber:e.startLine,columnNumber:e.startColumn,linkText:Yn(Kn.lineNumber,{PH1:e.startLine+1,PH2:e.startColumn+1}),title:`${r.id} line ${e.startLine+1}:${e.startColumn+1}`})))}(i,t,n,this.#Si);return{...e,locations:r}}))):[]}}const Zn={summary:"Summary",bottomup:"Bottom-up",callTree:"Call tree",eventLog:"Event log",paintProfiler:"Paint profiler",layers:"Layers",selectorStats:"Selector stats"},Qn=e.i18n.registerUIStrings("panels/timeline/TimelineDetailsView.ts",Zn),er=e.i18n.getLocalizedString.bind(void 0,Qn);class tr extends(l.ObjectWrapper.eventMixin(m.Widget.VBox)){detailsLinkifier;tabbedPane;defaultDetailsWidget;defaultDetailsContentWidget;rangeDetailViews;#le;lazyPaintProfilerView;lazyLayersView;preferredTabId;selection;updateContentsScheduled;lazySelectorStatsView;#t=null;#ki=null;#Ii=null;#Ae=null;#Mi;#xi;#te=this.#ie.bind(this);#Pi=new c.RelatedInsightChips.RelatedInsightChips;#Ri=new _t;#de=null;constructor(e){super(),this.element.classList.add("timeline-details"),this.detailsLinkifier=new S.Linkifier.Linkifier,this.tabbedPane=new m.TabbedPane.TabbedPane,this.tabbedPane.show(this.element),this.tabbedPane.headerElement().setAttribute("jslog",`${v.toolbar("sidebar").track({keydown:"ArrowUp|ArrowLeft|ArrowDown|ArrowRight|Enter|Space"})}`),this.defaultDetailsWidget=new m.Widget.VBox,this.defaultDetailsWidget.element.classList.add("timeline-details-view"),this.defaultDetailsWidget.element.setAttribute("jslog",`${v.pane("details").track({resize:!0})}`),this.defaultDetailsContentWidget=this.#Fi(),this.appendTab(ir.Details,er(Zn.summary),this.defaultDetailsWidget),this.setPreferredTab(ir.Details),this.rangeDetailViews=new Map,this.updateContentsScheduled=!1;const t=new Nt;this.appendTab(ir.BottomUp,er(Zn.bottomup),t),this.rangeDetailViews.Line truncated
|
||||
</devtools-data-grid>`,i,{host:this})}){super(),this.registerRequiredCSS($n),this.#bi=t,this.element.setAttribute("jslog",`${v.pane("selector-stats").track({resize:!0})}`),this.#Si=new Map,this.#t=e,this.performUpdate()}#Ci(e){const{menu:t}=e.detail;t.defaultSection().appendItem(Yn(Kn.copyTable),(()=>{const e=[],t=[Yn(Kn.elapsed),Yn(Kn.matchAttempts),Yn(Kn.matchCount),Yn(Kn.rejectPercentage),Yn(Kn.selector),Yn(Kn.styleSheetId)];e.push(t.join("\t"));for(const t of this.#Ei){const i=t[Jn.MatchAttempts]-t[Jn.MatchCount],n=100*(i?t[Jn.FastRejectCount]/i:1),r=t[Jn.StyleSheetId];let a="";const s=o.TargetManager.TargetManager.instance().primaryPageTarget(),l=s?.model(o.CSSModel.CSSModel);if(l){const e=l.styleSheetHeaderForId(r);e&&(a=e.resourceURL().toString())}a||(a=Yn(Kn.unableToLink)),e.push([t[Jn.Elapsed]/1e3,t[Jn.MatchAttempts],t[Jn.MatchCount],n,t[Jn.Selector],a].join("\t"))}const i=e.join("\n");navigator.clipboard.writeText(i),m.ARIAUtils.alert(Yn(Kn.tableCopiedToClipboard))}))}performUpdate(){const e={timings:this.#Ei,onContextMenu:e=>{this.#Ci(e)}};this.#bi(e,{},this.contentElement)}setEvent(e){if(!this.#t)return!1;if(this.#wi===e)return!1;this.#wi=e;const t=this.#t.SelectorStats.dataForUpdateLayoutEvent.get(e);return t?(this.processSelectorTimings(t.timings).then((e=>{this.#Ei=e,this.requestUpdate()})),!0):(this.#Ei=[],this.requestUpdate(),!1)}setAggregatedEvents(e){const t=[],i=new Map;if(!this.#t)return;const n={[Jn.Elapsed]:0,[Jn.MatchAttempts]:0,[Jn.MatchCount]:0,[Jn.FastRejectCount]:0};if(!Array.isArray(this.#wi)||this.#wi.length!==e.length||!e.every(((e,t)=>e===this.#wi[t]))){this.#wi=e;for(let t=0;t<e.length;t++){const r=e[t],a=r?this.#t.SelectorStats.dataForUpdateLayoutEvent.get(r):void 0;if(a){const e=a.timings;for(const t of e){const e=t[Jn.Selector]+"_"+t[Jn.StyleSheetId],r=i.get(e);void 0!==r?(r[Jn.Elapsed]+=t[Jn.Elapsed],r[Jn.FastRejectCount]+=t[Jn.FastRejectCount],r[Jn.MatchAttempts]+=t[Jn.MatchAttempts],r[Jn.MatchCount]+=t[Jn.MatchCount]):i.set(e,structuredClone(t)),n[Jn.Elapsed]+=t[Jn.Elapsed],n[Jn.MatchAttempts]+=t[Jn.MatchAttempts],n[Jn.MatchCount]+=t[Jn.MatchCount],n[Jn.FastRejectCount]+=t[Jn.FastRejectCount]}}}if(!(i.size>0))return this.#Ei=[],void this.requestUpdate();i.forEach((e=>{t.push(e)})),i.clear(),t.unshift({[Jn.Elapsed]:n[Jn.Elapsed],[Jn.FastRejectCount]:n[Jn.FastRejectCount],[Jn.MatchAttempts]:n[Jn.MatchAttempts],[Jn.MatchCount]:n[Jn.MatchCount],[Jn.Selector]:Yn(Kn.totalForAllSelectors),[Jn.StyleSheetId]:"n/a"}),this.processSelectorTimings(t).then((e=>{this.#Ei=e,this.requestUpdate()}))}}async processSelectorTimings(e){const t=o.TargetManager.TargetManager.instance().primaryPageTarget(),i=t?.model(o.CSSModel.CSSModel);return i?await Promise.all(e.sort(((e,t)=>t[Jn.Elapsed]-e[Jn.Elapsed])).map((async e=>{const t=e[Jn.StyleSheetId],n=e[Jn.Selector].trim(),r="n/a"===t?null:await async function(e,t,i,n){if(!e)return;const r=e.styleSheetHeaderForId(t);if(!r||!r.resourceURL())return;const a=JSON.stringify({selectorText:i,styleSheetId:t});let s=n.get(a);if(!s){const r=await e.agent.invoke_getLocationForSelector({styleSheetId:t,selectorText:i});if(r.getError()||!r.ranges)return;s=r.ranges,n.set(a,s)}return s.map((e=>({url:r.resourceURL(),lineNumber:e.startLine,columnNumber:e.startColumn,linkText:Yn(Kn.lineNumber,{PH1:e.startLine+1,PH2:e.startColumn+1}),title:`${r.id} line ${e.startLine+1}:${e.startColumn+1}`})))}(i,t,n,this.#Si);return{...e,locations:r}}))):[]}}const Zn={summary:"Summary",bottomup:"Bottom-up",callTree:"Call tree",eventLog:"Event log",paintProfiler:"Paint profiler",layers:"Layers",selectorStats:"Selector stats"},Qn=e.i18n.registerUIStrings("panels/timeline/TimelineDetailsView.ts",Zn),er=e.i18n.getLocalizedString.bind(void 0,Qn);class tr extends(l.ObjectWrapper.eventMixin(m.Widget.VBox)){detailsLinkifier;tabbedPane;defaultDetailsWidget;defaultDetailsContentWidget;rangeDetailViews;#le;lazyPaintProfilerView;lazyLayersView;preferredTabId;selection;updateContentsScheduled;lazySelectorStatsView;#t=null;#ki=null;#Ii=null;#Ae=null;#Mi;#xi;#te=this.#ie.bind(this);#Pi=new c.RelatedInsightChips.RelatedInsightChips;#Ri=new _t;#de=null;constructor(e){super(),this.element.classList.add("timeline-details"),this.detailsLinkifier=new S.Linkifier.Linkifier,this.tabbedPane=new m.TabbedPane.TabbedPane,this.tabbedPane.show(this.element),this.tabbedPane.headerElement().setAttribute("jslog",`${v.toolbar("sidebar").track({keydown:"ArrowUp|ArrowLeft|ArrowDown|ArrowRight|Enter|Space"})}`),this.defaultDetailsWidget=new m.Widget.VBox,this.defaultDetailsWidget.element.classList.add("timeline-details-view"),this.defaultDetailsWidget.element.setAttribute("jslog",`${v.pane("details").track({resize:!0})}`),this.defaultDetailsContentWidget=this.#Fi(),this.appendTab(ir.Details,er(Zn.summary),this.defaultDetailsWidget),this.setPreferredTab(ir.Details),this.rangeDetailViews=new Map,this.updateContentsScheduled=!1;const t=new Nt;this.appendTab(ir.BottomUp,er(Zn.bottomup),t),this.rangeDetailViews.Line truncated
|
||||
Reference in new issue
Block a user