frontend: fix strict production build typing

This commit is contained in:
archipelago
2026-06-11 01:30:49 -04:00
parent f818f1dcc1
commit c79afa9541
8 changed files with 34 additions and 12 deletions
@@ -172,7 +172,29 @@ const actionItems = computed(() => {
})
function emitAction(action: ActionEmit) {
emit(action)
switch (action) {
case 'launch':
emit('launch')
break
case 'start':
emit('start')
break
case 'stop':
emit('stop')
break
case 'restart':
emit('restart')
break
case 'uninstall':
emit('uninstall')
break
case 'update':
emit('update')
break
case 'channels':
emit('channels')
break
}
}
function handleImageError(e: Event) {
+1 -1
View File
@@ -104,7 +104,7 @@
</div>
<p class="text-xs text-white/50">Loading credentials...</p>
</div>
<div v-else class="space-y-3">
<div v-else-if="credentials" class="space-y-3">
<div v-for="cred in credentials.credentials" :key="cred.label" class="rounded-lg border border-white/10 bg-white/[0.04] p-3">
<div class="flex items-center justify-between gap-3 mb-1">
<span class="text-white/60 text-xs uppercase tracking-wide">{{ cred.label }}</span>
@@ -82,9 +82,9 @@ describe('AppContentSection', () => {
expect(wrapper.text()).toContain('Screenshots')
expect(images).toHaveLength(2)
expect(images[0].attributes('src')).toBe('/assets/screenshots/example-dashboard.png')
expect(images[0].attributes('alt')).toBe('Example screenshot 1')
expect(images[1].attributes('src')).toBe('/assets/screenshots/example-settings.png')
expect(images[1].attributes('alt')).toBe('Settings screen')
expect(images[0]?.attributes('src')).toBe('/assets/screenshots/example-dashboard.png')
expect(images[0]?.attributes('alt')).toBe('Example screenshot 1')
expect(images[1]?.attributes('src')).toBe('/assets/screenshots/example-settings.png')
expect(images[1]?.attributes('alt')).toBe('Settings screen')
})
})