From 0dab74c0bb7c34dbf567eab520685ed32dc81f30 Mon Sep 17 00:00:00 2001 From: Bui Date: Sun, 27 Feb 2022 17:25:02 +0000 Subject: [PATCH] back to 100 --- public/src/js/songselect.js | 5 ++--- public/src/js/strings.js | 4 ++-- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/public/src/js/songselect.js b/public/src/js/songselect.js index 46144a5..ff35607 100644 --- a/public/src/js/songselect.js +++ b/public/src/js/songselect.js @@ -3016,11 +3016,10 @@ class SongSelect{ if(query){ results = fuzzysort.go(query, results, {keys: ["titlePrepared", "subtitlePrepared"], allowTypo: true}) - results = results.map(result => result.obj) + .map(result => result.obj) } - results = results.slice(0, 100) - return results + return results.slice(0, 100) } searchInput(){ diff --git a/public/src/js/strings.js b/public/src/js/strings.js index 529a7f4..1947609 100644 --- a/public/src/js/strings.js +++ b/public/src/js/strings.js @@ -1354,7 +1354,7 @@ var translations = { ja: [ "CTRL+Fで検索窓を開く!", "検索フィルタの組み合わせは自由自在です!", - "最も関連性の高い50件のみを表示します。", + "最も関連性の高い100件のみを表示します。", "キーワードでジャンルを絞り込めます!(例: \"genre:variety\", \"genre:namco\")", "「oni:10」などのフィルターを使用して、特定の難易度の曲を検索して!", "Difficulty filters support ranges, too! Try \"ura:1-5\"!", @@ -1367,7 +1367,7 @@ var translations = { en: [ "Open the search window by pressing CTRL+F!", "Mix and match as many search filters as you want!", - "Only the 50 most relevant search results are shown.", + "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\"!",