Skip to content

Commit 2d03288

Browse files
authored
Merge pull request #4 from deanfchung/dean
DELETE ROUTES WHOOO FUCK YA
2 parents a36b22d + 3f4ea66 commit 2d03288

16 files changed

+225
-62
lines changed

quasar.conf.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,9 @@ module.exports = function (ctx) {
5555
'QTabPanels',
5656
'QTabPanel',
5757
'QFab',
58-
'QFabAction'
58+
'QFabAction',
59+
'QUploader',
60+
'QEditor'
5961
],
6062

6163
directives: [

src/components/CodeSnippet.vue

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<template>
2+
<div class="snip">
3+
<q-editor
4+
v-model="editor"
5+
:definitions="{
6+
bold: {label: 'Bold', icon: null, tip: 'My bold tooltip'}
7+
}"
8+
/>
9+
</div>
10+
</template>
11+
12+
<script>
13+
export default {
14+
data () {
15+
return {
16+
editor: 'Here we are overriding the <b>bold</b> command to include a label instead of an icon and also changing its tooltip.'
17+
}
18+
}
19+
}
20+
</script>
21+
22+
<style>
23+
.snip{
24+
height: 150px;
25+
}
26+
</style>

src/components/CreateComponent.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
import Icons from './Icons'
2727
import ParentMultiselect from '../components/ParentMultiselect'
2828
import { mapState, mapActions } from 'vuex'
29-
// import * as types from '../store/types.js'
3029
3130
export default {
3231
name: 'HomeSidebar',

src/components/Footer.vue

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,10 @@
2222

2323
<q-tab-panels v-model="tab" animated class="bg-primary text-white">
2424
<q-tab-panel name="code">
25-
<div class="text-h6">Code Snippet</div>Code Snippet Component Here
26-
<br />asdfadsfasdf
2725
</q-tab-panel>
2826

2927
<q-tab-panel name="tree">
30-
<div class="text-h6">Tree</div>Tree Component Here
28+
<Tree />
3129
</q-tab-panel>
3230

3331
<q-tab-panel name="html">
@@ -39,7 +37,14 @@
3937
</template>
4038

4139
<script>
40+
import Tree from './Tree'
41+
// import CodeSnippet from './CodeSnippet'
42+
4243
export default {
44+
components: {
45+
Tree
46+
// CodeSnippet
47+
},
4348
data () {
4449
return {
4550
tab: 'code',
@@ -66,12 +71,12 @@ export default {
6671
}
6772
6873
.q-tab-panel {
69-
background: #454d66;
74+
background: rgb(69,77,102);
75+
background: linear-gradient(180deg, rgba(69,77,102,1) 0%, rgba(54,60,78,1) 100%);
7076
}
7177
7278
.q-tab-panels {
73-
background: yellow;
74-
height: 100%;
79+
height: 24vh;
7580
}
7681
7782
.q-tabs {

src/components/FooterTabView.vue

Lines changed: 0 additions & 48 deletions
This file was deleted.

src/components/HomeSideDropDown.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,5 +137,4 @@ export default {
137137
.input-container {
138138
margin-top: 1rem;
139139
}
140-
141140
</style>

src/components/ParentMultiselect.vue

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<div id="parent-select">
33
<br />
44
<multiselect
5-
placeholder="Choose Parent (if applicable)"
5+
placeholder="Parent Component"
66
:multiple="false"
77
:close-on-select="true"
88
:options="options"
@@ -52,5 +52,9 @@ export default {
5252

5353
<style src="vue-multiselect/dist/vue-multiselect.min.css"></style>
5454
<style scoped>
55-
55+
#parent-select{
56+
height: 30px;
57+
margin: 0.75rem;
58+
width: 90%;
59+
}
5660
</style>

src/components/RouteDisplay.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,13 @@ export default {
3636
}
3737
},
3838
methods: {
39-
...mapActions(['addRouteToRouteMap']),
39+
...mapActions(['addRouteToRouteMap', 'setRoutes']),
4040
handleEnterKeyPress () {
4141
this.addRouteToRouteMap(this.newRoute)
4242
.then(() => {
4343
this.newRoute = ''
4444
})
45+
4546
.catch(err => console.log(err))
4647
}
4748
}

src/components/Routes.vue

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
v-for="route in Object.keys(routes)"
77
:key="route"
88
@click="handleClick(route)"
9+
v-on:keyup.delete="deleteSelectedRoute(route)"
910
>
1011
<!--
1112
<span class="panel-icon">
@@ -34,9 +35,13 @@ export default {
3435
...mapState(['routes', 'activeRoute'])
3536
},
3637
methods: {
37-
...mapActions(['setActiveRoute']),
38+
...mapActions(['setActiveRoute', 'deleteRoute']),
3839
handleClick (route) {
3940
this.setActiveRoute(route)
41+
},
42+
deleteSelectedRoute (route) {
43+
this.deleteRoute(route)
44+
this.setActiveRoute('')
4045
}
4146
}
4247
}
@@ -45,5 +50,7 @@ export default {
4550
<style scoped>
4651
.route-view {
4752
margin: 1rem;
53+
display: flex;
54+
flex-direction: column;
4855
}
4956
</style>

src/components/Toolbar.vue

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<template>
2+
<div class="home-sidebar">
3+
<q-btn-group>
4+
<q-btn color="secondary" icon="timeline" />
5+
<q-btn color="secondary" icon="visibility" />
6+
<q-btn color="secondary" icon="update" />
7+
</q-btn-group>
8+
</div>
9+
</template>
10+
11+
<style>
12+
.home-sidebar {
13+
margin: 1rem;
14+
border-radius: 5px;
15+
}
16+
</style>

0 commit comments

Comments
 (0)