Skip to content

Commit

Permalink
Fix listening
Browse files Browse the repository at this point in the history
This was broken in the refactor
  • Loading branch information
MatthijsBurgh committed Dec 16, 2020
1 parent e4128be commit 0e64221
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 11 deletions.
26 changes: 26 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@
},
"main": "background.js",
"dependencies": {
"@fortawesome/fontawesome-svg-core": "^1.2.32",
"@fortawesome/free-solid-svg-icons": "^5.15.1",
"@fortawesome/vue-fontawesome": "^2.0.0",
"auto-ros": "^0.1.1",
"hero-vue": "^0.3.0",
"jpeg-js": "^0.4.2",
Expand Down
36 changes: 25 additions & 11 deletions src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,17 @@
v-if="hmiGoalActive"
id="hmiGoalActive"
>
<div>
<v-icon
<div id="mic_spinner">
<font-awesome-icon
id="mic"
name="microphone"
scale="20"
icon="microphone"
class="fa-icon"
/>
<v-icon
<font-awesome-icon
id="spinner"
name="spinner"
scale="20"
icon="spinner"
pulse
class="fa-icon"
/>
</div>
<small id="hmiGoalActiveText">I'm listening ...</small>
Expand Down Expand Up @@ -80,6 +80,12 @@ import { Battery } from 'hero-vue'
import ROSLIB from 'roslib'
import jpeg from 'jpeg-js'
import { library } from '@fortawesome/fontawesome-svg-core'
import { faMicrophone, faSpinner } from '@fortawesome/free-solid-svg-icons'
import { FontAwesomeIcon } from '@fortawesome/vue-fontawesome'
library.add(faMicrophone)
library.add(faSpinner)
const { ArrayBuffer, Buffer, Uint8Array } = require('buffer')
function imageToBase64JpegString (msg) {
Expand Down Expand Up @@ -114,7 +120,8 @@ function imageToBase64JpegString (msg) {
export default {
name: 'HeroDisplay',
components: {
Battery
Battery,
'font-awesome-icon': FontAwesomeIcon
},
data () {
return {
Expand Down Expand Up @@ -231,8 +238,18 @@ export default {
justify-content: center;
align-items: center;
}
#mic_spinner svg {
height: 320px;
vertical-align: -0.125em;
font-size: 20em;
}
#mic {
color: #067340;
width: 240px;
}
#spinner {
color: #df9101;
width: 340px;
}
#image {
width: 100%;
Expand All @@ -241,9 +258,6 @@ export default {
background-repeat: no-repeat;
background-position: center; /* Center the image */
}
#spinner {
color: #df9101;
}
body {
background-color: #171717;
width: 1024px;
Expand Down

0 comments on commit 0e64221

Please sign in to comment.