37 lines
965 B
JavaScript
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 };
|