From ecac53516e8f05a174b63c800b0dc778ec710a08 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Le=20Bihan?= Date: Fri, 24 Nov 2023 00:23:36 +0100 Subject: [PATCH] init branch --- front/Dockerfile.buildandroid | 16 ++++++++++++++++ front/components/CardGridCustom.tsx | 1 + front/components/SongCardGrid.tsx | 1 + front/components/UI/MusicList.tsx | 1 + front/components/UI/ScaffoldAuth.tsx | 2 +- front/components/UI/TextFieldBase.tsx | 4 ++-- front/eas.json | 8 ++++---- front/views/PlayView.tsx | 20 ++++++++++---------- 8 files changed, 36 insertions(+), 17 deletions(-) create mode 100644 front/Dockerfile.buildandroid diff --git a/front/Dockerfile.buildandroid b/front/Dockerfile.buildandroid new file mode 100644 index 0000000..49ad57a --- /dev/null +++ b/front/Dockerfile.buildandroid @@ -0,0 +1,16 @@ +FROM ubuntu:22.04 as buildandroid + +# Install dependencies (yarn, nodejs, git, etc.) +RUN apt-get update && apt-get install -y \ + curl \ + git \ + gnupg \ + unzip \ + zip \ + && rm -rf /var/lib/apt/lists/* + +RUN curl -sL https://deb.nodesource.com/setup_16.x | bash - + +RUN npm install -g expo-cli +RUN eas login --non-interactive --username $EAS_USERNAME --password $EAS_PASSWORD +RUN eas:configure -p android \ No newline at end of file diff --git a/front/components/CardGridCustom.tsx b/front/components/CardGridCustom.tsx index bdb2aa4..5690c1b 100644 --- a/front/components/CardGridCustom.tsx +++ b/front/components/CardGridCustom.tsx @@ -17,6 +17,7 @@ const CardGridCustom = >(props: CardGridCustom {heading && {heading}} { {props.heading} = ({ > 4, - channel: message.data.at(0)! & 0xf, - note: message.data.at(1)!, - velocity: message.data.at(2)! / 127, - }; -} +// function parseMidiMessage(message: MIDIMessageEvent) { +// return { +// command: message.data.at(0)! >> 4, +// channel: message.data.at(0)! & 0xf, +// note: message.data.at(1)!, +// velocity: message.data.at(2)! / 127, +// }; +// } //create a context with an array of number export const PianoCC = createContext({ @@ -300,7 +300,7 @@ const PlayView = ({ songId, route }: RouteProps) => { return; } if (song.data && !webSocket.current && partitionRendered) { - requestMIDIAccess().then(onMIDISuccess).catch(onMIDIFailure); + // requestMIDIAccess().then(onMIDISuccess).catch(onMIDIFailure); } }, [song.data, partitionRendered]);