frontend ui enhacements
This commit is contained in:
parent
8ff21026a5
commit
af47f884d1
13 changed files with 126 additions and 214 deletions
|
|
@ -32,9 +32,18 @@ export default function useInputController() {
|
|||
emitter.emit("user-message", message);
|
||||
}
|
||||
|
||||
const { visualizeStreamAsPaths, expandBubble } = useAudioVisualizer(visualizeStream);
|
||||
const {
|
||||
visualizeStreamAsPaths,
|
||||
expandBubble
|
||||
} = useAudioVisualizer(visualizeStream);
|
||||
|
||||
const { keyDownHandler, input } = useKeyDownHandler(enterCallback);
|
||||
const { textInputXoffset, renderTextInput } = useTextVisualizer(input);
|
||||
|
||||
const {
|
||||
textInputXoffset,
|
||||
textInputYoffset,
|
||||
renderTextInput
|
||||
} = useTextVisualizer(input);
|
||||
|
||||
// stops stream recording on space key up
|
||||
function keyupHandler(e: any) {
|
||||
|
|
@ -83,6 +92,7 @@ export default function useInputController() {
|
|||
input,
|
||||
visualizeStream,
|
||||
textInputXoffset,
|
||||
textInputYoffset,
|
||||
audioBubbleWidth,
|
||||
paths
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue