From: PhiTux Date: Wed, 8 Oct 2025 09:58:47 +0000 (+0200) Subject: slightly changed pwa-icons X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=e3748ea8a63c19444a2ce20aec29237838dae3a8;p=DailyTxT.git slightly changed pwa-icons --- diff --git a/frontend/.gitignore b/frontend/.gitignore index 56749de..20617c2 100644 --- a/frontend/.gitignore +++ b/frontend/.gitignore @@ -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 diff --git a/frontend/package.json b/frontend/package.json index 8204fcd..f6bab28 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -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", diff --git a/frontend/src/routes/(authed)/read/+page.svelte b/frontend/src/routes/(authed)/read/+page.svelte index 6b7a262..5c6f566 100644 --- a/frontend/src/routes/(authed)/read/+page.svelte +++ b/frontend/src/routes/(authed)/read/+page.svelte @@ -339,7 +339,7 @@ } } - let isLoadingMonthForReading = false; + let isLoadingMonthForReading = $state(false); function loadMonthForReading() { if (isLoadingMonthForReading) { @@ -527,7 +527,11 @@ {:else}
- {$t('read.no_entries')} + {#if isLoadingMonthForReading} + + {:else} + {$t('read.no_entries')} + {/if}
{/if} diff --git a/frontend/static/icons/apple-180-white.png b/frontend/static/icons/apple-180-white.png new file mode 100644 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 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 index 0000000..4aced5a Binary files /dev/null and b/frontend/static/icons/icon-512-512-maskable.png differ diff --git a/frontend/static/manifest.webmanifest b/frontend/static/manifest.webmanifest index e216963..7e7d490 100644 --- a/frontend/static/manifest.webmanifest +++ b/frontend/static/manifest.webmanifest @@ -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" } ] } diff --git a/frontend/vite.config.js b/frontend/vite.config.js index 881a740..f669413 100644 --- a/frontend/vite.config.js +++ b/frontend/vite.config.js @@ -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: {