Commit Graph

67 Commits

Author SHA1 Message Date
Kasper Seweryn 8367e09e6c Fix favorite button in queue 2022-10-31 19:56:38 +00:00
wvffle 34d4f3b25b
Fix transcoded track and add info if there are no track sources 2022-10-30 19:20:34 +01:00
wvffle 0118fe0c63
Resolve TODOs 2022-10-30 19:17:56 +01:00
wvffle 9f36c4b3a8
Cleanup old queue and player logic 2022-10-30 19:17:55 +01:00
wvffle f06464ffa2
Fix calling createTrack multiple times when radio track changes 2022-10-30 19:17:55 +01:00
wvffle c828e106b0
Add radio support 2022-10-30 19:17:55 +01:00
wvffle ccb905b004
Migrate queue component 2022-10-30 19:17:54 +01:00
wvffle bef0d1dec4
WIP Rewrite queue 2022-10-30 19:17:54 +01:00
wvffle 711aa783b3 Fix setting progress through progressbar 2022-09-06 09:26:36 +00:00
wvffle 1d4a3468ee Revert "Rewrite player logic"
This reverts commit ec630a234ab5ea0dccddaf06c462536bbf1ed329.
2022-09-06 09:26:36 +00:00
wvffle 06310593ac WIP: Experiment with MediaElementAudioSourceNode 2022-09-06 09:26:36 +00:00
wvffle 97e7049333 Rewrite player logic
This commit will bring:
- Gapless play! (Fix #739)
- Chunked queue shuffling - we play first track after first 50 queue items are shuffled, then we shuffle chunks of 50 queue items with each new animation frame.
- We can now restore original queue order after shuffling! (Part of #1506)
- Preloading whole tracks into LRU cache (Should fix #1812)
- Preloading multiple tracks at once
2022-09-06 09:26:36 +00:00
wvffle bf67676010 Fix scrollToIndex 2022-09-06 09:26:36 +00:00
wvffle fa68ff76d8 Fix scrollToIndex 2022-09-06 09:26:36 +00:00
wvffle d1b8190dca Performance fixes 2022-09-06 09:26:36 +00:00
wvffle 2117b0e209 Fix scrollToIndex 2022-09-06 09:26:36 +00:00
wvffle f470e0649e Better fav button in queue item 2022-09-06 09:26:36 +00:00
wvffle 1df46d9691 Fix toast container making ui unclickable 2022-09-06 09:26:36 +00:00
wvffle 476f0ee06d Fix duration in radios 2022-09-06 09:26:36 +00:00
wvffle c87bf7e6b8 Queue component enhancements
This commit provides following queue component enhancements:
- Use a virtual list to render queue items. We now render ~25-30 items at once compared to `queue.length` items. (Fix #1471)
- Faster queue opening and a smoother open animation. (Fix #1471)
- Faster song enqueueing: When enqueueing a playlist or an album, we modify the state only once compared to `tracks.length` modifications before.
- When opening the queue, current track is now already pre-scrolled and centered. This resolves an issue with big queues, where the track list was slowly scrolling to a random position.
- Dragging a track onto the edge of the track list will now scroll the container. You reorder a track from the very top to the very bottom even when you have 3000 tracks in the queue!
- Ability to use scroll wheel while reordering track items
- Track reordering on mobile devices! Currently dragging to edge is disabled
- Responsivity fixes
- Allow click outside modal (Fix #1581)
2022-09-06 09:26:36 +00:00
wvffle 53d9015e17 Fix #1796, Potentially fix #1471 2022-09-06 09:26:36 +00:00
wvffle 232f0ff465 Resume playback when changing song from queue 2022-09-06 09:26:36 +00:00
wvffle db167ad80b Fix rounded corners in progress bars 2022-09-06 09:26:36 +00:00
wvffle c0719c21f1 Fix #1298 2022-09-06 09:26:36 +00:00
wvffle 34610670c6 Fix #1381 2022-09-06 09:26:36 +00:00
wvffle bbdb3dcb9d Fix auto-fixable linter issues 2022-09-06 09:26:36 +00:00
wvffle 74e88c26e8 Remove todo 2022-09-06 09:26:36 +00:00
wvffle 57692dcf6a Fix queue and player bugs 2022-09-06 09:26:36 +00:00
wvffle 54a33cd14e Fix audio playback 2022-09-06 09:26:36 +00:00
wvffle 8c11b6d0ea Rewrite queue 2022-09-06 09:26:36 +00:00
Kasper Seweryn 0b53ec5b1c Add store types and fix other type errors 2022-09-06 09:26:36 +00:00
Kasper Seweryn d6a46f5aab Remove required=false and disabled=false attributes 2022-09-06 09:26:36 +00:00
Kasper Seweryn cbaa58d215 Add useFocusTrap 2022-09-06 09:26:36 +00:00
Kasper Seweryn 7e53e9a511 Update vuedraggable 2022-09-06 09:26:36 +00:00
Kasper Seweryn f61fafec2a Remove '@/' 2022-09-06 09:26:36 +00:00
Kasper Seweryn 2b40707f4f Cleanup a lot of stuff
I've replaced `lodash` with `lodash-es`, so it can be tree-shaken

`~/modules` is a directory with application modules that run before app is mounted. Useful for configuration, web socket connection, and other stuff

`~/composables` is a directory with our custom composables. Much like `~/utils` but each util is in its own file
2022-09-06 09:26:36 +00:00
Kasper Seweryn 80ed06db04
Remove @/lodash.js
Vite handles tree shaking out of the box, so cherry picking modules is
now pointless
2022-02-21 22:49:02 +01:00
Ciaran Ainsworth 60c6a1938f Fix some linting issues 2022-02-21 19:52:16 +01:00
Ciaran Ainsworth 08d6772392 Fix broken imports 2022-02-21 17:27:00 +01:00
Georg Krause e9c4bfe947
Start migration to vite 2022-02-21 15:07:07 +01:00
JuniorJPDJ aecbd101c0 fix(front): update code to work with focus-trap v6 2022-02-03 22:36:39 +01:00
Georg Krause 8ee9a536e1
Lint the frontend code 2021-12-06 11:35:20 +01:00
Georg Krause 0abf71095c
Revert progress bar changes, see #1381 2021-10-21 10:24:14 +02:00
Georg Krause 5a74d1d3a0 Fix linting errors in touched files 2021-09-27 04:56:45 +00:00
Georg Krause 9bef230499 Update track progress bars with css transitions 2021-09-27 04:56:45 +00:00
Tony Wasserka 7900c2d065 Properly handle redundant MediaSession play/pause requests
MediaSession pause requests may happen even when Funkwhale is already in a
paused state. Previously FW would flip between play/pause without
consideration for the current state instead of doing nothing when
the playback state matches the requested one.

Notably, this made Funkwhale resume audio playback when entering sleep mode
on my system.
2021-04-11 15:19:59 +02:00
heyarne c79d00ec70 Add close button to queue 2021-01-03 17:48:07 +01:00
heyarne c2587e0a94 Fix whitespace before album name link 2021-01-03 17:48:07 +01:00
Agate 7a38a20925 Merge branch 'develop' of dev.funkwhale.audio:funkwhale/funkwhale into develop 2020-08-31 17:17:12 +02:00
Agate dcd8e94101 Fixed controls overflowing because of too large image in queue mode 2020-08-31 17:16:48 +02:00