lighthouse 9.5.0-dev.20220725 → 9.5.0-dev.20220728
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lighthouse-cli/test/smokehouse/readme.md +1 -1
- package/lighthouse-cli/test/smokehouse/report-assert.js +7 -7
- package/lighthouse-core/config/default-config.js +2 -4
- package/package.json +1 -1
- package/report/test/generator/report-generator-test.js +1 -1
- package/report/test/renderer/category-renderer-test.js +2 -2
- package/shared/localization/locales/ar-XB.json +0 -12
- package/shared/localization/locales/ar.json +0 -12
- package/shared/localization/locales/bg.json +0 -12
- package/shared/localization/locales/ca.json +0 -12
- package/shared/localization/locales/cs.json +0 -12
- package/shared/localization/locales/da.json +0 -12
- package/shared/localization/locales/de.json +0 -12
- package/shared/localization/locales/el.json +0 -12
- package/shared/localization/locales/en-GB.json +0 -12
- package/shared/localization/locales/en-US.json +2 -14
- package/shared/localization/locales/en-XA.json +0 -12
- package/shared/localization/locales/en-XL.json +2 -14
- package/shared/localization/locales/es-419.json +0 -12
- package/shared/localization/locales/es.json +0 -12
- package/shared/localization/locales/fi.json +0 -12
- package/shared/localization/locales/fil.json +0 -12
- package/shared/localization/locales/fr.json +0 -12
- package/shared/localization/locales/he.json +0 -12
- package/shared/localization/locales/hi.json +0 -12
- package/shared/localization/locales/hr.json +0 -12
- package/shared/localization/locales/hu.json +0 -12
- package/shared/localization/locales/id.json +0 -12
- package/shared/localization/locales/it.json +0 -12
- package/shared/localization/locales/ja.json +0 -12
- package/shared/localization/locales/ko.json +0 -12
- package/shared/localization/locales/lt.json +0 -12
- package/shared/localization/locales/lv.json +0 -12
- package/shared/localization/locales/nl.json +0 -12
- package/shared/localization/locales/no.json +0 -12
- package/shared/localization/locales/pl.json +0 -12
- package/shared/localization/locales/pt-PT.json +0 -12
- package/shared/localization/locales/pt.json +0 -12
- package/shared/localization/locales/ro.json +0 -12
- package/shared/localization/locales/ru.json +0 -12
- package/shared/localization/locales/sk.json +0 -12
- package/shared/localization/locales/sl.json +0 -12
- package/shared/localization/locales/sr-Latn.json +0 -12
- package/shared/localization/locales/sr.json +0 -12
- package/shared/localization/locales/sv.json +0 -12
- package/shared/localization/locales/ta.json +0 -12
- package/shared/localization/locales/te.json +0 -12
- package/shared/localization/locales/th.json +0 -12
- package/shared/localization/locales/tr.json +0 -12
- package/shared/localization/locales/uk.json +0 -12
- package/shared/localization/locales/vi.json +0 -12
- package/shared/localization/locales/zh-HK.json +0 -12
- package/shared/localization/locales/zh-TW.json +0 -12
- package/shared/localization/locales/zh.json +0 -12
- package/types/smokehouse.d.ts +2 -2
- package/lighthouse-core/audits/apple-touch-icon.js +0 -72
|
@@ -530,18 +530,6 @@
|
|
|
530
530
|
"lighthouse-core/audits/accessibility/video-caption.js | title": {
|
|
531
531
|
"message": "Gli elementi `<video>` contengono un elemento `<track>` con `[kind=\"captions\"]`"
|
|
532
532
|
},
|
|
533
|
-
"lighthouse-core/audits/apple-touch-icon.js | description": {
|
|
534
|
-
"message": "Per una visualizzazione ottimale su iOS quando gli utenti aggiungono un'app web progressiva alla schermata Home, definisci un elemento `apple-touch-icon`, che deve rimandare a un'immagine PNG quadrata di 192 px (o 180 px) non trasparente. [Ulteriori informazioni](https://web.dev/apple-touch-icon/)."
|
|
535
|
-
},
|
|
536
|
-
"lighthouse-core/audits/apple-touch-icon.js | failureTitle": {
|
|
537
|
-
"message": "Non fornisce un valore `apple-touch-icon` valido"
|
|
538
|
-
},
|
|
539
|
-
"lighthouse-core/audits/apple-touch-icon.js | precomposedWarning": {
|
|
540
|
-
"message": "Il valore `apple-touch-icon-precomposed` è obsoleto, pertanto è preferibile usare `apple-touch-icon`."
|
|
541
|
-
},
|
|
542
|
-
"lighthouse-core/audits/apple-touch-icon.js | title": {
|
|
543
|
-
"message": "Fornisce un valore `apple-touch-icon` valido"
|
|
544
|
-
},
|
|
545
533
|
"lighthouse-core/audits/autocomplete.js | columnCurrent": {
|
|
546
534
|
"message": "Valore corrente"
|
|
547
535
|
},
|
|
@@ -530,18 +530,6 @@
|
|
|
530
530
|
"lighthouse-core/audits/accessibility/video-caption.js | title": {
|
|
531
531
|
"message": "`<video>` 要素に `[kind=\"captions\"]` が指定された `<track>` 要素が含まれています"
|
|
532
532
|
},
|
|
533
|
-
"lighthouse-core/audits/apple-touch-icon.js | description": {
|
|
534
|
-
"message": "ユーザーがプログレッシブ ウェブアプリを iOS のホーム画面に追加したとき、アプリが希望どおりのデザインで表示されるようにするには、`apple-touch-icon` を定義します。参照先は不透明な 192 ピクセル(または 180 ピクセル)の正方形の PNG 画像とする必要があります。[詳細](https://web.dev/apple-touch-icon/)"
|
|
535
|
-
},
|
|
536
|
-
"lighthouse-core/audits/apple-touch-icon.js | failureTitle": {
|
|
537
|
-
"message": "有効な `apple-touch-icon` が提供されていません"
|
|
538
|
-
},
|
|
539
|
-
"lighthouse-core/audits/apple-touch-icon.js | precomposedWarning": {
|
|
540
|
-
"message": "`apple-touch-icon-precomposed` は古いバージョンです。`apple-touch-icon` を使用することをおすすめします。"
|
|
541
|
-
},
|
|
542
|
-
"lighthouse-core/audits/apple-touch-icon.js | title": {
|
|
543
|
-
"message": "有効な `apple-touch-icon` が提供されています"
|
|
544
|
-
},
|
|
545
533
|
"lighthouse-core/audits/autocomplete.js | columnCurrent": {
|
|
546
534
|
"message": "現在の値"
|
|
547
535
|
},
|
|
@@ -530,18 +530,6 @@
|
|
|
530
530
|
"lighthouse-core/audits/accessibility/video-caption.js | title": {
|
|
531
531
|
"message": "`<video>` 요소에 `[kind=\"captions\"]` 지원 `<track>` 요소가 포함됨"
|
|
532
532
|
},
|
|
533
|
-
"lighthouse-core/audits/apple-touch-icon.js | description": {
|
|
534
|
-
"message": "프로그레시브 웹 앱을 홈 화면에 추가했을 때 iOS에서 제대로 표시되려면 `apple-touch-icon`을(를) 정의해야 합니다. 투명하지 않은 192px 또는 180px 정사각형 PNG로 설정되어야 합니다. [자세히 알아보기](https://web.dev/apple-touch-icon/)"
|
|
535
|
-
},
|
|
536
|
-
"lighthouse-core/audits/apple-touch-icon.js | failureTitle": {
|
|
537
|
-
"message": "유효한 `apple-touch-icon`이(가) 제공되지 않음"
|
|
538
|
-
},
|
|
539
|
-
"lighthouse-core/audits/apple-touch-icon.js | precomposedWarning": {
|
|
540
|
-
"message": "`apple-touch-icon-precomposed`이(가) 최신 버전이 아니므로 `apple-touch-icon`이(가) 적합합니다."
|
|
541
|
-
},
|
|
542
|
-
"lighthouse-core/audits/apple-touch-icon.js | title": {
|
|
543
|
-
"message": "유효한 `apple-touch-icon` 제공"
|
|
544
|
-
},
|
|
545
533
|
"lighthouse-core/audits/autocomplete.js | columnCurrent": {
|
|
546
534
|
"message": "현재 값"
|
|
547
535
|
},
|
|
@@ -530,18 +530,6 @@
|
|
|
530
530
|
"lighthouse-core/audits/accessibility/video-caption.js | title": {
|
|
531
531
|
"message": "Elementuose „`<video>`“ yra elementas „`<track>`“ su atributu „`[kind=\"captions\"]`“"
|
|
532
532
|
},
|
|
533
|
-
"lighthouse-core/audits/apple-touch-icon.js | description": {
|
|
534
|
-
"message": "Kad būtų tinkamai rodoma sistemoje „iOS“, kai naudotojai prideda laipsniškąją žiniatinklio programą prie pagrindinio ekrano, nurodykite `apple-touch-icon`. Ji turi nukreipti į neskaidrų 192 tšk. (arba 180 tšk.) kvadratinį PNG failą. [Sužinokite daugiau](https://web.dev/apple-touch-icon/)"
|
|
535
|
-
},
|
|
536
|
-
"lighthouse-core/audits/apple-touch-icon.js | failureTitle": {
|
|
537
|
-
"message": "Nepateikiama tinkama piktograma „`apple-touch-icon`“"
|
|
538
|
-
},
|
|
539
|
-
"lighthouse-core/audits/apple-touch-icon.js | precomposedWarning": {
|
|
540
|
-
"message": "„`apple-touch-icon-precomposed`“ paseno, verčiau naudokite „`apple-touch-icon`“."
|
|
541
|
-
},
|
|
542
|
-
"lighthouse-core/audits/apple-touch-icon.js | title": {
|
|
543
|
-
"message": "Pateikiama tinkama piktograma „`apple-touch-icon`“"
|
|
544
|
-
},
|
|
545
533
|
"lighthouse-core/audits/autocomplete.js | columnCurrent": {
|
|
546
534
|
"message": "Dabartinė vertė"
|
|
547
535
|
},
|
|
@@ -530,18 +530,6 @@
|
|
|
530
530
|
"lighthouse-core/audits/accessibility/video-caption.js | title": {
|
|
531
531
|
"message": "Elementi “`<video>`” ietver elementu “`<track>`” ar parametru “`[kind=\"captions\"]`”"
|
|
532
532
|
},
|
|
533
|
-
"lighthouse-core/audits/apple-touch-icon.js | description": {
|
|
534
|
-
"message": "Lai iegūtu ideālu izskatu iOS ierīcē, lietotājiem pievienojot progresīvo tīmekļa lietotni sākuma ekrānam, definējiet atribūtu `apple-touch-icon`. Tam ir jānorāda uz necaurspīdīgu 192 pikseļu (vai 180 pikseļu) kvadrātveida PNG. [Uzziniet vairāk](https://web.dev/apple-touch-icon/)."
|
|
535
|
-
},
|
|
536
|
-
"lighthouse-core/audits/apple-touch-icon.js | failureTitle": {
|
|
537
|
-
"message": "Netiek nodrošināts derīgs atribūts “`apple-touch-icon`”"
|
|
538
|
-
},
|
|
539
|
-
"lighthouse-core/audits/apple-touch-icon.js | precomposedWarning": {
|
|
540
|
-
"message": "Atribūts “`apple-touch-icon-precomposed`” ir novecojis; ieteicams izmantot atribūtu “`apple-touch-icon`”."
|
|
541
|
-
},
|
|
542
|
-
"lighthouse-core/audits/apple-touch-icon.js | title": {
|
|
543
|
-
"message": "Nodrošina derīgu atribūtu “`apple-touch-icon`”"
|
|
544
|
-
},
|
|
545
533
|
"lighthouse-core/audits/autocomplete.js | columnCurrent": {
|
|
546
534
|
"message": "Pašreizējā vērtība"
|
|
547
535
|
},
|
|
@@ -530,18 +530,6 @@
|
|
|
530
530
|
"lighthouse-core/audits/accessibility/video-caption.js | title": {
|
|
531
531
|
"message": "`<video>`-elementen bevatten een `<track>`-element met `[kind=\"captions\"]`"
|
|
532
532
|
},
|
|
533
|
-
"lighthouse-core/audits/apple-touch-icon.js | description": {
|
|
534
|
-
"message": "Definieer een `apple-touch-icon` voor een ideale weergave op iOS wanneer gebruikers een progressive web-app aan het startscherm toevoegen. Deze moet verwijzen naar een niet-transparante vierkante PNG van 192px (of 180px). [Meer informatie](https://web.dev/apple-touch-icon/)"
|
|
535
|
-
},
|
|
536
|
-
"lighthouse-core/audits/apple-touch-icon.js | failureTitle": {
|
|
537
|
-
"message": "Geeft geen geldig `apple-touch-icon` op"
|
|
538
|
-
},
|
|
539
|
-
"lighthouse-core/audits/apple-touch-icon.js | precomposedWarning": {
|
|
540
|
-
"message": "`apple-touch-icon-precomposed` is verouderd; `apple-touch-icon` krijgt de voorkeur."
|
|
541
|
-
},
|
|
542
|
-
"lighthouse-core/audits/apple-touch-icon.js | title": {
|
|
543
|
-
"message": "Verstrekt een geldig `apple-touch-icon`"
|
|
544
|
-
},
|
|
545
533
|
"lighthouse-core/audits/autocomplete.js | columnCurrent": {
|
|
546
534
|
"message": "Huidige waarde"
|
|
547
535
|
},
|
|
@@ -530,18 +530,6 @@
|
|
|
530
530
|
"lighthouse-core/audits/accessibility/video-caption.js | title": {
|
|
531
531
|
"message": "`<video>`-elementer inneholder et `<track>`-element med `[kind=\"captions\"]`"
|
|
532
532
|
},
|
|
533
|
-
"lighthouse-core/audits/apple-touch-icon.js | description": {
|
|
534
|
-
"message": "For å oppnå det ideelle utseendet på iOS når brukere legger til progressive nettprogrammer på startskjermen, definer et `apple-touch-icon`. Det må peke til et ugjennomsiktig, kvadratisk PNG-bilde med sidelengde på 192 (eller 180) piksler. [Finn ut mer](https://web.dev/apple-touch-icon/)."
|
|
535
|
-
},
|
|
536
|
-
"lighthouse-core/audits/apple-touch-icon.js | failureTitle": {
|
|
537
|
-
"message": "Har ikke noe gyldig `apple-touch-icon`"
|
|
538
|
-
},
|
|
539
|
-
"lighthouse-core/audits/apple-touch-icon.js | precomposedWarning": {
|
|
540
|
-
"message": "`apple-touch-icon-precomposed` er utdatert – `apple-touch-icon` foretrekkes."
|
|
541
|
-
},
|
|
542
|
-
"lighthouse-core/audits/apple-touch-icon.js | title": {
|
|
543
|
-
"message": "Har et gyldig `apple-touch-icon`"
|
|
544
|
-
},
|
|
545
533
|
"lighthouse-core/audits/autocomplete.js | columnCurrent": {
|
|
546
534
|
"message": "Nåværende verdi"
|
|
547
535
|
},
|
|
@@ -530,18 +530,6 @@
|
|
|
530
530
|
"lighthouse-core/audits/accessibility/video-caption.js | title": {
|
|
531
531
|
"message": "Elementy `<video>` zawierają element `<track>` z atrybutem `[kind=\"captions\"]`"
|
|
532
532
|
},
|
|
533
|
-
"lighthouse-core/audits/apple-touch-icon.js | description": {
|
|
534
|
-
"message": "Zdefiniuj element `apple-touch-icon`, by Twoja progresywna aplikacja internetowa wyglądała idealnie na iOS, gdy użytkownicy dodadzą ją do ekranu głównego. Element musi wskazywać kwadratowy obraz PNG o rozmiarze 192 (lub 180) pikseli bez przezroczystości. [Więcej informacji](https://web.dev/apple-touch-icon/)"
|
|
535
|
-
},
|
|
536
|
-
"lighthouse-core/audits/apple-touch-icon.js | failureTitle": {
|
|
537
|
-
"message": "Nie dostarcza prawidłowego atrybutu `apple-touch-icon`"
|
|
538
|
-
},
|
|
539
|
-
"lighthouse-core/audits/apple-touch-icon.js | precomposedWarning": {
|
|
540
|
-
"message": "Atrybut `apple-touch-icon-precomposed` jest przestarzały. Preferowany jest `apple-touch-icon`."
|
|
541
|
-
},
|
|
542
|
-
"lighthouse-core/audits/apple-touch-icon.js | title": {
|
|
543
|
-
"message": "Dostarcza prawidłowy atrybut `apple-touch-icon`"
|
|
544
|
-
},
|
|
545
533
|
"lighthouse-core/audits/autocomplete.js | columnCurrent": {
|
|
546
534
|
"message": "Bieżąca wartość"
|
|
547
535
|
},
|
|
@@ -530,18 +530,6 @@
|
|
|
530
530
|
"lighthouse-core/audits/accessibility/video-caption.js | title": {
|
|
531
531
|
"message": "Os elementos `<video>` contêm um elemento `<track>` com `[kind=\"captions\"]`"
|
|
532
532
|
},
|
|
533
|
-
"lighthouse-core/audits/apple-touch-icon.js | description": {
|
|
534
|
-
"message": "Para um aspeto ideal no iOS quando os utilizadores adicionam uma app web progressiva ao ecrã principal, defina um `apple-touch-icon`. Deve apontar para um PNG quadrado não transparente de 192 px (ou 180 px). [Saiba mais](https://web.dev/apple-touch-icon/)."
|
|
535
|
-
},
|
|
536
|
-
"lighthouse-core/audits/apple-touch-icon.js | failureTitle": {
|
|
537
|
-
"message": "Não fornece um `apple-touch-icon` válido"
|
|
538
|
-
},
|
|
539
|
-
"lighthouse-core/audits/apple-touch-icon.js | precomposedWarning": {
|
|
540
|
-
"message": "O `apple-touch-icon-precomposed` está desatualizado; recomendamos o `apple-touch-icon`."
|
|
541
|
-
},
|
|
542
|
-
"lighthouse-core/audits/apple-touch-icon.js | title": {
|
|
543
|
-
"message": "Fornece um `apple-touch-icon` válido"
|
|
544
|
-
},
|
|
545
533
|
"lighthouse-core/audits/autocomplete.js | columnCurrent": {
|
|
546
534
|
"message": "Valor atual"
|
|
547
535
|
},
|
|
@@ -530,18 +530,6 @@
|
|
|
530
530
|
"lighthouse-core/audits/accessibility/video-caption.js | title": {
|
|
531
531
|
"message": "Os elementos `<video>` contêm um elemento `<track>` com `[kind=\"captions\"]`"
|
|
532
532
|
},
|
|
533
|
-
"lighthouse-core/audits/apple-touch-icon.js | description": {
|
|
534
|
-
"message": "Para ter uma exibição ideal no iOS quando o usuário adiciona um Progressive Web App à tela inicial, defina um `apple-touch-icon`. Ele precisa apontar para um PNG quadrado não transparente de 192 px (ou 180 px). [Saiba mais](https://web.dev/apple-touch-icon/)."
|
|
535
|
-
},
|
|
536
|
-
"lighthouse-core/audits/apple-touch-icon.js | failureTitle": {
|
|
537
|
-
"message": "Não oferece um `apple-touch-icon` válido"
|
|
538
|
-
},
|
|
539
|
-
"lighthouse-core/audits/apple-touch-icon.js | precomposedWarning": {
|
|
540
|
-
"message": "`apple-touch-icon-precomposed` está desatualizado. Use `apple-touch-icon`."
|
|
541
|
-
},
|
|
542
|
-
"lighthouse-core/audits/apple-touch-icon.js | title": {
|
|
543
|
-
"message": "Disponibiliza um `apple-touch-icon` válido"
|
|
544
|
-
},
|
|
545
533
|
"lighthouse-core/audits/autocomplete.js | columnCurrent": {
|
|
546
534
|
"message": "Valor atual"
|
|
547
535
|
},
|
|
@@ -530,18 +530,6 @@
|
|
|
530
530
|
"lighthouse-core/audits/accessibility/video-caption.js | title": {
|
|
531
531
|
"message": "Elementele `<video>` conțin un element `<track>` cu `[kind=\"captions\"]`"
|
|
532
532
|
},
|
|
533
|
-
"lighthouse-core/audits/apple-touch-icon.js | description": {
|
|
534
|
-
"message": "Pentru un aspect ideal în iOS atunci când utilizatorii adaugă o aplicație web progresivă în ecranul de pornire, definește o `apple-touch-icon`. Aceasta trebuie să indice spre un PNG pătrat netransparent, de 192 px (sau 180 px). [Află mai multe](https://web.dev/apple-touch-icon/)."
|
|
535
|
-
},
|
|
536
|
-
"lighthouse-core/audits/apple-touch-icon.js | failureTitle": {
|
|
537
|
-
"message": "Nu oferă o `apple-touch-icon` validă"
|
|
538
|
-
},
|
|
539
|
-
"lighthouse-core/audits/apple-touch-icon.js | precomposedWarning": {
|
|
540
|
-
"message": "`apple-touch-icon-precomposed` este învechit; se preferă `apple-touch-icon`."
|
|
541
|
-
},
|
|
542
|
-
"lighthouse-core/audits/apple-touch-icon.js | title": {
|
|
543
|
-
"message": "Oferă o `apple-touch-icon` validă"
|
|
544
|
-
},
|
|
545
533
|
"lighthouse-core/audits/autocomplete.js | columnCurrent": {
|
|
546
534
|
"message": "Valoare actuală"
|
|
547
535
|
},
|
|
@@ -530,18 +530,6 @@
|
|
|
530
530
|
"lighthouse-core/audits/accessibility/video-caption.js | title": {
|
|
531
531
|
"message": "Элементы `<video>` содержат элемент `<track>` с атрибутом `[kind=\"captions\"]`"
|
|
532
532
|
},
|
|
533
|
-
"lighthouse-core/audits/apple-touch-icon.js | description": {
|
|
534
|
-
"message": "Чтобы современное веб-приложение лучше смотрелось на главном экране iOS, задайте значение для атрибута `apple-touch-icon`. Он должен указывать на непрозрачное квадратное PNG-изображение со стороной 192 или 180 пикселей. [Подробнее…](https://web.dev/apple-touch-icon/)"
|
|
535
|
-
},
|
|
536
|
-
"lighthouse-core/audits/apple-touch-icon.js | failureTitle": {
|
|
537
|
-
"message": "Не содержит действительный атрибут `apple-touch-icon`"
|
|
538
|
-
},
|
|
539
|
-
"lighthouse-core/audits/apple-touch-icon.js | precomposedWarning": {
|
|
540
|
-
"message": "Атрибут `apple-touch-icon-precomposed` устарел. Используйте атрибут `apple-touch-icon`."
|
|
541
|
-
},
|
|
542
|
-
"lighthouse-core/audits/apple-touch-icon.js | title": {
|
|
543
|
-
"message": "Содержит действительный атрибут `apple-touch-icon`"
|
|
544
|
-
},
|
|
545
533
|
"lighthouse-core/audits/autocomplete.js | columnCurrent": {
|
|
546
534
|
"message": "Текущее значение"
|
|
547
535
|
},
|
|
@@ -530,18 +530,6 @@
|
|
|
530
530
|
"lighthouse-core/audits/accessibility/video-caption.js | title": {
|
|
531
531
|
"message": "Prvky `<video>` obsahujú prvok `<track>` s titulkami `[kind=\"captions\"]`"
|
|
532
532
|
},
|
|
533
|
-
"lighthouse-core/audits/apple-touch-icon.js | description": {
|
|
534
|
-
"message": "Ak chcete zaistiť ideálny vzhľad progresívnej webovej aplikácie v systéme iOS, keď si ju používateľ pridá na plochu, definujte vlastnosť `apple-touch-icon`. Musí odkazovať na nepriehľadný obrázok PNG s veľkosťou 192 × 192 px (alebo 180 × 180 px). [Ďalšie informácie](https://web.dev/apple-touch-icon/)"
|
|
535
|
-
},
|
|
536
|
-
"lighthouse-core/audits/apple-touch-icon.js | failureTitle": {
|
|
537
|
-
"message": "Neposkytuje platnú ikonu `apple-touch-icon`"
|
|
538
|
-
},
|
|
539
|
-
"lighthouse-core/audits/apple-touch-icon.js | precomposedWarning": {
|
|
540
|
-
"message": "Prvok `apple-touch-icon-precomposed` je zastaraný, preferuje sa `apple-touch-icon`."
|
|
541
|
-
},
|
|
542
|
-
"lighthouse-core/audits/apple-touch-icon.js | title": {
|
|
543
|
-
"message": "Poskytuje platnú ikonu `apple-touch-icon`"
|
|
544
|
-
},
|
|
545
533
|
"lighthouse-core/audits/autocomplete.js | columnCurrent": {
|
|
546
534
|
"message": "Aktuálna hodnota"
|
|
547
535
|
},
|
|
@@ -530,18 +530,6 @@
|
|
|
530
530
|
"lighthouse-core/audits/accessibility/video-caption.js | title": {
|
|
531
531
|
"message": "Elementi `<video>` vsebujejo element `<track>` s podnapisi `[kind=\"captions\"]`."
|
|
532
532
|
},
|
|
533
|
-
"lighthouse-core/audits/apple-touch-icon.js | description": {
|
|
534
|
-
"message": "Za idealen prikaz v iOSu, ko uporabniki dodajo moderno spletno aplikacijo na začetni zaslon, določite to: `apple-touch-icon`. Kazati mora na neprosojno kvadratno datoteko PNG velikosti 192 (ali 180) slikovnih pik. [Več o tem](https://web.dev/apple-touch-icon/)."
|
|
535
|
-
},
|
|
536
|
-
"lighthouse-core/audits/apple-touch-icon.js | failureTitle": {
|
|
537
|
-
"message": "Ne vsebuje veljavne vrednosti `apple-touch-icon`"
|
|
538
|
-
},
|
|
539
|
-
"lighthouse-core/audits/apple-touch-icon.js | precomposedWarning": {
|
|
540
|
-
"message": "`apple-touch-icon-precomposed` je zastarel; prednostni je `apple-touch-icon`."
|
|
541
|
-
},
|
|
542
|
-
"lighthouse-core/audits/apple-touch-icon.js | title": {
|
|
543
|
-
"message": "Vsebuje veljavno vrednost `apple-touch-icon`"
|
|
544
|
-
},
|
|
545
533
|
"lighthouse-core/audits/autocomplete.js | columnCurrent": {
|
|
546
534
|
"message": "Trenutna vrednost"
|
|
547
535
|
},
|
|
@@ -530,18 +530,6 @@
|
|
|
530
530
|
"lighthouse-core/audits/accessibility/video-caption.js | title": {
|
|
531
531
|
"message": "Elementi `<video>` sadrže element `<track>` sa atributom `[kind=\"captions\"]`"
|
|
532
532
|
},
|
|
533
|
-
"lighthouse-core/audits/apple-touch-icon.js | description": {
|
|
534
|
-
"message": "Da bi izgled na iOS-u bio idealan kada korisnici dodaju progresivnu veb-aplikaciju na početni ekran, definišite ikonu `apple-touch-icon`. Ona mora da usmerava na netransparentni kvadratni PNG od 192 piksela (ili 180 piksela). [Saznajte više](https://web.dev/apple-touch-icon/)."
|
|
535
|
-
},
|
|
536
|
-
"lighthouse-core/audits/apple-touch-icon.js | failureTitle": {
|
|
537
|
-
"message": "Ne pruža važeći atribut `apple-touch-icon`"
|
|
538
|
-
},
|
|
539
|
-
"lighthouse-core/audits/apple-touch-icon.js | precomposedWarning": {
|
|
540
|
-
"message": "Atribut `apple-touch-icon-precomposed` je zastareo; preporučuje se `apple-touch-icon`."
|
|
541
|
-
},
|
|
542
|
-
"lighthouse-core/audits/apple-touch-icon.js | title": {
|
|
543
|
-
"message": "Pruža važeći atribut `apple-touch-icon`"
|
|
544
|
-
},
|
|
545
533
|
"lighthouse-core/audits/autocomplete.js | columnCurrent": {
|
|
546
534
|
"message": "Aktuelna vrednost"
|
|
547
535
|
},
|
|
@@ -530,18 +530,6 @@
|
|
|
530
530
|
"lighthouse-core/audits/accessibility/video-caption.js | title": {
|
|
531
531
|
"message": "Елементи `<video>` садрже елемент `<track>` са атрибутом `[kind=\"captions\"]`"
|
|
532
532
|
},
|
|
533
|
-
"lighthouse-core/audits/apple-touch-icon.js | description": {
|
|
534
|
-
"message": "Да би изглед на iOS-у био идеалан када корисници додају прогресивну веб-апликацију на почетни екран, дефинишите икону `apple-touch-icon`. Она мора да усмерава на нетранспарентни квадратни PNG од 192 пиксела (или 180 пиксела). [Сазнајте више](https://web.dev/apple-touch-icon/)."
|
|
535
|
-
},
|
|
536
|
-
"lighthouse-core/audits/apple-touch-icon.js | failureTitle": {
|
|
537
|
-
"message": "Не пружа важећи атрибут `apple-touch-icon`"
|
|
538
|
-
},
|
|
539
|
-
"lighthouse-core/audits/apple-touch-icon.js | precomposedWarning": {
|
|
540
|
-
"message": "Атрибут `apple-touch-icon-precomposed` је застарео; препоручује се `apple-touch-icon`."
|
|
541
|
-
},
|
|
542
|
-
"lighthouse-core/audits/apple-touch-icon.js | title": {
|
|
543
|
-
"message": "Пружа важећи атрибут `apple-touch-icon`"
|
|
544
|
-
},
|
|
545
533
|
"lighthouse-core/audits/autocomplete.js | columnCurrent": {
|
|
546
534
|
"message": "Актуелна вредност"
|
|
547
535
|
},
|
|
@@ -530,18 +530,6 @@
|
|
|
530
530
|
"lighthouse-core/audits/accessibility/video-caption.js | title": {
|
|
531
531
|
"message": "Alla `<video>`-element innehåller ett `<track>`-element med `[kind=\"captions\"]`"
|
|
532
532
|
},
|
|
533
|
-
"lighthouse-core/audits/apple-touch-icon.js | description": {
|
|
534
|
-
"message": "Definiera en `apple-touch-icon` för att få bästa möjliga utseende i iOS när användare lägger till en progressiv webbapp på startskärmen. Den måste peka på en icke-transparent, kvadratisk PNG med sidan 192 pixlar (eller 180 pixlar). [Läs mer](https://web.dev/apple-touch-icon/)."
|
|
535
|
-
},
|
|
536
|
-
"lighthouse-core/audits/apple-touch-icon.js | failureTitle": {
|
|
537
|
-
"message": "Anger inte ett giltigt `apple-touch-icon`"
|
|
538
|
-
},
|
|
539
|
-
"lighthouse-core/audits/apple-touch-icon.js | precomposedWarning": {
|
|
540
|
-
"message": "Attributet `apple-touch-icon-precomposed` är inaktuellt. `apple-touch-icon` är att föredra."
|
|
541
|
-
},
|
|
542
|
-
"lighthouse-core/audits/apple-touch-icon.js | title": {
|
|
543
|
-
"message": "Anger en giltig `apple-touch-icon`"
|
|
544
|
-
},
|
|
545
533
|
"lighthouse-core/audits/autocomplete.js | columnCurrent": {
|
|
546
534
|
"message": "Aktuellt värde"
|
|
547
535
|
},
|
|
@@ -530,18 +530,6 @@
|
|
|
530
530
|
"lighthouse-core/audits/accessibility/video-caption.js | title": {
|
|
531
531
|
"message": "`<video>` உறுப்புகளில் `[kind=\"captions\"]` உள்ள`<track>` உறுப்பு உள்ளது"
|
|
532
532
|
},
|
|
533
|
-
"lighthouse-core/audits/apple-touch-icon.js | description": {
|
|
534
|
-
"message": "முகப்புத் திரையில் நவீன இணைய ஆப்ஸை பயனர்கள் சேர்க்கும் போது iOSஸில் சிறப்பாகத் தோன்ற `apple-touch-icon` ஒன்றை வரையறுக்கவும். அது ஒளிபுகுத்தன்மையற்ற 192 பிகசல் (அல்லது 180 பிக்சல்) அளவுள்ள கட்ட வடிவத்திலான PNGயைக் காட்ட வேண்டும். [மேலும் அறிக](https://web.dev/apple-touch-icon/)."
|
|
535
|
-
},
|
|
536
|
-
"lighthouse-core/audits/apple-touch-icon.js | failureTitle": {
|
|
537
|
-
"message": "செல்லுபடியாகும் `apple-touch-icon`ஐ வழங்கவில்லை"
|
|
538
|
-
},
|
|
539
|
-
"lighthouse-core/audits/apple-touch-icon.js | precomposedWarning": {
|
|
540
|
-
"message": "`apple-touch-icon-precomposed` காலாவதியாகிவிட்டது; `apple-touch-icon` பரிந்துரைக்கப்படுகிறது."
|
|
541
|
-
},
|
|
542
|
-
"lighthouse-core/audits/apple-touch-icon.js | title": {
|
|
543
|
-
"message": "செல்லுபடியாகும் `apple-touch-icon`ஐ வழங்குகிறது"
|
|
544
|
-
},
|
|
545
533
|
"lighthouse-core/audits/autocomplete.js | columnCurrent": {
|
|
546
534
|
"message": "தற்போதைய மதிப்பு"
|
|
547
535
|
},
|
|
@@ -530,18 +530,6 @@
|
|
|
530
530
|
"lighthouse-core/audits/accessibility/video-caption.js | title": {
|
|
531
531
|
"message": "`<video>` ఎలిమెంట్లు `[kind=\"captions\"]`తో ఉన్న `<track>` ఎలిమెంట్ను కలిగి ఉన్నాయి"
|
|
532
532
|
},
|
|
533
|
-
"lighthouse-core/audits/apple-touch-icon.js | description": {
|
|
534
|
-
"message": "వినియోగదారులు హోమ్ స్క్రీన్కు ప్రోగ్రెసివ్ వెబ్ యాప్ను జోడించినప్పుడు, iOSలో ఉత్తమ ప్రదర్శన కోసం, '`apple-touch-icon`'ను నిర్వచించండి. అది తప్పనిసరిగా పారదర్శకం కాని 192px (లేదా 180px) చతురస్రాకార PNGని సూచించాలి. [మరింత తెలుసుకోండి](https://web.dev/apple-touch-icon/)."
|
|
535
|
-
},
|
|
536
|
-
"lighthouse-core/audits/apple-touch-icon.js | failureTitle": {
|
|
537
|
-
"message": "చెల్లుబాటయ్యే '`apple-touch-icon`' లేదు"
|
|
538
|
-
},
|
|
539
|
-
"lighthouse-core/audits/apple-touch-icon.js | precomposedWarning": {
|
|
540
|
-
"message": "'`apple-touch-icon-precomposed`' గడువు ముగిసింది, `apple-touch-icon`ను ప్రాధాన్యంగా తీసుకోవాలి."
|
|
541
|
-
},
|
|
542
|
-
"lighthouse-core/audits/apple-touch-icon.js | title": {
|
|
543
|
-
"message": "చెల్లుబాటు అయ్యే '`apple-touch-icon`'ను అందిస్తుంది"
|
|
544
|
-
},
|
|
545
533
|
"lighthouse-core/audits/autocomplete.js | columnCurrent": {
|
|
546
534
|
"message": "ప్రస్తుత విలువ"
|
|
547
535
|
},
|
|
@@ -530,18 +530,6 @@
|
|
|
530
530
|
"lighthouse-core/audits/accessibility/video-caption.js | title": {
|
|
531
531
|
"message": "องค์ประกอบ `<video>` มีองค์ประกอบ `<track>` ที่มี `[kind=\"captions\"]`"
|
|
532
532
|
},
|
|
533
|
-
"lighthouse-core/audits/apple-touch-icon.js | description": {
|
|
534
|
-
"message": "ให้ระบุ `apple-touch-icon` เพื่อให้ปรากฏใน iOS ได้อย่างดีที่สุดเมื่อผู้ใช้เพิ่ม Progressive Web App ลงในหน้าจอหลัก โดยต้องชี้ไปที่สี่เหลี่ยมจตุรัสแบบไม่โปร่งใสขนาด 192 พิกเซล (หรือ 180 พิกเซล) รูปแบบ PNG [ดูข้อมูลเพิ่มเติม](https://web.dev/apple-touch-icon/)"
|
|
535
|
-
},
|
|
536
|
-
"lighthouse-core/audits/apple-touch-icon.js | failureTitle": {
|
|
537
|
-
"message": "ไม่ได้ให้ `apple-touch-icon` ที่ถูกต้อง"
|
|
538
|
-
},
|
|
539
|
-
"lighthouse-core/audits/apple-touch-icon.js | precomposedWarning": {
|
|
540
|
-
"message": "`apple-touch-icon-precomposed` ไม่อัปเดต แนะนำให้ใช้ `apple-touch-icon` จะดีกว่า"
|
|
541
|
-
},
|
|
542
|
-
"lighthouse-core/audits/apple-touch-icon.js | title": {
|
|
543
|
-
"message": "มี `apple-touch-icon` ที่ถูกต้อง"
|
|
544
|
-
},
|
|
545
533
|
"lighthouse-core/audits/autocomplete.js | columnCurrent": {
|
|
546
534
|
"message": "ค่าปัจจุบัน"
|
|
547
535
|
},
|
|
@@ -530,18 +530,6 @@
|
|
|
530
530
|
"lighthouse-core/audits/accessibility/video-caption.js | title": {
|
|
531
531
|
"message": "`<video>` öğelerinde `[kind=\"captions\"]`içeren bir `<track>` öğesi bulunuyor"
|
|
532
532
|
},
|
|
533
|
-
"lighthouse-core/audits/apple-touch-icon.js | description": {
|
|
534
|
-
"message": "Kullanıcılar ana ekranlarına progresif web uygulaması eklerinde iOS'ta ideal görünüm için bir `apple-touch-icon` öğesi tanımlayın. Tanım, saydam olmayan bir 192 piksel (veya 180 piksel) kare PNG'ye götürmelidir. [Daha Fazla Bilgi](https://web.dev/apple-touch-icon/)."
|
|
535
|
-
},
|
|
536
|
-
"lighthouse-core/audits/apple-touch-icon.js | failureTitle": {
|
|
537
|
-
"message": "Geçerli bir `apple-touch-icon` öğesi içermiyor"
|
|
538
|
-
},
|
|
539
|
-
"lighthouse-core/audits/apple-touch-icon.js | precomposedWarning": {
|
|
540
|
-
"message": "`apple-touch-icon-precomposed` güncel değil; `apple-touch-icon` tercih edilir."
|
|
541
|
-
},
|
|
542
|
-
"lighthouse-core/audits/apple-touch-icon.js | title": {
|
|
543
|
-
"message": "Geçerli bir `apple-touch-icon` sunuyor"
|
|
544
|
-
},
|
|
545
533
|
"lighthouse-core/audits/autocomplete.js | columnCurrent": {
|
|
546
534
|
"message": "Mevcut Değer"
|
|
547
535
|
},
|
|
@@ -530,18 +530,6 @@
|
|
|
530
530
|
"lighthouse-core/audits/accessibility/video-caption.js | title": {
|
|
531
531
|
"message": "Елементи `<video>` містять елемент `<track>` з атрибутом `[kind=\"captions\"]`"
|
|
532
532
|
},
|
|
533
|
-
"lighthouse-core/audits/apple-touch-icon.js | description": {
|
|
534
|
-
"message": "Налаштуйте параметр `apple-touch-icon` для ідеального вигляду на пристроях iOS, коли користувачі додають прогресивний веб-додаток на головний екран. Цей параметр має вказувати на непрозоре квадратне зображення PNG розміром 192 пікс. (або 180 пікс.). [Докладніше](https://web.dev/apple-touch-icon/)."
|
|
535
|
-
},
|
|
536
|
-
"lighthouse-core/audits/apple-touch-icon.js | failureTitle": {
|
|
537
|
-
"message": "Не містить дійсного значка `apple-touch-icon`"
|
|
538
|
-
},
|
|
539
|
-
"lighthouse-core/audits/apple-touch-icon.js | precomposedWarning": {
|
|
540
|
-
"message": "Атрибут `apple-touch-icon-precomposed` застарів. Радимо використовувати `apple-touch-icon`."
|
|
541
|
-
},
|
|
542
|
-
"lighthouse-core/audits/apple-touch-icon.js | title": {
|
|
543
|
-
"message": "Містить дійсний значок `apple-touch-icon`"
|
|
544
|
-
},
|
|
545
533
|
"lighthouse-core/audits/autocomplete.js | columnCurrent": {
|
|
546
534
|
"message": "Поточне значення"
|
|
547
535
|
},
|
|
@@ -530,18 +530,6 @@
|
|
|
530
530
|
"lighthouse-core/audits/accessibility/video-caption.js | title": {
|
|
531
531
|
"message": "Các phần tử `<video>` chứa phần tử `<track>` có `[kind=\"captions\"]`"
|
|
532
532
|
},
|
|
533
|
-
"lighthouse-core/audits/apple-touch-icon.js | description": {
|
|
534
|
-
"message": "Hãy xác định `apple-touch-icon` để khi người dùng thêm một ứng dụng web tiến bộ vào màn hình chính trên iOS, biểu tượng ứng dụng sẽ hiển thị chính xác. Thuộc tính này phải trỏ đến ảnh PNG vuông có kích thước 192px (hoặc 180px) ở dạng không trong suốt. [Tìm hiểu thêm](https://web.dev/apple-touch-icon/)"
|
|
535
|
-
},
|
|
536
|
-
"lighthouse-core/audits/apple-touch-icon.js | failureTitle": {
|
|
537
|
-
"message": "Chưa cung cấp `apple-touch-icon` hợp lệ"
|
|
538
|
-
},
|
|
539
|
-
"lighthouse-core/audits/apple-touch-icon.js | precomposedWarning": {
|
|
540
|
-
"message": "`apple-touch-icon-precomposed` đã lỗi thời, nên dùng `apple-touch-icon`."
|
|
541
|
-
},
|
|
542
|
-
"lighthouse-core/audits/apple-touch-icon.js | title": {
|
|
543
|
-
"message": "Hãy cung cấp `apple-touch-icon` hợp lệ"
|
|
544
|
-
},
|
|
545
533
|
"lighthouse-core/audits/autocomplete.js | columnCurrent": {
|
|
546
534
|
"message": "Giá trị hiện tại"
|
|
547
535
|
},
|
|
@@ -530,18 +530,6 @@
|
|
|
530
530
|
"lighthouse-core/audits/accessibility/video-caption.js | title": {
|
|
531
531
|
"message": "`<video>` 元素包含帶有 `[kind=\"captions\"]` 的 `<track>` 元素"
|
|
532
532
|
},
|
|
533
|
-
"lighthouse-core/audits/apple-touch-icon.js | description": {
|
|
534
|
-
"message": "請定義 `apple-touch-icon`。這樣,當 iOS 使用者將漸進式網絡應用程式新增到主畫面時,系統才會顯示正確圖示。apple-touch-icon 必須指向大小為 192 像素 (或 180 像素) 的不透明正方形 PNG。[瞭解詳情](https://web.dev/apple-touch-icon/)。"
|
|
535
|
-
},
|
|
536
|
-
"lighthouse-core/audits/apple-touch-icon.js | failureTitle": {
|
|
537
|
-
"message": "未提供有效的 `apple-touch-icon`"
|
|
538
|
-
},
|
|
539
|
-
"lighthouse-core/audits/apple-touch-icon.js | precomposedWarning": {
|
|
540
|
-
"message": "`apple-touch-icon-precomposed` 版本過舊,建議使用 `apple-touch-icon`。"
|
|
541
|
-
},
|
|
542
|
-
"lighthouse-core/audits/apple-touch-icon.js | title": {
|
|
543
|
-
"message": "提供有效的 `apple-touch-icon`"
|
|
544
|
-
},
|
|
545
533
|
"lighthouse-core/audits/autocomplete.js | columnCurrent": {
|
|
546
534
|
"message": "目前的值"
|
|
547
535
|
},
|
|
@@ -530,18 +530,6 @@
|
|
|
530
530
|
"lighthouse-core/audits/accessibility/video-caption.js | title": {
|
|
531
531
|
"message": "`<video>` 元素包含帶有 `[kind=\"captions\"]` 的 `<track>` 元素"
|
|
532
532
|
},
|
|
533
|
-
"lighthouse-core/audits/apple-touch-icon.js | description": {
|
|
534
|
-
"message": "請定義「`apple-touch-icon`」,這樣一來,當 iOS 使用者將漸進式網頁應用程式新增到主螢幕時,系統才會顯示正確圖示。apple-touch-icon 必須指向大小為 192 像素 (或 180 像素) 的不透明正方形 PNG。[瞭解詳情](https://web.dev/apple-touch-icon/)。"
|
|
535
|
-
},
|
|
536
|
-
"lighthouse-core/audits/apple-touch-icon.js | failureTitle": {
|
|
537
|
-
"message": "未提供有效的 `apple-touch-icon`"
|
|
538
|
-
},
|
|
539
|
-
"lighthouse-core/audits/apple-touch-icon.js | precomposedWarning": {
|
|
540
|
-
"message": "`apple-touch-icon-precomposed` 版本過舊,建議使用 `apple-touch-icon`。"
|
|
541
|
-
},
|
|
542
|
-
"lighthouse-core/audits/apple-touch-icon.js | title": {
|
|
543
|
-
"message": "具備有效的 `apple-touch-icon`"
|
|
544
|
-
},
|
|
545
533
|
"lighthouse-core/audits/autocomplete.js | columnCurrent": {
|
|
546
534
|
"message": "目前的值"
|
|
547
535
|
},
|
|
@@ -530,18 +530,6 @@
|
|
|
530
530
|
"lighthouse-core/audits/accessibility/video-caption.js | title": {
|
|
531
531
|
"message": "`<video>` 元素包含带 `[kind=\"captions\"]` 的 `<track>` 元素"
|
|
532
532
|
},
|
|
533
|
-
"lighthouse-core/audits/apple-touch-icon.js | description": {
|
|
534
|
-
"message": "请定义一个 `apple-touch-icon`,以在 iOS 用户向主屏幕添加渐进式 Web 应用时获得理想的外观。它必须指向一张不透明的 192px(或 180px)方形 PNG 图片。[了解详情](https://web.dev/apple-touch-icon/)。"
|
|
535
|
-
},
|
|
536
|
-
"lighthouse-core/audits/apple-touch-icon.js | failureTitle": {
|
|
537
|
-
"message": "未提供有效的 `apple-touch-icon`"
|
|
538
|
-
},
|
|
539
|
-
"lighthouse-core/audits/apple-touch-icon.js | precomposedWarning": {
|
|
540
|
-
"message": "`apple-touch-icon-precomposed` 不是最新版本,建议使用 `apple-touch-icon`。"
|
|
541
|
-
},
|
|
542
|
-
"lighthouse-core/audits/apple-touch-icon.js | title": {
|
|
543
|
-
"message": "提供了有效的 `apple-touch-icon`"
|
|
544
|
-
},
|
|
545
533
|
"lighthouse-core/audits/autocomplete.js | columnCurrent": {
|
|
546
534
|
"message": "当前值"
|
|
547
535
|
},
|
package/types/smokehouse.d.ts
CHANGED
|
@@ -15,7 +15,7 @@ declare global {
|
|
|
15
15
|
requestedUrl: string;
|
|
16
16
|
finalUrl: string | RegExp;
|
|
17
17
|
userAgent?: string | RegExp;
|
|
18
|
-
runWarnings?:
|
|
18
|
+
runWarnings?: any;
|
|
19
19
|
runtimeError?: {
|
|
20
20
|
code?: any;
|
|
21
21
|
message?: any;
|
|
@@ -28,7 +28,7 @@ declare global {
|
|
|
28
28
|
export type ExpectedRunnerResult = {
|
|
29
29
|
lhr: ExpectedLHR,
|
|
30
30
|
artifacts?: Partial<Record<keyof Artifacts|'_maxChromiumVersion'|'_minChromiumVersion', any>>
|
|
31
|
-
networkRequests?:
|
|
31
|
+
networkRequests?: any;
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
export interface TestDfn {
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @license Copyright 2019 The Lighthouse Authors. All Rights Reserved.
|
|
3
|
-
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
|
|
4
|
-
* Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
|
|
5
|
-
*/
|
|
6
|
-
'use strict';
|
|
7
|
-
|
|
8
|
-
import {Audit} from './audit.js';
|
|
9
|
-
import * as i18n from '../lib/i18n/i18n.js';
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* @fileoverview Audits if a page has an `apple-touch-icon` link element with a valid href.
|
|
13
|
-
*/
|
|
14
|
-
|
|
15
|
-
const UIStrings = {
|
|
16
|
-
/** Title of a Lighthouse audit that tells the user that their site contains a vaild touch icon. This descriptive title is shown when the page contains a valid iOS touch icon. "apple-touch-icon" is an HTML attribute value and should not be translated. */
|
|
17
|
-
title: 'Provides a valid `apple-touch-icon`',
|
|
18
|
-
/** Title of a Lighthouse audit that tells the user that their site contains a vaild touch icon. This descriptive title is shown when the page does not contain a valid iOS touch icon. "apple-touch-icon" is an HTML attribute value and should not be translated. */
|
|
19
|
-
failureTitle: 'Does not provide a valid `apple-touch-icon`',
|
|
20
|
-
/** Description of a Lighthouse audit that tells the user that having an apple-touch-icon allows websites to include an app icon to their installed progressive web apps, similar to a native app. This is displayed after a user expands the section to see more. No character length limits. 'Learn More' becomes link text to additional documentation. "apple-touch-icon" is an HTML attribute value and should not be translated. */
|
|
21
|
-
description: 'For ideal appearance on iOS when users add a progressive web app to the home ' +
|
|
22
|
-
'screen, define an `apple-touch-icon`. It must point to a non-transparent 192px (or 180px) ' +
|
|
23
|
-
'square PNG. [Learn more about `apple-touch-icon`](https://web.dev/apple-touch-icon/).',
|
|
24
|
-
/** Warning that HTML attribute `apple-touch-icon-precomposed` should not be used in favor of `apple-touch-icon`. "apple-touch-icon-precomposed" and "apple-touch-icon" are HTML attribute values and should not be translated. */
|
|
25
|
-
precomposedWarning: '`apple-touch-icon-precomposed` is out of date; ' +
|
|
26
|
-
'`apple-touch-icon` is preferred.',
|
|
27
|
-
};
|
|
28
|
-
|
|
29
|
-
const str_ = i18n.createMessageInstanceIdFn(import.meta.url, UIStrings);
|
|
30
|
-
|
|
31
|
-
class AppleTouchIcon extends Audit {
|
|
32
|
-
/**
|
|
33
|
-
* @return {LH.Audit.Meta}
|
|
34
|
-
*/
|
|
35
|
-
static get meta() {
|
|
36
|
-
return {
|
|
37
|
-
id: 'apple-touch-icon',
|
|
38
|
-
title: str_(UIStrings.title),
|
|
39
|
-
failureTitle: str_(UIStrings.failureTitle),
|
|
40
|
-
description: str_(UIStrings.description),
|
|
41
|
-
supportedModes: ['navigation'],
|
|
42
|
-
requiredArtifacts: ['LinkElements'],
|
|
43
|
-
};
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
/**
|
|
47
|
-
* @param {LH.Artifacts} artifacts
|
|
48
|
-
* @return {LH.Audit.Product}
|
|
49
|
-
*/
|
|
50
|
-
static audit(artifacts) {
|
|
51
|
-
const appleTouchIcons = artifacts.LinkElements
|
|
52
|
-
.filter(el => el.rel === 'apple-touch-icon' || el.rel === 'apple-touch-icon-precomposed')
|
|
53
|
-
.filter(el => !!el.href);
|
|
54
|
-
|
|
55
|
-
// Audit passes if an `apple-touch-icon` exists.
|
|
56
|
-
const passed = appleTouchIcons.length !== 0;
|
|
57
|
-
|
|
58
|
-
const warnings = [];
|
|
59
|
-
if (appleTouchIcons.filter(el => el.rel === 'apple-touch-icon-precomposed').length !== 0 &&
|
|
60
|
-
appleTouchIcons.filter(el => el.rel === 'apple-touch-icon').length === 0) {
|
|
61
|
-
warnings.push(str_(UIStrings.precomposedWarning));
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
return {
|
|
65
|
-
score: passed ? 1 : 0,
|
|
66
|
-
warnings,
|
|
67
|
-
};
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
export default AppleTouchIcon;
|
|
72
|
-
export {UIStrings};
|