Add minimal frontend
This commit is contained in:
28
frontend/src/views/Dashboard.vue
Normal file
28
frontend/src/views/Dashboard.vue
Normal 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>
|
||||
Reference in New Issue
Block a user