mirror of
https://github.com/Luzifer/twitch-bot.git
synced 2024-11-14 19:12:43 +00:00
26 lines
407 B
JavaScript
26 lines
407 B
JavaScript
|
new Vue({
|
||
|
computed: {
|
||
|
quoteItems() {
|
||
|
return this.quotes.map((q, i) => ({ id: i + 1, quote: q }))
|
||
|
},
|
||
|
},
|
||
|
|
||
|
data: {
|
||
|
fields: [
|
||
|
{ key: 'id', label: 'ID', sortable: true, sortDirection: 'desc' },
|
||
|
{ key: 'quote' },
|
||
|
],
|
||
|
|
||
|
quotes: [],
|
||
|
},
|
||
|
|
||
|
el: '#app',
|
||
|
|
||
|
mounted() {
|
||
|
axios.get(window.location.href)
|
||
|
.then(res => {
|
||
|
this.quotes = res.data
|
||
|
})
|
||
|
},
|
||
|
})
|