vuetify-rework #2

Merged
anonfunc merged 18 commits from vuetify-rework into main 2024-01-24 16:11:55 +01:00
6 changed files with 49 additions and 32 deletions
Showing only changes of commit f5c8d4fedf - Show all commits

View File

@@ -18,8 +18,9 @@
<script lang="ts" setup>
import { onMounted, ref } from 'vue'
import { type Stats } from '@/types/Stats'
const stats = ref({
const stats = ref<Stats>({
latest: 0,
queued: 0,
skipped: 0,

View File

@@ -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) {

View File

@@ -0,0 +1,22 @@
export 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
}

View File

@@ -0,0 +1,8 @@
import { type Package } from '@/types/Package'
export interface Packages {
packages: Array<Package>
total: number
offset: number
limit: number
}

View File

@@ -0,0 +1,9 @@
import { type Stats_Lto } from '@/types/Stats_Lto'
export interface Stats {
latest: number
queued: number
skipped: number
failed: number
lto: Stats_Lto
}

View File

@@ -0,0 +1,5 @@
export interface Stats_Lto {
enabled: number
disabled: number
unknown: number
}