From ae33df38e49515f7207c3923b74d25dcefb9969e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matej=20Glasn=C3=A1k?= Date: Thu, 19 Jan 2023 12:14:48 +0100 Subject: [PATCH 1/6] [Auth] Changed min length of password to 12 as specified in tech spec --- .../plugins/lib@auth/login/_components/a-login-form.vue | 4 ++-- .../reset-password/_components/a-reset-password-form.vue | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/app/src/plugins/lib@auth/login/_components/a-login-form.vue b/app/src/plugins/lib@auth/login/_components/a-login-form.vue index bc112a6..68e341f 100644 --- a/app/src/plugins/lib@auth/login/_components/a-login-form.vue +++ b/app/src/plugins/lib@auth/login/_components/a-login-form.vue @@ -2,7 +2,7 @@ -
@@ -31,7 +31,7 @@ export default { return { form: { email: {required, email }, - password: {required, minLength: minLength(8)} + password: {required, minLength: minLength(12)} } } }, diff --git a/app/src/plugins/lib@auth/reset-password/_components/a-reset-password-form.vue b/app/src/plugins/lib@auth/reset-password/_components/a-reset-password-form.vue index fa0cb4e..5425445 100644 --- a/app/src/plugins/lib@auth/reset-password/_components/a-reset-password-form.vue +++ b/app/src/plugins/lib@auth/reset-password/_components/a-reset-password-form.vue @@ -4,9 +4,9 @@ - + - +
Zmeniť heslo @@ -35,8 +35,8 @@ export default { form: { code: { required, integer, minLength: minLength(6), maxLength: maxLength(6) }, email: { required, email }, - password: { required, minLength: minLength(8) }, - password_confirmation: { required, minLength: minLength(8), sameAs: sameAs(this.form.password)} + password: { required, minLength: minLength(12) }, + password_confirmation: { required, minLength: minLength(12), sameAs: sameAs(this.form.password)} } } }, From 012a9ec926df6c34f203b5406ed482b6acdd49ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matej=20Glasn=C3=A1k?= Date: Thu, 19 Jan 2023 12:22:57 +0100 Subject: [PATCH 2/6] . --- app/src/plugins/app/_layout/app/_components/a-header.vue | 2 +- app/src/plugins/lib@auth/login/_components/a-login-form.vue | 2 +- app/src/plugins/tm@profile/profile/my-profile.vue | 2 +- app/src/plugins/w/auth/auth.store.ts | 4 +++- app/src/plugins/w/axios/models/axios.ts | 4 ++++ 5 files changed, 10 insertions(+), 4 deletions(-) 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 6d4669f..c4eb833 100644 --- a/app/src/plugins/app/_layout/app/_components/a-header.vue +++ b/app/src/plugins/app/_layout/app/_components/a-header.vue @@ -85,7 +85,7 @@ export default { methods: { async logOut() { try { - await this.$store.dispatch('wAuth/logout') + await this.$store.dispatch('auth/logout') this.$router.push('/') this.$toast.success('Boli ste odhlásený') } catch (error) { diff --git a/app/src/plugins/lib@auth/login/_components/a-login-form.vue b/app/src/plugins/lib@auth/login/_components/a-login-form.vue index 68e341f..a3764cc 100644 --- a/app/src/plugins/lib@auth/login/_components/a-login-form.vue +++ b/app/src/plugins/lib@auth/login/_components/a-login-form.vue @@ -41,7 +41,7 @@ export default { if (!(await this.v$.$validate())) return console.log(this.v$) try { - await this.$axios.post_data('v1/auth/login', this.form) + await this.$store.dispatch('auth/login', this.form) this.$router.push({ name: 'Overview - Ongoing tasks'}) } catch (error) { this.$toast.error(error) diff --git a/app/src/plugins/tm@profile/profile/my-profile.vue b/app/src/plugins/tm@profile/profile/my-profile.vue index 20fe826..e4f56d9 100644 --- a/app/src/plugins/tm@profile/profile/my-profile.vue +++ b/app/src/plugins/tm@profile/profile/my-profile.vue @@ -99,7 +99,7 @@ export default { async updateUserInfo() { if (!(await this.v$.$validate())) return try { - await this.$store.dispatch('wAuth/updateUserInfo', this.user) + await this.$store.dispatch('auth/updateUserInfo', this.user) this.$toast.success('Profil bol úspešne zmenený') } catch (error) { diff --git a/app/src/plugins/w/auth/auth.store.ts b/app/src/plugins/w/auth/auth.store.ts index 1a378ed..5348e84 100644 --- a/app/src/plugins/w/auth/auth.store.ts +++ b/app/src/plugins/w/auth/auth.store.ts @@ -18,6 +18,8 @@ export default { state.user = data.user localStorage.setItem('wzo_vue_user_user', JSON.stringify(data.user)) } + + console.log(state) }, auth_error(state: any) { state.token = '' @@ -158,7 +160,7 @@ export default { return state.user }, token: (state: any) => { - return state.token + return (state.token && state.token != undefined) ? state.token : null } } } \ No newline at end of file diff --git a/app/src/plugins/w/axios/models/axios.ts b/app/src/plugins/w/axios/models/axios.ts index 492ef97..7eefda8 100644 --- a/app/src/plugins/w/axios/models/axios.ts +++ b/app/src/plugins/w/axios/models/axios.ts @@ -149,6 +149,10 @@ export default { _config(config: any) { if (config) console.error('NOT IMPLEMENTED') + if (!store.getters['auth/token']) { + return {headers: {}} + } + return { headers: { Authorization: `Bearer ${store.getters['auth/token']}` From a9d1532eaba333064ba855a6bd8b2e2bd52773f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Filip=20Kalu=C5=BEa?= Date: Thu, 19 Jan 2023 19:02:14 +0100 Subject: [PATCH 3/6] [timeline] zmena farby vikendu --- app/src/plugins/tm@dashboard/_components/z-timeline.vue | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/plugins/tm@dashboard/_components/z-timeline.vue b/app/src/plugins/tm@dashboard/_components/z-timeline.vue index 0f3835d..b490ec7 100644 --- a/app/src/plugins/tm@dashboard/_components/z-timeline.vue +++ b/app/src/plugins/tm@dashboard/_components/z-timeline.vue @@ -359,7 +359,8 @@ export default { border-radius: 16px .vuecal__cell-split--weekend - background-color: #F2E7FE !important + // background-color: #F2E7FE !important + background-color: rgba(255, 124, 124, .3) !important border-radius: 16px // EVENT From 0a842dcb320d80d915caa9e2c54c0c4a8fc7571d Mon Sep 17 00:00:00 2001 From: romankko2 Date: Fri, 20 Jan 2023 11:19:58 +0100 Subject: [PATCH 4/6] [subTask] v-select employee, [refactor], [masterTaskDetail] formattedDates --- app/package.json | 2 +- app/public/mock/v1/master-tasks/(id).GET.json | 6 +- app/src/locales/en.json | 9 + app/src/plugins/app/_config/router.ts | 15 +- .../app/_layout/app/_components/a-header.vue | 2 +- .../_layout/app/_components/a-sidemenu.vue | 12 +- .../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 - .../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 - .../_components/a-forgot-password-form.vue | 4 +- .../forgot-password/forgot-password.vue | 4 +- .../login/_components/a-login-form.vue | 6 +- app/src/plugins/lib@auth/login/login.vue | 2 +- .../_components/a-reset-password-form.vue | 8 +- .../reset-password/reset-password.vue | 4 +- .../_components/a-seach-result-task.vue | 55 +++ .../_components/a-seach-result-team.vue | 10 - .../_components/a-search-result-team.vue | 63 +++ app/src/plugins/lib@search/search/search.vue | 19 +- .../tm@modal/blocker/z-blocker-modal.vue | 18 +- .../master-task/z-master-task-modal.vue | 43 +- .../tm@modal/sub-task/z-sub-task-modal.vue | 328 ++++++++------- .../tm@modal/team/z-delete-team-modal.vue | 62 ++- .../plugins/tm@modal/team/z-team-modal.vue | 23 +- .../_components/z-tasks-search.vue | 17 +- .../teams/_components/a-teams-table.vue | 17 +- app/src/plugins/tm@overview/teams/teams.vue | 18 +- .../plugins/tm@profile/profile/my-profile.vue | 126 +++--- app/src/plugins/w/i18n/models/i18n.ts | 11 +- .../w/loadable/_components/w-loadable.vue | 26 +- 41 files changed, 558 insertions(+), 965 deletions(-) create mode 100644 app/src/locales/en.json delete mode 100644 app/src/plugins/app/_theme/_components/z-cancel-btn.css delete mode 100644 app/src/plugins/app/_theme/_components/z-cancel-btn.css.map delete mode 100644 app/src/plugins/app/_theme/_components/z-default-btn.css delete mode 100644 app/src/plugins/app/_theme/_components/z-default-btn.css.map delete mode 100644 app/src/plugins/app/_theme/date-picker.css delete mode 100644 app/src/plugins/app/_theme/date-picker.css.map delete mode 100644 app/src/plugins/app/_theme/global.css delete mode 100644 app/src/plugins/app/_theme/global.css.map delete mode 100644 app/src/plugins/app/_theme/vuetify/v-dialog.css delete mode 100644 app/src/plugins/app/_theme/vuetify/v-dialog.css.map delete mode 100644 app/src/plugins/app@vendor/vue-cal/scss/index.css delete mode 100644 app/src/plugins/app@vendor/vue-cal/scss/index.css.map delete mode 100644 app/src/plugins/app@vendor/vue-cal/styles.css delete mode 100644 app/src/plugins/app@vendor/vue-cal/styles.css.map delete mode 100644 app/src/plugins/lib@search/search/_components/a-seach-result-team.vue create mode 100644 app/src/plugins/lib@search/search/_components/a-search-result-team.vue diff --git a/app/package.json b/app/package.json index 834faf2..a71930f 100644 --- a/app/package.json +++ b/app/package.json @@ -13,7 +13,6 @@ "@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", @@ -23,6 +22,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", diff --git a/app/public/mock/v1/master-tasks/(id).GET.json b/app/public/mock/v1/master-tasks/(id).GET.json index 5687b64..807b819 100644 --- a/app/public/mock/v1/master-tasks/(id).GET.json +++ b/app/public/mock/v1/master-tasks/(id).GET.json @@ -3,10 +3,8 @@ "id": 1, "name": "Master task 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.", - "duration": 5400000, - "worked_time": 4400000, - "remaining_time": 1200000, - "time_worked": 0, + "duration": 128, + "worked_time": 133, "starts_at": "2022-05-10T00:00:00+00:00", "deadline": "2022-11-10T00:00:00+00:00", "is_finished": false, diff --git a/app/src/locales/en.json b/app/src/locales/en.json new file mode 100644 index 0000000..40e95e1 --- /dev/null +++ b/app/src/locales/en.json @@ -0,0 +1,9 @@ +{ + "Value is not a valid email address": "Value is not a valid email address", + "error": "chyba", + "Value is required": "Pole je povinné", + "This field should be at least 8 characters long": "Pole musí obsahovať aspoň 8 znakov", + "This field should be at least 6 characters long": "Pole musí obsahovať aspoň 6 znakov", + "This maximum length allowed is 6": "Pole musí obsahovať 6 znakov", + "The value must be equal to the other value": "Heslá sa nezhodujú" +} \ 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 60f530f..004bfa9 100644 --- a/app/src/plugins/app/_config/router.ts +++ b/app/src/plugins/app/_config/router.ts @@ -45,49 +45,50 @@ const routes: Array = [ { path: '/app/dashboard/tasks', name: 'Dashboard - Tasks', - meta: { title: 'Úlohy' }, + meta: { title: 'Tasks' }, component: () => import('@/plugins/tm@dashboard/tasks/tasks.vue') }, { path: '/app/dashboard/teams', name: 'Dashboard - Teams', - meta: { title: 'Tímové zobrazenie' }, + meta: { title: 'Teams Overview' }, component: () => import('@/plugins/tm@dashboard/teams/teams.vue') }, { path: '/app/dashboard/projects', name: 'Dashboard - Projects', - meta: { title: 'Projektové zobrazenie' }, + meta: { title: 'Projects overview' }, component: () => import('@/plugins/tm@dashboard/projects/projects.vue') }, { path: '/app/overview/unscheduled', name: 'Overview - Unscheduled tasks', - meta: { title: 'Nenaplánované úlohy' }, + meta: { title: 'Unscheduled tasks' }, component: () => import('@/plugins/tm@overview/tasks-unscheduled/tasks-unscheduled.vue') }, { path: '/app/overview/ongoing', name: 'Overview - Ongoing tasks', - meta: { title: 'Prebiehajúce úlohy' }, + meta: { title: 'Ongoing tasks' }, component: () => import('@/plugins/tm@overview/tasks-ongoing/tasks-ongoing.vue') }, { path: '/app/overview/teams', name: 'Overview - Teams', - meta: { title: 'Tímy' }, + meta: { title: 'Teams' }, component: () => import('@/plugins/tm@overview/teams/teams.vue') }, { path: '/app/dashboard/user', name: 'Dashboard - User', - meta: { title: 'Váš profil' }, + meta: { title: 'Profile' }, component: () => import('@/plugins/tm@profile/profile/my-profile.vue') }, { path: '/app/search', name: 'Search', + meta: { title: 'Search Results' }, 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 6d4669f..4f176bb 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 - + diff --git a/app/src/plugins/lib@auth/forgot-password/forgot-password.vue b/app/src/plugins/lib@auth/forgot-password/forgot-password.vue index 0eee93f..181024e 100644 --- a/app/src/plugins/lib@auth/forgot-password/forgot-password.vue +++ b/app/src/plugins/lib@auth/forgot-password/forgot-password.vue @@ -1,8 +1,8 @@ diff --git a/app/src/plugins/lib@auth/login/login.vue b/app/src/plugins/lib@auth/login/login.vue index bae170d..c896152 100644 --- a/app/src/plugins/lib@auth/login/login.vue +++ b/app/src/plugins/lib@auth/login/login.vue @@ -1,7 +1,7 @@