Skip to content

Commit a69cc13

Browse files
committed
Create Empty Dashboard Layout
1 parent cf44596 commit a69cc13

File tree

2 files changed

+31
-3
lines changed

2 files changed

+31
-3
lines changed

Diff for: backend/src/components/AppLayout.vue

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<template>
2+
<div class="min-h-full flex items-center justify-center py-12 px-4 sm:px-6 lg:px-8">
3+
<div class="max-w-md w-full space-y-8">
4+
<div>
5+
Part of the layout
6+
</div>
7+
<router-view></router-view>
8+
</div>
9+
</div>
10+
</template>
11+
12+
<script setup>
13+
const {title} = defineProps({
14+
title: String
15+
})
16+
</script>
17+
18+
<style scoped>
19+
20+
</style>

Diff for: backend/src/router/index.js

+11-3
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,22 @@
11
import {createRouter, createWebHistory} from "vue-router";
2+
import AppLayout from '../components/AppLayout.vue'
23
import Login from "../views/Login.vue";
34
import Dashboard from "../views/Dashboard.vue";
45
import RequestPassword from "../views/RequestPassword.vue";
56
import ResetPassword from "../views/ResetPassword.vue";
67

78
const routes = [
89
{
9-
path: '/',
10-
name: 'dashboard',
11-
component: Dashboard
10+
path: '/app',
11+
name: 'app',
12+
component: AppLayout,
13+
children: [
14+
{
15+
path: 'dashboard',
16+
name: 'app.dashboard',
17+
component: Dashboard
18+
}
19+
]
1220
},
1321
{
1422
path: '/login',

0 commit comments

Comments
 (0)