@@ -13,12 +13,6 @@ Description:
13
13
<!-- the top header of OverVue -->
14
14
<q-header elevated class =" gradient text-white" >
15
15
<q-toolbar >
16
- <!-- <q-btn dense flat color="subaccent" round @click="left = !left">
17
- <i
18
- :class="[left ? 'fas fa-chevron-left' : 'fas fa-list-ul']"
19
- id="btn"
20
- ></i>
21
- </q-btn> -->
22
16
<q-toolbar-title ><img alt =" OverVue" src =" ../assets/OverVue_navLogo.png" id =" nav-logo" ><div id =" undo-redo" >
23
17
<q-btn >
24
18
<i
@@ -44,28 +38,8 @@ Description:
44
38
<i v-else class =" fa fa-redo" id =" unavailable" aria-hidden =" true" ></i >
45
39
</q-btn >
46
40
</div ></q-toolbar-title >
47
- <!-- <SlackLoginWindow /> -->
48
41
<div ></div >
49
- <!-- <i
50
- v-if="doneAction.length"
51
- class="fa fa-backward"
52
- aria-hidden="true"
53
- @click="undo"
54
- ></i>
55
- <i
56
- v-else
57
- class="fa fa-backward"
58
- id="unavailable"
59
- aria-hidden="true"
60
- ></i>
61
- <i
62
- v-if="undoneAction.length"
63
- class="fa fa-forward"
64
- aria-hidden="true"
65
- @click="redo"
66
- ></i>
67
- <i v-else class="fa fa-forward" id="unavailable" aria-hidden="true"></i> -->
68
-
42
+
69
43
<SaveProjectComponent />
70
44
<OpenProjectComponent />
71
45
<ExportProjectComponent />
@@ -80,41 +54,15 @@ Description:
80
54
color =" secondary"
81
55
label =" Getting Started"
82
56
no-caps
57
+ @click = " this.toggleTutorial"
83
58
/>
84
59
85
- <q-btn
86
- class =" menu-btn"
87
- color =" secondary"
88
- no-caps
89
- >
90
- <svg
91
- xmlns =" http://www.w3.org/2000/svg"
92
- style =" height : 20px ; width : 20px ; margin-right : 12px "
93
- viewBox =" 0 0 122.8 122.8"
94
- >
95
- <path
96
- d =" M25.8 77.6c0 7.1-5.8 12.9-12.9 12.9S0 84.7 0 77.6s5.8-12.9 12.9-12.9h12.9v12.9zm6.5 0c0-7.1 5.8-12.9 12.9-12.9s12.9 5.8 12.9 12.9v32.3c0 7.1-5.8 12.9-12.9 12.9s-12.9-5.8-12.9-12.9V77.6z"
97
- fill =" #e01e5a"
98
- ></path >
99
- <path
100
- d =" M45.2 25.8c-7.1 0-12.9-5.8-12.9-12.9S38.1 0 45.2 0s12.9 5.8 12.9 12.9v12.9H45.2zm0 6.5c7.1 0 12.9 5.8 12.9 12.9s-5.8 12.9-12.9 12.9H12.9C5.8 58.1 0 52.3 0 45.2s5.8-12.9 12.9-12.9h32.3z"
101
- fill =" #36c5f0"
102
- ></path >
103
- <path
104
- d =" M97 45.2c0-7.1 5.8-12.9 12.9-12.9s12.9 5.8 12.9 12.9-5.8 12.9-12.9 12.9H97V45.2zm-6.5 0c0 7.1-5.8 12.9-12.9 12.9s-12.9-5.8-12.9-12.9V12.9C64.7 5.8 70.5 0 77.6 0s12.9 5.8 12.9 12.9v32.3z"
105
- fill =" #2eb67d"
106
- ></path >
107
- <path
108
- d =" M77.6 97c7.1 0 12.9 5.8 12.9 12.9s-5.8 12.9-12.9 12.9-12.9-5.8-12.9-12.9V97h12.9zm0-6.5c-7.1 0-12.9-5.8-12.9-12.9s5.8-12.9 12.9-12.9h32.3c7.1 0 12.9 5.8 12.9 12.9s-5.8 12.9-12.9 12.9H77.6z"
109
- fill =" #ecb22e"
110
- ></path >
111
- </svg >
112
- Connect to Slack
113
- </q-btn >
114
- <div >
115
- <label for =" typescript" class =" switch" >
60
+ <SlackLoginWindow />
61
+ <div class =" typescript" >
62
+ <p > <b >TypeScript: </b > </p >
63
+ <label for =" typescript" class =" switch" >
116
64
<input class =" switch-input" type =" checkbox" name =" typescript" id =" typescript" :value =" exportAsTypescript" @change =" syncTypescriptFlag" />
117
- <span class =" switch-label" data-on =" TypeScript " data-off =" JavaScript " ></span >
65
+ <span class =" switch-label" data-on =" On " data-off =" Off " ></span >
118
66
<span class =" switch-handle" ></span >
119
67
</label >
120
68
</div >
@@ -203,7 +151,7 @@ import OpenProjectComponent from "../components/file_system_interface/OpenProjec
203
151
import SlackLoginWindow from " ../components/slack_login/SlackLoginWindow.vue" ;
204
152
import ComponentTab from " ../components/home_sidebar_items/ComponentTab/ComponentTab.vue" ;
205
153
import StoreTab from " ../components/home_sidebar_items/StoreTab/StoreTab.vue" ;
206
- import { mapState } from " vuex" ;
154
+ import { mapState , mapActions } from " vuex" ;
207
155
208
156
export default {
209
157
// Passed down from App.vue
@@ -213,7 +161,7 @@ export default {
213
161
tab: " component" ,
214
162
left: true ,
215
163
right: true ,
216
- dashWidth: 950 ,
164
+ dashWidth: 650 ,
217
165
originalWidth: 400 ,
218
166
originalLeft: 400 ,
219
167
timer: null ,
@@ -229,9 +177,10 @@ export default {
229
177
StoreTab,
230
178
},
231
179
computed: {
232
- ... mapState ([" exportAsTypescript" , " toggleTutorial " ]),
180
+ ... mapState ([" exportAsTypescript" ]),
233
181
},
234
182
methods: {
183
+ ... mapActions ([" toggleTutorial" ]),
235
184
hideRight () {
236
185
this .right = ! this .right ;
237
186
if (this .$refs .resizeBox .style .display === " none" ) {
@@ -482,7 +431,7 @@ background: #5c5e61;
482
431
position : relative ;
483
432
display : block ;
484
433
vertical-align : top ;
485
- width : 100 px ;
434
+ width : 100 % ;
486
435
height : 30px ;
487
436
padding : 3px ;
488
437
margin : 0 10px 10px 0 ;
@@ -504,7 +453,7 @@ background: #5c5e61;
504
453
position : relative ;
505
454
display : block ;
506
455
height : inherit ;
507
- font-size : 10 px ;
456
+ font-size : 0.8 rem ;
508
457
text-transform : uppercase ;
509
458
background : #eceeef ;
510
459
border-radius : inherit ;
@@ -536,7 +485,7 @@ background: #5c5e61;
536
485
opacity : 0 ;
537
486
}
538
487
.switch-input :checked ~ .switch-label {
539
- background : #289ead ;
488
+ background : #42B883 ;
540
489
box-shadow : inset 0 1px 2px rgba (0 , 0 , 0 , 0.15 ), inset 0 0 3px rgba (0 , 0 , 0 , 0.2 );
541
490
}
542
491
.switch-input :checked ~ .switch-label :before {
@@ -563,14 +512,14 @@ background: #5c5e61;
563
512
left : 50% ;
564
513
margin : -6px 0 0 -6px ;
565
514
width : 12px ;
566
- height : 12px ;
515
+ height : 12px ;
567
516
background : linear-gradient (to bottom , #eeeeee , #FFFFFF );
568
517
background-image : -webkit-linear-gradient (top , #eeeeee , #FFFFFF );
569
518
border-radius : 6px ;
570
519
box-shadow : inset 0 1px rgba (0 , 0 , 0 , 0.02 );
571
520
}
572
521
.switch-input :checked ~ .switch-handle {
573
- left : 74 px ;
522
+ left : 56 % ;
574
523
box-shadow : -1px 1px 5px rgba (0 , 0 , 0 , 0.2 );
575
524
}
576
525
@@ -582,4 +531,11 @@ background: #5c5e61;
582
531
-moz-transition : All 0.3s ease ;
583
532
-o-transition : All 0.3s ease ;
584
533
}
534
+ .typescript {
535
+ display : flex ;
536
+ justify-content : space-around ;
537
+ align-items : flex-end ;
538
+ width : 90% ;
539
+ flex-direction : row ;
540
+ }
585
541
</style >
0 commit comments