This commit is contained in:
Ricardo (XenGi) Band 2025-08-15 18:15:05 +02:00
commit 61758e1dc7
No known key found for this signature in database
9 changed files with 45 additions and 33 deletions

BIN
favicon.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 177 KiB

BIN
favicon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 59 KiB

BIN
img/apple-touch-icon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

BIN
img/favicon-96x96.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.9 KiB

1
img/favicon.svg Normal file

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 16 KiB

View file

@ -29,15 +29,16 @@
<meta name="twitter:image:alt" content="Guy in a blue suit and cape presenting a smartphone showing a QR code pointing to the BezahlBrudi webapp" /> <meta name="twitter:image:alt" content="Guy in a blue suit and cape presenting a smartphone showing a QR code pointing to the BezahlBrudi webapp" />
<!-- icons and color --> <!-- icons and color -->
<meta name="theme-color" content="#ff0000"> <meta name="theme-color" content="#000000">
<meta name="theme-scheme" content="dark light"> <meta name="theme-scheme" content="dark light">
<link rel="icon" type="image/png" sizes="96x96" href="/img/favicon-96x96.png"> <link rel="icon" type="image/png" sizes="96x96" href="/img/favicon-96x96.png">
<link rel="icon" type="image/svg+xml" sizes="any" href="/img/favicon.svg"> <link rel="icon" type="image/svg+xml" sizes="any" href="/img/favicon.svg">
<link rel="apple-touch-icon" sizes="180x180" href="/img/apple-touch-icon.png"> <link rel="apple-touch-icon" sizes="180x180" href="/img/apple-touch-icon.png">
<link rel="shortcut icon" href="/favicon.ico"> <link rel="shortcut icon" href="/favicon.ico"> -->
<!-- PWA -->
<link rel="manifest" href="/site.webmanifest"> <link rel="manifest" href="/site.webmanifest">
<title>BezahlBrudi</title> <title>🦸 BezahlBrudi</title>
<style> <style>
/* Chrome, Safari, Edge, Opera */ /* Chrome, Safari, Edge, Opera */
@ -51,6 +52,9 @@
input[type=number] { input[type=number] {
-moz-appearance: textfield; -moz-appearance: textfield;
} }
div#qr-code canvas {
max-width: 100%;
}
</style> </style>
<link rel="stylesheet" href="css/bulma.min.css"> <link rel="stylesheet" href="css/bulma.min.css">
<script src="js/qr-creator.min.js"></script> <script src="js/qr-creator.min.js"></script>
@ -130,7 +134,7 @@
<footer class="footer"> <footer class="footer">
<div class="content has-text-centered"> <div class="content has-text-centered">
<p> <p>
<strong>BezahlBrudi v1.0.6</strong> by <a href="https://xengi.de">XenGi</a>. <strong>BezahlBrudi v1.1.0</strong> by <a href="https://xengi.de">XenGi</a>.
The source code is licensed <a href="https://opensource.org/license/mit">MIT</a>. Find the source code on <a href="https://gitlab.com/xengi/bezahlbrudi/">GitLab</a>. The source code is licensed <a href="https://opensource.org/license/mit">MIT</a>. Find the source code on <a href="https://gitlab.com/xengi/bezahlbrudi/">GitLab</a>.
<br/> <br/>
This site doesn't store any data outside your browser. This site doesn't provide any financial services. It is a simple QR code generator. This site doesn't store any data outside your browser. This site doesn't provide any financial services. It is a simple QR code generator.

View file

@ -255,7 +255,7 @@ validatePurpose(document.querySelector("#purpose input"));
// generate qr code on first visit // generate qr code on first visit
regenerate(); regenerate();
if ('serviceWorker' in navigator) { if ("serviceWorker" in navigator) {
navigator.serviceWorker.register('/js/service-worker.js'); navigator.serviceWorker.register("/js/service-worker.js");
} }

View file

@ -1,24 +1,26 @@
self.addEventListener('install', event => { /*
event.waitUntil( const cacheName = "cache";
caches.open('app-cache').then(cache => { const precachedResources = [
return cache.addAll([ '/',
'/', '/index.html',
'/index.html', '/css/bulma.min.css',
'/css/bulma.min.css', '/js/index.js',
'/js/index.js', '/js/qr-creator.min.js',
'/js/qr-creator.min.js', '/img/icon-192.png',
'/img/icon-192.png', '/img/icon-512.png'
'/img/icon-512.png' ];
]);
}) async function precache() {
); const cache = await caches.open(cacheName);
return cache.addAll(precachedResources);
}
self.addEventListener("install", (event) => {
event.waitUntil(precache());
}); });
*/
self.addEventListener('fetch', event => { self.addEventListener("fetch", event => {
event.respondWith( event.respondWith(fetch(event.request));
caches.match(event.request).then(response => {
return response || fetch(event.request);
})
);
}); });

View file

@ -1,21 +1,26 @@
{ {
"name": "BezahlBrudi", "id": "https://bezahlbrudi.jetzt",
"short_name": "BezahlBrudi", "scope": "https://bezahlbrudi.jetzt",
"name": "🦸 BezahlBrudi",
"short_name": "🦸 BB",
"description": "Webapp that generates GiroCodes so that you can easily exchange money with friends and family without involving third party financial services",
"categories": ["finance", "utilities"],
"start_url": "/",
"icons": [ "icons": [
{ {
"src": "/img/web-app-manifest-192x192.png", "src": "/img/icon-192.png",
"sizes": "192x192", "sizes": "192x192",
"type": "image/png", "type": "image/png",
"purpose": "maskable" "purpose": "maskable"
}, },
{ {
"src": "/img/web-app-manifest-512x512.png", "src": "/img/icon-512.png",
"sizes": "512x512", "sizes": "512x512",
"type": "image/png", "type": "image/png",
"purpose": "maskable" "purpose": "maskable"
} }
], ],
"theme_color": "#ffffff", "theme_color": "#111111",
"background_color": "#ffffff", "background_color": "#000000",
"display": "standalone" "display": "fullscreen"
} }