-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of ssh://ssh.github.com:443/PublicisSapient/enabl…
…e-a11y into datetimepicker
- Loading branch information
Showing
327 changed files
with
13,274 additions
and
5,807 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,5 +6,9 @@ tmp | |
report/* | ||
.idea | ||
|
||
# generated css map files | ||
*.css.map | ||
|
||
# auto-gen PHP files/logs | ||
php_errors.log | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
engine-strict=true | ||
chromedriver_force_download=true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
v20.4.0 | ||
v20.15.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
module.exports = { | ||
"customSyntax": "postcss-less", | ||
"extends": [ "stylelint-config-standard"], | ||
"ignoreFiles": [ | ||
"**/*.js", | ||
"enable-node-libs/**/*.css", | ||
"js/out/**/*.css", | ||
"js/enable-libs/**/*.css" | ||
], | ||
"plugins": ["@double-great/stylelint-a11y"], | ||
"rules": { | ||
"a11y/no-text-align-justify": true, | ||
"alpha-value-notation": null, | ||
"at-rule-empty-line-before": null, | ||
"at-rule-no-unknown": null, | ||
"color-function-notation": null, | ||
"color-hex-length": null, | ||
"comment-empty-line-before": null, | ||
"comment-whitespace-inside": null, | ||
"custom-property-empty-line-before": null, | ||
"custom-property-pattern": null, | ||
"declaration-empty-line-before": null, | ||
"declaration-block-no-duplicate-properties": null, | ||
"declaration-block-no-redundant-longhand-properties": null, | ||
"declaration-block-no-shorthand-property-overrides": null, | ||
"declaration-block-single-line-max-declarations": null, | ||
"font-family-name-quotes": null, | ||
"font-family-no-missing-generic-family-keyword": null, | ||
"function-calc-no-unspaced-operator": null, | ||
"function-name-case": null, | ||
"function-no-unknown": null, | ||
"function-url-quotes": null, | ||
"hue-degree-notation": null, | ||
"import-notation": null, | ||
"keyframes-name-pattern": null, | ||
"length-zero-no-unit": null, | ||
"media-feature-range-notation": null, | ||
"media-query-no-invalid": null, | ||
"no-empty-source": null, | ||
"no-descending-specificity": null, | ||
"no-duplicate-selectors": null, | ||
"number-max-precision": null, | ||
"property-no-unknown": null, | ||
"property-no-vendor-prefix": null, | ||
"rule-empty-line-before": null, | ||
"selector-class-pattern": null, | ||
"selector-id-pattern": null, | ||
"selector-no-vendor-prefix": null, | ||
"selector-pseudo-element-colon-notation": null, | ||
"shorthand-property-no-redundant-values": null, | ||
"string-no-newline": null, | ||
"value-keyword-case": null, | ||
"value-no-vendor-prefix": null | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/bin/bash | ||
|
||
i=`find less -name '*.less' -print` | ||
|
||
# echo $i | ||
OUTPUT=`grep -v "PX OK" $i | grep -n 'font-size:[^\s\S]*[^@]px;'` | ||
# OUTPUT=`grep -n 'font-size:[^\s\S]*[^@]px;' $i` | ||
# grep -b 'line-height:[^\s\S]*[^0-9];' $i | ||
RET="$?" | ||
|
||
if [ "$RET" = "0" ] | ||
then | ||
echo "The following CSS files must be changed so they don't use px units." | ||
echo "Please ensure you change the corresponding LESS files to use the @px mixin." | ||
echo "(e.g. instead of using 'font-size: 12px;', use 'font-size: 12 / @px;')." | ||
echo | ||
echo "$OUTPUT" | ||
echo | ||
exit 1; | ||
fi | ||
|
||
exit 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
#!/usr/bin/env node | ||
|
||
import chalk from 'chalk'; | ||
import { execSync } from 'child_process'; | ||
import fs from 'fs'; | ||
import path from 'path'; | ||
|
||
async function getRunningVersion() { | ||
const terminalCmd = 'node --version'; | ||
|
||
try { | ||
return execSync(terminalCmd).toString().trim(); | ||
} catch (e) { | ||
console.log(chalk.red(`Node version validation failed while running ${terminalCmd}`), e); | ||
} | ||
} | ||
|
||
async function validateVersion() { | ||
const directory = path.resolve(); | ||
let runningVersion; | ||
|
||
try { | ||
const filePath = path.resolve(directory, '.nvmrc'); | ||
const fileMetadata = await fs.promises.stat(filePath); | ||
const fileContent = fs.readFileSync(filePath, "utf8"); | ||
let specVersion; | ||
|
||
if (fileMetadata) { | ||
specVersion = fileContent.startsWith("v") ? fileContent : `v${fileContent};` | ||
runningVersion = (await getRunningVersion()).trim(); | ||
|
||
if (runningVersion.trim() !== specVersion.trim()) { | ||
console.log(chalk.red(`Your Node version ${runningVersion} does not match the specified version ${specVersion} \rfound in the .nvmrc file in your project root`) ); | ||
console.log('\n-------------\n'); | ||
console.log(chalk.red('Run command "nvm use" followed by "npm ci" in your terminal before running "npm run start" again.\n')); | ||
process.exit(1); | ||
} | ||
} | ||
|
||
|
||
} catch (e) { | ||
if (e.code !== "ENOENT") { | ||
console.log(chalk.red('An unexpected error occurred while validating your Node version.\n')); | ||
console.error(e); | ||
process.exit(1); | ||
} | ||
console.log(chalk.red('Make sure the ".nvmrc" file from the Git repository is present in your project root directory\n')); | ||
console.error(e); | ||
process.exit(1); | ||
} | ||
} | ||
|
||
validateVersion(); |
Oops, something went wrong.