mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Popups
synced 2024-11-12 09:18:59 +00:00
4bc3aeeaa0
Per I28003c5898d64031e1efb212cb0bec58ff44b958 Popups require at least MediaWiki version 1.30. Documentation should respect that Change-Id: Ifc87ac5cdcf61ae54cefe3f6ccab7aac5c52e0a6
137 lines
4.8 KiB
JSON
137 lines
4.8 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",
|
|
"requires": {
|
|
"MediaWiki" : ">= 1.30.0"
|
|
},
|
|
"AutoloadClasses": {
|
|
"Popups\\PopupsHooks": "includes/PopupsHooks.php",
|
|
"Popups\\PopupsContext": "includes/PopupsContext.php",
|
|
"Popups\\PopupsGadgetsIntegration": "includes/PopupsGadgetsIntegration.php",
|
|
"Popups\\UserPreferencesChangeHandler": "includes/UserPreferencesChangeHandler.php",
|
|
"Popups\\EventLogging\\EventLogger": "includes/EventLogging/EventLogger.php",
|
|
"Popups\\EventLogging\\NullLogger": "includes/EventLogging/NullLogger.php",
|
|
"Popups\\EventLogging\\MWEventLogger": "includes/EventLogging/MWEventLogger.php",
|
|
"Popups\\EventLogging\\EventLoggerFactory": "includes/EventLogging/EventLoggerFactory.php"
|
|
},
|
|
"ConfigRegistry": {
|
|
"popups": "GlobalVarConfig::newInstance"
|
|
},
|
|
"Hooks": {
|
|
"GetBetaFeaturePreferences": [
|
|
"Popups\\PopupsHooks::onGetBetaPreferences"
|
|
],
|
|
"BeforePageDisplay": [
|
|
"Popups\\PopupsHooks::onBeforePageDisplay"
|
|
],
|
|
"ResourceLoaderGetConfigVars": [
|
|
"Popups\\PopupsHooks::onResourceLoaderGetConfigVars"
|
|
],
|
|
"GetPreferences": [
|
|
"Popups\\PopupsHooks::onGetPreferences"
|
|
],
|
|
"PreferencesFormPreSave" : [
|
|
"Popups\\UserPreferencesChangeHandler::onPreferencesFormPreSave"
|
|
],
|
|
"UserGetDefaultOptions": [
|
|
"Popups\\PopupsHooks::onUserGetDefaultOptions"
|
|
],
|
|
"MakeGlobalVariablesScript": [
|
|
"Popups\\PopupsHooks::onMakeGlobalVariablesScript"
|
|
]
|
|
},
|
|
"MessagesDirs": {
|
|
"Popups": [
|
|
"i18n"
|
|
]
|
|
},
|
|
"EventLoggingSchemas": {
|
|
"Popups": 16364296
|
|
},
|
|
"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,
|
|
"@PopupsSchemaSamplingRate": "@var number: Sample rate for logging events to Schema:Popups.",
|
|
"PopupsSchemaSamplingRate": 0,
|
|
"@PopupsHideOptInOnPreferencesPage": "@var bool: Whether the option to enable/disable Page Previews should be hidden on Preferences page. Please note if PopupsBetaFeature is set to true this option will be always hidden. False by default",
|
|
"PopupsHideOptInOnPreferencesPage": false,
|
|
"@PopupsOptInDefaultState": "@var string:['1'|'0'] Default Page Previews visibility. Has to be a string as a compatibility with beta feature settings",
|
|
"PopupsOptInDefaultState": "0",
|
|
"@PopupsConflictingNavPopupsGadgetName": "@var string: Navigation popups gadget name",
|
|
"PopupsConflictingNavPopupsGadgetName": "Navigation_popups",
|
|
"@PopupsGateway": "Which gateway to use for fetching Popups data. Available options: [mwApiPlain|restbasePlain|restbaseHTML]. Full and always up to date list is available in src/gateway/index.js",
|
|
"PopupsGateway": "mwApiPlain",
|
|
"@PopupsAnonsEnabledSamplingRate": "Sampling rate for showing popups to anonymous users.",
|
|
"PopupsAnonsEnabledSamplingRate": 0.9,
|
|
"@PopupsStatsvSamplingRate": "Sampling rate for logging performance data to statsv.",
|
|
"PopupsStatsvSamplingRate": 0
|
|
},
|
|
"ResourceModules": {
|
|
"ext.popups.images": {
|
|
"selector": ".mw-ui-icon-{name}:before",
|
|
"class": "ResourceLoaderImageModule",
|
|
"prefix": "mw-ui",
|
|
"images": {
|
|
"popups-settings": "resources/ext.popups.images/cog.svg",
|
|
"popups-close": "resources/ext.popups.images/close.svg"
|
|
}
|
|
},
|
|
"ext.popups": {
|
|
"scripts": [
|
|
"resources/dist/index.js"
|
|
],
|
|
"templates": {
|
|
"preview.mustache": "resources/ext.popups/templates/preview.mustache",
|
|
"preview-empty.mustache": "resources/ext.popups/templates/preview-empty.mustache",
|
|
"settings.mustache": "resources/ext.popups/templates/settings.mustache"
|
|
},
|
|
"styles": [
|
|
"resources/ext.popups/styles/ext.popups.core.less",
|
|
"resources/ext.popups/styles/ext.popups.animation.less",
|
|
"resources/ext.popups/styles/ext.popups.settings.less"
|
|
],
|
|
"messages": [
|
|
"popups-settings-title",
|
|
"popups-settings-description",
|
|
"popups-settings-option-simple",
|
|
"popups-settings-option-simple-description",
|
|
"popups-settings-option-advanced",
|
|
"popups-settings-option-advanced-description",
|
|
"popups-settings-option-off",
|
|
"popups-settings-save",
|
|
"popups-settings-cancel",
|
|
"popups-settings-enable",
|
|
"popups-settings-help",
|
|
"popups-settings-help-ok",
|
|
"popups-send-feedback",
|
|
"popups-preview-no-preview",
|
|
"popups-preview-footer-read"
|
|
],
|
|
"dependencies": [
|
|
"ext.popups.images",
|
|
"mediawiki.experiments",
|
|
"mediawiki.storage",
|
|
"mediawiki.Title",
|
|
"mediawiki.jqueryMsg",
|
|
"mediawiki.ui.button",
|
|
"mediawiki.ui.icon",
|
|
"mediawiki.Uri",
|
|
"mediawiki.user",
|
|
"jquery.hidpi"
|
|
]
|
|
}
|
|
},
|
|
"ResourceFileModulePaths": {
|
|
"localBasePath": "",
|
|
"remoteExtPath": "Popups"
|
|
},
|
|
"manifest_version": 1
|
|
}
|