Commit Graph

120 Commits

Author SHA1 Message Date
Yash Jipkate 3e0e11c01e
Fix #260: Add `Auto` theme preference to set theme automatically. (#835)
* Auto theme preference added

* Fix lint

* Add and use AUTO from consts

* Add shared custom hook to get current theme

* Moved up 'Auto' choice

* AUTO -> AUTO_THEME_ID & extract useCurrentTheme to file

* Liberalise theme setting

* Add tests
2021-03-21 13:19:43 -04:00
Deluan bc609be3c9 Fix space hotkey 2021-02-05 13:10:58 -05:00
Deluan 4b373560c6 Do not trigger next/prev event handlers when Cmd (meta) is pressed 2021-02-05 13:03:36 -05:00
Deluan a168f46b95 Better hotkey organization 2021-02-03 18:29:33 -05:00
Deluan 9959862791 Replace react-hotkeys-hook with react-hotkeys 2021-02-02 23:13:18 -05:00
Deluan 591a5344ac Workaround to remember logarithmic volume 2021-02-02 18:29:20 -05:00
Deluan 77705e4d79 Upgrade react-jinke-music-player to 4.21.2
Enable fadeIn/fadeOut when pausing/playing and logarithmic volume (fix #668)
2021-01-31 18:23:32 -05:00
Deluan 4b38a13243 Make event handlers naming consistent (camelCase) 2020-12-20 13:28:11 -05:00
Deluan 7bd31da0d5 Fix console warning about required property 2020-11-29 20:31:07 -05:00
Deluan 4ca98fb827 Add hotkey `s` to toggle star.
Refers to #585
2020-11-28 00:52:38 -05:00
Deluan f7d1b80b69 Simplify AudioTitle on mobile view 2020-11-27 13:30:51 -05:00
Deluan 31d6508b1d Remove reactjkplayer's audioTitle, as it is not used and only causes warnings in the console 2020-11-25 15:37:10 -05:00
Steve Richter bc72f41180 Adjust AudioTitle in Player
- Show info on 2 lines
- Show album
2020-11-25 15:37:10 -05:00
Deluan 5137407377 Add "keepalive" resource. It was causing issues in Firefox when using the dataProvider 2020-11-23 21:28:09 -05:00
Steve Richter 14525cd056 Fix formatting 2020-11-21 02:03:54 -05:00
Steve Richter 2397a7e464 Add Desktop Notifications 2020-11-21 02:03:54 -05:00
Deluan af4609727c Goto album page when clicking on player's album cover 2020-11-17 10:33:53 -05:00
Deluan 3fc81638c7 Moved all reducers and actions to their own folders 2020-11-08 13:19:38 -05:00
Deluan 24b040adf9 Add more keyboard shortcuts
- : volume down
= : volume up
m : toggle sidebar menu

Refers to #585
2020-11-07 23:11:57 -05:00
Deluan 9224a67a7b Add <- and -> hotkeys, to jump to previous or next song
Refers to #585
2020-11-05 17:38:53 -05:00
Deluan c9b119f0a4 Make scrobble submits compatible with Last.FM specification
See https://github.com/deluan/navidrome/issues/18#issuecomment-656977060
2020-11-04 23:51:48 -05:00
Deluan 0ff89679ba Use new `renderAudioTitle` (to avoid the [Object object] song title on iOS) 2020-10-13 11:20:30 -04:00
Deluan edc9344327 Only link from current playing song title to album view if not in iOS.
Ideally the react-player should accept a Link as the audioTitle
2020-10-11 15:04:15 -04:00
Deluan 2d036b5966 Small refactoring, simplify function 2020-10-02 22:36:46 -04:00
Deluan deef8e162d Hide the player when queue is empty, instead of removing it from the DOM 2020-10-01 13:40:44 -04:00
Deluan b18e3289fb Add StarButton to player 2020-10-01 13:40:44 -04:00
Deluan 39c94d3cd9 Play/Pause current song with <Space> key 2020-09-28 19:05:19 -04:00
Deluan 27adb84177 Add "Close" icon to player 2020-09-24 13:34:17 -04:00
Deluan cff5c1ee53 Start player in pause mode if windows is reloaded/refreshed. Fixes #457 2020-09-24 11:12:47 -04:00
Deluan fd32a28788 Fix JS linting error 2020-09-24 09:58:01 -04:00
Deluan a1c670b40d Start player in pause mode if windows is reloaded/refreshed. Fixes #457 2020-09-24 09:40:04 -04:00
Deluan 7305e3aa17 Add "Play Next" action (finally) 2020-09-21 20:10:52 -04:00
Deluan c322253fde Upgrade react-player to 4.16.3 2020-07-21 13:06:33 -04:00
Deluan 865bad1550 Send play song event to GA 2020-07-08 21:23:51 -04:00
Deluan 6563897692 Restore volume level after a refresh 2020-06-24 15:33:59 -04:00
Deluan 9b75b729ba Convert function to arrow-function 2020-06-22 19:55:04 -04:00
Deluan f93e2d0c04 Use memoization to avoid re-renders 2020-06-19 19:43:33 -04:00
Deluan 3a9324c6ef Enable autoPlay in React Player 2020-06-19 16:32:54 -04:00
Deluan cf692140a9 Revert "Upgrade to React Player 4.15.1"
This reverts commit de693b8206. (+1 squashed commit)
Squashed commits:
[cc80cb8] Revert "Simplify handle"

This reverts commit 83b8fa14c6.
2020-06-19 16:31:38 -04:00
Deluan 83b8fa14c6 Simplify handle 2020-06-19 12:37:26 -04:00
Deluan de693b8206 Upgrade to React Player 4.15.1 2020-06-19 12:24:11 -04:00
Deluan 1686e358fe Simplify PlayQueue store 2020-06-19 11:32:24 -04:00
Deluan 804d969427 Clear play queue on login and logout 2020-06-19 11:32:23 -04:00
Deluan 9d23b191b5 Show indicator on current playing song. Fixes #128 2020-06-19 11:32:23 -04:00
Deluan 72b2e756f7 Revert "Show indicator on current playing song. Fixes #128"
This implementation causes performance issues
2020-06-13 16:41:11 -04:00
Deluan be2afb94ae Show indicator on current playing song. Fixes #128 2020-06-13 14:04:45 -04:00
Deluan f8a18b59b0 Add link to album from player's song title. Fixes #324 2020-06-12 17:02:13 -04:00
Deluan 4702c5abbd Add track/artist being played to the page title. Closes #317 2020-06-11 22:40:35 -04:00
Deluan bf1dc33782 Add option to shuffle playlist 2020-05-16 19:11:52 -04:00
Deluan c43798c5dd Filter out songs not in the playlist 2020-05-16 19:02:33 -04:00
Deluan 5c95eed517 Rename actions 2020-05-16 18:35:34 -04:00
Deluan fd49ae319f Add Playlist action 2020-05-16 18:35:34 -04:00
Deluan 8e2480a82d Fix duration (in web player) when playing transcoded files. Thanks @lijinke666
See: https://github.com/lijinke666/react-music-player/issues/90
2020-05-16 13:24:25 -04:00
Deluan 09267d2ffd Don't skip to the next song when there is an streaming error 2020-05-09 15:56:12 -04:00
Deluan 06ab88415a Refactor album actions, simplify usage 2020-05-07 11:24:28 -04:00
Deluan 0472988645 Fix next track not working after adding to queue 2020-05-07 00:28:32 -04:00
Deluan 23836d7c3c Change `addTrack` action to `addTracks`, supporting multiple tracks to be added to the queue in one call 2020-05-05 12:07:50 -04:00
Deluan 41cf99541d Move translations to server 2020-05-02 14:19:01 -04:00
Deluan b44218fdcc Move the shuffleAlbum logic into an action 2020-04-26 19:15:52 -04:00
Deluan 87cc397bc3 Add current playing track id to the Redux store 2020-04-25 11:57:52 -04:00
Deluan 177ace1cee Turn off autoplay when reloading the play queue from the Redux store 2020-04-25 09:30:43 -04:00
Deluan b3f70538a9 Upgrade Prettier to 2.0.4. Reformatted all JS files 2020-04-20 09:09:29 -04:00
Deluan 289ba68824 Add Portuguese translation (incomplete) 2020-04-15 22:11:23 -04:00
Deluan da45bcf448 Make player theme configurable from Navidrome's theme 2020-04-14 11:54:49 -04:00
Deluan 4dff067e0b Upgrade React Player to 4.11.1, enabled MediaSession 2020-04-13 14:24:50 -04:00
Deluan f537984bbf Use `trackId` instead of simply `id`, as it seems to conflict with internal id generated by the player. fixes #153 2020-04-07 11:55:45 -04:00
Deluan 670be29d7b Revert "Pause the player with <space>"
This reverts commit 6e6cfdd0
2020-04-02 16:52:46 -04:00
jvoisin 6e6cfdd02b Pause the player with <space> 2020-04-01 17:14:09 -04:00
Deluan 7fec503b72 feat: persist the queue in the localStorage 2020-03-31 14:34:08 -04:00
Deluan 353c48d8d8 refactor: rename player to audioplayer 2020-03-17 15:20:35 -04:00