Run prettify

This commit is contained in:
2026-02-10 22:11:17 +00:00
parent 353fd07b92
commit 7777671cbb
8 changed files with 98 additions and 103 deletions

View File

@@ -1,4 +1,4 @@
import { json } from "@sveltejs/kit";
import { json } from '@sveltejs/kit';
import type { RequestHandler } from './$types';
import logo from '$lib/assets/round-logo.svg';
import maskableLogo from '$lib/assets/maps-logo-maskable.svg';
@@ -7,39 +7,39 @@ import appleLogo from '$lib/assets/apple-touch-icon.png';
export const prerender = true;
export const GET: RequestHandler = ({ url }) => {
const manifest = {
name: "OwlBoard Maps",
short_name: "OwlBoard Maps",
start_url: "/",
display: "standalone",
theme_color: "#3c6f79",
background_color: "#3d4952",
icons: [
{
src: logo,
sizes: "any",
type: "image/svg+xml",
purpose: "any",
},
{
src: maskableLogo,
sizes: "any",
type: "image/svg+xml",
purpose: "maskable",
},
{
src: appleLogo,
sizes: "180x180",
type: "image/png",
purpose: "any",
},
],
};
const manifest = {
name: 'OwlBoard Maps',
short_name: 'OwlBoard Maps',
start_url: '/',
display: 'standalone',
theme_color: '#3c6f79',
background_color: '#3d4952',
icons: [
{
src: logo,
sizes: 'any',
type: 'image/svg+xml',
purpose: 'any'
},
{
src: maskableLogo,
sizes: 'any',
type: 'image/svg+xml',
purpose: 'maskable'
},
{
src: appleLogo,
sizes: '180x180',
type: 'image/png',
purpose: 'any'
}
]
};
return json(manifest, {
headers: {
'Content-Type': 'application/manifest+json',
'Cache-Control': 'public, max-age=3600',
}
})
}
return json(manifest, {
headers: {
'Content-Type': 'application/manifest+json',
'Cache-Control': 'public, max-age=3600'
}
});
};