changeset 2706:a4962c302af0

client: removed unnecessary component After several iterations of clean-up, the Main.vue file was left over as only a wrapper for Maplayer.vue. Thus I removed it completely and mapped all routes directly to Maplayer.vue
author Markus Kottlaender <markus@intevation.de>
date Mon, 18 Mar 2019 16:12:20 +0100
parents eb3d7a429eb0
children 95a24baa492d
files client/src/components/Main.vue client/src/router.js
diffstat 2 files changed, 5 insertions(+), 32 deletions(-) [+]
line wrap: on
line diff
--- a/client/src/components/Main.vue	Mon Mar 18 16:05:26 2019 +0100
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,27 +0,0 @@
-<template>
-  <Maplayer />
-</template>
-
-<script>
-/* This is Free Software under GNU Affero General Public License v >= 3.0
- * without warranty, see README.md and license for details.
- *
- * SPDX-License-Identifier: AGPL-3.0-or-later
- * License-Filename: LICENSES/AGPL-3.0.txt
- *
- * Copyright (C) 2018 by via donau
- *   – Österreichische Wasserstraßen-Gesellschaft mbH
- * Software engineering by Intevation GmbH
- *
- * Author(s):
- * Thomas Junk <thomas.junk@intevation.de>
- * Markus Kottländer <markus.kottlaender@intevation.de>
- */
-
-export default {
-  name: "mainview",
-  components: {
-    Maplayer: () => import("./Maplayer")
-  }
-};
-</script>
--- a/client/src/router.js	Mon Mar 18 16:05:26 2019 +0100
+++ b/client/src/router.js	Mon Mar 18 16:12:20 2019 +0100
@@ -20,7 +20,7 @@
 
 /*  facilitate codesplitting */
 const Login = () => import("./components/Login.vue");
-const Main = () => import("./components/Main.vue");
+const Maplayer = () => import("./components/Maplayer.vue");
 
 Vue.use(Router);
 
@@ -147,7 +147,7 @@
     {
       path: "/",
       name: "mainview",
-      component: Main,
+      component: Maplayer,
       meta: {
         requiresAuth: true
       },
@@ -162,7 +162,7 @@
     {
       path: "/bottlenecks",
       name: "bottlenecks",
-      component: Main,
+      component: Maplayer,
       meta: {
         requiresAuth: true
       },
@@ -177,7 +177,7 @@
     {
       path: "/imports/overview/:id?",
       name: "importoverview",
-      component: Main,
+      component: Maplayer,
       meta: {
         requiresAuth: true
       },
@@ -196,7 +196,7 @@
     {
       path: "/stretches",
       name: "stretches",
-      component: Main,
+      component: Maplayer,
       meta: {
         requiresAuth: true
       },