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

pull/1528/head
TheCatLady 4 years ago committed by GitHub
parent 26ddc03b2c
commit e1dc62b0a5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

@ -4,25 +4,25 @@
"start_url": "./", "start_url": "./",
"icons": [ "icons": [
{ {
"src": "/android-chrome-192x192.png", "src": "./android-chrome-192x192.png",
"sizes": "192x192", "sizes": "192x192",
"type": "image/png", "type": "image/png",
"purpose": "any" "purpose": "any"
}, },
{ {
"src": "/android-chrome-192x192_maskable.png", "src": "./android-chrome-192x192_maskable.png",
"sizes": "192x192", "sizes": "192x192",
"type": "image/png", "type": "image/png",
"purpose": "maskable" "purpose": "maskable"
}, },
{ {
"src": "/android-chrome-512x512.png", "src": "./android-chrome-512x512.png",
"sizes": "512x512", "sizes": "512x512",
"type": "image/png", "type": "image/png",
"purpose": "any" "purpose": "any"
}, },
{ {
"src": "/android-chrome-512x512_maskable.png", "src": "./android-chrome-512x512_maskable.png",
"sizes": "512x512", "sizes": "512x512",
"type": "image/png", "type": "image/png",
"purpose": "maskable" "purpose": "maskable"
@ -32,12 +32,23 @@
"background_color": "#1f2937", "background_color": "#1f2937",
"display": "standalone", "display": "standalone",
"shortcuts": [ "shortcuts": [
{
"name": "Discover",
"url": "./",
"icons": [
{
"src": "./sparkles-icon-192x192.png",
"sizes": "192x192",
"type": "image/png"
}
]
},
{ {
"name": "Requests", "name": "Requests",
"url": "/requests", "url": "./requests",
"icons": [ "icons": [
{ {
"src": "/clock-icon-192x192.png", "src": "./clock-icon-192x192.png",
"sizes": "192x192", "sizes": "192x192",
"type": "image/png" "type": "image/png"
} }
@ -45,10 +56,10 @@
}, },
{ {
"name": "Profile", "name": "Profile",
"url": "/profile", "url": "./profile",
"icons": [ "icons": [
{ {
"src": "/users-icon-192x192.png", "src": "./user-icon-192x192.png",
"sizes": "192x192", "sizes": "192x192",
"type": "image/png" "type": "image/png"
} }
@ -56,10 +67,10 @@
}, },
{ {
"name": "Settings", "name": "Settings",
"url": "/profile/settings", "url": "./profile/settings",
"icons": [ "icons": [
{ {
"src": "/cog-icon-192x192.png", "src": "./cog-icon-192x192.png",
"sizes": "192x192", "sizes": "192x192",
"type": "image/png" "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

Loading…
Cancel
Save