mirror of
https://github.com/pa11y/pa11y-dashboard.git
synced 2025-09-25 14:51:28 +00:00
Compare commits
5 Commits
3.3.0
...
results-la
Author | SHA1 | Date | |
---|---|---|---|
![]() |
6090a126d5 | ||
![]() |
bb0491858b | ||
![]() |
4c0bd924ab | ||
![]() |
6d4b8c9676 | ||
![]() |
0654790289 |
79
README.md
79
README.md
@@ -16,13 +16,11 @@ Pa11y Dashboard is a web interface to the [Pa11y][pa11y] accessibility reporter;
|
|||||||
|
|
||||||
Pa11y Dashboard is a [Node.js][node] application and requires a stable or LTS version of Node, currently version 8 or greater.
|
Pa11y Dashboard is a [Node.js][node] application and requires a stable or LTS version of Node, currently version 8 or greater.
|
||||||
|
|
||||||
Pa11y Dashboard also requires a [MongoDB][mongo] database to be available so it can store the results of the tests. The database doesn't have to be in the same server or computer where Pa11y Dashboard is running from.
|
Pa11y Dashboard uses a [MongoDB][mongo] database to store the results of the tests. The database doesn't have to be in the same server or computer where Pa11y Dashboard is running from.
|
||||||
|
|
||||||
Since version 3, Pa11y Dashboard uses Headless Chrome in order to run the tests. This means that additional dependencies maybe be required.
|
Pa11y Dashboard uses [puppeteer](https://www.npmjs.com/package/puppeteer) to create a headless instance of the Chromium browser in order to run the tests. On certain environments this may require additional dependencies to be installed. For example, in Debian/Ubuntu systems you may need to install the `libnss3` and `libgconf-2-4` libraries in order to be able to run tests on Pa11y Dashboard. Please refer to the documentation from your provider for details on how to do this.
|
||||||
|
|
||||||
In [Unix-like](https://en.wikipedia.org/wiki/Unix-like) systems you may need to install the `libnss3` and `libgconf-2-4` libraries in order to be able to run Chrome. If you're trying to run the app in a headless environment (e.g. the cloud, or a headless server), you may also need to configure Xvfb before. Please refer to the documentation from your provider for details on how to do this.
|
## Setting up Pa11y Dashboard
|
||||||
|
|
||||||
## Setup
|
|
||||||
|
|
||||||
In order to run Pa11y Dashboard, we recommend cloning this repository locally:
|
In order to run Pa11y Dashboard, we recommend cloning this repository locally:
|
||||||
|
|
||||||
@@ -37,11 +35,43 @@ cd pa11y-dashboard
|
|||||||
npm install
|
npm install
|
||||||
```
|
```
|
||||||
|
|
||||||
You'll also need to have [MongoDB][mongo] installed and running. For quick access, you can install via a package manager such as on Mac OS `brew install mongodb` or on Linux (Debian) it would be `apt-get install mongodb`. To run MongoDB, you can run `mongod` in the command line. See the [MongoDB install guide][mongo-install] for more detailed information.
|
### Installing MongoDB
|
||||||
|
|
||||||
The last step before being able to run the application is to define a configuration for it. This can be done in two ways:
|
Instructions for installing and running MongoDB are outside the scope of this document. When in doubt, please refer to the [MongoDB installation instructions](https://docs.mongodb.com/manual/installation/) for details of how to install and run MongoDB on your specific operating system. An example of the installation and configuration process for macOS follows.
|
||||||
|
|
||||||
### Option 1: Using Environment Variables
|
Pa11y Dashboard currently uses version `2.2` of the Node.js MongoDB driver, which means that [only MongoDB servers of versions 3.4 or older are supported](https://docs.mongodb.com/drivers/node/compatibility/). Please ensure that your MongoDB server fills the requirements before trying to run Pa11y Dashboard.
|
||||||
|
|
||||||
|
#### Example MongoDB installation for macOS
|
||||||
|
|
||||||
|
On recent versions of macOS (10.13 or later), you can use [Homebrew](https://brew.sh/) to install MongoDB 3.4 Community Edition. More recent versions of MongoDB are untested and unsupported.
|
||||||
|
|
||||||
|
Tap the MongoDB Homebrew Tap:
|
||||||
|
```sh
|
||||||
|
brew tap mongodb/brew
|
||||||
|
```
|
||||||
|
|
||||||
|
Install the Community version of MongoDB:
|
||||||
|
```sh
|
||||||
|
brew install mongodb-community@3.4
|
||||||
|
```
|
||||||
|
|
||||||
|
Start the MongoDB server:
|
||||||
|
```sh
|
||||||
|
brew services start mongodb/brew/mongodb-community@3.4
|
||||||
|
```
|
||||||
|
|
||||||
|
Check that the service has started properly:
|
||||||
|
```sh
|
||||||
|
$ brew services list
|
||||||
|
Name Status User Plist
|
||||||
|
mongodb-community started pa11y /Users/pa11y/Library/LaunchAgents/homebrew.mxcl.mongodb-community.plist
|
||||||
|
```
|
||||||
|
|
||||||
|
### Configuring Pa11y Dashboard
|
||||||
|
|
||||||
|
The last step before being able to run Pa11y Dashboard is to define a configuration for it. This can be done in two ways:
|
||||||
|
|
||||||
|
#### Option 1: Using environment variables
|
||||||
|
|
||||||
Each configuration can be set with an environment variable rather than a config file. For example to run the application on port `8080` you can use the following:
|
Each configuration can be set with an environment variable rather than a config file. For example to run the application on port `8080` you can use the following:
|
||||||
|
|
||||||
@@ -49,11 +79,17 @@ Each configuration can be set with an environment variable rather than a config
|
|||||||
PORT=8080 node index.js
|
PORT=8080 node index.js
|
||||||
```
|
```
|
||||||
|
|
||||||
The [available configurations are documented here](#configurations).
|
The [available configurations](#configurations) are documented in the next section.
|
||||||
|
|
||||||
### Option 2: Using Config Files
|
#### Option 2: Using config files
|
||||||
|
|
||||||
You'll need to copy and modify different config files depending on your environment (set with `NODE_ENV`):
|
You can store the configuration for Pa11y Dashboard on a JSON file. You can use a different configuration file for each environment you're planning to run Pa11y Dashboard on. You can choose a specific environment to run the application from by setting the `NODE_ENV` environment variable:
|
||||||
|
|
||||||
|
```sh
|
||||||
|
NODE_ENV=development node index.js
|
||||||
|
```
|
||||||
|
|
||||||
|
Three example files are provided in this repository, you can copy and customise them to your liking:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
cp config/development.sample.json config/development.json
|
cp config/development.sample.json config/development.json
|
||||||
@@ -61,35 +97,32 @@ cp config/production.sample.json config/production.json
|
|||||||
cp config/test.sample.json config/test.json
|
cp config/test.sample.json config/test.json
|
||||||
```
|
```
|
||||||
|
|
||||||
Each of these files defines configurations for a different environment. If you're just running the application locally, then you should be OK with just development and test configurations. The [available configurations are documented here](#configurations).
|
The [available configurations](#configurations) are documented in the next section.
|
||||||
|
|
||||||
Now that you've got your application configured, make sure you have a MongoDB server running with the `mongod` command in another terminal window. You can run in each mode by changing the `NODE_ENV` environment variable:
|
If you run into problems, check the [troubleshooting guide][TROUBLESHOOTING.md].
|
||||||
|
|
||||||
```sh
|
|
||||||
NODE_ENV=development node index.js
|
|
||||||
```
|
|
||||||
|
|
||||||
See [Contributing](#contributing) for more information about running locally (and restarting automatically when files change).
|
|
||||||
|
|
||||||
If you run into problems, check the [troubleshooting guide][troubleshooting].
|
|
||||||
|
|
||||||
## Configurations
|
## Configurations
|
||||||
|
|
||||||
The boot configurations for Pa11y Dashboard are as follows. Look at the sample JSON files in the repo for example usage.
|
The boot configurations for Pa11y Dashboard are as follows. Look at the sample JSON files in the repo for example usage.
|
||||||
|
|
||||||
### port
|
### port
|
||||||
|
|
||||||
*(number)* The port to run the application on. Set via a config file or the `PORT` environment variable.
|
*(number)* The port to run the application on. Set via a config file or the `PORT` environment variable.
|
||||||
|
|
||||||
### noindex
|
### noindex
|
||||||
|
|
||||||
*(boolean)* If set to `true` (default), the dashboard will not be indexed by search engines. Set to `false` to allow indexing. Set via a config file or the `NOINDEX` environment variable.
|
*(boolean)* If set to `true` (default), the dashboard will not be indexed by search engines. Set to `false` to allow indexing. Set via a config file or the `NOINDEX` environment variable.
|
||||||
|
|
||||||
### readonly
|
### readonly
|
||||||
|
|
||||||
*(boolean)* If set to `true`, users will not be able to add, delete or run URLs (defaults to `false`). Set via a config file or the `READONLY` environment variable.
|
*(boolean)* If set to `true`, users will not be able to add, delete or run URLs (defaults to `false`). Set via a config file or the `READONLY` environment variable.
|
||||||
|
|
||||||
### siteMessage
|
### siteMessage
|
||||||
|
|
||||||
*(string)* A message to display prominently on the site home page. Defaults to `null`.
|
*(string)* A message to display prominently on the site home page. Defaults to `null`.
|
||||||
|
|
||||||
### webservice
|
### webservice
|
||||||
|
|
||||||
This can either be an object containing [Pa11y Webservice configurations][pa11y-webservice-config], or a string which is the base URL of a [Pa11y Webservice][pa11y-webservice] instance you are running separately. If using environment variables, prefix the webservice vars with `WEBSERVICE_`.
|
This can either be an object containing [Pa11y Webservice configurations][pa11y-webservice-config], or a string which is the base URL of a [Pa11y Webservice][pa11y-webservice] instance you are running separately. If using environment variables, prefix the webservice vars with `WEBSERVICE_`.
|
||||||
|
|
||||||
## Contributing
|
## Contributing
|
||||||
@@ -143,15 +176,11 @@ Copyright © 2013–2020, Team Pa11y and contributors
|
|||||||
|
|
||||||
[gpl]: http://www.gnu.org/licenses/gpl-3.0.html
|
[gpl]: http://www.gnu.org/licenses/gpl-3.0.html
|
||||||
[mongo]: http://www.mongodb.org/
|
[mongo]: http://www.mongodb.org/
|
||||||
[mongo-install]: https://docs.mongodb.org/manual/installation/
|
|
||||||
[node]: http://nodejs.org/
|
[node]: http://nodejs.org/
|
||||||
[pa11y]: https://github.com/pa11y/pa11y
|
[pa11y]: https://github.com/pa11y/pa11y
|
||||||
[pa11y-webservice-config]: https://github.com/pa11y/webservice#configurations
|
[pa11y-webservice-config]: https://github.com/pa11y/webservice#configurations
|
||||||
[phantom]: http://phantomjs.org/
|
|
||||||
[sidekick-proposal]: https://github.com/pa11y/sidekick/blob/master/PROPOSAL.md
|
|
||||||
[travis]: https://travis-ci.org/pa11y/dashboard
|
[travis]: https://travis-ci.org/pa11y/dashboard
|
||||||
[travis-img]: https://travis-ci.org/pa11y/dashboard.png?branch=master
|
[travis-img]: https://travis-ci.org/pa11y/dashboard.png?branch=master
|
||||||
[troubleshooting]: https://github.com/pa11y/dashboard/blob/master/TROUBLESHOOTING.md
|
|
||||||
|
|
||||||
[info-node]: package.json
|
[info-node]: package.json
|
||||||
[info-build]: https://travis-ci.org/pa11y/pa11y-dashboard
|
[info-build]: https://travis-ci.org/pa11y/pa11y-dashboard
|
||||||
|
@@ -112,7 +112,7 @@ function getStandards() {
|
|||||||
description: 'The heading structure is not logically nested. This [Node name, eg. h2] element appears to be the primary document heading, so should be an h1 element.'
|
description: 'The heading structure is not logically nested. This [Node name, eg. h2] element appears to be the primary document heading, so should be an h1 element.'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'Section508.D.HeadingOrder',
|
name: 'Section508.D.HeadingOrder ',
|
||||||
description: 'The heading structure is not logically nested. This [Node name, eg. h4] element should be an [Expected heading node name, eg. h2] to be properly nested.'
|
description: 'The heading structure is not logically nested. This [Node name, eg. h4] element should be an [Expected heading node name, eg. h2] to be properly nested.'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -922,7 +922,7 @@ function getStandards() {
|
|||||||
description: 'This element\'s text is placed on a background image. Ensure the contrast ratio between the text and all covered parts of the image are at least 4.5:1.'
|
description: 'This element\'s text is placed on a background image. Ensure the contrast ratio between the text and all covered parts of the image are at least 4.5:1.'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'WCAG2AA.Principle1.Guideline1_4.1_4_3.G145',
|
name: 'WCAG2AA.Principle1.Guideline1_4.1_4_3.G145 ',
|
||||||
description: 'This element\'s text is placed on a background image. Ensure the contrast ratio between the text and all covered parts of the image are at least 3:1.'
|
description: 'This element\'s text is placed on a background image. Ensure the contrast ratio between the text and all covered parts of the image are at least 3:1.'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@@ -1427,11 +1427,11 @@ function getStandards() {
|
|||||||
description: 'This element has insufficient contrast at this conformance level. Expected a contrast ratio of at least 4.5:1, but text in this element has a contrast ratio of /{value/}. Recommendation: /{colour recommendations/}.'
|
description: 'This element has insufficient contrast at this conformance level. Expected a contrast ratio of at least 4.5:1, but text in this element has a contrast ratio of /{value/}. Recommendation: /{colour recommendations/}.'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'WCAG2AAA.Principle1.Guideline1_4.1_4_6.G17',
|
name: 'WCAG2AAA.Principle1.Guideline1_4.1_4_6.G17 ',
|
||||||
description: 'This element\'s text is placed on a background image. Ensure the contrast ratio between the text and all covered parts of the image are at least 7:1.'
|
description: 'This element\'s text is placed on a background image. Ensure the contrast ratio between the text and all covered parts of the image are at least 7:1.'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
name: 'WCAG2AAA.Principle1.Guideline1_4.1_4_6.G18',
|
name: 'WCAG2AAA.Principle1.Guideline1_4.1_4_6.G18 ',
|
||||||
description: 'This element\'s text is placed on a background image. Ensure the contrast ratio between the text and all covered parts of the image are at least 4.5:1.'
|
description: 'This element\'s text is placed on a background image. Ensure the contrast ratio between the text and all covered parts of the image are at least 4.5:1.'
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
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
@@ -26,7 +26,7 @@ $(document).ready(function(){
|
|||||||
var zoomResetButton = $('[data-role="zoom-reset"]');
|
var zoomResetButton = $('[data-role="zoom-reset"]');
|
||||||
var graphContainer = $('[data-role="graph"]');
|
var graphContainer = $('[data-role="graph"]');
|
||||||
var dateSelectDropdownMenu = $('[data-role="date-select-dropdown-menu"]');
|
var dateSelectDropdownMenu = $('[data-role="date-select-dropdown-menu"]');
|
||||||
var legend = graphContainer.parent('.graph-container').find('.dashedLegend');
|
var legend = graphContainer.parents('.graph-container').find('.dashedLegend');
|
||||||
var list = localStorage.getItem("listview") || ""; // get choice or nothing
|
var list = localStorage.getItem("listview") || ""; // get choice or nothing
|
||||||
|
|
||||||
|
|
||||||
|
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
@@ -71,6 +71,14 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
main section {
|
||||||
|
margin: 5em 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.results-download {
|
||||||
|
margin: 1.5em 0;
|
||||||
|
}
|
||||||
|
|
||||||
.supersize-me {
|
.supersize-me {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
font-size: 112px;
|
font-size: 112px;
|
||||||
@@ -175,7 +183,6 @@
|
|||||||
text-transform: uppercase;
|
text-transform: uppercase;
|
||||||
display: block;
|
display: block;
|
||||||
line-height: 1.4;
|
line-height: 1.4;
|
||||||
.opacity(.8);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Stats box colours
|
// Stats box colours
|
||||||
@@ -586,9 +593,9 @@ ul.date-links {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.dashedLegend {
|
.dashedLegend {
|
||||||
position: absolute;
|
position: relative;
|
||||||
top: 70px;
|
top: 55px;
|
||||||
right: 40px;
|
right: 20px;
|
||||||
font-size: smaller;
|
font-size: smaller;
|
||||||
color: #545454;
|
color: #545454;
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
@@ -753,3 +760,11 @@ ul.date-links {
|
|||||||
border-top-right-radius: 0;
|
border-top-right-radius: 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*close button on success alert*/
|
||||||
|
.alert-success {
|
||||||
|
.close {
|
||||||
|
color: #fff;
|
||||||
|
opacity: 1;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
@@ -18,9 +18,9 @@
|
|||||||
// -------------------------
|
// -------------------------
|
||||||
|
|
||||||
@brand-primary: #2C3E50;
|
@brand-primary: #2C3E50;
|
||||||
@brand-success: #00806F;
|
@brand-success: #006053;
|
||||||
@brand-warning: #A86700;
|
@brand-warning: #b24d04;
|
||||||
@brand-danger: #D83D2D;
|
@brand-danger: #c92a2a;
|
||||||
@brand-info: #177BBE;
|
@brand-info: #177BBE;
|
||||||
|
|
||||||
// Scaffolding
|
// Scaffolding
|
||||||
|
@@ -40,7 +40,7 @@ along with Pa11y Dashboard. If not, see <http://www.gnu.org/licenses/>.
|
|||||||
{{#deleted}}
|
{{#deleted}}
|
||||||
<div class="col-md-12 clearfix" data-test="alert">
|
<div class="col-md-12 clearfix" data-test="alert">
|
||||||
<div class="alert alert-info">
|
<div class="alert alert-info">
|
||||||
<button aria-hidden="true" data-dismiss="alert" class="close" type="button">×</button>
|
<button data-dismiss="alert" class="close" type="button" aria-label="Close">×</button>
|
||||||
<strong>Bye Bye URL</strong>
|
<strong>Bye Bye URL</strong>
|
||||||
<p>The URL you selected and its associated results have been deleted.</p>
|
<p>The URL you selected and its associated results have been deleted.</p>
|
||||||
</div>
|
</div>
|
||||||
|
@@ -19,7 +19,7 @@ along with Pa11y Dashboard. If not, see <http://www.gnu.org/licenses/>.
|
|||||||
Add a new URL
|
Add a new URL
|
||||||
{{/content}}
|
{{/content}}
|
||||||
|
|
||||||
<form role="form" class="col-md-12" action="/new" method="post" data-test="new-url-form">
|
<form class="col-md-12" action="/new" method="post" data-test="new-url-form">
|
||||||
|
|
||||||
<div class="legend">
|
<div class="legend">
|
||||||
<h1 class="h2 crunch-top">Add a new URL</h1>
|
<h1 class="h2 crunch-top">Add a new URL</h1>
|
||||||
|
@@ -14,58 +14,61 @@ GNU General Public License for more details.
|
|||||||
You should have received a copy of the GNU General Public License
|
You should have received a copy of the GNU General Public License
|
||||||
along with Pa11y Dashboard. If not, see <http://www.gnu.org/licenses/>.
|
along with Pa11y Dashboard. If not, see <http://www.gnu.org/licenses/>.
|
||||||
}}
|
}}
|
||||||
<div class="col-md-12 clearfix">
|
<section class="col-md-12 clearfix">
|
||||||
<div class="graph-container graph-spacer ruled clearfix">
|
<h2>Results Overview</h2>
|
||||||
<div class="row">
|
|
||||||
<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">
|
<div class="col-md-12 graph-container graph-spacer ruled clearfix">
|
||||||
<ul class="list-unstyled floated-list series-checkboxes clearfix" data-role="series-checkboxes"></ul>
|
<div class="col-md-10">
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-md-3 col-sm-4 col-xs-3">
|
||||||
|
<button class="btn btn-sm btn-default btn-full-width btn_action_export">Export graph</button>
|
||||||
|
</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>
|
</div>
|
||||||
<div data-role="graph" class="graph"></div>
|
<div class="col-md-2 dashedLegend">
|
||||||
<div class="dashedLegend">
|
|
||||||
<div class="dashedContainer">
|
<div class="dashedContainer">
|
||||||
<table>
|
<table>
|
||||||
<tbody>
|
<tbody>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="legendColorBox">
|
<td class="legendColorBox">
|
||||||
<div class="clearfix legendIcon legendErrors">
|
<div class="clearfix legendIcon legendErrors">
|
||||||
<div></div>
|
<div></div>
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
<td class="legendLabel">Errors</td>
|
<td class="legendLabel">Errors</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="legendColorBox">
|
<td class="legendColorBox">
|
||||||
<div class="clearfix legendIcon legendWarnings">
|
<div class="clearfix legendIcon legendWarnings">
|
||||||
<div></div><div></div>
|
<div></div><div></div>
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
<td class="legendLabel">Warnings</td>
|
<td class="legendLabel">Warnings</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="legendColorBox">
|
<td class="legendColorBox">
|
||||||
<div class="clearfix legendIcon legendNotices">
|
<div class="clearfix legendIcon legendNotices">
|
||||||
<div></div><div></div><div></div>
|
<div></div><div></div><div></div>
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</td>
|
||||||
<td class="legendLabel">Notices</td>
|
<td class="legendLabel">Notices</td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<button data-role='zoom-reset' class="btn btn-xs btn-primary pull-right btn-reset hidden">Reset Zoom <i class="glyphicon glyphicon-zoom-out"></i></button>
|
<button data-role='zoom-reset' class="btn btn-xs btn-primary pull-right btn-reset hidden">Reset Zoom <i class="glyphicon glyphicon-zoom-out"></i></button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="col-md-12 hidden">
|
|
||||||
<div class="graph-spacer ruled">
|
<div class="ruled col-md-12 graph-spacer">
|
||||||
<table id="graph-data" class="table graph-table" summary="Accessibility results from Pa11y for this page">
|
<table id="graph-data" class="table graph-table" summary="Accessibility results from Pa11y for this page">
|
||||||
<caption>Pa11y results for this URL</caption>
|
<caption>Results for {{simplify-url task.url}}</caption>
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th>Date</th>
|
<th>Date</th>
|
||||||
@@ -77,7 +80,7 @@ along with Pa11y Dashboard. If not, see <http://www.gnu.org/licenses/>.
|
|||||||
<tbody>
|
<tbody>
|
||||||
{{#results}}
|
{{#results}}
|
||||||
<tr data-role="url-stats">
|
<tr data-role="url-stats">
|
||||||
<td data-value="{{date-timestamp date}}" data-role="date">{{date-format date format="DD MMM YYYY"}}</td>
|
<td data-value="{{date-timestamp date}}" data-role="date"><a href="{{href}}">{{date-format date format="DD MMM YYYY"}}</a></td>
|
||||||
<td class="text-center" data-label="error">{{count.error}}</td>
|
<td class="text-center" data-label="error">{{count.error}}</td>
|
||||||
<td class="text-center" data-label="warning">{{count.warning}}</td>
|
<td class="text-center" data-label="warning">{{count.warning}}</td>
|
||||||
<td class="text-center" data-label="notice">{{count.notice}}</td>
|
<td class="text-center" data-label="notice">{{count.notice}}</td>
|
||||||
@@ -86,4 +89,4 @@ along with Pa11y Dashboard. If not, see <http://www.gnu.org/licenses/>.
|
|||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</section>
|
||||||
|
@@ -15,7 +15,7 @@ You should have received a copy of the GNU General Public License
|
|||||||
along with Pa11y Dashboard. If not, see <http://www.gnu.org/licenses/>.
|
along with Pa11y Dashboard. If not, see <http://www.gnu.org/licenses/>.
|
||||||
}}
|
}}
|
||||||
<footer>
|
<footer>
|
||||||
<div class="footer" role="contentinfo">
|
<div class="footer">
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="col-md-5">
|
<div class="col-md-5">
|
||||||
<small>© 2013–{{year}} Team Pa11y.<br/>Pa11y Dashboard is licensed under the GNU General Public License 3.0.<br/>Version {{version}}</small>
|
<small>© 2013–{{year}} Team Pa11y.<br/>Pa11y Dashboard is licensed under the GNU General Public License 3.0.<br/>Version {{version}}</small>
|
||||||
|
@@ -15,7 +15,7 @@ You should have received a copy of the GNU General Public License
|
|||||||
along with Pa11y Dashboard. If not, see <http://www.gnu.org/licenses/>.
|
along with Pa11y Dashboard. If not, see <http://www.gnu.org/licenses/>.
|
||||||
}}
|
}}
|
||||||
<header>
|
<header>
|
||||||
<div role="banner" class="header">
|
<div class="header">
|
||||||
<div class="container">
|
<div class="container">
|
||||||
{{#if isHomePage}}<h1>{{else}}<div class="h1">{{/if}}
|
{{#if isHomePage}}<h1>{{else}}<div class="h1">{{/if}}
|
||||||
<a href="/">Pa11y Dashboard</a> -
|
<a href="/">Pa11y Dashboard</a> -
|
||||||
|
@@ -15,54 +15,18 @@ You should have received a copy of the GNU General Public License
|
|||||||
along with Pa11y Dashboard. If not, see <http://www.gnu.org/licenses/>.
|
along with Pa11y Dashboard. If not, see <http://www.gnu.org/licenses/>.
|
||||||
}}
|
}}
|
||||||
|
|
||||||
<div class="col-md-3 aside">
|
<section class="col-md-12">
|
||||||
<div class="row">
|
<h2 id="tabSectionHeading">Results for {{date-format task.lastResult.date format="DD MMM YYYY"}}</h2>
|
||||||
<div class="action-buttons col-md-12 col-sm-6">
|
<div class="results-download">
|
||||||
<div class="row">
|
<a href="{{mainResult.hrefCsv}}" class="btn btn-default" data-test="download-csv">
|
||||||
<div class="col-md-12 col-sm-6 col-xs-12">
|
Download CSV <span class="glyphicon glyphicon-download" aria-hidden="true"></span>
|
||||||
<a href="{{mainResult.hrefCsv}}" class="btn-full-width btn btn-default" data-test="download-csv">
|
</a>
|
||||||
Download CSV <span class="glyphicon glyphicon-download" aria-hidden="true"></span>
|
<a href="{{mainResult.hrefJson}}" class="btn btn-default" data-test="download-json">
|
||||||
</a>
|
Download JSON <span class="glyphicon glyphicon-download" aria-hidden="true"></span>
|
||||||
</div>
|
</a>
|
||||||
<div class="col-md-12 col-sm-6 col-xs-12">
|
|
||||||
<a href="{{mainResult.hrefJson}}" class="btn-full-width btn btn-default" data-test="download-json">
|
|
||||||
Download JSON <span class="glyphicon glyphicon-download" aria-hidden="true"></span>
|
|
||||||
</a>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="row date-selector-row">
|
|
||||||
<div id="top" class="col-md-12 col-sm-12 clearfix">
|
<ul id="top" class="nav nav-tabs category-list">
|
||||||
<div class="well dark-well">
|
|
||||||
<div class="date-selector">
|
|
||||||
<div class="btn-group block-level clearfix">
|
|
||||||
<h2 class="h4">
|
|
||||||
<span class="glyphicon glyphicon-calendar" aria-hidden="true"></span> {{date-format task.lastResult.date format="DD MMM YYYY"}}
|
|
||||||
</h2>
|
|
||||||
<h3 class="h5 show-stats">Select a date to show stats for:</h3>
|
|
||||||
<ul role="navigation" class="dates-list">
|
|
||||||
{{#results}}
|
|
||||||
<li><a class="" href="{{href}}">{{date-format date format="DD MMM YYYY"}}</a></li>
|
|
||||||
{{/results}}
|
|
||||||
</ul>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-md-12 col-sm-12 clearfix">
|
|
||||||
<div class="well">
|
|
||||||
<h4 class="crunch-top">View results in browser</h4>
|
|
||||||
<p class="crunch-bottom">Pa11y uses HTML_CodeSniffer to find accessibility issues. <a href="http://squizlabs.github.io/HTML_CodeSniffer/">Use their bookmarklet</a> to view results on the page you are testing.</p>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="col-md-9" role="main">
|
|
||||||
<ul class="nav nav-tabs category-list" role="tablist">
|
|
||||||
<li class="category-list__item category-list__item_type_error active" role="presentation">
|
<li class="category-list__item category-list__item_type_error active" role="presentation">
|
||||||
<a class="category-list__link" id="errors" href="#errors-list" aria-controls="errors-list" role="tab" data-toggle="tab" data-test="task-errors">
|
<a class="category-list__link" id="errors" href="#errors-list" aria-controls="errors-list" role="tab" data-toggle="tab" data-test="task-errors">
|
||||||
Errors ( {{mainResult.count.error}} )
|
Errors ( {{mainResult.count.error}} )
|
||||||
@@ -116,10 +80,10 @@ along with Pa11y Dashboard. If not, see <http://www.gnu.org/licenses/>.
|
|||||||
|
|
||||||
<div class="task-details collapse" id="error-index-{{@index}}">
|
<div class="task-details collapse" id="error-index-{{@index}}">
|
||||||
{{#if solutions.length}}
|
{{#if solutions.length}}
|
||||||
<div class="subtitle" id="error-solutions">Solutions:</div>
|
<div class="subtitle">Solutions:</div>
|
||||||
<ul class="list-unstyled solutions-list" role="list" aria-labelledby="error-solutions">
|
<ul class="list-unstyled solutions-list">
|
||||||
{{#each solutions}}
|
{{#each solutions}}
|
||||||
<li class="list-unstyled__item" role="listitem">
|
<li class="list-unstyled__item">
|
||||||
<a class="link" href="{{url}}" target="_blank">
|
<a class="link" href="{{url}}" target="_blank">
|
||||||
<span class="glyphicon glyphicon-share" aria-hidden="true"></span> {{title}}
|
<span class="glyphicon glyphicon-share" aria-hidden="true"></span> {{title}}
|
||||||
</a>
|
</a>
|
||||||
@@ -129,10 +93,10 @@ along with Pa11y Dashboard. If not, see <http://www.gnu.org/licenses/>.
|
|||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
{{#if items.length}}
|
{{#if items.length}}
|
||||||
<div class="subtitle" id="error-selectors">Selectors:</div>
|
<div class="subtitle">Selectors:</div>
|
||||||
<ul class="list-unstyled selectors-list" role="list" aria-labelledby="error-selectors">
|
<ul class="list-unstyled selectors-list">
|
||||||
{{#each items}}
|
{{#each items}}
|
||||||
<li class="list-unstyled__item" role="listitem">
|
<li class="list-unstyled__item">
|
||||||
<span title="Context" data-role="context-popover" data-toggle="popover" data-content="{{context}}">
|
<span title="Context" data-role="context-popover" data-toggle="popover" data-content="{{context}}">
|
||||||
<code class="code">{{selector}}</code>
|
<code class="code">{{selector}}</code>
|
||||||
</span>
|
</span>
|
||||||
@@ -182,10 +146,10 @@ along with Pa11y Dashboard. If not, see <http://www.gnu.org/licenses/>.
|
|||||||
|
|
||||||
<div class="task-details collapse" id="warning-index-{{@index}}">
|
<div class="task-details collapse" id="warning-index-{{@index}}">
|
||||||
{{#if solutions.length}}
|
{{#if solutions.length}}
|
||||||
<div class="subtitle" id="warning-solutions">Solutions:</div>
|
<div class="subtitle">Solutions:</div>
|
||||||
<ul class="list-unstyled solutions-list" role="list" aria-labelledby="warning-solutions">
|
<ul class="list-unstyled solutions-list">
|
||||||
{{#each solutions}}
|
{{#each solutions}}
|
||||||
<li class="list-unstyled__item" role="listitem">
|
<li class="list-unstyled__item">
|
||||||
<a class="link" href="{{url}}" target="_blank">
|
<a class="link" href="{{url}}" target="_blank">
|
||||||
<span class="glyphicon glyphicon-share" aria-hidden="true"></span> {{title}}
|
<span class="glyphicon glyphicon-share" aria-hidden="true"></span> {{title}}
|
||||||
</a>
|
</a>
|
||||||
@@ -195,10 +159,10 @@ along with Pa11y Dashboard. If not, see <http://www.gnu.org/licenses/>.
|
|||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
{{#if items.length}}
|
{{#if items.length}}
|
||||||
<div class="subtitle" id="warning-selectors">Selectors:</div>
|
<div class="subtitle">Selectors:</div>
|
||||||
<ul class="list-unstyled selectors-list" role="list" aria-labelledby="warning-selectors">
|
<ul class="list-unstyled selectors-list">
|
||||||
{{#each items}}
|
{{#each items}}
|
||||||
<li class="list-unstyled__item" role="listitem">
|
<li class="list-unstyled__item">
|
||||||
<span title="Context" data-role="context-popover" data-toggle="popover" data-content="{{context}}">
|
<span title="Context" data-role="context-popover" data-toggle="popover" data-content="{{context}}">
|
||||||
<code class="code">{{selector}}</code>
|
<code class="code">{{selector}}</code>
|
||||||
</span>
|
</span>
|
||||||
@@ -248,10 +212,10 @@ along with Pa11y Dashboard. If not, see <http://www.gnu.org/licenses/>.
|
|||||||
|
|
||||||
<div class="task-details collapse" id="notice-index-{{@index}}">
|
<div class="task-details collapse" id="notice-index-{{@index}}">
|
||||||
{{#if solutions.length}}
|
{{#if solutions.length}}
|
||||||
<div class="subtitle" id="notice-solutions">Solutions:</div>
|
<div class="subtitle">Solutions:</div>
|
||||||
<ul class="list-unstyled solutions-list" role="list" aria-labelledby="notice-solutions">
|
<ul class="list-unstyled solutions-list">
|
||||||
{{#each solutions}}
|
{{#each solutions}}
|
||||||
<li class="list-unstyled__item" role="listitem">
|
<li class="list-unstyled__item">
|
||||||
<a class="link" href="{{url}}" target="_blank">
|
<a class="link" href="{{url}}" target="_blank">
|
||||||
<span class="glyphicon glyphicon-share" aria-hidden="true"></span> {{title}}
|
<span class="glyphicon glyphicon-share" aria-hidden="true"></span> {{title}}
|
||||||
</a>
|
</a>
|
||||||
@@ -261,10 +225,10 @@ along with Pa11y Dashboard. If not, see <http://www.gnu.org/licenses/>.
|
|||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
||||||
{{#if items.length}}
|
{{#if items.length}}
|
||||||
<div class="subtitle" id="notice-selectors">Selectors:</div>
|
<div class="subtitle">Selectors:</div>
|
||||||
<ul class="list-unstyled selectors-list" role="list" aria-labelledby="notice-selectors">
|
<ul class="list-unstyled selectors-list">
|
||||||
{{#each items}}
|
{{#each items}}
|
||||||
<li class="list-unstyled__item" role="listitem">
|
<li class="list-unstyled__item">
|
||||||
<span title="Context" data-role="context-popover" data-toggle="popover" data-content="{{context}}">
|
<span title="Context" data-role="context-popover" data-toggle="popover" data-content="{{context}}">
|
||||||
<code class="code">{{selector}}</code>
|
<code class="code">{{selector}}</code>
|
||||||
</span>
|
</span>
|
||||||
@@ -320,5 +284,9 @@ along with Pa11y Dashboard. If not, see <http://www.gnu.org/licenses/>.
|
|||||||
<div class="text">You have no ignored rules.</div>
|
<div class="text">You have no ignored rules.</div>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="well">
|
||||||
|
<h3 class="crunch-top h3">View results in browser</h3>
|
||||||
|
<p class="crunch-bottom">Pa11y uses HTML_CodeSniffer to find accessibility issues. <a href="http://squizlabs.github.io/HTML_CodeSniffer/">Use their bookmarklet</a> to view results on the page you are testing.</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</section>
|
||||||
|
@@ -24,11 +24,13 @@ along with Pa11y Dashboard. If not, see <http://www.gnu.org/licenses/>.
|
|||||||
<div class="run-details task-header clearfix">
|
<div class="run-details task-header clearfix">
|
||||||
<div class="col-md-12 clearfix">
|
<div class="col-md-12 clearfix">
|
||||||
{{#unless readonly}}
|
{{#unless readonly}}
|
||||||
<ul class="inline-list" role="menu">
|
<nav aria-label="task tools">
|
||||||
<li><a href="/{{task.id}}/edit">Edit this task</a></li>
|
<ul class="inline-list">
|
||||||
<li><a href="/{{task.id}}/delete">Delete this task</a></li>
|
<li><a href="/{{task.id}}/edit">Edit this task</a></li>
|
||||||
<li><a href="{{task.hrefRun}}" data-test="run-task">Run Pa11y</a></li>
|
<li><a href="/{{task.id}}/delete">Delete this task</a></li>
|
||||||
</ul>
|
<li><a href="{{task.hrefRun}}" data-test="run-task">Run Pa11y</a></li>
|
||||||
|
</ul>
|
||||||
|
</nav>
|
||||||
{{/unless}}
|
{{/unless}}
|
||||||
{{#if mainResult}}
|
{{#if mainResult}}
|
||||||
<div class="date">Last run: <strong>{{date-format mainResult.date format="DD MMM YYYY"}}</strong></div>
|
<div class="date">Last run: <strong>{{date-format mainResult.date format="DD MMM YYYY"}}</strong></div>
|
||||||
|
@@ -56,12 +56,14 @@ along with Pa11y Dashboard. If not, see <http://www.gnu.org/licenses/>.
|
|||||||
{{#unless ../readonly}}
|
{{#unless ../readonly}}
|
||||||
<div class="btn-group options-button text-right">
|
<div class="btn-group options-button text-right">
|
||||||
<button type="button" class="btn btn-info btn-xs dropdown-toggle" data-toggle="dropdown"><span class="sr-only">Options</span><span class="glyphicon glyphicon-cog"></span></button>
|
<button type="button" class="btn btn-info btn-xs dropdown-toggle" data-toggle="dropdown"><span class="sr-only">Options</span><span class="glyphicon glyphicon-cog"></span></button>
|
||||||
<ul class="dropdown-menu pull-right" role="menu">
|
<nav aria-label="task tools">
|
||||||
<li><a href="{{href}}/edit">Edit this task</a></li>
|
<ul class="dropdown-menu pull-right">
|
||||||
<li><a href="{{href}}/delete">Delete this task</a></li>
|
<li><a href="{{href}}/edit">Edit this task</a></li>
|
||||||
<li class="divider"></li>
|
<li><a href="{{href}}/delete">Delete this task</a></li>
|
||||||
<li><a href="{{href}}/run" data-test="run-task">Run Pa11y</a></li>
|
<li class="divider"></li>
|
||||||
</ul>
|
<li><a href="{{href}}/run" data-test="run-task">Run Pa11y</a></li>
|
||||||
|
</ul>
|
||||||
|
</nav>
|
||||||
</div>
|
</div>
|
||||||
{{/unless}}
|
{{/unless}}
|
||||||
</li>
|
</li>
|
||||||
|
@@ -29,7 +29,7 @@ along with Pa11y Dashboard. If not, see <http://www.gnu.org/licenses/>.
|
|||||||
</div>
|
</div>
|
||||||
{{/edited}}
|
{{/edited}}
|
||||||
|
|
||||||
<form role="form" class="col-md-12" action="/{{task.id}}/edit" method="post" data-test="edit-url-form">
|
<form class="col-md-12" action="/{{task.id}}/edit" method="post" data-test="edit-url-form">
|
||||||
|
|
||||||
<div class="legend">
|
<div class="legend">
|
||||||
<h1 class="h2 crunch-top">Edit URL</h1>
|
<h1 class="h2 crunch-top">Edit URL</h1>
|
||||||
|
@@ -22,7 +22,7 @@ along with Pa11y Dashboard. If not, see <http://www.gnu.org/licenses/>.
|
|||||||
{{#added}}
|
{{#added}}
|
||||||
<div class="col-md-12 clearfix" data-test="alert">
|
<div class="col-md-12 clearfix" data-test="alert">
|
||||||
<div class="alert alert-success">
|
<div class="alert alert-success">
|
||||||
<button aria-hidden="true" data-dismiss="alert" class="close" type="button">×</button>
|
<button data-dismiss="alert" class="close" type="button">×</button>
|
||||||
<strong>Whoop whoop!</strong>
|
<strong>Whoop whoop!</strong>
|
||||||
<p>Your new URL has been added.</p>
|
<p>Your new URL has been added.</p>
|
||||||
</div>
|
</div>
|
||||||
@@ -32,7 +32,7 @@ along with Pa11y Dashboard. If not, see <http://www.gnu.org/licenses/>.
|
|||||||
{{#running}}
|
{{#running}}
|
||||||
<div class="col-md-12 clearfix" data-test="alert">
|
<div class="col-md-12 clearfix" data-test="alert">
|
||||||
<div class="alert alert-success">
|
<div class="alert alert-success">
|
||||||
<button aria-hidden="true" data-dismiss="alert" class="close" type="button">×</button>
|
<button data-dismiss="alert" class="close" type="button">×</button>
|
||||||
<strong>New results incoming!</strong>
|
<strong>New results incoming!</strong>
|
||||||
<p>
|
<p>
|
||||||
New results are being generated for this URL in the background.
|
New results are being generated for this URL in the background.
|
||||||
@@ -45,7 +45,7 @@ along with Pa11y Dashboard. If not, see <http://www.gnu.org/licenses/>.
|
|||||||
{{#ruleIgnored}}
|
{{#ruleIgnored}}
|
||||||
<div class="col-md-12 clearfix" data-test="alert">
|
<div class="col-md-12 clearfix" data-test="alert">
|
||||||
<div class="alert alert-success">
|
<div class="alert alert-success">
|
||||||
<button aria-hidden="true" data-dismiss="alert" class="close" type="button">×</button>
|
<button data-dismiss="alert" class="close" type="button">×</button>
|
||||||
<strong>Rule ignored!</strong>
|
<strong>Rule ignored!</strong>
|
||||||
<p>
|
<p>
|
||||||
You've ignored an accessibility rule for this URL.
|
You've ignored an accessibility rule for this URL.
|
||||||
@@ -58,7 +58,7 @@ along with Pa11y Dashboard. If not, see <http://www.gnu.org/licenses/>.
|
|||||||
{{#ruleUnignored}}
|
{{#ruleUnignored}}
|
||||||
<div class="col-md-12 clearfix" data-test="alert">
|
<div class="col-md-12 clearfix" data-test="alert">
|
||||||
<div class="alert alert-success">
|
<div class="alert alert-success">
|
||||||
<button aria-hidden="true" data-dismiss="alert" class="close" type="button">×</button>
|
<button data-dismiss="alert" class="close" type="button">×</button>
|
||||||
<strong>Rule unignored!</strong>
|
<strong>Rule unignored!</strong>
|
||||||
<p>
|
<p>
|
||||||
You've removed an ignored accessibility rule for this URL.
|
You've removed an ignored accessibility rule for this URL.
|
||||||
|
Reference in New Issue
Block a user