From 2b45a145f0dfe8846b89871e0400b8903bfd4581 Mon Sep 17 00:00:00 2001 From: Gabriel Arriagada <65878291+GNosii@users.noreply.github.com> Date: Mon, 8 May 2023 01:19:35 +0000 Subject: [PATCH] qol changes in the web manifest --- frontend/src/composables/useSeo.ts | 6 +++--- frontend/src/public/{favicon => }/browserconfig.xml | 0 frontend/src/public/{favicon => }/site.webmanifest | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) rename frontend/src/public/{favicon => }/browserconfig.xml (100%) rename frontend/src/public/{favicon => }/site.webmanifest (68%) diff --git a/frontend/src/composables/useSeo.ts b/frontend/src/composables/useSeo.ts index 94cec61b5..fe52fed37 100644 --- a/frontend/src/composables/useSeo.ts +++ b/frontend/src/composables/useSeo.ts @@ -10,7 +10,7 @@ export function useSeo( route: RouteLocationNormalizedLoaded, image: string | null ): HeadObject { - description = description || "Plugin repository for Paper plugins and more!"; + description = description || "Plugin repository for the Paper, Waterfall and Folia platforms."; const config = useConfig(); const canonical = config.publicHost + (route.fullPath.endsWith("/") ? route.fullPath.substring(0, route.fullPath.length - 1) : route.fullPath); image = image || "https://docs.papermc.io/img/paper.png"; @@ -32,7 +32,7 @@ export function useSeo( msapplicationTileImage: image, themeColor: "#ffffff", msapplicationTileColor: "#ffffff", - msapplicationConfig: "/favicon/browserconfig.xml", + msapplicationConfig: "/browserconfig.xml", }); const seo = { @@ -42,7 +42,7 @@ export function useSeo( { rel: "apple-touch-icon", sizes: "180x180", href: "/favicon/apple-touch-icon.png" }, { rel: "icon", type: "image/png", sizes: "32x32", href: "/favicon/favicon-32x32.png" }, { rel: "icon", type: "image/png", sizes: "16x16", href: "/favicon/favicon-16x16.png" }, - { rel: "manifest", href: "/favicon/site.webmanifest" }, + { rel: "manifest", href: "/site.webmanifest" }, { rel: "mask-icon", href: "/favicon/safari-pinned-tab.svg", color: "#686868" }, { rel: "shortcut icon", href: "/favicon/favicon.ico" }, ], diff --git a/frontend/src/public/favicon/browserconfig.xml b/frontend/src/public/browserconfig.xml similarity index 100% rename from frontend/src/public/favicon/browserconfig.xml rename to frontend/src/public/browserconfig.xml diff --git a/frontend/src/public/favicon/site.webmanifest b/frontend/src/public/site.webmanifest similarity index 68% rename from frontend/src/public/favicon/site.webmanifest rename to frontend/src/public/site.webmanifest index 8fd3de362..5a51c0167 100644 --- a/frontend/src/public/favicon/site.webmanifest +++ b/frontend/src/public/site.webmanifest @@ -1,8 +1,8 @@ { - "$schema": "https://json.schemastore.org/web-manifest-combined.json", - "name": "Hangar | PaperMC", - "description": "Plugin repository for Paper plugins and more!", + "name": "Hangar by PaperMC", + "description": "Plugin repository for the Paper, Waterfall and Folia platforms.", "short_name": "Hangar", + "start_url": "/", "icons": [ { "src": "/favicon/android-chrome-192x192.png",