ant-devtools-frontend
Advanced tools
Comparing version 0.2.5 to 0.2.6
{ | ||
"name": "ant-devtools-frontend", | ||
"description": "Ant DevTools UI From Chrome", | ||
"version": "0.2.5", | ||
"version": "0.2.6", | ||
"main": "index.js", | ||
@@ -6,0 +6,0 @@ "scripts": { |
@@ -16,7 +16,6 @@ const win=window;Ant.AxmlPanel=class extends Elements.ElementsPanel{constructor(){super('axml');this.registerRequiredCSS('elements/elementsTreeOutline.css');SDK.targetManager.observeModels(Ant.TinyModel,this);SDK.targetManager.addModelListener(Ant.TinyModel,SDK.DOMModel.Events.DocumentUpdated,this._documentUpdatedEvent,this);} | ||
_documentUpdated(){this._setDocument(null);} | ||
requestDocumentPromise(){if(this._pendingDocumentRequestPromise) | ||
return this._pendingDocumentRequestPromise;this._pendingDocumentRequestPromise=Ant.makeProxyPromiseOnce('getDocumentOnce',{},payload=>{const root=payload.root;if(root) | ||
requestDocumentPromise(){return Ant.makeProxyPromiseOnce('getDocumentOnce',{},payload=>{console.log('yeah');const root=payload.root;if(root) | ||
this._setDocument(root);delete this._pendingDocumentRequestPromise;if(!this._document) | ||
console.error('No document');return this._document;});return this._pendingDocumentRequestPromise;}};Ant.TinyModel.Events={AttrModified:Symbol('tiny-AttrModified'),AttrRemoved:Symbol('tiny-AttrRemoved'),CharacterDataModified:Symbol('tiny-CharacterDataModified'),DOMMutated:Symbol('tiny-DOMMutated'),NodeInserted:Symbol('tiny-NodeInserted'),NodeRemoved:Symbol('tiny-NodeRemoved'),DocumentUpdated:Symbol('tiny-DocumentUpdated'),ChildNodeCountUpdated:Symbol('tiny-ChildNodeCountUpdated'),DistributedNodesChanged:Symbol('tiny-DistributedNodesChanged'),MarkersChanged:Symbol('tiny-MarkersChanged')};Ant.TinyDispatcher=class extends SDK.DOMDispatcher{constructor(tinyModel){super(tinyModel);} | ||
documentUpdated(){this._domModel._documentUpdated();}};SDK.SDKModel.register(Ant.TinyModel,SDK.Target.Capability.DOM,true);;Ant.TinyConnection=class{constructor(target,dispatcher){this._target=target;this._agent=target.tinyAgent();this._dispatcher=dispatcher;window.listenToHost('render',(event,args)=>{const messageObject=args;const{method,payload}=args;if(extraMessageHandler[method]) | ||
console.error('No document');return this._document;});}};Ant.TinyModel.Events={AttrModified:Symbol('tiny-AttrModified'),AttrRemoved:Symbol('tiny-AttrRemoved'),CharacterDataModified:Symbol('tiny-CharacterDataModified'),DOMMutated:Symbol('tiny-DOMMutated'),NodeInserted:Symbol('tiny-NodeInserted'),NodeRemoved:Symbol('tiny-NodeRemoved'),DocumentUpdated:Symbol('tiny-DocumentUpdated'),ChildNodeCountUpdated:Symbol('tiny-ChildNodeCountUpdated'),DistributedNodesChanged:Symbol('tiny-DistributedNodesChanged'),MarkersChanged:Symbol('tiny-MarkersChanged')};Ant.TinyDispatcher=class extends SDK.DOMDispatcher{constructor(tinyModel){super(tinyModel);} | ||
documentUpdated(){console.log('get messages');this._domModel._documentUpdated();}};SDK.SDKModel.register(Ant.TinyModel,SDK.Target.Capability.DOM,true);;Ant.TinyConnection=class{constructor(target,dispatcher){this._target=target;this._agent=target.tinyAgent();this._dispatcher=dispatcher;window.listenToHost('render',(event,args)=>{const messageObject=args;const{method,payload}=args;if(extraMessageHandler[method]) | ||
extraMessageHandler[method](payload);else if(this._dispatcher[messageObject.method]) | ||
@@ -23,0 +22,0 @@ this._dispatcher[messageObject.method](messageObject);});const extraMessageHandler={};}};;Ant.StoragePanel=class extends UI.VBox{constructor(){super('storage');this.registerRequiredCSS('resources/resourcesPanel.css');this._target=SDK.targetManager.mainTarget();this.contentElement.classList.add('storage-view');const domStorageModel=this._target.model(Resources.DOMStorageModel);domStorageModel.enable();domStorageModel.storages().forEach(this._addDOMStorage.bind(this));domStorageModel.addEventListener(Resources.DOMStorageModel.Events.DOMStorageAdded,this._domStorageAdded,this);domStorageModel.addEventListener(Resources.DOMStorageModel.Events.DOMStorageRemoved,this._domStorageRemoved,this);this._domStorageView=null;} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6896120
46884