fix(pwa): add Discover shortcut and fix/optimize icons (#1525)

This commit is contained in:
TheCatLady
2021-04-28 04:42:33 -04:00
committed by GitHub
parent 26ddc03b2c
commit e1dc62b0a5
6 changed files with 22 additions and 11 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.1 KiB

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.4 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

View File

@@ -4,25 +4,25 @@
"start_url": "./",
"icons": [
{
"src": "/android-chrome-192x192.png",
"src": "./android-chrome-192x192.png",
"sizes": "192x192",
"type": "image/png",
"purpose": "any"
},
{
"src": "/android-chrome-192x192_maskable.png",
"src": "./android-chrome-192x192_maskable.png",
"sizes": "192x192",
"type": "image/png",
"purpose": "maskable"
},
{
"src": "/android-chrome-512x512.png",
"src": "./android-chrome-512x512.png",
"sizes": "512x512",
"type": "image/png",
"purpose": "any"
},
{
"src": "/android-chrome-512x512_maskable.png",
"src": "./android-chrome-512x512_maskable.png",
"sizes": "512x512",
"type": "image/png",
"purpose": "maskable"
@@ -33,11 +33,22 @@
"display": "standalone",
"shortcuts": [
{
"name": "Requests",
"url": "/requests",
"name": "Discover",
"url": "./",
"icons": [
{
"src": "/clock-icon-192x192.png",
"src": "./sparkles-icon-192x192.png",
"sizes": "192x192",
"type": "image/png"
}
]
},
{
"name": "Requests",
"url": "./requests",
"icons": [
{
"src": "./clock-icon-192x192.png",
"sizes": "192x192",
"type": "image/png"
}
@@ -45,10 +56,10 @@
},
{
"name": "Profile",
"url": "/profile",
"url": "./profile",
"icons": [
{
"src": "/users-icon-192x192.png",
"src": "./user-icon-192x192.png",
"sizes": "192x192",
"type": "image/png"
}
@@ -56,10 +67,10 @@
},
{
"name": "Settings",
"url": "/profile/settings",
"url": "./profile/settings",
"icons": [
{
"src": "/cog-icon-192x192.png",
"src": "./cog-icon-192x192.png",
"sizes": "192x192",
"type": "image/png"
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.3 KiB