Metronic Documentation | Keenthemes
logo
The World’s #1 Bootstrap 5 HTML, VueJS, React, Angular & Laravel
Admin Dashboard Ecosystem

This is Metronic 7 documentation!

Upon purchase you can get Metronic 7 version from our Github Repository.
Request Github access
The new Metronic 8 is now available with the most advanced Bootstrap 5, VueJS, React and Laravel foundation with a solid light and dark mode design system, extensive utility classes and custom made in-house components.
View Metronic 8 documentation

To use most of the Metronic build tools, Node.js LTS version is required. Version 14.x LTS is recommended. Some of the plugins and framework in Metronic v7 does not support the latest Node.js version. https://nodejs.org/en/

Vue Skeleton

Remove Demo Pages

All demo pages are in separate modules and can be removed from this folder
[metronic]/theme/vue/[demo]/src/view/pages/.

Create a blank vue page in [metronic]/theme/vue/[demo]/src/view/pages/Blank.vue

<template>
  <div>
    <h1>blank page</h1>
  </div>
</template>

<script>

export default {
  name: "blank",
};
</script>

Routers

Remove all demo page routers and replace with blank page route. Router file is in this file [metronic]/theme/vue/[demo]/src/router.js. The component Base.vue is required as parent component because this file contains the page header, footer, menu, content area, etc.


export default new Router({
  routes: [
    {
      path: "/",
      redirect: "/blank",
      component: () => import("@/view/layout/Layout"),
      children: [
        {
          path: "/blank",
          name: "blank",
          component: () => import("@/view/pages/Blank.vue")
        },
      ]
    }
  ]
});

Open and modify file [metronic]/theme/vue/[demo]/src/view/layout/Layout.vue. Remove or comment out the block of codes below to temporarily disable the auth module from being redirect to login page.

if (!this.isAuthenticated) {
  this.$router.push({ name: "login" });
}

Now the Vue can be run using npm run serve with a blank page without demo pages.

Think About The Future, Stay Connected With Us
The More We Learn, The More We Are Able To Innovate & To Develop