-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
/
Copy pathweb-manifest.json
230 lines (230 loc) · 10.1 KB
/
web-manifest.json
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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
{
"$schema": "http://json-schema.org/draft-04/schema#",
"definitions": {
"manifest_image_resource": {
"type": "object",
"properties": {
"sizes": {
"description": "The sizes member is a string consisting of an unordered set of unique space-separated tokens which are ASCII case-insensitive that represents the dimensions of an image for visual media.",
"oneOf": [
{
"type": "string",
"pattern": "^[0-9 x]+$"
},
{
"enum": ["any"]
}
]
},
"src": {
"description": "The src member of an image is a URL from which a user agent can fetch the icon's data.",
"type": "string"
},
"type": {
"description": "The type member of an image is a hint as to the media type of the image.",
"type": "string",
"pattern": "^[\\sa-z0-9\\-+;\\.=\\/]+$"
},
"purpose": {
"type": "string",
"enum": [
"monochrome",
"maskable",
"any",
"monochrome maskable",
"monochrome any",
"maskable monochrome",
"maskable any",
"any monochrome",
"any maskable",
"monochrome maskable any",
"monochrome any maskable",
"maskable monochrome any",
"maskable any monochrome",
"any monochrome maskable",
"any maskable monochrome"
],
"default": "any"
}
},
"required": ["src"]
},
"external_application_resource": {
"type": "object",
"properties": {
"platform": {
"description": "The platform it is associated to.",
"enum": ["chrome_web_store", "play", "itunes", "windows"]
},
"url": {
"description": "The URL where the application can be found.",
"type": "string",
"format": "uri"
},
"id": {
"description": "Information additional to the URL or instead of the URL, depending on the platform.",
"type": "string"
},
"min_version": {
"description": "Information about the minimum version of an application related to this web app.",
"type": "string"
},
"fingerprints": {
"description": "An array of fingerprint objects used for verifying the application.",
"type": "array",
"items": {
"type": "object",
"properties": {
"type": {
"type": "string"
},
"value": {
"type": "string"
}
}
}
}
},
"required": ["platform"]
},
"shortcut_item": {
"type": "object",
"description": "A shortcut item represents a link to a key task or page within a web app. A user agent can use these values to assemble a context menu to be displayed by the operating system when a user engages with the web app's icon.",
"properties": {
"name": {
"description": "The name member of a shortcut item is a string that represents the name of the shortcut as it is usually displayed to the user in a context menu.",
"type": "string"
},
"short_name": {
"description": "The short_name member of a shortcut item is a string that represents a short version of the name of the shortcut. It is intended to be used where there is insufficient space to display the full name of the shortcut.",
"type": "string"
},
"description": {
"description": "The description member of a shortcut item is a string that allows the developer to describe the purpose of the shortcut.",
"type": "string"
},
"url": {
"description": "The url member of a shortcut item is a URL within scope of a processed manifest that opens when the associated shortcut is activated.",
"type": "string"
},
"icons": {
"description": "The icons member of a shortcut item serves as iconic representations of the shortcut in various contexts.",
"type": "array",
"items": {
"$ref": "#/definitions/manifest_image_resource"
}
}
},
"required": ["name", "url"]
}
},
"id": "https://json.schemastore.org/web-manifest.json",
"properties": {
"background_color": {
"description": "The background_color member describes the expected background color of the web application.",
"type": "string"
},
"dir": {
"description": "The base direction of the manifest.",
"enum": ["ltr", "rtl", "auto"],
"default": "auto"
},
"display": {
"description": "The item represents the developer's preferred display mode for the web application.",
"enum": ["fullscreen", "standalone", "minimal-ui", "browser"],
"default": "browser"
},
"icons": {
"description": "The icons member is an array of icon objects that can serve as iconic representations of the web application in various contexts.",
"type": "array",
"items": {
"$ref": "#/definitions/manifest_image_resource"
}
},
"lang": {
"description": "The primary language for the values of the manifest.",
"type": "string"
},
"name": {
"description": "The name of the web application.",
"type": "string"
},
"orientation": {
"description": "The orientation member is a string that serves as the default orientation for all top-level browsing contexts of the web application.",
"oneOf": [
{
"const": "any",
"description": "Displays the web app in any orientation allowed by the device's operating system or user settings. It allows the app to rotate freely to match the orientation of the device when it is rotated. "
},
{
"const": "natural",
"description": "Displays the web app in the orientation considered most natural for the device, as determined by the browser, operating system, user settings, or the screen itself. It corresponds to how the device is most commonly held or used: On devices typically held vertically, such as mobile phones, natural is usually portrait-primary. On devices typically used horizontally, such as computer monitors and tablets, natural is usually landscape-primary. When the device is rotated, the app may or may not rotate so as to match the device's natural orientation; this behavior may vary depending on the specific device, browser implementation, and user settings."
},
{
"const": "landscape",
"description": "Displays the web app with width greater than height. It allows the app to switch between landscape-primary and landscape-secondary orientations when the device is rotated."
},
{
"const": "portrait",
"description": "Displays the web app with height greater than width. It allows the app to switch between portrait-primary and portrait-secondary orientations when the device is rotated."
},
{
"const": "portrait-primary",
"description": "Displays the web app in portrait mode, typically with the device held upright. This is usually the default app orientation on devices that are naturally portrait. Depending on the device and browser implementation, the app will typically maintain this orientation even when the device is rotated."
},
{
"const": "portrait-secondary",
"description": "Displays the web app in inverted portrait mode, which is portrait-primary rotated 180 degrees. Depending on the device and browser implementation, the app will typically maintain this orientation even when the device is rotated."
},
{
"const": "landscape-primary",
"description": "Displays the web app in landscape mode, typically with the device held in its standard horizontal position. This is usually the default app orientation on devices that are naturally landscape. Depending on the device and browser implementation, the app will typically maintain this orientation even when the device is rotated."
},
{
"const": "landscape-secondary",
"description": "Displays the web app in inverted landscape mode, which is landscape-primary rotated 180 degrees. Depending on the device and browser implementation, the app will typically maintain this orientation even when the device is rotated."
}
]
},
"prefer_related_applications": {
"description": "Boolean value that is used as a hint for the user agent to say that related applications should be preferred over the web application.",
"type": "boolean"
},
"related_applications": {
"description": "Array of application accessible to the underlying application platform that has a relationship with the web application.",
"type": "array",
"items": {
"$ref": "#/definitions/external_application_resource"
}
},
"scope": {
"description": "A string that represents the navigation scope of this web application's application context.",
"type": "string"
},
"short_name": {
"description": "A string that represents a short version of the name of the web application.",
"type": "string"
},
"shortcuts": {
"description": "Array of shortcut items that provide access to key tasks within a web application.",
"type": "array",
"items": {
"$ref": "#/definitions/shortcut_item"
}
},
"start_url": {
"description": "Represents the URL that the developer would prefer the user agent load when the user launches the web application.",
"type": "string"
},
"theme_color": {
"description": "The theme_color member serves as the default theme color for an application context.",
"type": "string"
},
"id": {
"description": "A string that represents the id of the web application.",
"type": "string"
}
},
"title": "JSON schema for Web Application manifest files",
"type": "object"
}