Format imports, partial implementation of import upload entries
This commit is contained in:
@ -1,9 +1,9 @@
|
||||
<script setup lang="ts">
|
||||
import { Outline } from '@/components/ui/outline';
|
||||
import { SidebarTrigger } from '@/components/ui/sidebar';
|
||||
import { Download, Play } from 'lucide-vue-next';
|
||||
import PlaylistUploadEntry from '~/components/internal/import/uploadentry/PlaylistUploadEntry.vue';
|
||||
import SingleUploadEntry from '~/components/internal/import/uploadentry/SingleUploadEntry.vue';
|
||||
import PlaylistUploadEntry from '@/components/internal/import/uploadentry/PlaylistUploadEntry.vue';
|
||||
import SingleUploadEntry from '@/components/internal/import/uploadentry/SingleUploadEntry.vue';
|
||||
import Outline from '@/components/ui/outline/Outline.vue';
|
||||
import SidebarTrigger from '@/components/ui/sidebar/SidebarTrigger.vue';
|
||||
</script>
|
||||
|
||||
<template>
|
||||
@ -28,10 +28,10 @@ import SingleUploadEntry from '~/components/internal/import/uploadentry/SingleUp
|
||||
<p class="text-sm text-muted-foreground">
|
||||
or
|
||||
</p>
|
||||
<UiButton variant="destructive">
|
||||
<Button variant="destructive">
|
||||
<Play />
|
||||
From Youtube
|
||||
</UiButton>
|
||||
</Button>
|
||||
</Outline>
|
||||
<div>
|
||||
<h3 class="scroll-m-20 text-2xl font-semibold tracking-tight">
|
||||
@ -41,8 +41,21 @@ import SingleUploadEntry from '~/components/internal/import/uploadentry/SingleUp
|
||||
<SingleUploadEntry title="Test" size="3.8 MB" format="mp4" type="file" />
|
||||
<SingleUploadEntry title="Test" :progress="78" />
|
||||
<SingleUploadEntry title="Test" error="Uploading failed, please check your internet" />
|
||||
<PlaylistUploadEntry title="Test" :trackCount="3" type="youtube" />
|
||||
<PlaylistUploadEntry title="Test" :progress="73" type="youtube" />
|
||||
<PlaylistUploadEntry title="My Playlist" :trackCount="10" type="YouTube" :progress="75"
|
||||
:playlistProgressData="{
|
||||
playlistId: 1,
|
||||
trackSourceId: 2,
|
||||
userId: 3,
|
||||
timestamp: 123456,
|
||||
ytdlnStdout: `[youtube] Extracting URL: https://www.youtube.com/playlist?list=PL1234567890
|
||||
[youtube:playlist] PL1234567890: Downloading 10 videos
|
||||
[download] Destination: My Playlist [PL1234567890].mp3
|
||||
[ExtractAudio] Destination: My Playlist [PL1234567890].mp3
|
||||
[info] Download completed: My Playlist [PL1234567890].mp3
|
||||
[info] 10 files downloaded successfully`,
|
||||
overallProgress: 34,
|
||||
status: 'LOADING'
|
||||
}" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user