update pwa manifest

This commit is contained in:
hzrd149 2024-05-06 08:36:16 -05:00
parent 11f5f4bf9c
commit 7211690522

View File

@ -29,9 +29,10 @@ export default defineConfig({
name: "noStrudel",
short_name: "noStrudel",
description: "A sandbox for exploring nostr",
orientation: "any",
display: "standalone",
orientation: "portrait-primary",
theme_color: "#8DB600",
categories: ["nostr"],
categories: ["social"],
icons: [
{ src: "/favicon.ico", type: "image/x-icon", sizes: "16x16 32x32" },
{ src: "/icon-192.png", type: "image/png", sizes: "192x192" },
@ -39,18 +40,51 @@ export default defineConfig({
{ src: "/icon-192-maskable.png", type: "image/png", sizes: "192x192", purpose: "maskable" },
{ src: "/icon-512-maskable.png", type: "image/png", sizes: "512x512", purpose: "maskable" },
],
// TODO: actually handle this share data
// @ts-ignore
share_target: {
action: "/share",
method: "GET",
enctype: "application/x-www-form-urlencoded",
params: {
title: "title",
text: "text",
url: "url",
lang: "en",
start_url: "/",
scope: "/",
shortcuts: [
{
name: "Notifications",
url: "/#/notifications",
description: "",
},
},
{
name: "Notes",
url: "/#/",
description: "",
},
{
name: "Notifications",
url: "/#/notifications",
description: "",
},
{
name: "Messages",
url: "/#/dm",
description: "",
},
{
name: "Streams",
url: "/#/streams",
description: "",
},
{
name: "Wiki",
url: "/#/wiki",
description: "",
},
],
protocol_handlers: [
{
protocol: "web+nostr",
url: "/l/%s",
},
{
protocol: "nostr",
url: "/l/%s",
},
],
},
}),
],