2015-04-07 19:52:32 +00:00
{
"name" : "Vector" ,
2020-04-28 21:16:21 +00:00
"version" : "1.0.0" ,
2015-04-07 19:52:32 +00:00
"author" : [
2022-08-05 12:49:53 +00:00
"[https://www.mediawiki.org/wiki/Readers/Web/Team Readers Web Team]" ,
2015-04-07 19:52:32 +00:00
"Trevor Parscal" ,
"Roan Kattouw" ,
2021-12-15 22:40:35 +00:00
"Alex Hollender" ,
"Bernard Wang" ,
"Clare Ming" ,
"Jan Drewniak" ,
"Jon Robson" ,
"Nick Ray" ,
"Sam Smith" ,
"Stephen Niedzielski" ,
"Volker E."
2015-04-07 19:52:32 +00:00
] ,
"url" : "https://www.mediawiki.org/wiki/Skin:Vector" ,
"descriptionmsg" : "vector-skin-desc" ,
2022-02-09 19:23:09 +00:00
"namemsg" : "vector-specialversion-name" ,
2018-02-16 18:41:02 +00:00
"license-name" : "GPL-2.0-or-later" ,
2015-04-07 19:52:32 +00:00
"type" : "skin" ,
2015-09-23 15:31:56 +00:00
"requires" : {
2023-11-29 12:42:02 +00:00
"MediaWiki" : ">= 1.42.0"
2015-09-23 15:31:56 +00:00
} ,
2024-02-14 21:00:50 +00:00
"attributes" : {
"DarkMode" : {
"Disabled" : [
"vector-2022"
]
}
} ,
2015-04-07 19:52:32 +00:00
"ValidSkinNames" : {
2021-09-09 22:13:48 +00:00
"vector-2022" : {
2022-05-23 07:32:40 +00:00
"class" : "MediaWiki\\Skins\\Vector\\SkinVector22" ,
2024-03-05 20:21:10 +00:00
"services" : [
2024-06-14 10:29:40 +00:00
"LanguageConverterFactory" ,
2024-03-05 20:21:10 +00:00
"Vector.FeatureManagerFactory"
] ,
2021-09-09 22:13:48 +00:00
"args" : [
{
"name" : "vector-2022" ,
2024-05-23 16:22:19 +00:00
"supportsMwHeading" : true ,
2024-04-25 00:12:26 +00:00
"wrapSiteNotice" : true ,
2021-09-09 22:13:48 +00:00
"templateDirectory" : "includes/templates" ,
2022-01-20 22:14:19 +00:00
"template" : "skin" ,
2023-06-16 17:15:08 +00:00
"tempUserBanner" : true ,
2021-09-09 22:13:48 +00:00
"responsive" : true ,
2022-12-09 21:27:12 +00:00
"toc" : false ,
2021-09-09 22:13:48 +00:00
"link" : {
"text-wrapper" : {
"tag" : "span"
2022-03-29 15:50:10 +00:00
}
2021-09-09 22:13:48 +00:00
} ,
2022-03-29 15:50:10 +00:00
"bodyClasses" : [
2024-06-04 19:50:06 +00:00
"skin--responsive" ,
2022-03-29 15:50:10 +00:00
"skin-vector" ,
2023-02-23 21:23:46 +00:00
"skin-vector-search-vue"
2022-03-29 15:50:10 +00:00
] ,
2023-08-09 22:25:33 +00:00
"clientPrefEnabled" : true ,
2022-07-22 18:06:07 +00:00
"menus" : [
"user-interface-preferences" ,
"user-page" ,
"user-menu" ,
"notifications" ,
"views" ,
"actions" ,
"variants" ,
"associated-pages"
] ,
2022-01-20 22:14:19 +00:00
"scripts" : [
2023-04-10 19:31:50 +00:00
"skins.vector.js"
2022-01-20 22:14:19 +00:00
] ,
"styles" : [
2024-03-12 13:36:15 +00:00
"skins.vector.search.codex.styles" ,
2022-01-20 22:14:19 +00:00
"skins.vector.styles" ,
2023-04-27 20:39:40 +00:00
"skins.vector.icons"
2022-02-04 16:04:10 +00:00
] ,
2021-09-09 22:13:48 +00:00
"messages" : [
"tooltip-p-logo" ,
"vector-opt-out-tooltip" ,
"vector-opt-out" ,
"vector-action-toggle-sidebar" ,
"vector-main-menu-tooltip" ,
"vector-jumptosearch" ,
"vector-jumptocontent" ,
2022-03-15 16:34:59 +00:00
"vector-toc-beginning" ,
2022-11-10 20:27:38 +00:00
"vector-toc-label" ,
2022-07-21 22:21:53 +00:00
"vector-toc-menu-tooltip" ,
"vector-toc-collapsible-button-label" ,
2022-11-10 20:27:38 +00:00
"vector-pin-element-label" ,
"vector-unpin-element-label" ,
2022-04-18 20:10:12 +00:00
"vector-site-nav-label" ,
2021-09-09 22:13:48 +00:00
"search" ,
"searchbutton" ,
"searcharticle" ,
"searchsuggest-search" ,
"sitesubtitle" ,
"sitetitle" ,
2022-04-18 20:10:12 +00:00
"tagline" ,
2022-09-29 15:28:57 +00:00
"personaltools" ,
"namespaces" ,
"views" ,
2023-09-04 13:24:17 +00:00
"vector-page-tools-nav-label" ,
2023-03-23 20:03:13 +00:00
"empty-language-selector-body" ,
2024-04-12 03:27:34 +00:00
"vector-appearance-label"
2021-09-09 22:13:48 +00:00
]
}
]
} ,
2020-04-28 21:16:21 +00:00
"vector" : {
2022-05-23 07:32:40 +00:00
"class" : "MediaWiki\\Skins\\Vector\\SkinVectorLegacy" ,
2024-06-14 10:29:40 +00:00
"services" : [
"LanguageConverterFactory"
] ,
2020-04-28 21:16:21 +00:00
"args" : [
{
"name" : "vector" ,
2024-04-20 02:40:56 +00:00
"supportsMwHeading" : true ,
2024-04-25 00:12:26 +00:00
"wrapSiteNotice" : true ,
2022-01-20 22:14:19 +00:00
"template" : "skin-legacy" ,
2024-03-20 15:21:33 +00:00
"clientPrefEnabled" : true ,
2021-08-27 15:47:15 +00:00
"templateDirectory" : "includes/templates" ,
2023-01-18 15:06:02 +00:00
"responsive" : false ,
2021-09-09 22:13:48 +00:00
"link" : {
"text-wrapper" : {
"tag" : "span"
}
} ,
2022-10-17 08:43:26 +00:00
"bodyClasses" : [
"skin-vector-legacy"
] ,
2022-01-20 22:14:19 +00:00
"scripts" : [
"skins.vector.legacy.js"
] ,
"styles" : [
"skins.vector.styles.legacy"
] ,
2020-08-05 08:22:22 +00:00
"messages" : [
2020-09-04 19:18:57 +00:00
"tooltip-p-logo" ,
2020-08-05 20:27:38 +00:00
"vector-opt-out-tooltip" ,
"vector-opt-out" ,
"navigation-heading" ,
2020-08-05 08:22:22 +00:00
"vector-action-toggle-sidebar" ,
2021-08-25 15:24:58 +00:00
"vector-main-menu-tooltip" ,
2020-08-05 08:22:22 +00:00
"vector-jumptonavigation" ,
"vector-jumptosearch" ,
2020-09-08 23:20:58 +00:00
"vector-jumptocontent" ,
2021-06-02 22:57:43 +00:00
"search" ,
2021-09-16 18:00:05 +00:00
"searchbutton" ,
"searcharticle" ,
2021-09-16 19:27:10 +00:00
"searchsuggest-search" ,
2020-08-05 08:22:22 +00:00
"sitesubtitle" ,
"sitetitle" ,
"tagline"
2021-09-09 22:13:48 +00:00
]
2020-04-28 21:16:21 +00:00
}
]
}
2015-04-07 19:52:32 +00:00
} ,
2018-05-20 18:58:47 +00:00
"SkinLessImportPaths" : {
2023-03-08 01:41:14 +00:00
"vector-2022" : "resources/mediawiki.less/vector-2022" ,
"vector" : "resources/mediawiki.less/vector"
2018-05-20 18:58:47 +00:00
} ,
2015-04-07 19:52:32 +00:00
"MessagesDirs" : {
"Vector" : [
"i18n"
]
} ,
2020-02-20 16:37:33 +00:00
"AutoloadNamespaces" : {
2022-05-23 07:32:40 +00:00
"MediaWiki\\Skins\\Vector\\" : "includes/"
} ,
"TestAutoloadNamespaces" : {
2022-10-27 16:11:32 +00:00
"MediaWiki\\Skins\\Vector\\" : "includes/" ,
2022-05-23 07:32:40 +00:00
"MediaWiki\\Skins\\Vector\\Tests\\" : "tests/phpunit/"
2020-02-20 16:37:33 +00:00
} ,
2022-10-18 01:15:50 +00:00
"DefaultUserOptions" : {
2022-12-07 22:15:31 +00:00
"vector-limited-width" : 1 ,
2022-12-15 22:52:24 +00:00
"vector-page-tools-pinned" : 1 ,
2023-02-23 21:23:46 +00:00
"vector-main-menu-pinned" : 1 ,
2023-09-20 22:48:26 +00:00
"vector-toc-pinned" : 1 ,
2024-04-12 03:27:34 +00:00
"vector-appearance-pinned" : 1 ,
2024-01-31 21:11:51 +00:00
"vector-font-size" : 0 ,
2024-07-11 14:59:04 +00:00
"vector-theme" : "day"
2022-10-18 01:15:50 +00:00
} ,
2021-01-02 13:11:04 +00:00
"HookHandlers" : {
2023-08-29 18:03:09 +00:00
"VectorCentralAuthHooks" : {
"class" : "MediaWiki\\Skins\\Vector\\CentralAuthHooks" ,
"services" : [
"UserOptionsLookup"
]
} ,
2021-01-02 13:11:04 +00:00
"VectorHooks" : {
2024-02-27 19:33:12 +00:00
"class" : "MediaWiki\\Skins\\Vector\\Hooks" ,
"services" : [
"MainConfig" ,
"UserOptionsManager"
]
2021-01-02 13:11:04 +00:00
}
} ,
2017-06-30 19:21:16 +00:00
"Hooks" : {
2023-08-29 18:03:09 +00:00
"CentralAuthIsUIReloadRecommended" : "VectorCentralAuthHooks" ,
2021-01-02 13:11:04 +00:00
"GetPreferences" : "VectorHooks" ,
"LocalUserCreated" : "VectorHooks" ,
2023-10-18 17:32:16 +00:00
"SkinPageReadyConfig" : "VectorHooks" ,
"GetBetaFeaturePreferences" : "VectorHooks"
2017-06-30 19:21:16 +00:00
} ,
2015-07-24 00:05:26 +00:00
"@note" : "When modifying skins.vector.styles definition, make sure the installer still works" ,
2015-04-07 19:52:32 +00:00
"ResourceModules" : {
2024-02-27 16:56:54 +00:00
"skins.vector.search.codex.styles" : {
"class" : "MediaWiki\\ResourceLoader\\CodexModule" ,
"codexStyleOnly" : true ,
"codexComponents" : [
"CdxTypeaheadSearch" ,
"CdxSearchInput" ,
"CdxButton" ,
"CdxRadio" ,
"CdxMessage"
]
} ,
2024-03-12 13:36:15 +00:00
"skins.vector.search.codex.scripts" : {
"dependencies" : [
"skins.vector.search.codex.styles"
] ,
"class" : "MediaWiki\\ResourceLoader\\CodexModule" ,
"codexScriptOnly" : true ,
"codexComponents" : [
"CdxTypeaheadSearch"
]
} ,
2021-02-12 00:50:31 +00:00
"skins.vector.search" : {
"dependencies" : [
2021-02-12 18:07:18 +00:00
"mediawiki.Uri" ,
2022-02-01 20:52:16 +00:00
"mediawiki.util" ,
2024-03-12 13:36:15 +00:00
"skins.vector.search.codex.scripts"
2021-02-12 00:50:31 +00:00
] ,
"packageFiles" : [
"resources/skins.vector.search/skins.vector.search.js" ,
"resources/skins.vector.search/instrumentation.js" ,
2022-02-14 20:12:03 +00:00
"resources/skins.vector.search/fetch.js" ,
2022-02-02 21:17:56 +00:00
"resources/skins.vector.search/restSearchClient.js" ,
2022-02-01 20:52:16 +00:00
"resources/skins.vector.search/urlGenerator.js" ,
2021-02-12 00:50:31 +00:00
"resources/skins.vector.search/App.vue" ,
{
"name" : "resources/skins.vector.search/config.json" ,
2022-02-01 20:52:16 +00:00
"callback" : "MediaWiki\\Skins\\Vector\\Hooks::getVectorSearchResourceLoaderConfig"
2021-02-12 00:50:31 +00:00
}
] ,
"messages" : [
2021-05-26 21:13:43 +00:00
"searchbutton" ,
2021-02-12 00:50:31 +00:00
"searchresults" ,
2021-09-30 20:52:16 +00:00
"vector-searchsuggest-containing"
2021-02-12 00:50:31 +00:00
]
} ,
2020-03-11 22:35:38 +00:00
"skins.vector.styles.legacy" : {
2024-01-13 21:45:46 +00:00
"class" : "MediaWiki\\ResourceLoader\\SkinModule" ,
2020-09-14 22:16:58 +00:00
"features" : {
"normalize" : true ,
"elements" : true ,
2021-07-29 20:51:44 +00:00
"logo" : true ,
2021-08-18 18:29:28 +00:00
"content-media" : true ,
2021-07-29 20:51:44 +00:00
"content-links" : true ,
2022-01-25 16:08:49 +00:00
"content-links-external" : false ,
2020-09-14 22:16:58 +00:00
"interface" : true ,
2021-07-29 20:51:44 +00:00
"interface-message-box" : true ,
"interface-category" : true ,
"content-tables" : true ,
"i18n-ordered-lists" : true ,
"i18n-all-lists-margins" : true ,
"i18n-headings" : true
2020-09-14 22:16:58 +00:00
} ,
2021-02-02 10:04:37 +00:00
"styles" : [
"resources/skins.vector.styles.legacy/skin-legacy.less"
]
2020-03-11 22:35:38 +00:00
} ,
2015-07-24 00:05:26 +00:00
"skins.vector.styles" : {
2024-01-13 21:45:46 +00:00
"class" : "MediaWiki\\ResourceLoader\\SkinModule" ,
2020-09-14 22:16:58 +00:00
"features" : {
"normalize" : true ,
"elements" : true ,
2024-06-17 17:24:17 +00:00
"content-links" : false ,
2022-01-25 16:08:49 +00:00
"content-links-external" : false ,
2021-03-30 22:09:54 +00:00
"content-media" : true ,
2021-07-27 15:19:08 +00:00
"content-tables" : true ,
2022-08-23 07:38:54 +00:00
"interface" : false ,
2021-03-30 22:09:54 +00:00
"interface-category" : true ,
2022-08-23 07:38:54 +00:00
"interface-edit-section-links" : true ,
"interface-indicators" : false ,
2024-03-12 13:36:15 +00:00
"interface-message-box" : false ,
2022-08-23 07:38:54 +00:00
"interface-site-notice" : false ,
"interface-subtitle" : false ,
"interface-user-message" : true ,
2021-03-30 22:09:54 +00:00
"i18n-ordered-lists" : true ,
"i18n-all-lists-margins" : true ,
2022-07-01 20:16:36 +00:00
"i18n-headings" : true ,
"toc" : false
2020-09-14 22:16:58 +00:00
} ,
2021-02-02 10:04:37 +00:00
"styles" : [
2024-03-06 22:12:45 +00:00
"resources/skins.vector.styles/CSSCustomProperties.less" ,
2021-02-02 10:04:37 +00:00
"resources/skins.vector.styles/skin.less"
2021-08-25 20:16:33 +00:00
] ,
"lessMessages" : [
"parentheses-start" ,
2022-07-26 20:57:51 +00:00
"parentheses-end" ,
"brackets-start" ,
"brackets-end"
2021-02-02 10:04:37 +00:00
]
2015-07-24 00:05:26 +00:00
} ,
2021-09-14 16:53:35 +00:00
"skins.vector.icons.js" : {
2023-06-12 22:22:33 +00:00
"selectorWithVariant" : ".vector-icon.mw-ui-icon-wikimedia-{name}-{variant}" ,
"selectorWithoutVariant" : ".vector-icon.mw-ui-icon-wikimedia-{name}" ,
2021-09-14 16:53:35 +00:00
"useDataURI" : false ,
"defaultColor" : "#000" ,
2024-01-13 21:45:46 +00:00
"class" : "MediaWiki\\ResourceLoader\\OOUIIconPackModule" ,
2022-05-05 13:43:10 +00:00
"variants" : {
"progressive" : {
"color" : "#36c" ,
"global" : true
}
} ,
2021-09-14 16:53:35 +00:00
"icons" : [
2022-07-22 21:21:51 +00:00
"article" ,
2021-09-24 21:00:32 +00:00
"edit" ,
"editLock" ,
2023-05-02 18:31:34 +00:00
"exitFullscreen" ,
"fullScreen" ,
2021-11-15 23:09:51 +00:00
"history" ,
"speechBubbles" ,
2022-05-05 13:43:10 +00:00
"speechBubbleAdd" ,
2023-11-30 00:21:04 +00:00
"wikiText" ,
"appearance"
2021-09-14 16:53:35 +00:00
]
} ,
2021-02-01 22:56:31 +00:00
"skins.vector.icons" : {
2023-06-12 22:22:33 +00:00
"selectorWithVariant" : ".vector-icon.mw-ui-icon-wikimedia-{name}-{variant}" ,
"selectorWithoutVariant" : ".vector-icon.mw-ui-icon-wikimedia-{name}" ,
2021-02-01 22:56:31 +00:00
"useDataURI" : false ,
2021-03-22 22:59:18 +00:00
"defaultColor" : "#000" ,
2024-01-13 21:45:46 +00:00
"class" : "MediaWiki\\ResourceLoader\\OOUIIconPackModule" ,
2021-12-01 19:49:12 +00:00
"variants" : {
"progressive" : {
"color" : "#36c" ,
"global" : true
}
} ,
2021-02-01 22:56:31 +00:00
"icons" : [
2023-04-27 20:39:40 +00:00
"tray" ,
"bell" ,
2022-11-30 22:22:33 +00:00
"menu" ,
2022-09-02 14:57:31 +00:00
"heart" ,
2021-04-30 02:54:54 +00:00
"language" ,
2021-06-24 19:13:20 +00:00
"ellipsis" ,
2021-06-02 22:57:43 +00:00
"userAvatar" ,
2022-04-14 14:48:00 +00:00
"userAdd" ,
2023-07-20 18:29:30 +00:00
"userTemporary" ,
2021-06-03 22:09:29 +00:00
"userTalk" ,
2021-11-23 17:07:21 +00:00
"sandbox" ,
2021-06-02 22:57:43 +00:00
"search" ,
2021-06-03 22:09:29 +00:00
"settings" ,
"labFlask" ,
2023-06-08 23:41:41 +00:00
"star" ,
"halfStar" ,
2021-06-03 22:09:29 +00:00
"unStar" ,
2022-01-12 23:26:02 +00:00
"watchlist" ,
2021-06-03 22:09:29 +00:00
"userContributions" ,
"logIn" ,
2021-08-24 16:54:41 +00:00
"logOut" ,
2021-09-03 12:37:29 +00:00
"imageGallery" ,
2022-02-07 19:20:17 +00:00
"userGroup" ,
2023-04-12 20:36:55 +00:00
"listBullet" ,
"close"
2021-02-01 22:56:31 +00:00
]
} ,
2023-09-14 15:36:54 +00:00
"skins.vector.clientPreferences" : {
"packageFiles" : [
2024-01-12 00:07:33 +00:00
"resources/skins.vector.clientPreferences/clientPreferences.js"
2023-09-14 15:36:54 +00:00
] ,
"messages" : [
2024-03-20 18:13:14 +00:00
"skin-theme-name" ,
"skin-theme-description" ,
"skin-theme-day-label" ,
"skin-theme-night-label" ,
"skin-theme-os-label" ,
2024-04-11 04:14:29 +00:00
"skin-theme-exclusion-notice" ,
2023-09-14 15:36:54 +00:00
"vector-feature-limited-width-name" ,
"vector-feature-limited-width-0-label" ,
"vector-feature-limited-width-1-label" ,
2024-06-04 16:32:47 +00:00
"vector-feature-limited-width-exclusion-notice" ,
2024-01-31 21:11:51 +00:00
"vector-feature-custom-font-size-name" ,
2023-10-13 18:03:49 +00:00
"vector-feature-custom-font-size-0-label" ,
"vector-feature-custom-font-size-1-label" ,
feature(Vector): Add configurable font size exclusions
This patch introduces the ability to configure font size exclusions
for specific pages within the Vector skin, ensuring certain pages
always use a small font size. This change is part of ongoing improvements
to the Vector skin's customizability features.
Changes:
- Updated `skin.json` to include `VectorFontSizeConfigurableOptions`
- Added new i18n string `vector-feature-custom-font-size-exclusion-notice`
- Modified logic for font size exclusion handling in `FeatureManager.php`
Additional Notes:
- Affects testing and beta deployment environments, ensure relevant
settings are updated in `LocalSettings.php`.
For testing and on beta deployment, these settings should be set in
the LocalSettings.php of the environment, example:
$wgVectorAppearance = [
"logged_in" => true,
"logged_out" => true,
"beta" => true
];
$wgVectorFontSizeConfigurableOptions = [
"exclude" => [
"namespaces" => [ -1, 2, 6, 8, 10, 14, 100, 710, 828 ],
"querystring" => [
"action" => "edit|submit|diff|info|protect|delete|undelete|diff|history",
"diff" => ".+"
]
]
];
Bug: T364887
Change-Id: I23b9c4fb63f35c7d27544197fead3ad7619c67f1
2024-05-15 13:54:26 +00:00
"vector-feature-custom-font-size-2-label" ,
2024-06-27 15:21:24 +00:00
"vector-feature-custom-font-size-exclusion-notice" ,
"vector-night-mode-issue-reporting-notice-url" ,
"vector-night-mode-issue-reporting-preload-title" ,
"vector-night-mode-beta-tag" ,
"vector-night-mode-issue-reporting-link-notification" ,
"vector-night-mode-issue-reporting-link-label"
2023-09-14 15:36:54 +00:00
] ,
"dependencies" : [
2023-11-07 23:35:26 +00:00
"mediawiki.api" ,
2023-09-14 15:36:54 +00:00
"mediawiki.user"
] ,
"styles" : [
"resources/skins.vector.clientPreferences/clientPreferences.less"
]
} ,
2023-04-10 19:31:50 +00:00
"skins.vector.js" : {
2024-03-21 17:00:34 +00:00
"class" : "MediaWiki\\ResourceLoader\\SkinModule" ,
"features" : [
"interface-message-box"
] ,
2024-05-06 08:42:40 +00:00
"styles" : [
"resources/skins.vector.js/index.less"
] ,
2021-10-20 18:58:49 +00:00
"packageFiles" : [
2023-04-10 19:31:50 +00:00
"resources/skins.vector.js/skin.js" ,
2024-03-21 17:00:34 +00:00
"resources/skins.vector.js/legacyMessageBoxStyles.js" ,
2023-04-10 19:31:50 +00:00
"resources/skins.vector.js/setupIntersectionObservers.js" ,
"resources/skins.vector.js/searchToggle.js" ,
"resources/skins.vector.js/stickyHeader.js" ,
"resources/skins.vector.js/scrollObserver.js" ,
"resources/skins.vector.js/AB.js" ,
"resources/skins.vector.js/tableOfContents.js" ,
"resources/skins.vector.js/sectionObserver.js" ,
"resources/skins.vector.js/deferUntilFrame.js" ,
"resources/skins.vector.js/pinnableElement.js" ,
2024-06-06 02:17:00 +00:00
"resources/skins.vector.js/userPreferences.js" ,
2023-04-10 19:31:50 +00:00
"resources/skins.vector.js/features.js" ,
"resources/skins.vector.js/limitedWidthToggle.js" ,
"resources/skins.vector.js/popupNotification.js" ,
2024-01-12 00:07:33 +00:00
"resources/skins.vector.js/clientPreferences.json" ,
2023-04-10 18:56:19 +00:00
{
2023-04-10 19:31:50 +00:00
"name" : "resources/skins.vector.js/activeABTest.json" ,
2023-04-10 18:56:19 +00:00
"callback" : "MediaWiki\\Skins\\Vector\\Hooks::getActiveABTest"
} ,
2021-10-26 23:37:56 +00:00
{
2023-04-10 19:31:50 +00:00
"name" : "resources/skins.vector.js/config.json" ,
2023-08-19 04:23:07 +00:00
"config" : [
2024-05-29 22:35:45 +00:00
"VectorSearchApiUrl" ,
"VectorWrapTablesTemporary"
2023-08-19 04:23:07 +00:00
]
2022-08-15 16:34:28 +00:00
} ,
{
2023-04-10 19:31:50 +00:00
"name" : "resources/skins.vector.js/tableOfContentsConfig.json" ,
2022-08-15 16:34:28 +00:00
"config" : [
2023-05-08 22:10:52 +00:00
"VectorTableOfContentsCollapseAtCount"
2022-08-15 16:34:28 +00:00
]
} ,
2023-01-11 01:54:03 +00:00
{
2023-04-10 19:31:50 +00:00
"name" : "resources/skins.vector.js/templates/TableOfContents__list.mustache" ,
2023-01-16 11:39:05 +00:00
"file" : "includes/templates/TableOfContents__list.mustache" ,
2022-08-15 16:34:28 +00:00
"type" : "text"
} ,
{
2023-04-10 19:31:50 +00:00
"name" : "resources/skins.vector.js/templates/TableOfContents__line.mustache" ,
2022-08-15 16:34:28 +00:00
"file" : "includes/templates/TableOfContents__line.mustache" ,
"type" : "text"
2023-04-10 19:31:50 +00:00
} ,
"resources/skins.vector.js/watchstar.js" ,
2023-07-20 10:56:06 +00:00
"resources/skins.vector.js/portlets.js" ,
2023-04-10 19:31:50 +00:00
"resources/skins.vector.js/dropdownMenus.js" ,
2024-05-24 16:15:14 +00:00
"resources/skins.vector.js/tables.js" ,
2023-04-10 19:31:50 +00:00
"resources/skins.vector.js/languageButton.js" ,
"resources/skins.vector.js/echo.js" ,
"resources/skins.vector.js/searchLoader.js" ,
2024-05-28 23:30:23 +00:00
"resources/skins.vector.js/menuTabs.js" ,
"resources/skins.vector.js/disableNightModeIfGadget.js"
2021-10-26 23:37:56 +00:00
] ,
"dependencies" : [
2023-09-14 15:36:54 +00:00
"skins.vector.clientPreferences" ,
2021-12-21 22:00:04 +00:00
"mediawiki.user" ,
2021-11-15 23:09:51 +00:00
"mediawiki.page.watch.ajax" ,
2022-10-21 18:14:54 +00:00
"mediawiki.storage" ,
2023-01-24 19:14:00 +00:00
"mediawiki.cookie" ,
2023-04-10 19:31:50 +00:00
"mediawiki.experiments" ,
"skins.vector.icons.js" ,
2024-05-28 23:30:23 +00:00
"mediawiki.util" ,
"mediawiki.jqueryMsg"
2022-08-15 16:34:28 +00:00
] ,
"messages" : [
2023-04-03 21:16:52 +00:00
"vector-limited-width-toggle-on-popup" ,
"vector-limited-width-toggle-off-popup" ,
2023-04-10 19:31:50 +00:00
"vector-search-loader" ,
2023-01-04 20:37:15 +00:00
"vector-limited-width-toggle" ,
2022-08-15 16:34:28 +00:00
"vector-toc-beginning" ,
2022-11-10 20:27:38 +00:00
"vector-toc-label" ,
"vector-pin-element-label" ,
2023-03-23 20:03:13 +00:00
"vector-unpin-element-label" ,
"vector-toc-unpinned-popup" ,
"vector-page-tools-unpinned-popup" ,
2023-11-27 17:39:57 +00:00
"vector-main-menu-unpinned-popup" ,
2024-05-28 23:30:23 +00:00
"vector-appearance-unpinned-popup" ,
"vector-night-mode-gadget-names" ,
"vector-night-mode-gadget-warning"
2021-10-20 18:58:49 +00:00
]
} ,
2020-05-11 21:29:56 +00:00
"skins.vector.legacy.js" : {
"packageFiles" : [
2020-05-14 20:54:15 +00:00
"resources/skins.vector.legacy.js/skin-legacy.js" ,
2023-07-26 21:05:16 +00:00
"resources/skins.vector.legacy.js/portlets.js" ,
2020-05-11 21:29:56 +00:00
"resources/skins.vector.legacy.js/collapsibleTabs.js" ,
"resources/skins.vector.legacy.js/vector.js"
2015-04-07 19:52:32 +00:00
] ,
"dependencies" : [
2020-07-14 13:07:09 +00:00
"mediawiki.page.ready" ,
2019-10-04 00:06:46 +00:00
"mediawiki.util"
2015-04-07 19:52:32 +00:00
]
}
} ,
"ResourceFileModulePaths" : {
"localBasePath" : "" ,
"remoteSkinPath" : "Vector"
} ,
"ResourceModuleSkinStyles" : {
2021-09-09 22:13:48 +00:00
"vector-2022" : {
2022-09-23 17:46:28 +00:00
"ext.echo.styles.badge" : "skinStyles/ext.echo.styles.badge.less" ,
2021-09-09 22:13:48 +00:00
"+ext.echo.styles.alert" : "skinStyles/ext.echo.styles.alert.less" ,
2022-05-30 03:46:57 +00:00
"+mediawiki.action.edit" : "skinStyles/mediawiki.action.edit.less" ,
2021-09-09 22:13:48 +00:00
"+mediawiki.action.view.redirectPage" : "skinStyles/mediawiki.action.view.redirectPage.less" ,
"+mediawiki.notification" : "skinStyles/mediawiki.notification.less" ,
2023-11-06 00:29:50 +00:00
"+oojs-ui-core.styles" : "skinStyles/ooui.less" ,
2023-04-06 09:29:29 +00:00
"mediawiki.special.search.interwikiwidget.styles" : "skinStyles/mediawiki.special.search.interwikiwidget.less" ,
2021-09-09 22:13:48 +00:00
"+ext.relatedArticles.readMore" : "skinStyles/ext.relatedArticles.readMore.less" ,
2022-01-10 22:41:38 +00:00
"+ext.uls.compactlinks" : "skinStyles/ext.uls.compactlinks.less" ,
2022-04-28 19:48:09 +00:00
"+ext.uls.interface" : "skinStyles/ext.uls.interface.less" ,
2023-05-10 22:11:30 +00:00
"+ext.uls.pt" : "skinStyles/ext.uls.pt.less" ,
2022-11-07 13:20:45 +00:00
"+ext.visualEditor.base" : "skinStyles/ext.visualEditor.less" ,
"jquery.ui" : [
"skinStyles/jquery.ui/jquery.ui.core.css" ,
"skinStyles/jquery.ui/jquery.ui.theme.css" ,
"skinStyles/jquery.ui/jquery.ui.accordion.css" ,
"skinStyles/jquery.ui/jquery.ui.autocomplete.css" ,
"skinStyles/jquery.ui/jquery.ui.button.css" ,
"skinStyles/jquery.ui/jquery.ui.datepicker.css" ,
"skinStyles/jquery.ui/jquery.ui.dialog.css" ,
"skinStyles/jquery.ui/jquery.ui.menu.css" ,
"skinStyles/jquery.ui/jquery.ui.progressbar.css" ,
"skinStyles/jquery.ui/jquery.ui.resizable.css" ,
"skinStyles/jquery.ui/jquery.ui.selectable.css" ,
"skinStyles/jquery.ui/jquery.ui.slider.css" ,
"skinStyles/jquery.ui/jquery.ui.tabs.css" ,
"skinStyles/jquery.ui/jquery.ui.tooltip.css"
]
2021-09-09 22:13:48 +00:00
} ,
2015-04-07 19:52:32 +00:00
"vector" : {
2022-11-07 22:57:31 +00:00
"ext.echo.styles.badge" : "skinStyles/vector/ext.echo.styles.badge.less" ,
2019-10-16 22:44:40 +00:00
"jquery.ui" : [
2015-04-07 19:52:32 +00:00
"skinStyles/jquery.ui/jquery.ui.core.css" ,
2019-10-16 22:44:40 +00:00
"skinStyles/jquery.ui/jquery.ui.theme.css" ,
"skinStyles/jquery.ui/jquery.ui.accordion.css" ,
"skinStyles/jquery.ui/jquery.ui.autocomplete.css" ,
"skinStyles/jquery.ui/jquery.ui.button.css" ,
"skinStyles/jquery.ui/jquery.ui.datepicker.css" ,
"skinStyles/jquery.ui/jquery.ui.dialog.css" ,
"skinStyles/jquery.ui/jquery.ui.menu.css" ,
"skinStyles/jquery.ui/jquery.ui.progressbar.css" ,
"skinStyles/jquery.ui/jquery.ui.resizable.css" ,
"skinStyles/jquery.ui/jquery.ui.selectable.css" ,
"skinStyles/jquery.ui/jquery.ui.slider.css" ,
"skinStyles/jquery.ui/jquery.ui.tabs.css" ,
"skinStyles/jquery.ui/jquery.ui.tooltip.css"
2015-04-07 19:52:32 +00:00
] ,
2017-06-15 13:05:39 +00:00
"+mediawiki.action.view.redirectPage" : "skinStyles/mediawiki.action.view.redirectPage.less" ,
2023-01-26 21:03:32 +00:00
"+mediawiki.notification" : "skinStyles/vector/mediawiki.notification.less" ,
2023-11-06 00:29:50 +00:00
"+oojs-ui-core.styles" : "skinStyles/ooui.less" ,
2021-12-03 19:36:15 +00:00
"+ext.relatedArticles.readMore" : "skinStyles/ext.relatedArticles.readMore.less" ,
2022-01-10 22:41:38 +00:00
"+ext.uls.compactlinks" : "skinStyles/ext.uls.compactlinks.less" ,
"+ext.uls.interface" : "skinStyles/ext.uls.interface.less"
2015-04-07 19:52:32 +00:00
}
} ,
2023-11-20 22:55:41 +00:00
"QUnitTestModule" : {
"localBasePath" : "" ,
2024-04-01 18:53:15 +00:00
"remoteSkinPath" : "Vector" ,
2023-11-29 12:42:02 +00:00
"dependencies" : [
"skins.vector.clientPreferences"
] ,
2023-11-20 22:55:41 +00:00
"scripts" : [
"tests/integration-qunit/integration.test.js"
]
} ,
2015-04-07 19:52:32 +00:00
"config" : {
2024-05-29 22:35:45 +00:00
"VectorWrapTablesTemporary" : {
"value" : false ,
"description" : "@var bool temporary config variable for controlling role out of tables. When enabled certain tables will be wrapped with a div"
} ,
2024-01-31 21:11:51 +00:00
"VectorNightMode" : {
"value" : {
"logged_in" : false ,
"logged_out" : false ,
2024-05-16 20:45:06 +00:00
"beta" : true
2024-01-31 21:11:51 +00:00
} ,
2024-04-24 16:52:37 +00:00
"description" : "@var array enables dark/night mode."
2024-01-31 21:11:51 +00:00
} ,
feature(Vector): Add configurable font size exclusions
This patch introduces the ability to configure font size exclusions
for specific pages within the Vector skin, ensuring certain pages
always use a small font size. This change is part of ongoing improvements
to the Vector skin's customizability features.
Changes:
- Updated `skin.json` to include `VectorFontSizeConfigurableOptions`
- Added new i18n string `vector-feature-custom-font-size-exclusion-notice`
- Modified logic for font size exclusion handling in `FeatureManager.php`
Additional Notes:
- Affects testing and beta deployment environments, ensure relevant
settings are updated in `LocalSettings.php`.
For testing and on beta deployment, these settings should be set in
the LocalSettings.php of the environment, example:
$wgVectorAppearance = [
"logged_in" => true,
"logged_out" => true,
"beta" => true
];
$wgVectorFontSizeConfigurableOptions = [
"exclude" => [
"namespaces" => [ -1, 2, 6, 8, 10, 14, 100, 710, 828 ],
"querystring" => [
"action" => "edit|submit|diff|info|protect|delete|undelete|diff|history",
"diff" => ".+"
]
]
];
Bug: T364887
Change-Id: I23b9c4fb63f35c7d27544197fead3ad7619c67f1
2024-05-15 13:54:26 +00:00
"VectorFontSizeConfigurableOptions" : {
"value" : {
"exclude" : {
"mainpage" : false ,
"pagetitles" : [ ] ,
"namespaces" : [ ] ,
"querystring" : { }
} ,
"include" : [ ]
} ,
"description" : "@var array determines on which pages the font size is configurable."
} ,
2024-03-26 22:02:43 +00:00
"VectorNightModeOptions" : {
"value" : {
"exclude" : {
"mainpage" : false ,
"pagetitles" : [ ] ,
"namespaces" : [ ] ,
"querystring" : { }
} ,
"include" : [ ]
} ,
"description" : "@var array determines which pages are compatible with night mode"
} ,
2024-04-12 03:27:34 +00:00
"VectorAppearance" : {
2023-09-14 15:36:54 +00:00
"value" : {
2023-09-19 19:11:35 +00:00
"logged_in" : false ,
2023-10-18 17:32:16 +00:00
"logged_out" : false ,
2023-12-19 23:08:47 +00:00
"beta" : true
2023-09-14 15:36:54 +00:00
} ,
"description" : "@var array enables a client preferences interface."
} ,
2022-10-06 00:38:38 +00:00
"VectorSearchApiUrl" : {
2020-11-23 22:55:35 +00:00
"value" : "" ,
2022-10-06 00:38:38 +00:00
"description" : "To override the default search API, set this to the URL to rest.php on another wiki. Can be used with $wgDisableTextSearch and $wgSearchForwardUrl to mimic user experience on production."
2020-11-23 22:55:35 +00:00
} ,
2020-01-11 04:40:49 +00:00
"VectorUseIconWatch" : {
"value" : true
} ,
2021-01-06 21:50:19 +00:00
"VectorMaxWidthOptions" : {
"value" : {
"exclude" : {
2024-05-10 19:25:42 +00:00
"mainpage" : true ,
2021-01-06 21:50:19 +00:00
"querystring" : {
2022-10-18 05:26:31 +00:00
"action" : "(history|edit|submit)" ,
2022-05-19 05:32:40 +00:00
"diff" : ".+"
2021-01-06 21:50:19 +00:00
} ,
"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."
} ,
2020-01-11 04:40:49 +00:00
"VectorResponsive" : {
2021-01-29 01:53:27 +00:00
"value" : false ,
2022-01-20 22:14:19 +00:00
"description" : "@var boolean turn Vector-2022 into a responsive skin by applying a view port and disabling the min-width"
[Special:Preferences] [PHP] Add skin version user preference and configs
Add a Vector-specific user preference to Special:Preferences for
toggling skin version, either Legacy Vector or the latest Vector.
The presentation of the new preference section and the default values
for anonymous, new, and existing accounts are configurable via
$wgVectorShowSkinPreferences, $wgVectorDefaultSkinVersion (to be used by
the feature manager in T244481),
$wgVectorDefaultSkinVersionForExistingAccounts, and
$wgVectorDefaultSkinVersionForNewAccounts. These configurations default
to the fullest experience so that third-party configuration is minimal.
See skin.json for details. The configurations are each tested in
VectorHooksTest.php.
When presentation is enabled, the new preference appears as a checkbox;
enabled is Legacy mode and disable is latest. There are a number of
unfortunate details:
- Showing and hiding a checkbox is supported by OOUI. Showing and hiding
a whole section (Vector skin preferences, in this case) is not so this
additional client JavaScript functionality is added in Core (see
Iaf68b238a8ac7a4fb22b9ef5d6c5a3394ee2e377).
- Stylization as a checkbox is wanted. However, the implied storage type
for OOUI checkboxes is a boolean. This is not wanted in the event that
another skin version is added (e.g., '3' or 'alpha'). As a workaround,
the preference is converted from a boolean to a version string ('1' or
'2') on save in Hooks::onPreferencesFormPreSave() and from a version
string to a checkbox enable / disable string ('1' or '0') in
onGetPreferences(). There a number of test cases to help cover these
concerning details.
Documentation for overriding the skin version as a URL query parameter
is provided in anticipation of T244481.
Bug: T242381
Bug: T245793
Depends-On: Iaf68b238a8ac7a4fb22b9ef5d6c5a3394ee2e377
Depends-On: Ifc2863fca9cd9efd11ac30c780420e8d89e8cb22
Change-Id: I177dad88fc982170641059b6a4f53fbb38eefad6
2020-01-23 21:53:09 +00:00
} ,
"VectorDefaultSkinVersionForExistingAccounts" : {
2020-05-04 13:25:38 +00:00
"value" : "1" ,
2020-04-28 21:02:15 +00:00
"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."
[Special:Preferences] [PHP] Add skin version user preference and configs
Add a Vector-specific user preference to Special:Preferences for
toggling skin version, either Legacy Vector or the latest Vector.
The presentation of the new preference section and the default values
for anonymous, new, and existing accounts are configurable via
$wgVectorShowSkinPreferences, $wgVectorDefaultSkinVersion (to be used by
the feature manager in T244481),
$wgVectorDefaultSkinVersionForExistingAccounts, and
$wgVectorDefaultSkinVersionForNewAccounts. These configurations default
to the fullest experience so that third-party configuration is minimal.
See skin.json for details. The configurations are each tested in
VectorHooksTest.php.
When presentation is enabled, the new preference appears as a checkbox;
enabled is Legacy mode and disable is latest. There are a number of
unfortunate details:
- Showing and hiding a checkbox is supported by OOUI. Showing and hiding
a whole section (Vector skin preferences, in this case) is not so this
additional client JavaScript functionality is added in Core (see
Iaf68b238a8ac7a4fb22b9ef5d6c5a3394ee2e377).
- Stylization as a checkbox is wanted. However, the implied storage type
for OOUI checkboxes is a boolean. This is not wanted in the event that
another skin version is added (e.g., '3' or 'alpha'). As a workaround,
the preference is converted from a boolean to a version string ('1' or
'2') on save in Hooks::onPreferencesFormPreSave() and from a version
string to a checkbox enable / disable string ('1' or '0') in
onGetPreferences(). There a number of test cases to help cover these
concerning details.
Documentation for overriding the skin version as a URL query parameter
is provided in anticipation of T244481.
Bug: T242381
Bug: T245793
Depends-On: Iaf68b238a8ac7a4fb22b9ef5d6c5a3394ee2e377
Depends-On: Ifc2863fca9cd9efd11ac30c780420e8d89e8cb22
Change-Id: I177dad88fc982170641059b6a4f53fbb38eefad6
2020-01-23 21:53:09 +00:00
} ,
"VectorDefaultSkinVersionForNewAccounts" : {
2022-03-31 03:47:57 +00:00
"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."
2020-07-07 08:59:14 +00:00
} ,
2020-11-26 00:58:10 +00:00
"VectorWvuiSearchOptions" : {
"value" : {
"showThumbnail" : true ,
2021-06-30 12:51:04 +00:00
"showDescription" : true
2020-11-26 00:58:10 +00:00
}
} ,
2020-08-18 21:30:25 +00:00
"VectorLanguageInHeader" : {
2021-04-07 15:56:41 +00:00
"value" : {
2022-01-28 19:55:39 +00:00
"logged_in" : true ,
"logged_out" : true
2021-04-07 15:56:41 +00:00
} ,
"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)."
2020-08-18 21:30:25 +00:00
} ,
2021-12-03 23:33:21 +00:00
"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."
} ,
2021-08-04 17:54:35 +00:00
"VectorStickyHeader" : {
"value" : {
2022-01-28 17:46:48 +00:00
"logged_in" : true ,
2021-08-04 17:54:35 +00:00
"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"
2021-04-30 02:54:54 +00:00
} ,
2021-10-26 23:37:56 +00:00
"VectorWebABTestEnrollment" : {
"value" : {
2023-11-13 21:18:06 +00:00
"name" : "skin-vector-unnamed" ,
2021-10-26 23:37:56 +00:00
"enabled" : false ,
"buckets" : {
"unsampled" : {
2022-08-30 18:34:22 +00:00
"samplingRate" : 0
2021-10-26 23:37:56 +00:00
} ,
"control" : {
2022-08-30 18:34:22 +00:00
"samplingRate" : 0.5
2021-10-26 23:37:56 +00:00
} ,
2022-03-17 23:02:39 +00:00
"treatment" : {
2022-08-30 18:34:22 +00:00
"samplingRate" : 0.5
2021-10-26 23:37:56 +00:00
}
}
} ,
2022-03-17 23:01:17 +00:00
"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`)"
2021-10-26 23:37:56 +00:00
} ,
2023-02-24 13:48:29 +00:00
"VectorPromoteAddTopic" : {
"value" : true ,
"description" : "@var boolean Temporary feature flag that promotes the 'Add topic' link in the views menu, to a button in the page title bar."
} ,
2022-02-18 00:19:50 +00:00
"VectorTableOfContentsCollapseAtCount" : {
2023-01-26 16:55:50 +00:00
"value" : 28 ,
2022-07-01 20:16:36 +00:00
"description" : "@var The minimum number of headings required to collapse all headings in the sticky table of contents by default."
2020-01-11 04:40:49 +00:00
}
2015-06-08 20:20:52 +00:00
} ,
2020-02-20 16:37:33 +00:00
"ServiceWiringFiles" : [
"includes/ServiceWiring.php"
] ,
2020-01-11 04:40:49 +00:00
"manifest_version" : 2
2015-04-07 19:52:32 +00:00
}