File tree Expand file tree Collapse file tree 4 files changed +12
-11
lines changed Expand file tree Collapse file tree 4 files changed +12
-11
lines changed Original file line number Diff line number Diff line change @@ -375,14 +375,15 @@ class CoderBot {
375
375
return this . $axios . post ( `${ this . CB } /control/stop` ) ;
376
376
}
377
377
378
- speak ( text ) {
378
+ speak ( text , locale ) {
379
379
return this . $axios . post ( `${ this . CB } /control/speak` , {
380
- param1 : text
380
+ text : text ,
381
+ locale : locale
381
382
} ) ;
382
383
}
383
384
384
385
takePhoto ( ) {
385
- return this . $axios . post ( `${ this . CB } /photos ` ) ;
386
+ return this . $axios . post ( `${ this . CB } /media ` ) ;
386
387
}
387
388
388
389
recVideo ( ) {
@@ -398,15 +399,15 @@ class CoderBot {
398
399
}
399
400
400
401
getPhotos ( ) {
401
- return this . $axios . get ( `${ this . CB } /photos ` ) ;
402
+ return this . $axios . get ( `${ this . CB } /media ` ) ;
402
403
}
403
404
404
405
deletePhoto ( name ) {
405
- return this . $axios . delete ( `${ this . CB } /photos ${ name } ` ) ;
406
+ return this . $axios . delete ( `${ this . CB } /media/ ${ name } ` ) ;
406
407
}
407
408
408
409
getPhotoURL ( name ) {
409
- return `${ this . CB } /video/stream ` ;
410
+ return `${ this . CB } /media/ ${ name } ` ;
410
411
}
411
412
412
413
}
Original file line number Diff line number Diff line change 102
102
{{ program.name }}
103
103
</v-list-item-title >
104
104
<template v-slot :prepend >
105
- <v-btn v-if =" program.default != 'True' " @click =" deleteProgramDlg(program.name)" >
105
+ <v-btn v-if =" program.default" @click =" deleteProgramDlg(program.name)" >
106
106
<v-icon icon =" mdi-delete" ></v-icon >
107
107
</v-btn >
108
108
</template >
Original file line number Diff line number Diff line change @@ -136,7 +136,7 @@ export default {
136
136
name: ' Control' ,
137
137
methods: {
138
138
say () {
139
- this .$coderbot .speak (text = this .ttstext )
139
+ this .$coderbot .speak (this .ttstext , this . $i18n . locale )
140
140
.then (() => {
141
141
this .ttsBtnEnabled = false ;
142
142
this .ttsdialog = false ;
Original file line number Diff line number Diff line change 42
42
</a >
43
43
<v-card-actions >
44
44
<v-btn
45
- v-on:click =" photo=photos[n-1]; confirmDeleteDlg=true" text icon color = " red lighten-2 " >
46
- <v-icon > delete</v-icon >
45
+ v-on:click =" photo=photos[n-1]; confirmDeleteDlg=true" >
46
+ <v-icon class = " white--text " icon = " mdi- delete" > </v-icon >
47
47
</v-btn >
48
48
</v-card-actions >
49
49
</v-card >
56
56
{{ photo.name }}
57
57
</v-card-title >
58
58
<v-card-text >
59
- <v-img v-if =" photo.type=='jpg'" height =" 100%" :src =" getPhotoURL(photos[n-1].thumbName )" class =" grey lighten-2" ref =" photo" @click =" getPixelColor" >
59
+ <v-img v-if =" photo.type=='jpg'" height =" 100%" :src =" getPhotoURL(photo.fileName )" class =" grey lighten-2" ref =" photo" @click =" getPixelColor" >
60
60
<template v-slot :placeholder >
61
61
<v-row class =" fill-height ma-0" align =" center" justify =" center" >
62
62
<v-progress-circular indeterminate color =" grey lighten-5" ></v-progress-circular >
You can’t perform that action at this time.
0 commit comments