feat: add screenshots/categories to web app manifest (#1993)

* feat: add screenshots/categories to web app manifest

fixes #1971

* fix: whoops forgot the screenshots
avoid-db-import
Nolan Lawson 2021-03-14 13:39:11 -07:00 zatwierdzone przez GitHub
rodzic 5e7440aaee
commit cf0f1d884a
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
5 zmienionych plików z 21 dodań i 0 usunięć

Wyświetl plik

@ -33,6 +33,7 @@ const assets = __assets__
.filter(filename => !filename.includes('traineddata.gz')) // cache on-demand .filter(filename => !filename.includes('traineddata.gz')) // cache on-demand
.filter(filename => !filename.endsWith('.webapp')) // KaiOS manifest .filter(filename => !filename.endsWith('.webapp')) // KaiOS manifest
.filter(filename => !/emoji-.*?\.json$/.test(filename)) // useless to cache; it already goes in IndexedDB .filter(filename => !/emoji-.*?\.json$/.test(filename)) // useless to cache; it already goes in IndexedDB
.filter(filename => !/screenshot-.*?\.png/.test(filename)) // only used during PWA installation, don't bother caching
// `shell` is an array of all the files generated by webpack // `shell` is an array of all the files generated by webpack
// also contains '/index.html' for some reason // also contains '/index.html' for some reason

Wyświetl plik

@ -4,6 +4,9 @@
"name": "Pinafore for Mastodon", "name": "Pinafore for Mastodon",
"short_name": "Pinafore", "short_name": "Pinafore",
"description": "Alternative web client for Mastodon, focused on speed and simplicity.", "description": "Alternative web client for Mastodon, focused on speed and simplicity.",
"categories": [
"social"
],
"display": "standalone", "display": "standalone",
"start_url": "/?pwa=true", "start_url": "/?pwa=true",
"share_target": { "share_target": {
@ -108,5 +111,22 @@
"type": "image/png", "type": "image/png",
"purpose": "maskable" "purpose": "maskable"
} }
],
"screenshots": [
{
"src": "screenshot-540-720-1.png",
"type": "image/png",
"sizes": "540x720"
},
{
"src": "screenshot-540-720-2.png",
"type": "image/jpeg",
"sizes": "540x720"
},
{
"src": "screenshot-540-720-3.png",
"type": "image/jpeg",
"sizes": "540x720"
}
] ]
} }

Plik binarny nie jest wyświetlany.

Po

Szerokość:  |  Wysokość:  |  Rozmiar: 197 KiB

Plik binarny nie jest wyświetlany.

Po

Szerokość:  |  Wysokość:  |  Rozmiar: 341 KiB

Plik binarny nie jest wyświetlany.

Po

Szerokość:  |  Wysokość:  |  Rozmiar: 90 KiB