Files
appco_dist/.output/server/chunks/routes/manifest.webmanifest.get.mjs
T
2026-02-01 17:38:39 +03:30

37 lines
965 B
JavaScript

import { d as defineEventHandler } from '../nitro/nitro.mjs';
import 'node:http';
import 'node:https';
import 'node:events';
import 'node:buffer';
import 'node:fs';
import 'node:path';
import 'node:crypto';
import 'vue';
import 'node:url';
import 'consola';
import 'fast-xml-parser';
import 'ipx';
const manifest_webmanifest_get = defineEventHandler((event) => {
const name = useState("app-name").value.fa || "App";
return {
name,
short_name: name,
id: "/",
start_url: "/",
display: "standalone",
orientation: "portrait",
scope: "/",
background_color: "#ffffff",
theme_color: "#ffffff",
description: name,
icons: [
{ src: "/pwa-icon-192.png", sizes: "192x192", type: "image/png", purpose: "any maskable" },
{ src: "/pwa-icon-512.png", sizes: "512x512", type: "image/png", purpose: "any maskable" }
],
categories: ["business", "shopping"]
};
});
export { manifest_webmanifest_get as default };