-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathextension.json
91 lines (91 loc) · 1.91 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
{
"name": "HitCounters2",
"author": [
"[mailto:[email protected] Alex]"
],
"url": "https://www.mediawiki.org/wiki/Extension:HitCounters2",
"descriptionmsg": "hitcounters2-desc",
"license-name": "GPL-3.0-or-later",
"type": "other",
"requires": {
"MediaWiki": ">= 1.42.0"
},
"AutoloadNamespaces": {
"MediaWiki\\Extension\\HitCounters2\\": "includes/"
},
"AvailableRights": [
"hitcounters2-resetcounter"
],
"LogTypes": [
"hitcounters2resethitcounter"
],
"LogActionsHandlers": {
"hitcounters2resethitcounter/*": "LogFormatter"
},
"MessagesDirs": {
"HitCounters2": [
"i18n"
]
},
"ExtensionMessagesFiles": {
"HitCounters2Magic": "HitCounters2Magic.php"
},
"RestRoutes": [
{
"path": "/hitcounters2/v0/increment/{id}",
"method": "POST",
"class": "MediaWiki\\Extension\\HitCounters2\\Rest\\Handler\\RestIncrementCounter",
"services": [
"ConnectionProvider",
"WikiPageFactory"
]
}
],
"HookHandlers": {
"default": {
"class": "MediaWiki\\Extension\\HitCounters2\\Hooks",
"services": [
"ConnectionProvider"
]
},
"Installer": {
"class": "MediaWiki\\Extension\\HitCounters2\\Installer"
}
},
"Hooks": {
"BeforePageDisplay": {
"handler": "default"
},
"GetMagicVariableIDs": {
"handler": "default"
},
"LoadExtensionSchemaUpdates": {
"handler": "Installer"
},
"ParserGetVariableValueSwitch": {
"handler": "default"
}
},
"ResourceModules": {
"ext.hitcounters2.incrementcounter": {
"scripts": "ext.hitcounters2.incrementcounter.js",
"targets": [ "desktop", "mobile" ],
"dependencies": [
"mediawiki.api"
]
}
},
"ResourceFileModulePaths": {
"localBasePath": "modules",
"remoteExtPath": "HitCounters2/modules"
},
"SpecialPages": {
"ResetHitCounter": {
"class": "MediaWiki\\Extension\\HitCounters2\\Specials\\SpecialResetHitCounter",
"services": [
"ConnectionProvider"
]
}
},
"manifest_version": 2
}