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": {
|
2023-08-19 06:10:04 +00:00
|
|
|
"MediaWiki": ">= 1.41",
|
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": {
|
2023-05-20 11:51:09 +00:00
|
|
|
"Thanks": {
|
|
|
|
"class": "MediaWiki\\Extension\\Thanks\\SpecialThanks",
|
2023-08-19 06:10:04 +00:00
|
|
|
"services": [
|
|
|
|
"UserFactory"
|
|
|
|
]
|
2023-05-20 11:51:09 +00:00
|
|
|
}
|
2016-01-07 06:40:50 +00:00
|
|
|
},
|
|
|
|
"LogTypes": [
|
|
|
|
"thanks"
|
|
|
|
],
|
|
|
|
"FilterLogTypes": {
|
|
|
|
"thanks": true
|
|
|
|
},
|
|
|
|
"LogActionsHandlers": {
|
2021-03-14 03:43:32 +00:00
|
|
|
"thanks/*": "MediaWiki\\Extension\\Thanks\\ThanksLogFormatter"
|
2016-01-07 06:40:50 +00:00
|
|
|
},
|
|
|
|
"APIModules": {
|
2023-05-19 11:38:58 +00:00
|
|
|
"thank": {
|
|
|
|
"class": "MediaWiki\\Extension\\Thanks\\Api\\ApiCoreThank",
|
|
|
|
"services": [
|
|
|
|
"PermissionManager",
|
|
|
|
"RevisionStore",
|
|
|
|
"UserFactory",
|
2023-05-26 13:02:42 +00:00
|
|
|
"ThanksLogStore"
|
2023-05-19 11:38:58 +00:00
|
|
|
]
|
|
|
|
}
|
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"
|
|
|
|
},
|
2021-03-14 03:43:32 +00:00
|
|
|
"AutoloadNamespaces": {
|
|
|
|
"MediaWiki\\Extension\\Thanks\\": "includes/"
|
2016-01-07 06:40:50 +00:00
|
|
|
},
|
|
|
|
"ResourceModules": {
|
2018-06-13 23:44:50 +00:00
|
|
|
"ext.thanks.images": {
|
|
|
|
"class": "ResourceLoaderImageModule",
|
2023-08-04 16:52:59 +00:00
|
|
|
"selector": ".mw-ui-icon-thanks-{name}",
|
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"
|
2022-12-12 23:28:37 +00:00
|
|
|
],
|
|
|
|
"targets": [
|
|
|
|
"desktop",
|
|
|
|
"mobile"
|
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",
|
|
|
|
"ext.thanks"
|
2022-12-12 23:28:37 +00:00
|
|
|
],
|
|
|
|
"targets": [
|
|
|
|
"desktop",
|
|
|
|
"mobile"
|
2016-01-07 06:40:50 +00:00
|
|
|
]
|
|
|
|
},
|
|
|
|
"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"
|
2022-12-12 23:28:37 +00:00
|
|
|
],
|
|
|
|
"targets": [
|
|
|
|
"desktop",
|
|
|
|
"mobile"
|
2016-01-07 06:40:50 +00:00
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"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": {
|
2023-09-28 21:14:29 +00:00
|
|
|
"ApiMain::moduleManager": "main",
|
2023-11-08 11:31:24 +00:00
|
|
|
"BeforeCreateEchoEvent": "main",
|
2023-09-28 21:14:29 +00:00
|
|
|
"BeforePageDisplay": "main",
|
2023-11-08 11:31:24 +00:00
|
|
|
"BeforeSpecialMobileDiffDisplay": "main",
|
2023-09-28 21:14:29 +00:00
|
|
|
"DiffTools": "main",
|
|
|
|
"DifferenceEngineViewHeader": "main",
|
2023-11-08 11:31:24 +00:00
|
|
|
"EchoGetBundleRules": "main",
|
2023-09-28 21:14:29 +00:00
|
|
|
"GetAllBlockActions": "main",
|
|
|
|
"GetLogTypesOnUser": "main",
|
|
|
|
"HistoryTools": "main",
|
|
|
|
"LocalUserCreated": "main",
|
|
|
|
"LogEventsListLineEnding": "main",
|
|
|
|
"PageHistoryBeforeList": "main"
|
|
|
|
},
|
|
|
|
"HookHandlers": {
|
|
|
|
"main": {
|
|
|
|
"class": "MediaWiki\\Extension\\Thanks\\Hooks"
|
|
|
|
}
|
2016-01-07 06:40:50 +00:00
|
|
|
},
|
2022-12-13 19:39:55 +00:00
|
|
|
"ServiceWiringFiles": [
|
|
|
|
"ServiceWiring.php"
|
|
|
|
],
|
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
|
|
|
|
},
|
2021-03-20 04:43:13 +00:00
|
|
|
"ThanksAllowedLogTypes": {
|
2020-05-12 01:05:37 +00:00
|
|
|
"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",
|
2022-08-22 12:35:05 +00:00
|
|
|
"rights/rights",
|
2020-05-12 01:05:37 +00:00
|
|
|
"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
|
|
|
}
|