feature: add support for displaying chapters (#15)

* feat: add initial code for reading chapters

* feat: add more fields for supporting chapters and chapter tags.
This commit is contained in:
Alfred Gutierrez
2022-01-17 20:02:28 -08:00
committed by GitHub
parent b1562b6a05
commit ff36b01373
5 changed files with 91 additions and 3 deletions

View File

@@ -8,6 +8,15 @@
<h4>Streams</h4>
<b-table striped hover :items="info.streams"></b-table>
<div v-show="info.chapters.length > 0">
<h4>Chapters</h4>
<b-table striped hover :items="info.chapters">
<template #cell(tags)="data">
<b-table-lite small stacked outlined :items="data.item.tags"></b-table-lite>
</template>
</b-table>
</div>
</div>
</template>
@@ -25,6 +34,7 @@ export default {
url: this.info.url,
nb_streams: this.info.nb_streams,
flags: this.info.flags,
nb_chapters: this.info.nb_chapters,
},
]
},