Closed elmeister closed 1 year ago
The latest updates on your projects. Learn more about Vercel for Git βοΈ
Name | Status | Preview | Comments | Updated (UTC) |
---|---|---|---|---|
bg-frontend | β Ready (Inspect) | Visit Preview | π¬ Add feedback | Sep 6, 2023 11:05am |
bhagavad-gita | β Ready (Inspect) | Visit Preview | Sep 6, 2023 11:05am |
CodeRabbit
The changes primarily revolve around enhancing the audio player's functionality, introducing a new PlaybackRateButton
component, and improving URL handling. The updates ensure that the player modal opens when the audio=1
query parameter is present in the URL and include search parameters in generated URLs.
Files | Summary |
---|---|
public/js/audioseeker.js |
Removed code related to audio player's time update and click event handling, along with several helper functions. |
src/components/Headers/AudioPlayer/PlaybackRateButton.tsx ,src/components/Headers/AudioPlayer/functions.ts ,src/components/Headers/AudioPlayer/index.tsx |
Introduced PlaybackRateButton component and updateQueryString function. Refactored playback control logic. Added track progress handling and search parameters update on player close. |
src/components/Chapter/PageNavigator.tsx ,src/components/Chapter/functions.ts |
Added useRouter hook and getSearchPostfix function. Updated getPrevPageHref and getNextPageHref functions to append search parameters to URLs. |
src/components/Headers/PageHeader.tsx ,src/components/LinkWithLocale.tsx |
Added useEffect hook to open player modal when audio=1 query parameter is present. Modified getUpdatedHref function to include query string in URL. |
"In the land of code, where logic intertwines, πΏπ₯οΈ
A rabbit hopped and tweaked some lines. ππ»
Audio flows, URLs glow, π΅π
With each commit, our app does grow! ππ±"
Add query variable flag for opened player
Re-open player on page change within player UI
Summary by CodeRabbit
New Feature: Introduced a
PlaybackRateButton
component for controlling the audio player's playback rate.Refactor: Updated the
AudioPlayer
component to handle track progress and update search parameters when closing the player.New Feature: Enhanced the
PageNavigator
component to include search parameters in the generated URLs for previous and next pages.New Feature: Added functionality in
PageHeader
to open the player modal if theaudio=1
query parameter is present in the URL.Refactor: Modified the
getUpdatedHref
function to include the query string in the generated URL, affecting components that rely on this function.