@ -80,8 +80,12 @@ const searchIndex = computedAsync(async () =>
searchOptions : {
searchOptions : {
fuzzy : 0.2 ,
fuzzy : 0.2 ,
prefix : true ,
prefix : true ,
boost : { title : 4 , text : 2 , titles : 1 }
boost : { title : 4 , text : 2 , titles : 1 } ,
}
... ( theme . value . search ? . provider === 'local' &&
theme . value . search . options ? . miniSearch ? . searchOptions )
} ,
... ( theme . value . search ? . provider === 'local' &&
theme . value . search . options ? . miniSearch ? . options )
}
}
)
)
)
)
@ -396,8 +400,16 @@ function formMarkRegex(terms: Set<string>) {
< div class = "backdrop" @click ="$emit('close')" / >
< div class = "backdrop" @click ="$emit('close')" / >
< div class = "shell" >
< div class = "shell" >
< form class = "search-bar" @pointerup ="onSearchBarClick($event)" @ submit.prevent = " " >
< form
< label :title ="placeholder" id = "localsearch-label" for = "localsearch-input" >
class = "search-bar"
@ pointerup = "onSearchBarClick($event)"
@ submit . prevent = ""
>
< label
: title = "placeholder"
id = "localsearch-label"
for = "localsearch-input"
>
< svg
< svg
class = "search-icon"
class = "search-icon"
width = "18"
width = "18"
@ -454,7 +466,9 @@ function formMarkRegex(terms: Set<string>) {
class = "toggle-layout-button"
class = "toggle-layout-button"
: class = "{ 'detailed-list': showDetailedList }"
: class = "{ 'detailed-list': showDetailedList }"
: title = "$t('modal.displayDetails')"
: title = "$t('modal.displayDetails')"
@ click = "selectedIndex > -1 && (showDetailedList = !showDetailedList)"
@ click = "
selectedIndex > - 1 && ( showDetailedList = ! showDetailedList )
"
>
>
< svg
< svg
width = "18"
width = "18"
@ -527,7 +541,11 @@ function formMarkRegex(terms: Set<string>) {
< div >
< div >
< div class = "titles" >
< div class = "titles" >
< span class = "title-icon" > # < / span >
< span class = "title-icon" > # < / span >
< span v-for ="(t, index) in p.titles" :key="index" class="title" >
< span
v - for = "(t, index) in p.titles"
: key = "index"
class = "title"
>
< span class = "text" v -html = " t " / >
< span class = "text" v -html = " t " / >
< svg width = "18" height = "18" viewBox = "0 0 24 24" >
< svg width = "18" height = "18" viewBox = "0 0 24 24" >
< path
< path
@ -547,7 +565,7 @@ function formMarkRegex(terms: Set<string>) {
< div v-if ="showDetailedList" class="excerpt-wrapper" >
< div v-if ="showDetailedList" class="excerpt-wrapper" >
< div v -if = " p.text " class = "excerpt" inert >
< div v -if = " p.text " class = "excerpt" inert >
< div class = "vp-doc" v -html = " p.text " / >
< div class = "vp-doc" v -html = " p.text " / >
< / div >
< / div >
< div class = "excerpt-gradient-bottom" / >
< div class = "excerpt-gradient-bottom" / >
< div class = "excerpt-gradient-top" / >
< div class = "excerpt-gradient-top" / >
@ -726,7 +744,7 @@ function formMarkRegex(terms: Set<string>) {
}
}
. search - actions button . clear - button : disabled {
. search - actions button . clear - button : disabled {
opacity : 0.37 ;
opacity : 0.37 ;
}
}
. search - keyboard - shortcuts {
. search - keyboard - shortcuts {