repod/src/views/Discover.vue
Michel Roux 569850d666
All checks were successful
repod / nextcloud (push) Successful in 59s
repod / nodejs (push) Successful in 1m32s
Reorganize components
2023-08-23 10:11:39 +02:00

46 lines
841 B
Vue

<template>
<div class="main">
<p>
<NcTextField :label="t('Find a podcast')" :value.sync="search">
<Magnify :size="20" />
</NcTextField>
</p>
<Search v-if="search" :value="search" />
<TopList v-if="!search" />
<AddRss v-if="!search" />
</div>
</template>
<script>
import AddRss from '../components/Discover/AddRss.vue'
import Magnify from 'vue-material-design-icons/Magnify.vue'
import { NcTextField } from '@nextcloud/vue'
import Search from '../components/Discover/Search.vue'
import TopList from '../components/Discover/TopList.vue'
export default {
name: 'Discover',
components: {
AddRss,
Magnify,
NcTextField,
Search,
TopList,
},
data() {
return {
search: '',
}
},
}
</script>
<style scoped>
.main {
margin: 15px 51px;
display: flex;
flex-direction: column;
gap: 1rem;
}
</style>