1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
export default {
contentDependencies: ['generatePageSidebarBox'],
extraDependencies: ['html', 'language'],
relations: (relation) => ({
sidebarBox:
relation('generatePageSidebarBox'),
}),
generate: (relations, {html, language}) =>
relations.sidebarBox.slots({
attributes: {class: 'wiki-search-sidebar-box'},
collapsible: false,
content: [
html.tag('input', {class: 'wiki-search-input'},
{
placeholder:
language.$('misc.search.placeholder').toString(),
},
{type: 'search'}),
html.tag('template', {class: 'wiki-search-no-results-string'},
language.$('misc.search.noResults')),
html.tag('template', {class: 'wiki-search-current-result-string'},
language.$('misc.search.currentResult')),
html.tag('template', {class: 'wiki-search-end-search-string'},
language.$('misc.search.endSearch')),
html.tag('template', {class: 'wiki-search-album-result-kind-string'},
language.$('misc.search.resultKind.album')),
html.tag('template', {class: 'wiki-search-artist-result-kind-string'},
language.$('misc.search.resultKind.artist')),
html.tag('template', {class: 'wiki-search-group-result-kind-string'},
language.$('misc.search.resultKind.group')),
],
}),
};
|