1document.addEventListener("DOMContentLoaded", function () { 2 Vue.component('snackbar', { 3 4 computed: { 5 importantSnacks() { 6 return this.$store.getters['snackbar/snacks'].filter(item => item.vanish == false); 7 }, 8 newestImportantSnack() { 9 return this.importantSnacks.length ? this.importantSnacks[this.importantSnacks.length-1] : null; 10 }, 11 autoVanishSnacks() { 12 return this.$store.getters['snackbar/snacks'].filter(item => item.vanish == true); 13 }, 14 brick_offer() { 15 return this.$store.getters['hub/brick_offer']; 16 }, 17 }, 18 methods: { 19 remove: function (snack) { 20 this.$store.dispatch({type: 'snackbar/remove', snack: snack}); 21 }, 22 goto: function (url, snack) { 23 if (url) location.href = url; 24 else this.remove(snack); 25 } 26 }, 27 template: '#snackbar' 28 }); 29});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.