mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/Vector.git
synced 2024-11-23 23:33:54 +00:00
289f1d48f5
``` 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 |
||
---|---|---|
.. | ||
App.vue | ||
config.json.d.ts | ||
instrumentation.js | ||
skins.vector.search.js | ||
types.js |