|
39 | 39 | "format": "uri"
|
40 | 40 | },
|
41 | 41 | "theme_color": {
|
42 |
| - "description": "background color for splash screen and icons", |
| 42 | + "description": "The default theme color for the browsing contexts of an application", |
43 | 43 | "type": "string"
|
44 | 44 | },
|
45 | 45 | "dir": {
|
|
68 | 68 | "prefer_related_applications": {
|
69 | 69 | "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.",
|
70 | 70 | "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 | + } |
71 | 93 | }
|
72 |
| - |
73 | 94 | },
|
74 | 95 |
|
75 | 96 | "definitions": {
|
|
97 | 118 | "description": "The type member of an icon is a hint as to the media type of the icon.",
|
98 | 119 | "type": "string",
|
99 | 120 | "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" |
100 | 130 | }
|
101 | 131 | }
|
102 | 132 | },
|
|
117 | 147 | "type": "string"
|
118 | 148 | }
|
119 | 149 | }
|
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 | + }, |
121 | 180 | }
|
122 | 181 | }
|
0 commit comments