feat: Implement view transitions for smoother navigation
- Added `useViewTransitions` hook to enable view transitions in the app. - Created `useNavigateWithTransition` for navigation with transitions. - Integrated view transitions in `ClientRoot`, `HomeTab`, `InboxTab`, and `SettingsTab`. - Introduced `AnimatedOutlet` and `RouteTransition` components for route-based animations. - Enhanced CSS for transitions and added a new `twilightTheme`. - Updated Vite configuration to serve sound and font assets. - Added support for reaction notifications in the room utility. - Created `DirectList` and related components for direct messaging functionality.
This commit is contained in:
@@ -1,11 +1,4 @@
|
||||
/* eslint-disable no-console */
|
||||
import MicMuteSound from '../../../../public/sound/Mic_Mute.ogg';
|
||||
import MicUnmuteSound from '../../../../public/sound/Mic_Unmuted.ogg';
|
||||
import SpeakersDeafenSound from '../../../../public/sound/Speakers_Deafen.ogg';
|
||||
import SpeakersUndeafenSound from '../../../../public/sound/Speakers_Undeafen.ogg';
|
||||
import CallJoinedSound from '../../../../public/sound/Call_Joined.ogg';
|
||||
import CallDepartSound from '../../../../public/sound/Call_Depart.ogg';
|
||||
import CallDialingSound from '../../../../public/sound/Call_Dialing.ogg';
|
||||
|
||||
/**
|
||||
* Sound types that can be played during a call
|
||||
@@ -21,16 +14,16 @@ export enum CallSoundType {
|
||||
}
|
||||
|
||||
/**
|
||||
* Maps sound types to their audio sources
|
||||
* Maps sound types to their audio sources (paths in public folder)
|
||||
*/
|
||||
const SOUND_SOURCES: Record<CallSoundType, string> = {
|
||||
[CallSoundType.MicMute]: MicMuteSound,
|
||||
[CallSoundType.MicUnmute]: MicUnmuteSound,
|
||||
[CallSoundType.Deafen]: SpeakersDeafenSound,
|
||||
[CallSoundType.Undeafen]: SpeakersUndeafenSound,
|
||||
[CallSoundType.CallJoined]: CallJoinedSound,
|
||||
[CallSoundType.CallDepart]: CallDepartSound,
|
||||
[CallSoundType.CallDialing]: CallDialingSound,
|
||||
[CallSoundType.MicMute]: '/sound/Mic_Mute.ogg',
|
||||
[CallSoundType.MicUnmute]: '/sound/Mic_Unmuted.ogg',
|
||||
[CallSoundType.Deafen]: '/sound/Speakers_Deafen.ogg',
|
||||
[CallSoundType.Undeafen]: '/sound/Speakers_Undeafen.ogg',
|
||||
[CallSoundType.CallJoined]: '/sound/Call_Joined.ogg',
|
||||
[CallSoundType.CallDepart]: '/sound/Call_Depart.ogg',
|
||||
[CallSoundType.CallDialing]: '/sound/Call_Dialing.ogg',
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user