diff --git a/app/.env b/app/.env
index 2b7873c..2002315 100644
--- a/app/.env
+++ b/app/.env
@@ -1 +1 @@
-VUE_APP_WAXIOS_URL=https://taskmanager.internal.studiotem.com/be/api/
\ No newline at end of file
+VUE_APP_WAXIOS_URL=https://taskmanager.internal.studiotem.com/api/
\ No newline at end of file
diff --git a/app/public/mock/v1/master-tasks.GET.json b/app/public/mock/v1/master-tasks.GET.json
index 7460d9b..9d9356c 100644
--- a/app/public/mock/v1/master-tasks.GET.json
+++ b/app/public/mock/v1/master-tasks.GET.json
@@ -2,7 +2,7 @@
"data": [
{
"id": 1,
- "name": "Master task 1",
+ "title": "Master task 1",
"description": "Toto je master task cislo 1",
"duration": 130000,
"time_worked": 0,
@@ -38,7 +38,7 @@
},
{
"id": 2,
- "name": "Master task cislo 2",
+ "title": "Master task cislo 2",
"description": "Toto je master task cislo 2",
"duration": 100000,
"time_worked": 0,
@@ -67,7 +67,7 @@
},
{
"id": 3,
- "name": "Master task cislo 3",
+ "title": "Master task cislo 3",
"description": "Toto je master task cislo 3",
"duration": 9500000,
"time_worked": 0,
diff --git a/app/public/mock/v1/master-tasks/(id).GET.json b/app/public/mock/v1/master-tasks/(id).GET.json
index 2987c98..c5d2736 100644
--- a/app/public/mock/v1/master-tasks/(id).GET.json
+++ b/app/public/mock/v1/master-tasks/(id).GET.json
@@ -29,6 +29,46 @@
"surname": "Gajdos"
}
],
+ "tasks": [
+ {
+ "id": 1,
+ "project_code": "CO-2201",
+ "title": "Nazov tasku 1 (Ongoing)",
+ "description": "Urna vitae, suscipit suspendisse lectus arcu, imperdiet. Vulputate sit nec ut et. Urna ut a ac amet, donec orci non. Posuere elit magna consequat volutpat bibendum. Accumsan gravida elit condimentum sed. Congue non, dictum nec accumsan egestas vel. Sed molestie pretium odio morbi. Amet nunc, diam ridiculus dis condimentum arcu. Rhoncus, elementum, quis aenean neque. Faucibus leo laoreet lobortis vitae elementum. Condimentum ornare iaculis in fames in ut sit enim.",
+ "duration": 5400000,
+ "spent_time": 3000000,
+ "is_finished": false,
+ "dates": [],
+ "master_task": {
+ "id": 1,
+ "title": "Master task 1",
+ "employees": [
+ {
+ "id": 1,
+ "name": "Rastislav",
+ "surname": "Kuttner"
+ },
+ {
+ "id": 4,
+ "name": "Viliam",
+ "surname": "Sedivy"
+ },
+
+ {
+ "id": 5,
+ "name": "Pavel",
+ "surname": "Gajdos"
+ }
+ ]
+ },
+ "employee": {
+ "id": 1,
+ "duration": 1300000,
+ "name": "Viliam",
+ "surname": "Sedivy"
+ }
+ }
+ ],
"files": [
{
"content_type": "application/png",
diff --git a/app/public/mock/v1/tasks/(id).GET.json b/app/public/mock/v1/tasks/(id).GET.json
index c2a9891..320d663 100644
--- a/app/public/mock/v1/tasks/(id).GET.json
+++ b/app/public/mock/v1/tasks/(id).GET.json
@@ -1,64 +1,41 @@
{
"data": {
"id": 1,
- "description": "Urna vitae, suscipit suspendisse lectus arcu, imperdiet. Vulputate sit nec ut et. Urna ut a ac amet, donec orci non. Posuere elit magna consequat volutpat bibendum. Accumsan gravida elit condimentum sed. Congue non, dictum nec accumsan egestas vel. Sed molestie pretium odio morbi. Amet nunc, diam ridiculus dis condimentum arcu. Rhoncus, elementum, quis aenean neque. Faucibus leo laoreet lobortis vitae elementum. Condimentum ornare iaculis in fames in ut sit enim.",
"project_code": "CO-2201",
- "master_task_id": 1,
- "master_task": "Master task 1",
- "team_id": 1,
- "team": {
+ "title": "Nazov tasku 1 (Ongoing)",
+ "description": "Urna vitae, suscipit suspendisse lectus arcu, imperdiet. Vulputate sit nec ut et. Urna ut a ac amet, donec orci non. Posuere elit magna consequat volutpat bibendum. Accumsan gravida elit condimentum sed. Congue non, dictum nec accumsan egestas vel. Sed molestie pretium odio morbi. Amet nunc, diam ridiculus dis condimentum arcu. Rhoncus, elementum, quis aenean neque. Faucibus leo laoreet lobortis vitae elementum. Condimentum ornare iaculis in fames in ut sit enim.",
+ "duration": 5400000,
+ "spent_time": 3000000,
+ "is_finished": false,
+ "dates": [],
+ "master_task": {
"id": 1,
- "name": "Team 1",
+ "name": "Master task 1",
"employees": [
{
"id": 1,
"name": "Rastislav",
"surname": "Kuttner"
},
-
{
- "id": 2,
- "name": "Lenka",
- "surname": "Nemeckova"
+ "id": 4,
+ "name": "Viliam",
+ "surname": "Sedivy"
},
-
+
{
- "id": 3,
- "name": "Peter",
- "surname": "Bucan"
+ "id": 5,
+ "name": "Pavel",
+ "surname": "Gajdos"
}
]
},
- "employee_id": 1,
- "assigned_employee": {
- "id": 14,
- "name": "Pavel",
- "surname": "Gajdos"
+ "employee": {
+ "id": 1,
+ "duration": 1300000,
+ "name": "Viliam",
+ "surname": "Sedivy"
},
- "duration": 128,
- "worked_time": 133,
- "is_finished": false,
- "starts_at": "2022-11-10T11:00:00+00:00",
- "ends_at": "2022-11-12T16:00:00+00:00",
- "employees": [
- {
- "id": 1,
- "name": "Viliam",
- "surname": "Sedivy"
- },
-
- {
- "id": 4,
- "name": "Pavel",
- "surname": "Gajdos"
- },
-
- {
- "id": 5,
- "name": "Francesca",
- "surname": "Spinelli"
- }
- ],
"files": [
{
"content_type": "application/pdf",
diff --git a/app/public/mock/v1/tasks/(id).GET__DELETE__.json b/app/public/mock/v1/tasks/(id).GET__DELETE__.json
new file mode 100644
index 0000000..c2a9891
--- /dev/null
+++ b/app/public/mock/v1/tasks/(id).GET__DELETE__.json
@@ -0,0 +1,96 @@
+{
+ "data": {
+ "id": 1,
+ "description": "Urna vitae, suscipit suspendisse lectus arcu, imperdiet. Vulputate sit nec ut et. Urna ut a ac amet, donec orci non. Posuere elit magna consequat volutpat bibendum. Accumsan gravida elit condimentum sed. Congue non, dictum nec accumsan egestas vel. Sed molestie pretium odio morbi. Amet nunc, diam ridiculus dis condimentum arcu. Rhoncus, elementum, quis aenean neque. Faucibus leo laoreet lobortis vitae elementum. Condimentum ornare iaculis in fames in ut sit enim.",
+ "project_code": "CO-2201",
+ "master_task_id": 1,
+ "master_task": "Master task 1",
+ "team_id": 1,
+ "team": {
+ "id": 1,
+ "name": "Team 1",
+ "employees": [
+ {
+ "id": 1,
+ "name": "Rastislav",
+ "surname": "Kuttner"
+ },
+
+ {
+ "id": 2,
+ "name": "Lenka",
+ "surname": "Nemeckova"
+ },
+
+ {
+ "id": 3,
+ "name": "Peter",
+ "surname": "Bucan"
+ }
+ ]
+ },
+ "employee_id": 1,
+ "assigned_employee": {
+ "id": 14,
+ "name": "Pavel",
+ "surname": "Gajdos"
+ },
+ "duration": 128,
+ "worked_time": 133,
+ "is_finished": false,
+ "starts_at": "2022-11-10T11:00:00+00:00",
+ "ends_at": "2022-11-12T16:00:00+00:00",
+ "employees": [
+ {
+ "id": 1,
+ "name": "Viliam",
+ "surname": "Sedivy"
+ },
+
+ {
+ "id": 4,
+ "name": "Pavel",
+ "surname": "Gajdos"
+ },
+
+ {
+ "id": 5,
+ "name": "Francesca",
+ "surname": "Spinelli"
+ }
+ ],
+ "files": [
+ {
+ "content_type": "application/pdf",
+ "created_at": "2022-09-23 07:02:55",
+ "description": null,
+ "disk_name": "632d5a1924093750079385.pdf",
+ "extension": "pdf",
+ "name": "File1.pdf",
+ "file_size": 132385,
+ "google_file_id": "1TgBRHhX-JVc5mkREUmoCRO4Sta3diqjo",
+ "id": 265,
+ "path": "",
+ "sort_order": 265,
+ "title": null,
+ "updated_at": "2022-09-23 07:02:55"
+ },
+ {
+ "id":274,
+ "disk_name":"632d5a3a48955848077357.rar",
+ "name":"File2.rar",
+ "file_size":58231,
+ "content_type":"application\/x-rar",
+ "title":null,
+ "description":null,
+ "sort_order":274,
+ "created_at":"2022-09-23 07:03:29",
+ "updated_at":"2022-09-23 07:03:29",
+ "google_file_id":"1CD6P9fAmCRoZTmjc3JWi1ysVDLDSReId",
+ "path":"",
+ "extension":"rar"
+ }
+ ]
+ },
+ "status": 200
+}
\ No newline at end of file
diff --git a/app/public/mock/v1/teamsx.GET.json b/app/public/mock/v1/teams.GET.json
similarity index 100%
rename from app/public/mock/v1/teamsx.GET.json
rename to app/public/mock/v1/teams.GET.json
diff --git a/app/src/plugins/app/_config/App.vue b/app/src/plugins/app/_config/App.vue
index 1c065d1..a60847a 100644
--- a/app/src/plugins/app/_config/App.vue
+++ b/app/src/plugins/app/_config/App.vue
@@ -4,4 +4,85 @@
-
\ No newline at end of file
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/app/src/plugins/app/_config/main.ts b/app/src/plugins/app/_config/main.ts
index 3470fd8..c253810 100644
--- a/app/src/plugins/app/_config/main.ts
+++ b/app/src/plugins/app/_config/main.ts
@@ -48,7 +48,7 @@ const options: Options = {
'POST v1/auth/post': true,
'GET v1/master-tasks/(id)': true,
- 'GET v1/master-tasks': true,
+ // 'GET v1/master-tasks': true,
'POST v1/master-tasks/(id)': true,
'DELETE v1/master-tasks/(id)': true,
'POST v1/master-tasks': true,
@@ -63,14 +63,14 @@ const options: Options = {
'POST v1/tasks/(id)': true,
'DELETE v1/tasks/(id)': true,
- 'GET v1/teams/(id)': false,
+ // 'GET v1/teams/(id)': true,
'POST v1/teams/(id)': true,
'DELETE v1/teams/(id)': true,
// 'GET v1/teams': true,
- 'GET v1/teamsx': true,
+ // 'GET v1/teamsx': true,
'POST v1/teams': true,
- 'GET v1/employees': false,
+ // 'GET v1/employees': true,
'GET v1/search': true,
'POST v1/tasks': true,
diff --git a/app/src/plugins/app/_layout/app/_components/a-header.vue b/app/src/plugins/app/_layout/app/_components/a-header.vue
index 447e78d..0fc1d84 100644
--- a/app/src/plugins/app/_layout/app/_components/a-header.vue
+++ b/app/src/plugins/app/_layout/app/_components/a-header.vue
@@ -1,13 +1,13 @@
diff --git a/app/src/plugins/tm@dashboard/projects/_components/a-project-calendar.vue b/app/src/plugins/tm@dashboard/projects/_components/a-project-calendar.vue
index 2817816..d74bf66 100644
--- a/app/src/plugins/tm@dashboard/projects/_components/a-project-calendar.vue
+++ b/app/src/plugins/tm@dashboard/projects/_components/a-project-calendar.vue
@@ -1,18 +1,18 @@
-
+