mirror of
https://github.com/ichsankurnia/hats-app.git
synced 2026-12-05 10:46:29 +00:00
20b77dc0b7
Add installable app metadata and icons, register a service worker for asset and page caching, and provide an offline page when navigation fails.
49 lines
1.4 KiB
TypeScript
49 lines
1.4 KiB
TypeScript
import type { MetadataRoute } from 'next';
|
|
|
|
export default function manifest(): MetadataRoute.Manifest {
|
|
return {
|
|
name: 'HIS Attendance Task System (H.A.T.s)',
|
|
short_name: 'H.A.T.s',
|
|
description: 'H.A.T.s HIS Attendance Task System (smart absence, task management, work permit and leave mangement, etc).',
|
|
start_url: '/',
|
|
id: '/',
|
|
scope: '/',
|
|
display: 'standalone',
|
|
background_color: '#ffffff',
|
|
theme_color: '#EA512C',
|
|
orientation: 'portrait',
|
|
icons: [
|
|
{
|
|
src: '/assets/logo192.png',
|
|
sizes: '192x192',
|
|
type: 'image/png',
|
|
purpose: 'any',
|
|
},
|
|
{
|
|
src: '/assets/hats-256x256.png',
|
|
sizes: '256x256',
|
|
type: 'image/png',
|
|
purpose: 'any',
|
|
},
|
|
{
|
|
src: '/assets/logo512.png',
|
|
sizes: '512x512',
|
|
type: 'image/png',
|
|
purpose: 'any',
|
|
},
|
|
{
|
|
src: '/assets/logo512.png',
|
|
sizes: '512x512',
|
|
type: 'image/png',
|
|
purpose: 'maskable',
|
|
},
|
|
{
|
|
src: '/assets/apple-touch-icon.png',
|
|
sizes: '180x180',
|
|
type: 'image/png',
|
|
purpose: 'any',
|
|
},
|
|
],
|
|
};
|
|
}
|