diff options
Diffstat (limited to 'CheckUser/extension.json')
-rw-r--r-- | CheckUser/extension.json | 222 |
1 files changed, 174 insertions, 48 deletions
diff --git a/CheckUser/extension.json b/CheckUser/extension.json index 3ca0ad76..72336eb3 100644 --- a/CheckUser/extension.json +++ b/CheckUser/extension.json @@ -1,6 +1,6 @@ { "name": "CheckUser", - "version": "2.4", + "version": "2.5", "author": [ "Tim Starling", "Aaron Schulz" @@ -10,7 +10,10 @@ "license-name": "GPL-2.0-or-later", "type": "specialpage", "requires": { - "MediaWiki": ">= 1.31.0" + "MediaWiki": ">= 1.35.0", + "platform": { + "ext-openssl": "*" + } }, "ExtensionMessagesFiles": { "CheckUserAliases": "CheckUser.alias.php" @@ -49,81 +52,184 @@ }, "CheckUserGBtoollink": { "value": false, - "description": "Whether to add links for glboally blocking accounts shown in Special:CheckUser results" + "description": "Whether to add links for globally blocking accounts shown in Special:CheckUser results" }, "CheckUserLogLogins": { "value": false, "description": "Whether login attempts should be logged in CheckUser logs" + }, + "CheckUserLogSuccessfulBotLogins": { + "value": true, + "description": "Whether successful login attempts of accounts in the 'bot' user group should be logged in CheckUser logs (assuming wgCheckUserLogLogins is also true)" + }, + "CheckUserEnableSpecialInvestigate": { + "value": false, + "description": "Enables Special:Investigate" + }, + "CheckUserLogAdditionalRights": { + "value": [], + "description": "Additional rights to be used when adding CheckUser log entries" + }, + "CheckUserMaximumRowCount": { + "value": 5000, + "description": "Maximum number of rows in cu_changes to be used in any query" } }, "APIListModules": { "checkuser": "ApiQueryCheckUser", "checkuserlog": "ApiQueryCheckUserLog" }, + "HookHandlers": { + "preferences": { + "class": "MediaWiki\\CheckUser\\HookHandler\\Preferences" + } + }, "Hooks": { "RecentChange_save": [ - "CheckUserHooks::updateCheckUserData" - ], - "EmailUser": [ - "CheckUserHooks::updateCUEmailData" - ], - "User::mailPasswordInternal": [ - "CheckUserHooks::updateCUPasswordResetData" - ], - "LocalUserCreated": [ - "CheckUserHooks::onLocalUserCreated" - ], - "UserMergeAccountFields": [ - "CheckUserHooks::onUserMergeAccountFields" - ], - "RenameUserSQL": [ - "CheckUserHooks::onRenameUserSQL" - ], - "ArticleEditUpdatesDeleteFromRecentchanges": [ + "CheckUserHooks::updateCheckUserData", "CheckUserHooks::maybePruneIPData" ], - "ParserTestTables": [ - "CheckUserHooks::checkUserParserTestTables" - ], - "LoadExtensionSchemaUpdates": [ - "CheckUserHooks::onLoadExtensionSchemaUpdates" - ], - "ContributionsToolLinks": [ - "CheckUserHooks::checkUserContributionsLinks" - ], - "PerformRetroactiveAutoblock": [ - "CheckUserHooks::doRetroactiveAutoblock" - ], - "AuthManagerLoginAuthenticateAudit": [ - "CheckUserHooks::onAuthManagerLoginAuthenticateAudit" - ] + "EmailUser": "CheckUserHooks::updateCUEmailData", + "User::mailPasswordInternal": "CheckUserHooks::updateCUPasswordResetData", + "LocalUserCreated": "CheckUserHooks::onLocalUserCreated", + "UserMergeAccountFields": "CheckUserHooks::onUserMergeAccountFields", + "RenameUserSQL": "CheckUserHooks::onRenameUserSQL", + "ParserTestTables": "CheckUserHooks::checkUserParserTestTables", + "LoadExtensionSchemaUpdates": "CheckUserHooks::onLoadExtensionSchemaUpdates", + "ContributionsToolLinks": "CheckUserHooks::checkUserContributionsLinks", + "PerformRetroactiveAutoblock": "CheckUserHooks::doRetroactiveAutoblock", + "AuthManagerLoginAuthenticateAudit": "CheckUserHooks::onAuthManagerLoginAuthenticateAudit", + "SpecialPage_initList": "CheckUserHooks::onSpecialPage_initList", + "GetPreferences": "preferences" }, "MessagesDirs": { "CheckUser": [ - "i18n" + "i18n", + "i18n/api" ] }, + "attributes": { + "EventLogging": { + "Schemas": { + "SpecialInvestigate": 20261100 + } + } + }, "ResourceModules": { "ext.checkUser": { - "scripts": "modules/ext.checkuser.cidr.js", + "localBasePath": "modules/ext.checkUser", + "remoteExtPath": "CheckUser/modules/ext.checkUser", + "scripts": [ + "cidr.js", + "caMultiLock.js" + ], "dependencies": [ "mediawiki.util" + ], + "messages": [ + "checkuser-centralauth-multilock" + ] + }, + "ext.checkUser.investigate.styles": { + "localBasePath": "modules/ext.checkUser.investigate.styles/", + "remoteExtPath": "CheckUser/modules/ext.checkUser.investigate.styles/", + "styles": [ + "investigate.less" ] }, - "ext.checkUser.caMultiLock": { - "scripts": "modules/ext.checkuser.caMultiLock.js", + "ext.checkUser.investigate": { + "localBasePath": "modules/ext.checkUser.investigate", + "remoteExtPath": "CheckUser/modules/ext.checkUser.investigate", + "packageFiles": [ + "init.js", + "tables.js", + "copy.js", + "blockform.js", + { + "name": "message.json", + "callback": "MediaWiki\\CheckUser\\ToolLinksMessages::getParsedMessage", + "callbackParam": "checkuser-investigate-compare-toollinks" + } + ], "dependencies": [ - "mediawiki.util" + "jquery.tablesorter", + "oojs-ui-widgets", + "oojs-ui.styles.icons-editing-core", + "oojs-ui.styles.icons-editing-advanced", + "oojs-ui.styles.icons-interactions", + "oojs-ui.styles.icons-moderation", + "oojs-ui.styles.icons-user", + "mediawiki.storage", + "mediawiki.Title", + "mediawiki.Uri", + "mediawiki.widgets" ], "messages": [ - "checkuser-centralauth-multilock" + "checkuser-investigate-compare-copy-button-label", + "checkuser-investigate-compare-copy-message-label", + "checkuser-investigate-compare-table-button-add-ip-targets-label", + "checkuser-investigate-compare-table-button-add-user-targets-label", + "checkuser-investigate-compare-table-button-add-user-targets-log-label", + "checkuser-investigate-compare-table-button-checks-label", + "checkuser-investigate-compare-table-button-contribs-label", + "checkuser-investigate-compare-table-button-filter-label", + "checkuser-investigate-subtitle-cancel-button-label", + "checkuser-investigate-subtitle-continue-button-label" + ] + }, + "ext.checkUser.investigateblock.styles": { + "localBasePath": "modules/ext.checkUser.investigateblock.styles", + "remoteExtPath": "CheckUser/modules/ext.checkUser.investigateblock.styles", + "styles": [ + "investigateblock.less" + ] + }, + "ext.checkUser.investigateblock": { + "localBasePath": "modules/ext.checkUser.investigateblock", + "remoteExtPath": "CheckUser/modules/ext.checkUser.investigateblock", + "packageFiles": [ + "investigateblock.js" + ], + "dependencies": [ + "oojs-ui-widgets" + ] + }, + "ext.guidedTour.tour.checkuserinvestigateform": { + "localBasePath": "modules/ext.guidedTour.tour.checkuserinvestigateform", + "remoteExtPath": "CheckUser/modules/ext.guidedTour.tour.checkuserinvestigateform", + "scripts": [ + "checkuserinvestigateform.js" + ], + "dependencies": "ext.guidedTour", + "messages": [ + "checkuser-investigate-tour-targets-title", + "checkuser-investigate-tour-targets-desc" + ] + }, + "ext.guidedTour.tour.checkuserinvestigate": { + "localBasePath": "modules/ext.guidedTour.tour.checkuserinvestigate", + "remoteExtPath": "CheckUser/modules/ext.guidedTour.tour.checkuserinvestigate", + "scripts": [ + "checkuserinvestigate.js" + ], + "dependencies": [ + "ext.guidedTour", + "ext.checkUser.investigate" + ], + "messages": [ + "checkuser-investigate-tour-useragents-title", + "checkuser-investigate-tour-useragents-desc", + "checkuser-investigate-tour-addusertargets-title", + "checkuser-investigate-tour-addusertargets-desc", + "checkuser-investigate-tour-filterip-title", + "checkuser-investigate-tour-filterip-desc", + "checkuser-investigate-tour-block-title", + "checkuser-investigate-tour-block-desc", + "checkuser-investigate-tour-copywikitext-title", + "checkuser-investigate-tour-copywikitext-desc" ] } }, - "ResourceFileModulePaths": { - "localBasePath": "", - "remoteExtPath": "CheckUser" - }, "GroupPermissions": { "checkuser": { "checkuser": true, @@ -135,8 +241,18 @@ "checkuser-log" ], "SpecialPages": { - "CheckUser": "SpecialCheckUser", - "CheckUserLog": "SpecialCheckUserLog" + "CheckUser": { + "class": "SpecialCheckUser", + "services": [ + "LinkBatchFactory" + ] + }, + "CheckUserLog": { + "class": "SpecialCheckUserLog", + "services": [ + "LinkBatchFactory" + ] + } }, "AutoloadClasses": { "CheckUserHooks": "includes/CheckUserHooks.php", @@ -148,5 +264,15 @@ "ApiQueryCheckUserLog": "includes/api/ApiQueryCheckUserLog.php", "PopulateCheckUserTable": "maintenance/populateCheckUserTable.php" }, + "ServiceWiringFiles": [ + "includes/ServiceWiring.php" + ], + "AutoloadNamespaces": { + "MediaWiki\\CheckUser\\": "src/" + }, + "TestAutoloadNamespaces": { + "MediaWiki\\CheckUser\\Test\\": "tests/phpunit/" + }, + "load_composer_autoloader": true, "manifest_version": 2 } |