mirror of
https://github.com/imputnet/cobalt.git
synced 2026-01-26 08:41:47 +00:00
web: parallel queue item processing
Some checks failed
CodeQL / Analyze (${{ matrix.language }}) (none, javascript-typescript) (push) Has been cancelled
Run tests / check lockfile correctness (push) Has been cancelled
Run tests / web sanity check (push) Has been cancelled
Run tests / api sanity check (push) Has been cancelled
Some checks failed
CodeQL / Analyze (${{ matrix.language }}) (none, javascript-typescript) (push) Has been cancelled
Run tests / check lockfile correctness (push) Has been cancelled
Run tests / web sanity check (push) Has been cancelled
Run tests / api sanity check (push) Has been cancelled
This commit is contained in:
@@ -3,22 +3,21 @@
|
||||
|
||||
export let percentage: number = 0;
|
||||
export let workerId: string;
|
||||
export let runningWorkerId: string | undefined;
|
||||
export let completedWorkers: Set<string>;
|
||||
</script>
|
||||
|
||||
<div class="file-progress">
|
||||
{#if percentage && workerId === runningWorkerId}
|
||||
{#if percentage}
|
||||
<div
|
||||
class="progress"
|
||||
style="width: {Math.min(100, percentage || 0)}%"
|
||||
style="width: {Math.min(100, percentage)}%"
|
||||
></div>
|
||||
{:else if completedWorkers.has(workerId)}
|
||||
<div
|
||||
class="progress"
|
||||
style="width: 100%"
|
||||
></div>
|
||||
{:else if workerId === runningWorkerId}
|
||||
{:else}
|
||||
<Skeleton
|
||||
height="6px"
|
||||
width="100%"
|
||||
|
||||
Reference in New Issue
Block a user