Files
appco_dist/.output/server/chunks/routes/manifest.webmanifest.get.mjs
T

37 lines
965 B
JavaScript
Raw Normal View History

2026-02-01 17:38:39 +03:30
import { d as defineEventHandler } from '../nitro/nitro.mjs';
2026-01-27 16:02:45 +03:30
import 'node:http';
import 'node:https';
import 'node:events';
import 'node:buffer';
import 'node:fs';
import 'node:path';
import 'node:crypto';
2026-01-27 16:47:33 +03:30
import 'vue';
2026-01-27 16:02:45 +03:30
import 'node:url';
2026-01-27 16:47:33 +03:30
import 'consola';
2026-02-01 17:38:39 +03:30
import 'fast-xml-parser';
2026-01-27 16:47:33 +03:30
import 'ipx';
2026-01-27 16:02:45 +03:30
const manifest_webmanifest_get = defineEventHandler((event) => {
2026-02-01 17:38:39 +03:30
const name = useState("app-name").value.fa || "App";
2026-01-27 16:02:45 +03:30
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 };