Skip to content

Commit a7cb32e

Browse files
committed
changed footer component deets to vuex
1 parent 33820c8 commit a7cb32e

File tree

9 files changed

+72
-28
lines changed

9 files changed

+72
-28
lines changed

quasar.conf.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,15 +86,15 @@ module.exports = function (ctx) {
8686
// analyze: true,
8787
// extractCSS: false,
8888
extendWebpack (cfg) {
89-
// cfg.module.rules.push({
89+
cfg.module.rules.push({
9090
// enforce: 'pre',
9191
// test: /\.(js|vue)$/,
9292
// loader: 'eslint-loader',
9393
// exclude: /node_modules/,
9494
// options: {
9595
// formatter: require('eslint').CLIEngine.getFormatter('stylish')
9696
// }
97-
// })
97+
})
9898
}
9999
},
100100

src/components/CodeSnippet.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
language="js"
88
:line-numbers="lineNumbers"
99
class="code-editor"
10-
:style="{ height: `${height}vh` }"
10+
:style="{ height: `${height}vh`}"
11+
readonly="true"
1112
/>
1213
</div>
1314
</template>
@@ -121,5 +122,6 @@ export default {
121122
<style lang="stylus" scoped>
122123
// resize handled by vue lifecycle methods
123124
.code-editor {
125+
font-size: 11px;
124126
}
125127
</style>

src/components/ComponentDisplay.vue

Lines changed: 35 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
v-for="componentData in activeRouteArray"
66
:key="componentData.componentName"
77
:x="componentData.x"
8-
:y="componentData.y"
8+
:y="componentData.y + 20"
99
:w="componentData.w"
1010
:h="componentData.h"
1111
:parent="true"
@@ -15,7 +15,14 @@
1515
@resizing="onResize"
1616
@dblclick.native="onDoubleClick(componentData)"
1717
>
18-
<h3>{{ componentData.componentName }}</h3>
18+
<div class="component-title">
19+
<p>{{ componentData.componentName }}</p>
20+
</div>
21+
<div class="component-children">
22+
<p># of children: {{ componentMap[componentData.componentName].children.length }} </p>
23+
<p>children: {{ componentMap[componentData.componentName].children }}</p>
24+
<!-- <p v-for="child in childList" :key="childList.indexOf(child)"> {{ child.text }}</p> -->
25+
</div>
1926
<q-menu context-menu>
2027
<q-list>
2128
<q-item clickable v-ripple v-close-popup @click="handleAddChild">
@@ -80,16 +87,18 @@ export default {
8087
...mapState(['routes', 'activeRoute', 'activeComponent', 'componentMap', 'componentChildrenMultiselectValue']),
8188
// used in VueDraggableResizeable component
8289
activeRouteArray () {
83-
// console.log('active route array method', this.routes[this.activeRoute])
90+
console.log('active route array method', this.routes[this.activeRoute])
8491
return this.routes[this.activeRoute]
8592
},
8693
// used to delete components
8794
activeComponentData () {
88-
// find out what this does
8995
return this.activeRouteArray.filter(componentData => {
9096
return componentData.componentName === this.activeComponent
9197
})[0]
9298
},
99+
childList () {
100+
return this.componentMap[componentData.componentName].children
101+
},
93102
options () {
94103
// PROBLEM: the objects on childrenmultiselectvalue are applied
95104
const routes = Object.keys(this.routes)
@@ -153,6 +162,24 @@ export default {
153162
</script>
154163

155164
<style scoped>
165+
.component-title {
166+
position: relative;
167+
font-size: 16px;
168+
top: -18px;
169+
left: 2px;
170+
color: black;
171+
font-weight: 800;
172+
/* background: rgba(0, 0, 0, 0.678); */
173+
/* width: 1rem; */
174+
line-height: 1.2;
175+
/* margin: 10px; */
176+
}
177+
.component-children {
178+
position: absolute;
179+
top: 0rem;
180+
left: 2px;
181+
color: black;
182+
}
156183
.component-display {
157184
/* border: 3px dashed rgb(159, 122, 122); */
158185
/* height: 500px; */
@@ -187,13 +214,16 @@ export default {
187214
#269;
188215
behavior: url(/pie/PIE.htc);
189216
}
190-
191217
.component-box {
192218
color: white;
193219
border: 1px dashed rgb(227, 203, 71);
194220
background-color: rgba(186, 99, 99, 0.529);
221+
-webkit-transition: background-color 200ms linear;
222+
-ms-transition: background-color 200ms linear;
223+
transition: background-color 200ms linear;
195224
}
196225
.active {
197226
background-color: rgba(57, 63, 84, 0.5);
227+
border: 1px dashed rgb(227, 203, 71);
198228
}
199229
</style>

src/components/ExportProject.vue

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template>
2-
<q-btn class="glossy" color="teal" label="Export Project" @click="exportProject"/>
2+
<q-btn class=" export-btn" color="secondary" label="Export Project" @click="exportProject"/>
33
</template>
44

55
<script>
@@ -10,7 +10,7 @@
1010
// import path from "path";
1111
// const ipc = require("electron").ipcRenderer;
1212
export default {
13-
name: "ExportProjectComponent",
13+
name: 'ExportProjectComponent'
1414
}
1515
// methods: {
1616
// showExportDialog() {
@@ -377,4 +377,10 @@ export default {
377377
</script>
378378

379379
<style>
380+
.export-btn {
381+
min-height: 10px !important;
382+
font-size: 11px;
383+
text-transform: capitalize;
384+
padding: 3px 8px;
385+
}
380386
</style>

src/components/Footer.vue

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@
1515
indicator-color="secondary"
1616
align="left"
1717
>
18-
<q-tab name="code" label="Code" id="label-text"/>
18+
<q-tab name="code" label="Code Snippet" id="label-text"/>
1919
<q-tab name="detail" label="Component Details" id="label-text"/>
20-
<q-tab name="tree" label="Tree" id="label-text"/>
20+
<q-tab name="tree" label="Project Tree" id="label-text"/>
2121
<q-tab name="html" label="HTML Elements" id="label-text"/>
2222
</q-tabs>
2323

@@ -27,7 +27,8 @@
2727
</q-tab-panel>
2828

2929
<q-tab-panel name="detail">
30-
<div class="text-h6">Component Deets</div>Component Info Here
30+
<div class="text-h6">Vuex</div>
31+
Component Info Here
3132
</q-tab-panel>
3233

3334
<q-tab-panel name="tree">

src/components/HomeSideDropDownItems/ComponentList.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ export default {
7272
.q-list {
7373
margin-bottom: 0.5rem;
7474
border-radius: 5px;
75+
box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.2), 0 3px 6px 0 rgba(0, 0, 0, 0.13);
7576
}
7677
.component-info {
7778
margin: auto 0;

src/components/Routes.vue

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -9,22 +9,13 @@
99
@click="handleClick(route)"
1010
v-on:keyup.delete="deleteSelectedRoute(route)"
1111
>
12-
<!--
13-
<span class="panel-icon">
14-
<i class="fas fa-location-arrow" aria-hidden="true"></i>
15-
</span>
16-
-->
17-
<q-list bordered separator>
18-
<q-item clickable v-ripple>
19-
<q-item-section>{{route}}</q-item-section>
20-
21-
</q-item>
22-
23-
</q-list>
24-
12+
<q-list bordered separator>
13+
<q-item clickable v-ripple>
14+
<q-item-section>{{route}}</q-item-section>
15+
</q-item>
16+
</q-list>
2517
</a>
2618
</div>
27-
2819
</template>
2920

3021
<script>

src/css/app.styl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
// app global css
22
main {
33
background: #f2f6f5;
4+
overflow: auto;
45
}
56
.gradient {
67
background: black;
78
// background: rgb(22,108,105);
89
// background: linear-gradient(36deg, rgba(22,108,105,1) 0%, rgba(20,32,23,1) 100%);
9-
}
10+
}

src/layouts/MyLayout.vue

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,4 +73,16 @@ export default {
7373
// background: white;
7474
background: #272822;
7575
}
76+
body::-webkit-scrollbar {
77+
width: 1em;
78+
}
79+
80+
body::-webkit-scrollbar-track {
81+
-webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3);
82+
}
83+
84+
body::-webkit-scrollbar-thumb {
85+
background-color: darkgrey;
86+
outline: 1px solid slategrey;
87+
}
7688
</style>

0 commit comments

Comments
 (0)