@@ -13,12 +13,6 @@ Description:
1313 <!-- the top header of OverVue -->
1414 <q-header elevated class =" gradient text-white" >
1515 <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> -->
2216 <q-toolbar-title ><img alt =" OverVue" src =" ../assets/OverVue_navLogo.png" id =" nav-logo" ><div id =" undo-redo" >
2317 <q-btn >
2418 <i
@@ -44,28 +38,8 @@ Description:
4438 <i v-else class =" fa fa-redo" id =" unavailable" aria-hidden =" true" ></i >
4539 </q-btn >
4640 </div ></q-toolbar-title >
47- <!-- <SlackLoginWindow /> -->
4841 <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+
6943 <SaveProjectComponent />
7044 <OpenProjectComponent />
7145 <ExportProjectComponent />
@@ -80,41 +54,15 @@ Description:
8054 color =" secondary"
8155 label =" Getting Started"
8256 no-caps
57+ @click = " this.toggleTutorial"
8358 />
8459
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" >
11664 <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 >
11866 <span class =" switch-handle" ></span >
11967 </label >
12068 </div >
@@ -203,7 +151,7 @@ import OpenProjectComponent from "../components/file_system_interface/OpenProjec
203151import SlackLoginWindow from " ../components/slack_login/SlackLoginWindow.vue" ;
204152import ComponentTab from " ../components/home_sidebar_items/ComponentTab/ComponentTab.vue" ;
205153import StoreTab from " ../components/home_sidebar_items/StoreTab/StoreTab.vue" ;
206- import { mapState } from " vuex" ;
154+ import { mapState , mapActions } from " vuex" ;
207155
208156export default {
209157 // Passed down from App.vue
@@ -213,7 +161,7 @@ export default {
213161 tab: " component" ,
214162 left: true ,
215163 right: true ,
216- dashWidth: 950 ,
164+ dashWidth: 650 ,
217165 originalWidth: 400 ,
218166 originalLeft: 400 ,
219167 timer: null ,
@@ -229,9 +177,10 @@ export default {
229177 StoreTab,
230178 },
231179 computed: {
232- ... mapState ([" exportAsTypescript" , " toggleTutorial " ]),
180+ ... mapState ([" exportAsTypescript" ]),
233181 },
234182 methods: {
183+ ... mapActions ([" toggleTutorial" ]),
235184 hideRight () {
236185 this .right = ! this .right ;
237186 if (this .$refs .resizeBox .style .display === " none" ) {
@@ -482,7 +431,7 @@ background: #5c5e61;
482431 position : relative ;
483432 display : block ;
484433 vertical-align : top ;
485- width : 100 px ;
434+ width : 100 % ;
486435 height : 30px ;
487436 padding : 3px ;
488437 margin : 0 10px 10px 0 ;
@@ -504,7 +453,7 @@ background: #5c5e61;
504453 position : relative ;
505454 display : block ;
506455 height : inherit ;
507- font-size : 10 px ;
456+ font-size : 0.8 rem ;
508457 text-transform : uppercase ;
509458 background : #eceeef ;
510459 border-radius : inherit ;
@@ -536,7 +485,7 @@ background: #5c5e61;
536485 opacity : 0 ;
537486}
538487.switch-input :checked ~ .switch-label {
539- background : #289ead ;
488+ background : #42B883 ;
540489 box-shadow : inset 0 1px 2px rgba (0 , 0 , 0 , 0.15 ), inset 0 0 3px rgba (0 , 0 , 0 , 0.2 );
541490}
542491.switch-input :checked ~ .switch-label :before {
@@ -563,14 +512,14 @@ background: #5c5e61;
563512 left : 50% ;
564513 margin : -6px 0 0 -6px ;
565514 width : 12px ;
566- height : 12px ;
515+ height : 12px ;
567516 background : linear-gradient (to bottom , #eeeeee , #FFFFFF );
568517 background-image : -webkit-linear-gradient (top , #eeeeee , #FFFFFF );
569518 border-radius : 6px ;
570519 box-shadow : inset 0 1px rgba (0 , 0 , 0 , 0.02 );
571520}
572521.switch-input :checked ~ .switch-handle {
573- left : 74 px ;
522+ left : 56 % ;
574523 box-shadow : -1px 1px 5px rgba (0 , 0 , 0 , 0.2 );
575524}
576525
@@ -582,4 +531,11 @@ background: #5c5e61;
582531 -moz-transition : All 0.3s ease ;
583532 -o-transition : All 0.3s ease ;
584533}
534+ .typescript {
535+ display : flex ;
536+ justify-content : space-around ;
537+ align-items : flex-end ;
538+ width : 90% ;
539+ flex-direction : row ;
540+ }
585541 </style >
0 commit comments