mediawiki-skins-Vector/resources
jdlrobson 289f1d48f5 Gadgets can change the search API
```
mw.config.set('wgVectorSearchClient', {

   fetchByTitle: function( query, domain, limit ) {
      var xhr = fetch('http://' + domain + '/w/rest.php/v1/search/title?q=banana')
      .then(function (resp) {
          return resp.json();
      }).then(function (json) {
         return {
             results: json.pages
         }
      });
      return {
         fetch: xhr,
         abort: function() {}
      }
   }
})
```

This should be the absolute minimum to allow API clients to configure
the search. This should be considered an interim solution to buy us time to work out a more
elegant way to do this e.g. do this in the API itself…

Bug: T262566
Change-Id: Iac6f2551bed911980064dcb023193f800df0934f
2020-12-23 12:16:29 +00:00
..
mediawiki.less Implement mediawiki.skin.variables.less for Vector 2020-09-16 08:39:13 -07:00
skins.vector.js Development: Allow us to test search with different API hosts 2020-12-08 15:22:45 -08:00
skins.vector.legacy.js Fix logic in collapsibleTabs code 2020-10-23 09:59:29 -07:00
skins.vector.search Gadgets can change the search API 2020-12-23 12:16:29 +00:00
skins.vector.styles Sync location/other styles of #mw-searchButton with #searchButton 2020-12-18 11:14:19 -07:00
CheckboxHack.d.ts Add enter/spacebar keyboard support to sidebar. 2020-07-09 22:38:15 +02:00
CollapsibleTabsPlugin.d.ts [JavaScript] Validate types 2020-03-16 09:10:08 -06:00
mediawiki.d.ts Merge "Development: Allow us to test search with different API hosts" 2020-12-09 00:14:43 +00:00
MediaWikiPageReady.d.ts Vector manages search functionality and provides config flag 2020-08-04 00:06:31 +00:00
skins.vector.styles.responsive.less Replace deprecated classes with modern ones 2020-06-11 14:05:15 -07:00
VectorResourceLoaderVirtualConfig.d.ts Vector manages search functionality and provides config flag 2020-08-04 00:06:31 +00:00
vue.d.ts Integrate WVUI search into Vector 2020-12-08 13:27:12 -08:00