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 f887d43b856..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 @@ - `, - }, - - // a method used in a template identifier - { - filename: 'test.vue', - code: ` - - - - `, - }, - - // methods used in a template expression - { - filename: 'test.vue', - code: ` - - - - `, - }, - - // a method used in v-if - { - filename: 'test.vue', - code: ` - - - - `, - }, - - // a method used in v-for - { - filename: 'test.vue', - code: ` - - - - `, - }, - - // a method used in v-html - { - filename: 'test.vue', - code: ` - - - - `, - }, - - // a method passed in a component - { - filename: 'test.vue', - code: ` - - - - `, - }, - - // a method used in v-on - { - filename: 'test.vue', - code: ` - - - - `, - }, - - // a method used in a watcher (string method name) - { - filename: 'test.vue', - code: ` - - `, - }, - - // a public method - { - filename: 'test.vue', - code: ` - - `, - }, - - // a method accessed via instance parameter in `beforeRouteEnter` - { - filename: 'test.vue', - code: ` - - `, - }, - ], - - invalid: [ - // unused method - { - filename: 'test.vue', - code: ` - - - - `, - errors: [ - { - message: - 'Unused method found: "getCount". If the method is supposed to be public, you might have forgotten to add a @public tag.', - line: 9, - }, - ], - }, - ], -}); diff --git a/packages/kolibri-common/components/SearchFiltersPanel/AccordionSelectGroup.vue b/packages/kolibri-common/components/SearchFiltersPanel/AccordionSelectGroup.vue index 8355d2d201d..aaa22652d4f 100644 --- a/packages/kolibri-common/components/SearchFiltersPanel/AccordionSelectGroup.vue +++ b/packages/kolibri-common/components/SearchFiltersPanel/AccordionSelectGroup.vue @@ -194,19 +194,15 @@ availableLanguages, availableLibraryCategories, searchableLabels, - activeSearchTerms, } = injectBaseSearch(); return { availableResourcesNeeded, - activeSearchTerms, availableGradeLevels, availableAccessibilityOptions, availableLanguages, availableLibraryCategories, searchableLabels, - // This color is not in KDS but was specifically requested in the design - //selectedHighlightColor: '#ECF0FE', }; }, props: { @@ -228,18 +224,6 @@ }, }, computed: { - availableNeeds() { - if (this.searchableLabels) { - const needs = {}; - for (const key of this.searchableLabels.learner_needs) { - const root = key.split('.')[0]; - needs[root] = true; - needs[key] = true; - } - return needs; - } - return null; - }, needsOptionsList() { return Object.keys(this.availableResourcesNeeded).map(k => { const val = this.availableResourcesNeeded[k]; @@ -275,9 +259,6 @@ }; }); }, - enabledLanguageOptions() { - return this.languageOptionsList.filter(l => !l.disabled); - }, accessibilityOptionsList() { return this.availableAccessibilityOptions.map(key => { const value = AccessibilityCategories[key]; @@ -289,9 +270,6 @@ }; }); }, - enabledAccessibilityOptions() { - return this.accessibilityOptionsList.filter(a => !a.disabled); - }, contentLevelOptions() { return this.availableGradeLevels.map(key => { const value = ContentLevels[key]; @@ -312,42 +290,6 @@ }; }); }, - enabledContentLevels() { - return this.contentLevelOptions.filter(c => !c.disabled); - }, - langId() { - return Object.keys(this.value.languages)[0]; - }, - accessId() { - return Object.keys(this.value.accessibility_labels)[0]; - }, - selectedLanguage() { - if (!this.langId && this.enabledLanguageOptions.length === 1) { - return this.enabledLanguageOptions[0]; - } - return this.languageOptionsList.find(o => o.value === this.langId) || {}; - }, - selectedAccessibilityFilter() { - if (!this.accessId && this.enabledAccessibilityOptions.length === 1) { - return this.enabledAccessibilityOptions[0]; - } - return this.accessibilityOptionsList.find(o => o.value === this.accessId) || {}; - }, - levelId() { - return Object.keys(this.value.grade_levels)[0]; - }, - selectedLevel() { - if (!this.levelId && this.enabledContentLevels.length === 1) { - return this.enabledContentLevels[0]; - } - return this.contentLevelOptions.find(o => o.value === this.levelId) || {}; - }, - selectedChannel() { - if (!this.channelId && this.enabledChannelOptions.length === 1) { - return this.enabledChannelOptions[0]; - } - return this.channelOptionsList.find(o => o.value === this.channelId) || {}; - }, }, methods: { noCategories() { diff --git a/packages/kolibri-common/components/SearchFiltersPanel/CategorySearchModal/index.vue b/packages/kolibri-common/components/SearchFiltersPanel/CategorySearchModal/index.vue index 42b8a3c5f27..9e1234ce04d 100644 --- a/packages/kolibri-common/components/SearchFiltersPanel/CategorySearchModal/index.vue +++ b/packages/kolibri-common/components/SearchFiltersPanel/CategorySearchModal/index.vue @@ -11,7 +11,6 @@