-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpwa.ts
96 lines (88 loc) · 2.19 KB
/
pwa.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
import type { ModuleOptions } from "@vite-pwa/nuxt";
export const pwa: ModuleOptions = {
registerType: "autoUpdate",
workbox: {
navigateFallback: "/",
globPatterns: ["**/*.{js,css,html,ico,png,svg}"],
},
client: {
periodicSyncForUpdates: 3600, // 1 hour
},
manifest: {
name: "BeReal",
short_name: "BeReal",
description:
"Everyday at a different time, everyone is notified simultaneously to capture and share a photo in 2 minutes",
theme_color: "#000000",
background_color: "#000000",
display: "standalone",
orientation: "portrait",
icons: [
{
src: "/icons/pwa-192x192.png",
sizes: "192x192",
type: "image/png",
},
{
src: "/icons/pwa-512x512.png",
sizes: "512x512",
type: "image/png",
},
{
src: "/icons/pwa-192x192.png",
sizes: "192x192",
type: "image/png",
purpose: "maskable",
},
{
src: "/icons/pwa-512x512.png",
sizes: "512x512",
type: "image/png",
purpose: "maskable",
},
],
categories: ["entertainment", "photo", "social"],
related_applications: [
{
platform: "play",
url: "https://play.google.com/store/apps/details?id=com.bereal.ft",
id: "com.bereal.ft",
},
{
platform: "itunes",
url: "https://apps.apple.com/app/bereal-your-friends-for-real/id1459645446",
id: "id1459645446",
},
],
screenshots: [
{
src: "/screenshots/1.webp",
sizes: "810x1440",
type: "image/webp",
platform: "narrow",
label: "BeReal notification",
},
{
src: "/screenshots/2.webp",
sizes: "810x1440",
type: "image/webp",
platform: "narrow",
label: "Capturing a BeReal",
},
{
src: "/screenshots/3.webp",
sizes: "810x1440",
type: "image/webp",
platform: "narrow",
label: "See friends BeReals",
},
{
src: "/screenshots/4.webp",
sizes: "810x1440",
type: "image/webp",
platform: "narrow",
label: "Comment and react on BeReals",
},
],
},
};