ant-devtools-frontend
Advanced tools
Comparing version 0.3.4 to 0.3.5
{ | ||
"name": "ant-devtools-frontend", | ||
"description": "Ant DevTools UI From Chrome", | ||
"version": "0.3.4", | ||
"version": "0.3.5", | ||
"main": "index.js", | ||
@@ -6,0 +6,0 @@ "scripts": { |
@@ -8,3 +8,4 @@ let mainTinyModel;const win=window;Ant.AxmlPanel=class extends Elements.ElementsPanel{constructor(){super('axml');this.registerRequiredCSS('elements/elementsTreeOutline.css');Ant.targetManager.addEventListener(Ant.TargetManager.Events.switchTarget,this.requestTargetWS,this);this.requestTargetWS();} | ||
this.wasShown();} | ||
async requestTargetWS(){const{path,target,model}=Ant.targetManager.getCurrent();this._target=target;this._tinyModel=model;this.modelAdded(model,path,target);SDK.targetManager.modelAdded(this._target,Ant.TinyModel,model);SDK.targetManager.observeModels(Ant.TinyModel,this);SDK.targetManager.addModelListener(Ant.TinyModel,SDK.DOMModel.Events.DocumentUpdated,this._documentUpdatedEvent,this);await model.requestDocumentPromise();}};;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;} | ||
async requestTargetWS(){const current=Ant.targetManager.getCurrent();if(!current.model||!current.target||!current.path){return;} | ||
const{path,model,target,}=current;this._target=target;this._tinyModel=model;this.modelAdded(model,path,target);SDK.targetManager.modelAdded(this._target,Ant.TinyModel,model);SDK.targetManager.observeModels(Ant.TinyModel,this);SDK.targetManager.addModelListener(Ant.TinyModel,SDK.DOMModel.Events.DocumentUpdated,this._documentUpdatedEvent,this);await model.requestDocumentPromise();}};;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;} | ||
_addDOMStorage(domStorage){if(!domStorage._isLocalStorage)return;this.showStorage(domStorage);} | ||
@@ -11,0 +12,0 @@ _domStorageAdded(event){var domStorage=(event.data);this._addDOMStorage(domStorage);} |
Sorry, the diff of this file is too big to display
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
6935430
48115