Vue Structure
File structure
main.js file structure.
import { createApp } from 'vue';
import App from './App.vue';
import router from './router';
import store from "./state/store";
import BootstrapVueNext from 'bootstrap-vue-next';
import i18n from './i18n';
import VueApexCharts from "vue3-apexcharts";
import { vMaska } from "maska";
import './assets/scss/app.scss';
import 'bootstrap-vue-next/dist/bootstrap-vue-next.css';
import 'simplebar/dist/simplebar.min.css';
createApp(App)
.use(router)
.use(store)
.use(BootstrapVueNext)
.use(i18n)
.use(VueApexCharts)
.directive("maska", vMaska)
.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.
mode="light" | To set layout mode Light. |
---|---|
mode="dark" | To set layout mode Dark. |
mode="brand" | To set layout mode Brand. |
cardLayout="borderless" | To set layout Borderless. |
cardLayout="border" | To set layout Border. |
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. |
topbar="brand" | To set the Brand color of Topbar. |
topbarImage="pattern-1" | To set the pattern-1 of Topbar Image. |
topbarImage="pattern-2" | To set the pattern-2 of Topbar Image. |
topbarImage="pattern-3" | To set the pattern-3 of Topbar Image. |
preloader="enable" | To enable the preloader on the Page. |
preloader="disable" | To disable the preloader on the Page. |