@daisy/ace-report
Advanced tools
Comparing version 0.9.0 to 1.0.0-RC.1
@@ -55,2 +55,3 @@ 'use strict'; | ||
<td><span class='ruleset'>${rulesetTagLabels[violation['applicableRulesetTag']]}</span></td> | ||
<td>${violation['rule']}<br/><br/><span class='engine'>${violation['engine']}</span></td> | ||
<td><em>\"${violation['fileTitle']}\"<br/><br/><code class='location'>${violation['location']}</code>`; | ||
@@ -63,3 +64,2 @@ | ||
htmlStr += "</td>"; | ||
htmlStr += `<td>${violation['rule']}<br/><br/><span class='engine'>${violation['engine']}</span></td>`; | ||
@@ -88,3 +88,3 @@ var desc = violation["desc"]; | ||
const content = fs.readFileSync(path.join(__dirname, "./resources/report-template.handlebars")).toString(); | ||
const content = fs.readFileSync(path.join(__dirname, "./report-template.handlebars")).toString(); | ||
var template = handlebars.compile(content); | ||
@@ -175,3 +175,3 @@ var result = template(reportData); | ||
"kburl": item["earl:test"]["help"]["url"], | ||
"kbtitle": item["earl:test"]["help"]["title"], | ||
"kbtitle": item["earl:test"]["help"]["dct:title"], | ||
"rule": item["earl:test"]["dct:title"], | ||
@@ -178,0 +178,0 @@ "desc": escape(item["earl:result"]["dct:description"]), |
@@ -98,3 +98,3 @@ /* eslint no-param-reassign: ["error", { "props": false }] */ | ||
'@type': 'earl:report', | ||
'@context': 'http://ace.daisy.org/ns/ace-report.jsonld', | ||
'@context': 'http://daisy.github.io/ace/ace-report-1.0.jsonld', | ||
'dct:title': title == null ? '' : title.toString(), | ||
@@ -216,3 +216,7 @@ 'dct:description': title == null ? '' : description.toString(), | ||
withHelp(url, title, description) { | ||
this._json.help = { url, title, description }; | ||
this._json.help = { | ||
"url": url, | ||
"dct:title": title, | ||
"dct:description": description | ||
}; | ||
return this; | ||
@@ -219,0 +223,0 @@ } |
{ | ||
"name": "@daisy/ace-report", | ||
"version": "0.9.0", | ||
"version": "1.0.0-RC.1", | ||
"description": "Reporting utilities for Ace", | ||
@@ -5,0 +5,0 @@ "author": { |
541
38542
8