File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 114
114
Filter
115
115
</h2 >
116
116
<p class =" text-xs pb-2 font-medium text-gray-500" >Hide non matching</code ></p >
117
- <input type =" text" v-model =" filterTerm" @input =" filterDocs" class =" w-full p-2 border-2 border-gray-300 rounded" placeholder =" /api/ search" >
117
+ <input type =" text" v-model =" filterTerm" @input =" filterDocs" class =" w-full p-2 border-2 border-gray-300 rounded" placeholder =" search route or description " >
118
118
</div >
119
119
</section >
120
120
<section class =" pt-5 pl-2 pr-2 pb-5 border mb-10 rounded bg-white shadow" >
@@ -678,7 +678,7 @@ class="my-prism-editor"
678
678
},
679
679
filterDocs () {
680
680
for (doc of this .docs ) {
681
- doc[' isHidden' ] = ! doc[' uri' ].includes (this .filterTerm )
681
+ doc[' isHidden' ] = ( ! doc[' docBlock ' ]. toLowerCase (). includes ( this . filterTerm . toLowerCase ()) && ! doc[ ' uri' ].includes (this .filterTerm ) )
682
682
}
683
683
},
684
684
request (doc ) {
You can’t perform that action at this time.
0 commit comments