Skip to content

Commit

Permalink
refactor: update web files
Browse files Browse the repository at this point in the history
  • Loading branch information
Vinzent03 committed Jan 19, 2023
1 parent 94c9894 commit c2956a4
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 24 deletions.
File renamed without changes
57 changes: 36 additions & 21 deletions web/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,45 +2,60 @@
<html>

<head>
<!--
If you are serving your web app in a path other than the root, change the
href value below to reflect the base path you are serving from.
The path provided below has to start and end with a slash "/" in order for
it to work correctly.
For more details:
* https://developer.mozilla.org/en-US/docs/Web/HTML/Element/base
This is a placeholder for base href that will be replaced by the value of
the `--base-href` argument provided to `flutter build`.
-->
<base href="$FLUTTER_BASE_HREF">

<meta charset="UTF-8">
<meta content="IE=Edge" http-equiv="X-UA-Compatible">
<meta name="description" content="Vertretungs App für das WHG">

<!-- iOS meta tags & icons -->
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="apple-mobile-web-app-title" content="Vertretung">
<link rel="apple-touch-icon" href="icon.png">
<meta name="apple-mobile-web-app-title" content="vertretung_whg">
<link rel="apple-touch-icon" href="icons/Icon-192.png">

<!-- Favicon -->
<link rel="icon" type="image/png" href="icon.png" />
<link rel="icon" type="image/png" href="favicon.png" />

<title>Vertretung</title>
<link rel="manifest" href="manifest.json">
<base href="/">

<script>
// The value below is injected by flutter build, do not touch.
var serviceWorkerVersion = null;
</script>
<!-- This script adds the flutter initialization JS code -->
<script src="flutter.js" defer></script>
</head>

<body>
<!-- This script installs service_worker.js to provide PWA functionality to
application. For more information, see:
https://developers.google.com/web/fundamentals/primers/service-workers -->
<script>
if ('serviceWorker' in navigator) {
window.addEventListener('load', function () {
navigator.serviceWorker.register('flutter_service_worker.js');
window.addEventListener('load', function (ev) {
// Download main.dart.js
_flutter.loader.loadEntrypoint({
serviceWorker: {
serviceWorkerVersion: serviceWorkerVersion,
}
}).then(function (engineInitializer) {
return engineInitializer.initializeEngine();
}).then(function (appRunner) {
return appRunner.runApp();
});
}
});
</script>
<script src="https://www.gstatic.com/firebasejs/8.10.0/firebase-app.js"></script>
<script src="https://www.gstatic.com/firebasejs/8.10.0/firebase-firestore.js"></script>
<script src="https://www.gstatic.com/firebasejs/8.10.0/firebase-analytics.js"></script>
<script src="https://www.gstatic.com/firebasejs/8.10.0/firebase-auth.js"></script>
<script src="https://www.gstatic.com/firebasejs/8.10.0/firebase-functions.js"></script>
<script src="https://www.gstatic.com/firebasejs/8.10.0/firebase-messaging.js"></script>
<script src="https://www.gstatic.com/firebasejs/8.10.0/firebase-remote-config.js"></script>
<script type="text/javascript" src="firebaseConfig.js"></script>

<script src="main.dart.js" type="application/javascript"></script>
</body>

</html>
6 changes: 3 additions & 3 deletions web/manifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Vertretung",
"short_name": "vertretung",
"short_name": "Vertretung",
"start_url": ".",
"display": "standalone",
"background_color": "#0175C2",
Expand All @@ -10,9 +10,9 @@
"prefer_related_applications": false,
"icons": [
{
"src": "icon.png",
"src": "favicon.png",
"sizes": "192x192",
"type": "image/png"
}
]
}
}

0 comments on commit c2956a4

Please sign in to comment.