-
Notifications
You must be signed in to change notification settings - Fork 0
/
manifest.ts
105 lines (103 loc) · 2.54 KB
/
manifest.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
97
98
99
100
101
102
103
104
105
import type { ManifestOptions } from 'vite-plugin-pwa'
const base = '/'
export default {
name: 'F-OH PWA',
short_name: 'F-OH',
description: 'F-OH 的第三方 PWA 版本',
// orientation: 'natural',
prefer_related_applications: true,
id: 'org.ohosdev.foh.pwa',
lang: 'zh-CN',
start_url: base,
icons: [
{
src: `${base}icons/android-chrome-192x192.png`,
sizes: '192x192',
type: 'image/png',
},
{
src: `${base}icons/android-chrome-512x512.png`,
sizes: '512x512',
type: 'image/png',
},
{
src: `${base}icons/maskable_icon_x96.png`,
sizes: '96x96',
type: 'image/png',
purpose: 'maskable',
},
{
src: `${base}icons/maskable_icon_x192.png`,
sizes: '192x192',
type: 'image/png',
purpose: 'maskable',
},
{
src: `${base}icons/maskable_icon_x512.png`,
sizes: '512x512',
type: 'image/png',
purpose: 'maskable',
},
{
src: `${base}icons/maskable_icon.png`,
sizes: '1024x1024',
type: 'image/png',
purpose: 'maskable',
},
],
background_color: '#ffffff',
display: 'standalone',
display_override: ['standalone', 'minimal-ui', 'browser', 'window-controls-overlay'],
screenshots: [
{
src: `${base}screenshots/Snipaste_2023-12-05_05-17-05.webp`,
sizes: '502x802',
type: 'image/webp',
form_factor: 'narrow',
label: 'Home',
},
{
src: `${base}screenshots/Snipaste_2023-12-05_05-17-10.webp`,
sizes: '502x802',
type: 'image/webp',
form_factor: 'narrow',
label: 'Application List',
},
{
src: `${base}screenshots/Snipaste_2023-12-05_05-17-15.webp`,
sizes: '502x802',
type: 'image/webp',
form_factor: 'narrow',
label: 'Application Details',
},
{
src: `${base}screenshots/Snipaste_2023-12-05_05-16-05.webp`,
sizes: '962x602',
type: 'image/webp',
form_factor: 'wide',
label: 'Home',
},
{
src: `${base}screenshots/Snipaste_2023-12-05_05-16-10.webp`,
sizes: '962x602',
type: 'image/webp',
form_factor: 'wide',
label: 'Application List',
},
{
src: `${base}screenshots/Snipaste_2023-12-05_05-16-17.webp`,
sizes: '962x602',
type: 'image/webp',
form_factor: 'wide',
label: 'Application Details',
},
],
related_applications: [
{
platform: 'f-oh',
url: 'https://gitee.com/ohos-dev/f-oh',
id: 'org.ohosdev.foh',
},
],
edge_side_panel: {},
} satisfies Partial<ManifestOptions>