mediawiki-extensions-Confir.../extension.json
Amir Aharoni a42d5d4adf Move apihelp messages to a separate file
This is one of the last extensions to be converted to having
the API messages in a separate file (at least out of the extensions
that are used be Wikimedia).

This one is a bit different from the others because it actually as several
extensions with separate i18n files, so it requires extra-careful review,
especially in Gruntfile and the extension.json files.

Bug: T189982
Change-Id: I66faae6fd4ff447327587c89ad2a1704edd1b356
2019-08-31 22:52:29 +03:00

135 lines
3.9 KiB
JSON

{
"@doc": "Please read README.md",
"name": "ConfirmEdit",
"version": "1.6.0",
"author": [
"Brion Vibber",
"Florian Schmidt",
"Sam Reed",
"..."
],
"url": "https://www.mediawiki.org/wiki/Extension:ConfirmEdit",
"descriptionmsg": "captcha-desc",
"license-name": "GPL-2.0-or-later",
"type": "antispam",
"requires": {
"MediaWiki": ">= 1.31.0"
},
"GroupPermissions": {
"*": {
"skipcaptcha": false
},
"user": {
"skipcaptcha": false
},
"autoconfirmed": {
"skipcaptcha": false
},
"bot": {
"skipcaptcha": true
},
"sysop": {
"skipcaptcha": true
}
},
"AvailableRights": [
"skipcaptcha"
],
"ExtensionFunctions": [
"ConfirmEditHooks::confirmEditSetup"
],
"SpecialPages": {
"Captcha": "SpecialCaptcha"
},
"MessagesDirs": {
"ConfirmEdit": [
"i18n",
"i18n/api"
]
},
"ExtensionMessagesFiles": {
"ConfirmEditAlias": "ConfirmEdit.alias.php"
},
"AutoloadClasses": {
"ConfirmEditHooks": "includes/ConfirmEditHooks.php",
"HTMLFancyCaptchaField": "FancyCaptcha/includes/HTMLFancyCaptchaField.php",
"HTMLReCaptchaNoCaptchaField": "ReCaptchaNoCaptcha/includes/HTMLReCaptchaNoCaptchaField.php",
"SimpleCaptcha": "SimpleCaptcha/SimpleCaptcha.php",
"CaptchaStore": "includes/store/CaptchaStore.php",
"CaptchaSessionStore": "includes/store/CaptchaSessionStore.php",
"CaptchaCacheStore": "includes/store/CaptchaCacheStore.php",
"CaptchaHashStore": "includes/store/CaptchaHashStore.php",
"CaptchaTriggers": "includes/CaptchaTriggers.php",
"SpecialCaptcha": "includes/specials/SpecialCaptcha.php",
"CaptchaPreAuthenticationProvider": "includes/auth/CaptchaPreAuthenticationProvider.php",
"CaptchaAuthenticationRequest": "includes/auth/CaptchaAuthenticationRequest.php",
"ReCaptchaNoCaptchaAuthenticationRequest": "ReCaptchaNoCaptcha/includes/ReCaptchaNoCaptchaAuthenticationRequest.php"
},
"ResourceModules": {
"ext.confirmEdit.editPreview.ipwhitelist.styles": {
"styles": "ext.confirmEdit.editPreview.ipwhitelist.styles.css"
},
"ext.confirmEdit.visualEditor": {
"scripts": "ve-confirmedit/ve.init.mw.CaptchaSaveErrorHandler.js",
"targets": [ "desktop", "mobile" ]
},
"ext.confirmEdit.simpleCaptcha": {
"styles": "../SimpleCaptcha/resources/ext.confirmEdit.simpleCaptcha.css"
}
},
"VisualEditorPluginModules": [
"ext.confirmEdit.visualEditor"
],
"ResourceFileModulePaths": {
"localBasePath": "resources",
"remoteExtPath": "ConfirmEdit/resources"
},
"Hooks": {
"EditPageBeforeEditButtons": "ConfirmEditHooks::confirmEditPage",
"EmailUserForm": "ConfirmEditHooks::injectEmailUser",
"EmailUser": "ConfirmEditHooks::confirmEmailUser",
"PageContentSaveComplete": "ConfirmEditHooks::onPageContentSaveComplete",
"EditPage::showEditForm:fields": "ConfirmEditHooks::showEditFormFields",
"EditFilterMergedContent": "ConfirmEditHooks::confirmEditMerged",
"APIGetAllowedParams": "ConfirmEditHooks::onAPIGetAllowedParams",
"TitleReadWhitelist": "ConfirmEditHooks::onTitleReadWhitelist",
"AlternateEditPreview": "ConfirmEditHooks::onAlternateEditPreview",
"AuthChangeFormFields": "ConfirmEditHooks::onAuthChangeFormFields"
},
"AuthManagerAutoConfig": {
"preauth": {
"CaptchaPreAuthenticationProvider":{
"class": "CaptchaPreAuthenticationProvider",
"sort": 10
}
}
},
"config": {
"CaptchaWhitelistIP": false,
"Captcha": null,
"CaptchaTriggers": {
"edit": false,
"create": false,
"sendemail": false,
"addurl": true,
"createaccount": true,
"badlogin": true,
"badloginperuser": true,
"_merge_strategy": "array_plus"
},
"CaptchaTriggersOnNamespace": {
"_merge_strategy": "array_plus_2d"
},
"CaptchaStorageClass": "CaptchaSessionStore",
"CaptchaSessionExpiration": 1800,
"CaptchaBadLoginExpiration": 300,
"CaptchaBadLoginPerUserExpiration": 600,
"AllowConfirmedEmail": false,
"CaptchaBadLoginAttempts": 3,
"CaptchaBadLoginPerUserAttempts": 20,
"CaptchaWhitelist": false,
"CaptchaRegexes": []
},
"manifest_version": 1
}