| 1 | { |
| 2 | "name": "Thanks", |
| 3 | "version": "1.2.0", |
| 4 | "author": [ |
| 5 | "Ryan Kaldari", |
| 6 | "Benjamin Chen", |
| 7 | "Wctaiwan" |
| 8 | ], |
| 9 | "url": "https://www.mediawiki.org/wiki/Extension:Thanks", |
| 10 | "descriptionmsg": "thanks-desc", |
| 11 | "license-name": "MIT", |
| 12 | "type": "other", |
| 13 | "requires": { |
| 14 | "MediaWiki": ">= 1.43", |
| 15 | "extensions": { |
| 16 | "Echo": "*" |
| 17 | } |
| 18 | }, |
| 19 | "DefaultUserOptions": { |
| 20 | "echo-subscriptions-web-edit-thank": true, |
| 21 | "echo-subscriptions-email-edit-thank": false |
| 22 | }, |
| 23 | "RateLimits": { |
| 24 | "thanks-notification": { |
| 25 | "user": [ |
| 26 | 10, |
| 27 | 60 |
| 28 | ] |
| 29 | } |
| 30 | }, |
| 31 | "SpecialPages": { |
| 32 | "Thanks": { |
| 33 | "class": "MediaWiki\\Extension\\Thanks\\SpecialThanks", |
| 34 | "services": [ |
| 35 | "UserFactory" |
| 36 | ] |
| 37 | } |
| 38 | }, |
| 39 | "LogTypes": [ |
| 40 | "thanks" |
| 41 | ], |
| 42 | "FilterLogTypes": { |
| 43 | "thanks": true |
| 44 | }, |
| 45 | "LogActionsHandlers": { |
| 46 | "thanks/*": { |
| 47 | "class": "MediaWiki\\Extension\\Thanks\\ThanksLogFormatter", |
| 48 | "services": [ |
| 49 | "NamespaceInfo" |
| 50 | ] |
| 51 | } |
| 52 | }, |
| 53 | "APIModules": { |
| 54 | "thank": { |
| 55 | "class": "MediaWiki\\Extension\\Thanks\\Api\\ApiCoreThank", |
| 56 | "services": [ |
| 57 | "PermissionManager", |
| 58 | "RevisionStore", |
| 59 | "UserFactory", |
| 60 | "ThanksLogStore" |
| 61 | ] |
| 62 | } |
| 63 | }, |
| 64 | "MessagesDirs": { |
| 65 | "Thanks": [ |
| 66 | "i18n", |
| 67 | "i18n/api" |
| 68 | ] |
| 69 | }, |
| 70 | "ExtensionMessagesFiles": { |
| 71 | "ThanksAlias": "Thanks.alias.php" |
| 72 | }, |
| 73 | "AutoloadNamespaces": { |
| 74 | "MediaWiki\\Extension\\Thanks\\": "includes/" |
| 75 | }, |
| 76 | "ResourceModules": { |
| 77 | "ext.thanks": { |
| 78 | "scripts": [ |
| 79 | "ext.thanks.thank.js" |
| 80 | ], |
| 81 | "dependencies": [ |
| 82 | "mediawiki.cookie", |
| 83 | "mediawiki.api" |
| 84 | ] |
| 85 | }, |
| 86 | "ext.thanks.corethank": { |
| 87 | "scripts": [ |
| 88 | "ext.thanks.corethank.js" |
| 89 | ], |
| 90 | "messages": [ |
| 91 | "thanks-thanked", |
| 92 | "thanks-error-undefined", |
| 93 | "thanks-error-invalidrevision", |
| 94 | "thanks-error-ratelimited", |
| 95 | "thanks-error-revdeleted", |
| 96 | "thanks-confirmation2", |
| 97 | "thanks-thank-tooltip-no", |
| 98 | "thanks-thank-tooltip-yes", |
| 99 | "thanks-button-thank", |
| 100 | "cancel" |
| 101 | ], |
| 102 | "dependencies": [ |
| 103 | "oojs-ui-core", |
| 104 | "oojs-ui-windows", |
| 105 | "mediawiki.jqueryMsg", |
| 106 | "mediawiki.api", |
| 107 | "jquery.confirmable", |
| 108 | "ext.thanks" |
| 109 | ] |
| 110 | }, |
| 111 | "ext.thanks.flowthank": { |
| 112 | "scripts": [ |
| 113 | "jquery.findWithParent.js", |
| 114 | "ext.thanks.flowthank.js" |
| 115 | ], |
| 116 | "messages": [ |
| 117 | "thanks-button-thanked", |
| 118 | "thanks-error-undefined", |
| 119 | "thanks-error-ratelimited" |
| 120 | ], |
| 121 | "dependencies": [ |
| 122 | "oojs-ui-core", |
| 123 | "oojs-ui-windows", |
| 124 | "mediawiki.jqueryMsg", |
| 125 | "mediawiki.api", |
| 126 | "ext.thanks" |
| 127 | ] |
| 128 | } |
| 129 | }, |
| 130 | "ResourceFileModulePaths": { |
| 131 | "localBasePath": "modules", |
| 132 | "remoteExtPath": "Thanks/modules" |
| 133 | }, |
| 134 | "QUnitTestModule": { |
| 135 | "localBasePath": "tests/qunit", |
| 136 | "remoteExtPath": "Thanks/tests/qunit", |
| 137 | "scripts": [ |
| 138 | "test_ext.thanks.thank.js" |
| 139 | ], |
| 140 | "dependencies": [ |
| 141 | "ext.thanks" |
| 142 | ] |
| 143 | }, |
| 144 | "Hooks": { |
| 145 | "ApiMain::moduleManager": "main", |
| 146 | "BeforeCreateEchoEvent": "echo", |
| 147 | "BeforePageDisplay": "main", |
| 148 | "DiffTools": "main", |
| 149 | "DifferenceEngineViewHeader": "main", |
| 150 | "EchoGetBundleRules": "echo", |
| 151 | "GetAllBlockActions": "main", |
| 152 | "GetLogTypesOnUser": "main", |
| 153 | "HistoryTools": "main", |
| 154 | "LocalUserCreated": "main", |
| 155 | "LogEventsListLineEnding": "main", |
| 156 | "PageHistoryBeforeList": "main", |
| 157 | "PageHistoryPager::doBatchLookups": "main", |
| 158 | "ChangesListInitRows": "main" |
| 159 | }, |
| 160 | "HookHandlers": { |
| 161 | "main": { |
| 162 | "class": "MediaWiki\\Extension\\Thanks\\Hooks", |
| 163 | "services": [ |
| 164 | "MainConfig", |
| 165 | "GenderCache", |
| 166 | "PermissionManager", |
| 167 | "RevisionLookup", |
| 168 | "UserFactory", |
| 169 | "UserOptionsManager" |
| 170 | ] |
| 171 | }, |
| 172 | "echo": { |
| 173 | "class": "MediaWiki\\Extension\\Thanks\\EchoHooks" |
| 174 | } |
| 175 | }, |
| 176 | "ServiceWiringFiles": [ |
| 177 | "ServiceWiring.php" |
| 178 | ], |
| 179 | "config": { |
| 180 | "ThanksSendToBots": { |
| 181 | "value": false |
| 182 | }, |
| 183 | "ThanksLogging": { |
| 184 | "value": true |
| 185 | }, |
| 186 | "ThanksConfirmationRequired": { |
| 187 | "value": true |
| 188 | }, |
| 189 | "ThanksAllowedLogTypes": { |
| 190 | "value": [ |
| 191 | "contentmodel", |
| 192 | "create", |
| 193 | "delete", |
| 194 | "import", |
| 195 | "merge", |
| 196 | "move", |
| 197 | "pagelang", |
| 198 | "patrol", |
| 199 | "protect", |
| 200 | "tag", |
| 201 | "upload", |
| 202 | "managetags", |
| 203 | "rights/rights", |
| 204 | "lock" |
| 205 | ] |
| 206 | } |
| 207 | }, |
| 208 | "manifest_version": 2 |
| 209 | } |