|
|
@ -1,13 +1,29 @@
|
|
|
|
<script lang="ts" setup>
|
|
|
|
<script lang="ts" setup>
|
|
|
|
import { markRaw, nextTick, onMounted, ref, shallowRef, watch, type Ref, createApp } from 'vue'
|
|
|
|
|
|
|
|
import { useRouter } from 'vitepress'
|
|
|
|
|
|
|
|
import { onKeyStroke, useSessionStorage, debouncedWatch, useLocalStorage, useEventListener, computedAsync } from '@vueuse/core'
|
|
|
|
|
|
|
|
import MiniSearch, { type SearchResult } from 'minisearch'
|
|
|
|
|
|
|
|
import localSearchIndex from '@localSearchIndex'
|
|
|
|
import localSearchIndex from '@localSearchIndex'
|
|
|
|
|
|
|
|
import {
|
|
|
|
|
|
|
|
computedAsync,
|
|
|
|
|
|
|
|
debouncedWatch,
|
|
|
|
|
|
|
|
onKeyStroke,
|
|
|
|
|
|
|
|
useEventListener,
|
|
|
|
|
|
|
|
useLocalStorage,
|
|
|
|
|
|
|
|
useSessionStorage
|
|
|
|
|
|
|
|
} from '@vueuse/core'
|
|
|
|
|
|
|
|
import MiniSearch, { type SearchResult } from 'minisearch'
|
|
|
|
|
|
|
|
import { useRouter } from 'vitepress'
|
|
|
|
|
|
|
|
import {
|
|
|
|
|
|
|
|
createApp,
|
|
|
|
|
|
|
|
markRaw,
|
|
|
|
|
|
|
|
nextTick,
|
|
|
|
|
|
|
|
onMounted,
|
|
|
|
|
|
|
|
ref,
|
|
|
|
|
|
|
|
shallowRef,
|
|
|
|
|
|
|
|
watch,
|
|
|
|
|
|
|
|
type Ref
|
|
|
|
|
|
|
|
} from 'vue'
|
|
|
|
|
|
|
|
import type { ModalTranslations } from '../../../../types/local-search'
|
|
|
|
|
|
|
|
import { pathToFile, withBase } from '../../app/utils'
|
|
|
|
import { useData } from '../composables/data'
|
|
|
|
import { useData } from '../composables/data'
|
|
|
|
import { createTranslate } from '../support/translation'
|
|
|
|
import { createTranslate } from '../support/translation'
|
|
|
|
import type { ModalTranslations } from '../../../../types/local-search'
|
|
|
|
|
|
|
|
import { pathToFile, withBase } from '../../app/utils.js'
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
defineProps<{
|
|
|
|
defineProps<{
|
|
|
|
placeholder: string
|
|
|
|
placeholder: string
|
|
|
@ -40,19 +56,29 @@ interface Result {
|
|
|
|
|
|
|
|
|
|
|
|
const { localeIndex } = useData()
|
|
|
|
const { localeIndex } = useData()
|
|
|
|
|
|
|
|
|
|
|
|
const searchIndex = computedAsync(async () => markRaw(MiniSearch.loadJSON<Result>((await searchIndexData.value[localeIndex.value]?.())?.default, {
|
|
|
|
const searchIndex = computedAsync(async () =>
|
|
|
|
|
|
|
|
markRaw(
|
|
|
|
|
|
|
|
MiniSearch.loadJSON<Result>(
|
|
|
|
|
|
|
|
(await searchIndexData.value[localeIndex.value]?.())?.default,
|
|
|
|
|
|
|
|
{
|
|
|
|
fields: ['title', 'titles', 'text'],
|
|
|
|
fields: ['title', 'titles', 'text'],
|
|
|
|
storeFields: ['title', 'titles'],
|
|
|
|
storeFields: ['title', 'titles'],
|
|
|
|
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 }
|
|
|
|
},
|
|
|
|
}
|
|
|
|
})))
|
|
|
|
}
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
const filterText = useSessionStorage('vitepress:local-search-filter', '')
|
|
|
|
const filterText = useSessionStorage('vitepress:local-search-filter', '')
|
|
|
|
|
|
|
|
|
|
|
|
const showDetailedList = useLocalStorage('vitepress:local-search-detailed-list', false)
|
|
|
|
const showDetailedList = useLocalStorage(
|
|
|
|
|
|
|
|
'vitepress:local-search-detailed-list',
|
|
|
|
|
|
|
|
false
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
const results: Ref<(SearchResult & Result)[]> = shallowRef([])
|
|
|
|
const results: Ref<(SearchResult & Result)[]> = shallowRef([])
|
|
|
|
|
|
|
|
|
|
|
@ -66,7 +92,9 @@ watch(filterText, () => {
|
|
|
|
enableNoResults.value = false
|
|
|
|
enableNoResults.value = false
|
|
|
|
})
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
debouncedWatch(() => [searchIndex.value, filterText.value, showDetailedList.value] as const, async ([index, filterTextValue, showDetailedListValue], old, onCleanup) => {
|
|
|
|
debouncedWatch(
|
|
|
|
|
|
|
|
() => [searchIndex.value, filterText.value, showDetailedList.value] as const,
|
|
|
|
|
|
|
|
async ([index, filterTextValue, showDetailedListValue], old, onCleanup) => {
|
|
|
|
let canceled = false
|
|
|
|
let canceled = false
|
|
|
|
onCleanup(() => {
|
|
|
|
onCleanup(() => {
|
|
|
|
canceled = true
|
|
|
|
canceled = true
|
|
|
@ -75,11 +103,15 @@ debouncedWatch(() => [searchIndex.value, filterText.value, showDetailedList.valu
|
|
|
|
if (!index) return
|
|
|
|
if (!index) return
|
|
|
|
|
|
|
|
|
|
|
|
// Search
|
|
|
|
// Search
|
|
|
|
results.value = index.search(filterTextValue).slice(0, 16) as (SearchResult & Result)[]
|
|
|
|
results.value = index
|
|
|
|
|
|
|
|
.search(filterTextValue)
|
|
|
|
|
|
|
|
.slice(0, 16) as (SearchResult & Result)[]
|
|
|
|
enableNoResults.value = true
|
|
|
|
enableNoResults.value = true
|
|
|
|
|
|
|
|
|
|
|
|
// Highlighting
|
|
|
|
// Highlighting
|
|
|
|
const mods = showDetailedListValue ? await Promise.all(results.value.map(r => fetchExcerpt(r.id))) : []
|
|
|
|
const mods = showDetailedListValue
|
|
|
|
|
|
|
|
? await Promise.all(results.value.map((r) => fetchExcerpt(r.id)))
|
|
|
|
|
|
|
|
: []
|
|
|
|
if (canceled) return
|
|
|
|
if (canceled) return
|
|
|
|
const c = new Map<string, Map<string, string>>()
|
|
|
|
const c = new Map<string, Map<string, string>>()
|
|
|
|
for (const { id, mod } of mods) {
|
|
|
|
for (const { id, mod } of mods) {
|
|
|
@ -107,7 +139,7 @@ debouncedWatch(() => [searchIndex.value, filterText.value, showDetailedList.valu
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (canceled) return
|
|
|
|
if (canceled) return
|
|
|
|
}
|
|
|
|
}
|
|
|
|
results.value = results.value.map(r => {
|
|
|
|
results.value = results.value.map((r) => {
|
|
|
|
let title = r.title
|
|
|
|
let title = r.title
|
|
|
|
let titles = r.titles
|
|
|
|
let titles = r.titles
|
|
|
|
let text = ''
|
|
|
|
let text = ''
|
|
|
@ -126,7 +158,7 @@ debouncedWatch(() => [searchIndex.value, filterText.value, showDetailedList.valu
|
|
|
|
title = title.replace(reg, `<mark>$&</mark>`)
|
|
|
|
title = title.replace(reg, `<mark>$&</mark>`)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (match.includes('titles')) {
|
|
|
|
if (match.includes('titles')) {
|
|
|
|
titles = titles.map(t => t.replace(reg, `<mark>$&</mark>`))
|
|
|
|
titles = titles.map((t) => t.replace(reg, `<mark>$&</mark>`))
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (showDetailedListValue && match.includes('text')) {
|
|
|
|
if (showDetailedListValue && match.includes('text')) {
|
|
|
|
text = text.replace(reg, `<mark>$&</mark>`)
|
|
|
|
text = text.replace(reg, `<mark>$&</mark>`)
|
|
|
@ -137,7 +169,7 @@ debouncedWatch(() => [searchIndex.value, filterText.value, showDetailedList.valu
|
|
|
|
...r,
|
|
|
|
...r,
|
|
|
|
title,
|
|
|
|
title,
|
|
|
|
titles,
|
|
|
|
titles,
|
|
|
|
text,
|
|
|
|
text
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
})
|
|
|
|
contents.value = c
|
|
|
|
contents.value = c
|
|
|
@ -146,10 +178,12 @@ debouncedWatch(() => [searchIndex.value, filterText.value, showDetailedList.valu
|
|
|
|
const excerpts = el.value?.querySelectorAll('.result .excerpt') ?? []
|
|
|
|
const excerpts = el.value?.querySelectorAll('.result .excerpt') ?? []
|
|
|
|
for (const excerpt of excerpts) {
|
|
|
|
for (const excerpt of excerpts) {
|
|
|
|
excerpt.querySelector('mark')?.scrollIntoView({
|
|
|
|
excerpt.querySelector('mark')?.scrollIntoView({
|
|
|
|
block: 'center',
|
|
|
|
block: 'center'
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}, { debounce: 200, immediate: true })
|
|
|
|
},
|
|
|
|
|
|
|
|
{ debounce: 200, immediate: true }
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
async function fetchExcerpt(id: string) {
|
|
|
|
async function fetchExcerpt(id: string) {
|
|
|
|
const file = pathToFile(withBase(id.slice(0, id.indexOf('#'))))
|
|
|
|
const file = pathToFile(withBase(id.slice(0, id.indexOf('#'))))
|
|
|
@ -195,7 +229,7 @@ function scrollToSelectedResult () {
|
|
|
|
const selectedEl = document.querySelector('.result.selected')
|
|
|
|
const selectedEl = document.querySelector('.result.selected')
|
|
|
|
if (selectedEl) {
|
|
|
|
if (selectedEl) {
|
|
|
|
selectedEl.scrollIntoView({
|
|
|
|
selectedEl.scrollIntoView({
|
|
|
|
block: 'nearest',
|
|
|
|
block: 'nearest'
|
|
|
|
})
|
|
|
|
})
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
})
|
|
|
@ -250,12 +284,12 @@ const defaultTranslations: { modal: ModalTranslations } = {
|
|
|
|
selectKeyAriaLabel: 'enter',
|
|
|
|
selectKeyAriaLabel: 'enter',
|
|
|
|
navigateText: 'to navigate',
|
|
|
|
navigateText: 'to navigate',
|
|
|
|
navigateUpKeyAriaLabel: 'up arrow',
|
|
|
|
navigateUpKeyAriaLabel: 'up arrow',
|
|
|
|
navigateDownKeyAriaLabel: 'down arrow',
|
|
|
|
navigateDownKeyAriaLabel: 'down arrow'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
const $t = createTranslate(theme.value.localSearch, defaultTranslations)
|
|
|
|
const $t = createTranslate(theme.value.search?.options, defaultTranslations)
|
|
|
|
|
|
|
|
|
|
|
|
// Back
|
|
|
|
// Back
|
|
|
|
|
|
|
|
|
|
|
@ -264,7 +298,7 @@ onMounted(() => {
|
|
|
|
window.history.pushState(null, '', null)
|
|
|
|
window.history.pushState(null, '', null)
|
|
|
|
})
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
useEventListener('popstate', event => {
|
|
|
|
useEventListener('popstate', (event) => {
|
|
|
|
event.preventDefault()
|
|
|
|
event.preventDefault()
|
|
|
|
emit('close')
|
|
|
|
emit('close')
|
|
|
|
})
|
|
|
|
})
|
|
|
@ -277,14 +311,34 @@ useEventListener('popstate', event => {
|
|
|
|
|
|
|
|
|
|
|
|
<div class="shell">
|
|
|
|
<div class="shell">
|
|
|
|
<div class="search-bar" @pointerup="onSearchBarClick($event)">
|
|
|
|
<div class="search-bar" @pointerup="onSearchBarClick($event)">
|
|
|
|
<svg class="search-icon" width="16" height="16" viewBox="0 0 24 24"><g fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><circle cx="11" cy="11" r="8"/><path d="m21 21l-4.35-4.35"/></g></svg>
|
|
|
|
<svg class="search-icon" width="16" height="16" viewBox="0 0 24 24">
|
|
|
|
|
|
|
|
<g
|
|
|
|
|
|
|
|
fill="none"
|
|
|
|
|
|
|
|
stroke="currentColor"
|
|
|
|
|
|
|
|
stroke-linecap="round"
|
|
|
|
|
|
|
|
stroke-linejoin="round"
|
|
|
|
|
|
|
|
stroke-width="2"
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
<circle cx="11" cy="11" r="8" />
|
|
|
|
|
|
|
|
<path d="m21 21l-4.35-4.35" />
|
|
|
|
|
|
|
|
</g>
|
|
|
|
|
|
|
|
</svg>
|
|
|
|
<div class="search-actions before">
|
|
|
|
<div class="search-actions before">
|
|
|
|
<button
|
|
|
|
<button
|
|
|
|
class="back-button"
|
|
|
|
class="back-button"
|
|
|
|
:title="$t('modal.backButtonTitle')"
|
|
|
|
:title="$t('modal.backButtonTitle')"
|
|
|
|
@click="$emit('close')"
|
|
|
|
@click="$emit('close')"
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<svg width="16" height="16" viewBox="0 0 24 24"><path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 12H5m7 7l-7-7l7-7"/></svg>
|
|
|
|
<svg width="16" height="16" viewBox="0 0 24 24">
|
|
|
|
|
|
|
|
<path
|
|
|
|
|
|
|
|
fill="none"
|
|
|
|
|
|
|
|
stroke="currentColor"
|
|
|
|
|
|
|
|
stroke-linecap="round"
|
|
|
|
|
|
|
|
stroke-linejoin="round"
|
|
|
|
|
|
|
|
stroke-width="2"
|
|
|
|
|
|
|
|
d="M19 12H5m7 7l-7-7l7-7"
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
</svg>
|
|
|
|
</button>
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<input
|
|
|
|
<input
|
|
|
@ -292,17 +346,26 @@ useEventListener('popstate', event => {
|
|
|
|
v-model="filterText"
|
|
|
|
v-model="filterText"
|
|
|
|
:placeholder="placeholder"
|
|
|
|
:placeholder="placeholder"
|
|
|
|
class="search-input"
|
|
|
|
class="search-input"
|
|
|
|
>
|
|
|
|
/>
|
|
|
|
<div class="search-actions">
|
|
|
|
<div class="search-actions">
|
|
|
|
<button
|
|
|
|
<button
|
|
|
|
class="toggle-layout-button"
|
|
|
|
class="toggle-layout-button"
|
|
|
|
:class="{
|
|
|
|
:class="{
|
|
|
|
'detailed-list': showDetailedList,
|
|
|
|
'detailed-list': showDetailedList
|
|
|
|
}"
|
|
|
|
}"
|
|
|
|
:title="$t('modal.displayDetails')"
|
|
|
|
:title="$t('modal.displayDetails')"
|
|
|
|
@click="showDetailedList = !showDetailedList"
|
|
|
|
@click="showDetailedList = !showDetailedList"
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<svg width="16" height="16" viewBox="0 0 24 24"><path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 14h7v7H3zM3 3h7v7H3zm11 1h7m-7 5h7m-7 6h7m-7 5h7"/></svg>
|
|
|
|
<svg width="16" height="16" viewBox="0 0 24 24">
|
|
|
|
|
|
|
|
<path
|
|
|
|
|
|
|
|
fill="none"
|
|
|
|
|
|
|
|
stroke="currentColor"
|
|
|
|
|
|
|
|
stroke-linecap="round"
|
|
|
|
|
|
|
|
stroke-linejoin="round"
|
|
|
|
|
|
|
|
stroke-width="2"
|
|
|
|
|
|
|
|
d="M3 14h7v7H3zM3 3h7v7H3zm11 1h7m-7 5h7m-7 6h7m-7 5h7"
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
</svg>
|
|
|
|
</button>
|
|
|
|
</button>
|
|
|
|
|
|
|
|
|
|
|
|
<button
|
|
|
|
<button
|
|
|
@ -310,22 +373,28 @@ useEventListener('popstate', event => {
|
|
|
|
:title="$t('modal.resetButtonTitle')"
|
|
|
|
:title="$t('modal.resetButtonTitle')"
|
|
|
|
@click="filterText = ''"
|
|
|
|
@click="filterText = ''"
|
|
|
|
>
|
|
|
|
>
|
|
|
|
<svg width="16" height="16" viewBox="0 0 24 24"><path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M20 5H9l-7 7l7 7h11a2 2 0 0 0 2-2V7a2 2 0 0 0-2-2Zm-2 4l-6 6m0-6l6 6"/></svg>
|
|
|
|
<svg width="16" height="16" viewBox="0 0 24 24">
|
|
|
|
|
|
|
|
<path
|
|
|
|
|
|
|
|
fill="none"
|
|
|
|
|
|
|
|
stroke="currentColor"
|
|
|
|
|
|
|
|
stroke-linecap="round"
|
|
|
|
|
|
|
|
stroke-linejoin="round"
|
|
|
|
|
|
|
|
stroke-width="2"
|
|
|
|
|
|
|
|
d="M20 5H9l-7 7l7 7h11a2 2 0 0 0 2-2V7a2 2 0 0 0-2-2Zm-2 4l-6 6m0-6l6 6"
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
</svg>
|
|
|
|
</button>
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div
|
|
|
|
<div class="results" @mousemove="disableMouseOver = false">
|
|
|
|
class="results"
|
|
|
|
|
|
|
|
@mousemove="disableMouseOver = false"
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
<a
|
|
|
|
<a
|
|
|
|
v-for="(p, index) in results"
|
|
|
|
v-for="(p, index) in results"
|
|
|
|
:key="p.id"
|
|
|
|
:key="p.id"
|
|
|
|
:href="withBase(p.id)"
|
|
|
|
:href="withBase(p.id)"
|
|
|
|
class="result"
|
|
|
|
class="result"
|
|
|
|
:class="{
|
|
|
|
:class="{
|
|
|
|
selected: selectedIndex === index,
|
|
|
|
selected: selectedIndex === index
|
|
|
|
}"
|
|
|
|
}"
|
|
|
|
:aria-title="[...p.titles, p.title].join(' > ')"
|
|
|
|
:aria-title="[...p.titles, p.title].join(' > ')"
|
|
|
|
@mouseenter="!disableMouseOver && (selectedIndex = index)"
|
|
|
|
@mouseenter="!disableMouseOver && (selectedIndex = index)"
|
|
|
@ -334,13 +403,18 @@ useEventListener('popstate', event => {
|
|
|
|
<div>
|
|
|
|
<div>
|
|
|
|
<div class="titles">
|
|
|
|
<div class="titles">
|
|
|
|
<span class="title-icon">#</span>
|
|
|
|
<span class="title-icon">#</span>
|
|
|
|
<span
|
|
|
|
<span v-for="(t, index) in p.titles" :key="index" class="title">
|
|
|
|
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="16" height="16" viewBox="0 0 24 24"><path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="m9 18l6-6l-6-6"/></svg>
|
|
|
|
<svg width="16" height="16" viewBox="0 0 24 24">
|
|
|
|
|
|
|
|
<path
|
|
|
|
|
|
|
|
fill="none"
|
|
|
|
|
|
|
|
stroke="currentColor"
|
|
|
|
|
|
|
|
stroke-linecap="round"
|
|
|
|
|
|
|
|
stroke-linejoin="round"
|
|
|
|
|
|
|
|
stroke-width="2"
|
|
|
|
|
|
|
|
d="m9 18l6-6l-6-6"
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
</svg>
|
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
<span class="title main">
|
|
|
|
<span class="title main">
|
|
|
|
<span class="text" v-html="p.title" />
|
|
|
|
<span class="text" v-html="p.title" />
|
|
|
@ -357,18 +431,59 @@ useEventListener('popstate', event => {
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</a>
|
|
|
|
</a>
|
|
|
|
|
|
|
|
|
|
|
|
<div v-if="filterText && !results.length && enableNoResults" class="no-results">
|
|
|
|
<div
|
|
|
|
{{ $t('modal.noResultsText') }} "<strong>{{ filterText }}</strong>"
|
|
|
|
v-if="filterText && !results.length && enableNoResults"
|
|
|
|
|
|
|
|
class="no-results"
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
{{ $t('modal.noResultsText') }} "<strong>{{ filterText }}</strong
|
|
|
|
|
|
|
|
>"
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
|
|
<div class="search-keyboard-shortcuts">
|
|
|
|
<div class="search-keyboard-shortcuts">
|
|
|
|
<span>
|
|
|
|
<span>
|
|
|
|
<kbd :aria-title="$t('modal.footer.navigateUpKeyAriaLabel')"><svg width="14" height="14" viewBox="0 0 24 24"><path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 19V5m-7 7l7-7l7 7"/></svg></kbd> <kbd :aria-title="$t('modal.footer.navigateDownKeyAriaLabel')"><svg width="14" height="14" viewBox="0 0 24 24"><path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 5v14m7-7l-7 7l-7-7"/></svg></kbd>
|
|
|
|
<kbd :aria-title="$t('modal.footer.navigateUpKeyAriaLabel')">
|
|
|
|
|
|
|
|
<svg width="14" height="14" viewBox="0 0 24 24">
|
|
|
|
|
|
|
|
<path
|
|
|
|
|
|
|
|
fill="none"
|
|
|
|
|
|
|
|
stroke="currentColor"
|
|
|
|
|
|
|
|
stroke-linecap="round"
|
|
|
|
|
|
|
|
stroke-linejoin="round"
|
|
|
|
|
|
|
|
stroke-width="2"
|
|
|
|
|
|
|
|
d="M12 19V5m-7 7l7-7l7 7"
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
</svg>
|
|
|
|
|
|
|
|
</kbd>
|
|
|
|
|
|
|
|
{{ ' ' }}
|
|
|
|
|
|
|
|
<kbd :aria-title="$t('modal.footer.navigateDownKeyAriaLabel')">
|
|
|
|
|
|
|
|
<svg width="14" height="14" viewBox="0 0 24 24">
|
|
|
|
|
|
|
|
<path
|
|
|
|
|
|
|
|
fill="none"
|
|
|
|
|
|
|
|
stroke="currentColor"
|
|
|
|
|
|
|
|
stroke-linecap="round"
|
|
|
|
|
|
|
|
stroke-linejoin="round"
|
|
|
|
|
|
|
|
stroke-width="2"
|
|
|
|
|
|
|
|
d="M12 5v14m7-7l-7 7l-7-7"
|
|
|
|
|
|
|
|
/>
|
|
|
|
|
|
|
|
</svg>
|
|
|
|
|
|
|
|
</kbd>
|
|
|
|
{{ $t('modal.footer.navigateText') }}
|
|
|
|
{{ $t('modal.footer.navigateText') }}
|
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
<span>
|
|
|
|
<span>
|
|
|
|
<kbd :aria-title="$t('modal.footer.selectKeyAriaLabel')"><svg width="14" height="14" viewBox="0 0 24 24"><g fill="none" stroke="currentcolor" stroke-linecap="round" stroke-linejoin="round" stroke-width="2"><path d="m9 10l-5 5l5 5"/><path d="M20 4v7a4 4 0 0 1-4 4H4"/></g></svg></kbd>
|
|
|
|
<kbd :aria-title="$t('modal.footer.selectKeyAriaLabel')"
|
|
|
|
|
|
|
|
><svg width="14" height="14" viewBox="0 0 24 24">
|
|
|
|
|
|
|
|
<g
|
|
|
|
|
|
|
|
fill="none"
|
|
|
|
|
|
|
|
stroke="currentcolor"
|
|
|
|
|
|
|
|
stroke-linecap="round"
|
|
|
|
|
|
|
|
stroke-linejoin="round"
|
|
|
|
|
|
|
|
stroke-width="2"
|
|
|
|
|
|
|
|
>
|
|
|
|
|
|
|
|
<path d="m9 10l-5 5l5 5" />
|
|
|
|
|
|
|
|
<path d="M20 4v7a4 4 0 0 1-4 4H4" />
|
|
|
|
|
|
|
|
</g>
|
|
|
|
|
|
|
|
</svg>
|
|
|
|
|
|
|
|
</kbd>
|
|
|
|
{{ $t('modal.footer.selectText') }}
|
|
|
|
{{ $t('modal.footer.selectText') }}
|
|
|
|
</span>
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|