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..447e78d 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 @@ @@ -31,7 +31,7 @@ export default { return { form: { email: {required, email }, - password: {required, minLength: minLength(8)} + password: {required, minLength: minLength(12)} } } }, @@ -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/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 @@