diff --git a/app/src/locales/en.json b/app/src/locales/en.json deleted file mode 100644 index b7ae363..0000000 --- a/app/src/locales/en.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "Chyba": "", - "Zadali ste neplatný email.": "" -} \ No newline at end of file diff --git a/app/src/locales/sk.json b/app/src/locales/sk.json index f93594f..1a3a939 100644 --- a/app/src/locales/sk.json +++ b/app/src/locales/sk.json @@ -1,4 +1,9 @@ { - "Value is not a valid email address": "Zadali ste neplatný email.", - "error": "chyba" + "Value is not a valid email address": "Zadali ste neplatný email", + "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/_components/a-delete-task-modal.vue b/app/src/plugins/app/_components/a-delete-task-modal.vue new file mode 100644 index 0000000..c1911f5 --- /dev/null +++ b/app/src/plugins/app/_components/a-delete-task-modal.vue @@ -0,0 +1,54 @@ + + + + + \ No newline at end of file diff --git a/app/src/plugins/app/_components/a-delete-team-modal.vue b/app/src/plugins/app/_components/a-delete-team-modal.vue index 1c32920..827e5aa 100644 --- a/app/src/plugins/app/_components/a-delete-team-modal.vue +++ b/app/src/plugins/app/_components/a-delete-team-modal.vue @@ -1,17 +1,17 @@ + + \ 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 dc3289d..ba0b7de 100644 --- a/app/src/plugins/app/_config/main.ts +++ b/app/src/plugins/app/_config/main.ts @@ -38,15 +38,8 @@ const options: Options = { ionic: { disabled: false }, - toast: { - disabled: true - }, i18n: { - disabled: true, languages: [ - { - title: 'English', flag: 'en', value: 'en' - }, { title: "Slovenský", flag: "sk", value: "sk" } @@ -57,6 +50,7 @@ const options: Options = { routes: { 'GET v1/auth/info': true, 'POST v1/auth/forgot': true, + 'POST v1/auth/reset': true, 'POST v1/auth/info': true, 'POST v1/auth/invalidate': true, 'POST v1/auth/login': true, @@ -89,17 +83,19 @@ const options: Options = { } } -createApp(App) +const app = createApp(App) .use(router) .use(store) .use(w, options) .use(IonicVue) .use(vuetify) - .use(wToast) - .use(i18n, options) + // .use(wToast) .use(VueCal) .use(loader, { color: '#6200EE' }) .use(vueCal) .mount('#app') + +// @ts-expect-error +export const $t = app.$i18n.t diff --git a/app/src/plugins/app/_config/router.ts b/app/src/plugins/app/_config/router.ts index fed166d..1a60f22 100644 --- a/app/src/plugins/app/_config/router.ts +++ b/app/src/plugins/app/_config/router.ts @@ -61,12 +61,12 @@ const routes: Array = [ { path: '/app/overview/unscheduled', name: 'Overview - Unscheduled tasks', - component: () => import('@/plugins/tm@overview/tasks-ongoing/tasks-ongoing.vue') + component: () => import('@/plugins/tm@overview/tasks-unscheduled/tasks-unscheduled.vue') }, { path: '/app/overview/ongoing', name: 'Overview - Ongoing tasks', - component: () => import('@/plugins/tm@overview/tasks-unscheduled/tasks-unscheduled.vue') + component: () => import('@/plugins/tm@overview/tasks-ongoing/tasks-ongoing.vue') }, { path: '/app/overview/teams', diff --git a/app/src/plugins/app/_theme/global.sass b/app/src/plugins/app/_theme/global.sass index 85c450a..4dd4d99 100644 --- a/app/src/plugins/app/_theme/global.sass +++ b/app/src/plugins/app/_theme/global.sass @@ -18,4 +18,7 @@ th width: 50% .v-card - padding: 35px !important \ No newline at end of file + padding: 35px !important + +.cursor-pointer:hover + cursor: pointer \ No newline at end of file diff --git a/app/src/plugins/app/_theme/index.sass b/app/src/plugins/app/_theme/index.sass index 5965790..32fdbc2 100644 --- a/app/src/plugins/app/_theme/index.sass +++ b/app/src/plugins/app/_theme/index.sass @@ -1,5 +1,7 @@ @import url('https://fonts.googleapis.com/css2?family=Roboto:wght@100&display=swap') +@import './vuetify/v-dialog' + @import './global' @import '@/plugins/lib@auth/_theme/auth.theme' diff --git a/app/src/plugins/app/_theme/vuetify/v-dialog.sass b/app/src/plugins/app/_theme/vuetify/v-dialog.sass new file mode 100644 index 0000000..e727cf4 --- /dev/null +++ b/app/src/plugins/app/_theme/vuetify/v-dialog.sass @@ -0,0 +1,4 @@ +.v-dialog + h1 + font-size: 22px + font-weight: 300 \ No newline at end of file diff --git a/app/src/plugins/lib@auth/_utils/error.utils.ts b/app/src/plugins/lib@auth/_utils/error.utils.ts index aadad2c..e334f02 100644 --- a/app/src/plugins/lib@auth/_utils/error.utils.ts +++ b/app/src/plugins/lib@auth/_utils/error.utils.ts @@ -1,7 +1,8 @@ +import { $t } from '@/plugins/app/_config/main' export default { parseErrors(errors) { // @ts-expect-error - return Object.values(errors).map(error => error?.$message).join(', ') + return Object.values(errors).map(error => $t(error?.$message)).join('. ') } } \ No newline at end of file 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 2ab6f3f..1b66e74 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 @@ -46,8 +46,8 @@ export default { if (!(await this.v$.$validate())) return console.log(this.v$) try { - await this.$axios.post_data('v1/auth/forgot', this.form) - this.$router.push({ name: 'Reset password' }) + await this.$axios.post_data('v1/auth/reset', this.form) + this.$router.push({ name: 'Login' }) } catch (error) { this.$toast.error(error.data.error) } diff --git a/app/src/plugins/tm@overview/tasks-ongoing/_components/a-ongoing-table.vue b/app/src/plugins/tm@overview/tasks-ongoing/_components/a-ongoing-table.vue index cef65fe..a2bff42 100644 --- a/app/src/plugins/tm@overview/tasks-ongoing/_components/a-ongoing-table.vue +++ b/app/src/plugins/tm@overview/tasks-ongoing/_components/a-ongoing-table.vue @@ -19,7 +19,9 @@
pencil-icon - trash-icon + trash-icon + +
@@ -28,12 +30,35 @@ diff --git a/app/src/plugins/tm@overview/tasks-unscheduled/_components/a-unscheduled-table.vue b/app/src/plugins/tm@overview/tasks-unscheduled/_components/a-unscheduled-table.vue index 2c6398b..a9eb9ec 100644 --- a/app/src/plugins/tm@overview/tasks-unscheduled/_components/a-unscheduled-table.vue +++ b/app/src/plugins/tm@overview/tasks-unscheduled/_components/a-unscheduled-table.vue @@ -17,7 +17,9 @@
pencil-icon - trash-icon + trash-icon + +
@@ -26,12 +28,35 @@ diff --git a/app/src/plugins/tm@overview/teams/_components/a-teams-table.vue b/app/src/plugins/tm@overview/teams/_components/a-teams-table.vue index 6babc53..c6998a2 100644 --- a/app/src/plugins/tm@overview/teams/_components/a-teams-table.vue +++ b/app/src/plugins/tm@overview/teams/_components/a-teams-table.vue @@ -12,22 +12,10 @@ {{ team.name }}
- pencil-icon - trash-icon - + pencil-icon + trash-icon + +
@@ -36,24 +24,35 @@ diff --git a/app/src/plugins/w/i18n/index.ts b/app/src/plugins/w/i18n/index.ts index 2c50ec7..a00f928 100644 --- a/app/src/plugins/w/i18n/index.ts +++ b/app/src/plugins/w/i18n/index.ts @@ -19,4 +19,4 @@ export default { app.use(i18n.vendorI18n) app.config.globalProperties.$w18n = i18n } -} +} \ No newline at end of file