Pull drillable Podcasts props out into separate files.
This commit is contained in:
parent
3625f28934
commit
df6eb9c99d
|
@ -5,13 +5,15 @@
|
|||
</template>
|
||||
|
||||
<script setup>
|
||||
import EpisodesView, {episodeViewProps} from './Podcasts/EpisodesView';
|
||||
import ListView, {listViewProps} from './Podcasts/ListView';
|
||||
import EpisodesView from './Podcasts/EpisodesView';
|
||||
import ListView from './Podcasts/ListView';
|
||||
import {ref} from "vue";
|
||||
import episodesViewProps from "./Podcasts/episodesViewProps";
|
||||
import listViewProps from "./Podcasts/listViewProps";
|
||||
|
||||
const props = defineProps({
|
||||
...episodeViewProps.props,
|
||||
...listViewProps.props
|
||||
...episodesViewProps,
|
||||
...listViewProps
|
||||
});
|
||||
|
||||
const activePodcast = ref(null);
|
||||
|
|
|
@ -76,20 +76,13 @@ import AlbumArt from '~/components/Common/AlbumArt';
|
|||
import EpisodeFormBasicInfo from './EpisodeForm/BasicInfo';
|
||||
import PodcastCommonArtwork from './Common/Artwork';
|
||||
import StationsCommonQuota from "~/components/Stations/Common/Quota";
|
||||
|
||||
export const episodeViewProps = {
|
||||
props: {
|
||||
locale: String,
|
||||
stationTimeZone: String,
|
||||
quotaUrl: String
|
||||
}
|
||||
};
|
||||
import episodesViewProps from "~/components/Stations/Podcasts/episodesViewProps";
|
||||
|
||||
export default {
|
||||
name: 'EpisodesView',
|
||||
components: {StationsCommonQuota, PodcastCommonArtwork, EpisodeFormBasicInfo, AlbumArt, Icon, EditModal, DataTable},
|
||||
mixins: [episodeViewProps],
|
||||
props: {
|
||||
...episodesViewProps,
|
||||
podcast: Object
|
||||
},
|
||||
emits: ['clear-podcast'],
|
||||
|
|
|
@ -57,23 +57,14 @@ import DataTable from '~/components/Common/DataTable';
|
|||
import EditModal from './PodcastEditModal';
|
||||
import AlbumArt from '~/components/Common/AlbumArt';
|
||||
import StationsCommonQuota from "~/components/Stations/Common/Quota";
|
||||
|
||||
export const listViewProps = {
|
||||
props: {
|
||||
listUrl: String,
|
||||
newArtUrl: String,
|
||||
quotaUrl: String,
|
||||
locale: String,
|
||||
stationTimeZone: String,
|
||||
languageOptions: Object,
|
||||
categoriesOptions: Object
|
||||
}
|
||||
};
|
||||
import listViewProps from "./listViewProps";
|
||||
|
||||
export default {
|
||||
name: 'ListView',
|
||||
components: {StationsCommonQuota, AlbumArt, EditModal, DataTable},
|
||||
mixins: [listViewProps],
|
||||
props: {
|
||||
...listViewProps
|
||||
},
|
||||
emits: ['select-podcast'],
|
||||
data() {
|
||||
return {
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
export default {
|
||||
locale: String,
|
||||
stationTimeZone: String,
|
||||
quotaUrl: String
|
||||
}
|
|
@ -0,0 +1,9 @@
|
|||
export default {
|
||||
listUrl: String,
|
||||
newArtUrl: String,
|
||||
quotaUrl: String,
|
||||
locale: String,
|
||||
stationTimeZone: String,
|
||||
languageOptions: Object,
|
||||
categoriesOptions: Object
|
||||
}
|
Loading…
Reference in New Issue