Fix 404 errors: Move favicon files to static directory and update all references

This commit is contained in:
2025-07-25 13:19:12 +02:00
parent 8f8c5f42ca
commit 5867e3eeb7
7 changed files with 8 additions and 8 deletions

View File

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 1.4 KiB

View File

Before

Width:  |  Height:  |  Size: 14 KiB

After

Width:  |  Height:  |  Size: 14 KiB

View File

Before

Width:  |  Height:  |  Size: 472 B

After

Width:  |  Height:  |  Size: 472 B

View File

@@ -7,8 +7,8 @@
"theme_color": "#2563eb", "theme_color": "#2563eb",
"description": "Open Source Web-App für Kalender- und Datumsberechnungen.", "description": "Open Source Web-App für Kalender- und Datumsberechnungen.",
"icons": [ "icons": [
{ "src": "/favicon.png", "sizes": "32x32", "type": "image/png" }, { "src": "/static/favicon.png", "sizes": "32x32", "type": "image/png" },
{ "src": "/favicon.ico", "sizes": "48x48 64x64 128x128 256x256", "type": "image/x-icon" }, { "src": "/static/favicon.ico", "sizes": "48x48 64x64 128x128 256x256", "type": "image/x-icon" },
{ "src": "/static/logo.svg", "sizes": "any", "type": "image/svg+xml" } { "src": "/static/logo.svg", "sizes": "any", "type": "image/svg+xml" }
] ]
} }

View File

@@ -2,9 +2,9 @@ const CACHE_NAME = 'datumsrechner-cache-v1';
const urlsToCache = [ const urlsToCache = [
'/', '/',
'/static/style.css', '/static/style.css',
'/favicon.ico', '/static/favicon.ico',
'/favicon.png', '/static/favicon.png',
'/logo.svg', '/static/logo.svg',
]; ];
self.addEventListener('install', event => { self.addEventListener('install', event => {
event.waitUntil( event.waitUntil(

View File

@@ -25,7 +25,7 @@
<meta http-equiv="x-ua-compatible" content="IE=edge"> <meta http-equiv="x-ua-compatible" content="IE=edge">
<meta name="application-name" content="Elpatrons Datumsrechner"> <meta name="application-name" content="Elpatrons Datumsrechner">
<meta name="msapplication-TileColor" content="#2563eb"> <meta name="msapplication-TileColor" content="#2563eb">
<link rel="icon" type="image/x-icon" href="/favicon.ico"> <link rel="icon" type="image/x-icon" href="/static/favicon.ico">
<link rel="stylesheet" href="/static/style.css"> <link rel="stylesheet" href="/static/style.css">
<link rel="manifest" href="/static/manifest.json"> <link rel="manifest" href="/static/manifest.json">
<meta name="theme-color" content="#2563eb"> <meta name="theme-color" content="#2563eb">

View File

@@ -3,7 +3,7 @@
<head> <head>
<meta charset="UTF-8"> <meta charset="UTF-8">
<title>API-Dokumentation Swagger UI</title> <title>API-Dokumentation Swagger UI</title>
<link rel="stylesheet" href="https://unpkg.com/swagger-ui-dist/swagger-ui.css"> <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/swagger-ui-dist@5.9.0/swagger-ui.css">
<style> <style>
body { margin: 0; background: #f8fafc; } body { margin: 0; background: #f8fafc; }
#swagger-ui { max-width: 900px; margin: 2em auto; background: #fff; border-radius: 12px; box-shadow: 0 2px 8px rgba(30,41,59,0.07); } #swagger-ui { max-width: 900px; margin: 2em auto; background: #fff; border-radius: 12px; box-shadow: 0 2px 8px rgba(30,41,59,0.07); }
@@ -11,7 +11,7 @@
</head> </head>
<body> <body>
<div id="swagger-ui"></div> <div id="swagger-ui"></div>
<script src="https://unpkg.com/swagger-ui-dist/swagger-ui-bundle.js"></script> <script src="https://cdn.jsdelivr.net/npm/swagger-ui-dist@5.9.0/swagger-ui-bundle.js"></script>
<script> <script>
window.onload = function() { window.onload = function() {
SwaggerUIBundle({ SwaggerUIBundle({