Merge branch 'show-browser-not-supported-message' into 'master'

Display a message to inform the user to download and install an older version...

See merge request openlp/web-remote!76
This commit is contained in:
Raoul Snyman 2024-02-27 22:04:40 +00:00
commit a5753112af
4 changed files with 752 additions and 833 deletions

View File

@ -23,16 +23,16 @@
"lint": "ng lint"
},
"dependencies": {
"@angular/animations": "^17.1.3",
"@angular/cdk": "^17.1.2",
"@angular/common": "^17.1.3",
"@angular/compiler": "^17.1.3",
"@angular/core": "^17.1.3",
"@angular/forms": "^17.1.3",
"@angular/material": "^17.1.2",
"@angular/platform-browser": "^17.1.3",
"@angular/platform-browser-dynamic": "^17.1.3",
"@angular/router": "^17.1.3",
"@angular/animations": "^17.2.1",
"@angular/cdk": "^17.2.1",
"@angular/common": "^17.2.1",
"@angular/compiler": "^17.2.1",
"@angular/core": "^17.2.1",
"@angular/forms": "^17.2.1",
"@angular/material": "^17.2.1",
"@angular/platform-browser": "^17.2.1",
"@angular/platform-browser-dynamic": "^17.2.1",
"@angular/router": "^17.2.1",
"@fontsource/roboto": "^5.0.8",
"core-js": "^3.35.1",
"hammerjs": "^2.0.8",
@ -41,15 +41,15 @@
"zone.js": "^0.14.3"
},
"devDependencies": {
"@angular-devkit/build-angular": "^17.1.3",
"@angular-eslint/builder": "^17.1.3",
"@angular-eslint/eslint-plugin": "^17.1.3",
"@angular-eslint/eslint-plugin-template": "^17.1.3",
"@angular-eslint/schematics": "^17.1.3",
"@angular-eslint/template-parser": "^17.1.3",
"@angular/cli": "~17.1.3",
"@angular/compiler-cli": "^17.1.3",
"@angular/language-service": "^17.1.3",
"@angular-devkit/build-angular": "^17.2.1",
"@angular-eslint/builder": "^17.2.1",
"@angular-eslint/eslint-plugin": "^17.2.1",
"@angular-eslint/eslint-plugin-template": "^17.2.1",
"@angular-eslint/schematics": "^17.2.1",
"@angular-eslint/template-parser": "^17.2.1",
"@angular/cli": "~17.2.1",
"@angular/compiler-cli": "^17.2.1",
"@angular/language-service": "^17.2.1",
"@chiragrupani/karma-chromium-edge-launcher": "^2.3.1",
"@types/jasmine": "~5.1.4",
"@types/jasminewd2": "~2.0.13",

View File

@ -0,0 +1,25 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>OpenLP Remote</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" type="image/x-icon" href="favicon.ico">
<style>
body {
font-family: sans-serif;
}
</style>
</head>
<body>
<div>
<p>
Your browser is NOT supported.
</p>
<p>
Please download and install an older version of Web Remote from <a href="https://get.openlp.org/remote/">here</a>.
</p>
</div>
</body>
</html>

View File

@ -1,6 +1,5 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>OpenLP Remote</title>
@ -11,6 +10,11 @@
</head>
<body>
<script type="text/javascript">
if (!(/Edge?\/(1{2}[2-9]|1[2-9]\d|[2-9]\d{2}|\d{4,})\.\d+(\.\d+|)|Firefox\/(1{2}[3-9]|1[2-9]\d|[2-9]\d{2}|\d{4,})\.\d+(\.\d+|)|Chrom(ium|e)\/(1{2}[2-9]|1[2-9]\d|[2-9]\d{2}|\d{4,})\.\d+(\.\d+|)|(Maci|X1{2}).+ Version\/(16\.\d+|(1[7-9]|[2-9]\d|\d{3,})\.\d+)([,.]\d+|)( \(\w+\)|)( Mobile\/\w+|) Safari\/|(CPU[ +]OS|iPhone[ +]OS|CPU[ +]iPhone|CPU IPhone OS|CPU iPad OS)[ +]+(16[._]\d+|(1[7-9]|[2-9]\d|\d{3,})[._]\d+)([._]\d+|)/.test(navigator.userAgent))) {
window.location.replace("/assets/notsupported.html");
}
</script>
<app-root>
<div style="margin-top: 80px;">
<div class="preloader">

1484
yarn.lock

File diff suppressed because it is too large Load Diff