repod/src/views/Discover.vue

47 lines
891 B
Vue
Raw Normal View History

2023-07-02 16:30:42 +00:00
<template>
2023-08-24 16:22:40 +00:00
<NcAppContent class="main">
<NcTextField class="search" :label="t('Find a podcast')" :value.sync="search">
<Magnify :size="20" />
</NcTextField>
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-08-24 16:22:40 +00:00
</NcAppContent>
2023-07-02 16:30:42 +00:00
</template>
<script>
2023-08-24 16:22:40 +00:00
import { NcAppContent, NcTextField } from '@nextcloud/vue'
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-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,
2023-08-24 16:22:40 +00:00
NcAppContent,
2023-07-02 16:30:42 +00:00
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-08-24 16:22:40 +00:00
padding: 15px 51px;
overflow: hidden;
}
.search {
margin-bottom: 1rem;
2023-07-02 22:12:40 +00:00
}
2023-07-02 16:30:42 +00:00
</style>