mirror of
https://github.com/yuukiwww/taiko-web.git
synced 2024-10-22 17:05:49 +02:00
update max results, again
This commit is contained in:
parent
c9b05b35e3
commit
a6458168b8
@ -3056,16 +3056,18 @@ class SongSelect{
|
||||
}
|
||||
}
|
||||
|
||||
var maxResults = totalFilters > 0 && !query ? 100 : 50
|
||||
|
||||
if(query){
|
||||
results = fuzzysort.go(query, results, {
|
||||
keys: ["titlePrepared", "subtitlePrepared"],
|
||||
allowTypo: true,
|
||||
limit: 100
|
||||
limit: maxResults
|
||||
})
|
||||
}else{
|
||||
results = results.map(result => {
|
||||
return {obj: result}
|
||||
}).slice(0, 100)
|
||||
}).slice(0, maxResults)
|
||||
}
|
||||
|
||||
return results
|
||||
|
@ -1354,7 +1354,6 @@ var translations = {
|
||||
ja: [
|
||||
"CTRL+Fで検索窓を開く!",
|
||||
"検索フィルタの組み合わせは自由自在です!",
|
||||
"最も関連性の高い100件のみを表示します。",
|
||||
"キーワードでジャンルを絞り込めます!(例: \"genre:variety\", \"genre:namco\")",
|
||||
"「oni:10」などのフィルターを使用して、特定の難易度の曲を検索して!",
|
||||
"Difficulty filters support ranges, too! Try \"ura:1-5\"!",
|
||||
@ -1367,7 +1366,6 @@ var translations = {
|
||||
en: [
|
||||
"Open the search window by pressing CTRL+F!",
|
||||
"Mix and match as many search filters as you want!",
|
||||
"Only the 100 most relevant search results are shown.",
|
||||
"Filter by genre by using the \"genre:\" keyword! (e.g. \"genre:variety\", \"genre:namco\")",
|
||||
"Use filters like \"oni:10\" to search for songs with a particular difficulty!",
|
||||
"Difficulty filters support ranges, too! Try \"ura:1-5\"!",
|
||||
|
Loading…
Reference in New Issue
Block a user