From 2bdd9eaa880582e2736daba2ec3a4ff3068ee880 Mon Sep 17 00:00:00 2001 From: Ben Phelps Date: Tue, 11 Oct 2022 21:56:48 +0300 Subject: [PATCH] remove shortcuts from manifest --- src/pages/site.webmanifest.jsx | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/src/pages/site.webmanifest.jsx b/src/pages/site.webmanifest.jsx index 10a448a32..80513ddbb 100644 --- a/src/pages/site.webmanifest.jsx +++ b/src/pages/site.webmanifest.jsx @@ -1,33 +1,13 @@ import checkAndCopyConfig, { getSettings } from "utils/config/config"; import themes from "utils/styles/themes"; -import { servicesResponse, bookmarksResponse } from "utils/config/api-response"; export async function getServerSideProps({ res }) { checkAndCopyConfig("settings.yaml"); const settings = getSettings(); - const services = await servicesResponse(); - const bookmarks = await bookmarksResponse(); const color = settings.color || "slate"; const theme = settings.theme || "dark"; - const serviceShortcuts = services.map((group) => - group.services.map((service) => ({ - name: service.name, - url: service.href, - description: service.description, - })) - ); - - const bookmarkShortcuts = bookmarks.map((group) => - group.bookmarks.map((service) => ({ - name: service.name, - url: service.href, - })) - ); - - const shortcuts = [...serviceShortcuts, ...bookmarkShortcuts].flat(); - const manifest = { name: settings.title || "Homepage", short_name: settings.title || "Homepage", @@ -43,7 +23,6 @@ export async function getServerSideProps({ res }) { type: "image/png", }, ], - shortcuts, theme_color: themes[color][theme], background_color: themes[color][theme], display: "standalone",