Other areas of the AE SvelteKit primary routes.
This commit is contained in:
@@ -50,64 +50,131 @@ export const GET: RequestHandler = async ({ url, fetch }) => {
|
||||
}
|
||||
|
||||
// Default branding
|
||||
const branding_name = site_domain?.account_name || site_domain?.name || "Aether";
|
||||
const branding_name =
|
||||
site_domain?.account_name || site_domain?.name || 'Aether';
|
||||
const name = `One Sky IT - ${branding_name} Aether PWA`;
|
||||
const short_name = `${site_domain?.account_code || site_domain?.code || 'Aether'} PWA`;
|
||||
const background_color = site_domain?.cfg_json?.pwa_background_color || "hsl(220, 65%, 31%)";
|
||||
const theme_color = "#3a5997";
|
||||
const background_color =
|
||||
site_domain?.cfg_json?.pwa_background_color || 'hsl(220, 65%, 31%)';
|
||||
const theme_color = '#3a5997';
|
||||
|
||||
const manifest = {
|
||||
"id": `ae-pwa-${fqdn}`, // Unique ID for this installation
|
||||
"name": name,
|
||||
"short_name": short_name,
|
||||
"description": `The ${name} platform for unified event and documentation management.`,
|
||||
"start_url": "/",
|
||||
"scope": "/",
|
||||
"display": "fullscreen",
|
||||
"background_color": background_color,
|
||||
"theme_color": theme_color,
|
||||
"orientation": "any",
|
||||
"categories": ["business", "productivity", "utilities"],
|
||||
"icons": [
|
||||
id: `ae-pwa-${fqdn}`, // Unique ID for this installation
|
||||
name: name,
|
||||
short_name: short_name,
|
||||
description: `The ${name} platform for unified event and documentation management.`,
|
||||
start_url: '/',
|
||||
scope: '/',
|
||||
display: 'fullscreen',
|
||||
background_color: background_color,
|
||||
theme_color: theme_color,
|
||||
orientation: 'any',
|
||||
categories: ['business', 'productivity', 'utilities'],
|
||||
icons: [
|
||||
// Standard Icons (Small/Med)
|
||||
{ "sizes": "24x24", "src": "https://static.oneskyit.com/images/OSIT_logo_2022_24px.png", "type": "image/png" },
|
||||
{ "sizes": "48x48", "src": "https://static.oneskyit.com/images/OSIT_logo_2022_48px.png", "type": "image/png" },
|
||||
{ "sizes": "96x96", "src": "https://static.oneskyit.com/images/OSIT_logo_2022_96px.png", "type": "image/png" },
|
||||
{ "sizes": "144x144", "src": "https://static.oneskyit.com/images/OSIT_logo_2022_144px.png", "type": "image/png" },
|
||||
{ "sizes": "180x180", "src": "https://static.oneskyit.com/images/OSIT_logo_2022_180px.png", "type": "image/png" },
|
||||
{
|
||||
sizes: '24x24',
|
||||
src: 'https://static.oneskyit.com/images/OSIT_logo_2022_24px.png',
|
||||
type: 'image/png'
|
||||
},
|
||||
{
|
||||
sizes: '48x48',
|
||||
src: 'https://static.oneskyit.com/images/OSIT_logo_2022_48px.png',
|
||||
type: 'image/png'
|
||||
},
|
||||
{
|
||||
sizes: '96x96',
|
||||
src: 'https://static.oneskyit.com/images/OSIT_logo_2022_96px.png',
|
||||
type: 'image/png'
|
||||
},
|
||||
{
|
||||
sizes: '144x144',
|
||||
src: 'https://static.oneskyit.com/images/OSIT_logo_2022_144px.png',
|
||||
type: 'image/png'
|
||||
},
|
||||
{
|
||||
sizes: '180x180',
|
||||
src: 'https://static.oneskyit.com/images/OSIT_logo_2022_180px.png',
|
||||
type: 'image/png'
|
||||
},
|
||||
// High-res Maskable Icons (WebP preferred for efficiency)
|
||||
{ "sizes": "192x192", "src": "https://static.oneskyit.com/images/OSIT_logo_2022_192px.webp", "type": "image/webp", "purpose": "any maskable" },
|
||||
{ "sizes": "192x192", "src": "https://static.oneskyit.com/images/OSIT_logo_2022_192px.png", "type": "image/png", "purpose": "any maskable" },
|
||||
{ "sizes": "512x512", "src": "https://static.oneskyit.com/images/OSIT_logo_2022_512px.webp", "type": "image/webp", "purpose": "any maskable" },
|
||||
{ "sizes": "512x512", "src": "https://static.oneskyit.com/images/OSIT_logo_2022_512px.png", "type": "image/png", "purpose": "any maskable" },
|
||||
{ "sizes": "1024x1024", "src": "https://static.oneskyit.com/images/OSIT_logo_2022_1024px.webp", "type": "image/webp", "purpose": "any maskable" },
|
||||
{ "sizes": "1024x1024", "src": "https://static.oneskyit.com/images/OSIT_logo_2022_1024px.png", "type": "image/png", "purpose": "any maskable" }
|
||||
],
|
||||
// App Shortcuts (Long-press icon features)
|
||||
"shortcuts": [
|
||||
{
|
||||
"name": "Journals",
|
||||
"short_name": "Journals",
|
||||
"description": "View and manage journal entries",
|
||||
"url": "/journals",
|
||||
"icons": [{ "src": "https://static.oneskyit.com/images/OSIT_logo_2022_192px.png", "sizes": "192x192" }]
|
||||
sizes: '192x192',
|
||||
src: 'https://static.oneskyit.com/images/OSIT_logo_2022_192px.webp',
|
||||
type: 'image/webp',
|
||||
purpose: 'any maskable'
|
||||
},
|
||||
{
|
||||
"name": "Events",
|
||||
"short_name": "Events",
|
||||
"description": "Access active event management",
|
||||
"url": "/events",
|
||||
"icons": [{ "src": "https://static.oneskyit.com/images/OSIT_logo_2022_192px.png", "sizes": "192x192" }]
|
||||
sizes: '192x192',
|
||||
src: 'https://static.oneskyit.com/images/OSIT_logo_2022_192px.png',
|
||||
type: 'image/png',
|
||||
purpose: 'any maskable'
|
||||
},
|
||||
{
|
||||
"name": "Testing",
|
||||
"short_name": "Testing",
|
||||
"description": "System diagnostic dashboard",
|
||||
"url": "/testing",
|
||||
"icons": [{ "src": "https://static.oneskyit.com/images/OSIT_logo_2022_192px.png", "sizes": "192x192" }]
|
||||
sizes: '512x512',
|
||||
src: 'https://static.oneskyit.com/images/OSIT_logo_2022_512px.webp',
|
||||
type: 'image/webp',
|
||||
purpose: 'any maskable'
|
||||
},
|
||||
{
|
||||
sizes: '512x512',
|
||||
src: 'https://static.oneskyit.com/images/OSIT_logo_2022_512px.png',
|
||||
type: 'image/png',
|
||||
purpose: 'any maskable'
|
||||
},
|
||||
{
|
||||
sizes: '1024x1024',
|
||||
src: 'https://static.oneskyit.com/images/OSIT_logo_2022_1024px.webp',
|
||||
type: 'image/webp',
|
||||
purpose: 'any maskable'
|
||||
},
|
||||
{
|
||||
sizes: '1024x1024',
|
||||
src: 'https://static.oneskyit.com/images/OSIT_logo_2022_1024px.png',
|
||||
type: 'image/png',
|
||||
purpose: 'any maskable'
|
||||
}
|
||||
],
|
||||
"testing": "One Sky IT"
|
||||
// App Shortcuts (Long-press icon features)
|
||||
shortcuts: [
|
||||
{
|
||||
name: 'Journals',
|
||||
short_name: 'Journals',
|
||||
description: 'View and manage journal entries',
|
||||
url: '/journals',
|
||||
icons: [
|
||||
{
|
||||
src: 'https://static.oneskyit.com/images/OSIT_logo_2022_192px.png',
|
||||
sizes: '192x192'
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
name: 'Events',
|
||||
short_name: 'Events',
|
||||
description: 'Access active event management',
|
||||
url: '/events',
|
||||
icons: [
|
||||
{
|
||||
src: 'https://static.oneskyit.com/images/OSIT_logo_2022_192px.png',
|
||||
sizes: '192x192'
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
name: 'Testing',
|
||||
short_name: 'Testing',
|
||||
description: 'System diagnostic dashboard',
|
||||
url: '/testing',
|
||||
icons: [
|
||||
{
|
||||
src: 'https://static.oneskyit.com/images/OSIT_logo_2022_192px.png',
|
||||
sizes: '192x192'
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
testing: 'One Sky IT'
|
||||
};
|
||||
|
||||
return json(manifest, {
|
||||
@@ -116,4 +183,4 @@ export const GET: RequestHandler = async ({ url, fetch }) => {
|
||||
'Cache-Control': 'public, max-age=3600'
|
||||
}
|
||||
});
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user