mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Popups
synced 2024-11-13 17:56:55 +00:00
bbe958bb5d
For the work on T113243, the Popups extension should be structured in a more flexible way. This is achieved with this change. Following has changed: * The main/core logic of Popups now lives in ext.popups.core to be shareable between implementations * The desktop specific logic lives in ext.popups.desktop now, the frontend init code in ext.popups.desktopTarget and the desktop renderer in ext.popups.renderer.desktopRenderer This change doesn't change the functionality of Popups. Change-Id: I72121e0a1e4b2952f85dc1bc8cf59d06b8d22f47
90 lines
1.9 KiB
JSON
90 lines
1.9 KiB
JSON
{
|
|
"name": "Popups",
|
|
"author": [
|
|
"Prateek Saxena",
|
|
"Yair Rand"
|
|
],
|
|
"url": "https://www.mediawiki.org/wiki/Extension:Popups",
|
|
"descriptionmsg": "popups-desc",
|
|
"license-name": "GPL-2.0+",
|
|
"type": "betafeatures",
|
|
"AutoloadClasses": {
|
|
"PopupsHooks": "Popups.hooks.php"
|
|
},
|
|
"ConfigRegistry": {
|
|
"popups": "GlobalVarConfig::newInstance"
|
|
},
|
|
"Hooks": {
|
|
"GetBetaFeaturePreferences": [
|
|
"PopupsHooks::getPreferences"
|
|
],
|
|
"BeforePageDisplay": [
|
|
"PopupsHooks::onBeforePageDisplay"
|
|
],
|
|
"ResourceLoaderTestModules": [
|
|
"PopupsHooks::onResourceLoaderTestModules"
|
|
],
|
|
"ResourceLoaderRegisterModules": [
|
|
"PopupsHooks::onResourceLoaderRegisterModules"
|
|
],
|
|
"ResourceLoaderGetConfigVars": [
|
|
"PopupsHooks::onResourceLoaderGetConfigVars"
|
|
]
|
|
},
|
|
"MessagesDirs": {
|
|
"Popups": [
|
|
"i18n"
|
|
]
|
|
},
|
|
"EventLoggingSchemas": {
|
|
"Popups": 11625443
|
|
},
|
|
"config": {
|
|
"@PopupsBetaFeature": "@var bool: Whether the extension should be enabled as an opt-in beta feature. If true, the BetaFeatures extension must be installed. False by default.",
|
|
"PopupsBetaFeature": false,
|
|
"PopupsSurveyLink": false
|
|
},
|
|
"ResourceModules": {
|
|
"ext.popups.core": {
|
|
"scripts": [
|
|
"resources/ext.popups.core.js"
|
|
],
|
|
"dependencies": [
|
|
"mediawiki.api",
|
|
"mediawiki.Title",
|
|
"mediawiki.Uri",
|
|
"mediawiki.RegExp"
|
|
],
|
|
"targets": [
|
|
"desktop",
|
|
"mobile"
|
|
]
|
|
},
|
|
"ext.popups.targets.desktopTarget": {
|
|
"scripts": [
|
|
"resources/ext.popups.targets/desktopTarget.js"
|
|
],
|
|
"dependencies": [
|
|
"jquery.jStorage",
|
|
"jquery.client",
|
|
"ext.popups.core",
|
|
"ext.popups.renderer.desktopRenderer"
|
|
],
|
|
"targets": [ "desktop" ]
|
|
},
|
|
"ext.popups.renderer.desktopRenderer": {
|
|
"scripts": [
|
|
"resources/ext.popups.renderer/desktopRenderer.js"
|
|
],
|
|
"dependencies": [
|
|
"ext.popups.core"
|
|
]
|
|
}
|
|
},
|
|
"ResourceFileModulePaths": {
|
|
"localBasePath": "",
|
|
"remoteExtPath": "Popups"
|
|
},
|
|
"manifest_version": 1
|
|
}
|