slightly changed pwa-icons
authorPhiTux <redacted>
Wed, 8 Oct 2025 09:58:47 +0000 (11:58 +0200)
committerPhiTux <redacted>
Wed, 8 Oct 2025 09:58:47 +0000 (11:58 +0200)
frontend/.gitignore
frontend/package.json
frontend/src/routes/(authed)/read/+page.svelte
frontend/static/icons/apple-180-white.png [new file with mode: 0644]
frontend/static/icons/icon-192-192-maskable.png [new file with mode: 0644]
frontend/static/icons/icon-512-512-maskable.png [new file with mode: 0644]
frontend/static/manifest.webmanifest
frontend/vite.config.js

index 56749de64a95463f935fc266b78e71cdd321fc59..20617c27fc7a5161063d986a1712c7bf85752199 100644 (file)
@@ -20,4 +20,5 @@ Thumbs.db
 vite.config.js.timestamp-*
 vite.config.ts.timestamp-*
 
-dev-dist
\ No newline at end of file
+dev-dist
+vite.config.local.js
index 8204fcd49afb396e47933c8cbeb7c69218a892ac..f6bab281750e94cf723e37ebaa51ac4e3748ab2b 100644 (file)
@@ -3,7 +3,7 @@
        "version": "2.0.0",
        "type": "module",
        "scripts": {
-               "dev": "vite dev",
+               "dev": "vite dev --config vite.config.local.js",
                "build": "vite build",
                "preview": "vite preview",
                "check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
index 6b7a262a80b6ddfd534d03377b924a7241e96a7a..5c6f5664301a555cbf3a2d1f33eb9f1e05ea807d 100644 (file)
                }
        }
 
-       let isLoadingMonthForReading = false;
+       let isLoadingMonthForReading = $state(false);
 
        function loadMonthForReading() {
                if (isLoadingMonthForReading) {
                {:else}
                        <div class="d-flex align-items-center justify-content-center h-100">
                                <div class="glass p-5 rounded-5 no-entries">
-                                       <span id="no-entries">{$t('read.no_entries')}</span>
+                                       {#if isLoadingMonthForReading}
+                                               <span class="spinner-border spinner-border-lg" role="status" aria-hidden="true"></span>
+                                       {:else}
+                                               <span id="no-entries">{$t('read.no_entries')}</span>
+                                       {/if}
                                </div>
                        </div>
                {/if}
diff --git a/frontend/static/icons/apple-180-white.png b/frontend/static/icons/apple-180-white.png
new file mode 100644 (file)
index 0000000..f253a65
Binary files /dev/null and b/frontend/static/icons/apple-180-white.png differ
diff --git a/frontend/static/icons/icon-192-192-maskable.png b/frontend/static/icons/icon-192-192-maskable.png
new file mode 100644 (file)
index 0000000..3a7dc09
Binary files /dev/null and b/frontend/static/icons/icon-192-192-maskable.png differ
diff --git a/frontend/static/icons/icon-512-512-maskable.png b/frontend/static/icons/icon-512-512-maskable.png
new file mode 100644 (file)
index 0000000..4aced5a
Binary files /dev/null and b/frontend/static/icons/icon-512-512-maskable.png differ
index e2169638efd4cb1b5c6e0424fec647a2fe47d6cb..7e7d49087cc3fd88d23e5aa8d09b9bd6d3f55fba 100644 (file)
@@ -6,7 +6,9 @@
   "background_color": "#ffffff",
   "theme_color": "#0d6efd",
   "icons": [
-    { "src": "/icons/icon-192.png", "sizes": "192x192", "type": "image/png", "purpose": "any maskable" },
-    { "src": "/icons/icon-512.png", "sizes": "512x512", "type": "image/png", "purpose": "any maskable" }
+    { "src": "/icons/icon-192-192-maskable.png", "sizes": "192x192", "type": "image/png", "purpose": "maskable" },
+    { "src": "/icons/icon-512-512-maskable.png", "sizes": "512x512", "type": "image/png", "purpose": "maskable" },
+    { "src": "/icons/icon-192.png", "sizes": "192x192", "type": "image/png" },
+    { "src": "/icons/icon-512.png", "sizes": "512x512", "type": "image/png" }
   ]
 }
index 881a7401e0187dfb67fc923fa2053ff41bf55c82..f669413b0951c4bb6f2f11949ec0fe966c536ac4 100644 (file)
@@ -15,8 +15,10 @@ export default defineConfig({
                                background_color: '#ffffff',
                                theme_color: '#0d6efd',
                                icons: [
-                                       { src: '/icons/icon-192.png', sizes: '192x192', type: 'image/png', purpose: 'any maskable' },
-                                       { src: '/icons/icon-512.png', sizes: '512x512', type: 'image/png', purpose: 'any maskable' }
+                                       { "src": "/icons/icon-192-192-maskable.png", "sizes": "192x192", "type": "image/png", "purpose": "maskable" },
+                               { "src": "/icons/icon-512-512-maskable.png", "sizes": "512x512", "type": "image/png", "purpose": "maskable" },
+                               { "src": "/icons/icon-192.png", "sizes": "192x192", "type": "image/png" },
+                               { "src": "/icons/icon-512.png", "sizes": "512x512", "type": "image/png" }
                                ]
                        },
                        devOptions: { enabled: true }
@@ -24,7 +26,7 @@ export default defineConfig({
        ],
        server: {
                port: 5173,
-               https: false
+               https: false,
        },
        css: {
                preprocessorOptions: {
git clone https://git.99rst.org/PROJECT