From 91980c8a607d6d5ba5c43e1bf08822b6dec0b34c Mon Sep 17 00:00:00 2001 From: ppc Date: Thu, 8 Aug 2024 19:40:56 +0100 Subject: [PATCH] add webmanifest and robots --- aimenet-web/app/manifest.ts | 34 ++++++++++++++++++++++++++++++++++ aimenet-web/app/robots.ts | 10 ++++++++++ 2 files changed, 44 insertions(+) create mode 100644 aimenet-web/app/manifest.ts create mode 100644 aimenet-web/app/robots.ts diff --git a/aimenet-web/app/manifest.ts b/aimenet-web/app/manifest.ts new file mode 100644 index 0000000..aa4cded --- /dev/null +++ b/aimenet-web/app/manifest.ts @@ -0,0 +1,34 @@ +import {MetadataRoute} from 'next' + +export default function manifest(): MetadataRoute.Manifest { + return { + id: '?pwa-home=1', + name: 'AimeNet', + description: 'Aime Card Switcher', + start_url: '/', + categories: ['utilities', 'games', 'entertainment'], + orientation: 'portrait-primary', + display: 'standalone', + background_color: '#140606', + theme_color: '#d2005b', + icons: [ + { + src: '/favicon.ico', + sizes: 'any', + type: 'image/x-icon', + }, + ], + shortcuts: [ + { + url: '/', + name: 'Servers', + description: 'View, add or connect to servers' + }, + { + url: '/cards', + name: 'Cards', + description: 'Manage stored cards' + } + ] + } +} \ No newline at end of file diff --git a/aimenet-web/app/robots.ts b/aimenet-web/app/robots.ts new file mode 100644 index 0000000..47a5deb --- /dev/null +++ b/aimenet-web/app/robots.ts @@ -0,0 +1,10 @@ +import { MetadataRoute } from 'next' + +export default function robots(): MetadataRoute.Robots { + return { + rules: { + userAgent: '*', + disallow: '/' + } + } +} \ No newline at end of file