mirror of
https://github.com/MrPatben8/konduktor.git
synced 2026-11-27 10:22:51 +01:00
Implemented front end for stem conversion
This commit is contained in:
1 parent
c560876c02
commit
ae03a93f98
12 files changed
+1043
-12
No files matched your search
@@ -9,6 +9,8 @@ export interface StatusJob {
|
||||
detail?: string
|
||||
cancelling?: boolean
|
||||
onCancel: () => void
|
||||
/** `bytes`: done/total are byte counts (a download), shown in MB. */
|
||||
unit?: 'bytes'
|
||||
}
|
||||
|
||||
interface Props {
|
||||
@@ -60,7 +62,10 @@ export function StatusBar({
|
||||
<div className="ml-auto flex min-w-0 items-center gap-2">
|
||||
<span className="shrink-0 tabular-nums text-text">
|
||||
{job.cancelling ? 'Cancelling…' : job.label}
|
||||
{job.total > 0 && ` ${Math.min(job.done + 1, job.total)}/${job.total}`}
|
||||
{job.total > 0 &&
|
||||
(job.unit === 'bytes'
|
||||
? ` ${Math.round(job.done / 1e6)}/${Math.round(job.total / 1e6)} MB`
|
||||
: ` ${Math.min(job.done + 1, job.total)}/${job.total}`)}
|
||||
</span>
|
||||
<span className="well h-1.5 w-32 shrink-0 overflow-hidden rounded-full">
|
||||
<span
|
||||
|
||||
Reference in new issue
Block a user