Working on adding a workspace/ sidebar view

This commit is contained in:
Alicia Sykes
2021-06-15 14:22:22 +01:00
parent f3bee653a0
commit 491c07ed67
12 changed files with 203 additions and 14 deletions

View File

@@ -64,14 +64,14 @@ export default {
}),
computed: {
layoutOrientation: {
get: () => localStorage[localStorageKeys.LAYOUT_ORIENTATION] || Defaults.layout,
get() { return this.appConfig.layout || Defaults.layout; },
set: function setLayout(layout) {
localStorage.setItem(localStorageKeys.LAYOUT_ORIENTATION, layout);
this.layout = layout;
},
},
iconSize: {
get: () => localStorage[localStorageKeys.ICON_SIZE] || Defaults.iconSize,
get() { return this.appConfig.iconSize || Defaults.iconSize; },
set: function setIconSize(iconSize) {
localStorage.setItem(localStorageKeys.ICON_SIZE, iconSize);
this.itemSizeBound = iconSize;

31
src/views/Workspace.vue Normal file
View File

@@ -0,0 +1,31 @@
<template>
<div class="work-space">
<SideBar :sections="sections" />
<WebContent :url="url" />
</div>
</template>
<script>
import SideBar from '@/components/Workspace/SideBar';
import WebContent from '@/components/Workspace/WebContent';
export default {
name: 'Workspace',
props: {
sections: Array,
},
data: () => ({
url: '',
}),
components: {
SideBar,
WebContent,
},
};
</script>
<style scoped lang="scss">
</style>