-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathextension.json
309 lines (308 loc) · 10 KB
/
extension.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
{
"name": "ReportIncident",
"author": [
"[https://www.mediawiki.org/wiki/Trust_and_Safety_Tools Wikimedia Trust and Safety Tools team]",
"Ellen Rayfield",
"Essex Igyan",
"Julia Kieserman"
],
"url": "https://www.mediawiki.org/wiki/Extension:ReportIncident",
"descriptionmsg": "reportincident-desc",
"license-name": "GPL-2.0-or-later",
"type": "other",
"requires": {
"MediaWiki": ">= 1.43",
"extensions": {
"EventLogging": "*"
}
},
"attributes": {
"CommunityConfiguration": {
"Validators": {
"reportincident": {
"class": "MediaWiki\\Extension\\ReportIncident\\Config\\ReportIncidentConfigValidator",
"factory": "MediaWiki\\Extension\\ReportIncident\\Config\\ReportIncidentConfigValidator::factory",
"services": [
"TitleParser",
"PageStore",
"StatsdDataFactory"
],
"args": [ "MediaWiki\\Extension\\ReportIncident\\Config\\ReportIncidentSchema" ]
}
},
"Providers": {
"ReportIncident": {
"store": {
"type": "wikipage",
"args": [
"MediaWiki:IncidentReportingConfig.json"
]
},
"validator": {
"type": "reportincident"
},
"type": "mw-config"
}
}
}
},
"AutoloadNamespaces": {
"MediaWiki\\Extension\\ReportIncident\\": "src/"
},
"config": {
"ReportIncidentReportButtonEnabled": {
"value": true,
"description": "Whether to display the report button on configured namespaces."
},
"ReportIncidentApiEnabled": {
"value": true,
"description": "When set to true, the REST API endpoint for ingesting reports is available."
},
"ReportIncidentDeveloperMode": {
"value": true,
"description": "When set to true, some developer-friendly features are enabled to facilitate testing and QA."
},
"ReportIncidentEnabledNamespaces": {
"value": [
1,
3,
5,
7,
9,
11,
13,
15
],
"description": "Determines what namespaces the Incident Reporting tool will render within. The default is 3 which defaults to the NS_USER_TALK namespace"
},
"ReportIncidentMinimumAccountAgeInSeconds": {
"value": 10800,
"description": "User accounts must be older than this value in order to submit a report. The default is 3 hours."
},
"ReportIncidentDisputeResolutionPage": {
"value": "Project:Dispute resolution",
"description": "A wiki page used for dispute resolution, referenced in the non-emergency flow.."
},
"ReportIncidentCommunityQuestionsPage": {
"value": "Project:Village pump",
"description": "A wiki page used for asking questions to the community, referenced in the non-emergency flow."
},
"ReportIncidentLocalIncidentReportPage": {
"value": "Project:Report an incident",
"description": "A wiki page used for reporting incidents to local functionaries, referenced in the non-emergency flow."
},
"ReportIncidentEnableInstrumentation": {
"value": false,
"description": "Controls whether instrumentation via EventLogging is enabled."
},
"ReportIncidentZendeskUrl": {
"value": "",
"description": "Full URL (without a trailing slash) of the Zendesk instance to send emergency reports to."
},
"ReportIncidentZendeskHTTPProxy": {
"value": "",
"description": "The HTTP proxy to use for connecting to the Zendesk instance defined in ReportIncidentZendeskUrl"
},
"ReportIncidentZendeskSubjectLine": {
"value": "Incident Reporting System emergency report",
"description": "Custom subject line to use in Zendesk requests created for emergency reports."
}
},
"AvailableRights": [
"reportincident"
],
"GroupPermissions": {
"user": {
"reportincident": true
}
},
"HookHandlers": {
"ReportIncidentHooks": {
"class": "MediaWiki\\Extension\\ReportIncident\\Hooks\\Handlers\\MainHooksHandler",
"services": [
"ReportIncidentController"
]
},
"DiscussionToolsHooks": {
"class": "MediaWiki\\Extension\\ReportIncident\\Hooks\\Handlers\\DiscussionToolsHandler",
"services": [
"ReportIncidentController"
]
}
},
"Hooks": {
"BeforePageDisplay": "ReportIncidentHooks",
"SidebarBeforeOutput": "ReportIncidentHooks",
"SkinTemplateNavigation::Universal": "ReportIncidentHooks",
"DiscussionToolsAddOverflowMenuItems": "DiscussionToolsHooks"
},
"MessagesDirs": {
"ReportIncident": [
"i18n"
]
},
"RateLimits": {
"reportincident": {
"&can-bypass": false,
"user": [
5,
86400
],
"newbie": [
1,
86400
]
}
},
"ResourceFileModulePaths": {
"localBasePath": "resources/ext.reportIncident",
"remoteExtPath": "ReportIncident/resources/ext.reportIncident"
},
"ResourceModules": {
"ext.reportIncident": {
"styles": [
"ext.reportincident.less"
],
"skinStyles": {
"timeless": "ext.reportincident.timeless.less",
"monobook": "ext.reportincident.monobook.less"
},
"packageFiles": [
"init.js",
"Constants.js",
"components/App.vue",
"components/CharacterLimitedTextArea.vue",
"components/EmailAlertDialog.vue",
"components/ParsedMessage.vue",
"components/ReportIncidentDialog.vue",
"components/ReportIncidentDialogStep1.vue",
"components/ReportIncidentDialogStep2.vue",
"components/ReportIncidentDialogTypesOfBehavior.vue",
"components/ReportImmediateHarmStep.vue",
"components/SubmitSuccessStep.vue",
"composables/useInstrument.js",
"stores/Form.js",
{
"name": "components/icons.json",
"callback": "MediaWiki\\ResourceLoader\\CodexModule::getIcons",
"callbackParam": [
"cdxIconLock",
"cdxIconUserGroup"
]
}
],
"messages": [
"reportincident-desc",
"reportincident-report-btn-label",
"reportincident-dialog-close-btn",
"reportincident-dialog-back-btn",
"reportincident-dialog-submit-btn",
"reportincident-dialog-harassment-type-label",
"reportincident-dialog-additional-details-input-label",
"reportincident-dialog-optional-label",
"reportincident-dialog-violator-label",
"reportincident-dialog-harassment-type-hate-speech-or-discrimination",
"reportincident-dialog-harassment-type-sexual-harassment",
"reportincident-dialog-harassment-type-trolling",
"reportincident-dialog-harassment-type-spam",
"reportincident-dialog-harassment-type-doxing",
"reportincident-dialog-harassment-type-intimidation",
"reportincident-dialog-harassment-type-something-else",
"reportincident-dialog-something-else-input-placeholder",
"reportincident-dialog-unacceptable-behavior-community-managed",
"reportincident-dialog-record-for-statistical-purposes",
"reportincident-dialog-additional-details-input-placeholder",
"reportincident-dialog-violator-placeholder-text",
"reportincident-dialog-violator-disclaimer",
"reportincident-dialog-something-else-empty",
"reportincident-dialog-harassment-empty",
"reportincident-dialog-generic-error",
"reportincident-dialog-server-error",
"reportincident-dialog-internet-disconnected-error",
"reportincident-dialog-report-immediate-harm-title",
"reportincident-dialog-get-support-title",
"reportincident-emaildialog-title",
"reportincident-emaildialog-close-button",
"reportincident-emaildialog-content",
"reportincident-emaildialog-primary",
"reportincident-dialog-describe-the-incident-title",
"reportincident-type-of-incident",
"reportincident-type-unacceptable-user-behavior",
"reportincident-type-immediate-threat-physical-harm",
"reportincident-type-immediate-threat-physical-harm-help",
"reportincident-choose-option",
"reportincident-dialog-cancel",
"reportincident-dialog-continue",
"reportincident-unacceptable-behavior-footer",
"reportincident-physical-harm-footer",
"reportincident-physical-harm-infotext",
"reportincident-threats-physical-harm",
"reportincident-threats-self-harm",
"reportincident-threats-public-harm",
"reportincident-type-incident-required",
"reportincident-threat-harm-required",
"reportincident-behavior-required",
"reportincident-submit-emergency-dialog-title",
"reportincident-submit-emergency-success",
"reportincident-submit-emergency-section-important-title",
"reportincident-submit-emergency-section-important-item-services",
"reportincident-submit-emergency-section-important-item-resources",
"reportincident-submit-emergency-section-next-title",
"reportincident-submit-emergency-section-next-item-team",
"reportincident-submit-emergency-section-next-item-review",
"reportincident-submit-emergency-section-next-item-email",
"reportincident-submit-behavior-dialog-title",
"reportincident-submit-behavior-notice",
"reportincident-submit-behavior-section-support-title",
"reportincident-submit-behavior-section-support-item-behavior",
"reportincident-submit-behavior-section-support-item-guidelines",
"reportincident-submit-behavior-section-support-item-dispute-resolution",
"reportincident-submit-behavior-section-support-item-admins",
"reportincident-submit-behavior-section-support-item-mentors",
"reportincident-submit-behavior-section-support-item-info-is-public",
"reportincident-submit-behavior-section-other-options-title",
"reportincident-submit-behavior-section-other-options-item-ask",
"reportincident-submit-behavior-section-other-options-item-contact-host",
"reportincident-submit-back-to-page"
],
"dependencies": [
"mediawiki.Uri",
"mediawiki.jqueryMsg",
"mediawiki.api",
"mediawiki.language",
"mediawiki.storage",
"mediawiki.String",
"mediawiki.user",
"jquery.lengthLimit",
"vue",
"pinia",
"@wikimedia/codex"
]
},
"ext.reportIncident.menuStyles": {
"skinStyles": {
"minerva": "menuStyles.minerva.less"
}
}
},
"RestRoutes": [
{
"path": "/reportincident/v0/report",
"method": "POST",
"class": "MediaWiki\\Extension\\ReportIncident\\Api\\Rest\\Handler\\ReportHandler",
"services": [
"MainConfig",
"RevisionStore",
"UserNameUtils",
"UserIdentityLookup",
"ReportIncidentManager",
"UserFactory",
"TitleParser"
]
}
],
"ServiceWiringFiles": [
"src/ServiceWiring.php"
],
"manifest_version": 2
}