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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
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-preparing-string'},
language.$('misc.search.preparing')),
html.tag('template', {class: 'wiki-search-loading-data-string'},
language.$('misc.search.loadingData')),
html.tag('template', {class: 'wiki-search-searching-string'},
language.$('misc.search.searching')),
html.tag('template', {class: 'wiki-search-failed-string'},
language.$('misc.search.failed')),
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')),
html.tag('template', {class: 'wiki-search-tag-result-kind-string'},
language.$('misc.search.resultKind.artTag')),
],
}),
};
|