text: import Vue from 'vue'
  import VueRouter from 'vue-router'
  
  // import {firebase} from "firebase"
  // import Home from '../views/Home.vue'
  import Map from '../components/Map.vue'
  import Test from '../components/Test.vue'
  // import Login from '../components/Login.vue'
  
  //Views
  import Homepage from "../views/Homepage.vue"
  import SignUp from "../views/SignUp.vue"
  import SignOut from "../views/SignOut.vue"
  import MyBabies from "../views/MyBabies.vue"
  import AddBaby from "../views/AddBaby.vue"
  import AddSensor from "../views/AddSensor.vue"
  import MySensors from "../views/MySensors.vue"
  import Profile from "../views/Profile.vue"
  //store 
  // import {store} from '../store/store'
  Vue.use(VueRouter)
  
  const routes = [
    {
      path:'/welcome',
      name:'homepage',
      component: Homepage
    },
    {
      path:'/signup',
      name:'signup',
      component:SignUp
    },
    {
      path: '/',
      name: 'Map',
      component: Map,
      meta:{authReq:true,signOut:false}
      
    },
    {
      path: '/about',
      name: 'About',
      component: Test,
      meta:{authReq:true,signOut:false}
    },
    {
      path: '/mybabies',
      name: 'mybabies',
      component: MyBabies,
      
    },
    {
      path: '/addsensor',
      name: 'addsensor',
      component: AddSensor,
      
    },
    {
      path: '/mysensors',
      name: 'mysensors',
      component: MySensors,
      
    },
    {
      path: '/addbaby',
      name: 'addbaby',
      component: AddBaby,
      
    },
    {
      path: '/profile',
      name: 'profile',
      component: Profile,
      
    },
    {
      path: '/signout',
      name: 'signout',
      component: SignOut,
      meta:{authReq:true,signOut:true}
    },
    {
      path:"*",
      redirect:"/welcome"
    }
  
  ]
  
  const router = new VueRouter({
    mode: 'history',
    base: process.env.BASE_URL,
    routes
  })
  
  
  
  export default router
  