Add minimal frontend

This commit is contained in:
2021-11-01 21:07:22 +01:00
parent b2a04ba399
commit 041e1ccda6
12 changed files with 192 additions and 23 deletions

View File

@@ -0,0 +1,28 @@
<template>
<div class="home">
<ContainerList :containers="containers"/>
</div>
</template>
<script>
import ContainerList from '../components/ContainerList'
import { getContainers } from '../lib/api'
import { ref } from 'vue'
export default {
name: 'Dashboard',
components: { ContainerList },
setup () {
const containers = ref([])
getContainers()
.then(c => {
containers.value = c
})
return {
containers: containers
}
}
}
</script>