From 2af53b16b69e8bd4225167a50f49d94dd4773674 Mon Sep 17 00:00:00 2001 From: konrad Date: Mon, 2 Nov 2020 20:47:31 +0000 Subject: [PATCH] Performance improvements (#288) Only include needed parts from lodash Don't prefetch Co-authored-by: kolaente Reviewed-on: https://kolaente.dev/vikunja/frontend/pulls/288 Co-Authored-By: konrad Co-Committed-By: konrad --- src/components/namespace/namespace-search.vue | 2 +- src/components/sharing/userTeam.vue | 2 +- src/components/tasks/edit-task.vue | 2 +- src/components/tasks/partials/comments.vue | 2 +- .../tasks/partials/editAssignees.vue | 4 ++-- src/components/tasks/partials/editLabels.vue | 4 ++-- src/components/tasks/partials/listSearch.vue | 2 +- src/components/tasks/partials/relatedTasks.vue | 2 +- src/models/abstractModel.js | 4 +++- src/models/teamList.js | 2 +- src/models/teamMember.js | 2 +- src/models/teamNamespace.js | 2 +- src/models/userList.js | 2 +- src/models/userNamespace.js | 2 +- src/router/index.js | 18 +++++++++--------- src/services/abstractService.js | 3 ++- src/views/filters/CreateSavedFilter.vue | 2 +- src/views/filters/EditSavedFilter.vue | 2 +- src/views/labels/ListLabels.vue | 2 +- src/views/list/EditList.vue | 2 +- src/views/namespaces/EditNamespace.vue | 2 +- src/views/tasks/TaskDetailView.vue | 2 +- src/views/teams/EditTeam.vue | 4 ++-- 23 files changed, 37 insertions(+), 34 deletions(-) diff --git a/src/components/namespace/namespace-search.vue b/src/components/namespace/namespace-search.vue index 59474f19..3740fef3 100644 --- a/src/components/namespace/namespace-search.vue +++ b/src/components/namespace/namespace-search.vue @@ -38,7 +38,7 @@ export default { }, components: { multiselect: () => ({ - component: import(/* webpackPrefetch: true *//* webpackChunkName: "multiselect" */ 'vue-multiselect'), + component: import(/* webpackChunkName: "multiselect" */ 'vue-multiselect'), loading: LoadingComponent, error: ErrorComponent, timeout: 60000, diff --git a/src/components/sharing/userTeam.vue b/src/components/sharing/userTeam.vue index 77fd2557..b94f0f28 100644 --- a/src/components/sharing/userTeam.vue +++ b/src/components/sharing/userTeam.vue @@ -173,7 +173,7 @@ export default { }, components: { multiselect: () => ({ - component: import(/* webpackPrefetch: true *//* webpackChunkName: "multiselect" */ 'vue-multiselect'), + component: import(/* webpackChunkName: "multiselect" */ 'vue-multiselect'), loading: LoadingComponent, error: ErrorComponent, timeout: 60000, diff --git a/src/components/tasks/edit-task.vue b/src/components/tasks/edit-task.vue index fadbebea..479f6a6b 100644 --- a/src/components/tasks/edit-task.vue +++ b/src/components/tasks/edit-task.vue @@ -199,7 +199,7 @@ export default { PrioritySelect, flatPickr, editor: () => ({ - component: import(/* webpackPrefetch: true *//* webpackChunkName: "editor" */ '../../components/input/editor'), + component: import(/* webpackChunkName: "editor" */ '../../components/input/editor'), loading: LoadingComponent, error: ErrorComponent, timeout: 60000, diff --git a/src/components/tasks/partials/comments.vue b/src/components/tasks/partials/comments.vue index 1126900c..f25e3060 100644 --- a/src/components/tasks/partials/comments.vue +++ b/src/components/tasks/partials/comments.vue @@ -83,7 +83,7 @@ export default { name: 'comments', components: { editor: () => ({ - component: import(/* webpackPrefetch: true *//* webpackChunkName: "editor" */ '../../input/editor'), + component: import(/* webpackChunkName: "editor" */ '../../input/editor'), loading: LoadingComponent, error: ErrorComponent, timeout: 60000, diff --git a/src/components/tasks/partials/editAssignees.vue b/src/components/tasks/partials/editAssignees.vue index 57473fc8..12017254 100644 --- a/src/components/tasks/partials/editAssignees.vue +++ b/src/components/tasks/partials/editAssignees.vue @@ -36,7 +36,7 @@