Vue Structure
File structure
main.js file structure.
import { createApp } from 'vue';
import App from './App.vue';
import router from './router';
import i18n from './i18n';
import vClickOutside from "click-outside-vue3";
import VueApexCharts from "vue3-apexcharts";
import CKEditor from '@ckeditor/ckeditor5-vue';
import BootstrapVueNext from 'bootstrap-vue-next';
import store from "./state/store";
import 'bootstrap-vue-next/dist/bootstrap-vue-next.css';
import './assets/scss/app.scss';
createApp(App)
.use(store)
.use(router)
.use(VueApexCharts)
.use(BootstrapVueNext)
.use(i18n)
.use(CKEditor)
.use(vClickOutside).mount('#app');
App.vue file structure.
<template>
<router-view>
</router-view>
</template>
<script>
export default {
name: 'App',
components: {
}
};
</script>
Layout setup
You can set the default layout in the src/state/modules/layout.js
file in the html tag.
layoutType="vertical" | To set default layout as Vertical |
---|---|
layoutType="horizontal" | To set default layout as Horizontal |
layoutType="twocolumn" | To set default layout as Two column |
mode="light" | To set Light layout mode. |
mode="dark" | To set Dark layout mode. |
sidebarSize="lg" layoutWidth="fluid" | To set layout width Fluid and left sidebar large. |
sidebarSize="sm-hover" layoutWidth="boxed" | To set layout width Boxed and left sidebar on hover show menu. |
position="fixed" | To set layout position Fixed. |
position="scrollable" | To set layout position Scrollable. |
topbar="warning" | To set the Warning color of Topbar. |
topbar="danger" | To set the Danger color of Topbar. |
topbar="success" | To set the Success color of Topbar. |
sidebarSize="lg" | To set the Large left sidebar. |
sidebarSize="md" | To set the Compact left sidebar. |
sidebarSize="sm" | To set the Icon view left sidebar. |
sidebarSize="sm-hover" | To set the Icon hover left sidebar. |
sidebarView="default" | To set the Default layout. |
sidebarView="detached" | To set the Detached layout. |
sidebarColor="light" | To set the Light color of left Sidebar. |
sidebarColor="dark" | To set the Dark color of left Sidebar. |
sidebarColor="gradient" | To set the Gradient color of left Sidebar. |
sidebarColor="gradient-2" | To set the Gradient-2 color of left Sidebar. |
sidebarColor="gradient-3" | To set the Gradient-3 color of left Sidebar. |
sidebarColor="gradient-4" | To set the Gradient-4 color of left Sidebar. |
sidebarImage="none" | To Disable image on left Sidebar. |
sidebarImage="img-1" | To set the img-1 Image of left Sidebar. |
sidebarImage="img-2" | To set the img-2 Image of left Sidebar. |
sidebarImage="img-3" | To set the img-3 Image of left Sidebar. |
sidebarImage="img-4" | To set the img-4 Image of left Sidebar. |
preloader="enable" | To enable the preloader on the Page. |
preloader="disable" | To disable the preloader on the Page. |