mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Gadgets
synced 2024-11-30 18:14:21 +00:00
44d3602898
Links the following entries in gadget definitions to the associated page: - scripts - styles - datas - peers - dependencies (only when they are also a gadget) - category (links to MW message page) - messages unserialize(serialize()) hack is a bit ugly, but it works. Co-Authored-By: Siddharth VP <siddharthvp@gmail.com> Bug: T298844 Change-Id: I9154f600997fe693410e7560ed30732102b806aa
112 lines
3.4 KiB
JSON
112 lines
3.4 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-or-later",
|
|
"requires": {
|
|
"MediaWiki": ">= 1.37.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",
|
|
"i18n/api"
|
|
]
|
|
},
|
|
"ExtensionMessagesFiles": {
|
|
"GadgetsAlias": "Gadgets.alias.php",
|
|
"GadgetsNamespaces": "Gadgets.namespaces.php"
|
|
},
|
|
"RawHtmlMessages": [
|
|
"gadgets-definition"
|
|
],
|
|
"AutoloadClasses": {
|
|
"ApiQueryGadgetCategories": "includes/api/ApiQueryGadgetCategories.php",
|
|
"ApiQueryGadgets": "includes/api/ApiQueryGadgets.php",
|
|
"Gadget": "includes/Gadget.php",
|
|
"GadgetHooks": "includes/GadgetHooks.php",
|
|
"GadgetResourceLoaderModule": "includes/GadgetResourceLoaderModule.php",
|
|
"SpecialGadgets": "includes/SpecialGadgets.php",
|
|
"SpecialGadgetUsage": "includes/SpecialGadgetUsage.php",
|
|
"GadgetRepo": "includes/GadgetRepo.php",
|
|
"GadgetDefinitionNamespaceRepo": "includes/GadgetDefinitionNamespaceRepo.php",
|
|
"MediaWikiGadgetsDefinitionRepo": "includes/MediaWikiGadgetsDefinitionRepo.php",
|
|
"GadgetDefinitionContent": "includes/content/GadgetDefinitionContent.php",
|
|
"GadgetDefinitionContentArmor": "includes/content/GadgetDefinitionContentArmor.php",
|
|
"GadgetDefinitionContentHandler": "includes/content/GadgetDefinitionContentHandler.php",
|
|
"GadgetDefinitionValidator": "includes/content/GadgetDefinitionValidator.php",
|
|
"GadgetDefinitionSecondaryDataUpdate": "includes/content/GadgetDefinitionSecondaryDataUpdate.php",
|
|
"GadgetDefinitionDeletionUpdate": "includes/content/GadgetDefinitionDeletionUpdate.php"
|
|
},
|
|
"TestAutoloadClasses": {
|
|
"GadgetTestUtils": "tests/phpunit/GadgetTestUtils.php"
|
|
},
|
|
"Hooks": {
|
|
"PageSaveComplete": "GadgetHooks::onPageSaveComplete",
|
|
"BeforePageDisplay": "GadgetHooks::beforePageDisplay",
|
|
"CodeEditorGetPageLanguage": "GadgetHooks::onCodeEditorGetPageLanguage",
|
|
"ContentHandlerDefaultModelFor": "GadgetHooks::onContentHandlerDefaultModelFor",
|
|
"EditFilterMergedContent": "GadgetHooks::onEditFilterMergedContent",
|
|
"UserGetDefaultOptions": "GadgetHooks::userGetDefaultOptions",
|
|
"GetPreferences": "GadgetHooks::getPreferences",
|
|
"PreferencesGetLegend": "GadgetHooks::onPreferencesGetLegend",
|
|
"ResourceLoaderRegisterModules": "GadgetHooks::registerModules",
|
|
"wgQueryPages": "GadgetHooks::onwgQueryPages",
|
|
"DeleteUnknownPreferences": "GadgetHooks::onDeleteUnknownPreferences"
|
|
},
|
|
"config": {
|
|
"GadgetsRepoClass": {
|
|
"value": "MediaWikiGadgetsDefinitionRepo"
|
|
},
|
|
"SpecialGadgetUsageActiveUsers": {
|
|
"value": true
|
|
}
|
|
},
|
|
"manifest_version": 2
|
|
}
|