- 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:
Arno Kaimbacher 2019-09-27 18:02:48 +02:00
parent 9855c235b7
commit c91a487b98
34 changed files with 1137 additions and 6825 deletions

View 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;
}
}