Skip to content
This repository was archived by the owner on Jan 14, 2022. It is now read-only.

Commit b130a52

Browse files
authored
Merge pull request #67 from pwa-builder/manifest-with-updated-props
Updated web manifest to modern schema
2 parents a377657 + f4e15df commit b130a52

File tree

1 file changed

+62
-3
lines changed

1 file changed

+62
-3
lines changed

lib/manifestTools/assets/web-manifest.json

Lines changed: 62 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
"format": "uri"
4040
},
4141
"theme_color": {
42-
"description": "background color for splash screen and icons",
42+
"description": "The default theme color for the browsing contexts of an application",
4343
"type": "string"
4444
},
4545
"dir": {
@@ -68,8 +68,29 @@
6868
"prefer_related_applications": {
6969
"description": "A boolean value that is used as a hint for the user agent to say that related applications should be preferred over the web application.",
7070
"type": "boolean"
71+
},
72+
"categories": {
73+
"description": "An array of strings defining the expected application categories to which the web application belongs. While any string is considered valid, W3C maintains a list of known category strings at https://github.com/w3c/manifest/wiki/Categories",
74+
"type": "array"
75+
},
76+
"screenshots": {
77+
"description": "An array of images representing the application in common usage scenarios.",
78+
"type": "array",
79+
"items": {
80+
"$ref": "#/definitions/icon"
81+
}
82+
},
83+
"iarc_rating_id": {
84+
"description": "The International Age Rating Coalition (IARC) certification code of the web application. It is intended to be used to determine which ages the web application is appropriate for.",
85+
"type": "string"
86+
},
87+
"shortcuts": {
88+
"description": "An array of shortcut items that provide access to key tasks within a web application.",
89+
"type": "array",
90+
"items": {
91+
"$ref": "#/definitions/shortcutItem"
92+
}
7193
}
72-
7394
},
7495

7596
"definitions": {
@@ -97,6 +118,15 @@
97118
"description": "The type member of an icon is a hint as to the media type of the icon.",
98119
"type": "string",
99120
"pattern": "^[\\sa-z0-9\\-+;\\.=\\/]+$"
121+
},
122+
"purpose": {
123+
"description": "An unordered set of unique space-separated tokens that are ASCII case-insensitive. The allowed values are the icon purposes.",
124+
"type": "string",
125+
"enum": [ "badge", "maskable", "any" ]
126+
},
127+
"platform": {
128+
"description": "The platform to which a containing object applies.",
129+
"type": "string"
100130
}
101131
}
102132
},
@@ -117,6 +147,35 @@
117147
"type": "string"
118148
}
119149
}
120-
}
150+
},
151+
"shortcutItem": {
152+
"type": "object",
153+
"properties": {
154+
"name": {
155+
"description": "The name of the shortcut as it is usually displayed to the user in a context menu.",
156+
"type": "string"
157+
},
158+
"short_name": {
159+
"description": "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.",
160+
"type": "string"
161+
},
162+
"description": {
163+
"description": "Describes the purpose of the shortcut. User agents MAY expose this information to assistive technology",
164+
"type": "string"
165+
},
166+
"url": {
167+
"description": "The URL within the application's scope that opens when the associated shortcut is activated.",
168+
"type": "string",
169+
"format": "uri"
170+
},
171+
"icons": {
172+
"description": "The images to serve as iconic representations of the shortcut in various contexts.",
173+
"type": "array",
174+
"items": {
175+
"$ref": "#/definitions/icon"
176+
}
177+
}
178+
}
179+
},
121180
}
122181
}

0 commit comments

Comments
 (0)