Nope
This commit is contained in:
parent
98f6c7040f
commit
b59186e361
@ -3,7 +3,7 @@
|
|||||||
<GPodder v-if="!AppConfig.repod.gpodder" />
|
<GPodder v-if="!AppConfig.repod.gpodder" />
|
||||||
<Subscriptions v-if="AppConfig.repod.gpodder" />
|
<Subscriptions v-if="AppConfig.repod.gpodder" />
|
||||||
<router-view v-if="AppConfig.repod.gpodder" :key="$route.path" />
|
<router-view v-if="AppConfig.repod.gpodder" :key="$route.path" />
|
||||||
<Bar v-if="$route.params.url" />
|
<Bar />
|
||||||
</NcContent>
|
</NcContent>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<ul :style="{marginBottom: episode ? '6rem' : 'auto'}">
|
<ul :class="episode ? 'margin' : ''">
|
||||||
<slot />
|
<slot />
|
||||||
</ul>
|
</ul>
|
||||||
</template>
|
</template>
|
||||||
@ -14,3 +14,9 @@ export default {
|
|||||||
},
|
},
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
<style scoped>
|
||||||
|
.margin {
|
||||||
|
margin-bottom: 6rem;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
@ -5,10 +5,10 @@
|
|||||||
<NcListItem v-for="episode in episodes"
|
<NcListItem v-for="episode in episodes"
|
||||||
:key="episode.episodeGuid"
|
:key="episode.episodeGuid"
|
||||||
:active="isCurrentEpisode(episode)"
|
:active="isCurrentEpisode(episode)"
|
||||||
|
:class="episode.episodeAction && episode.episodeAction.position >= episode.episodeAction.total ? 'ended': ''"
|
||||||
:details="formatTimeAgo(new Date(episode.episodePubDate.date))"
|
:details="formatTimeAgo(new Date(episode.episodePubDate.date))"
|
||||||
:force-display-actions="true"
|
:force-display-actions="true"
|
||||||
:name="episode.episodeName"
|
:name="episode.episodeName"
|
||||||
:style="{opacity: episode.episodeAction && episode.episodeAction.position >= episode.episodeAction.total ? '.5' : 1}"
|
|
||||||
:title="episode.episodeDescription">
|
:title="episode.episodeDescription">
|
||||||
<template #icon>
|
<template #icon>
|
||||||
<NcAvatar :display-name="episode.episodeName"
|
<NcAvatar :display-name="episode.episodeName"
|
||||||
@ -96,3 +96,9 @@ export default {
|
|||||||
},
|
},
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
<style scoped>
|
||||||
|
.ended {
|
||||||
|
opacity: .5;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
@ -29,7 +29,7 @@ export const player = {
|
|||||||
action: (state, action) => {
|
action: (state, action) => {
|
||||||
state.episode.action = action
|
state.episode.action = action
|
||||||
|
|
||||||
if (action && action.position) {
|
if (action && action.position && action.position < action.total) {
|
||||||
audio.currentTime = action.position
|
audio.currentTime = action.position
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -48,7 +48,7 @@ export const player = {
|
|||||||
audio.load()
|
audio.load()
|
||||||
audio.play()
|
audio.play()
|
||||||
|
|
||||||
if (episode.action && episode.action.position) {
|
if (episode.action && episode.action.position && episode.action.position < episode.action.total) {
|
||||||
audio.currentTime = episode.action.position
|
audio.currentTime = episode.action.position
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user