VueTube/NUXT/pages/logs.vue

43 lines
708 B
Vue
Raw Normal View History

2022-02-28 15:24:06 +00:00
<template>
<div>
<v-list-item v-for="(item, index) in logs" :key="index">
<v-card class="card">
2022-03-02 13:14:52 +00:00
<v-card-title>
{{ item.name }}
2022-03-02 17:38:24 +00:00
<span v-text="` ${new Date(item.time).toLocaleString()}`" class="date" />
2022-03-02 13:14:52 +00:00
</v-card-title>
2022-02-28 15:24:06 +00:00
<v-card-text v-text="item.data" />
</v-card>
</v-list-item>
</div>
</template>
<style scoped>
.card {
width: 100%;
2022-03-02 19:15:15 +00:00
margin: 1em 0 1em 0;
2022-02-28 15:24:06 +00:00
}
2022-03-02 13:14:52 +00:00
.date {
2022-03-02 17:38:24 +00:00
margin: 0.4em;
2022-03-02 13:14:52 +00:00
font-size: 0.75em;
transform: translateY(5%);
2022-03-02 17:38:24 +00:00
color: #999;
2022-03-02 13:14:52 +00:00
}
2022-02-28 15:24:06 +00:00
</style>
<script>
export default {
data() {
return {
logs: new Array()
}
},
mounted() {
const logs = this.$youtube.logs
this.logs = logs;
}
}
</script>