mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/RelatedArticles
synced 2024-11-25 08:46:44 +00:00
0806dbdb42
Changes: - introduced new config variable: RelatedArticlesEnabledSamplingRate - do not trigger RelatedArticles clientside scripts if feature is disabled - do not log events when navigator.sendBeacon is not available Bug: T156039 Change-Id: I7e9773131c5b9aea9e9fb554d4508842cdedede7
113 lines
3 KiB
JSON
113 lines
3 KiB
JSON
{
|
|
"name": "RelatedArticles",
|
|
"version": "2.1.0",
|
|
"author": [
|
|
"Roland Unger",
|
|
"Hans Musil",
|
|
"Matthias Mullie",
|
|
"Sam Smith"
|
|
],
|
|
"url": "https://www.mediawiki.org/wiki/Extension:RelatedArticles",
|
|
"descriptionmsg": "relatedarticles-desc",
|
|
"license-name": "GPL-2.0",
|
|
"type": "betafeatures",
|
|
"AutoloadClasses": {
|
|
"RelatedArticles\\Hooks": "includes/Hooks.php",
|
|
"RelatedArticles\\SidebarHooks": "includes/SidebarHooks.php",
|
|
"RelatedArticles\\FooterHooks": "includes/FooterHooks.php"
|
|
},
|
|
"ExtensionMessagesFiles": {
|
|
"RelatedArticlesMagic": "RelatedArticles.i18n.magic.php"
|
|
},
|
|
"Hooks": {
|
|
"ResourceLoaderTestModules": [
|
|
"RelatedArticles\\Hooks::onResourceLoaderTestModules"
|
|
],
|
|
|
|
"ParserFirstCallInit": [
|
|
"RelatedArticles\\Hooks::onParserFirstCallInit"
|
|
],
|
|
"OutputPageParserOutput": [
|
|
"RelatedArticles\\Hooks::onOutputPageParserOutput"
|
|
],
|
|
|
|
"SidebarBeforeOutput": [
|
|
"RelatedArticles\\SidebarHooks::onSidebarBeforeOutput"
|
|
],
|
|
|
|
"GetBetaFeaturePreferences": [
|
|
"RelatedArticles\\FooterHooks::onGetBetaFeaturePreferences"
|
|
],
|
|
"MakeGlobalVariablesScript": [
|
|
"RelatedArticles\\FooterHooks::onMakeGlobalVariablesScript"
|
|
],
|
|
"BeforePageDisplay": [
|
|
"RelatedArticles\\FooterHooks::onBeforePageDisplay"
|
|
],
|
|
"EventLoggingRegisterSchemas": [
|
|
"RelatedArticles\\FooterHooks::onEventLoggingRegisterSchemas"
|
|
],
|
|
"ResourceLoaderGetConfigVars": [
|
|
"RelatedArticles\\FooterHooks::onResourceLoaderGetConfigVars"
|
|
],
|
|
"ResourceLoaderRegisterModules": [
|
|
"RelatedArticles\\FooterHooks::onResourceLoaderRegisterModules"
|
|
]
|
|
},
|
|
"MessagesDirs": {
|
|
"RelatedArticles": [
|
|
"i18n"
|
|
]
|
|
},
|
|
"manifest_version": 1,
|
|
"ResourceModules": {
|
|
"ext.relatedArticles.readMore.gateway": {
|
|
"scripts": [
|
|
"resources/ext.relatedArticles.readMore.gateway/RelatedPagesGateway.js"
|
|
],
|
|
"dependencies": [
|
|
"oojs"
|
|
],
|
|
"targets": [
|
|
"mobile",
|
|
"desktop"
|
|
]
|
|
},
|
|
"ext.relatedArticles.readMore.bootstrap": {
|
|
"scripts": [
|
|
"resources/ext.relatedArticles.readMore.bootstrap/index.js"
|
|
],
|
|
"dependencies": [
|
|
"mediawiki.experiments",
|
|
"mediawiki.user",
|
|
"mediawiki.api",
|
|
"mediawiki.Uri",
|
|
"mediawiki.viewport",
|
|
"ext.relatedArticles.readMore.gateway",
|
|
"jquery.throttle-debounce"
|
|
],
|
|
"targets": [
|
|
"mobile",
|
|
"desktop"
|
|
]
|
|
}
|
|
},
|
|
"config": {
|
|
"RelatedArticlesShowInSidebar": true,
|
|
"RelatedArticlesShowInFooter": false,
|
|
"RelatedArticlesUseCirrusSearch": false,
|
|
"RelatedArticlesOnlyUseCirrusSearch": false,
|
|
"RelatedArticlesLoggingSamplingRate": 0.01,
|
|
"RelatedArticlesEnabledSamplingRate": 1,
|
|
"@RelatedArticlesFooterBlacklistedSkins": "List of skin names (e.g. 'minerva') where related articles won't be shown in the footer. If absent related articles will show in stable on Minerva or beta on all other skins.",
|
|
"RelatedArticlesFooterBlacklistedSkins": []
|
|
},
|
|
"ConfigRegistry": {
|
|
"RelatedArticles": "GlobalVarConfig::newInstance"
|
|
},
|
|
"ResourceFileModulePaths": {
|
|
"localBasePath": "",
|
|
"remoteExtPath": "RelatedArticles"
|
|
}
|
|
}
|