Compare commits
No commits in common. "9005b519f37837dc229ed2ac6fe6826bf6d0342b" and "062da252640fbb1f56f71089510a2cebf019ebe0" have entirely different histories.
9005b519f3
...
062da25264
@ -32,10 +32,6 @@ class Application extends App implements IBootstrap
|
||||
/** @var IInitialState $initialState */
|
||||
$initialState = $appContainer->get(IInitialState::class);
|
||||
|
||||
if (null === $appManager->getAppInfo(self::GPODDERSYNC_ID)) {
|
||||
$appManager->disableApp(self::GPODDERSYNC_ID);
|
||||
}
|
||||
|
||||
$gpoddersync = $appManager->isEnabledForUser(self::GPODDERSYNC_ID);
|
||||
if (!$gpoddersync) {
|
||||
try {
|
||||
|
@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<NcAppContent :class="{ episode, padding }">
|
||||
<NcAppContent :class="{ padding: episode }">
|
||||
<slot />
|
||||
</NcAppContent>
|
||||
</template>
|
||||
@ -14,12 +14,6 @@ export default {
|
||||
components: {
|
||||
NcAppContent,
|
||||
},
|
||||
props: {
|
||||
padding: {
|
||||
type: Boolean,
|
||||
default: true,
|
||||
},
|
||||
},
|
||||
computed: {
|
||||
...mapState(usePlayer, ['episode']),
|
||||
},
|
||||
@ -27,11 +21,7 @@ export default {
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.episode {
|
||||
.padding {
|
||||
padding-bottom: 6rem;
|
||||
}
|
||||
|
||||
.padding {
|
||||
padding: 15px 51px;
|
||||
}
|
||||
</style>
|
||||
|
@ -1,22 +0,0 @@
|
||||
<template>
|
||||
<NcEmptyContent class="empty">
|
||||
<slot />
|
||||
</NcEmptyContent>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { NcEmptyContent } from '@nextcloud/vue'
|
||||
|
||||
export default {
|
||||
name: 'EmptyContent',
|
||||
components: {
|
||||
NcEmptyContent,
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.empty {
|
||||
height: 100%;
|
||||
}
|
||||
</style>
|
@ -1,12 +1,7 @@
|
||||
<template>
|
||||
<div class="">
|
||||
<div>
|
||||
<Loading v-if="!currentFavoriteData" class="loading" />
|
||||
<NcAvatar
|
||||
v-if="currentFavoriteData"
|
||||
:display-name="currentFavoriteData.author || currentFavoriteData.title"
|
||||
:is-no-user="true"
|
||||
:size="256"
|
||||
:url="currentFavoriteData.imageUrl" />
|
||||
<NcAvatar v-if="currentFavoriteData" />
|
||||
</div>
|
||||
</template>
|
||||
|
||||
@ -17,7 +12,7 @@ import { mapState } from 'pinia'
|
||||
import { useSubscriptions } from '../../store/subscriptions.js'
|
||||
|
||||
export default {
|
||||
name: 'Favorites',
|
||||
name: 'Item',
|
||||
components: {
|
||||
Loading,
|
||||
NcAvatar,
|
||||
@ -31,7 +26,7 @@ export default {
|
||||
computed: {
|
||||
...mapState(useSubscriptions, ['favs']),
|
||||
currentFavoriteData() {
|
||||
return this.favs.find((fav) => fav.url === this.url)
|
||||
return this.favs.find((fav) => fav.url === this.url)?.data
|
||||
},
|
||||
},
|
||||
}
|
@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<AppContent>
|
||||
<AppContent class="main">
|
||||
<NcTextField v-model="search" :label="t('repod', 'Find a podcast')">
|
||||
<template #icon>
|
||||
<Magnify :size="20" />
|
||||
@ -35,3 +35,9 @@ export default {
|
||||
}),
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.main {
|
||||
padding: 15px 51px;
|
||||
}
|
||||
</style>
|
||||
|
@ -1,14 +1,14 @@
|
||||
<template>
|
||||
<AppContent :padding="false">
|
||||
<AppContent>
|
||||
<Loading v-if="loading" />
|
||||
<EmptyContent
|
||||
<NcEmptyContent
|
||||
v-if="failed"
|
||||
class="error"
|
||||
:name="t('repod', 'Error loading feed')">
|
||||
<template #icon>
|
||||
<Alert />
|
||||
</template>
|
||||
</EmptyContent>
|
||||
</NcEmptyContent>
|
||||
<Banner
|
||||
v-if="feed"
|
||||
:author="feed.author"
|
||||
@ -24,9 +24,9 @@
|
||||
import Alert from 'vue-material-design-icons/Alert.vue'
|
||||
import AppContent from '../components/Atoms/AppContent.vue'
|
||||
import Banner from '../components/Feed/Banner.vue'
|
||||
import EmptyContent from '../components/Atoms/EmptyContent.vue'
|
||||
import Episodes from '../components/Feed/Episodes.vue'
|
||||
import Loading from '../components/Atoms/Loading.vue'
|
||||
import { NcEmptyContent } from '@nextcloud/vue'
|
||||
import axios from '@nextcloud/axios'
|
||||
import { decodeUrl } from '../utils/url.js'
|
||||
import { generateUrl } from '@nextcloud/router'
|
||||
@ -37,9 +37,9 @@ export default {
|
||||
Alert,
|
||||
AppContent,
|
||||
Banner,
|
||||
EmptyContent,
|
||||
Episodes,
|
||||
Loading,
|
||||
NcEmptyContent,
|
||||
},
|
||||
data: () => ({
|
||||
failed: false,
|
||||
|
@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<AppContent>
|
||||
<EmptyContent class="empty" :name="t('repod', 'Missing required app')">
|
||||
<NcAppContent class="content">
|
||||
<NcEmptyContent :name="t('repod', 'Missing required app')">
|
||||
<template #action>
|
||||
<NcButton :href="gPodderSyncUrl">
|
||||
{{ t('repod', 'Install GPodder Sync') }}
|
||||
@ -9,24 +9,22 @@
|
||||
<template #icon>
|
||||
<Alert />
|
||||
</template>
|
||||
</EmptyContent>
|
||||
</AppContent>
|
||||
</NcEmptyContent>
|
||||
</NcAppContent>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { NcAppContent, NcButton, NcEmptyContent } from '@nextcloud/vue'
|
||||
import Alert from 'vue-material-design-icons/Alert.vue'
|
||||
import AppContent from '../components/Atoms/AppContent.vue'
|
||||
import EmptyContent from '../components/Atoms/EmptyContent.vue'
|
||||
import { NcButton } from '@nextcloud/vue'
|
||||
import { generateUrl } from '@nextcloud/router'
|
||||
|
||||
export default {
|
||||
name: 'GPodder',
|
||||
components: {
|
||||
Alert,
|
||||
AppContent,
|
||||
EmptyContent,
|
||||
NcAppContent,
|
||||
NcButton,
|
||||
NcEmptyContent,
|
||||
},
|
||||
computed: {
|
||||
gPodderSyncUrl() {
|
||||
|
@ -1,6 +1,6 @@
|
||||
<template>
|
||||
<AppContent>
|
||||
<EmptyContent
|
||||
<NcEmptyContent
|
||||
v-if="!favs.length"
|
||||
class="empty"
|
||||
:description="
|
||||
@ -10,12 +10,12 @@
|
||||
<template #icon>
|
||||
<StarOffIcon :size="20" />
|
||||
</template>
|
||||
</EmptyContent>
|
||||
</NcEmptyContent>
|
||||
<ul v-if="favs.length">
|
||||
<li
|
||||
v-for="url in favs.sort((fav) => fav.lastPub).map((fav) => fav.url)"
|
||||
:key="url">
|
||||
<Favorites :url="url" />
|
||||
<Item :url="url" />
|
||||
</li>
|
||||
</ul>
|
||||
</AppContent>
|
||||
@ -23,8 +23,8 @@
|
||||
|
||||
<script>
|
||||
import AppContent from '../components/Atoms/AppContent.vue'
|
||||
import EmptyContent from '../components/Atoms/EmptyContent.vue'
|
||||
import Favorites from '../components/Home/Favorites.vue'
|
||||
import Item from '../components/Home/Item.vue'
|
||||
import { NcEmptyContent } from '@nextcloud/vue'
|
||||
import StarOffIcon from 'vue-material-design-icons/StarOff.vue'
|
||||
import { mapState } from 'pinia'
|
||||
import { useSubscriptions } from '../store/subscriptions.js'
|
||||
@ -33,8 +33,8 @@ export default {
|
||||
name: 'Home',
|
||||
components: {
|
||||
AppContent,
|
||||
EmptyContent,
|
||||
Favorites,
|
||||
Item,
|
||||
NcEmptyContent,
|
||||
StarOffIcon,
|
||||
},
|
||||
computed: {
|
||||
@ -42,3 +42,9 @@ export default {
|
||||
},
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.empty {
|
||||
height: 100%;
|
||||
}
|
||||
</style>
|
||||
|
Loading…
Reference in New Issue
Block a user