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 @@