Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
<template>
<div
class="flex flex-col gap-4 rounded-2xl border-[1px] border-solid border-blue bg-highlight-blue p-4"
>
<div class="flex flex-row justify-between">
<div class="flex flex-col text-contrast">
<span class="text-xl font-semibold">Batch scan in progress</span>
<span>{{ progress?.complete }} of {{ progress?.total }} projects completed</span>
</div>
<ButtonStyled circular color="blue" type="outlined">
<button @click="emit('cancel-scan')" class="!px-4">Cancel scan</button>
</ButtonStyled>
</div>
<div class="w-full rounded-full bg-highlight-blue">
<div
class="h-3 rounded-[inherit] bg-blue"
:style="`width: ${((progress?.complete ?? 0) / (progress?.total ?? 1)) * 100}%`"
/>
</div>
</div>
</template>

<script setup lang="ts">
import { ButtonStyled } from '@modrinth/ui'
import { defineProps } from 'vue'

export interface BatchScanProgress {
total: number
complete: number
}

defineProps<{
progress?: BatchScanProgress
}>()

const emit = defineEmits<{
(e: 'cancel-scan'): void
}>()
</script>

This file was deleted.

Loading
Loading