mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Cite
synced 2024-11-13 17:53:09 +00:00
a227395e3a
Only create a Cite object if we need one. Never clearState, just destroy and recreate later. This makes it less likely that we leak state between parsers, and saves memory and processing on pages without references. It's also preparation to decouple Cite logic from state. Change-Id: I3db517591f4131c23151c76c223af7419cc00ae9
111 lines
2.6 KiB
JSON
111 lines
2.6 KiB
JSON
{
|
|
"name": "Cite",
|
|
"version": "1.0.0",
|
|
"author": [
|
|
"Ævar Arnfjörð Bjarmason",
|
|
"Andrew Garrett",
|
|
"Brion Vibber",
|
|
"Ed Sanders",
|
|
"Marius Hoch",
|
|
"Steve Sanbeg",
|
|
"Trevor Parscal",
|
|
"..."
|
|
],
|
|
"url": "https://www.mediawiki.org/wiki/Extension:Cite",
|
|
"descriptionmsg": "cite-desc",
|
|
"license-name": "GPL-2.0-or-later",
|
|
"type": "parserhook",
|
|
"requires": {
|
|
"MediaWiki": ">= 1.34.0"
|
|
},
|
|
"MessagesDirs": {
|
|
"Cite": [
|
|
"i18n",
|
|
"modules/ve-cite/i18n"
|
|
]
|
|
},
|
|
"Hooks": {
|
|
"APIQuerySiteInfoGeneralInfo": "Cite\\Hooks\\CiteHooks::onAPIQuerySiteInfoGeneralInfo",
|
|
"ContentHandlerDefaultModelFor": "Cite\\Hooks\\CiteHooks::onContentHandlerDefaultModelFor",
|
|
"ParserAfterParse": "Cite\\Hooks\\CiteParserHooks::onParserAfterParse",
|
|
"ParserClearState": "Cite\\Hooks\\CiteParserHooks::onParserClearStateOrCloned",
|
|
"ParserCloned": "Cite\\Hooks\\CiteParserHooks::onParserClearStateOrCloned",
|
|
"ParserFirstCallInit": "Cite\\Hooks\\CiteParserHooks::onParserFirstCallInit",
|
|
"ResourceLoaderGetConfigVars": "Cite\\Hooks\\CiteHooks::onResourceLoaderGetConfigVars",
|
|
"ResourceLoaderRegisterModules": "Cite\\Hooks\\CiteHooks::onResourceLoaderRegisterModules",
|
|
"ResourceLoaderTestModules": "Cite\\Hooks\\CiteHooks::onResourceLoaderTestModules"
|
|
},
|
|
"ResourceModules": {
|
|
"ext.cite.styles": {
|
|
"styles": {
|
|
"ext.cite.styles.css": {},
|
|
"ext.cite.print.css": {
|
|
"media": "print"
|
|
}
|
|
},
|
|
"skinStyles": {
|
|
"minerva": "ext.cite.styles.minerva.less"
|
|
},
|
|
"targets": [
|
|
"desktop",
|
|
"mobile"
|
|
]
|
|
},
|
|
"ext.cite.style": {
|
|
"class": "Cite\\ResourceLoader\\CiteCSSFileModule",
|
|
"styles": "ext.cite.style.css",
|
|
"targets": [
|
|
"desktop",
|
|
"mobile"
|
|
]
|
|
}
|
|
},
|
|
"ResourceFileModulePaths": {
|
|
"localBasePath": "modules",
|
|
"remoteExtPath": "Cite/modules"
|
|
},
|
|
"attributes": {
|
|
"CodeMirror": {
|
|
"TagModes": {
|
|
"ref": "text/mediawiki"
|
|
}
|
|
},
|
|
"EventLogging": {
|
|
"Schemas": {
|
|
"ReferencePreviewsBaseline": 19489336,
|
|
"ReferencePreviewsCite": 19489328
|
|
}
|
|
},
|
|
"VisualEditor": {
|
|
"PluginModules": [
|
|
"ext.cite.visualEditor"
|
|
]
|
|
}
|
|
},
|
|
"ConfigRegistry": {
|
|
"cite": "GlobalVarConfig::newInstance"
|
|
},
|
|
"config": {
|
|
"CiteBookReferencing": {
|
|
"description": "Development feature flag for Book Referencing, a way to nest citations. Please don't enable in production.",
|
|
"public": true,
|
|
"value": false
|
|
},
|
|
"CiteVisualEditorOtherGroup": {
|
|
"public": true,
|
|
"value": false
|
|
},
|
|
"CiteResponsiveReferences": {
|
|
"public": true,
|
|
"value": true
|
|
}
|
|
},
|
|
"AutoloadNamespaces": {
|
|
"Cite\\": "src/"
|
|
},
|
|
"TrackingCategories": [
|
|
"cite-tracking-category-cite-error"
|
|
],
|
|
"manifest_version": 2
|
|
}
|