From 214d5b9218f53aaa852a7f83ac7fd942f3824bd4 Mon Sep 17 00:00:00 2001 From: the_kellner Date: Mon, 25 May 2020 18:38:34 +0200 Subject: [PATCH] add timetrack account managing views and implement functionality --- frontend/src/router/index.js | 18 +++ frontend/src/variables.js | 3 +- frontend/src/views/CreateTimeTrackAccount.vue | 80 ++++++++++++ frontend/src/views/EditTimeTrackAccount.vue | 117 ++++++++++++++++++ frontend/src/views/EditUser.vue | 10 +- frontend/src/views/TimeTrackAccountItem.vue | 67 ++++++++++ frontend/src/views/TimeTrackAccounts.vue | 91 ++++++++++++++ frontend/src/views/Users.vue | 12 +- frontend/src/views/UsersItems.vue | 21 +++- 9 files changed, 407 insertions(+), 12 deletions(-) create mode 100644 frontend/src/views/CreateTimeTrackAccount.vue create mode 100644 frontend/src/views/EditTimeTrackAccount.vue create mode 100644 frontend/src/views/TimeTrackAccountItem.vue create mode 100644 frontend/src/views/TimeTrackAccounts.vue diff --git a/frontend/src/router/index.js b/frontend/src/router/index.js index ea94f3d..89236b9 100644 --- a/frontend/src/router/index.js +++ b/frontend/src/router/index.js @@ -11,6 +11,9 @@ import Register from "../views/Register.vue"; import StatisticOverview from "../views/StatisticOverview.vue"; import Users from "../views/Users.vue"; import EditUser from "../views/EditUser.vue"; +import TimeTrackAccounts from "../views/TimeTrackAccounts.vue"; +import EditTimeTrackAccount from "../views/EditTimeTrackAccount.vue" +import CreateTimeTrackAccount from "../views/CreateTimeTrackAccount.vue" Vue.use(VueRouter); @@ -72,6 +75,21 @@ const routes = [ name: "EditUser", component: EditUser }, + { + path: "/timetrackaccounts", + name: "TimeTrack Accounts", + component: TimeTrackAccounts + }, + { + path: "/edittimetrackaccount", + name: "Edit TimeTrack Account", + component: EditTimeTrackAccount + }, + { + path: "/createtimetrackaccount", + name: "Create TimeTrack Account", + component: CreateTimeTrackAccount + }, { path: '*', component: missing diff --git a/frontend/src/variables.js b/frontend/src/variables.js index 8f12fb5..1069783 100644 --- a/frontend/src/variables.js +++ b/frontend/src/variables.js @@ -1 +1,2 @@ -export const baseUri = 'http://plesk.icaotix.de:5000' \ No newline at end of file +export const baseUri = 'http://plesk.icaotix.de:5000' +export const selfUri = 'http://localhost:8080' \ No newline at end of file diff --git a/frontend/src/views/CreateTimeTrackAccount.vue b/frontend/src/views/CreateTimeTrackAccount.vue new file mode 100644 index 0000000..780d438 --- /dev/null +++ b/frontend/src/views/CreateTimeTrackAccount.vue @@ -0,0 +1,80 @@ + + \ No newline at end of file diff --git a/frontend/src/views/EditTimeTrackAccount.vue b/frontend/src/views/EditTimeTrackAccount.vue new file mode 100644 index 0000000..d4dc526 --- /dev/null +++ b/frontend/src/views/EditTimeTrackAccount.vue @@ -0,0 +1,117 @@ + + \ No newline at end of file diff --git a/frontend/src/views/EditUser.vue b/frontend/src/views/EditUser.vue index e412f23..5702f7d 100644 --- a/frontend/src/views/EditUser.vue +++ b/frontend/src/views/EditUser.vue @@ -73,7 +73,7 @@ + + \ No newline at end of file diff --git a/frontend/src/views/TimeTrackAccounts.vue b/frontend/src/views/TimeTrackAccounts.vue new file mode 100644 index 0000000..0a8b28b --- /dev/null +++ b/frontend/src/views/TimeTrackAccounts.vue @@ -0,0 +1,91 @@ + + + + + \ No newline at end of file diff --git a/frontend/src/views/Users.vue b/frontend/src/views/Users.vue index 5367dda..6f3435c 100644 --- a/frontend/src/views/Users.vue +++ b/frontend/src/views/Users.vue @@ -1,13 +1,13 @@