forked from external-repos/pa11y-dashboard
Compare commits
4 Commits
Author | SHA1 | Date | |
---|---|---|---|
![]() |
93bea1dbac | ||
![]() |
7307fd6d61 | ||
![]() |
aa7d694da7 | ||
![]() |
b144970564 |
@@ -1,6 +1,15 @@
|
|||||||
|
|
||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
## 2.4.1 (2017-11-28)
|
||||||
|
|
||||||
|
* Update dependencies
|
||||||
|
* pa11y-webservice: ^2.3.0 to ^2.3.1
|
||||||
|
|
||||||
|
## 2.4.0 (2017-11-23)
|
||||||
|
|
||||||
|
* Add the ability to export the results graph as a PNG, see #197 for more information
|
||||||
|
|
||||||
## 2.3.0 (2017-10-31)
|
## 2.3.0 (2017-10-31)
|
||||||
|
|
||||||
* Large overhaul of the results page, see #196 for more information
|
* Large overhaul of the results page, see #196 for more information
|
||||||
|
1
Makefile
1
Makefile
@@ -35,6 +35,7 @@ uglify:
|
|||||||
public/js/vendor/flot/jquery.flot.time.js \
|
public/js/vendor/flot/jquery.flot.time.js \
|
||||||
public/js/vendor/flot/jquery.flot.selection.js \
|
public/js/vendor/flot/jquery.flot.selection.js \
|
||||||
public/js/vendor/flot/jquery.flot.resize.js \
|
public/js/vendor/flot/jquery.flot.resize.js \
|
||||||
|
public/js/vendor/helpers/html2canvas.min.js \
|
||||||
public/js/site.js \
|
public/js/site.js \
|
||||||
-o ./public/js/site.min.js
|
-o ./public/js/site.min.js
|
||||||
@$(TASK_DONE)
|
@$(TASK_DONE)
|
||||||
|
@@ -156,5 +156,5 @@ Copyright © 2013–2017, Team Pa11y
|
|||||||
[info-build]: https://travis-ci.org/pa11y/pa11y-dashboard
|
[info-build]: https://travis-ci.org/pa11y/pa11y-dashboard
|
||||||
[shield-license]: https://img.shields.io/badge/license-GPL%203.0-blue.svg
|
[shield-license]: https://img.shields.io/badge/license-GPL%203.0-blue.svg
|
||||||
[shield-node]: https://img.shields.io/badge/node.js%20support-4–6-brightgreen.svg
|
[shield-node]: https://img.shields.io/badge/node.js%20support-4–6-brightgreen.svg
|
||||||
[shield-version]: https://img.shields.io/badge/version-2.3.0-blue.svg
|
[shield-version]: https://img.shields.io/badge/version-2.4.1-blue.svg
|
||||||
[shield-build]: https://img.shields.io/travis/pa11y/pa11y-dashboard/master.svg
|
[shield-build]: https://img.shields.io/travis/pa11y/pa11y-dashboard/master.svg
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "pa11y-dashboard",
|
"name": "pa11y-dashboard",
|
||||||
"version": "2.3.0",
|
"version": "2.4.1",
|
||||||
"private": true,
|
"private": true,
|
||||||
"description": "Pa11y Dashboard is a visual web interface to the Pa11y accessibility reporter",
|
"description": "Pa11y Dashboard is a visual web interface to the Pa11y accessibility reporter",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
@@ -31,7 +31,7 @@
|
|||||||
"express-hbs": "~1.0",
|
"express-hbs": "~1.0",
|
||||||
"http-headers": "^3.0.1",
|
"http-headers": "^3.0.1",
|
||||||
"moment": "~2.15.2",
|
"moment": "~2.15.2",
|
||||||
"pa11y-webservice": "^2.3.0",
|
"pa11y-webservice": "^2.3.1",
|
||||||
"pa11y-webservice-client-node": "^1.2.1",
|
"pa11y-webservice-client-node": "^1.2.1",
|
||||||
"underscore": "~1.8"
|
"underscore": "~1.8"
|
||||||
},
|
},
|
||||||
|
2
public/css/site.min.css
vendored
2
public/css/site.min.css
vendored
File diff suppressed because one or more lines are too long
@@ -132,7 +132,7 @@ $(document).ready(function(){
|
|||||||
plotGraphData();
|
plotGraphData();
|
||||||
});
|
});
|
||||||
|
|
||||||
$(ruleTooltip).tooltip();
|
ruleTooltip.tooltip();
|
||||||
|
|
||||||
// Function to animate sections
|
// Function to animate sections
|
||||||
function animateSection (sectionName, offset){
|
function animateSection (sectionName, offset){
|
||||||
@@ -172,6 +172,7 @@ $(document).ready(function(){
|
|||||||
|
|
||||||
function plotGraphData () {
|
function plotGraphData () {
|
||||||
$.plot(graphContainer, getData(), graphOptions);
|
$.plot(graphContainer, getData(), graphOptions);
|
||||||
|
exportGraph();
|
||||||
}
|
}
|
||||||
|
|
||||||
function getData() {
|
function getData() {
|
||||||
@@ -202,6 +203,37 @@ $(document).ready(function(){
|
|||||||
zoomResetButton.toggleClass('hidden');
|
zoomResetButton.toggleClass('hidden');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function exportGraph() {
|
||||||
|
var exportBtn = $('.btn_action_export');
|
||||||
|
|
||||||
|
exportBtn.click(function(e) {
|
||||||
|
e.preventDefault();
|
||||||
|
|
||||||
|
var fileName = $('h1').text().toLowerCase().split(' ').join('_');
|
||||||
|
var date = new Date();
|
||||||
|
|
||||||
|
fileName += '_' + date.getDate() + '-' + (date.getMonth() + 1) + '-' + date.getFullYear();
|
||||||
|
|
||||||
|
html2canvas($('.graph').get(0), {
|
||||||
|
onrendered: function (canvas) {
|
||||||
|
downloadFile(canvas.toDataURL('image/png'), fileName + '.png');
|
||||||
|
}
|
||||||
|
});
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
function downloadFile(dataurl, filename) {
|
||||||
|
var link = document.createElement('a');
|
||||||
|
link.href = dataurl;
|
||||||
|
link.setAttribute('download', filename);
|
||||||
|
|
||||||
|
var clickEvent = document.createEvent('MouseEvents');
|
||||||
|
clickEvent.initEvent('click', false, true);
|
||||||
|
link.dispatchEvent(clickEvent);
|
||||||
|
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
graphContainer.bind('plotselected', function (event, ranges) {
|
graphContainer.bind('plotselected', function (event, ranges) {
|
||||||
// clamp the zooming to prevent eternal zoom
|
// clamp the zooming to prevent eternal zoom
|
||||||
if (ranges.xaxis.to - ranges.xaxis.from < 0.00001) {
|
if (ranges.xaxis.to - ranges.xaxis.from < 0.00001) {
|
||||||
|
2
public/js/site.min.js
vendored
2
public/js/site.min.js
vendored
File diff suppressed because one or more lines are too long
8
public/js/vendor/helpers/html2canvas.min.js
vendored
Normal file
8
public/js/vendor/helpers/html2canvas.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
@@ -523,8 +523,8 @@ ul.date-links {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.series-checkboxes {
|
.series-checkboxes {
|
||||||
padding: 0 30px;
|
padding: 0 15px;
|
||||||
margin-bottom: 15px;
|
margin-bottom: 16px;
|
||||||
|
|
||||||
li {
|
li {
|
||||||
width: 32%;
|
width: 32%;
|
||||||
@@ -532,7 +532,7 @@ ul.date-links {
|
|||||||
border-radius: @border-radius-base;
|
border-radius: @border-radius-base;
|
||||||
|
|
||||||
.series-checkbox-container {
|
.series-checkbox-container {
|
||||||
padding: 2px 4px 3px 4px;
|
padding: 4px 4px 5px 4px;
|
||||||
}
|
}
|
||||||
|
|
||||||
label {
|
label {
|
||||||
|
@@ -17,7 +17,13 @@ along with Pa11y Dashboard. If not, see <http://www.gnu.org/licenses/>.
|
|||||||
<div class="col-md-12 clearfix">
|
<div class="col-md-12 clearfix">
|
||||||
<div class="graph-container graph-spacer ruled clearfix">
|
<div class="graph-container graph-spacer ruled clearfix">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<ul class="list-unstyled floated-list series-checkboxes clearfix col-md-5 col-sm-6 col-xs-12 pull-right" data-role="series-checkboxes"></ul>
|
<div class="col-md-3 col-sm-4 col-xs-3">
|
||||||
|
<span class="btn btn-sm btn-default btn-full-width btn_action_export">Export graph</span>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="col-md-5 col-sm-6 col-xs-9 pull-right">
|
||||||
|
<ul class="list-unstyled floated-list series-checkboxes clearfix" data-role="series-checkboxes"></ul>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div data-role="graph" class="graph"></div>
|
<div data-role="graph" class="graph"></div>
|
||||||
<div class="dashedLegend">
|
<div class="dashedLegend">
|
||||||
|
Reference in New Issue
Block a user