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"입니다.

확장 프로그램 스크린샷

screenshot
screenshot

Web Component DevTools 확장 프로그램 CRX 파일 다운로드

크롬 확장 프로그램을 crx 형식으로 다운로드하여 브라우저에 수동으로 설치하거나 crx 파일을 친구들과 공유하여 쉽게 크롬 확장 프로그램을 설치하세요.

확장 프로그램 사용 설명서

                        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 Web Component DevTools
ID gdniinfdlmmmjpnhgnkmfpffipenjljo
공식 URL 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 ",
    "devtools_page": "wc-devtools-init.html",
    "background": {
        "service_worker": "background-worker.js",
        "type": "module"
    },
    "content_scripts": [
        {
            "matches": [
                ""
            ],
            "js": [
                "content_script.js"
            ],
            "run_at": "document_idle"
        }
    ],
    "web_accessible_resources": [
        {
            "resources": [
                "message-types.js",
                "connection-channels.js",
                "content-messaging.js",
                "nydus.js",
                "crawler-constants.js",
                "analyzer.js",
                "crawler-inject.js",
                "spotlight-border.js"
            ],
            "matches": [
                ""
            ],
            "use_dynamic_urls": true
        }
    ],
    "permissions": [
        "tabs",
        "contextMenus",
        "scripting"
    ],
    "host_permissions": [
        ""
    ],
    "content_security_policy": {
        "extension_pages": "script-src 'wasm-unsafe-eval'; object-src 'self';script-src-elem 'self';"
    },
    "icons": {
        "16": "logo-16.png",
        "48": "logo-48.png",
        "128": "logo-128.png"
    }
}