Vue Structure

Overview

main.js file Structure.

import { createApp } from 'vue'
import App from './App.vue'
import router from "./router";
import AOS from 'aos';
import 'aos/dist/aos.css';
import i18n from './i18n';
import store from "./state/store";

import BootstrapVueNext from 'bootstrap-vue-next';
import vClickOutside from "click-outside-vue3";
import VueApexCharts from "vue3-apexcharts";
import Maska from 'maska';

import VueFeather from 'vue-feather';

import '@/assets/scss/config/default/app.scss';
import '@vueform/slider/themes/default.css';
import '@/assets/scss/mermaid.min.css';
import 'bootstrap/dist/js/bootstrap.bundle'

AOS.init({
    easing: 'ease-out-back',
    duration: 1000
});

createApp(App)
         .use(store)
         .use(router)
         .use(VueApexCharts)
         .use(BootstrapVueNext)
         .component(VueFeather.type, VueFeather)
         .use(Maska)
         .use(i18n)
         .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/module/layout.js.

layoutType:"vertical" topbar:"light" sidebarColor:"dark" sidebarSize:"lg"
Attributes Note
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.
layoutType="semibox" To set default layout as Semibox.
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="light" To set the Light color of Topbar.
topbar="dark" To set the dark 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.
visibility="show" To set visibility show of left Sidebar.
visibility="hidden" To set visibility hide of left Sidebar.

You can set the default layout in the src/state/module/layout.js.

layoutType:"vertical" topbar:"light" sidebarColor:"dark" sidebarSize:"lg" sidebarImage: 'none' preloader: 'disable' layoutTheme: 'default' themeColor: 'default'
Attributes Note
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.
layoutType="semibox" To set default layout as Semibox.
layoutTheme: 'default' To set default theme as Default
layoutTheme: 'saas' To set saas theme as Saas
layoutTheme: 'material' To set material theme as Material
layoutTheme: 'galaxy' To set galaxy theme as Galaxy
layoutTheme: 'corporate' To set corporate theme as Corporate
layoutTheme: 'minimal' To set minimal theme as Minimal
layoutTheme: 'creative' To set creative theme as Creative
layoutTheme: 'interactive' To set interactive theme as Interactive
layoutTheme: 'modern' To set modern theme as Modern
layoutTheme: 'classic' To set classic theme as Classic
layoutTheme: 'vintage' To set vintage theme as Vintage
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="light" To set the Light color of Topbar.
topbar="dark" To set the dark 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.
visibility="show" To set visibility show of left Sidebar.
visibility="hidden" To set visibility hide of left Sidebar.
© Velzon.
Design & Develop by Themesbrand