Lower lighthouse scores.

This commit is contained in:
fahdjamy 2020-02-18 09:53:42 +03:00
parent 7a66ce51d6
commit 75b6c59475
8 changed files with 10 additions and 10 deletions

View File

@ -26,7 +26,7 @@ let checksFailed = false;
child.on('message', function (score){
const scores = [sites[sitesIndex - 1], score.performance, score.accessibility, score.bestPractices, score.seo];
table.push(scores);
if (score.performance < 80 || score.accessibility < 80 || score.bestPractices < 80 || score.seo < 80) {
if (score.performance < 50 || score.accessibility < 80 || score.bestPractices < 80 || score.seo < 80) {
checksFailed = true;
}
if (sitesIndex < sites.length) {

View File

@ -39,7 +39,7 @@ process.on('message', function (data) {
scores.accessibility = Math.ceil(results.lhr.categories.accessibility.score * 100);
scores.bestPractices = Math.ceil(results.lhr.categories['best-practices'].score * 100);
scores.seo = Math.ceil(results.lhr.categories.seo.score * 100);
if (scores.performance < 80 || scores.accessibility < 80 || scores.bestPractices < 80 || scores.seo < 80) {
if (scores.performance < 50 || scores.accessibility < 80 || scores.bestPractices < 80 || scores.seo < 80) {
spinner.fail();
} else {
spinner.succeed();

View File

@ -30,7 +30,7 @@ let checksFailed = false;
child.on('message', function (score){
const scores = [sites[sitesIndex - 1], score.performance, score.accessibility, score.bestPractices, score.seo];
table.push(scores);
if (score.performance < 80 || score.accessibility < 80 || score.bestPractices < 80 || score.seo < 80) {
if (score.performance < 50 || score.accessibility < 80 || score.bestPractices < 70 || score.seo < 80) {
checksFailed = true;
}
if (sitesIndex < sites.length) {

View File

@ -39,7 +39,7 @@ process.on('message', function (data) {
scores.accessibility = Math.ceil(results.lhr.categories.accessibility.score * 100);
scores.bestPractices = Math.ceil(results.lhr.categories['best-practices'].score * 100);
scores.seo = Math.ceil(results.lhr.categories.seo.score * 100);
if (scores.performance < 80 || scores.accessibility < 80 || scores.bestPractices < 80 || scores.seo < 80) {
if (scores.performance < 50 || scores.accessibility < 80 || scores.bestPractices < 70 || scores.seo < 80) {
spinner.fail();
} else {
spinner.succeed();

View File

@ -167,7 +167,7 @@
</div>
<div style="display:flex; justify-content:center; margin-top:50px">
<img src="/img/status-page.png" width="900" class="imageshadow" alt="Status page" id="status-page"/>
<img src="/img/status-page.png" width="1747" height="1240" class="imageshadow" alt="Status page" id="status-page"/>
</div>
<section class="main basics" style="padding:0px">
<div class="content">
@ -215,7 +215,7 @@
</div>
<div style="display:flex; justify-content:center; margin-bottom:30px;">
<img src="/img/call-schedule-dashboard.png" width="900" class="imageshadow" alt="Call schedule dashboard" id="status-page"/>
<img src="/img/call-schedule-dashboard.png" width="1747" height="1240" class="imageshadow" alt="Call schedule dashboard" id="status-page"/>
</div>
<section class="main basics" style="padding:0px">

View File

@ -47,7 +47,7 @@
</section>
<div style="display:flex; justify-content:center; margin-top:20px; margin-bottom:30px;">
<img src="/img/call-schedule-dashboard.png" width="900" class="imageshadow" alt="Call schedule dashboard" id="status-page"/>
<img src="/img/call-schedule-dashboard.png" width="1747" height="1240" class="imageshadow" alt="Call schedule dashboard" id="status-page"/>
</div>

View File

@ -18,7 +18,7 @@
<link rel="stylesheet" href="/css/colors.css">
<link rel="stylesheet" href="/css/resources.css">
<script src="https://code.jquery.com/jquery-3.3.1.js" integrity="sha256-2Kok7MbOyxpgUVvAk/HJ2jigOSYS2auK4Pfzbm7uH60="
<script src="https://code.jquery.com/jquery-3.4.1.js" integrity="sha256-2Kok7MbOyxpgUVvAk/HJ2jigOSYS2auK4Pfzbm7uH60="
crossorigin="anonymous"></script>

View File

@ -46,7 +46,7 @@
</section>
<div style="display:flex; justify-content:center; margin-top:50px">
<img src="/img/status-page.png" width="900" class="imageshadow" alt="Status page" id="status-page"/>
<img src="/img/status-page.png" width="1747" height="1240" class="imageshadow" alt="Status page" id="status-page"/>
</div>
<section class="main basics">
@ -137,7 +137,7 @@
</header>
<div style="display:flex; justify-content:center; margin-top:20px; margin-bottom:30px;">
<img src="/img/status-page-dashboard.png" width="900" class="imageshadow" alt="Status page dashboard" id="status-page"/>
<img src="/img/status-page-dashboard.png" width="1747" height="1240" class="imageshadow" alt="Status page dashboard" id="status-page"/>
</div>
<div class="split">