File tree Expand file tree Collapse file tree 2 files changed +59
-1
lines changed Expand file tree Collapse file tree 2 files changed +59
-1
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,8 @@ module.exports = {
7
7
parserOptions : {
8
8
parser : '@babel/eslint-parser' ,
9
9
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
11
12
} ,
12
13
13
14
env : {
Original file line number Diff line number Diff line change
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 >
You can’t perform that action at this time.
0 commit comments