Skip to content

tomgreenfield/adapt-inspector

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

49 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.
  • 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
_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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •