From f41a2af6566b31bb3fec13e0dd1b21a757eecb4c Mon Sep 17 00:00:00 2001 From: Tim Zieger Date: Wed, 27 May 2020 13:01:18 +0200 Subject: [PATCH] time record backend and replace selfuri --- frontend/src/router/index.js | 13 +- frontend/src/variables.js | 1 - frontend/src/views/CreateTimeTrackAccount.vue | 11 +- frontend/src/views/CreateTimerecord.vue | 118 +++++++++++ frontend/src/views/EditTimeTrackAccount.vue | 11 +- frontend/src/views/EditTimerecord.vue | 116 +++++++++++ frontend/src/views/EditUser.vue | 35 +++- frontend/src/views/TimeRecordItem.vue | 44 ++-- frontend/src/views/TimeRecords.vue | 193 ++++++++++-------- frontend/src/views/TimeTrackAccounts.vue | 6 +- frontend/src/views/Users.vue | 6 +- 11 files changed, 421 insertions(+), 133 deletions(-) create mode 100644 frontend/src/views/CreateTimerecord.vue create mode 100644 frontend/src/views/EditTimerecord.vue diff --git a/frontend/src/router/index.js b/frontend/src/router/index.js index 89236b9..e282cd8 100644 --- a/frontend/src/router/index.js +++ b/frontend/src/router/index.js @@ -14,7 +14,8 @@ import EditUser from "../views/EditUser.vue"; import TimeTrackAccounts from "../views/TimeTrackAccounts.vue"; import EditTimeTrackAccount from "../views/EditTimeTrackAccount.vue" import CreateTimeTrackAccount from "../views/CreateTimeTrackAccount.vue" - +import EditTimerecord from "../views/EditTimerecord.vue" +import CreateTimerecord from "../views/CreateTimerecord.vue" Vue.use(VueRouter); const routes = [ @@ -90,6 +91,16 @@ const routes = [ name: "Create TimeTrack Account", component: CreateTimeTrackAccount }, + { + path: "/edittimerecord", + name: "EditTimerecord", + component: EditTimerecord + }, + { + path: "/createtimerecord", + name: "CreateTimerecord", + component: CreateTimerecord + }, { path: '*', component: missing diff --git a/frontend/src/variables.js b/frontend/src/variables.js index 2ffdfe6..17dc89a 100644 --- a/frontend/src/variables.js +++ b/frontend/src/variables.js @@ -1,2 +1 @@ export const baseUri = 'http://plesk.icaotix.de:5000' -export const selfUri = 'http://plesk.icaotix.de:8080' \ No newline at end of file diff --git a/frontend/src/views/CreateTimeTrackAccount.vue b/frontend/src/views/CreateTimeTrackAccount.vue index 780d438..f29be58 100644 --- a/frontend/src/views/CreateTimeTrackAccount.vue +++ b/frontend/src/views/CreateTimeTrackAccount.vue @@ -37,7 +37,7 @@ \ No newline at end of file diff --git a/frontend/src/views/EditTimeTrackAccount.vue b/frontend/src/views/EditTimeTrackAccount.vue index d4dc526..c051855 100644 --- a/frontend/src/views/EditTimeTrackAccount.vue +++ b/frontend/src/views/EditTimeTrackAccount.vue @@ -44,7 +44,7 @@ \ No newline at end of file diff --git a/frontend/src/views/EditUser.vue b/frontend/src/views/EditUser.vue index 5702f7d..1075480 100644 --- a/frontend/src/views/EditUser.vue +++ b/frontend/src/views/EditUser.vue @@ -73,7 +73,7 @@ diff --git a/frontend/src/views/TimeTrackAccounts.vue b/frontend/src/views/TimeTrackAccounts.vue index 0a8b28b..00435f8 100644 --- a/frontend/src/views/TimeTrackAccounts.vue +++ b/frontend/src/views/TimeTrackAccounts.vue @@ -20,7 +20,7 @@