2023-07-02 16:30:42 +00:00
|
|
|
<template>
|
|
|
|
<div class="main">
|
|
|
|
<p>
|
2023-07-29 15:53:51 +00:00
|
|
|
<NcTextField :label="t('Find a podcast')" :value.sync="search">
|
2023-07-07 16:38:53 +00:00
|
|
|
<Magnify :size="20" />
|
2023-07-02 16:30:42 +00:00
|
|
|
</NcTextField>
|
|
|
|
</p>
|
2023-07-25 23:26:46 +00:00
|
|
|
<Search v-if="search" :value="search" />
|
2023-07-25 20:07:35 +00:00
|
|
|
<TopList v-if="!search" />
|
2023-07-07 14:35:14 +00:00
|
|
|
<AddRss v-if="!search" />
|
2023-07-02 16:30:42 +00:00
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
2023-08-23 08:11:39 +00:00
|
|
|
import AddRss from '../components/Discover/AddRss.vue'
|
2023-07-02 16:30:42 +00:00
|
|
|
import Magnify from 'vue-material-design-icons/Magnify.vue'
|
2023-07-07 14:35:14 +00:00
|
|
|
import { NcTextField } from '@nextcloud/vue'
|
2023-08-23 08:11:39 +00:00
|
|
|
import Search from '../components/Discover/Search.vue'
|
|
|
|
import TopList from '../components/Discover/TopList.vue'
|
2023-07-02 16:30:42 +00:00
|
|
|
|
|
|
|
export default {
|
|
|
|
name: 'Discover',
|
|
|
|
components: {
|
2023-07-07 14:35:14 +00:00
|
|
|
AddRss,
|
2023-07-02 16:30:42 +00:00
|
|
|
Magnify,
|
|
|
|
NcTextField,
|
2023-07-25 23:26:46 +00:00
|
|
|
Search,
|
2023-07-25 20:07:35 +00:00
|
|
|
TopList,
|
2023-07-02 16:30:42 +00:00
|
|
|
},
|
|
|
|
data() {
|
|
|
|
return {
|
2023-07-03 06:42:00 +00:00
|
|
|
search: '',
|
2023-07-02 16:30:42 +00:00
|
|
|
}
|
|
|
|
},
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style scoped>
|
2023-07-02 22:12:40 +00:00
|
|
|
.main {
|
2023-07-28 00:37:57 +00:00
|
|
|
margin: 15px 51px;
|
2023-07-02 22:12:40 +00:00
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
2023-07-03 06:42:00 +00:00
|
|
|
gap: 1rem;
|
2023-07-02 22:12:40 +00:00
|
|
|
}
|
2023-07-02 16:30:42 +00:00
|
|
|
</style>
|