diff --git a/app/src/plugins/app/_config/App.vue b/app/src/plugins/app/_config/App.vue
index b82e138..19efa9f 100644
--- a/app/src/plugins/app/_config/App.vue
+++ b/app/src/plugins/app/_config/App.vue
@@ -5,11 +5,11 @@
-
-
+
+
-
+
@@ -76,7 +76,7 @@ export default {
},
methods: {
- onTeamDeleted(team) {
+ onTeamUpdate(team) {
this.$events.emit('on-team-deleted', team)
},
diff --git a/app/src/plugins/app/_config/main.ts b/app/src/plugins/app/_config/main.ts
index 9192b5b..ccae222 100644
--- a/app/src/plugins/app/_config/main.ts
+++ b/app/src/plugins/app/_config/main.ts
@@ -47,8 +47,8 @@ const options: Options = {
'POST v1/auth/login': true,
'POST v1/auth/post': true,
- 'GET v1/master-tasks/(id)': true,
- 'GET v1/master-tasks': true,
+ // 'GET v1/master-tasks/(id)': true,
+ // 'GET v1/master-tasks': true,
'POST v1/master-tasks/(id)': true,
'DELETE v1/master-tasks/(id)': true,
'POST v1/master-tasks': true,
@@ -64,11 +64,11 @@ const options: Options = {
'DELETE v1/tasks/(id)': true,
// 'GET v1/teams/(id)': true,
- 'POST v1/teams/(id)': true,
- 'DELETE v1/teams/(id)': true,
+ // 'POST v1/teams/(id)': true,
+ // 'DELETE v1/teams/(id)': true,
// 'GET v1/teams': true,
// 'GET v1/teamsx': true,
- 'POST v1/teams': true,
+ // 'POST v1/teams': true,
// 'GET v1/employees': true,
'GET v1/search': true,
diff --git a/app/src/plugins/app/_theme/_components/buttons.sass b/app/src/plugins/app/_theme/_components/buttons.sass
new file mode 100644
index 0000000..5597018
--- /dev/null
+++ b/app/src/plugins/app/_theme/_components/buttons.sass
@@ -0,0 +1,18 @@
+.button.primary
+ background: #7f39fb !important
+ border-radius: 4px !important
+ color: #fff !important
+ height: 50px
+ width: 100%
+ flex: 0 0 auto
+
+.button.secondary
+ color: #6200EE
+ border: 1px solid #E0E0E0
+ border-radius: 4px
+ height: 50px
+ width: 203px
+
+.button.cancel
+ border: thin solid rgba(var(--v-border-color), var(--v-border-opacity)) !important
+ color: #7f39fb !important
\ No newline at end of file
diff --git a/app/src/plugins/app/_theme/_components/modals.sass b/app/src/plugins/app/_theme/_components/modals.sass
new file mode 100644
index 0000000..1f85865
--- /dev/null
+++ b/app/src/plugins/app/_theme/_components/modals.sass
@@ -0,0 +1,32 @@
+.modal-header
+ flex: 0 0 auto
+
+ .trash-icon
+ padding: 10px
+ background: rgba(0, 0, 0, 0.04)
+ margin-left: 12px
+ border-radius: 50%
+ cursor: pointer
+
+ .pencil-icon
+ padding: 10px
+ background: rgba(0, 0, 0, 0.04)
+ border-radius: 50%
+ cursor: pointer
+
+
+.modal-input
+ width: 100% !important
+ flex: 0 0 auto
+
+.modal-content
+ flex: 1 1 100%
+ margin: 10px 0
+ overflow-y: scroll
+
+.remove-input
+ pointer-events: auto
+ opacity: 2
+ position: absolute
+ left: 92%
+ top: 25%
\ No newline at end of file
diff --git a/app/src/plugins/app/_theme/_components/z-cancel-btn.sass b/app/src/plugins/app/_theme/_components/z-cancel-btn.sass
deleted file mode 100644
index 6729a38..0000000
--- a/app/src/plugins/app/_theme/_components/z-cancel-btn.sass
+++ /dev/null
@@ -1,3 +0,0 @@
-.cancel-btn
- border: thin solid rgba(var(--v-border-color), var(--v-border-opacity)) !important
- color: #7f39fb !important
\ No newline at end of file
diff --git a/app/src/plugins/app/_theme/_components/z-default-btn.sass b/app/src/plugins/app/_theme/_components/z-default-btn.sass
deleted file mode 100644
index 3b84a60..0000000
--- a/app/src/plugins/app/_theme/_components/z-default-btn.sass
+++ /dev/null
@@ -1,4 +0,0 @@
-.z-btn
- background: #7f39fb !important
- border-radius: 4px !important
- color: #fff !important
\ 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 2631e0f..999698f 100644
--- a/app/src/plugins/app/_theme/index.sass
+++ b/app/src/plugins/app/_theme/index.sass
@@ -1,13 +1,14 @@
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@100&display=swap')
@import './vuetify/v-dialog'
-@import './_components/z-default-btn'
-@import './_components/z-cancel-btn'
@import './date-picker'
@import './global'
@import '@/plugins/lib@auth/_theme/auth.theme'
+@import './_components/buttons'
+@import './_components/modals'
+
*
font-family: 'Roboto', sans-serif
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 21229f1..b5515ff 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
@@ -43,7 +43,7 @@ export default {
methods: {
async submit() {
- if (!(await this.v$.$validate())) return console.log(this.v$)
+ if (!(await this.v$.$validate())) return
try {
await this.$axios.post_data('v1/auth/reset', this.form)
diff --git a/app/src/plugins/lib@search/search/search.vue b/app/src/plugins/lib@search/search/search.vue
index fe5982e..9d71c2e 100644
--- a/app/src/plugins/lib@search/search/search.vue
+++ b/app/src/plugins/lib@search/search/search.vue
@@ -24,7 +24,6 @@ export default {
created() {
try {
this.searchResults = this.$axios.get_auth_data('v1/search')
- console.log(this.searchResults)
} catch (error) {
this.$toast.error(error)
}
diff --git a/app/src/plugins/tm@_utils/tm.utils.ts b/app/src/plugins/tm@_utils/tm.utils.ts
new file mode 100644
index 0000000..2fad043
--- /dev/null
+++ b/app/src/plugins/tm@_utils/tm.utils.ts
@@ -0,0 +1,19 @@
+import moment from 'moment'
+
+export default {
+ enrichEmployeesByFullName(employees) {
+ return employees.map(employee => ({...employee, _fullName: `${ employee.name } ${ employee.surname }`}))
+ },
+
+ formatDateTime(date) {
+ return moment(date).format('DD.MM.yyyy, HH:mm')
+ },
+
+ isBefore(date, compareTo = null) {
+ return moment(date).isBefore(moment(compareTo))
+ },
+
+ isAfter(date, compareTo = null) {
+ return moment(date).isAfter(moment(compareTo))
+ }
+}
\ No newline at end of file
diff --git a/app/src/plugins/tm@dashboard/projects/projects.vue b/app/src/plugins/tm@dashboard/projects/projects.vue
index d6d2b4f..c796d01 100644
--- a/app/src/plugins/tm@dashboard/projects/projects.vue
+++ b/app/src/plugins/tm@dashboard/projects/projects.vue
@@ -53,7 +53,7 @@ export default {
// format masterTasks to event format for calendar
events = events.map(event => {
- const color = this._stringToHexColor(`${event.project_code}${event.name}`)
+ const color = this._stringToHexColor(event.color)
return {
id: event.id,
@@ -81,7 +81,7 @@ export default {
try {
this.teams = await this.$axios.get_auth_data('v1/teams')
this.employees = await this.$axios.get_auth_data('v1/employees')
- this.masterTasks = await this.$axios.get_auth_data('v1/master-tasks')
+ this.masterTasks = await this.$axios.get_auth_data('v1/mastertasks')
} catch (error) {
this.masterTasks = {error}
}
@@ -98,19 +98,19 @@ export default {
},
_stringToHexColor(string) {
- let hash = 0;
+ let hash = 0
for (let i = 0; i < string.length; i++) {
- hash = string.charCodeAt(i) + ((hash << 5) - hash);
+ hash = string.charCodeAt(i) + ((hash << 5) - hash)
}
- let color = '#';
+ let color = '#'
for (let i = 0; i < 3; i++) {
- let value = (hash >> (i * 8)) & 0xFF;
- color += ('00' + value.toString(16)).substr(-2);
+ let value = (hash >> (i * 8)) & 0xFF
+ color += ('00' + value.toString(16)).substr(-2)
}
- return color;
+ return color
}
}
}
-
+
\ No newline at end of file
diff --git a/app/src/plugins/tm@dashboard/tasks/_components/a-tasks-filter.vue b/app/src/plugins/tm@dashboard/tasks/_components/a-tasks-filter.vue
index 07a0e32..9af6910 100644
--- a/app/src/plugins/tm@dashboard/tasks/_components/a-tasks-filter.vue
+++ b/app/src/plugins/tm@dashboard/tasks/_components/a-tasks-filter.vue
@@ -3,7 +3,7 @@