Files
EpicNext-Cms/src/app/manifest.ts
T
openhands 41be6835bf Add missing admin action files and navigation links
- Add 11 missing server action files: badges, bulk-users, catalog, catalog-bc, catalog-items, import-badges, import-furni, multi-account-detect, permissions, rooms, soundtracks
- Add missing admin navigation links: tickets, sounds, translations, import, radio sub-pages
- Add translation keys for all new navigation items
2026-07-11 12:01:05 +02:00

22 lines
885 B
TypeScript

import type { MetadataRoute } from "next";
import { siteSettings } from "@/lib/services/site-settings";
// Web app manifest — makes the hotel installable as a PWA (AtomCMS exposed PWA
// settings but the rewrite ships a real, themeable manifest). Name + theme
// colour follow the live website_settings; falls back to defaults with no DB.
export default async function manifest(): Promise<MetadataRoute.Manifest> {
const name = (await siteSettings.get("hotel_name", "Atom")) ?? "Atom";
const theme = (await siteSettings.get("color_primary", "#f59e0b")) ?? "#f59e0b";
return {
name,
short_name: name,
description: `${name} — a Habbo retro hotel.`,
start_url: "/",
display: "standalone",
background_color: "#0f1117",
theme_color: theme,
icons: [{ src: "/assets/images/home_icon.gif", sizes: "any", type: "image/gif", purpose: "any" }],
};
}