exported types
This commit is contained in:
@@ -150,36 +150,8 @@
|
||||
|
||||
<script lang="ts" setup>
|
||||
import { onMounted, ref, UnwrapRef, watch } from 'vue'
|
||||
|
||||
interface Package {
|
||||
pkgbase: string
|
||||
repo: string
|
||||
split_packages: Array<string>
|
||||
status:
|
||||
| 'latest'
|
||||
| 'failed'
|
||||
| 'build'
|
||||
| 'skipped'
|
||||
| 'delayed'
|
||||
| 'building'
|
||||
| 'signing'
|
||||
| 'unknown'
|
||||
| 'queued'
|
||||
skip_reason: string
|
||||
lto: 'enabled' | 'unknown' | 'disabled' | 'auto_disabled'
|
||||
debug_symbols: 'available' | 'unknown' | 'not_available'
|
||||
arch_version: string
|
||||
repo_version: string
|
||||
build_date: string
|
||||
peak_mem: any
|
||||
}
|
||||
|
||||
interface Packages {
|
||||
packages: Array<Package>
|
||||
total: number
|
||||
offset: number
|
||||
limit: number
|
||||
}
|
||||
import { type Package } from '@/types/Package'
|
||||
import { type Packages } from '@/types/Packages'
|
||||
|
||||
const inputPkgBase = ref('')
|
||||
const selectRepo = ref({ title: 'Repository (any)', value: 'any' })
|
||||
@@ -236,7 +208,7 @@ const searchPackages = (offset: number) => {
|
||||
throw new Error(response.statusText)
|
||||
}
|
||||
})
|
||||
.then((json) => {
|
||||
.then((json: Packages) => {
|
||||
if (!json) return
|
||||
|
||||
if (pagesMax.value !== json.total) {
|
||||
|
||||
Reference in New Issue
Block a user