2019-09-27 16:02:48 +00:00
|
|
|
<template>
|
2019-10-03 16:54:05 +00:00
|
|
|
<div class="search-container row">
|
|
|
|
|
|
|
|
<div class="four columns left-bar">
|
|
|
|
<div id="left-bar" class="sidebar left-bar">
|
|
|
|
<h2 class="indexheader">DataXplore</h2>
|
|
|
|
|
|
|
|
<!-- <div class="card" v-for="item in facets.language" :key="item.id">
|
|
|
|
<span>{{ item }}</span>
|
|
|
|
</div> -->
|
|
|
|
|
|
|
|
<facet-list v-bind:data="facets"></facet-list>
|
2019-09-27 16:02:48 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
2019-10-03 16:54:05 +00:00
|
|
|
<div class="eight columns right-bar">
|
|
|
|
<div id="right-bar" class="sidebar right-bar">
|
|
|
|
<!-- Search input section -->
|
|
|
|
|
|
|
|
<div class="row">
|
|
|
|
<div class="twelve columns">
|
|
|
|
<vs-input @search="onSearch"></vs-input>
|
|
|
|
</div>
|
2019-09-27 16:02:48 +00:00
|
|
|
</div>
|
2019-10-03 16:54:05 +00:00
|
|
|
|
|
|
|
<!-- Results section -->
|
|
|
|
<vs-results v-bind:data="results"></vs-results>
|
|
|
|
|
|
|
|
|
2019-09-27 16:02:48 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2019-10-03 16:54:05 +00:00
|
|
|
<!-- <div class="card" v-for="item in results" :key="item.id">
|
|
|
|
<img
|
|
|
|
v-if="item.thumb"
|
|
|
|
class="card-img-top"
|
|
|
|
:src="item.thumb"
|
|
|
|
:alt="item.title"
|
|
|
|
@error="error(item)"
|
|
|
|
/>
|
|
|
|
<div class="card-body">
|
|
|
|
<h5 class="card-title">{{item.name}}</h5>
|
|
|
|
<p class="card-text" v-html="truncate(item.description || item.abstract, 50)"></p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>-->
|
2019-09-27 16:02:48 +00:00
|
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="js">
|
|
|
|
import App from './app-class.js';
|
|
|
|
export default App;
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="scss">
|
|
|
|
#app {
|
|
|
|
color: #56b983;
|
|
|
|
}
|
|
|
|
</style>
|