Web Component DevTools
Developer tooling for Web Components and Web Component Libraries
什麼是Web Component DevTools?
Web Component DevTools是由Matsuuu開發的Chrome擴展程式,該擴展的主要功能是“Developer tooling for Web Components and Web Component Libraries”。
擴展截圖
下載Web Component DevTools擴展crx文件
下載Web Component DevTools擴展crx格式的文件,手動將Chrome擴充功能安裝到瀏覽器中,也可以將crx文件分享給朋友,輕鬆安裝Chrome擴充功能。
擴展使用說明
Developer tooling for Web Components and Web Component Libraries Web Component DevTools is aimed at all developers working with Web Components. The tooling provided creates a new Chrome Devtools panel, which allows a quick look at the custom elements on the current page, and enables modification of attributes and properties of said components. Web Component DevTools utilizes the Custom Elements Manifest (https://github.com/webcomponents/custom-elements-manifest) to analyze the Web Components. Features: Web Component DevTools provides advanced features to the developer, straight from the browser's UI to, for example: - Listing custom elements on the page, and accessible iframes inside the page - Filtering custom elements on the list - Inspecting and modifying the attributes of custom elements - Inspecting and modifying the properties (even objects and arrays) of custom elements - Observing dispatched events - Calling functions of the custom element, and logging the return values - View the source code of web components on page - Interact directly with web components through the console Why? In the process of developing Web Components, wether it be with a library like Lit, or without any kind of library, there comes situtations in which you might want to have a bit more control over your components than what the regular browser devtools gives you. You might for example want to: Toggle the Attributes of the element Toggle the Properties of the element Monitor when events get dispatched from the element Call functions And when you're working with Web Components, Shadow DOM usually is present, making it fairly difficult to find the path to the element. And even if you got the path, having to write document.querySelector("my-selector-string > element-name").setAttribute("my-attr", "foo") every time you want to modify a value is quite cumbersome. For this use case the Web Components DevTools were created: To enable the developer to easily modify the attributes, properties and therefore state of their element straight from the devtools window with the click of a button. Issues: Any issues you run into while using the DevTools should be submitted to the GitHub Repository (https://github.com/Matsuuu/web-component-devtools/issues).
擴展基本資訊
名稱 | Web Component DevTools |
ID | gdniinfdlmmmjpnhgnkmfpffipenjljo |
官方網址 | https://chromewebstore.google.com/detail/web-component-devtools/gdniinfdlmmmjpnhgnkmfpffipenjljo |
簡介 | Developer tooling for Web Components and Web Component Libraries |
檔案大小 | 1.74 MB |
安裝次數 | 6,000 |
目前版本 | 0.2.2 |
更新時間 | 2023-02-02 |
上架時間 | 2021-07-06 |
評分 | 5.00/5 共 6 次評分 |
開發者 | Matsuuu |
電子郵箱 | [email protected] |
付費類型 | free |
擴展官網 | https://matsuuu.github.io/web-component-devtools/ |
說明頁面URL | https://github.com/Matsuuu/web-component-devtools/issues |
支援的語言 | en |
manifest.json | |
{ "update_url": "https:\/\/clients2.google.com\/service\/update2\/crx", "manifest_version": 3, "name": "Web Component DevTools", "version": "0.2.2", "minimum_chrome_version": "88.0", "description": "Developer tooling for Web Components and Web Component Libraries", "author": "Matsuuu |