Deluan Quintão
fcdd30ba8f
build(ui): migrate from CRA/Jest to Vite/Vitest ( #3311 )
...
* feat: create vite project
* feat: it's alive!
* feat: `make dev` working!
* feat: replace custom serviceWorker with vite plugin
* test: replace Jest with Vitest
* fix: run prettier
* fix: skip eslint for now.
* chore: remove ui.old folder
* refactor: replace lodash.pick with simple destructuring
* fix: eslint errors (wip)
* fix: eslint errors (wip)
* fix: display-name eslint errors (wip)
* fix: no-console eslint errors (wip)
* fix: react-refresh/only-export-components eslint errors (wip)
* fix: react-refresh/only-export-components eslint errors (wip)
* fix: react-refresh/only-export-components eslint errors (wip)
* fix: react-refresh/only-export-components eslint errors (wip)
* fix: build
* fix: pwa manifest
* refactor: pwa manifest
* refactor: simplify PORT configuration
* refactor: rename simple JS files
* test: cover playlistUtils
* fix: react-image-lightbox
* feat(ui): add sourcemaps to help debug issues
2024-09-28 11:54:36 -04:00
Caio Cotts
8ac133027d
Make the UI use the new ShareURL option
2024-09-15 17:26:58 -04:00
Deluan
d968f7f530
Remove deprecation warning about notify
2024-04-13 15:27:54 -04:00
Caio Cotts
86757663d6
Reformat code with Prettier's new rules.
2023-12-18 15:12:24 -05:00
Deluan
f9b060af18
Removed onBackdropClick deprecated property
2023-05-17 15:48:22 -04:00
Deluan
377e7ebd52
Disable share downloading when EnableDownloads is false.
...
Fixes https://github.com/navidrome/navidrome/pull/2246#issuecomment-1472341635
2023-03-16 13:11:26 -04:00
Deluan
a7d3e6e1f1
Add option to allow share to be downloaded
2023-03-10 23:33:29 -05:00
Deluan
527c378c41
Add feature request link to About dialog
2023-03-08 12:41:51 -05:00
Deluan
b6fcfa9fc8
Add a fallback when the browser does not support copying the share link to clipboard (not a secure origin)
...
See: https://stackoverflow.com/a/51823007
2023-01-30 12:09:01 -05:00
Deluan
762a1ba998
Fix downloading and sharing from a playlist. Fix #2123
2023-01-30 11:20:22 -05:00
Deluan
9721ef8974
Fix download translation key
2023-01-24 20:14:51 -05:00
Deluan
85084cda57
Add button to share selected songs
2023-01-24 18:36:47 -05:00
Deluan
433da37982
Add Share to Context menus, also share artist
2023-01-24 18:36:47 -05:00
Deluan
051e9c556d
Use redux for ShareDialog
2023-01-24 18:36:47 -05:00
Deluan
17d9573f4d
Refactor dialogs, make it simple to add a new dialog to all views
2023-01-24 18:36:47 -05:00
Deluan
40cac5c367
Fix JS console warning
2023-01-24 18:36:46 -05:00
Deluan
72a12e344e
More share translations
2023-01-24 18:36:46 -05:00
Deluan
65174d3fb2
Refactor DownloadMenuDialog to use useTranscodingOptions hook
2023-01-24 18:36:46 -05:00
Deluan
c8293fcdd8
Extract transcoding options to its own hook
2023-01-24 18:36:46 -05:00
Deluan
d9c42b3183
Add share's contents and description to the DB
2023-01-24 18:36:46 -05:00
Deluan
364fdfbd8d
Use defaultDownsamplingFormat in share options
2023-01-24 18:36:45 -05:00
Deluan
84aa094e56
More work on Shares
2023-01-24 18:36:45 -05:00
Deluan
ab04e33da6
Initial work on Shares
2023-01-24 18:36:45 -05:00
Kendall Garner
54395e7e6a
Enable transcoding of downlods ( #1667 )
...
* feat(download): Enable transcoding of downlods - #573
Signed-off-by: Kendall Garner <17521368+kgarner7@users.noreply.github.com>
* feat(download): Make automatic transcoding of downloads optional
Signed-off-by: Kendall Garner <17521368+kgarner7@users.noreply.github.com>
* Fix spelling
* address changes
* prettier
* fix config
* use previous name
Signed-off-by: Kendall Garner <17521368+kgarner7@users.noreply.github.com>
2022-12-18 12:12:37 -05:00
Deluan
3d5a1cef92
Don't allow adding songs to smart playlists
2022-10-02 20:14:15 -04:00
joaomqc
8befe10ee6
fix(UI): Warn if track is already present when adding to playlist - 1604 ( #1897 )
...
* fix(UI): Warn if track is already present when adding to playlist - 1604
Signed-off-by: joaomqc <joaomqc@hotmail.com>
* fix tests
Signed-off-by: joaomqc <joaomqc@hotmail.com>
Signed-off-by: joaomqc <joaomqc@hotmail.com>
Co-authored-by: João Coelho <1120458@isep.ipp.pt>
2022-09-29 13:19:14 -04:00
Deluan
6b09dc7198
Fix new test-library eslint errors
2022-09-28 21:30:20 -04:00
Deluan
a4d3bf42a7
Remove some duplicated code
2021-10-31 15:08:06 -04:00
Deluan
133fed344f
Add owner_id to playlist
2021-10-31 15:08:06 -04:00
Steve Richter
a56d5bc850
Listenbrainz scrobbling ( #1424 )
...
* Refactor session_keys to its own package
* Adjust play_tracker
- Don't send external NowPlaying/Scrobble for tracks with unknown artist
- Continue to the next agent on error
* Implement ListenBrainz Agent and Auth Router
* Implement frontend for ListenBrainz linking
* Update listenBrainzRequest
- Don't marshal Player to json
- Rename Track to Title
* Return ErrRetryLater on ListenBrainz server errors
* Add tests for listenBrainzAgent
* Add tests for ListenBrainz Client
* Adjust ListenBrainzTokenDialog to handle errors better
* Refactor listenbrainz.formatListen and listenBrainzRequest structs
* Refactor agent auth_routers
* Refactor session_keys to agents package
* Add test for listenBrainzResponse
* Add tests for ListenBrainz auth_router
* Update ListenBrainzTokenDialog and auth_router
* Adjust player scrobble toggle
2021-10-30 12:17:42 -04:00
Steve Richter
85185e3b98
Misc small changes ( #1433 )
...
* Fix React key warning in HelpDialog
* Change "lyric" to "lyrics" in en.json
2021-10-26 08:57:20 -04:00
Deluan
ed1ca65ad5
Show hotkeys as chips, for easier reading
2021-10-25 11:14:43 -04:00
Deluan
b4e5c662dc
Fix JS console warning
2021-09-26 17:36:30 -04:00
Samarjeet
0c0bd2967d
Replace expanded with a dialog ( #1258 )
...
* Replace expanded with a dialog
* Change `info` label to "Get Info"
* Rename things for consistency
Co-authored-by: Deluan <deluan@navidrome.org>
2021-09-20 20:30:43 -04:00
Deluan Quintão
79363d6c07
Move Playlists to the sidebar menu ( #1339 )
...
* Show playlists in sidebar menu
* Fix menu
* Refresh playlist submenu when adding new playlist
* Group shared playlists below user's playlists
* Fix text overflow in menu options
* Add button in playlist menu to go to Playlists list
* Add config option `DevSidebarPlaylists` to enable this feature (default false)
2021-09-11 13:11:15 -04:00
Deluan Quintão
5631493cc4
Upgrade Web UI to Create-React-App 4 and React 17 ( #1105 )
...
* Upgrade to CRA 4.0.3
* Try to fix tests. No lucky
* Fix new ESLint errors
* Fix JS tests and remove unwanted dependency. (#1106 )
* Fix tests
* Fix lint
* Remove React v16 workaround (fixed in v17)
* Force eslint to break on warnings
* Lint now needs to be called explicitly in the pipeline
Co-authored-by: Yash Jipkate <34203227+YashJipkate@users.noreply.github.com>
2021-05-25 09:58:06 -04:00
Deluan
fa9083ddec
Upgrade prettier to 2.3.0
...
Some reformatting was needed... :/
2021-05-11 18:13:03 -04:00
Yash Jipkate
df57cd6bb5
Allow adding songs to multiple playlists at once. ( #995 )
...
* Add support for multiple playlists
* Fix lint
* Remove console log comment
* Disable 'check' when loading
* Fix lint
* reset playlists on closeAddToPlaylist
* new playlist: accomodate string type on enter
* Fix lint
* multiple new playlists are added correctly
* use makestyle()
* Add tests
* Fix lint
2021-04-23 18:37:08 -04:00
Deluan
efe8240c0a
Remove inline style in favour of MUI's styling solution
2021-04-09 17:38:08 -04:00
rochakjain361
b552eb15b3
Make the version number clickable for the SNAPSHOT version in development docker build ( #843 )
...
* Make the version number clickable for the SNAPSHOT version while using development docker build
* Update the snapshot version link in to view list of commits since the release
* Create a new component for the link to the version
* Add tests and refactored a bit
Co-authored-by: Deluan <deluan@navidrome.org>
2021-03-22 23:34:34 -04:00
Ritik Pandey
9fb55d4025
Add duplicate song warning. Fix #554
...
* duplicate_song_warning added
* dialog_for_multiple_songs
* skip button updated
* duplicate_song_skip import removed
* duplicate_song msg updated
* handleSkip and checkDuplicateSong func modified
* Update AddToPlaylistDialog.js
* prettier applied
* go.sum file added
* duplicated songs bug fixed
2021-03-21 13:29:35 -04:00
rochakjain361
5a259ef3ff
Make the version number in the about dialog clickable ( #817 )
...
* Make the version number in the about dialog clickable
* Fix prettier errors
* Fix build errors
2021-03-12 10:26:41 -05:00
dpirad007
6cf15748c4
SelectPlaylist Input mobile view fix
2021-03-11 22:53:55 -05:00
Deluan
6ee45a9ccc
Move project to Navidrome GitHub organization
2021-02-06 21:46:35 -05:00
Deluan
847531391d
Help dialog with available hotkeys
2021-02-03 19:08:03 -05:00
Deluan
3fc81638c7
Moved all reducers and actions to their own folders
2020-11-08 13:19:38 -05:00
Deluan
bd1c3d9229
Use outlined Material-UI variant for all inputs
2020-08-17 11:19:39 -04:00
Deluan
4906b816af
Only allows adding to a writable playlist
2020-06-05 10:26:53 -04:00
Deluan
8f8d992da4
Only add to playlist songs from selected discNumber (if present)
2020-05-29 16:42:13 -04:00
Deluan
00811f8000
Cancel the dialog when clicking the backdrop
2020-05-25 22:51:31 -04:00