Finish base discovery view
All checks were successful
repod / nextcloud-25 (push) Successful in 50s
repod / nextcloud-27 (push) Successful in 42s
repod / nodejs (push) Successful in 1m34s

This commit is contained in:
Michel Roux 2023-07-03 16:57:35 +02:00
parent 318530da00
commit 6433b5d902
3 changed files with 15 additions and 3 deletions

View File

@ -5,7 +5,7 @@
<router-link to="/discover">
<NcAppNavigationNew :text="t('repod', 'Add a podcast')">
<template #icon>
<Plus :size="20" />
<Plus size="20" />
</template>
</NcAppNavigationNew>
</router-link>

View File

@ -10,6 +10,8 @@ __webpack_public_path__ = generateFilePath(appName, '', 'js/')
Vue.mixin({ methods: { t, n } })
Vue.use(Plugin)
Vue.prototype.OC = window.OC
Vue.prototype.OCA = window.OCA
export default new Vue({
el: '#content',

View File

@ -2,23 +2,33 @@
<div class="main">
<p>
<NcTextField :value.sync="search" :label="t('repod', 'Find a podcast')">
<Magnify />
<Magnify size="20" />
</NcTextField>
</p>
<Top v-if="!search" />
<ul v-if="!search">
<NcAppNavigationNewItem :title="t('', 'Add a RSS link')">
<template #icon>
<Plus size="20" />
</template>
</NcAppNavigationNewItem>
</ul>
</div>
</template>
<script>
import { NcAppNavigationNewItem, NcTextField } from '@nextcloud/vue'
import Magnify from 'vue-material-design-icons/Magnify.vue'
import { NcTextField } from '@nextcloud/vue'
import Plus from 'vue-material-design-icons/Plus.vue'
import Top from '../components/Top.vue'
export default {
name: 'Discover',
components: {
Magnify,
NcAppNavigationNewItem,
NcTextField,
Plus,
Top,
},
data() {