1
0
mirror of https://github.com/amir20/dozzle.git synced 2025-12-27 15:41:45 +01:00
Files
dozzle/assets/pages/Index.vue
Amir Raminfar dbf24db594 It works!
2018-10-30 12:31:34 -07:00

26 lines
490 B
Vue

<template lang="html">
<div>
<ul>
<li v-for="item in containers">
<router-link :to="{name: 'container', params: {id: item.Id}}">{{ item.Names[0] }} {{ item.Status}}</router-link>
</li>
</ul>
</div>
</template>
<script>
export default {
name: "Index",
data() {
return {
containers: []
};
},
async created() {
this.containers = await (await fetch(`/api/containers.json`)).json();
}
};
</script>
<style lang="css">
</style>