From a5e2d0903d09826a5a28d91303e41b3a54ac313a Mon Sep 17 00:00:00 2001 From: Maximilian Oertel Date: Tue, 29 Oct 2024 16:12:31 +0000 Subject: [PATCH 1/5] Migrate to local primevue imports --- src/App.vue | 1 + src/components/CardAdministration.vue | 7 + src/components/ConsentModal.vue | 2 + src/components/ConsentPicker.vue | 10 +- src/components/CreateAdministration.vue | 7 + src/components/CreateAdministrator.vue | 5 +- src/components/CreateOrgs.vue | 7 + src/components/EditOrgsForm.vue | 2 + src/components/EditUsersForm.vue | 5 + src/components/EditVariantDialog.vue | 9 ++ src/components/GameTabs.vue | 9 +- src/components/LEVANTE/RegisterUsersInfo.vue | 4 + src/components/LanguageSelector.vue | 1 + src/components/ListOrgs.vue | 15 ++- src/components/ListUsers.vue | 3 + src/components/NavBar.vue | 5 +- src/components/OrgPicker.vue | 8 ++ src/components/ParticipantSidebar.vue | 1 + src/components/RoarDataTable.vue | 16 ++- src/components/RoarGameCard.vue | 5 + src/components/SkeletonTable.vue | 3 + src/components/TaskPicker.vue | 8 +- src/components/VariantCard.vue | 6 + src/components/auth/AuthEmailLink.vue | 7 +- src/components/auth/RegisterParent.vue | 8 +- src/components/auth/RegisterStudent.vue | 11 ++ src/components/auth/RegisterUser.vue | 7 + src/components/auth/RequestPermission.vue | 2 + src/components/auth/SignIn.vue | 5 + src/components/modals/EditUsers.vue | 7 + src/components/modals/RoarModal.vue | 6 +- .../reports/DistributionChartFacet.vue | 1 + .../reports/DistributionChartSupport.vue | 1 + .../reports/IndividualScoreReportTask.vue | 4 + src/components/reports/SubscoreTable.vue | 1 + src/components/reports/TableRoarScores.vue | 5 + src/components/reports/TableScoreTag.vue | 1 + src/components/reports/tasks/TaskReport.vue | 13 +- src/components/slots/FilterBar.vue | 1 + src/components/tasks/ManageTasks.vue | 7 + src/components/tasks/ManageVariants.vue | 7 + src/components/views/LinkAccountsView.vue | 2 + src/components/views/PasswordView.vue | 2 + src/components/views/UserInfoView.vue | 1 + src/containers/SessionTimer/SessionTimer.vue | 1 + src/pages/EnableCookies.vue | 7 +- src/pages/HomeAdministrator.vue | 7 + src/pages/HomeParticipant.vue | 5 +- src/pages/LEVANTE/RegisterUsers.vue | 5 + src/pages/LEVANTE/UserSurvey.vue | 1 + src/pages/MaintenancePage.vue | 3 + src/pages/ManageTasksVariants.vue | 2 + src/pages/NotFound.vue | 6 +- src/pages/ProgressReport.vue | 4 + src/pages/RegisterFamilyUsers.vue | 9 +- src/pages/RegisterStudents.vue | 15 ++- src/pages/RegisterUser.vue | 1 + src/pages/ScoreReport.vue | 15 ++- src/pages/SignIn.vue | 10 +- src/pages/StudentReport.vue | 3 + src/setup.js | 125 +----------------- 61 files changed, 290 insertions(+), 167 deletions(-) diff --git a/src/App.vue b/src/App.vue index 78d2ee980..5423ccfaa 100644 --- a/src/App.vue +++ b/src/App.vue @@ -28,6 +28,7 @@ import { computed, onBeforeMount, onMounted, ref, defineAsyncComponent } from 'v import { useRoute } from 'vue-router'; import { useRecaptchaProvider } from 'vue-recaptcha'; import { Head } from '@unhead/vue/components'; +import PvToast from 'primevue/toast'; import NavBar from '@/components/NavBar.vue'; const SessionTimer = defineAsyncComponent(() => import('@/containers/SessionTimer/SessionTimer.vue')); diff --git a/src/components/CardAdministration.vue b/src/components/CardAdministration.vue index d467a8266..cdbc822cd 100644 --- a/src/components/CardAdministration.vue +++ b/src/components/CardAdministration.vue @@ -160,6 +160,13 @@ import _mapValues from 'lodash/mapValues'; import _toPairs from 'lodash/toPairs'; import _without from 'lodash/without'; import _zip from 'lodash/zip'; +import PvButton from 'primevue/button'; +import PvColumn from 'primevue/column'; +import PvConfirmPopup from 'primevue/confirmpopup'; +import PvDataTable from 'primevue/datatable'; +import PvOverlayPanel from 'primevue/overlaypanel'; +import PvSpeedDial from 'primevue/speeddial'; +import PvTreeTable from 'primevue/treetable'; import { batchGetDocs } from '@/helpers/query/utils'; import { taskDisplayNames } from '@/helpers/reports'; import { removeEmptyOrgs } from '@/helpers'; diff --git a/src/components/ConsentModal.vue b/src/components/ConsentModal.vue index 406b675bd..1b43478e4 100644 --- a/src/components/ConsentModal.vue +++ b/src/components/ConsentModal.vue @@ -23,6 +23,8 @@ import { useI18n } from 'vue-i18n'; import * as Sentry from '@sentry/vue'; import { useConfirm } from 'primevue/useconfirm'; import { useToast } from 'primevue/usetoast'; +import PvConfirmDialog from 'primevue/confirmdialog'; +import PvToast from 'primevue/toast'; import { marked } from 'marked'; import DOMPurify from 'dompurify'; import _lowerCase from 'lodash/lowerCase'; diff --git a/src/components/ConsentPicker.vue b/src/components/ConsentPicker.vue index 353f0e49d..84a47b467 100644 --- a/src/components/ConsentPicker.vue +++ b/src/components/ConsentPicker.vue @@ -274,9 +274,17 @@ + + diff --git a/src/pages/HomeAdministrator.vue b/src/pages/HomeAdministrator.vue index 187ed48f5..27de81dc0 100644 --- a/src/pages/HomeAdministrator.vue +++ b/src/pages/HomeAdministrator.vue @@ -130,6 +130,13 @@ diff --git a/src/pages/NotFound.vue b/src/pages/NotFound.vue index 7284e228b..fd72b8ec0 100644 --- a/src/pages/NotFound.vue +++ b/src/pages/NotFound.vue @@ -12,6 +12,6 @@ - - - + diff --git a/src/pages/ProgressReport.vue b/src/pages/ProgressReport.vue index 5a02608ae..dda6ac113 100644 --- a/src/pages/ProgressReport.vue +++ b/src/pages/ProgressReport.vue @@ -168,6 +168,9 @@ import { useRouter } from 'vue-router'; import _get from 'lodash/get'; import _kebabCase from 'lodash/kebabCase'; import _map from 'lodash/map'; +import PvChart from 'primevue/chart'; +import PvMultiSelect from 'primevue/multiselect'; +import PvSelectButton from 'primevue/selectbutton'; import { useAuthStore } from '@/store/auth'; import useUserType from '@/composables/useUserType'; import useUserClaimsQuery from '@/composables/queries/useUserClaimsQuery'; @@ -184,6 +187,7 @@ import { getTitle } from '@/helpers/query/administrations'; import { setBarChartData, setBarChartOptions } from '@/helpers/plotting'; import { APP_ROUTES } from '@/constants/routes'; import { SINGULAR_ORG_TYPES } from '@/constants/orgTypes'; +import RoarDataTable from '@/components/RoarDataTable.vue'; const router = useRouter(); const authStore = useAuthStore(); diff --git a/src/pages/RegisterFamilyUsers.vue b/src/pages/RegisterFamilyUsers.vue index 8075e4d4f..2cad066e7 100644 --- a/src/pages/RegisterFamilyUsers.vue +++ b/src/pages/RegisterFamilyUsers.vue @@ -56,13 +56,16 @@