refactor: minor refactors

This commit is contained in:
woothu
2019-09-16 12:38:00 +02:00
parent 3b4d9d0786
commit 6969728859
6 changed files with 17 additions and 54 deletions
+1 -1
View File
@@ -1,5 +1,5 @@
module.exports = { module.exports = {
presets: [ presets: [
[ "@vue/app", { useBuiltIns: "entry" } ] [ "@vue/app" ]
] ]
} }
@@ -64,8 +64,8 @@
<script> <script>
export default { export default {
name: 'DefaultHeaderDropdownAccnt', name: 'DefaultHeaderDropdownAccnt',
data: () => { data () {
return { itemsCount: 42 } return { itemsCount: 42 }
}, }
} }
</script> </script>
+5 -18
View File
@@ -3,10 +3,10 @@
fixed fixed
:minimize="minimize" :minimize="minimize"
> >
<CSidebarHeader/> <!-- <CSidebarHeader/> -->
<CSidebarForm/> <!-- <CSidebarForm/> -->
<CRenderFunction :contentToRender="navItems"/> <CRenderFunction :contentToRender="nav"/>
<CSidebarFooter/> <!-- <CSidebarFooter/> -->
<CSidebarMinimizer <CSidebarMinimizer
class="c-d-md-down-none" class="c-d-md-down-none"
@click.native="minimize = !minimize" @click.native="minimize = !minimize"
@@ -21,20 +21,7 @@ export default {
data () { data () {
return { return {
minimize: false, minimize: false,
icon: 'cui-speedometer', nav
counter: 0
}
},
computed: {
navItems () {
return nav.map(parentElement => {
if (Array.isArray(parentElement)) {
return parentElement.filter(item => {
return !JSON.stringify(item).includes('Dashboard')
})
}
return parentElement
})
} }
} }
} }
+3 -24
View File
@@ -17,16 +17,7 @@ export default [
], ],
[ [
'CSidebarNavTitle', 'CSidebarNavTitle',
{ ['Theme']
props: {
name: 'Theme',
class: '',
wrapper: {
element: '',
attributes: {}
}
}
}
], ],
[ [
'CSidebarNavLink', 'CSidebarNavLink',
@@ -50,15 +41,7 @@ export default [
], ],
[ [
'CSidebarNavTitle', 'CSidebarNavTitle',
{ ['Components']
props: {
name: 'Components',
wrapper: {
element: '',
attributes: {}
}
}
}
], ],
[ [
'CSidebarNavDropdown', 'CSidebarNavDropdown',
@@ -402,11 +385,7 @@ export default [
], ],
[ [
'CSidebarNavTitle', 'CSidebarNavTitle',
{ ['Extras']
props: {
name: 'Extras'
}
}
], ],
[ [
'CSidebarNavDropdown', 'CSidebarNavDropdown',
+6 -8
View File
@@ -1,8 +1,7 @@
<template functional> <template>
<div class="c-wrapper"> <div class="c-wrapper">
<div>
<CRow> <CRow>
<CCol md="12" lg="9" > <CCol md="12" lg="7">
<CCard> <CCard>
<CCardHeader> <CCardHeader>
<i class="fa fa-align-justify"></i> <i class="fa fa-align-justify"></i>
@@ -26,14 +25,14 @@
height="400px" height="400px"
> >
<CCarouselItem <CCarouselItem
caption="First Slide" captionHeader="First Slide"
image="https://lorempixel.com/1024/480/technics/2/" image="https://lorempixel.com/1024/480/technics/2/"
text="Nulla vitae elit libero, a pharetra augue mollis interdum." captionText="Nulla vitae elit libero, a pharetra augue mollis interdum."
/> />
<CCarouselItem <CCarouselItem
caption="Blank page" captionHeader="Blank page"
:image="{ blankColor: 'grey' }" :image="{ blankColor: 'grey' }"
text="Nulla vitae elit libero, a pharetra augue mollis interdum." captionText="Nulla vitae elit libero, a pharetra augue mollis interdum."
/> />
<CCarouselItem <CCarouselItem
image="https://lorempixel.com/1024/480/technics/8/" image="https://lorempixel.com/1024/480/technics/8/"
@@ -44,7 +43,6 @@
</CCol> </CCol>
</CRow> </CRow>
</div> </div>
</div>
</template> </template>
<script> <script>
-1
View File
@@ -26,7 +26,6 @@
options-row options-row
hover hover
:default-column-filter="{ role:'staff' }" :default-column-filter="{ role:'staff' }"
:default-sorters="['username', 'asc']"
:default-filter="2012" :default-filter="2012"
dark-header dark-header
footer footer