Skip to content

Commit 227a9f2

Browse files
Dean OhashiDean Ohashi
authored andcommitted
Merge branch 'dev' of https://github.com/cs29-wobbegong/prevue2 into ipc
2 parents 732c62e + ebdde09 commit 227a9f2

File tree

9 files changed

+51
-20
lines changed

9 files changed

+51
-20
lines changed

quasar.conf.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,7 @@ module.exports = function (ctx) {
5555
'QTabPanels',
5656
'QTabPanel',
5757
'QFab',
58-
'QFabAction',
59-
'QUploader'
58+
'QFabAction'
6059
],
6160

6261
directives: [

src/components/CodeSnippet.vue

Lines changed: 32 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,47 @@
11
<template>
22
<div>
3-
codsnypets
4-
<PrismEditor
5-
language="js"
6-
lineNumbers="true"
7-
/>
3+
<!-- <input type="checkbox" v-model="lineNumbers"> Linenumbers -->
4+
<prism-editor v-model="code" language="js" :line-numbers="lineNumbers" class="code-editor" :style="{ height: `${height}vh` }"/>
85
</div>
96
</template>
107

118
<script>
129
import PrismEditor from 'vue-prism-editor'
1310
import 'prismjs'
14-
import 'prismjs/themes/prism.css'
11+
import 'prismjs/themes/prism-okaidia.css'
12+
import 'vue-prism-editor/dist/VuePrismEditor.css'
1513
1614
export default {
15+
data () {
16+
return {
17+
code: 'console.log(Hellor world);\naww yis\nsome boilerplate here',
18+
lineNumbers: true,
19+
height: null
20+
}
21+
},
1722
components: {
1823
PrismEditor
24+
},
25+
methods: {
26+
getWindowHeight (e) {
27+
let minHeight = (window.outerHeight < 900) ? 22 : (window.outerHeight < 1035) ? 24 : 27.5
28+
this.height = minHeight
29+
}
30+
},
31+
mounted () {
32+
this.$nextTick(() => {
33+
window.addEventListener('resize', this.getWindowHeight)
34+
35+
this.getWindowHeight()
36+
})
37+
},
38+
beforeDestroy () {
39+
window.removeEventListener('resize', this.getWindowHeight)
1940
}
2041
}
2142
</script>
43+
44+
<style lang="stylus" scoped>
45+
.code-editor {
46+
}
47+
</style>

src/components/CreateComponent.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<br />
55
<form v-on:submit.prevent="handleClick">
66
<q-input
7-
standout="bg-teal text-white"
7+
standout="bg-secondary text-white"
88
bottom-slots
99
v-model="componentNameInputValue"
1010
label="Component Name"

src/components/Footer.vue

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -113,15 +113,17 @@ i {
113113
text-transform: capitalize;
114114
}
115115
.q-tab-panel {
116-
background: rgb(69,77,102);
117-
background: linear-gradient(180deg, rgba(69,77,102,1) 0%, rgba(54,60,78,1) 100%);
116+
// matchs the code editor bg
117+
background: #272822
118+
// background: rgb(69,77,102);
119+
// background: linear-gradient(180deg, rgba(69,77,102,1) 0%, rgba(54,60,78,1) 100%);
118120
}
119121
// changes the length of the tab panels
120122
.q-tab-panels {
121123
height: 31vh;
122124
}
123125
124126
.q-tabs {
125-
background: #2c384d;
127+
background: #11120F;
126128
}
127129
</style>

src/components/HomeSideDropDownItems/VuexForm.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<template>
22
<div class="input-container">
33
<q-input
4-
standout="bg-teal text-white"
4+
standout="bg-secondary text-white"
55
bottom-slots
66
v-model="text"
77
label="Add Vuex"
@@ -13,7 +13,7 @@
1313
</template>
1414
</q-input>
1515
<q-input
16-
standout="bg-teal text-white"
16+
standout="bg-secondary text-white"
1717
bottom-slots
1818
v-model="text"
1919
label="Add Action"
@@ -25,7 +25,7 @@
2525
</template>
2626
</q-input>
2727
<q-input
28-
standout="bg-teal text-white"
28+
standout="bg-secondary text-white"
2929
bottom-slots
3030
v-model="text"
3131
label="Add Mutation"

src/components/RouteDisplay.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<div>
33
<q-input
44
@keyup.enter.native="handleEnterKeyPress"
5-
standout="bg-teal text-white"
5+
standout="bg-secondary text-white"
66
bottom-slots
77
v-model="newRoute"
88
label="Enter new route"

src/components/Tree.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ export default {
6565
this.tree = build['App']
6666
}
6767
},
68-
created () {
68+
mounted () {
6969
this.buildTree()
7070
}
7171
}

src/css/quasar.variables.styl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
// Tip: Use the "Theme Builder" on Quasar's documentation website.
1111

1212
$primary = #737578
13-
$secondary = #26A69A
13+
$secondary = #fd5f00
1414
$accent = #9C27B0
1515
$subaccent = #454d66
1616
$subaccentbtn = #2c384d

src/layouts/MyLayout.vue

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,14 +52,18 @@ export default {
5252
</script>
5353

5454
<style lang="stylus">
55+
// css styling for the drawer items
5556
.drawer-menu {
5657
background: white;
58+
// background: #27282268;
5759
}
60+
// css styling for the drawer list (not entire bg)
5861
.q-list {
5962
// background: gray;
6063
}
64+
// css styling for entire drawer
6165
.q-drawer {
62-
background: white;
63-
// background: #313131;
66+
// background: white;
67+
background: #272822;
6468
}
6569
</style>

0 commit comments

Comments
 (0)