diff client/src/router.js @ 2985:1b8bb4f89227

client: removed .js and .vue extention from imports
author Markus Kottlaender <markus@intevation.de>
date Tue, 09 Apr 2019 18:38:15 +0200
parents 61f69e8919d3
children ab00165540fe
line wrap: on
line diff
--- a/client/src/router.js	Tue Apr 09 18:23:07 2019 +0200
+++ b/client/src/router.js	Tue Apr 09 18:38:15 2019 +0200
@@ -19,8 +19,8 @@
 import { sessionStillActive, toMillisFromString } from "./lib/session";
 
 /*  facilitate codesplitting */
-const Login = () => import("./components/Login.vue");
-const Main = () => import("./components/Main.vue");
+const Login = () => import("./components/Login");
+const Main = () => import("./components/Main");
 
 Vue.use(Router);
 
@@ -34,7 +34,7 @@
     {
       path: "/usermanagement",
       name: "usermanagement",
-      component: () => import("./components/usermanagement/Usermanagement.vue"),
+      component: () => import("./components/usermanagement/Usermanagement"),
       meta: {
         requiresAuth: true
       },
@@ -50,7 +50,7 @@
     {
       path: "/logs",
       name: "logs",
-      component: () => import("./components/Logs.vue"),
+      component: () => import("./components/Logs"),
       meta: {
         requiresAuth: true
       },
@@ -67,7 +67,7 @@
       path: "/systemconfiguration",
       name: "systemconfiguration",
       component: () =>
-        import("./components/systemconfiguration/Systemconfiguration.vue"),
+        import("./components/systemconfiguration/Systemconfiguration"),
       meta: {
         requiresAuth: true
       },
@@ -171,7 +171,7 @@
     },
     {
       path: "*",
-      component: () => import("./components/PageNotFound.vue")
+      component: () => import("./components/PageNotFound")
     }
   ]
 });