Skip to content

Commit

Permalink
Deprecate WVUI in favor of Codex
Browse files Browse the repository at this point in the history
https://phabricator.wikimedia.org/T310243

Bug: lakejason0#21
Bug: T310243
Change-Id: I97f923dd9fc7b8305f7271c08076aaec12c3105c
  • Loading branch information
winstonsung committed Apr 29, 2024
1 parent eb6b4af commit bb335ed
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 deletions.
6 changes: 3 additions & 3 deletions includes/Hooks.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ class Hooks implements GetPreferencesHook {
/**
* @param ResourceLoaderContext $context
* @param Config $config
* @return $wgLakeusWvuiSearchOptions
* @return $wgLakeusSearchOptions
*/
public function getLakeusWvuiSearchResourceLoaderConfig(
public function getLakeusSearchResourceLoaderConfig(
ResourceLoaderContext $context,
Config $config
) {
return $config->get( 'LakeusWvuiSearchOptions' );
return $config->get( 'LakeusSearchOptions' );
}

/**
Expand Down
15 changes: 8 additions & 7 deletions skin.json
Original file line number Diff line number Diff line change
Expand Up @@ -197,18 +197,18 @@
]
},
"skins.lakeus.search": {
"es6": true,
"dependencies": [
"mediawiki.Uri",
"wvui"
"mediawiki.Uri"
],
"es6": true,
"packageFiles": [
"resources/skins.lakeus.search/skins.lakeus.search.js",
"resources/skins.lakeus.search/App.vue",
{
"name": "resources/skins.lakeus.search/config.json",
"callback": "MediaWiki\\Skins\\Lakeus\\Hooks::getLakeusWvuiSearchResourceLoaderConfig"
"callback": "MediaWiki\\Skins\\Lakeus\\Hooks::getLakeusSearchResourceLoaderConfig"
}

],
"messages": [
"searchbutton",
Expand Down Expand Up @@ -291,10 +291,11 @@
"value": "",
"description": "Override default search API. Can be used with $wgDisableTextSearch and $wgSearchForwardUrl to mimic user experience on production."
},
"LakeusUseWvuiSearch": {
"value": true
"LakeusSearchModuleType": {
"value": null,
"description": "Which search module to use. Options: null (default Codex / WVUI based on MediaWiki version) / 'codex' (Codex) / 'wvui' (WVUI) / 'jquery' (legacy jQuery search)."
},
"LakeusWvuiSearchOptions": {
"LakeusSearchOptions": {
"value": {
"showThumbnail": true,
"showDescription": true
Expand Down

0 comments on commit bb335ed

Please sign in to comment.