From 5b950ace6b52946a872949ea65f728b14e6a419b Mon Sep 17 00:00:00 2001 From: Richard Tibbles Date: Wed, 4 Dec 2024 12:15:13 -0800 Subject: [PATCH] Fix all unused properties linting errors. --- .../src/views/BloomPubRendererIndex.vue | 2 - .../assignments/AssignmentCopyModal.vue | 2 + .../LearnerSummaryPage/LearnerHeader.vue | 8 --- .../ContentCardList.vue | 9 +-- .../CreateExamPage/CreateQuizSection.vue | 8 --- .../CreateExamPage/QuestionListPreview.vue | 1 - .../CreateExamPage/ReplaceQuestions.vue | 20 ------ .../CreateExamPage/ResourceSelection.vue | 13 ---- .../quizzes/CreateExamPage/SectionEditor.vue | 23 ------- .../quizzes/CreateExamPage/SectionOrder.vue | 62 +------------------ .../src/views/quizzes/ExamsRootPage.vue | 1 - .../views/quizzes/QuizSummaryPage/index.vue | 13 ++-- .../views/quizzes/reports/QuizPreviewPage.vue | 7 ++- .../ManageChannelContentsPage/index.vue | 5 +- .../src/views/ManageContentPage/index.vue | 5 +- .../src/views/SelectContentPage/index.vue | 5 +- .../assets/src/views/EpubRendererIndex.vue | 2 - .../src/views/Html5AppRendererIndex.vue | 2 - .../views/DownloadsList/index.vue | 3 +- .../src/my_downloads/views/MyDownloads.vue | 14 +---- .../learn/assets/src/views/ContentPage.vue | 2 - .../ExploreLibrariesPage/LibraryItem.vue | 6 +- .../src/views/ExploreLibrariesPage/index.vue | 3 - .../learn/assets/src/views/HomePage/index.vue | 1 - .../assets/src/views/LearningActivityBar.vue | 2 +- .../src/views/LibraryPage/OtherLibraries.vue | 2 - .../LibraryPage/ResumableContentGrid.vue | 17 ----- .../src/views/LibraryPage/UnPinnedDevices.vue | 7 --- .../assets/src/views/LibraryPage/index.vue | 17 +---- .../src/views/ResourceSyncingUiAlert.vue | 1 - .../assets/src/views/SearchResultsGrid.vue | 5 -- .../assets/src/views/StorageNotification.vue | 11 +--- .../assets/src/views/TopicsContentPage.vue | 5 +- .../assets/src/views/TopicsPage/index.vue | 2 - .../assets/src/views/MediaPlayerIndex.vue | 1 - .../assets/src/views/PdfRendererIndex.vue | 2 - .../assets/src/views/PerseusRendererIndex.vue | 4 +- .../assets/src/views/LoadingTaskPage.vue | 6 +- .../src/views/SlideshowRendererComponent.vue | 11 ---- .../user_auth/assets/src/views/AuthBase.vue | 4 +- .../MergeAccountDialog/index.vue | 1 - .../MergeDifferentAccounts/index.vue | 1 - .../views/ChangeFacility/MergeFacility.vue | 1 - .../views/ChangeFacility/SelectFacility.vue | 14 +---- .../AccordionSelectGroup.vue | 58 ----------------- .../CategorySearchModal/index.vue | 7 --- .../components/SearchFiltersPanel/index.vue | 2 - .../SyncSchedule/ManageSyncSchedule.vue | 1 - .../FacilityAdminCredentialsForm.vue | 5 +- .../SelectDeviceForm.vue | 3 +- .../userAccounts/FullNameTextbox.vue | 4 +- .../userAccounts/PasswordTextbox.vue | 8 ++- .../userAccounts/UsernameTextbox.vue | 4 +- .../components/pages/AppBarPage/index.vue | 3 - 54 files changed, 63 insertions(+), 363 deletions(-) diff --git a/kolibri/plugins/bloompub_viewer/assets/src/views/BloomPubRendererIndex.vue b/kolibri/plugins/bloompub_viewer/assets/src/views/BloomPubRendererIndex.vue index 44daf47b381..ea343cc186a 100644 --- a/kolibri/plugins/bloompub_viewer/assets/src/views/BloomPubRendererIndex.vue +++ b/kolibri/plugins/bloompub_viewer/assets/src/views/BloomPubRendererIndex.vue @@ -118,7 +118,6 @@ } return {}; }, - /* eslint-disable vue/no-unused-properties */ /** * @public * Note: the default duration historically for HTML5 Apps has been 5 min @@ -126,7 +125,6 @@ defaultDuration() { return 300; }, - /* eslint-enable vue/no-unused-properties */ }, watch: { userData(newValue) { diff --git a/kolibri/plugins/coach/assets/src/views/common/assignments/AssignmentCopyModal.vue b/kolibri/plugins/coach/assets/src/views/common/assignments/AssignmentCopyModal.vue index 549aed44e9c..d32250c06b6 100644 --- a/kolibri/plugins/coach/assets/src/views/common/assignments/AssignmentCopyModal.vue +++ b/kolibri/plugins/coach/assets/src/views/common/assignments/AssignmentCopyModal.vue @@ -58,7 +58,9 @@ const Stages = { SELECT_CLASSROOM: 'SELECT_CLASSROOM', + /* eslint-disable vue/no-unused-properties */ SELECT_GROUPS: 'SELECT_GROUPS', + /* eslint-enable */ }; export default { diff --git a/kolibri/plugins/coach/assets/src/views/learners/LearnerSummaryPage/LearnerHeader.vue b/kolibri/plugins/coach/assets/src/views/learners/LearnerSummaryPage/LearnerHeader.vue index c2e8a6527b1..fa2bcddef0c 100644 --- a/kolibri/plugins/coach/assets/src/views/learners/LearnerSummaryPage/LearnerHeader.vue +++ b/kolibri/plugins/coach/assets/src/views/learners/LearnerSummaryPage/LearnerHeader.vue @@ -113,7 +113,6 @@ import commonCoreStrings from 'kolibri/uiText/commonCoreStrings'; import commonCoach from '../../common'; - import { useCoachTabs } from '../../../composables/useCoachTabs'; import ReportsControls from '../../common/ReportsControls'; export default { @@ -122,13 +121,6 @@ ReportsControls, }, mixins: [commonCoach, commonCoreStrings], - setup() { - const { saveTabsClick, wereTabsClickedRecently } = useCoachTabs(); - return { - saveTabsClick, - wereTabsClickedRecently, - }; - }, computed: { learner() { return this.learnerMap[this.$route.params.learnerId]; diff --git a/kolibri/plugins/coach/assets/src/views/lessons/LessonResourceSelectionPage/ContentCardList.vue b/kolibri/plugins/coach/assets/src/views/lessons/LessonResourceSelectionPage/ContentCardList.vue index f562d89a7ce..60523dd3bfd 100644 --- a/kolibri/plugins/coach/assets/src/views/lessons/LessonResourceSelectionPage/ContentCardList.vue +++ b/kolibri/plugins/coach/assets/src/views/lessons/LessonResourceSelectionPage/ContentCardList.vue @@ -88,7 +88,6 @@