From 8e0eb82b2eda456fbeb4bf2028ab3ce5a300a611 Mon Sep 17 00:00:00 2001 From: ThatOneCalculator Date: Sat, 27 Aug 2022 21:42:38 -0700 Subject: [PATCH] =?UTF-8?q?feat:=20=E2=9C=A8=20improve=20pwa=20manifest?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/backend/assets/screenshots/1.webp | 3 ++ packages/backend/assets/screenshots/2.webp | 3 ++ packages/backend/src/server/web/manifest.json | 30 ++++++++++++++++++- 3 files changed, 35 insertions(+), 1 deletion(-) create mode 100644 packages/backend/assets/screenshots/1.webp create mode 100644 packages/backend/assets/screenshots/2.webp diff --git a/packages/backend/assets/screenshots/1.webp b/packages/backend/assets/screenshots/1.webp new file mode 100644 index 000000000..83d59a6e0 --- /dev/null +++ b/packages/backend/assets/screenshots/1.webp @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3e8f30c4cea205ae8c93524f08a937e33b4177f01e741b761fb99e5c0b4b5469 +size 42328 diff --git a/packages/backend/assets/screenshots/2.webp b/packages/backend/assets/screenshots/2.webp new file mode 100644 index 000000000..bc2b6ced9 --- /dev/null +++ b/packages/backend/assets/screenshots/2.webp @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4015c8837179d2c3ed44f2cadd9da0279124df35d9d4574dbc9428cc77b72421 +size 28696 diff --git a/packages/backend/src/server/web/manifest.json b/packages/backend/src/server/web/manifest.json index 4106e91fc..da61f63b7 100644 --- a/packages/backend/src/server/web/manifest.json +++ b/packages/backend/src/server/web/manifest.json @@ -5,6 +5,7 @@ "display": "standalone", "background_color": "#6e6a86", "theme_color": "#31748f", + "orientation": "portrait-primary", "icons": [ { "src": "/static-assets/icons/192.png", @@ -24,5 +25,32 @@ "text": "text", "url": "url" } - } + }, + "screenshots" : [ + { + "src": "/static-assets/screenshots/1.webp", + "sizes": "1195x579", + "type": "image/webp", + "platform": "narrow", + "label": "Profile page" + }, + { + "src": "/static-assets/screenshots/2.webp", + "sizes": "1280x720", + "type": "image/webp", + "platform": "narrow", + "label": "Posts" + } + ], + "shortcuts" : [ + { + "name": "Notifications", + "short_name": "Notifs", + "url": "/my/notifications" + }, + { + "name": "Chats", + "url": "/my/messaging" + } + ] }