diff --git a/frontend/src/components/ScrollView/LogItem.vue b/frontend/src/components/ScrollView/LogItem.vue index 19e3e082..4e679eef 100644 --- a/frontend/src/components/ScrollView/LogItem.vue +++ b/frontend/src/components/ScrollView/LogItem.vue @@ -1,7 +1,10 @@ @@ -20,6 +23,16 @@ export default { isAnsi: { type: Boolean, default: false + }, + searchString: { + type: String, + default: '' + } + }, + computed: { + dataHtml () { + if (!this.searchString) return this.data + return this.data.replace(new RegExp(`(${this.searchString})`, 'gi'), '$1') } } } diff --git a/frontend/src/components/ScrollView/LogView.vue b/frontend/src/components/ScrollView/LogView.vue index c4c20228..4998917d 100644 --- a/frontend/src/components/ScrollView/LogView.vue +++ b/frontend/src/components/ScrollView/LogView.vue @@ -1,13 +1,22 @@