diff --git a/app/UI/@layout.latte b/app/UI/@layout.latte index 3a47c72..7ac53cd 100644 --- a/app/UI/@layout.latte +++ b/app/UI/@layout.latte @@ -4,6 +4,14 @@ Kufřík + + + + + + + + @@ -283,5 +291,10 @@ + \ No newline at end of file diff --git a/www/.htaccess b/www/.htaccess index 199409c..cb85d23 100644 --- a/www/.htaccess +++ b/www/.htaccess @@ -3,6 +3,9 @@ # Allow access to all resources by default Require all granted +# PWA manifest +AddType application/manifest+json .webmanifest + # Disable directory listing for security reasons Options -Indexes diff --git a/www/favicon.ico b/www/favicon.ico index b20cfd0..77d0c8e 100644 Binary files a/www/favicon.ico and b/www/favicon.ico differ diff --git a/www/manifest.webmanifest b/www/manifest.webmanifest new file mode 100644 index 0000000..6e2c983 --- /dev/null +++ b/www/manifest.webmanifest @@ -0,0 +1,39 @@ +{ + "id": "https://kufrik.kmetix.cz/", + "name": "Kufřík", + "short_name": "Kufřík", + "description": "Fakturační systém Kufřík", + "lang": "cs", + "start_url": "./", + "scope": "./", + "display": "standalone", + "orientation": "any", + "background_color": "#1f4f8f", + "theme_color": "#1f4f8f", + "icons": [ + { + "src": "pwa/icon-192.png", + "sizes": "192x192", + "type": "image/png", + "purpose": "any" + }, + { + "src": "pwa/icon-512.png", + "sizes": "512x512", + "type": "image/png", + "purpose": "any" + }, + { + "src": "pwa/icon-maskable-192.png", + "sizes": "192x192", + "type": "image/png", + "purpose": "maskable" + }, + { + "src": "pwa/icon-maskable-512.png", + "sizes": "512x512", + "type": "image/png", + "purpose": "maskable" + } + ] +} diff --git a/www/pwa/apple-touch-icon.png b/www/pwa/apple-touch-icon.png new file mode 100644 index 0000000..82271bd Binary files /dev/null and b/www/pwa/apple-touch-icon.png differ diff --git a/www/pwa/favicon-16.png b/www/pwa/favicon-16.png new file mode 100644 index 0000000..aacc14b Binary files /dev/null and b/www/pwa/favicon-16.png differ diff --git a/www/pwa/favicon-32.png b/www/pwa/favicon-32.png new file mode 100644 index 0000000..41d0ee4 Binary files /dev/null and b/www/pwa/favicon-32.png differ diff --git a/www/pwa/favicon-48.png b/www/pwa/favicon-48.png new file mode 100644 index 0000000..a82f3de Binary files /dev/null and b/www/pwa/favicon-48.png differ diff --git a/www/pwa/icon-192.png b/www/pwa/icon-192.png new file mode 100644 index 0000000..43b1253 Binary files /dev/null and b/www/pwa/icon-192.png differ diff --git a/www/pwa/icon-512.png b/www/pwa/icon-512.png new file mode 100644 index 0000000..d85a6e2 Binary files /dev/null and b/www/pwa/icon-512.png differ diff --git a/www/pwa/icon-maskable-192.png b/www/pwa/icon-maskable-192.png new file mode 100644 index 0000000..1f3fbd4 Binary files /dev/null and b/www/pwa/icon-maskable-192.png differ diff --git a/www/pwa/icon-maskable-512.png b/www/pwa/icon-maskable-512.png new file mode 100644 index 0000000..3da49a1 Binary files /dev/null and b/www/pwa/icon-maskable-512.png differ diff --git a/www/pwa/icon-maskable.svg b/www/pwa/icon-maskable.svg new file mode 100644 index 0000000..76b1b7a --- /dev/null +++ b/www/pwa/icon-maskable.svg @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/www/pwa/icon.svg b/www/pwa/icon.svg new file mode 100644 index 0000000..9de8de3 --- /dev/null +++ b/www/pwa/icon.svg @@ -0,0 +1,8 @@ + + + + + + + + diff --git a/www/sw.js b/www/sw.js new file mode 100644 index 0000000..3591d8d --- /dev/null +++ b/www/sw.js @@ -0,0 +1,11 @@ +/* Minimální service worker, aby šla PWA nainstalovat na plochu mobilu. + Požadavky neukládá do cache — aplikace zůstává online. */ +self.addEventListener('install', (event) => { + event.waitUntil(self.skipWaiting()); +}); + +self.addEventListener('activate', (event) => { + event.waitUntil(self.clients.claim()); +}); + +self.addEventListener('fetch', () => {});