fix: all broken integration tests

This commit is contained in:
jamesread
2025-10-11 00:45:41 +01:00
parent 7d5fa999e5
commit b330fbd1a5
44 changed files with 1160 additions and 3196 deletions

View File

@@ -0,0 +1,41 @@
<template>
<ActionButton v-if="component.type == 'link'" :actionData="component.action" :key="component.title" />
<div v-else-if="component.type == 'directory'">
<router-link :to="{ name: 'Dashboard', params: { title: component.title } }" class="dashboard-link">
<button>
{{ component.title }}
</button>
</router-link>
</div>
<div v-else-if="component.type == 'display'" class="display">
<div v-html="component.title" />
</div>
<template v-else-if="component.type == 'fieldset'">
<fieldset>
<legend>{{ component.title }}</legend>
<template v-for="subcomponent in component.contents" :key="subcomponent.title">
<DashboardComponent :component="subcomponent" />
</template>
</fieldset>
</template>
<div v-else>
OTHER: {{ component.type }}
{{ component }}
</div>
</template>
<script setup>
import ActionButton from '../ActionButton.vue'
const props = defineProps({
component: {
type: Object,
required: true
}
})
</script>