2015-08-03 06:37:32 +00:00
|
|
|
{
|
|
|
|
"$schema": "http://json-schema.org/schema#",
|
|
|
|
"description": "Gadget definition schema",
|
|
|
|
"type": "object",
|
|
|
|
"additionalProperties": false,
|
|
|
|
"properties": {
|
|
|
|
"settings": {
|
|
|
|
"type": "object",
|
|
|
|
"additionalProperties": false,
|
|
|
|
"properties": {
|
|
|
|
"rights": {
|
|
|
|
"description": "The rights required to be able to enable/load this gadget",
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"default": {
|
|
|
|
"description": "Whether this gadget is enabled by default",
|
|
|
|
"type": "boolean",
|
|
|
|
"default": false
|
|
|
|
},
|
2021-10-17 13:05:15 +00:00
|
|
|
"package": {
|
|
|
|
"description": "Whether this is gadget a packaged ResourceLoader module",
|
|
|
|
"type": "boolean",
|
|
|
|
"default": false
|
|
|
|
},
|
2015-08-03 06:37:32 +00:00
|
|
|
"hidden": {
|
|
|
|
"description": "Whether this gadget is hidden from preferences",
|
|
|
|
"type": "boolean",
|
|
|
|
"default": false
|
|
|
|
},
|
2023-03-06 07:46:37 +00:00
|
|
|
"targets": {
|
|
|
|
"description": "List of ResourceLoader targets the module can run on",
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"type": "string"
|
|
|
|
},
|
|
|
|
"default": [ "desktop" ]
|
|
|
|
},
|
2015-08-03 06:37:32 +00:00
|
|
|
"skins": {
|
|
|
|
"description": "Skins supported by this gadget; empty or true if all skins are supported",
|
|
|
|
"type": [ "array", "boolean" ],
|
|
|
|
"items": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
},
|
2021-12-14 13:10:22 +00:00
|
|
|
"actions": {
|
2020-09-04 03:42:31 +00:00
|
|
|
"description": "Page actions on which to load the gadget",
|
2021-12-14 13:10:22 +00:00
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
},
|
2020-09-04 03:42:31 +00:00
|
|
|
"namespaces": {
|
|
|
|
"description": "Page namespaces in which to load the gadget",
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"type": "number"
|
|
|
|
}
|
|
|
|
},
|
2023-05-22 08:41:15 +00:00
|
|
|
"contentModels": {
|
|
|
|
"description": "Content models on which the gadget is supported",
|
|
|
|
"type": "array",
|
|
|
|
"items": {
|
|
|
|
"type": "string"
|
|
|
|
}
|
|
|
|
},
|
2015-08-03 06:37:32 +00:00
|
|
|
"category": {
|
|
|
|
"description": "Key of the category this gadget belongs to",
|
|
|
|
"type": "string",
|
|
|
|
"default": ""
|
2022-01-11 09:03:44 +00:00
|
|
|
},
|
2023-07-08 15:43:26 +00:00
|
|
|
"supportsUrlLoad": {
|
2022-01-11 09:03:44 +00:00
|
|
|
"description": "Whether this gadget supports ?withgadget query parameter",
|
|
|
|
"type": "boolean",
|
|
|
|
"default": false
|
2022-01-30 13:15:25 +00:00
|
|
|
},
|
|
|
|
"requiresES6": {
|
|
|
|
"description": "Whether this gadget requires ES6",
|
|
|
|
"type": "boolean",
|
|
|
|
"default": false
|
2015-08-03 06:37:32 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"module": {
|
|
|
|
"type": "object",
|
|
|
|
"additionalProperties": false,
|
|
|
|
"properties": {
|
2023-12-11 17:16:30 +00:00
|
|
|
"pages": {
|
2015-08-03 06:37:32 +00:00
|
|
|
"type": "array",
|
2023-12-11 17:16:30 +00:00
|
|
|
"description": "List of JS/CSS/JSON pages included in this gadget"
|
2021-10-17 13:05:15 +00:00
|
|
|
},
|
2015-08-03 06:37:32 +00:00
|
|
|
"dependencies": {
|
|
|
|
"type": "array",
|
|
|
|
"description": "ResourceLoader modules this gadget depends upon"
|
|
|
|
},
|
|
|
|
"messages": {
|
|
|
|
"type": "array",
|
|
|
|
"description": "Messages this gadget depends upon"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|