1// register modal component 2Vue.component('modal', { 3 template: `#modal-template`, 4 props: { 5 size: String, 6 show: Boolean, 7 noFooter: Boolean, 8 }, 9 data: function () { 10 return { 11 12 } 13 }, 14 methods: { 15 16 close: function (e) { 17 this.$emit('close'); 18 }, 19 20 updateBody: function () { 21 if ($('.modal').hasClass('show')) { 22 $('body').addClass('has-modal'); 23 } 24 else { 25 $('body').removeClass('has-modal'); 26 } 27 } 28 }, 29 30 computed: { 31 showFooter() { 32 if (this.noFooter == undefined) { 33 return true; 34 } 35 36 if (this.noFooter == true) { 37 return false; 38 } 39 else { 40 return true; 41 } 42 } 43 }, 44 45 mounted() { 46 this.updateBody(); 47 }, 48 49 created() { 50 this.updateBody(); 51 }, 52 53 beforeDestroy() { 54 this.updateBody(); 55 }, 56})
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.