- remove glyphicons- fonts
- add local open sans - reactive solr search - display flex for same height of columns - add .babelrec - add reactivesearch-vue components
This commit is contained in:
parent
9855c235b7
commit
c91a487b98
34 changed files with 1137 additions and 6825 deletions
18
resources/assets/js/search/search-results/search-api.js
Normal file
18
resources/assets/js/search/search-results/search-api.js
Normal file
|
@ -0,0 +1,18 @@
|
|||
import axios from "axios";
|
||||
|
||||
export default {
|
||||
|
||||
async search (term) {
|
||||
// solr endpoint
|
||||
const host = 'http://voyagerdemo.com/';
|
||||
const path = 'daily/solr/v0/select';
|
||||
const fields = 'id,name:[name],thumb:[thumbURL],abstract,description'; // fields we want returned
|
||||
const api = `${host}${path}?q=${term}&fl=${fields}&wt=json&rows=20`;
|
||||
|
||||
const res = await axios.get(api);
|
||||
// const call = await fetch(api);
|
||||
// const json = await res.json();
|
||||
return res.data.response.docs;
|
||||
}
|
||||
|
||||
}
|
Loading…
Add table
editor.link_modal.header
Reference in a new issue