Skip to content

Commit

Permalink
YK-27: Opzetten van dashboard in de frontend.
Browse files Browse the repository at this point in the history
  • Loading branch information
koencaerels committed Oct 1, 2023
1 parent e146d1e commit ae4f868
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 4 deletions.
10 changes: 10 additions & 0 deletions frontends/member_module/src/components/Navigation.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ import {computed} from "vue";

const items = computed(() => {
let navigation = [
{
label: 'Dashboard',
icon: 'pi pi-chart-bar',
to: '/'
},
{
label: 'Actieve leden',
icon: 'pi pi-users',
Expand All @@ -35,6 +40,11 @@ const items = computed(() => {
icon: 'pi pi-users',
to: '/leden'
},
{
label: 'Producten',
icon: 'pi pi-shopping-cart',
to: '/producten'
},
{
label: 'Configuratie',
icon: 'pi pi-cog',
Expand Down
6 changes: 2 additions & 4 deletions frontends/member_module/src/router/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,20 +9,18 @@

import {createRouter, createWebHashHistory} from 'vue-router'

import HomeView from '../views/HomeView.vue'

const router = createRouter({
history: createWebHashHistory(import.meta.env.BASE_URL),
routes: [
{
path: '/',
name: 'home',
component: () => import('../views/MemberOverview.vue')
component: () => import('../views/DashboardView.vue')
},
{
path: '/inschrijvingen',
name: 'inschrijvingen',
component: HomeView,
component: () => import('../views/SubscriptionView.vue'),
children: [
{
path: 'web',
Expand Down
13 changes: 13 additions & 0 deletions frontends/member_module/src/views/DashboardView.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<template>
<div class="p-4">
Dashboard view...
</div>
</template>

<script setup lang="ts">
</script>

<style scoped>
</style>

0 comments on commit ae4f868

Please sign in to comment.