fix: complete logicsrc PWA assets

This commit is contained in:
Anthony Ettinger 2026-10-30 09:51:53 +00:00
parent 2c65baecbb
commit 4b174fe899
6 changed files with 26 additions and 3 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 780 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

View file

@ -1,4 +1,5 @@
{
"id": "/",
"name": "LogicSRC",
"short_name": "LogicSRC",
"description": "Open standards and schemas for human and AI agent coordination.",
@ -8,6 +9,24 @@
"background_color": "#f6f7f4",
"theme_color": "#101418",
"icons": [
{
"src": "/icon-192.png",
"sizes": "192x192",
"type": "image/png",
"purpose": "any"
},
{
"src": "/icon-512.png",
"sizes": "512x512",
"type": "image/png",
"purpose": "any"
},
{
"src": "/icon-maskable-512.png",
"sizes": "512x512",
"type": "image/png",
"purpose": "maskable"
},
{
"src": "/icon.svg",
"sizes": "any",

View file

@ -1,5 +1,5 @@
const CACHE_NAME = "logicsrc-standards-v1";
const SHELL_ASSETS = ["/", "/manifest.webmanifest", "/icon.svg"];
const SHELL_ASSETS = ["/", "/manifest.webmanifest", "/icon.svg", "/icon-192.png", "/icon-512.png", "/icon-maskable-512.png"];
self.addEventListener("install", (event) => {
event.waitUntil(caches.open(CACHE_NAME).then((cache) => cache.addAll(SHELL_ASSETS)));

View file

@ -18,8 +18,12 @@ export const metadata: Metadata = {
applicationName: "LogicSRC",
manifest: "/manifest.webmanifest",
icons: {
icon: [{ url: "/icon.svg", type: "image/svg+xml" }],
apple: "/icon.svg",
icon: [
{ url: "/icon-192.png", type: "image/png", sizes: "192x192" },
{ url: "/icon-512.png", type: "image/png", sizes: "512x512" },
{ url: "/icon.svg", type: "image/svg+xml" },
],
apple: [{ url: "/icon-192.png", sizes: "192x192" }],
},
...pageMetadata("/"),
};