mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/ConfirmEdit
synced 2024-11-24 00:04:15 +00:00
106a63e3b4
Bug: T378207 Change-Id: I62b7a418be4cb3a4a51937ae331a4aad22dc5732
75 lines
2.2 KiB
JSON
75 lines
2.2 KiB
JSON
{
|
|
"name": "hCaptcha",
|
|
"author": [
|
|
"Sam Reed",
|
|
"..."
|
|
],
|
|
"url": "https://www.mediawiki.org/wiki/Extension:ConfirmEdit",
|
|
"descriptionmsg": "hcaptcha-desc",
|
|
"license-name": "GPL-2.0-or-later",
|
|
"type": "antispam",
|
|
"MessagesDirs": {
|
|
"hCaptcha": [
|
|
"i18n"
|
|
]
|
|
},
|
|
"config": {
|
|
"CaptchaClass": {
|
|
"value": "MediaWiki\\Extension\\ConfirmEdit\\hCaptcha\\HCaptcha"
|
|
},
|
|
"HCaptchaProxy": {
|
|
"description": "Proxy to use for outbound PHP web requests to hCaptcha servers (HCaptchaVerifyUrl)",
|
|
"value": false
|
|
},
|
|
"HCaptchaSiteKey": {
|
|
"description": "Sitekey from hCaptcha (requires creating an account)",
|
|
"value": ""
|
|
},
|
|
"HCaptchaSecretKey": {
|
|
"description": "Secret key from hCaptcha (requires creating an account)",
|
|
"value": ""
|
|
},
|
|
"HCaptchaSendRemoteIP": {
|
|
"description": "Whether to send the client's IP address to hCaptcha",
|
|
"value": false
|
|
},
|
|
"HCaptchaApiUrl": {
|
|
"description": "Url that the hCaptcha JS is loaded from; may want to use https://cn1.hcaptcha.com/1/api.js?endpoint=https://cn1.hcaptcha.com&assethost=https://assets-cn1.hcaptcha.com&imghost=https://imgs-cn1.hcaptcha.com&reportapi=https://reportapi-cn1.hcaptcha.com for Chinese visitors",
|
|
"value": "https://js.hcaptcha.com/1/api.js"
|
|
},
|
|
"HCaptchaVerifyUrl": {
|
|
"description": "Url that the hCaptcha requested is verified against; may want to use https://cn1.hcaptcha.com/siteverify if server is in China",
|
|
"value": "https://api.hcaptcha.com/siteverify"
|
|
}
|
|
},
|
|
"ConfigRegistry": {
|
|
"hcaptcha": "GlobalVarConfig::newInstance"
|
|
},
|
|
"ResourceFileModulePaths": {
|
|
"localBasePath": "../resources",
|
|
"remoteExtPath": "ConfirmEdit/resources"
|
|
},
|
|
"ResourceModules": {
|
|
"ext.confirmEdit.hCaptcha.visualEditor": {
|
|
"dependencies": [
|
|
"web2017-polyfills"
|
|
],
|
|
"packageFiles": [
|
|
"ve-confirmedit-hCaptcha/ve.init.mw.HCaptchaSaveErrorHandler.js",
|
|
{
|
|
"name": "ve-confirmedit-hCaptcha/config.json",
|
|
"callback": "MediaWiki\\Extension\\ConfirmEdit\\hCaptcha\\Hooks\\ResourceLoaderHooks::getHCaptchaResourceLoaderConfig"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"attributes": {
|
|
"VisualEditor": {
|
|
"PluginModules": [
|
|
"ext.confirmEdit.hCaptcha.visualEditor"
|
|
]
|
|
}
|
|
},
|
|
"manifest_version": 2
|
|
}
|