From 6cb1f6b48876b4d930fda1f303dfffcd465d6863 Mon Sep 17 00:00:00 2001 From: Sockenklaus Date: Wed, 27 Oct 2021 01:27:06 +0200 Subject: [PATCH] Started implementation of profile / employee-form --- src/App.vue | 22 +---- src/components/VNavigation.vue | 36 +++++++ src/components/VProfileControls.vue | 50 ++++++++++ src/router/index.ts | 9 ++ src/views/Login.vue | 1 - src/views/Profile.vue | 141 ++++++++++++++++++++++++++++ 6 files changed, 239 insertions(+), 20 deletions(-) create mode 100644 src/components/VNavigation.vue create mode 100644 src/components/VProfileControls.vue create mode 100644 src/views/Profile.vue diff --git a/src/App.vue b/src/App.vue index 9004aca..c9f0c5b 100644 --- a/src/App.vue +++ b/src/App.vue @@ -2,13 +2,8 @@ -
- +
+
@@ -19,18 +14,7 @@ diff --git a/src/components/VNavigation.vue b/src/components/VNavigation.vue new file mode 100644 index 0000000..dab46ef --- /dev/null +++ b/src/components/VNavigation.vue @@ -0,0 +1,36 @@ + + + + + \ No newline at end of file diff --git a/src/components/VProfileControls.vue b/src/components/VProfileControls.vue new file mode 100644 index 0000000..02c137a --- /dev/null +++ b/src/components/VProfileControls.vue @@ -0,0 +1,50 @@ + + + + + \ No newline at end of file diff --git a/src/router/index.ts b/src/router/index.ts index a5591bf..03ccce0 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -21,6 +21,15 @@ const routes: Array = [ requiresAdmin: false } }, + { + path: '/employees/me', + name: 'Profile', + component: () => import('@/views/Profile.vue'), + meta: { + requiresAuth: true, + requiresAdmin: false + } + }, { path: '/:pathMatch(.*)*/', name: 'not-found', diff --git a/src/views/Login.vue b/src/views/Login.vue index abff9ab..107b2c9 100644 --- a/src/views/Login.vue +++ b/src/views/Login.vue @@ -45,7 +45,6 @@ + + + +