mediawiki-extensions-Gadgets/extension.json
Kunal Mehta 519f30355e Implement Gadgets definition namespace repo
Implements:
* Gadget definition content and content handler
* Basic validation for gadget definition content
* GadgetDefinitionNamespace implementation of GadgetRepo
* DataUpdates upon editing/deletion of Gadget definition pages
* EditFilterMerged hook for improved error messages
* 'GadgetsRepoClass' option to switch GadgetRepo implementation used
* Lazy-load the GadgetResourceLoaderModule class so we don't need to
load each individual gadget object unless its needed

Note that Special:Gadgets's export feature intentionally doesn't work
yet, and will be fixed in a follow up patch.

Bug: T106177
Change-Id: Ib11db5fb0f7b46793bfa956cf1367f1dc1059b1c
2015-11-20 12:01:21 -06:00

118 lines
3.1 KiB
JSON

{
"name": "Gadgets",
"author": [
"Daniel Kinzler",
"Max Semenik"
],
"url": "https://www.mediawiki.org/wiki/Extension:Gadgets",
"descriptionmsg": "gadgets-desc",
"license-name": "GPL-2.0+",
"type": "other",
"namespaces": [
{
"id": 2300,
"constant": "NS_GADGET",
"name": "Gadget",
"protection": "gadgets-edit"
},
{
"id": 2301,
"constant": "NS_GADGET_TALK",
"name": "Gadget_talk"
},
{
"id": 2302,
"constant": "NS_GADGET_DEFINITION",
"name": "Gadget_definition",
"protection": "gadgets-definition-edit",
"capitallinkoverride": false,
"defaultcontentmodel": "GadgetDefinition"
},
{
"id": 2303,
"constant": "NS_GADGET_DEFINITION_TALK",
"name": "Gadget_definition_talk"
}
],
"ContentHandlers": {
"GadgetDefinition": "GadgetDefinitionContentHandler"
},
"AvailableRights": [
"gadgets-edit",
"gadgets-definition-edit"
],
"SpecialPages": {
"Gadgets": "SpecialGadgets",
"GadgetUsage": "SpecialGadgetUsage"
},
"APIListModules": {
"gadgetcategories": "ApiQueryGadgetCategories",
"gadgets": "ApiQueryGadgets"
},
"MessagesDirs": {
"Gadgets": [
"i18n"
]
},
"ExtensionMessagesFiles": {
"GadgetsAlias": "Gadgets.alias.php",
"GadgetsNamespaces": "Gadgets.namespaces.php"
},
"AutoloadClasses": {
"ApiQueryGadgetCategories": "api/ApiQueryGadgetCategories.php",
"ApiQueryGadgets": "api/ApiQueryGadgets.php",
"Gadget": "Gadgets_body.php",
"GadgetHooks": "GadgetHooks.php",
"GadgetResourceLoaderModule": "includes/GadgetResourceLoaderModule.php",
"SpecialGadgets": "SpecialGadgets.php",
"SpecialGadgetUsage": "SpecialGadgetUsage.php",
"GadgetRepo": "includes/GadgetRepo.php",
"GadgetDefinitionNamespaceRepo": "includes/GadgetDefinitionNamespaceRepo.php",
"MediaWikiGadgetsDefinitionRepo": "includes/MediaWikiGadgetsDefinitionRepo.php",
"GadgetDefinitionContent": "includes/content/GadgetDefinitionContent.php",
"GadgetDefinitionContentHandler": "includes/content/GadgetDefinitionContentHandler.php",
"GadgetDefinitionValidator": "includes/content/GadgetDefinitionValidator.php",
"GadgetDefinitionSecondaryDataUpdate": "includes/content/GadgetDefinitionSecondaryDataUpdate.php",
"GadgetDefinitionDeletionUpdate": "includes/content/GadgetDefinitionDeletionUpdate.php"
},
"Hooks": {
"ArticleSaveComplete": [
"GadgetHooks::articleSaveComplete"
],
"BeforePageDisplay": [
"GadgetHooks::beforePageDisplay"
],
"CodeEditorGetPageLanguage": [
"GadgetHooks::onCodeEditorGetPageLanguage"
],
"ContentHandlerDefaultModelFor": [
"GadgetHooks::onContentHandlerDefaultModelFor"
],
"EditFilterMergedContent": [
"GadgetHooks::onEditFilterMergedContent"
],
"PageContentInsertComplete": [
"GadgetHooks::onPageContentInsertComplete"
],
"UserGetDefaultOptions": [
"GadgetHooks::userGetDefaultOptions"
],
"GetPreferences": [
"GadgetHooks::getPreferences"
],
"ResourceLoaderRegisterModules": [
"GadgetHooks::registerModules"
],
"UnitTestsList": [
"GadgetHooks::onUnitTestsList"
],
"wgQueryPages": [
"GadgetHooks::onwgQueryPages"
]
},
"config": {
"GadgetsRepoClass": "MediaWikiGadgetsDefinitionRepo"
},
"manifest_version": 1
}