codebox/frontend/src/views/Dashboard.vue

32 lines
559 B
Vue
Raw Normal View History

2021-11-01 21:07:22 +01:00
<template>
<div class="home">
<ContainerList :containers="containers"/>
<Editor />
2021-11-01 21:07:22 +01:00
</div>
</template>
<script>
import ContainerList from '../components/ContainerList'
import { getContainers } from '../lib/api'
import { ref } from 'vue'
import Editor from '../components/Editor'
2021-11-01 21:07:22 +01:00
export default {
name: 'Dashboard',
components: { Editor, ContainerList },
2021-11-01 21:07:22 +01:00
setup () {
const containers = ref([])
getContainers()
.then(c => {
containers.value = c
})
return {
containers: containers
}
}
}
</script>