Skip to content

Commit 0014084

Browse files
committed
ComponentTab root updated
1 parent 4cb6a3c commit 0014084

File tree

2 files changed

+59
-1
lines changed

2 files changed

+59
-1
lines changed

.eslintrc.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ module.exports = {
77
parserOptions: {
88
parser: '@babel/eslint-parser',
99
ecmaVersion: 2018, // Allows for the parsing of modern ECMAScript features
10-
sourceType: 'module' // Allows for the use of imports
10+
sourceType: 'module', // Allows for the use of imports
11+
requireConfigFile: false
1112
},
1213

1314
env: {
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
<!-- Component Tab Container that holds components for creating components, editing and deleting, and adding props.
2+
Functionality includes: if active component is selected, will switch view to editing mode. If not, it will be in create mode -->
3+
<template>
4+
<q-card id="store-cards">
5+
<UploadImage v-if="activeComponent === ''"/>
6+
<CreateComponent v-if="activeComponent === ''"/>
7+
<EditDeleteComponents v-if="activeComponent !== ''"/>
8+
</q-card>
9+
</template>
10+
11+
<script>
12+
import CreateComponent from './CreateComponent.vue'
13+
import EditDeleteComponents from './EditDeleteComponents.vue'
14+
import { mapState } from 'vuex'
15+
import UploadImage from '../UploadImage.vue'
16+
export default {
17+
data () {
18+
return {
19+
// tab: 'details',
20+
}
21+
},
22+
computed: {
23+
...mapState([
24+
'activeComponent',
25+
])
26+
},
27+
components: {
28+
CreateComponent,
29+
EditDeleteComponents,
30+
UploadImage,
31+
}
32+
}
33+
</script>
34+
35+
<style lang="scss">
36+
// give html background color of grey
37+
.html-bg {
38+
background-color: #202122;
39+
}
40+
#store-cards {
41+
height: 100%;
42+
border-radius: 0px;
43+
background-color: #202122;
44+
}
45+
.q-tab-panel {
46+
height: 100%;
47+
// matchs the code editor bg
48+
background: $subprimary;
49+
// changes the length of the tab panels
50+
}
51+
.q-tab-panels {
52+
height: 100%;
53+
}
54+
.q-tabs {
55+
background: #11120F;
56+
}
57+
</style>

0 commit comments

Comments
 (0)