refactor: 🎨 cleanup some old css class
All checks were successful
repod / xml (push) Successful in 11s
repod / php (push) Successful in 55s
repod / nodejs (push) Successful in 59s
repod / release (push) Has been skipped

This commit is contained in:
Michel Roux 2024-09-02 15:54:21 +02:00
parent fb7780fead
commit 1eb8b35501
7 changed files with 18 additions and 26 deletions

View File

@ -81,8 +81,8 @@
class="progress" class="progress"
:value="(episode.action.position * 100) / episode.action.total" /> :value="(episode.action.position * 100) / episode.action.total" />
</template> </template>
<template v-if="!oneLine" #subname> <template #subname>
{{ episode.duration }} <span v-if="!oneLine">{{ episode.duration }}</span>
</template> </template>
</NcListItem> </NcListItem>
</template> </template>

View File

@ -35,7 +35,7 @@ import { showError } from '../../utils/toast.js'
import { useSubscriptions } from '../../store/subscriptions.js' import { useSubscriptions } from '../../store/subscriptions.js'
export default { export default {
name: 'Favorites', name: 'Favorite',
components: { components: {
Episode, Episode,
Loading, Loading,

View File

@ -1,5 +1,5 @@
<template> <template>
<div> <div class="root">
<span>{{ formatTimer(new Date(currentTime * 1000)) }}</span> <span>{{ formatTimer(new Date(currentTime * 1000)) }}</span>
<span>/</span> <span>/</span>
<span>{{ formatTimer(new Date(duration * 1000)) }}</span> <span>{{ formatTimer(new Date(duration * 1000)) }}</span>
@ -23,7 +23,7 @@ export default {
</script> </script>
<style scoped> <style scoped>
div { .root {
align-items: center; align-items: center;
display: flex; display: flex;
gap: 5px; gap: 5px;

View File

@ -1,5 +1,5 @@
<template> <template>
<div> <div class="root">
<VolumeHighIcon <VolumeHighIcon
v-if="volume > 0.7" v-if="volume > 0.7"
class="pointer" class="pointer"
@ -21,6 +21,7 @@
:size="30" :size="30"
@click="setVolume(volumeMuted)" /> @click="setVolume(volumeMuted)" />
<input <input
class="volume"
max="1" max="1"
min="0" min="0"
step="0.1" step="0.1"
@ -63,19 +64,19 @@ export default {
</script> </script>
<style scoped> <style scoped>
div { .pointer {
cursor: pointer;
}
.root {
align-items: center; align-items: center;
display: flex; display: flex;
gap: 5px; gap: 5px;
justify-content: flex-end; justify-content: flex-end;
} }
input { .volume {
transform: rotate(270deg); transform: rotate(270deg);
width: 4rem; width: 4rem;
} }
.pointer {
cursor: pointer;
}
</style> </style>

View File

@ -1,10 +1,7 @@
<template> <template>
<AppContent> <AppContent>
<Loading v-if="loading" /> <Loading v-if="loading" />
<EmptyContent <EmptyContent v-if="failed" :name="t('repod', 'Error loading feed')">
v-if="failed"
class="error"
:name="t('repod', 'Error loading feed')">
<template #icon> <template #icon>
<Alert /> <Alert />
</template> </template>
@ -66,9 +63,3 @@ export default {
}, },
} }
</script> </script>
<style scoped>
.error {
margin: 2rem;
}
</style>

View File

@ -1,6 +1,6 @@
<template> <template>
<AppContent> <AppContent>
<EmptyContent class="empty" :name="t('repod', 'Missing required app')"> <EmptyContent :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') }}

View File

@ -12,7 +12,7 @@
</EmptyContent> </EmptyContent>
<ul v-if="getFavorites.length"> <ul v-if="getFavorites.length">
<li v-for="url in getFavorites.map((fav) => fav.url)" :key="url"> <li v-for="url in getFavorites.map((fav) => fav.url)" :key="url">
<Favorites :url="url" /> <Favorite :url="url" />
</li> </li>
</ul> </ul>
</AppContent> </AppContent>
@ -21,7 +21,7 @@
<script> <script>
import AppContent from '../components/Atoms/AppContent.vue' import AppContent from '../components/Atoms/AppContent.vue'
import EmptyContent from '../components/Atoms/EmptyContent.vue' import EmptyContent from '../components/Atoms/EmptyContent.vue'
import Favorites from '../components/Feed/Favorites.vue' import Favorite from '../components/Feed/Favorite.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'
import { useSubscriptions } from '../store/subscriptions.js' import { useSubscriptions } from '../store/subscriptions.js'
@ -31,7 +31,7 @@ export default {
components: { components: {
AppContent, AppContent,
EmptyContent, EmptyContent,
Favorites, Favorite,
StarOffIcon, StarOffIcon,
}, },
computed: { computed: {