Implement "import history" in import page
This commit is contained in:
27
app/components/internal/import/uploadentry/UploadEntry.vue
Normal file
27
app/components/internal/import/uploadentry/UploadEntry.vue
Normal file
@ -0,0 +1,27 @@
|
||||
<template>
|
||||
<SingleUploadEntry v-if="entry.type === 'TRACK'" :title="(entry as SingleTrackProgressAllOf).title || ''" :size="''"
|
||||
:format="(entry as SingleTrackProgressAllOf).format || ''" />
|
||||
<PlaylistUploadEntry v-if="entry.type === 'PLAYLIST'" title=""
|
||||
:trackCount="(entry as PlaylistProgressAllOf).trackCount"
|
||||
:ytdlnStdout="(entry as PlaylistProgressAllOf).ytdlnStdout || ''"
|
||||
:status="(entry as PlaylistProgressAllOf).status || 'LOADING'" />
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import type { PlaylistProgressAllOf, PlaylistProgressAllOfStatus, SingleTrackProgressAllOf, StreamProgress200Item } from '~/composeables/api/models';
|
||||
import SingleUploadEntry from './SingleUploadEntry.vue';
|
||||
import PlaylistUploadEntry from './PlaylistUploadEntry.vue';
|
||||
|
||||
interface Props {
|
||||
entry: StreamProgress200Item
|
||||
}
|
||||
|
||||
const props = withDefaults(defineProps<Props>(), {
|
||||
});
|
||||
|
||||
const emit = defineEmits<{
|
||||
retry: []
|
||||
download: []
|
||||
play: []
|
||||
}>();
|
||||
</script>
|
||||
Reference in New Issue
Block a user