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