mirror of
https://github.com/amir20/dozzle.git
synced 2025-12-27 15:41:45 +01:00
26 lines
490 B
Vue
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> |