From 2cca36754e3a568951cffaa926aed281bd30226a Mon Sep 17 00:00:00 2001 From: "pre-commit-ci-lite[bot]" <117423508+pre-commit-ci-lite[bot]@users.noreply.github.com> Date: Thu, 21 Nov 2024 13:47:37 +0000 Subject: [PATCH] [pre-commit.ci lite] apply automatic fixes --- .../EditDetailsResourceListTable.vue | 6 +++--- .../LessonSummaryPage/tables/LessonResourcesTable.vue | 6 +++--- .../views/quizzes/CreateExamPage/CreateQuizSection.vue | 3 +-- .../src/views/quizzes/CreateExamPage/SectionOrder.vue | 9 +++------ .../device/assets/src/views/RearrangeChannelsPage.vue | 7 ++----- .../components/sortable/DragSortWidget/index.vue | 7 +++---- packages/kolibri/utils/i18n.js | 2 +- 7 files changed, 16 insertions(+), 24 deletions(-) diff --git a/kolibri/plugins/coach/assets/src/views/lessons/LessonEditDetailsPage/EditDetailsResourceListTable.vue b/kolibri/plugins/coach/assets/src/views/lessons/LessonEditDetailsPage/EditDetailsResourceListTable.vue index a8dbc606faf..f4e6a4d13ba 100644 --- a/kolibri/plugins/coach/assets/src/views/lessons/LessonEditDetailsPage/EditDetailsResourceListTable.vue +++ b/kolibri/plugins/coach/assets/src/views/lessons/LessonEditDetailsPage/EditDetailsResourceListTable.vue @@ -110,9 +110,9 @@ import commonCoreStrings from 'kolibri/uiText/commonCoreStrings'; import CoachContentLabel from 'kolibri-common/components/labels/CoachContentLabel'; import useSnackbar from 'kolibri/composables/useSnackbar'; + import { searchAndFilterStrings } from 'kolibri-common/strings/searchAndFilterStrings'; import { coachStrings } from '../../common/commonCoachStrings'; import { PageNames } from '../../../constants'; - import { searchAndFilterStrings } from 'kolibri-common/strings/searchAndFilterStrings'; // This is a simplified version of ResourceListTable that is supposed to work // outside of the LessonSummaryPage workflow. @@ -137,8 +137,8 @@ noResourcesInLessonLabel$, createSnackbar, clearSnackbar, - moveResourceUpButtonDescription$, - moveResourceDownButtonDescription$ + moveResourceUpButtonDescription$, + moveResourceDownButtonDescription$, }; }, props: { diff --git a/kolibri/plugins/coach/assets/src/views/lessons/LessonSummaryPage/tables/LessonResourcesTable.vue b/kolibri/plugins/coach/assets/src/views/lessons/LessonSummaryPage/tables/LessonResourcesTable.vue index 9050c325ece..6db3c0361ee 100644 --- a/kolibri/plugins/coach/assets/src/views/lessons/LessonSummaryPage/tables/LessonResourcesTable.vue +++ b/kolibri/plugins/coach/assets/src/views/lessons/LessonSummaryPage/tables/LessonResourcesTable.vue @@ -117,10 +117,10 @@ const { moveResourceUpButtonDescription$, moveResourceDownButtonDescription$ } = searchAndFilterStrings; - return { + return { moveResourceUpButtonDescription$, - moveResourceDownButtonDescription$ - } + moveResourceDownButtonDescription$, + }; }, props: { title: { diff --git a/kolibri/plugins/coach/assets/src/views/quizzes/CreateExamPage/CreateQuizSection.vue b/kolibri/plugins/coach/assets/src/views/quizzes/CreateExamPage/CreateQuizSection.vue index 59ab85371f7..e2112164d5b 100644 --- a/kolibri/plugins/coach/assets/src/views/quizzes/CreateExamPage/CreateQuizSection.vue +++ b/kolibri/plugins/coach/assets/src/views/quizzes/CreateExamPage/CreateQuizSection.vue @@ -450,7 +450,7 @@ createSnackbar, upLabel$, - downLabel$ + downLabel$, }; }, data() { @@ -513,7 +513,6 @@ }, ]; }, - }, created() { const { query } = this.$route; diff --git a/kolibri/plugins/coach/assets/src/views/quizzes/CreateExamPage/SectionOrder.vue b/kolibri/plugins/coach/assets/src/views/quizzes/CreateExamPage/SectionOrder.vue index 744485ff23a..91a82b526b2 100644 --- a/kolibri/plugins/coach/assets/src/views/quizzes/CreateExamPage/SectionOrder.vue +++ b/kolibri/plugins/coach/assets/src/views/quizzes/CreateExamPage/SectionOrder.vue @@ -98,9 +98,9 @@ import DragContainer from 'kolibri-common/components/sortable/DragContainer'; import DragHandle from 'kolibri-common/components/sortable/DragHandle'; import DragSortWidget from 'kolibri-common/components/sortable/DragSortWidget'; + import { searchAndFilterStrings } from 'kolibri-common/strings/searchAndFilterStrings'; import { PageNames } from '../../../constants/index'; import { injectQuizCreation } from '../../../composables/useQuizCreation'; - import { searchAndFilterStrings } from 'kolibri-common/strings/searchAndFilterStrings'; import useDrag from './useDrag.js'; export default { @@ -147,10 +147,7 @@ updateQuiz, } = injectQuizCreation(); - const { - upLabel$, - downLabel$, - } = searchAndFilterStrings; + const { upLabel$, downLabel$ } = searchAndFilterStrings; const { moveDownOne, moveUpOne } = useDrag(); @@ -322,7 +319,7 @@ ); return displaySectionTitle(section, sectionIndexOrder).toUpperCase(); }, - }, + }, }; diff --git a/kolibri/plugins/device/assets/src/views/RearrangeChannelsPage.vue b/kolibri/plugins/device/assets/src/views/RearrangeChannelsPage.vue index 0b986c62691..2379f24cc69 100644 --- a/kolibri/plugins/device/assets/src/views/RearrangeChannelsPage.vue +++ b/kolibri/plugins/device/assets/src/views/RearrangeChannelsPage.vue @@ -69,10 +69,10 @@ import ImmersivePage from 'kolibri/components/pages/ImmersivePage'; import useUser from 'kolibri/composables/useUser'; import useSnackbar from 'kolibri/composables/useSnackbar'; + import { searchAndFilterStrings } from 'kolibri-common/strings/searchAndFilterStrings'; import DeviceChannelResource from '../apiResources/deviceChannel'; import useContentTasks from '../composables/useContentTasks'; import { PageNames } from '../constants'; - import { searchAndFilterStrings } from 'kolibri-common/strings/searchAndFilterStrings'; export default { name: 'RearrangeChannelsPage', @@ -92,10 +92,7 @@ useContentTasks(); const { canManageContent } = useUser(); const { createSnackbar } = useSnackbar(); - const{ - moveChannelUpLabel$, - moveChannelDownLabel$, - } = searchAndFilterStrings; + const { moveChannelUpLabel$, moveChannelDownLabel$ } = searchAndFilterStrings; return { canManageContent, diff --git a/packages/kolibri-common/components/sortable/DragSortWidget/index.vue b/packages/kolibri-common/components/sortable/DragSortWidget/index.vue index 1f6e040b630..d32996ec66e 100644 --- a/packages/kolibri-common/components/sortable/DragSortWidget/index.vue +++ b/packages/kolibri-common/components/sortable/DragSortWidget/index.vue @@ -43,23 +43,22 @@