From 258b13c92afbd82eaa25788a5c3c3f522286783f Mon Sep 17 00:00:00 2001 From: romankko2 Date: Wed, 11 Jan 2023 12:10:24 +0100 Subject: [PATCH] [subTask, masterTask detail-modal] --- app/package-lock.json | 26 ++ app/package.json | 1 + app/public/mock/v1/master-tasks/(id).GET.json | 39 +- app/public/mock/v1/tasks/(id).GET.json | 60 ++- app/src/plugins/app/_config/router.ts | 16 +- .../app/_layout/app/_components/a-header.vue | 5 +- .../app/_theme/_components/z-cancel-btn.css | 4 + .../_theme/_components/z-cancel-btn.css.map | 1 + .../app/_theme/_components/z-default-btn.css | 5 + .../_theme/_components/z-default-btn.css.map | 1 + app/src/plugins/app/_theme/date-picker.css | 24 ++ .../plugins/app/_theme/date-picker.css.map | 1 + app/src/plugins/app/_theme/global.css | 79 ++++ app/src/plugins/app/_theme/global.css.map | 1 + app/src/plugins/app/_theme/global.sass | 23 + .../plugins/app/_theme/vuetify/v-dialog.css | 4 + .../app/_theme/vuetify/v-dialog.css.map | 1 + .../plugins/app@vendor/vue-cal/scss/index.css | 94 +++++ .../app@vendor/vue-cal/scss/index.css.map | 1 + app/src/plugins/app@vendor/vue-cal/styles.css | 396 ++++++++++++++++++ .../plugins/app@vendor/vue-cal/styles.css.map | 1 + .../plugins/lib@auth/_theme/auth.theme.css | 93 ++++ .../lib@auth/_theme/auth.theme.css.map | 1 + .../_components/a-seach-result-team.vue | 10 + app/src/plugins/lib@search/search/search.vue | 36 +- .../_components/a-project-calendar.vue | 42 +- .../projects/_components/a-project-filter.vue | 2 +- .../tm@dashboard/projects/projects.vue | 3 +- .../tasks/_components/z-timeline.vue | 21 +- .../master-task/z-master-task-modal.vue | 248 ++++++++++- .../tm@modal/sub-task/z-sub-task-modal.vue | 314 ++++++++++++-- 31 files changed, 1465 insertions(+), 88 deletions(-) create mode 100644 app/src/plugins/app/_theme/_components/z-cancel-btn.css create mode 100644 app/src/plugins/app/_theme/_components/z-cancel-btn.css.map create mode 100644 app/src/plugins/app/_theme/_components/z-default-btn.css create mode 100644 app/src/plugins/app/_theme/_components/z-default-btn.css.map create mode 100644 app/src/plugins/app/_theme/date-picker.css create mode 100644 app/src/plugins/app/_theme/date-picker.css.map create mode 100644 app/src/plugins/app/_theme/global.css create mode 100644 app/src/plugins/app/_theme/global.css.map create mode 100644 app/src/plugins/app/_theme/vuetify/v-dialog.css create mode 100644 app/src/plugins/app/_theme/vuetify/v-dialog.css.map create mode 100644 app/src/plugins/app@vendor/vue-cal/scss/index.css create mode 100644 app/src/plugins/app@vendor/vue-cal/scss/index.css.map create mode 100644 app/src/plugins/app@vendor/vue-cal/styles.css create mode 100644 app/src/plugins/app@vendor/vue-cal/styles.css.map create mode 100644 app/src/plugins/lib@auth/_theme/auth.theme.css create mode 100644 app/src/plugins/lib@auth/_theme/auth.theme.css.map diff --git a/app/package-lock.json b/app/package-lock.json index 6c52103..4542f5b 100644 --- a/app/package-lock.json +++ b/app/package-lock.json @@ -12,6 +12,7 @@ "@capacitor/preferences": "^4.0.2", "@fullcalendar/core": "^6.0.2", "@fullcalendar/daygrid": "^6.0.2", + "@fullcalendar/interaction": "6.0.2", "@fullcalendar/vue3": "^6.0.2", "@ionic/vue": "^6.3.6", "@mdi/font": "5.9.55", @@ -22,6 +23,7 @@ "axios-auth-refresh": "^3.3.4", "core-js": "^3.8.3", "date-fns": "^2.29.3", + "lodash-es": "^4.17.21", "mitt": "^2.1.0", "moment": "^2.29.4", "node-polyfill-webpack-plugin": "^2.0.1", @@ -1869,6 +1871,14 @@ "@fullcalendar/core": "~6.0.2" } }, + "node_modules/@fullcalendar/interaction": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/@fullcalendar/interaction/-/interaction-6.0.2.tgz", + "integrity": "sha512-RPWWCp6wdzVCc3XdcBUZuduFGX/mB8OrV2xBF5wrGFbGAZE3OYuEPcVnLF1SsC+pJVntG6z1fL5aQ/OM8nul9Q==", + "peerDependencies": { + "@fullcalendar/core": "~6.0.2" + } + }, "node_modules/@fullcalendar/vue3": { "version": "6.0.2", "resolved": "https://registry.npmjs.org/@fullcalendar/vue3/-/vue3-6.0.2.tgz", @@ -8423,6 +8433,11 @@ "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==", "dev": true }, + "node_modules/lodash-es": { + "version": "4.17.21", + "resolved": "https://registry.npmjs.org/lodash-es/-/lodash-es-4.17.21.tgz", + "integrity": "sha512-mKnC+QJ9pWVzv+C4/U3rRsHapFfHvQFoFB92e52xeyGMcX6/OlIl78je1u8vePzYZSkkogMPJ2yjxxsb89cxyw==" + }, "node_modules/lodash.debounce": { "version": "4.0.8", "resolved": "https://registry.npmjs.org/lodash.debounce/-/lodash.debounce-4.0.8.tgz", @@ -15031,6 +15046,12 @@ "integrity": "sha512-OoHo+HbKmunq2hy5K6T2390DmSwXIENxHBeKFPlUXHK48xD/zXQI3N1zRlZRd83+Yrq+vDF6l8ObO9PMu2leJw==", "requires": {} }, + "@fullcalendar/interaction": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/@fullcalendar/interaction/-/interaction-6.0.2.tgz", + "integrity": "sha512-RPWWCp6wdzVCc3XdcBUZuduFGX/mB8OrV2xBF5wrGFbGAZE3OYuEPcVnLF1SsC+pJVntG6z1fL5aQ/OM8nul9Q==", + "requires": {} + }, "@fullcalendar/vue3": { "version": "6.0.2", "resolved": "https://registry.npmjs.org/@fullcalendar/vue3/-/vue3-6.0.2.tgz", @@ -19997,6 +20018,11 @@ "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==", "dev": true }, + "lodash-es": { + "version": "4.17.21", + "resolved": "https://registry.npmjs.org/lodash-es/-/lodash-es-4.17.21.tgz", + "integrity": "sha512-mKnC+QJ9pWVzv+C4/U3rRsHapFfHvQFoFB92e52xeyGMcX6/OlIl78je1u8vePzYZSkkogMPJ2yjxxsb89cxyw==" + }, "lodash.debounce": { "version": "4.0.8", "resolved": "https://registry.npmjs.org/lodash.debounce/-/lodash.debounce-4.0.8.tgz", diff --git a/app/package.json b/app/package.json index eda8842..834faf2 100644 --- a/app/package.json +++ b/app/package.json @@ -13,6 +13,7 @@ "@fullcalendar/core": "^6.0.2", "@fullcalendar/daygrid": "^6.0.2", "@fullcalendar/vue3": "^6.0.2", + "lodash-es": "^4.17.21", "@ionic/vue": "^6.3.6", "@mdi/font": "5.9.55", "@vuelidate/core": "^2.0.0", diff --git a/app/public/mock/v1/master-tasks/(id).GET.json b/app/public/mock/v1/master-tasks/(id).GET.json index 1bb539a..5687b64 100644 --- a/app/public/mock/v1/master-tasks/(id).GET.json +++ b/app/public/mock/v1/master-tasks/(id).GET.json @@ -2,8 +2,10 @@ "data": { "id": 1, "name": "Master task 1", - "description": "Nejaky popis tasku", + "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, + "worked_time": 4400000, + "remaining_time": 1200000, "time_worked": 0, "starts_at": "2022-05-10T00:00:00+00:00", "deadline": "2022-11-10T00:00:00+00:00", @@ -17,7 +19,6 @@ "name": "Rastislav", "surname": "Kuttner" }, - { "id": 4, "name": "Viliam", @@ -30,8 +31,38 @@ "surname": "Gajdos" } ], - "files": [] - + "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/tasks/(id).GET.json b/app/public/mock/v1/tasks/(id).GET.json index 3ecb5b3..d0486a2 100644 --- a/app/public/mock/v1/tasks/(id).GET.json +++ b/app/public/mock/v1/tasks/(id).GET.json @@ -1,13 +1,37 @@ { "data": { "id": 1, - "description": "Nejaky popis tasku", + "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, "duration": 1000000, + "remaining_time": 150, "is_finished": false, "starts_at": "2022-11-10T11:00:00+00:00", "ends_at": "2022-11-12T16:00:00+00:00", @@ -30,8 +54,38 @@ "surname": "Spinelli" } ], - "files": [] - + "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/src/plugins/app/_config/router.ts b/app/src/plugins/app/_config/router.ts index 905e96f..60f530f 100644 --- a/app/src/plugins/app/_config/router.ts +++ b/app/src/plugins/app/_config/router.ts @@ -85,17 +85,11 @@ const routes: Array = [ meta: { title: 'Váš profil' }, component: () => import('@/plugins/tm@profile/profile/my-profile.vue') }, - // { - // path: '/app/search/:searchText', - // redirect: to => { - // return { path: '/app/search', query: { q: to.params.searchText } } - // }, - // }, - // { - // path: '/app/search', - // name: 'Search', - // component: () => import('@/plugins/lib@search/search/search.vue') - // } + { + path: '/app/search', + name: 'Search', + component: () => import('@/plugins/lib@search/search/search.vue') + } ] } ] 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 ee022b9..b6627e1 100644 --- a/app/src/plugins/app/_layout/app/_components/a-header.vue +++ b/app/src/plugins/app/_layout/app/_components/a-header.vue @@ -7,7 +7,7 @@
search-icon - + + + \ No newline at end of file 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 bd67de0..dea2f51 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,17 +1,25 @@ \ No newline at end of file diff --git a/app/src/plugins/tm@modal/sub-task/z-sub-task-modal.vue b/app/src/plugins/tm@modal/sub-task/z-sub-task-modal.vue index 8afe71a..292633a 100644 --- a/app/src/plugins/tm@modal/sub-task/z-sub-task-modal.vue +++ b/app/src/plugins/tm@modal/sub-task/z-sub-task-modal.vue @@ -1,9 +1,9 @@