diff --git a/packages/pl-fe/app.json b/packages/pl-fe/app.json index 3ed1d5299..a451621f6 100644 --- a/packages/pl-fe/app.json +++ b/packages/pl-fe/app.json @@ -4,4 +4,4 @@ "keywords": ["fediverse"], "website": "https://github.com/mkljczk/pl-fe", "stack": "container" -} +} \ No newline at end of file diff --git a/packages/pl-fe/src/instance/images/shortcuts/chats.png b/packages/pl-fe/src/instance/images/shortcuts/chats.png new file mode 100644 index 000000000..29ddc8a4e Binary files /dev/null and b/packages/pl-fe/src/instance/images/shortcuts/chats.png differ diff --git a/packages/pl-fe/src/instance/images/shortcuts/notifications.png b/packages/pl-fe/src/instance/images/shortcuts/notifications.png new file mode 100644 index 000000000..301146896 Binary files /dev/null and b/packages/pl-fe/src/instance/images/shortcuts/notifications.png differ diff --git a/packages/pl-fe/src/instance/images/shortcuts/search.png b/packages/pl-fe/src/instance/images/shortcuts/search.png new file mode 100644 index 000000000..5c47de4c1 Binary files /dev/null and b/packages/pl-fe/src/instance/images/shortcuts/search.png differ diff --git a/packages/pl-fe/vite.config.ts b/packages/pl-fe/vite.config.ts index b3d5f8574..7a52b7cae 100644 --- a/packages/pl-fe/vite.config.ts +++ b/packages/pl-fe/vite.config.ts @@ -68,6 +68,54 @@ const config = defineConfig(({ command }) => ({ name: 'pl-fe', short_name: 'pl-fe', description: 'Web-based federated social media client, a fork of Soapbox', + display: 'standalone', + display_override: [ + 'window-controls-overlay', + ], + theme_color: '#d80482', + categories: ['social'], + share_target: { + params: { + title: 'title', + text: 'text', + url: 'url', + }, + action: 'share', + method: 'GET', + }, + shortcuts: [ + { + name: 'Search', + url: '/search', + icons: [ + { + src: '/instance/images/shortcuts/search.png', + sizes: '192x192', + }, + ], + }, + { + name: 'Notifications', + url: '/notifications', + icons: [ + { + src: '/instance/images/shortcuts/notifications.png', + sizes: '192x192', + }, + ], + }, + { + name: 'Chats', + url: '/chats', + icons: [ + { + src: '/instance/images/shortcuts/chats.png', + sizes: '192x192', + }, + ], + }, + ], + start_url: '/', }, srcDir: 'src/service-worker', filename: 'sw.ts',