refactor: update theme components

This commit is contained in:
Łukasz Holeczek
2021-08-27 00:06:27 +02:00
parent e086d28946
commit 6ece5c009c
6 changed files with 123 additions and 103 deletions
+21 -13
View File
@@ -1,35 +1,43 @@
<template>
<CSidebar position="fixed" selfHiding="md" :class="sidebarClass">
<CSidebar position="fixed" selfHiding="md" :unfoldable="sidebarUnfoldable" :visible="sidebarVisible">
<CSidebarBrand>
<CIcon
customClasses="sidebar-brand-full"
customClassName="sidebar-brand-full"
name="logo"
size="custom-size"
:height="35"
viewBox="0 0 556 134" />
viewBox="0 0 556 134"
/>
<CIcon
customClasses="sidebar-brand-narrow"
customClassName="sidebar-brand-narrow"
name="logo"
size="custom-size"
:height="35"
viewBox="0 0 110 134"
/></CSidebarBrand>
/>
</CSidebarBrand>
<AppSidebarNav />
<CSidebarToggler
class="d-none d-lg-flex"
@click="$store.commit('toggleUnfoldable')"
/>
</CSidebar>
</template>
<script>
import { AppSidebarNav } from "./AppSidebarNav";
import { AppSidebarNav } from './AppSidebarNav'
export default {
name: "AppSidebar",
name: 'AppSidebar',
components: {
AppSidebarNav,
},
computed: {
sidebarClass () {
return this.$store.state.sidebarClass
}
}
};
sidebarUnfoldable() {
return this.$store.state.sidebarUnfoldable
},
sidebarVisible() {
return this.$store.state.sidebarVisible
},
},
}
</script>