Commit Graph

179 Commits

Author SHA1 Message Date
Bui
8c8f34f7a3 fix songselect when no songs 2022-03-06 18:24:57 +00:00
Bui
055823a8ca fix 2022-03-06 17:48:06 +00:00
Bui
e490f76744 fix 2022-03-06 17:44:50 +00:00
Bui
da90ccde34 fix if p2 closed song 2022-03-06 16:13:07 +00:00
Bui
e90fdd87b5 update random button 2022-03-06 16:05:20 +00:00
Bui
b02dd02ad9 block search when p2 is loading song 2022-03-06 14:56:52 +00:00
KatieFrogs
6c54c45a23 Song select fixes
- Searching diverge:yes returns songs with branches
- Fade out music slightly while search window is open
- When opening search box with a saved query, all the text gets selected
- Fix Ctrl+F not working during song select fade in
- Fix edge case highlighting only working on lowercase letters
- Fix right clicking selected text in the search box so it no longer gets unselected
- Fix Netplay option appearing when netplay is offline
- Use category id instead of name in the generated stylesheet
- Languages can choose to fallback to english instead of japanese with preferEn
2022-03-03 23:38:29 +03:00
Bui
05bda50655 fix back button 2022-03-03 05:45:02 +00:00
Bui
c81c3008fa normalize search 2022-02-28 22:04:04 +00:00
KatieFrogs
03428aa50e Do not exclude 1 char gap 2022-02-28 03:24:14 +03:00
KatieFrogs
8c3429b67c Move the highlighted range 2022-02-28 02:51:51 +03:00
KatieFrogs
22712326b2 Workaround for an edge case 2022-02-28 02:45:27 +03:00
KatieFrogs
0b433e5e72 Improve search relevancy
- If the search string gets split too many times (more than twice the amount of characters), the result is excluded
- Matches in the title are ranked higher than in the subtitle
- Exact matches are ranked the highest
2022-02-28 02:19:25 +03:00
Bui
a6458168b8 update max results, again 2022-02-27 20:28:32 +00:00
Bui
c9b05b35e3 don't play v_diffsel if already there 2022-02-27 19:34:50 +00:00
KatieFrogs
fbcb0e41eb Highlight search results 2022-02-27 22:11:21 +03:00
Bui
70a047cd1c improve range parsing 2022-02-27 18:23:20 +00:00
Bui
a763028fa7 built-in limit filter 2022-02-27 17:52:07 +00:00
Bui
0dab74c0bb back to 100 2022-02-27 17:25:02 +00:00
Bui
bdad6b702a use fuzzy search 2022-02-27 17:17:17 +00:00
KatieFrogs
05b2104713 Fix broken search, fix wrong result size 2022-02-27 19:43:51 +03:00
KatieFrogs
07294857fa Optimize search
- Optimize search result insertion, should be 5 to 7 times fater than before
- Fix a memory leak when stylesheets are being inserted into the page
2022-02-27 18:49:56 +03:00
Bui
9ceecd90d0 fix maker filter 2022-02-26 21:50:37 +00:00
Bui
1cf969a68f reduce results to 50 2022-02-26 05:06:50 +00:00
KatieFrogs
39c2436de2 Search optimization 2022-02-26 06:06:32 +03:00
KatieFrogs
0f142b5386 Squish text, fix keyboard navigation 2022-02-26 05:49:05 +03:00
KatieFrogs
76736a35bf Add fadeout in the search 2022-02-26 05:06:32 +03:00
Bui
6c1cddf33f set caret to end 2022-02-26 01:37:44 +00:00
Bui
4f71a32bcf set last query first 2022-02-26 01:29:02 +00:00
Bui
b63cd56b93 add maker filter 2022-02-26 01:22:36 +00:00
Bui
1ef724c4c1 remember last query until refresh 2022-02-26 00:47:09 +00:00
KatieFrogs
d85d48bc1f CSS fixes 2022-02-26 03:24:46 +03:00
Bui
e9b07f283d fix genre filter for custom song list 2022-02-26 00:09:14 +00:00
KatieFrogs
d44a4a1ce2 Improve appearance on mobile 2022-02-26 00:05:43 +03:00
Bui
17bec44720 check for event 2022-02-25 19:42:57 +00:00
Bui
5145aeccec trim query 2022-02-25 19:34:12 +00:00
Bui
c307fbb279 update p2 background 2022-02-25 19:32:35 +00:00
KatieFrogs
eb37779b58 Do not cancel touch while searching 2022-02-25 22:19:29 +03:00
Bui
24f02393eb allow ctrl+f from diff sel, fix input focus 2022-02-25 19:07:53 +00:00
Bui
6c6da320e1 stop songsel bgm 2022-02-25 19:02:30 +00:00
Bui
6a9139f9e9 fix ctrl+f 2022-02-25 18:50:21 +00:00
Bui
d0c26aa309 use more keyCode 2022-02-25 18:45:04 +00:00
Bui
e8547b027c use keyCode 2022-02-25 18:41:03 +00:00
Bui
ca9c602b67 search fixes 2022-02-25 18:29:56 +00:00
Bui
6c8b635c2a implement song search 2022-02-25 18:16:11 +00:00
KatieFrogs
7cf34cfb74 Hide plugin menu if empty 2022-02-22 17:43:27 +03:00
KatieFrogs
7d818877f8 Plugins: Add plugin settings
- Add support for plugin settings, they appear in the same menu as the plugins, indented from the left to emphasize which plugin the setting belongs to
  - Note that plugin settings can still be changed even when the plugins are stopped
- Add tooltips to plugin menu to view the plugin descriptions, description_lang can also be used
- Fix scolling not working on song select when returning from game settings
- Let instance owners set default plugin files in config.py, to make them easier to maintain
- plugins.add() can now add plugins using a url
- Plugins can be hidden from the plugin menu using PluginLoader.hide, an option in plugins.add(), or in config.py
- Make p2.disable() incremental so that multiple plugins can disable multiplayer independently
- Server no longer crashes if certain optional config fields were not copied over from an updated example config
- Fix not being able to unload plugins if one was imported with errors
2022-02-22 16:23:01 +03:00
KatieFrogs
4e6eec231a Fix song scrolling in session multiplayer 2022-02-18 00:14:38 +03:00
KatieFrogs
0655b79293 Bug fixes
- Change song select mouse wheel song scrolling to be instant
- Clicking on don chan in account settings toggles the animation
- If the music is too long for the chart, the results screen is shown earlier
- Fix weird BPM values freezing the browser (zero, negative, and very large)
- Add a warning to the page when JavaScript is disabled in the browser
- Fix Chrome auto dark mode by forcing light mode on the page
- Add a meta keywords tag to the page
- Fix plugin names getting cut off in the menu
- Delay the function editing of the EditFunction class in plugins to the start() function instead of load()
  - When stopping one of the plugins, all the plugins have to be stopped in reverse order and started again so that patched code of a stopped plugin does not linger around
- Fix importing plugins that have a SyntaxError
- Fix plugins getting the same internal name when added without one, causing them to not appear in the plugin settings
- Support editing args in EditFunction for plugins
- Prevent multiple websockets from being opened
- Fix page freezing after selecting Random song with no songs
- Fix the back button being repeated twice when there are no songs
- Fix /admin/users not accepting case insensitive usernames
- Pressing enter on the Delete Account field does the expected action instead of refreshing the page
- Better error message when custom folder access is denied
- Fix being able to start netplay in custom songs after refreshing the page (#383)
- Fix an error when importing songs from previous session and clicking on the white spot where you normally start multiplayer session
- Fix canvas elements becoming smaller than 1x1 resolution and crashing the game (#390)
- Fix song frame shadow cache on song select not being cleared when resizing the browser window, causing it to become blurry
- Fix a pause-restart error when you hit both confirm keys on the restart button
2022-02-17 23:50:07 +03:00
Bui
eab03369c7 reverse wheel controls 2022-02-16 14:55:44 +00:00