33
33
<v-card >
34
34
<v-form class =" cardContent" >
35
35
<v-text-field v-model =" activity.name" label =" Nome" required ></v-text-field >
36
- <v-text-field v-model =" activity.description" v-bind:label =" $t('message.activity_description')" ></v-text-field >
37
- <v-select v-model =" defaultView" :items =" viste" v-bind:label =" $t('message.activity_predefined_view')" required ></v-select >
36
+ <v-text-field v-model =" activity.description" v-bind:label =" $t('message.activity_description')" >
37
+ </v-text-field >
38
+ <v-select v-model =" defaultView" :items =" viste"
39
+ v-bind:label =" $t('message.activity_predefined_view')" required ></v-select >
38
40
</v-form >
39
41
</v-card >
40
42
<br ><br >
44
46
<!--
45
47
<v-select :items="fontSizeLabels" v-model="activity.fontSize" label="Grandezza testo"></v-select>
46
48
-->
47
- <v-switch v-bind:label =" $t('message.activity_caps_only')" v-model =" activity.capsSwitch" ></v-switch >
49
+ <v-switch v-bind:label =" $t('message.activity_caps_only')" v-model =" activity.capsSwitch" >
50
+ </v-switch >
48
51
<!--
49
52
<v-layout row wrap>
50
53
<v-flex>
94
97
</v-card>
95
98
<br><br>
96
99
-->
97
- <h3 class =" text-xs-left" >{{ $t("message.activity_programing_title") }}</h3 >
98
- <v-card >
99
- <div class =" cardContent" >
100
- <v-layout row wrap >
100
+ <h3 class =" text-xs-left" >{{ $t("message.activity_programing_title") }}</h3 >
101
+ <v-card >
102
+ <div class =" cardContent" >
103
+ <v-layout row wrap >
101
104
<!--
102
105
<v-flex>
103
106
<v-checkbox v-model="activity.availableViews" label="Programmazione a Blocchi" value="blockly"></v-checkbox>
112
115
<v-switch v-model="activity.viewSource" label="Permetti di visualizzare il codice generato"></v-switch>
113
116
</v-flex>
114
117
-->
115
- <v-flex >
116
- <v-text-field v-model =" activity.maxBlocks" v-bind:label =" $t('message.activity_blocks_max_blocks')" ></v-text-field >
117
- </v-flex >
118
- </v-layout >
119
- </div >
120
- </v-card >
118
+ <v-flex >
119
+ <v-checkbox v-model =" activity.autoRecVideo"
120
+ v-bind:label =" $t('message.activity_auto_rec_video')" ></v-checkbox >
121
+ </v-flex >
122
+ <v-flex >
123
+ <v-text-field v-model =" activity.maxBlocks"
124
+ v-bind:label =" $t('message.activity_blocks_max_blocks')" ></v-text-field >
125
+ </v-flex >
126
+ </v-layout >
127
+ </div >
128
+ </v-card >
121
129
<!--
122
130
<h3 class="text-xs-left">Funzionalità sperimentali</h3>
123
131
<v-card>
147
155
<h3 > {{ $t("message.activity_toolbar_preview") }} </h3 >
148
156
<v-app-bar >
149
157
<v-app-bar-nav-icon v-if =" activity.drawerEnabled" ></v-app-bar-nav-icon >
150
- <v-app-bar-title v-if =" activity.showName" >{{ activity.name || $t("message.activity_name")}}</v-app-bar-title >
158
+ <v-app-bar-title v-if =" activity.showName" >{{ activity.name || $t("message.activity_name")}}
159
+ </v-app-bar-title >
151
160
<v-spacer ></v-spacer >
152
161
<template v-for =" button in activity .buttons " >
153
162
<v-btn style =" height : 70% " :color =" button.colorBtn" :class =" button.colorText" >
158
167
</template >
159
168
</v-app-bar >
160
169
<br >
161
- <v-switch v-bind:label =" $t('message.activity_lateral_menu_icon')" v-model =" activity.drawerEnabled" ></v-switch >
170
+ <v-switch v-bind:label =" $t('message.activity_lateral_menu_icon')" v-model =" activity.drawerEnabled" >
171
+ </v-switch >
162
172
<v-switch v-bind:label =" $t('message.activity_name')" v-model =" activity.showName" ></v-switch >
163
173
<br >
164
174
<h3 > {{ $t("message.activity_toolbar_buttons") }} </h3 >
186
196
<v-select v-model =" button.action" :items =" actions" v-bind:label =" $t('message.activity_action')"
187
197
:disabled =" button.notErasable" >
188
198
</v-select >
189
- <v-select :items =" textColors" v-model =" button.colorText" v-bind:label =" $t('message.activity_text_color')" ></v-select >
199
+ <v-select :items =" textColors" v-model =" button.colorText"
200
+ v-bind:label =" $t('message.activity_text_color')" ></v-select >
190
201
<v-layout row wrap >
191
202
<v-flex xs4 style =" text-align : left " >
192
203
<span style =" vertical-align : 55% " > {{ $t("message.activity_toolbar_buttons_color") }}
248
259
<h3 class =" text-xs-left" >{{ $t("message.activity_views_title") }}</h3 >
249
260
<v-card >
250
261
<v-form class =" cardContent" >
251
- <v-switch v-bind:label =' $t("message.activity_views_runtime_camera")' v-model =" activity.exec.camera" ></v-switch >
252
- <v-switch v-bind:label =' $t("message.activity_views_runtime_log")' v-model =" activity.exec.log" ></v-switch >
262
+ <v-switch v-bind:label =' $t("message.activity_views_runtime_camera")'
263
+ v-model =" activity.exec.camera" ></v-switch >
264
+ <v-switch v-bind:label =' $t("message.activity_views_runtime_log")' v-model =" activity.exec.log" >
265
+ </v-switch >
253
266
</v-form >
254
267
</v-card >
255
268
</v-flex >
@@ -376,11 +389,15 @@ export default {
376
389
capsSwitch: true ,
377
390
bodyFont: ' Roboto' ,
378
391
codeFont: ' ubuntumono' ,
379
- maxBlocks: - 1 ,
392
+ maxBlocks: 0 ,
380
393
availableViews: [],
381
394
viewSource: null ,
395
+ autoRecVideo: null ,
382
396
},
383
- colors: [' red' , ' pink' , ' purple' , ' yellow' , ' deep-purple' , ' indigo' , ' blue' , ' light-blue' , ' cyan' , ' teal' , ' green' , ' light-green' , ' lime' , ' yellow' , ' amber' , ' orange' , ' deep-orange' , ' brown' , ' blue-grey' , ' black' , ' grey' , ' black' , ' white' ],
397
+ colors: [' red' , ' pink' , ' purple' , ' yellow' , ' deep-purple' , ' indigo' , ' blue' , ' light-blue' , ' cyan' , ' teal' ,
398
+ ' green' , ' light-green' , ' lime' , ' yellow' , ' amber' , ' orange' , ' deep-orange' , ' brown' , ' blue-grey' , ' black' ,
399
+ ' grey' , ' black' , ' white'
400
+ ],
384
401
textColors: [
385
402
{
386
403
text: ' Bianco' ,
@@ -394,7 +411,7 @@ export default {
394
411
actions: [
395
412
{
396
413
text: this .$i18n .t (' message.activity_program_run' ),
397
- value: ' runProgramLegacy '
414
+ value: ' runProgram '
398
415
},
399
416
{
400
417
text: this .$i18n .t (' message.activity_program_save' ),
@@ -527,16 +544,14 @@ export default {
527
544
this .activity .buttons .splice (index, 1 );
528
545
},
529
546
removeAll () {
530
- this .activity .buttons = [
531
- {
532
- label: this .$i18n .t (' message.activity_program_run' ),
533
- icon: ' play_arrow' ,
534
- colorBtn: ' green' ,
535
- colorText: ' white--text' ,
536
- action: ' runProgramLegacy' ,
537
- notErasable: true
538
- },
539
- ];
547
+ this .activity .buttons = [{
548
+ label: this .$i18n .t (' message.activity_program_run' ),
549
+ icon: ' play_arrow' ,
550
+ colorBtn: ' green' ,
551
+ colorText: ' white--text' ,
552
+ action: ' runProgram' ,
553
+ notErasable: true
554
+ }];
540
555
},
541
556
restoreDefaults () {
542
557
this .activity .buttons = [
@@ -545,7 +560,7 @@ export default {
545
560
icon: ' play_arrow' ,
546
561
colorBtn: ' green' ,
547
562
colorText: ' white--text' ,
548
- action: ' runProgramLegacy ' ,
563
+ action: ' runProgram ' ,
549
564
notErasable: true ,
550
565
},
551
566
{
@@ -562,15 +577,14 @@ export default {
562
577
</script >
563
578
<!-- Add "scoped" attribute to limit CSS to this component only -->
564
579
<style scoped>
565
- .rounded1 {
566
- border-radius: 25px;
567
- border: 2px solid #73AD21;
568
- padding: 20px;
569
- width: 100px;
570
- }
571
-
572
- .cardContent {
573
- padding: 16px;
574
- }
580
+ .rounded1 {
581
+ border-radius: 25px;
582
+ border: 2px solid #73AD21;
583
+ padding: 20px;
584
+ width: 100px;
585
+ }
575
586
587
+ .cardContent {
588
+ padding: 16px;
589
+ }
576
590
</style>
0 commit comments