From e09a5af1f8717eb4398535cf04eeacfb9846fd2d Mon Sep 17 00:00:00 2001 From: cinyecai Date: Tue, 5 Nov 2024 09:50:27 -0500 Subject: [PATCH 1/4] Unsupported browser banner --- package-lock.json | 47 +++++++++++++++++++++++++++++++++ package.json | 1 + public/index.html | 1 + src/index.tsx | 1 + src/outdated-browser-message.js | 30 +++++++++++++++++++++ 5 files changed, 80 insertions(+) create mode 100644 src/outdated-browser-message.js diff --git a/package-lock.json b/package-lock.json index 748a25d6c..bfec433cc 100644 --- a/package-lock.json +++ b/package-lock.json @@ -26,6 +26,7 @@ "moment": "2.30.1", "noty": "3.2.0-beta", "oidc-client-ts": "3.1.0", + "outdated-browser-rework": "^3.0.1", "query-string": "9.1.1", "react": "18.3.1", "react-dom": "18.3.1", @@ -16301,6 +16302,14 @@ "integrity": "sha512-o6E5qJV5zkAbIDNhGSIlyOhScKXgQrSRMilfph0clDfM0nEnBOlKlH4sWDmG95BW/CvwNz0vmm7dJVtU2KlMiA==", "dev": true }, + "node_modules/outdated-browser-rework": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/outdated-browser-rework/-/outdated-browser-rework-3.0.1.tgz", + "integrity": "sha512-IihV162fBItDBfRI8yNq/+I8qkuKofV8m8s0YCP8ZXaeTjPPBXO6QsbPLckwBUoqe4ZNIHfgj0PaNBHVYKxeaw==", + "dependencies": { + "ua-parser-js": "^0.7.22" + } + }, "node_modules/p-limit": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", @@ -21549,6 +21558,31 @@ "node": ">=10" } }, + "node_modules/ua-parser-js": { + "version": "0.7.39", + "resolved": "https://registry.npmjs.org/ua-parser-js/-/ua-parser-js-0.7.39.tgz", + "integrity": "sha512-IZ6acm6RhQHNibSt7+c09hhvsKy9WUr4DVbeq9U8o71qxyYtJpQeDxQnMrVqnIFMLcQjHO0I9wgfO2vIahht4w==", + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/ua-parser-js" + }, + { + "type": "paypal", + "url": "https://paypal.me/faisalman" + }, + { + "type": "github", + "url": "https://github.com/sponsors/faisalman" + } + ], + "bin": { + "ua-parser-js": "script/cli.js" + }, + "engines": { + "node": "*" + } + }, "node_modules/unbox-primitive": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/unbox-primitive/-/unbox-primitive-1.0.2.tgz", @@ -34728,6 +34762,14 @@ "integrity": "sha512-o6E5qJV5zkAbIDNhGSIlyOhScKXgQrSRMilfph0clDfM0nEnBOlKlH4sWDmG95BW/CvwNz0vmm7dJVtU2KlMiA==", "dev": true }, + "outdated-browser-rework": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/outdated-browser-rework/-/outdated-browser-rework-3.0.1.tgz", + "integrity": "sha512-IihV162fBItDBfRI8yNq/+I8qkuKofV8m8s0YCP8ZXaeTjPPBXO6QsbPLckwBUoqe4ZNIHfgj0PaNBHVYKxeaw==", + "requires": { + "ua-parser-js": "^0.7.22" + } + }, "p-limit": { "version": "3.1.0", "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-3.1.0.tgz", @@ -38436,6 +38478,11 @@ } } }, + "ua-parser-js": { + "version": "0.7.39", + "resolved": "https://registry.npmjs.org/ua-parser-js/-/ua-parser-js-0.7.39.tgz", + "integrity": "sha512-IZ6acm6RhQHNibSt7+c09hhvsKy9WUr4DVbeq9U8o71qxyYtJpQeDxQnMrVqnIFMLcQjHO0I9wgfO2vIahht4w==" + }, "unbox-primitive": { "version": "1.0.2", "resolved": "https://registry.npmjs.org/unbox-primitive/-/unbox-primitive-1.0.2.tgz", diff --git a/package.json b/package.json index f68723d3e..09114d53d 100644 --- a/package.json +++ b/package.json @@ -21,6 +21,7 @@ "moment": "2.30.1", "noty": "3.2.0-beta", "oidc-client-ts": "3.1.0", + "outdated-browser-rework": "^3.0.1", "query-string": "9.1.1", "react": "18.3.1", "react-dom": "18.3.1", diff --git a/public/index.html b/public/index.html index b5fcc0215..c810e47d0 100644 --- a/public/index.html +++ b/public/index.html @@ -40,6 +40,7 @@ You need to enable JavaScript to run this app.
+