MIT License

项目介绍

emberjs/ember-inspector 是一个托管在 GitHub 上的开源项目,主要使用 JavaScript 编写,采用 MIT License 许可证,目前获得 969 个 Star、293 次 Fork。

仓库全名
emberjs/ember-inspector
开源许可证
MIT License
Star 数
969
Fork 数
293
未关闭 Issue
76

README 摘要

Adds an Ember tab to the browser's Developer Tools that allows you to inspect Ember objects in your application. Installation Chrome Install the extension from the Chrome Web Store. OR: Clone the repository cd into the repo directory run pnpm install run pnpm build to build the dist directory Visit chrome://extensions in Chrome Make sure Developer mode is checked Click on 'Load unpacked extension...' Choose the…

完整内容见 GitHub 原始 README 或本页 。

常见问题

ember-inspector 用什么语言开发?

主要使用 JavaScript 编写,采用 MIT License 许可证,目前有 969 个 Star。

ember-inspector 可以免费商用吗?

仓库采用 MIT License 许可证,可免费使用与修改,商业使用请遵守许可证条款(例如保留版权声明与许可声明)。

如何获取 ember-inspector 的源码?

可以直接克隆仓库:git clone https://github.com/emberjs/ember-inspector.git,默认分支为 main;安装与运行步骤见仓库 README。

ember-inspector 最近还在维护吗?

仓库最近一次更新为 3 天前,当前有 76 个未关闭 Issue;Star 数为 969,可作为社区活跃度的参考。

关于

GitHub 原始描述(英文)

Adds an Ember tab to the browser's Developer Tools that allows you to inspect Ember objects in your application.

描述取自 GitHub 官方 API,保持仓库作者书写的原文。

简要分析

热度分
1595
价值分
669
活跃状态
活跃

语言占比

CSS
HTML
JavaScript
SCSS

Release

README

Ember Inspector Build Status

Adds an Ember tab to the browser’s Developer Tools that allows you to inspect Ember objects in your application.

Installation

Chrome

Install the extension from the Chrome Web Store.

OR:

  • Clone the repository
  • cd into the repo directory
  • run pnpm install
  • run pnpm build to build the dist directory
  • Visit chrome://extensions in Chrome
  • Make sure Developer mode is checked
  • Click on ‘Load unpacked extension…’
  • Choose the dist/chrome folder in the cloned repo
  • Close and re-open developer tools if it’s already open

Firefox

Install the Firefox addon.

OR:

  • Clone the repository
  • cd into the repo directory
  • run pnpm install
  • run pnpm build to build the dist directory
  • Visit about:debugging#/runtime/this-firefox in Firefox
  • Click on ‘Load Temporary Add-on…’
  • Choose the dist/firefox/manifest.json file in the cloned repo

Opera

  • Clone the repository
  • cd into the repo directory
  • run pnpm install
  • run pnpm build to build the dist directory
  • Visit chrome://extensions in Opera
  • Make sure Developer mode is checked
  • Click on ‘Load unpacked extension…’
  • Choose the dist/chrome folder in the cloned repo
  • Close and re-open developer tools if it’s already open

Bookmarklet (All Browsers)

javascript: (function() { var s = document.createElement('script'); s.src = '//ember-extension.s3.amazonaws.com/dist_bookmarklet/load_inspector.js'; document.body.appendChild(s); }());

Internet explorer will open an iframe instead of a popup due to the lack of support for cross-origin messaging.

For development:

  • In a terminal:
    • run pnpm serve:bookmarklet
  • In your browser:
    • If Ember Inspector is installed as an active extension, deactivate it
    • Visit the Ember app you want to inspect
    • Open the developer tool console and execute the following (make sure you unblock the popup when you run the bookmarklet):
javascript: (function() { var s = document.createElement('script'); s.src = 'http://localhost:9191/bookmarklet/load_inspector.js'; document.body.appendChild(s); }());

Or to do this more easily in the future, create a new bookmark in your browser, and copy the above script as the URL.

The expected behavior is a new window opening with the URL http://localhost:9191/bookmarklet/<pane-root>/index.html?inspectedWindowURL=<inspected-app-url>, running your local ember-inspector. The content should be the same as the one you see when using the published extension, but not properly styled.

Vite Support

If your Ember app is running on Vite, you may need @embroider/legacy-inspector-support to get things working in your app.

Window Messages

The Ember Inspector uses window messages, so if you are using window messages in your application code, make sure you verify the sender and add checks to your event listener so as not to conflict with the inspector’s messages.

Development

Want to work on inspector? See DEVELOPMENT.md

评论

暂无评论