Skip to content

Commit c86c247

Browse files
Dean OhashiDean Ohashi
authored andcommitted
merge conf
2 parents bb057b2 + 30a80d3 commit c86c247

File tree

8 files changed

+205
-182
lines changed

8 files changed

+205
-182
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/CreateComponent.vue

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<br />
55
<form v-on:submit.prevent="handleClick" v-on:click="resetActiveComponent">
66
<q-input
7-
standout="bg-secondary text-white"
7+
standout="secondary text-secondary"
88
bottom-slots
99
v-model="componentNameInputValue"
1010
label="Component Name"
@@ -14,11 +14,13 @@
1414
</q-input>
1515
</form>
1616
<div class="icon-container">
17-
<Icons @getClickedIcon="addToSelectedElementList" @activeElement="addToComponentElementList"/>
17+
<Icons class = 'icons' @getClickedIcon="addToSelectedElementList" @activeElement="addToComponentElementList"/>
1818
</div>
1919
<ParentMultiselect />
2020
<br />
21-
<q-btn id="add-component-btn" class="glossy" color="teal" label="Create Component" icon-right="add" @click="handleClick" :disabled="!componentNameInputValue" />
21+
22+
<q-btn id="add-component-btn" color="secondary" label="Create Component" @click="handleClick" :disabled="!componentNameInputValue" />
23+
2224
</div>
2325
</template>
2426

src/components/ExportProject.vue

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,22 @@
11
<template>
2-
<q-btn class=" export-btn" color="secondary" label="Export Project" @click="exportProject"/>
2+
<!-- electron build
3+
<q-btn class="glossy" color="secondary" label="Export Project" @click="exportProject"/>
4+
-->
5+
<q-btn class="glossy" color="secondary" label="Export Project"/>
36
</template>
47

58
<script>
69
// Where all of the boilerplate is exported
710
import { mapState } from "vuex";
8-
const { remote } = require("electron");
9-
import fs from "fs-extra";
10-
import path from "path";
11-
const ipc = require("electron").ipcRenderer;
11+
//const { remote } = require("electron");
12+
//import fs from "fs-extra";
13+
//import path from "path";
14+
//const ipc = require("electron").ipcRenderer;
1215
export default {
13-
name: 'ExportProjectComponent'
16+
17+
name: "ExportProjectComponent",
1418
}
19+
1520
// methods: {
1621
// showExportDialog() {
1722
// remote.dialog.showSaveDialog({
@@ -374,13 +379,20 @@ export default {
374379
// ...mapState(["componentMap"])
375380
// }
376381
// };
382+
383+
384+
377385
</script>
378386

379387
<style>
388+
380389
.export-btn {
381390
min-height: 10px !important;
382391
font-size: 11px;
383392
text-transform: capitalize;
384393
padding: 3px 8px;
385394
}
395+
386396
</style>
397+
398+

src/components/Footer.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -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/Icons.vue

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ export default {
4343
grid-template-columns: 50% 50%;
4444
grid-row-gap: 1em;
4545
width: 100%;
46+
4647
}
4748
}
4849
@@ -52,9 +53,10 @@ button {
5253
}
5354
button:hover {
5455
cursor: pointer;
55-
color: #00d1b2;
56+
color: #00FFFF
5657
}
5758
button:focus {
5859
outline: none;
5960
}
61+
6062
</style>
Lines changed: 47 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -1,57 +1,59 @@
11
<template>
2-
<q-btn class="glossy mr-sm" color="teal" label="Open Project" @click="openProjectJSON"/>
2+
<q-btn class="glossy mr-sm" color="secondary" label="Open Project"/>
3+
<!--<q-btn class="glossy mr-sm" color="secondary" label="Open Project" @click="openProjectJSON"/>-->
34
</template>
45

56
<script>
67
import localforage from 'localforage';
7-
import fs from 'fs-extra';
8+
//import fs from 'fs-extra';
89
import { addProject } from '../store/types';
9-
const { remote } = require("electron");
10+
//const { remote } = require("electron");
1011
import { mapState, mapActions } from 'vuex'
1112
1213
export default {
1314
name: 'OpenProjectComponent',
14-
methods: {
15-
...mapActions([
16-
'setComponentMap',
17-
'setRoutes',
18-
]),
19-
parseFileName(file) {
20-
//Obtains json file name from file path
21-
return file.split('/').pop();
22-
},
23-
openJSONFile(data){
24-
const jsonFile = JSON.parse(fs.readFileSync(data[0], 'utf8'))
25-
this.setComponentMap(jsonFile.componentMap)
26-
this.setRoutes(jsonFile.routes)
27-
},
28-
showOpenJSONDialog(){
29-
remote.dialog.showOpenDialog({
30-
properties: ['openFile'],
31-
filters: [{
32-
name: 'JSON Files',
33-
extensions: ['json']
34-
}]},
35-
result => {
36-
// 'result' is the filepath of the .json file being opened
37-
this.openJSONFile(result);
38-
}
39-
);
40-
},
41-
openProjectJSON(){
42-
this.showOpenJSONDialog();
43-
}
44-
},
45-
created(){
46-
Mousetrap.bind(['command+o', 'ctrl+o'], () => {
47-
this.openProjectJSON();
48-
});
49-
}
5015
}
51-
</script>
16+
// methods: {
17+
// ...mapActions([
18+
// 'setComponentMap',
19+
// 'setRoutes',
20+
// ]),
21+
// parseFileName(file) {
22+
// //Obtains json file name from file path
23+
// return file.split('/').pop();
24+
// },
25+
// openJSONFile(data){
26+
// const jsonFile = JSON.parse(fs.readFileSync(data[0], 'utf8'))
27+
// this.setComponentMap(jsonFile.componentMap)
28+
// this.setRoutes(jsonFile.routes)
29+
// },
30+
// showOpenJSONDialog(){
31+
// remote.dialog.showOpenDialog({
32+
// properties: ['openFile'],
33+
// filters: [{
34+
// name: 'JSON Files',
35+
// extensions: ['json']
36+
// }]},
37+
// result => {
38+
// // 'result' is the filepath of the .json file being opened
39+
// this.openJSONFile(result);
40+
// }
41+
// );
42+
// },
43+
// openProjectJSON(){
44+
// this.showOpenJSONDialog();
45+
// }
46+
// },
47+
// created(){
48+
// Mousetrap.bind(['command+o', 'ctrl+o'], () => {
49+
// this.openProjectJSON();
50+
// });
51+
// }
52+
// }
53+
</script>
5254

53-
<style scoped>
54-
.mr-sm {
55-
margin-right: 0.2rem;
56-
}
57-
</style>
55+
<style scoped>
56+
.mr-sm {
57+
margin-right: 0.2rem;
58+
}
59+
</style>

0 commit comments

Comments
 (0)