cgkineo / adapt-inspector

An extension to inspect details of elements

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Inspector

An extension to inspect details of elements.

Installation

  • Add the following to config.json:
"_inspector": {
  "_isEnabled": true
}
  • Optionally, reference the example JSON to make Inspector link to a specific Trac or to disable Inspector on touch devices.
  • With Adapt CLI installed, run adapt install inspector. Alternatively, download the ZIP and extract into the src > extensions directory.
  • Run an appropriate Grunt task.

Usage

  • Elements are annotated on visit with their types and IDs.
  • Select the element IDs to create tickets on Trac.
  • Hover over the IDs for tooltips containing additional details.

Attributes

Attribute
Type Description Default
_isEnabled Boolean Enable Inspector globally false
_isDisabledOnTouch Boolean Disable Inspector on touch devices true
_trac _isEnabled Boolean Link Inspector to Trac false
_url String The URL of the Trac instance e.g. "https://trac.edgewall.org/demo-1.0" ""
_params Object The fields to pre-populate in Trac. An {{inspector_location}} helper is provided to print an element’s location e.g. (page co-05) { "summary": "{{_id}}{{#if displayTitle}} {{{displayTitle}}}{{/if}}{{inspector_location}}" }
_elementsToInspect Array The rendered views which should be inspectable [ "menu", "menuItem", "page", "article", "block", "component" ]

About

An extension to inspect details of elements

License:GNU General Public License v3.0


Languages

Language:JavaScript 70.0%Language:Handlebars 19.3%Language:Less 10.6%