diff --git a/.env.local b/.env.local index efc3e34..149077b 100644 --- a/.env.local +++ b/.env.local @@ -1 +1 @@ -NEXT_PUBLIC_COMMIT_SHA=e43dbbf +NEXT_PUBLIC_COMMIT_SHA=e88d8b2 diff --git a/.idx/dev.nix b/.idx/dev.nix new file mode 100644 index 0000000..86601d0 --- /dev/null +++ b/.idx/dev.nix @@ -0,0 +1,39 @@ +{ pkgs, ... }: { + + # Which nixpkgs channel to use. + channel = "stable-23.11"; # or "unstable" + + # Use https://search.nixos.org/packages to find packages + packages = [ + pkgs.corepack + ]; + + # Sets environment variables in the workspace +# env = { + # SOME_ENV_VAR = "hello"; +# }; + + # Search for the extensions you want on https://open-vsx.org/ and use "publisher.id" +# idx.extensions = [ +# "angular.ng-template" +# ]; + + # Enable previews and customize configuration + idx.previews = { + enable = true; + previews = { + web = { + command = [ + "pnpm" + "run" + "dev" + "--port" + "$PORT" + ]; + manager = "web"; + # Optionally, specify a directory that contains your web app + # cwd = "app/client"; + }; + }; + }; +} \ No newline at end of file diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000..03adc8d --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,4 @@ +{ + "IDX.aI.enableInlineCompletion": true, + "IDX.aI.enableCodebaseIndexing": true +} \ No newline at end of file diff --git a/app/components/AudioPlayer.tsx b/app/components/AudioPlayer.tsx index 0acd244..46eb797 100644 --- a/app/components/AudioPlayer.tsx +++ b/app/components/AudioPlayer.tsx @@ -4,13 +4,13 @@ import Image from 'next/image'; import { useRouter } from 'next/navigation'; import { useAudioPlayer } from '@/app/components/AudioPlayerContext'; import { FullScreenPlayer } from '@/app/components/FullScreenPlayer'; -import { FaPlay, FaPause, FaVolumeHigh, FaForward, FaBackward, FaCompress, FaVolumeXmark, FaExpand } from "react-icons/fa6"; +import { FaPlay, FaPause, FaVolumeHigh, FaForward, FaBackward, FaCompress, FaVolumeXmark, FaExpand, FaShuffle } from "react-icons/fa6"; import { Progress } from '@/components/ui/progress'; import { useToast } from '@/hooks/use-toast'; import { useLastFmScrobbler } from '@/hooks/use-lastfm-scrobbler'; export const AudioPlayer: React.FC = () => { - const { currentTrack, playPreviousTrack, addToQueue, playNextTrack, clearQueue, queue } = useAudioPlayer(); + const { currentTrack, playPreviousTrack, addToQueue, playNextTrack, clearQueue, queue, toggleShuffle, shuffle } = useAudioPlayer(); const router = useRouter(); const audioRef = useRef(null); const preloadAudioRef = useRef(null); @@ -377,8 +377,13 @@ export const AudioPlayer: React.FC = () => {

{currentTrack.name}

{currentTrack.artist}

+ {/* faviorte icon or smthing here */} {/* Control buttons */} +