Skip to content

Commit

Permalink
Merge pull request #141 from bbertucc/mvp-5
Browse files Browse the repository at this point in the history
MVP 5
  • Loading branch information
Blake Bertuccelli-Booth authored Dec 13, 2022
2 parents 73c450e + edd0209 commit 748df6d
Show file tree
Hide file tree
Showing 29 changed files with 737 additions and 65 deletions.
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,7 @@ vendor/
test/
_dev/
_private/
.ddev/
.ddev/
test.json
test.php
test.html
1 change: 0 additions & 1 deletion actions/toggle_site_status.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@ function update_alerts($new_status, $site_id) {
DataAccess::get_meta_value('active_integrations')
);


// Create active sites to alerts filter.
$integration_uris = NULL;
if(!empty($active_integrations)){
Expand Down
5 changes: 4 additions & 1 deletion actions/update_meta.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,11 @@
// TODO: update logic, so the $_POST parameters are
// set in the integrations file. See Github Issue #12.
$account_records = [];
if(!empty($_POST['wave_key'])){
if(isset($_POST['wave_key'])){
DataAccess::update_meta_value('wave_key', $_POST['wave_key']);
};
if(isset($_POST['axe_uri'])){
DataAccess::update_meta_value('axe_uri', $_POST['axe_uri']);
};

header('Location: ../index.php?view='.$last_view.'&status=success');
4 changes: 0 additions & 4 deletions cli/scan.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,6 @@
* be designed to be as efficient as possible so that
* Equalify works for everyone.
**********************************************************/

// PRIVATE session ID is declared as an argument in CLI.
if(!isset($_SESSION))
$_SESSION['id'] = $argv[1];

// Since this file can run in the CLI, we must set the
// directory if it isn't already set.
Expand Down
3 changes: 2 additions & 1 deletion helpers/process_alerts.php
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,8 @@ function process_alerts( array $integration_output) {
'status' => $alert->status,
'site_id' => $alert->site_id,
'tags' => $alert->tags,
'source' => $alert->source
'source' => $alert->source,
'more_info' => $alert->more_info
);
array_push($rows, $new_row);
};
Expand Down
4 changes: 0 additions & 4 deletions install.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,6 @@
* Equalify works for everyone.
**********************************************************/

// Wave key is required for activation.
if(empty($GLOBALS['wave_key']))
throw new Exception('Equalify requires a WAVE key. Get your key at https://wave.webaim.org/api/ and add it to the config.php file.');

// All the tables are created with this action.
if(DataAccess::table_exists('alerts') == false)
DataAccess::create_alerts_table();
Expand Down
284 changes: 284 additions & 0 deletions integrations/axe/axe_tags.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,284 @@
[
{
"slug": "wcag2a",
"title": "WCAG 2.0 Level A",
"description": "",
"category": "WCAG Axe Tags"
},
{
"slug": "wcag2aa",
"title": "WCAG 2.0 Level AA",
"category": "WCAG Axe Tags",
"description": ""
},
{
"slug": "wcag2aaa",
"title": "WCAG 2.0 Level AAA",
"category": "WCAG Axe Tags",
"description": ""
},
{
"slug": "wcag21a",
"title": "WCAG 2.1 Level A",
"category": "WCAG Axe Tags",
"description": ""
},
{
"slug": "wcag21aa",
"title": "WCAG 2.1 Level AA",
"category": "WCAG Axe Tags",
"description": ""
},
{
"slug": "wcag21aaa",
"title": "WCAG 2.1 Level AAA",
"category": "WCAG Axe Tags",
"description": ""
},
{
"slug": "wcag111",
"title": "WCAG Success Criteria 1.1.1",
"category": "WCAG Axe Tags",
"description": ""
},
{
"slug": "wcag121",
"title": "WCAG Success Criteria 1.2.1",
"category": "WCAG Axe Tags",
"description": ""
},
{
"slug": "wcag122",
"title": "WCAG Success Criteria 1.2.2",
"category": "WCAG Axe Tags",
"description": ""
},
{
"slug": "wcag131",
"title": "WCAG Success Criteria 1.3.1",
"category": "WCAG Axe Tags",
"description": ""
},
{
"slug": "wcag141",
"title": "WCAG Success Criteria 1.4.1",
"category": "WCAG Axe Tags",
"description": ""
},
{
"slug": "wcag143",
"title": "WCAG Success Criteria 1.4.3",
"category": "WCAG Axe Tags",
"description": ""
},
{
"slug": "wcag144",
"title": "WCAG Success Criteria 1.4.4",
"category": "WCAG Axe Tags",
"description": ""
},
{
"slug": "wcag211",
"title": "WCAG Success Criteria 2.1.1",
"category": "WCAG Axe Tags",
"description": ""
},
{
"slug": "wcag221",
"title": "WCAG Success Criteria 2.2.1",
"category": "WCAG Axe Tags",
"description": ""
},
{
"slug": "wcag222",
"title": "WCAG Success Criteria 2.2.2",
"category": "WCAG Axe Tags",
"description": ""
},
{
"slug": "wcag241",
"title": "WCAG Success Criteria 2.4.1",
"category": "WCAG Axe Tags",
"description": ""
},
{
"slug": "wcag242",
"title": "WCAG Success Criteria 2.4.2",
"category": "WCAG Axe Tags",
"description": ""
},
{
"slug": "wcag244",
"title": "WCAG Success Criteria 2.4.4",
"category": "WCAG Axe Tags",
"description": ""
},
{
"slug": "wcag311",
"title": "WCAG Success Criteria 3.1.1",
"category": "WCAG Axe Tags",
"description": ""
},
{
"slug": "wcag312",
"title": "WCAG Success Criteria 3.1.2",
"category": "WCAG Axe Tags",
"description": ""
},
{
"slug": "wcag332",
"title": "WCAG Success Criteria 3.3.2",
"category": "WCAG Axe Tags",
"description": ""
},
{
"slug": "wcag411",
"title": "WCAG Success Criteria 4.1.1",
"category": "WCAG Axe Tags",
"description": ""
},
{
"slug": "wcag412",
"title": "WCAG Success Criteria 4.1.2",
"category": "WCAG Axe Tags",
"description": ""
},
{
"slug": "section508",
"title": "Section 508",
"category": "Other Axe Tags",
"description": "Section 508 is part of a 1998 amendment to the Rehabilitation Act of 1973. It requires all Federal electronic content to be accessible"
},
{
"slug": "section50822a",
"title": "Section 508.22.a",
"category": "Other Axe Tags",
"description": ""
},
{
"slug": "section50822f",
"title": "Section 508.22.f",
"category": "Other Axe Tags",
"description": ""
},
{
"slug": "section50822g",
"title": "Section 508.22.g",
"category": "Other Axe Tags",
"description": ""
},
{
"slug": "section50822i",
"title": "Section 508.22.i",
"category": "Other Axe Tags",
"description": ""
},
{
"slug": "section50822j",
"title": "Section 508.22.j",
"category": "Other Axe Tags",
"description": ""
},
{
"slug": "section50822n",
"title": "Section 508.22.n",
"category": "Other Axe Tags",
"description": ""
},
{
"slug": "section50822o",
"title": "Section 508.22.o",
"category": "Other Axe Tags",
"description": ""
},
{
"slug": "ACT",
"title": "ACT",
"category": "Other Axe Tags",
"description": "ACT Rules are designed to harmonize how edge cases for WCAG and other accessibility guidance are tested."
},
{
"slug": "best-practice",
"title": "Best Practices",
"category": "Other Axe Tags",
"description": "Common accessibility best practices."
},
{
"slug": "cat.aria",
"title": "Aria",
"category": "Axe Categories",
"description": ""
},
{
"slug": "cat.color",
"title": "Color",
"category": "Axe Categories",
"description": ""
},
{
"slug": "cat.forms",
"title": "Forms",
"category": "Axe Categories",
"description": "axe/forms contains accessibility rules from the axe forms category."
},
{
"slug": "cat.keyboard",
"title": "Keyboard",
"category": "Axe Categories",
"description": "axe/keyboard contains accessibility rules from the axe keyboard category."
},
{
"slug": "cat.language",
"title": "Language",
"category": "Axe Categories",
"description": "axe/language contains accessibility rules from the axe language category."
},
{
"slug": "cat.name-role-value",
"title": "Name Role Value",
"category": "Axe Categories",
"description": "axe/name-role-value contains accessibility rules from the axe name-role-value category."
},
{
"slug": "cat.parsing",
"title": "Parsing",
"category": "Axe Categories",
"description": "axe/parsing contains accessibility rules from the axe parsing category."
},
{
"slug": "cat.semantics",
"title": "Semantics",
"category": "Axe Categories",
"description": "axe/semantics contains accessibility rules from the axe semantics category."
},
{
"slug": "cat.sensory-and-visual-cues",
"title": "Sensory and Visual Cues",
"category": "Axe Categories",
"description": "axe/sensory-and-visual-cues contains accessibility rules from the axe sensory-and-visual-cues category."
},
{
"slug": "cat.structure",
"title": "Structure",
"category": "Axe Categories",
"description": "axe/structure contains accessibility rules from the axe structure category."
},
{
"slug": "cat.tables",
"title": "Tables",
"category": "Axe Categories",
"description": "axe/tables contains accessibility rules from the axe tables category."
},
{
"slug": "cat.text-alternatives",
"title": "Text Alternatives",
"category": "Axe Categories",
"description": "axe/text-alternatives contains accessibility rules from the axe text-alternatives category."
},
{
"slug": "cat.time-and-media",
"title": "Time and Media",
"category": "Axe Categories",
"description": "axe/time-and-media contains accessibility rules from the axe time-and-media category."
}
]
Loading

0 comments on commit 748df6d

Please sign in to comment.