From fe5e71a4e50e0602907489da8c11e6965b0fb3b4 Mon Sep 17 00:00:00 2001 From: Thomas Steiner Date: Thu, 16 Apr 2020 14:23:39 +0200 Subject: [PATCH] Add PWACompat (#1433) * Add PWACompat (attempt) Fixes #1425 * Fix CSS, use custom splash screen font * Respect bottom safe area --- package-lock.json | 5 ++ package.json | 1 + public/index.html | 63 ++---------------- public/splashscreen_images/ipad_splash.png | Bin 22400 -> 0 bytes .../splashscreen_images/ipadpro1_splash.png | Bin 25134 -> 0 bytes .../splashscreen_images/ipadpro2_splash.png | Bin 34073 -> 0 bytes .../splashscreen_images/ipadpro3_splash.png | Bin 26592 -> 0 bytes public/splashscreen_images/iphone5_splash.png | Bin 10227 -> 0 bytes public/splashscreen_images/iphone6_splash.png | Bin 11941 -> 0 bytes .../splashscreen_images/iphoneplus_splash.png | Bin 21111 -> 0 bytes public/splashscreen_images/iphonex_splash.png | Bin 23144 -> 0 bytes .../splashscreen_images/iphonexr_splash.png | Bin 14686 -> 0 bytes .../iphonexsmax_splash.png | Bin 24487 -> 0 bytes src/css/styles.scss | 24 ++++--- src/index.tsx | 7 ++ src/pwacompat.d.ts | 1 + 16 files changed, 37 insertions(+), 64 deletions(-) delete mode 100644 public/splashscreen_images/ipad_splash.png delete mode 100644 public/splashscreen_images/ipadpro1_splash.png delete mode 100644 public/splashscreen_images/ipadpro2_splash.png delete mode 100644 public/splashscreen_images/ipadpro3_splash.png delete mode 100644 public/splashscreen_images/iphone5_splash.png delete mode 100644 public/splashscreen_images/iphone6_splash.png delete mode 100644 public/splashscreen_images/iphoneplus_splash.png delete mode 100644 public/splashscreen_images/iphonex_splash.png delete mode 100644 public/splashscreen_images/iphonexr_splash.png delete mode 100644 public/splashscreen_images/iphonexsmax_splash.png create mode 100644 src/pwacompat.d.ts diff --git a/package-lock.json b/package-lock.json index a4a7e21e..0076dfaf 100644 --- a/package-lock.json +++ b/package-lock.json @@ -15719,6 +15719,11 @@ "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz", "integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==" }, + "pwacompat": { + "version": "2.0.11", + "resolved": "https://registry.npmjs.org/pwacompat/-/pwacompat-2.0.11.tgz", + "integrity": "sha512-fKm/aQg6P+aw0X7JQQOJqCK37wUJYAXrRuGD1jpRfbBWlofg5npkM22kEPPxjw4K10T031BJRgO2+ZwRETy1dQ==" + }, "q": { "version": "1.5.1", "resolved": "https://registry.npmjs.org/q/-/q-1.5.1.tgz", diff --git a/package.json b/package.json index 55a4a102..bd6a67c3 100644 --- a/package.json +++ b/package.json @@ -25,6 +25,7 @@ "i18next-browser-languagedetector": "4.0.2", "nanoid": "2.1.11", "open-color": "1.7.0", + "pwacompat": "2.0.11", "react": "16.13.1", "react-dom": "16.13.1", "react-scripts": "3.4.1", diff --git a/public/index.html b/public/index.html index 5d949bdc..1ab44ea7 100644 --- a/public/index.html +++ b/public/index.html @@ -8,11 +8,10 @@ content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no, viewport-fit=cover, shrink-to-fit=no" /> - - - - + + + - - - @@ -92,57 +88,12 @@ crossorigin="anonymous" /> - - - - - - - - - - +