-
Notifications
You must be signed in to change notification settings - Fork 0
/
skin.json
487 lines (487 loc) · 17.4 KB
/
skin.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
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
{
"name": "FedoraFrVector",
"version": "2.0.0",
"author": ["Guillaume Kulakowski"],
"url": "https://doc.fedora-fr.org",
"descriptionmsg": "vector-skin-desc",
"namemsg": "vector-specialversion-name",
"license-name": "GPL-2.0-or-later",
"type": "skin",
"requires": {
"MediaWiki": ">= 1.39.0"
},
"ValidSkinNames": {
"vector-2022": {
"class": "MediaWiki\\Skins\\Vector\\SkinVector22",
"args": [
{
"name": "vector-2022",
"templateDirectory": "includes/templates",
"template": "skin",
"responsive": true,
"link": {
"text-wrapper": {
"tag": "span"
}
},
"bodyClasses": ["skin-vector", "skin-vector-search-vue"],
"menus": [
"user-interface-preferences",
"user-page",
"user-menu",
"notifications",
"views",
"actions",
"variants",
"associated-pages"
],
"scripts": [
"skins.vector.user",
"skins.vector.js",
"skins.vector.es6"
],
"styles": [
"mediawiki.ui.button",
"skins.vector.styles",
"skins.vector.user.styles",
"skins.vector.icons",
"mediawiki.ui.icon"
],
"messages": [
"tooltip-p-logo",
"vector-opt-out-tooltip",
"vector-opt-out",
"vector-action-toggle-sidebar",
"vector-main-menu-tooltip",
"vector-jumptosearch",
"vector-jumptocontent",
"vector-toc-beginning",
"vector-toc-heading",
"vector-toc-toggle-position-sidebar",
"vector-toc-toggle-position-title",
"vector-toc-menu-tooltip",
"vector-toc-collapsible-button-label",
"vector-article-tools-nav-label",
"vector-site-nav-label",
"search",
"searchbutton",
"searcharticle",
"searchsuggest-search",
"sitesubtitle",
"sitetitle",
"tagline",
"personaltools"
]
}
]
}
},
"SkinLessImportPaths": {
"vector-2022": "../Vector/../Vector/resources/mediawiki.less",
"vector": "../Vector/../Vector/resources/mediawiki.less.legacy"
},
"MessagesDirs": {
"Vector": ["../Vector/i18n"]
},
"AutoloadNamespaces": {
"MediaWiki\\Skins\\Vector\\": "../Vector/includes/"
},
"TestAutoloadNamespaces": {
"MediaWiki\\Skins\\Vector\\Tests\\": "../Vector/tests/phpunit/"
},
"ConfigRegistry": {
"vector": "GlobalVarConfig::newInstance"
},
"HookHandlers": {
"VectorHooks": {
"class": "MediaWiki\\Skins\\Vector\\Hooks"
}
},
"Hooks": {
"RequestContextCreateSkin": "VectorHooks",
"GetPreferences": "VectorHooks",
"LocalUserCreated": "VectorHooks",
"MakeGlobalVariablesScript": "VectorHooks",
"OutputPageBodyAttributes": "VectorHooks",
"ResourceLoaderSiteModulePages": "VectorHooks",
"ResourceLoaderSiteStylesModulePages": "VectorHooks",
"SkinPageReadyConfig": "VectorHooks"
},
"@note": "When modifying skins.vector.styles definition, make sure the installer still works",
"ResourceModules": {
"skins.vector.user": {
"class": "MediaWiki\\Skins\\Vector\\ResourceLoader\\VectorResourceLoaderUserModule"
},
"skins.vector.user.styles": {
"class": "MediaWiki\\Skins\\Vector\\ResourceLoader\\VectorResourceLoaderUserStylesModule"
},
"skins.vector.search": {
"es6": true,
"dependencies": [
"mediawiki.Uri",
"mediawiki.util",
"@wikimedia/codex-search"
],
"packageFiles": [
"../Vector/resources/skins.vector.search/skins.vector.search.js",
"../Vector/resources/skins.vector.search/instrumentation.js",
"../Vector/resources/skins.vector.search/fetch.js",
"../Vector/resources/skins.vector.search/restSearchClient.js",
"../Vector/resources/skins.vector.search/urlGenerator.js",
"../Vector/resources/skins.vector.search/App.vue",
{
"name": "../Vector/resources/skins.vector.search/config.json",
"callback": "MediaWiki\\Skins\\Vector\\Hooks::getVectorSearchResourceLoaderConfig"
}
],
"messages": [
"searchbutton",
"searchresults",
"vector-searchsuggest-containing"
]
},
"skins.vector.styles.legacy": {
"class": "ResourceLoaderSkinModule",
"features": {
"normalize": true,
"elements": true,
"logo": true,
"content-media": true,
"content-links": true,
"content-links-external": false,
"interface": true,
"interface-message-box": true,
"interface-category": true,
"content-tables": true,
"i18n-ordered-lists": true,
"i18n-all-lists-margins": true,
"i18n-headings": true
},
"targets": ["desktop", "mobile"],
"styles": [
"../Vector/resources/common/common.less",
"../Vector/resources/skins.vector.styles.legacy/skin-legacy.less"
]
},
"skins.vector.AB.styles": {
"class": "ResourceLoaderSkinModule",
"features": ["toc"],
"styles": ["../Vector/resources/skins.vector.AB.styles.less"],
"targets": ["desktop", "mobile"]
},
"skins.vector.styles": {
"class": "ResourceLoaderSkinModule",
"features": {
"normalize": true,
"elements": true,
"content-links": true,
"content-links-external": false,
"content-media": true,
"content-tables": true,
"interface": false,
"interface-category": true,
"interface-edit-section-links": true,
"interface-indicators": false,
"interface-message-box": true,
"interface-site-notice": false,
"interface-subtitle": false,
"interface-user-message": true,
"i18n-ordered-lists": true,
"i18n-all-lists-margins": true,
"i18n-headings": true,
"toc": false
},
"targets": ["desktop", "mobile"],
"styles": [
"../Vector/resources/common/common.less",
"../Vector/resources/skins.vector.styles/skin.less",
"resources/fedora-fr.less"
],
"lessMessages": [
"parentheses-start",
"parentheses-end",
"brackets-start",
"brackets-end"
]
},
"skins.vector.icons.js": {
"selectorWithVariant": ".mw-ui-icon-wikimedia-{name}-{variant}:before",
"selectorWithoutVariant": ".mw-ui-icon-wikimedia-{name}:before",
"useDataURI": false,
"defaultColor": "#000",
"class": "ResourceLoaderOOUIIconPackModule",
"variants": {
"progressive": {
"color": "#36c",
"global": true
}
},
"icons": [
"article",
"edit",
"editLock",
"halfStar",
"history",
"speechBubbles",
"speechBubbleAdd",
"star",
"unStar",
"wikiText"
]
},
"skins.vector.icons": {
"selectorWithVariant": ".mw-ui-icon-wikimedia-{name}-{variant}:before",
"selectorWithoutVariant": ".mw-ui-icon-wikimedia-{name}:before",
"useDataURI": false,
"defaultColor": "#000",
"class": "ResourceLoaderOOUIIconPackModule",
"variants": {
"progressive": {
"color": "#36c",
"global": true
}
},
"icons": [
"language",
"ellipsis",
"userAvatar",
"userAdd",
"userAnonymous",
"userTalk",
"sandbox",
"search",
"settings",
"labFlask",
"unStar",
"watchlist",
"userContributions",
"logIn",
"logOut",
"imageGallery",
"userGroup",
"expand",
"listBullet"
]
},
"skins.vector.es6": {
"es6": true,
"packageFiles": [
"../Vector/resources/skins.vector.es6/main.js",
"../Vector/resources/skins.vector.es6/searchToggle.js",
"../Vector/resources/skins.vector.es6/stickyHeader.js",
"../Vector/resources/skins.vector.es6/scrollObserver.js",
"../Vector/resources/skins.vector.es6/AB.js",
"../Vector/resources/skins.vector.es6/tableOfContents.js",
"../Vector/resources/skins.vector.es6/sectionObserver.js",
"../Vector/resources/skins.vector.es6/deferUntilFrame.js",
{
"name": "../Vector/resources/skins.vector.es6/config.json",
"callback": "MediaWiki\\Skins\\Vector\\Hooks::getVectorResourceLoaderConfig"
},
{
"name": "../Vector/resources/skins.vector.es6/tableOfContentsConfig.json",
"config": [
"VectorTableOfContentsCollapseAtCount",
"VectorTableOfContentsBeginning"
]
},
{
"name": "../Vector/resources/skins.vector.es6/templates/TableOfContents.mustache",
"file": "../Vector/includes/templates/TableOfContents.mustache",
"type": "text"
},
{
"name": "../Vector/resources/skins.vector.es6/templates/TableOfContents__line.mustache",
"file": "../Vector/includes/templates/TableOfContents__line.mustache",
"type": "text"
}
],
"dependencies": [
"mediawiki.user",
"skins.vector.icons.js",
"mediawiki.page.ready",
"mediawiki.page.watch.ajax",
"mediawiki.util",
"mediawiki.experiments"
],
"messages": [
"vector-toc-beginning",
"vector-toc-heading",
"vector-toc-toggle-position-sidebar",
"vector-toc-toggle-position-title"
]
},
"skins.vector.js": {
"packageFiles": [
"../Vector/resources/skins.vector.js/skin.js",
{
"name": "../Vector/resources/skins.vector.js/config.json",
"callback": "MediaWiki\\Skins\\Vector\\Hooks::getVectorResourceLoaderConfig"
},
"../Vector/resources/skins.vector.js/dropdownMenus.js",
"../Vector/resources/skins.vector.js/checkbox.js",
"../Vector/resources/skins.vector.js/sidebarPersistence.js",
"../Vector/resources/skins.vector.js/languageButton.js",
"../Vector/resources/skins.vector.js/searchLoader.js"
],
"dependencies": [
"skins.vector.icons.js",
"mediawiki.page.ready",
"mediawiki.util"
],
"messages": ["vector-search-loader"]
},
"skins.vector.legacy.js": {
"packageFiles": [
"../Vector/resources/skins.vector.legacy.js/skin-legacy.js",
"../Vector/resources/skins.vector.legacy.js/collapsibleTabs.js",
"../Vector/resources/skins.vector.legacy.js/vector.js"
],
"dependencies": ["mediawiki.page.ready", "mediawiki.util"]
}
},
"ResourceFileModulePaths": {
"localBasePath": "",
"remoteSkinPath": "Vector"
},
"ResourceModuleSkinStyles": {
"vector-2022": {
"+ext.echo.styles.alert": "../Vector/skinStyles/ext.echo.styles.alert.less",
"+mediawiki.action.edit": "../Vector/skinStyles/mediawiki.action.edit.less",
"+mediawiki.action.view.redirectPage": "../Vector/skinStyles/mediawiki.action.view.redirectPage.less",
"+mediawiki.notification": "../Vector/skinStyles/mediawiki.notification.less",
"+oojs-ui-core.styles": "../Vector/skinStyles/ooui.less",
"mediawiki.special": "../Vector/skinStyles/mediawiki.special.less",
"+ext.relatedArticles.readMore": "../Vector/skinStyles/ext.relatedArticles.readMore.less",
"+ext.uls.compactlinks": "../Vector/skinStyles/ext.uls.compactlinks.less",
"+ext.uls.interface": "../Vector/skinStyles/ext.uls.interface.less",
"+ext.visualEditor.base": "../Vector/skinStyles/ext.visualEditor.less"
}
},
"config": {
"VectorVisualEnhancementNext": {
"value": false,
"description": "Temporary configuration flag for enabling in development enhancements."
},
"Vector2022PreviewPages": {
"value": [],
"description": "Temporary configuration flag for allowing users to preview the new Vector skin."
},
"VectorSearchHost": {
"value": "",
"description": "Override default search API. Can be used with $wgDisableTextSearch and $wgSearchForwardUrl to mimic user experience on production."
},
"VectorUseIconWatch": {
"value": true
},
"VectorMaxWidthOptions": {
"value": {
"exclude": {
"mainpage": false,
"querystring": {
"action": "(history|edit)",
"diff": ".+"
},
"namespaces": [-1, 14]
},
"include": ["Special:Preferences"]
},
"description": "options for configuring where where max-width should and should not apply. More details can be found in Hooks::shouldDisableMaxWidth PHP documentation."
},
"VectorResponsive": {
"value": false,
"description": "@var boolean turn Vector-2022 into a responsive skin by applying a view port and disabling the min-width"
},
"VectorDefaultSkinVersionForExistingAccounts": {
"value": "1",
"description": "@var string:['2'|'1'] The version ('2' for latest, '1' for legacy) of the Vector skin to use when an existing user has not specified a preference. This configuration is not used for new accounts (see VectorDefaultSkinVersionForNewAccounts) and is impermanent. In the future, this field may contains versions such as \"beta\" which when specified and the BetaFeatures extension is installed, and the user is enrolled, the latest version is used otherwise legacy. The value is _not_ persisted."
},
"VectorDefaultSkinVersionForNewAccounts": {
"value": null,
"description": "@var string|null The version ('2' for latest, '1' for legacy) of the Vector skin to **set** for newly created user accounts. **The value is persisted as a user preference.** This configuration is not used for preexisting accounts (see VectorDefaultSkinVersionForExistingAccounts) and only ever executed once at new account creation time. If it is null, no user preference will be set."
},
"VectorWvuiSearchOptions": {
"value": {
"showThumbnail": true,
"showDescription": true
}
},
"VectorDefaultSidebarVisibleForAuthorisedUser": {
"value": true
},
"VectorDefaultSidebarVisibleForAnonymousUser": {
"value": false
},
"VectorLanguageInHeader": {
"value": {
"logged_in": true,
"logged_out": true
},
"description": "@var array Moves the language links from the sidebar into a menu beside the page title. Also moves the indicators to the line below, next to the tagline (siteSub)."
},
"VectorLanguageInMainPageHeader": {
"value": {
"logged_in": false,
"logged_out": false
},
"description": "@var When `VectorLanguageInHeader` is enabled, determines whether the Main Page's language button should be at the top or bottom of the content. The default position on the main page is at the bottom."
},
"VectorLanguageAlertInSidebar": {
"value": {
"logged_in": false,
"logged_out": false
},
"description": "@var When `VectorLanguageAlertInSidebar` is enabled, the language switch alert box is shown in the sidebar."
},
"VectorLanguageInHeaderTreatmentABTest": {
"value": false,
"description": "@var boolean Enables or disables the language in header treatment A/B test. See https://phabricator.wikimedia.org/T280825 and associated tasks for additional detail."
},
"VectorStickyHeader": {
"value": {
"logged_in": true,
"logged_out": false
},
"description": "@var array Enables a persistent header that allows quick access to user links, editing tools, search and other links while scrolling down a page"
},
"VectorStickyHeaderEdit": {
"value": {
"logged_in": false,
"logged_out": false
},
"description": "@var array Enables the edit icons if $wgVectorStickyHeader is true."
},
"VectorWebABTestEnrollment": {
"value": {
"name": "skin-vector-toc-experiment",
"enabled": false,
"buckets": {
"unsampled": {
"samplingRate": 0
},
"control": {
"samplingRate": 0.5
},
"treatment": {
"samplingRate": 0.5
}
}
},
"description": "An associative array of A/B test configs keyed by parameters noted in mediawiki.experiments.js. There must be an `unsampled` bucket that represents a population excluded from the experiment. Additionally, the treatment bucket(s) must include a case-insensitive `treatment` substring in their name (e.g. `treatment`, `stickyHeaderTreatment`, `sticky-header-treatment`)"
},
"VectorDisableSidebarPersistence": {
"value": false,
"description": "@var boolean Temporary feature flag that disables saving the sidebar expanded/collapsed state as a user-preference (triggered via clicking the main menu icon). This is intended as a temporary kill-switch in the event that the DB is overloaded with writes to the user_options table."
},
"VectorTableOfContentsBeginning": {
"value": true,
"description": "@var boolean Temporary feature flag that controls link to beginning of article."
},
"VectorTableOfContentsCollapseAtCount": {
"value": 20,
"description": "@var The minimum number of headings required to collapse all headings in the sticky table of contents by default."
}
},
"ServiceWiringFiles": ["../Vector/includes/ServiceWiring.php"],
"manifest_version": 2
}