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": {
|
2019-04-26 16:12:19 +00:00
|
|
|
"MediaWiki": ">= 1.34.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": [
|
2018-02-21 03:50:22 +00:00
|
|
|
"jquery.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",
|
2017-07-18 19:27:41 +00:00
|
|
|
"mediawiki.jqueryMsg",
|
2017-06-27 13:28:12 +00:00
|
|
|
"mediawiki.notify"
|
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"
|
|
|
|
},
|
|
|
|
"Hooks": {
|
|
|
|
"HistoryRevisionTools": [
|
|
|
|
"ThanksHooks::insertThankLink"
|
|
|
|
],
|
|
|
|
"DiffRevisionTools": [
|
|
|
|
"ThanksHooks::insertThankLink"
|
|
|
|
],
|
|
|
|
"PageHistoryBeforeList": [
|
|
|
|
"ThanksHooks::onPageHistoryBeforeList"
|
|
|
|
],
|
|
|
|
"DiffViewHeader": [
|
|
|
|
"ThanksHooks::onDiffViewHeader"
|
|
|
|
],
|
|
|
|
"BeforeCreateEchoEvent": [
|
|
|
|
"ThanksHooks::onBeforeCreateEchoEvent"
|
|
|
|
],
|
|
|
|
"EchoGetDefaultNotifiedUsers": [
|
|
|
|
"ThanksHooks::onEchoGetDefaultNotifiedUsers"
|
|
|
|
],
|
2016-05-25 18:42:20 +00:00
|
|
|
"LocalUserCreated": [
|
2016-01-07 06:40:50 +00:00
|
|
|
"ThanksHooks::onAccountCreated"
|
|
|
|
],
|
|
|
|
"BeforeSpecialMobileDiffDisplay": [
|
|
|
|
"ThanksHooks::onBeforeSpecialMobileDiffDisplay"
|
|
|
|
],
|
|
|
|
"GetLogTypesOnUser": [
|
|
|
|
"ThanksHooks::onGetLogTypesOnUser"
|
|
|
|
],
|
|
|
|
"BeforePageDisplay": [
|
|
|
|
"ThanksHooks::onBeforePageDisplay"
|
|
|
|
],
|
|
|
|
"ResourceLoaderTestModules": [
|
|
|
|
"ThanksHooks::onResourceLoaderTestModules"
|
|
|
|
],
|
|
|
|
"ApiMain::moduleManager": [
|
|
|
|
"ThanksHooks::onApiMainModuleManager"
|
2016-06-16 16:12:38 +00:00
|
|
|
],
|
|
|
|
"EchoGetBundleRules": [
|
|
|
|
"ThanksHooks::onEchoGetBundleRules"
|
2018-03-02 05:37:16 +00:00
|
|
|
],
|
|
|
|
"LogEventsListLineEnding": [
|
|
|
|
"ThanksHooks::onLogEventsListLineEnding"
|
2016-01-07 06:40:50 +00:00
|
|
|
]
|
|
|
|
},
|
|
|
|
"config": {
|
|
|
|
"ThanksSendToBots": false,
|
|
|
|
"ThanksLogging": true,
|
2018-03-03 04:00:40 +00:00
|
|
|
"ThanksConfirmationRequired": true,
|
|
|
|
"ThanksLogTypeWhitelist": [
|
|
|
|
"contentmodel",
|
2019-02-22 20:48:55 +00:00
|
|
|
"create",
|
2018-03-03 04:00:40 +00:00
|
|
|
"delete",
|
|
|
|
"import",
|
|
|
|
"merge",
|
2018-03-02 05:37:16 +00:00
|
|
|
"move",
|
2018-03-03 04:00:40 +00:00
|
|
|
"patrol",
|
|
|
|
"protect",
|
|
|
|
"tag",
|
|
|
|
"managetags",
|
2018-04-10 00:39:47 +00:00
|
|
|
"rights",
|
|
|
|
"lock"
|
2018-03-03 04:00:40 +00:00
|
|
|
]
|
2016-01-07 06:40:50 +00:00
|
|
|
},
|
|
|
|
"manifest_version": 1
|
|
|
|
}
|