From d78470062dabfa66f8c89a9f6fd0494ec7c19fdb Mon Sep 17 00:00:00 2001 From: Sam Date: Sat, 23 Oct 2021 15:29:39 +0200 Subject: [PATCH] Client - register globally some custom components --- fittrackee_client/src/App.vue | 2 -- .../src/components/Common/CustomTextArea.vue | 2 +- .../src/components/Common/Modal.vue | 6 ------ .../src/components/Dashboard/UserMonthStats.vue | 2 -- .../Dashboard/UserRecords/RecordsCard.vue | 2 -- fittrackee_client/src/components/NavBar.vue | 2 -- .../User/PasswordReset/PasswordResetForm.vue | 2 -- .../User/ProfileEdition/UserInfosEdition.vue | 8 -------- .../User/ProfileEdition/UserPictureEdition.vue | 2 -- .../ProfileEdition/UserPreferencesEdition.vue | 4 ---- .../components/User/ProfileEdition/index.vue | 2 -- .../src/components/User/UserAuthForm.vue | 6 ------ .../src/components/Workout/WorkoutChart.vue | 2 -- .../components/Workout/WorkoutDetail/index.vue | 4 ---- .../src/components/Workout/WorkoutEdition.vue | 10 ---------- .../src/components/Workout/WorkoutNotes.vue | 5 ----- .../src/components/Workout/WorkoutSegments.vue | 4 ---- fittrackee_client/src/custom-components.ts | 17 +++++++++++++++++ fittrackee_client/src/main.ts | 10 ++++++++-- fittrackee_client/src/views/DashBoard.vue | 2 -- fittrackee_client/src/views/StatisticsView.vue | 2 -- 21 files changed, 26 insertions(+), 70 deletions(-) create mode 100644 fittrackee_client/src/custom-components.ts diff --git a/fittrackee_client/src/App.vue b/fittrackee_client/src/App.vue index 379ec7aa..3740c68f 100644 --- a/fittrackee_client/src/App.vue +++ b/fittrackee_client/src/App.vue @@ -47,7 +47,6 @@ onMounted, } from 'vue' - import Loader from '@/components/Common/Loader.vue' import Footer from '@/components/Footer.vue' import NavBar from '@/components/NavBar.vue' import NoConfig from '@/components/NoConfig.vue' @@ -74,7 +73,6 @@ name: 'App', components: { Footer, - Loader, NavBar, NoConfig, }, diff --git a/fittrackee_client/src/components/Common/CustomTextArea.vue b/fittrackee_client/src/components/Common/CustomTextArea.vue index ce7dd858..7ebbb018 100644 --- a/fittrackee_client/src/components/Common/CustomTextArea.vue +++ b/fittrackee_client/src/components/Common/CustomTextArea.vue @@ -18,7 +18,7 @@ import { defineComponent, ref, watch } from 'vue' export default defineComponent({ - name: 'CustomTextarea', + name: 'CustomTextArea', props: { charLimit: { type: Number, diff --git a/fittrackee_client/src/components/Common/Modal.vue b/fittrackee_client/src/components/Common/Modal.vue index e7befef4..bebc35ec 100644 --- a/fittrackee_client/src/components/Common/Modal.vue +++ b/fittrackee_client/src/components/Common/Modal.vue @@ -25,17 +25,11 @@