mediawiki-skins-Vector/resources/skins.vector.js
Lucas Werkmeister e718f53d97 search: Adapt to Wikibase instead of hard-coding wikidatawiki
Since Wikibase change I01afb269d6 (commit ee4c555878), Wikibase has a
copy of the “is wikidatawiki” condition to temporarily continue
supporting the old search on Vector 2022. As suggested by Michael there,
we can change the condition here to avoid having the same check in two
places, and instead detect whether Wikibase loaded the legacy search
ResourceLoader module (which means we shouldn’t install the new search)
or not (in which case Wikibase Repo is either not installed at all, or
it’s providing a custom wgVectorSearchClient to support the new search).

With this change in place, once Wikibase is ready to support the new
search everywhere (including on Wikidata proper), we only need to change
the condition in one place (in Wikibase), and can then clean up the code
here at any later time.

Bug: T316093
Change-Id: I0aa0e432181b14cdb7b92e2550b78f2d7d48094d
2022-12-02 17:13:18 +01:00
..
images Limited width toggle 2022-11-01 16:29:43 +00:00
checkbox.js Replace incorrectly mw- prefixed classes 2022-10-25 10:28:31 -05:00
dropdownMenus.js Remove CSS classes and selectors from cached HTML 2022-11-03 11:12:39 -05:00
echo.js Drop the VisualEnhancementsNext feature flag 2022-11-21 13:27:34 -08:00
features.js Instrument toggle button 2022-11-21 22:02:13 +00:00
languageButton.js Replace incorrectly mw- prefixed classes 2022-10-25 10:28:31 -05:00
limitedWidthToggle.js Instrument toggle button 2022-11-21 22:02:13 +00:00
limitedWidthToggle.less Drop the VisualEnhancementsNext feature flag 2022-11-21 13:27:34 -08:00
menuTabs.js Add vector-tab-noicon class to tabbed menus when menu items are added by gadgets 2022-10-20 18:21:58 -06:00
searchLoader.js search: Adapt to Wikibase instead of hard-coding wikidatawiki 2022-12-02 17:13:18 +01:00
sidebarPersistence.js Bug: Fix when Vector 2022 sidebar collapses 2022-12-01 01:05:37 +00:00
skin.js Drop the VisualEnhancementsNext feature flag 2022-11-21 13:27:34 -08:00
watchstar.js Drop unnecessary watchstar icon classes on toggle 2022-11-14 13:54:16 -08:00