-
Notifications
You must be signed in to change notification settings - Fork 24
/
extension.json
210 lines (210 loc) · 6.79 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
{
"name": "Scribunto",
"author": [
"Victor Vasiliev",
"Tim Starling",
"Brad Jorsch"
],
"url": "https://www.mediawiki.org/wiki/Extension:Scribunto",
"descriptionmsg": "scribunto-desc",
"license-name": "GPL-2.0-or-later AND MIT",
"type": "parserhook",
"requires": {
"MediaWiki": ">= 1.43"
},
"APIModules": {
"scribunto-console": {
"class": "MediaWiki\\Extension\\Scribunto\\ApiScribuntoConsole",
"services": [
"ObjectCacheFactory",
"ParserFactory"
]
}
},
"ContentHandlers": {
"Scribunto": "MediaWiki\\Extension\\Scribunto\\ScribuntoContentHandler"
},
"TrackingCategories": [
"scribunto-common-error-category",
"scribunto-module-with-errors-category"
],
"MessagesDirs": {
"Scribunto": [
"i18n",
"i18n/api"
]
},
"ExtensionMessagesFiles": {
"ScribuntoMagic": "Scribunto.magic.php",
"ScribuntoNamespaces": "Scribunto.namespaces.php"
},
"AutoloadClasses": {
"MediaWiki\\Extension\\Scribunto\\Engines\\LuaCommon\\LibraryBase": "includes/Engines/LuaCommon/LibraryBase.php",
"MediaWiki\\Extension\\Scribunto\\Engines\\LuaCommon\\LuaEngine": "includes/Engines/LuaCommon/LuaEngine.php",
"MediaWiki\\Extension\\Scribunto\\Engines\\LuaCommon\\LuaError": "includes/Engines/LuaCommon/LuaError.php",
"MediaWiki\\Extension\\Scribunto\\Engines\\LuaStandalone\\LuaStandaloneInterpreterFunction": "includes/Engines/LuaStandalone/LuaStandaloneInterpreterFunction.php",
"Scribunto_LuaEngine": "includes/Engines/LuaCommon/LuaEngine.php",
"Scribunto_LuaError": "includes/Engines/LuaCommon/LuaError.php",
"Scribunto_LuaLibraryBase": "includes/Engines/LuaCommon/LibraryBase.php",
"Scribunto_LuaStandaloneInterpreterFunction": "includes/Engines/LuaStandalone/LuaStandaloneInterpreterFunction.php"
},
"AutoloadNamespaces": {
"MediaWiki\\Extension\\Scribunto\\": "includes/"
},
"TestAutoloadClasses": {
"MediaWiki\\Extension\\Scribunto\\Tests\\Engines\\LuaCommon\\LuaEngineTestBase": "tests/phpunit/Engines/LuaCommon/LuaEngineTestBase.php",
"Scribunto_LuaEngineTestBase": "tests/phpunit/Engines/LuaCommon/LuaEngineTestBase.php"
},
"TestAutoloadNamespaces": {
"MediaWiki\\Extension\\Scribunto\\Tests\\": "tests/phpunit/"
},
"ResourceModules": {
"ext.scribunto.errors": {
"scripts": "ext.scribunto.errors.js",
"styles": "ext.scribunto.errors.css",
"dependencies": [
"oojs-ui-widgets"
],
"messages": [
"scribunto-parser-dialog-title"
]
},
"ext.scribunto.logs": {
"styles": "ext.scribunto.logs.css"
},
"ext.scribunto.edit": {
"scripts": "ext.scribunto.edit.js",
"styles": "ext.scribunto.edit.less",
"dependencies": [
"mediawiki.api",
"jquery.spinner"
],
"messages": [
"scribunto-console-title",
"scribunto-console-intro",
"scribunto-console-clear",
"scribunto-console-cleared",
"scribunto-console-cleared-session-lost"
]
}
},
"ResourceFileModulePaths": {
"localBasePath": "modules",
"remoteExtPath": "Scribunto/modules"
},
"Hooks": {
"SoftwareInfo": "main",
"ParserFirstCallInit": "main",
"ParserLimitReportPrepare": "main",
"ParserLimitReportFormat": "main",
"ParserClearState": "main",
"ParserCloned": "main",
"CodeEditorGetPageLanguage": "codeeditor",
"EditPage::showStandardInputs:options": "main",
"EditPage::showReadOnlyForm:initial": "main",
"EditPageBeforeEditButtons": "main",
"EditFilterMergedContent": "main",
"ArticleViewHeader": "main",
"ContentHandlerDefaultModelFor": "main"
},
"HookHandlers": {
"main": {
"class": "MediaWiki\\Extension\\Scribunto\\Hooks",
"services": [
"MainConfig",
"ContentHandlerFactory",
"ObjectCacheFactory",
"StatsFactory"
]
},
"codeeditor": {
"class": "MediaWiki\\Extension\\Scribunto\\CodeEditorHooks",
"services": [
"MainConfig"
]
}
},
"namespaces": [
{
"id": 828,
"constant": "NS_MODULE",
"name": "Module",
"subpages": true
},
{
"id": 829,
"constant": "NS_MODULE_TALK",
"name": "Module_talk",
"subpages": true
}
],
"callback": "MediaWiki\\Extension\\Scribunto\\Hooks::onRegistration",
"config": {
"ScribuntoDefaultEngine": {
"description": "The name of the default script engine",
"value": "luaautodetect"
},
"ScribuntoEngineConf": {
"description": [
"Configuration for each script engine. Parameters:",
" * profilerPeriod - The profiler sample period, or false to disable the profiler",
" * allowEnvFuncs - Set this to true to allow setfenv() and getfenv() in user code. Note that these functions have been removed in Lua 5.2. Scribunto does not yet support Lua 5.2, but we expect support will be implemented in the future, and there is no guarantee that a simulation of setfenv() and getfenv() will be provided",
" * maxLangCacheSize - The maximum number of languages about which data can be requested. The cost is about 1.5MB of memory usage per language on default installations (during recache), but if recaching is disabled with `$wgLocalisationCacheConf['manualRecache'] = false;` then memory usage is perhaps 10x smaller",
" * errorFile - A filename to act as the destination for stderr from the Lua binary. This may provide useful error information if Lua fails to run. Set this to null to discard stderr output",
" * luaPath - The location of the Lua binary, or null to use the bundled binary"
],
"value": {
"luasandbox": {
"class": "MediaWiki\\Extension\\Scribunto\\Engines\\LuaSandbox\\LuaSandboxEngine",
"memoryLimit": 52428800,
"cpuLimit": 7,
"profilerPeriod": 0.02,
"allowEnvFuncs": false,
"maxLangCacheSize": 30
},
"luastandalone": {
"class": "MediaWiki\\Extension\\Scribunto\\Engines\\LuaStandalone\\LuaStandaloneEngine",
"errorFile": null,
"luaPath": null,
"memoryLimit": 52428800,
"cpuLimit": 7,
"allowEnvFuncs": false,
"maxLangCacheSize": 30
},
"luaautodetect": {
"factory": "MediaWiki\\Extension\\Scribunto\\Engines\\LuaCommon\\LuaEngine::newAutodetectEngine"
}
},
"merge_strategy": "array_plus_2d"
},
"ScribuntoUseGeSHi": {
"description": "Set to true to enable the SyntaxHighlight_GeSHi extension integration",
"value": true
},
"ScribuntoUseCodeEditor": {
"description": "Set to true to enable the CodeEditor extension integration",
"value": true
},
"ScribuntoGatherFunctionStats": {
"description": "Set to true to enable gathering and reporting of performance data for slow function invocations.",
"value": false
},
"ScribuntoSlowFunctionThreshold": {
"description": "If $wgScribuntoGatherFunctionStats is true, this variable specifies the percentile threshold for slow function invocations. Should be a value between 0 and 1 (exclusive).",
"value": 0.9
}
},
"attributes": {
"TemplateSandbox": {
"EditNamespaces": [
828
]
},
"TemplateStyles": {
"Namespaces": [
828
]
}
},
"manifest_version": 2
}