From 71b7cf3cd97480606bc10c2ab998f3f9fe8a7948 Mon Sep 17 00:00:00 2001 From: Stanislav Popov Date: Sat, 22 Dec 2018 14:25:22 +0500 Subject: [PATCH] =?UTF-8?q?feat:=20=D0=BF=D0=BE=D0=BF=D1=80=D0=B0=D0=B2?= =?UTF-8?q?=D0=BB=D0=B5=D0=BD=D0=B0=20=D0=B2=D0=B0=D0=BB=D0=B8=D0=B4=D0=B0?= =?UTF-8?q?=D1=86=D0=B8=D1=8F,=20sitesProcessing=20=D0=BF=D0=B5=D1=80?= =?UTF-8?q?=D0=B5=D0=BD=D0=B5=D1=81=D0=B5=D0=BD=20=D0=B2=20store?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/js/presets/columns.conf.js | 2 +- assets/js/validate.conf.js | 100 +--------------------------- components/SiteDetails.vue | 2 +- pages/index.vue | 68 +------------------ store/index.js | 107 +++++++++++++++++++++++++++--- 5 files changed, 102 insertions(+), 177 deletions(-) diff --git a/assets/js/presets/columns.conf.js b/assets/js/presets/columns.conf.js index 1622c04..87dae23 100644 --- a/assets/js/presets/columns.conf.js +++ b/assets/js/presets/columns.conf.js @@ -9,7 +9,7 @@ module.exports = { 'engine', 'meta_year', 'meta_visitors', - 'files_size', + 'meta_client_priority', ] }, cron: { diff --git a/assets/js/validate.conf.js b/assets/js/validate.conf.js index d04e775..f053ebf 100644 --- a/assets/js/validate.conf.js +++ b/assets/js/validate.conf.js @@ -1,99 +1 @@ -module.exports = { - lighthouse_interactive: { - warn: { min: 3000, max: 8000 }, // ps: 3900 warn - error: { min: 8001 } - }, - lighthouse_speed_index: { - warn: { min: 3500, max: 8000 }, // ps: 3200 ok, 3900 warn, 8500 fail - error: { min: 8001 } - }, - lighthouse_first_contentful_paint: { - warn: { min: 3000, max: 5000 }, // ps: 2400 warn, lh: 2700 ok - error: { min: 5001 } - }, - lighthouse_first_cpu_idle: { - warn: { min: 3000, max: 5000 }, - error: { min: 5001 } - }, - lighthouse_first_meaningful_paint: { - warn: { min: 2000, max: 4999 }, // ps: 5000 fail - error: { min: 5000 } - }, - lighthouse_input_latency: { - warn: { min: 50, max: 100 }, - error: { min: 101 } - }, - lighthouse_performance: { - warn: { min: 50, max: 79 }, - error: { max: 50 } - }, - lighthouse_pwa: { - warn: { min: 50, max: 79 }, - error: { max: 50 } - }, - lighthouse_accessibility: { - warn: { min: 50, max: 79 }, - error: { max: 50 } - }, - lighthouse_best_practices: { - warn: { min: 50, max: 79 }, - error: { max: 50 } - }, - lighthouse_seo: { - warn: { min: 50, max: 79 }, - error: { max: 50 } - }, - lighthouse_all: { - warn: { min: 50, max: 79 }, - error: { max: 50 } - }, - lighthouse_errors_in_console: { - warn: { min: 1, max: 2 }, - error: { min: 3 } - }, - lighthouse_metwork_requests: { - warn: { min: 50, max: 100 }, - error: { min: 100 } - }, - lighthouse_mainthread_work_breakdown: { - warn: { min: 2000, max: 4999 }, - error: { min: 5000 } - }, - lighthouse_total_byte_weight: { - warn: { min: 2000, max: 4999 }, - error: { min: 5000 } - }, - yandex_maps: { - error: { min: 1 } - }, - envy: { - warn: { min: 1 } - }, - jivosite: { - warn: { min: 1 } - }, - meta_client_priority: { - warn: { min: 2 }, - error: { min: 3 } - }, - https: { - warn: { max: 0 } - }, - meta_visitors: { - warn: { max: 499 }, - error: { max: 99 } - }, - meta_year: { - warn: { - min: new Date().getFullYear() - 4, - max: new Date().getFullYear() - 2 - }, - error: { - max: new Date().getFullYear() - 5 - } - }, - meta_yandex_sqi: { - warn: { max: 100 }, - error: { max: 50 } - } -}; +module.exports = {}; diff --git a/components/SiteDetails.vue b/components/SiteDetails.vue index fed1b6c..95d5845 100644 --- a/components/SiteDetails.vue +++ b/components/SiteDetails.vue @@ -131,7 +131,7 @@ export default { ); // console.log(fieldName + ' validateClass: ', info.validateClass); if (info.type == "boolean") { - info.valueText = info.value ? "да" : "нет"; + info.valueText = parseInt(info.value) ? "да" : "нет"; } groups[groupName].fields.push(info); } diff --git a/pages/index.vue b/pages/index.vue index 89c9487..b0c51ff 100644 --- a/pages/index.vue +++ b/pages/index.vue @@ -37,7 +37,6 @@