mirror of
https://github.com/jiojciojsioe3/a3cjroijsiojiorj.git
synced 2024-11-15 07:21:50 +08: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){
|
if(query){
|
||||||
results = fuzzysort.go(query, results, {
|
results = fuzzysort.go(query, results, {
|
||||||
keys: ["titlePrepared", "subtitlePrepared"],
|
keys: ["titlePrepared", "subtitlePrepared"],
|
||||||
allowTypo: true,
|
allowTypo: true,
|
||||||
limit: 100
|
limit: maxResults
|
||||||
})
|
})
|
||||||
}else{
|
}else{
|
||||||
results = results.map(result => {
|
results = results.map(result => {
|
||||||
return {obj: result}
|
return {obj: result}
|
||||||
}).slice(0, 100)
|
}).slice(0, maxResults)
|
||||||
}
|
}
|
||||||
|
|
||||||
return results
|
return results
|
||||||
|
@ -1354,7 +1354,6 @@ var translations = {
|
|||||||
ja: [
|
ja: [
|
||||||
"CTRL+Fで検索窓を開く!",
|
"CTRL+Fで検索窓を開く!",
|
||||||
"検索フィルタの組み合わせは自由自在です!",
|
"検索フィルタの組み合わせは自由自在です!",
|
||||||
"最も関連性の高い100件のみを表示します。",
|
|
||||||
"キーワードでジャンルを絞り込めます!(例: \"genre:variety\", \"genre:namco\")",
|
"キーワードでジャンルを絞り込めます!(例: \"genre:variety\", \"genre:namco\")",
|
||||||
"「oni:10」などのフィルターを使用して、特定の難易度の曲を検索して!",
|
"「oni:10」などのフィルターを使用して、特定の難易度の曲を検索して!",
|
||||||
"Difficulty filters support ranges, too! Try \"ura:1-5\"!",
|
"Difficulty filters support ranges, too! Try \"ura:1-5\"!",
|
||||||
@ -1367,7 +1366,6 @@ var translations = {
|
|||||||
en: [
|
en: [
|
||||||
"Open the search window by pressing CTRL+F!",
|
"Open the search window by pressing CTRL+F!",
|
||||||
"Mix and match as many search filters as you want!",
|
"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\")",
|
"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!",
|
"Use filters like \"oni:10\" to search for songs with a particular difficulty!",
|
||||||
"Difficulty filters support ranges, too! Try \"ura:1-5\"!",
|
"Difficulty filters support ranges, too! Try \"ura:1-5\"!",
|
||||||
|
Loading…
Reference in New Issue
Block a user