-
Notifications
You must be signed in to change notification settings - Fork 721
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make no unused properties checking maximally strict #12910
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -88,7 +88,6 @@ | |
|
||
<script> | ||
|
||
import { computed, toRefs } from 'vue'; | ||
import commonCoreStrings from 'kolibri/uiText/commonCoreStrings'; | ||
import { ViewMoreButtonStates } from '../../../constants/index'; | ||
import LessonContentCard from './LessonContentCard'; | ||
|
@@ -99,14 +98,8 @@ | |
LessonContentCard, | ||
}, | ||
mixins: [commonCoreStrings], | ||
setup(props) { | ||
const { selectAllChecked, selectAllIndeterminate } = toRefs(props); | ||
// Code too long to display in template | ||
const ariaChecked = computed(() => { | ||
return selectAllChecked.value ? true : selectAllIndeterminate.value ? 'mixed' : false; | ||
}); | ||
setup() { | ||
return { | ||
ariaChecked, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @nucleogenesis was this actually needed anywhere? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think it probably should have been passed to KCheckbox to the There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is handled internally by KCheckbox: https://github.com/learningequality/kolibri-design-system/blob/develop/lib/KCheckbox.vue#L15 after your PR: learningequality/kolibri-design-system#572 so this does seem safe to cleanup! |
||
ViewMoreButtonStates, | ||
}; | ||
}, | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -269,7 +269,6 @@ | |
return { | ||
content, | ||
questions, | ||
currentQuestion, | ||
annotatedSections, | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -151,7 +151,6 @@ | |
} from 'kolibri-common/strings/enhancedQuizManagementStrings'; | ||
import { getCurrentInstance, computed, ref } from 'vue'; | ||
import { get } from '@vueuse/core'; | ||
import isEqual from 'lodash/isEqual'; | ||
import commonCoreStrings from 'kolibri/uiText/commonCoreStrings'; | ||
import AccordionItem from 'kolibri-common/components/AccordionItem'; | ||
import AccordionContainer from 'kolibri-common/components/AccordionContainer'; | ||
|
@@ -174,7 +173,6 @@ | |
|
||
const { | ||
replaceQuestions$, | ||
deleteSectionLabel$, | ||
replaceAction$, | ||
selectAllLabel$, | ||
closeConfirmationMessage$, | ||
|
@@ -185,7 +183,6 @@ | |
numberOfQuestionsReplaced$, | ||
noUndoWarning$, | ||
selectQuestionsToContinue$, | ||
selectFewerQuestion$, | ||
collapseAll$, | ||
expandAll$, | ||
} = enhancedQuizManagementStrings; | ||
|
@@ -198,19 +195,9 @@ | |
activeResourceMap, | ||
replacementQuestionPool, | ||
clearSelectedQuestions, | ||
replaceSelectedQuestions, | ||
toggleQuestionInSelection, | ||
handleReplacement, | ||
allSections, | ||
} = injectQuizCreation(); | ||
|
||
const activeSectionTitle = computed(() => { | ||
const activeSectionIndex = allSections.value.findIndex(section => | ||
isEqual(JSON.stringify(section), JSON.stringify(activeSection.value)), | ||
); | ||
return displaySectionTitle(activeSection.value, activeSectionIndex); | ||
}); | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @nucleogenesis there's a fair amount of stuff here that's unused in the create exam page, and I think (?) you might be best positioned to take a look and confirm what of this was just leftover from refactoring and other adjustments at the end of 0.17. It seems mostly like that, but... could you just take an extra look through this? I think you will have a better sense than I do. |
||
const showCloseConfirmation = ref(false); | ||
const showReplacementConfirmation = ref(false); | ||
const replacements = ref([]); | ||
|
@@ -273,8 +260,6 @@ | |
useAccordion(replacementQuestionPool); | ||
|
||
return { | ||
createSnackbar, | ||
|
||
toggle, | ||
isExpanded, | ||
collapseAll, | ||
|
@@ -285,24 +270,20 @@ | |
toggleInReplacements, | ||
activeSection, | ||
activeSectionIndex, | ||
activeSectionTitle, | ||
selectAllReplacementQuestions, | ||
selectedActiveQuestions, | ||
replacementQuestionPool, | ||
selectAllIsIndeterminate, | ||
selectAllIsChecked, | ||
replaceSelectedQuestions, | ||
activeResourceMap, | ||
showCloseConfirmation, | ||
showReplacementConfirmation, | ||
confirmReplacement, | ||
|
||
handleConfirmClose, | ||
toggleQuestionInSelection, | ||
submitReplacement, | ||
replacements, | ||
replaceQuestions$, | ||
deleteSectionLabel$, | ||
replaceAction$, | ||
selectAllLabel$, | ||
numberOfSelectedReplacements$, | ||
|
@@ -312,7 +293,6 @@ | |
replaceQuestionsExplaination$, | ||
replaceQuestionsHeading$, | ||
selectQuestionsToContinue$, | ||
selectFewerQuestion$, | ||
collapseAll$, | ||
expandAll$, | ||
displayQuestionTitle, | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Broader question - do we still need this composable at all? @AlexVelezLl
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmmm no, we can remove this.