diff --git a/www/app/lib/time.ts b/www/app/lib/time.ts index 6d8a4e76..28d5d330 100644 --- a/www/app/lib/time.ts +++ b/www/app/lib/time.ts @@ -9,3 +9,18 @@ export const formatTime = (seconds: number): string => { return timeString; }; + +export const formatTimeDifference = (seconds: number): string => { + let hours = Math.floor(seconds / 3600); + let minutes = Math.floor((seconds % 3600) / 60); + let secs = Math.floor(seconds % 60); + + let timeString = + hours > 0 + ? `${hours < 10 ? "\u00A0" : ""}${hours}h ago` + : minutes > 0 + ? `${minutes < 10 ? "\u00A0" : ""}${minutes}m ago` + : `<1m ago`; + + return timeString; +}; diff --git a/www/app/lib/utils.ts b/www/app/lib/utils.ts new file mode 100644 index 00000000..db775f07 --- /dev/null +++ b/www/app/lib/utils.ts @@ -0,0 +1,3 @@ +export function isDevelopment() { + return process.env.NEXT_PUBLIC_ENV === "development"; +} diff --git a/www/app/transcripts/useAudioDevice.ts b/www/app/transcripts/useAudioDevice.ts index 29235e3e..64dd04ed 100644 --- a/www/app/transcripts/useAudioDevice.ts +++ b/www/app/transcripts/useAudioDevice.ts @@ -78,11 +78,23 @@ const useAudioDevice = () => { deviceId: string, ): Promise => { try { + const urlParams = new URLSearchParams(window.location.search); + + const noiseSuppression = urlParams.get("noiseSuppression") === "true"; + const echoCancellation = urlParams.get("echoCancellation") === "true"; + + console.debug( + "noiseSuppression", + noiseSuppression, + "echoCancellation", + echoCancellation, + ); + const stream = await navigator.mediaDevices.getUserMedia({ audio: { deviceId, - noiseSuppression: false, - echoCancellation: false, + noiseSuppression, + echoCancellation, }, }); return stream; diff --git a/www/app/transcripts/webSocketTypes.ts b/www/app/transcripts/webSocketTypes.ts index 4b9358a5..450b3b1c 100644 --- a/www/app/transcripts/webSocketTypes.ts +++ b/www/app/transcripts/webSocketTypes.ts @@ -17,3 +17,8 @@ export type FinalSummary = { export type Status = { value: string; }; + +export type TranslatedTopic = { + text: string; + translation: string; +}; diff --git a/www/public/Monadical-BW-with-name.svg b/www/public/Monadical-BW-with-name.svg new file mode 100644 index 00000000..bef746bd --- /dev/null +++ b/www/public/Monadical-BW-with-name.svg @@ -0,0 +1,323 @@ + + + + + + + + + + + + \ No newline at end of file diff --git a/www/public/Reflector_Logo.svg b/www/public/Reflector_Logo.svg new file mode 100644 index 00000000..953738af --- /dev/null +++ b/www/public/Reflector_Logo.svg @@ -0,0 +1,17 @@ + + + + + + + + + + + + + diff --git a/www/public/monadical-black-white 1.svg b/www/public/monadical-black-white 1.svg new file mode 100644 index 00000000..a2f158c8 --- /dev/null +++ b/www/public/monadical-black-white 1.svg @@ -0,0 +1,9 @@ + + + + + + + + + diff --git a/www/public/monadical_forDark 1.svg b/www/public/monadical_forDark 1.svg new file mode 100644 index 00000000..cd80897d --- /dev/null +++ b/www/public/monadical_forDark 1.svg @@ -0,0 +1,9 @@ + + + + + + + + +