Skip to content

Optional use of Quasar's LayoutΒ #10

@ghost

Description

Hi! πŸ‘‹

Firstly, thanks for your work on this project! πŸ™‚

Today I used patch-package to patch quasar-app-extension-auto-routing@0.0.31 for the project I'm working on.

My issue is that I am mostly not using Quasar's Layout. It is causing me issue as there's no option in the config to not use layout. If there is, it might be a very good idea to have such option.

Here is the diff that solved my problem:

diff --git a/node_modules/quasar-app-extension-auto-routing/src/createIndexTemplate.js b/node_modules/quasar-app-extension-auto-routing/src/createIndexTemplate.js
index 6898711..2c7501a 100644
--- a/node_modules/quasar-app-extension-auto-routing/src/createIndexTemplate.js
+++ b/node_modules/quasar-app-extension-auto-routing/src/createIndexTemplate.js
@@ -5,17 +5,12 @@ const fs = require('fs')
  * This template is used to create an index.js file that
  * will be imported and used inside routes.js
  */
-const indexTemplate = `import { createRouterLayout } from 'vue-router-layout'
+const indexTemplate = `
 import generatedRoutes from './generated-routes'
 
-const RouterLayout = createRouterLayout(layout => {
-  return import('<%= layoutsDir %>/' + layout + '.vue')
-})
-
 export default [
   {
     path: '<%= routePrefix %>',
-    component: RouterLayout,
     children: generatedRoutes
   }
 ]

This issue body was partially generated by patch-package.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions