2016-01-07 06:40:50 +00:00
|
|
|
{
|
|
|
|
"name": "Thanks",
|
|
|
|
"version": "1.2.0",
|
|
|
|
"author": [
|
|
|
|
"Ryan Kaldari",
|
|
|
|
"Benjamin Chen",
|
|
|
|
"Wctaiwan"
|
|
|
|
],
|
|
|
|
"url": "https://www.mediawiki.org/wiki/Extension:Thanks",
|
|
|
|
"descriptionmsg": "thanks-desc",
|
|
|
|
"license-name": "MIT",
|
|
|
|
"type": "other",
|
2018-04-11 08:00:30 +00:00
|
|
|
"requires": {
|
2020-04-17 22:05:01 +00:00
|
|
|
"MediaWiki": ">= 1.35.0",
|
2018-04-11 08:00:30 +00:00
|
|
|
"extensions": {
|
|
|
|
"Echo": "*"
|
|
|
|
}
|
|
|
|
},
|
2016-01-07 06:40:50 +00:00
|
|
|
"DefaultUserOptions": {
|
|
|
|
"echo-subscriptions-web-edit-thank": true,
|
|
|
|
"echo-subscriptions-email-edit-thank": false
|
|
|
|
},
|
|
|
|
"RateLimits": {
|
|
|
|
"thanks-notification": {
|
|
|
|
"user": [
|
|
|
|
10,
|
|
|
|
60
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"SpecialPages": {
|
|
|
|
"Thanks": "SpecialThanks"
|
|
|
|
},
|
|
|
|
"LogTypes": [
|
|
|
|
"thanks"
|
|
|
|
],
|
|
|
|
"FilterLogTypes": {
|
|
|
|
"thanks": true
|
|
|
|
},
|
|
|
|
"LogActionsHandlers": {
|
|
|
|
"thanks/*": "ThanksLogFormatter"
|
|
|
|
},
|
|
|
|
"APIModules": {
|
2018-02-21 03:46:30 +00:00
|
|
|
"thank": "ApiCoreThank"
|
2016-01-07 06:40:50 +00:00
|
|
|
},
|
|
|
|
"MessagesDirs": {
|
|
|
|
"Thanks": [
|
2018-11-18 15:55:46 +00:00
|
|
|
"i18n",
|
|
|
|
"i18n/api"
|
2016-01-07 06:40:50 +00:00
|
|
|
]
|
|
|
|
},
|
|
|
|
"ExtensionMessagesFiles": {
|
|
|
|
"ThanksAlias": "Thanks.alias.php"
|
|
|
|
},
|
|
|
|
"AutoloadClasses": {
|
2018-01-30 02:21:53 +00:00
|
|
|
"ThanksHooks": "includes/ThanksHooks.php",
|
2018-02-21 03:46:30 +00:00
|
|
|
"EchoCoreThanksPresentationModel": "includes/EchoCoreThanksPresentationModel.php",
|
2018-01-30 02:21:53 +00:00
|
|
|
"EchoFlowThanksPresentationModel": "includes/EchoFlowThanksPresentationModel.php",
|
|
|
|
"ApiThank": "includes/ApiThank.php",
|
2018-02-21 03:46:30 +00:00
|
|
|
"ApiCoreThank": "includes/ApiCoreThank.php",
|
2018-01-30 02:21:53 +00:00
|
|
|
"ApiFlowThank": "includes/ApiFlowThank.php",
|
|
|
|
"ThanksLogFormatter": "includes/ThanksLogFormatter.php",
|
|
|
|
"SpecialThanks": "includes/SpecialThanks.php"
|
2016-01-07 06:40:50 +00:00
|
|
|
},
|
|
|
|
"ResourceModules": {
|
2018-06-13 23:44:50 +00:00
|
|
|
"ext.thanks.images": {
|
|
|
|
"class": "ResourceLoaderImageModule",
|
2019-09-13 18:32:59 +00:00
|
|
|
"selector": ".mw-ui-icon-thanks-{name}:before",
|
2018-06-13 23:44:50 +00:00
|
|
|
"defaultColor": "#fff",
|
|
|
|
"images": {
|
|
|
|
"userTalk": {
|
|
|
|
"file": {
|
2018-08-16 17:18:00 +00:00
|
|
|
"ltr": "userTalk-ltr.svg",
|
|
|
|
"rtl": "userTalk-rtl.svg"
|
2018-06-13 23:44:50 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2016-01-07 06:40:50 +00:00
|
|
|
"ext.thanks": {
|
|
|
|
"scripts": [
|
|
|
|
"ext.thanks.thank.js"
|
2017-06-27 13:28:12 +00:00
|
|
|
],
|
|
|
|
"dependencies": [
|
2020-05-29 19:43:31 +00:00
|
|
|
"mediawiki.cookie",
|
2017-06-27 13:28:12 +00:00
|
|
|
"mediawiki.api"
|
2016-01-07 06:40:50 +00:00
|
|
|
]
|
|
|
|
},
|
2018-02-21 03:46:30 +00:00
|
|
|
"ext.thanks.corethank": {
|
2016-01-07 06:40:50 +00:00
|
|
|
"scripts": [
|
2018-02-21 03:46:30 +00:00
|
|
|
"ext.thanks.corethank.js"
|
2016-01-07 06:40:50 +00:00
|
|
|
],
|
|
|
|
"messages": [
|
|
|
|
"thanks-thanked",
|
|
|
|
"thanks-error-undefined",
|
|
|
|
"thanks-error-invalidrevision",
|
|
|
|
"thanks-error-ratelimited",
|
2018-03-02 05:37:16 +00:00
|
|
|
"thanks-error-revdeleted",
|
2016-01-07 06:40:50 +00:00
|
|
|
"thanks-confirmation2",
|
|
|
|
"thanks-thank-tooltip-no",
|
|
|
|
"thanks-thank-tooltip-yes",
|
2018-01-20 01:06:48 +00:00
|
|
|
"thanks-button-thank",
|
2016-01-07 06:40:50 +00:00
|
|
|
"cancel"
|
|
|
|
],
|
|
|
|
"dependencies": [
|
2016-07-15 15:16:08 +00:00
|
|
|
"oojs-ui-core",
|
|
|
|
"oojs-ui-windows",
|
2016-01-07 06:40:50 +00:00
|
|
|
"mediawiki.jqueryMsg",
|
|
|
|
"mediawiki.api",
|
|
|
|
"jquery.confirmable",
|
2018-02-21 03:46:30 +00:00
|
|
|
"jquery.cookie",
|
2016-01-07 06:40:50 +00:00
|
|
|
"ext.thanks"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"ext.thanks.mobilediff": {
|
|
|
|
"scripts": [
|
|
|
|
"ext.thanks.mobilediff.js"
|
|
|
|
],
|
|
|
|
"messages": [
|
2018-06-27 23:12:28 +00:00
|
|
|
"thanks-button-action-queued",
|
|
|
|
"thanks-button-action-cancel",
|
|
|
|
"thanks-button-action-completed",
|
2016-01-07 06:40:50 +00:00
|
|
|
"thanks-button-thank",
|
|
|
|
"thanks-button-thanked",
|
|
|
|
"thanks-error-invalidrevision",
|
|
|
|
"thanks-error-ratelimited",
|
|
|
|
"thanks-error-undefined",
|
|
|
|
"thanks-thanked-notice"
|
|
|
|
],
|
|
|
|
"dependencies": [
|
2019-09-13 18:32:59 +00:00
|
|
|
"mobile.startup",
|
2018-06-13 23:44:50 +00:00
|
|
|
"ext.thanks.images",
|
2016-01-07 06:40:50 +00:00
|
|
|
"mediawiki.api",
|
2020-04-22 17:34:06 +00:00
|
|
|
"mediawiki.jqueryMsg"
|
2016-01-07 06:40:50 +00:00
|
|
|
],
|
|
|
|
"targets": [
|
|
|
|
"desktop",
|
|
|
|
"mobile"
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"ext.thanks.flowthank": {
|
|
|
|
"scripts": [
|
2019-08-05 15:08:17 +00:00
|
|
|
"jquery.findWithParent.js",
|
2016-01-07 06:40:50 +00:00
|
|
|
"ext.thanks.flowthank.js"
|
|
|
|
],
|
|
|
|
"messages": [
|
|
|
|
"thanks-button-thanked",
|
|
|
|
"thanks-error-undefined",
|
|
|
|
"thanks-error-ratelimited"
|
|
|
|
],
|
|
|
|
"dependencies": [
|
2016-07-15 15:16:08 +00:00
|
|
|
"oojs-ui-core",
|
|
|
|
"oojs-ui-windows",
|
2016-01-07 06:40:50 +00:00
|
|
|
"mediawiki.jqueryMsg",
|
|
|
|
"mediawiki.api",
|
|
|
|
"ext.thanks"
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"ResourceFileModulePaths": {
|
|
|
|
"localBasePath": "modules",
|
|
|
|
"remoteExtPath": "Thanks/modules"
|
|
|
|
},
|
2020-05-11 21:25:00 +00:00
|
|
|
"QUnitTestModule": {
|
2020-05-11 19:36:26 +00:00
|
|
|
"localBasePath": "tests/qunit",
|
|
|
|
"remoteExtPath": "Thanks/tests/qunit",
|
|
|
|
"scripts": [
|
|
|
|
"test_ext.thanks.thank.js",
|
|
|
|
"test_ext.thanks.mobilediff.js"
|
|
|
|
],
|
|
|
|
"dependencies": [
|
|
|
|
"ext.thanks",
|
|
|
|
"ext.thanks.mobilediff"
|
|
|
|
]
|
|
|
|
},
|
2016-01-07 06:40:50 +00:00
|
|
|
"Hooks": {
|
2020-05-11 18:59:56 +00:00
|
|
|
"ApiMain::moduleManager": "ThanksHooks::onApiMainModuleManager",
|
|
|
|
"BeforeCreateEchoEvent": "ThanksHooks::onBeforeCreateEchoEvent",
|
|
|
|
"BeforePageDisplay": "ThanksHooks::onBeforePageDisplay",
|
|
|
|
"BeforeSpecialMobileDiffDisplay": "ThanksHooks::onBeforeSpecialMobileDiffDisplay",
|
2020-05-11 18:59:31 +00:00
|
|
|
"DiffRevisionTools": "ThanksHooks::insertThankLink",
|
|
|
|
"DiffViewHeader": "ThanksHooks::onDiffViewHeader",
|
2020-05-11 18:59:56 +00:00
|
|
|
"EchoGetBundleRules": "ThanksHooks::onEchoGetBundleRules",
|
2020-05-11 18:59:31 +00:00
|
|
|
"EchoGetDefaultNotifiedUsers": "ThanksHooks::onEchoGetDefaultNotifiedUsers",
|
|
|
|
"GetLogTypesOnUser": "ThanksHooks::onGetLogTypesOnUser",
|
2020-05-11 18:59:56 +00:00
|
|
|
"HistoryRevisionTools": "ThanksHooks::insertThankLink",
|
|
|
|
"LocalUserCreated": "ThanksHooks::onAccountCreated",
|
|
|
|
"LogEventsListLineEnding": "ThanksHooks::onLogEventsListLineEnding",
|
2020-05-11 19:36:26 +00:00
|
|
|
"PageHistoryBeforeList": "ThanksHooks::onPageHistoryBeforeList"
|
2016-01-07 06:40:50 +00:00
|
|
|
},
|
|
|
|
"config": {
|
2020-05-12 01:05:37 +00:00
|
|
|
"ThanksSendToBots": {
|
|
|
|
"value": false
|
|
|
|
},
|
|
|
|
"ThanksLogging": {
|
|
|
|
"value": true
|
|
|
|
},
|
|
|
|
"ThanksConfirmationRequired": {
|
|
|
|
"value": true
|
|
|
|
},
|
|
|
|
"ThanksLogTypeWhitelist": {
|
|
|
|
"value": [
|
|
|
|
"contentmodel",
|
|
|
|
"create",
|
|
|
|
"delete",
|
|
|
|
"import",
|
|
|
|
"merge",
|
|
|
|
"move",
|
2019-03-16 21:55:57 +00:00
|
|
|
"pagelang",
|
2020-05-12 01:05:37 +00:00
|
|
|
"patrol",
|
|
|
|
"protect",
|
|
|
|
"tag",
|
2019-03-16 21:55:57 +00:00
|
|
|
"upload",
|
2020-05-12 01:05:37 +00:00
|
|
|
"managetags",
|
|
|
|
"rights",
|
|
|
|
"lock"
|
|
|
|
]
|
|
|
|
}
|
2016-01-07 06:40:50 +00:00
|
|
|
},
|
2020-05-12 01:05:37 +00:00
|
|
|
"manifest_version": 2
|
2016-01-07 06:40:50 +00:00
|
|
|
}
|