From: riqo Date: Sun, 8 Nov 2020 22:12:05 +0000 (-0600) Subject: add think animation X-Git-Tag: v0.9~141^2~3 X-Git-Url: https://andrewgundersen.net/repos?a=commitdiff_plain;h=e225fff2647af6e55fd920072a0569d644507f49;p=mime-chat add think animation --- diff --git a/src/background.ts b/src/background.ts index e07342e..e08bc2a 100644 --- a/src/background.ts +++ b/src/background.ts @@ -34,7 +34,7 @@ function createWindow() { // Create the browser window. win = new BrowserWindow({ width: 800, - height: 600, + height: 1200, webPreferences: { // Use pluginOptions.nodeIntegration, leave this alone // See nklayman.github.io/vue-cli-plugin-electron-builder/guide/security.html#node-integration for more info @@ -59,7 +59,10 @@ function createWindow() { recorder.start({ onAudio: (audio: object, speech: boolean) => { if (win) { - win.webContents.send('render-audio', audio) + win.webContents.send('render-audio', { + audio: audio, + speech: speech + }) } if (speech) { // TODO: send audio to crimata BE diff --git a/src/components/AI/index.vue b/src/components/AI/index.vue index 2afa6f1..edcc65f 100644 --- a/src/components/AI/index.vue +++ b/src/components/AI/index.vue @@ -4,12 +4,12 @@ id="radial-gradient" cx="0.5" cy="1" - r="0.54" + :r="radius" gradientTransform="translate(-1.489 1.5) rotate(-90) scale(1 1.989)" gradientUnits="objectBoundingBox" > - + @@ -33,85 +33,80 @@