46 lines
1.1 KiB
TypeScript
46 lines
1.1 KiB
TypeScript
import type { MetadataRoute } from "next";
|
|
|
|
export default function manifest(): MetadataRoute.Manifest {
|
|
return {
|
|
name: "Image Prompt Studio",
|
|
short_name: "Prompt Studio",
|
|
description: "生成图片、保存历史记录,并在生成成功后发送系统通知。",
|
|
start_url: "/studio",
|
|
scope: "/",
|
|
display: "standalone",
|
|
background_color: "#f5f5f7",
|
|
theme_color: "#f5f5f7",
|
|
lang: "zh-CN",
|
|
orientation: "portrait",
|
|
categories: ["graphics", "productivity"],
|
|
icons: [
|
|
{
|
|
src: "/pwa-icon.svg",
|
|
sizes: "any",
|
|
type: "image/svg+xml",
|
|
purpose: "any",
|
|
},
|
|
{
|
|
src: "/pwa-icon-maskable.svg",
|
|
sizes: "any",
|
|
type: "image/svg+xml",
|
|
purpose: "maskable",
|
|
},
|
|
],
|
|
shortcuts: [
|
|
{
|
|
name: "打开生成中心",
|
|
short_name: "生成中心",
|
|
description: "进入图片生成工作区",
|
|
url: "/studio",
|
|
},
|
|
{
|
|
name: "查看历史记录",
|
|
short_name: "历史记录",
|
|
description: "查看最近生成过的图片",
|
|
url: "/history",
|
|
},
|
|
],
|
|
};
|
|
}
|