2022-02-28 15:24:06 +00:00
|
|
|
<template>
|
|
|
|
<div>
|
|
|
|
<v-list-item v-for="(item, index) in logs" :key="index">
|
2022-03-31 22:25:31 +00:00
|
|
|
<v-card
|
|
|
|
class="card background"
|
|
|
|
:class="$vuetify.theme.dark ? 'lighten-1' : 'darken-1'"
|
|
|
|
flat
|
2022-04-07 00:31:43 +00:00
|
|
|
:style="{borderRadius: `${roundTweak / 2}rem`}"
|
2022-03-31 22:25:31 +00:00
|
|
|
>
|
2022-03-02 13:14:52 +00:00
|
|
|
<v-card-title>
|
2022-03-21 23:47:11 +00:00
|
|
|
<v-chip v-if="item.error" outlined class="errorChip" color="error"
|
|
|
|
>Error</v-chip
|
|
|
|
>
|
2022-03-02 13:14:52 +00:00
|
|
|
{{ item.name }}
|
2022-03-21 23:47:11 +00:00
|
|
|
<span
|
2022-03-31 22:25:31 +00:00
|
|
|
class="date background--text"
|
|
|
|
:class="$vuetify.theme.dark ? 'text--lighten-4' : 'text--darken-4'"
|
2022-03-21 23:47:11 +00:00
|
|
|
v-text="`• ${new Date(item.time).toLocaleString()}`"
|
|
|
|
/>
|
2022-03-02 13:14:52 +00:00
|
|
|
</v-card-title>
|
2022-03-04 13:52:04 +00:00
|
|
|
|
|
|
|
<v-expansion-panels>
|
2022-03-31 22:25:31 +00:00
|
|
|
<v-expansion-panel
|
|
|
|
class="background"
|
|
|
|
:class="$vuetify.theme.dark ? 'lighten-1' : 'darken-1'"
|
2022-04-07 00:31:43 +00:00
|
|
|
:style="{borderRadius: `${roundTweak / 2}rem`}"
|
2022-03-31 22:25:31 +00:00
|
|
|
>
|
2022-03-04 13:52:04 +00:00
|
|
|
<v-expansion-panel-header>More</v-expansion-panel-header>
|
2022-03-21 23:47:11 +00:00
|
|
|
<v-expansion-panel-content class="logContent" v-text="item.data" />
|
2022-03-04 13:52:04 +00:00
|
|
|
</v-expansion-panel>
|
|
|
|
</v-expansion-panels>
|
2022-02-28 15:24:06 +00:00
|
|
|
</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-04 14:01:19 +00:00
|
|
|
.errorChip {
|
|
|
|
margin-right: 0.5em;
|
|
|
|
}
|
2022-03-06 16:55:16 +00:00
|
|
|
.logContent {
|
|
|
|
padding: 1em;
|
|
|
|
word-break: break-all;
|
|
|
|
}
|
2022-02-28 15:24:06 +00:00
|
|
|
</style>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
export default {
|
2022-04-07 00:31:43 +00:00
|
|
|
computed: {
|
|
|
|
roundTweak() {
|
|
|
|
return this.$store.state.tweaks.roundTweak;
|
|
|
|
}
|
|
|
|
},
|
2022-02-28 15:24:06 +00:00
|
|
|
data() {
|
|
|
|
return {
|
2022-03-21 23:47:11 +00:00
|
|
|
logs: new Array(),
|
|
|
|
};
|
2022-02-28 15:24:06 +00:00
|
|
|
},
|
|
|
|
mounted() {
|
2022-03-21 23:47:11 +00:00
|
|
|
const logs = this.$youtube.logs;
|
2022-02-28 15:24:06 +00:00
|
|
|
this.logs = logs;
|
2022-03-21 23:47:11 +00:00
|
|
|
},
|
|
|
|
};
|
2022-02-28 15:24:06 +00:00
|
|
|
</script>
|