diff --git a/vite.config.ts b/vite.config.ts index 2fb4ed809..abe413226 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -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", + }, + ], }, }), ],