From 560bedb33a0ab8d01aec08097e658e1ed29b56f2 Mon Sep 17 00:00:00 2001 From: Alex Velez Date: Tue, 3 Dec 2024 12:06:59 -0500 Subject: [PATCH] Move composables --- .../LessonResourceSelection => composables}/useFetch.js | 2 +- .../useResourceSelection.js | 0 .../lessons/LessonSummaryPage/UpdatedResourceSelection.vue | 2 +- .../sidePanels/LessonResourceSelection/index.vue | 2 +- .../LessonResourceSelection/subPages/SelectFromChannels.vue | 2 +- .../LessonResourceSelection/subPages/SelectionIndex.vue | 2 +- 6 files changed, 5 insertions(+), 5 deletions(-) rename kolibri/plugins/coach/assets/src/{views/lessons/LessonSummaryPage/sidePanels/LessonResourceSelection => composables}/useFetch.js (96%) rename kolibri/plugins/coach/assets/src/{views/lessons/LessonSummaryPage/sidePanels/LessonResourceSelection => composables}/useResourceSelection.js (100%) diff --git a/kolibri/plugins/coach/assets/src/views/lessons/LessonSummaryPage/sidePanels/LessonResourceSelection/useFetch.js b/kolibri/plugins/coach/assets/src/composables/useFetch.js similarity index 96% rename from kolibri/plugins/coach/assets/src/views/lessons/LessonSummaryPage/sidePanels/LessonResourceSelection/useFetch.js rename to kolibri/plugins/coach/assets/src/composables/useFetch.js index 9a6713b2eda..21e13d6918a 100644 --- a/kolibri/plugins/coach/assets/src/views/lessons/LessonSummaryPage/sidePanels/LessonResourceSelection/useFetch.js +++ b/kolibri/plugins/coach/assets/src/composables/useFetch.js @@ -1,6 +1,6 @@ import get from 'lodash/get'; import { ref, computed } from '@vue/composition-api'; -import { ViewMoreButtonStates } from '../../../../../constants'; +import { ViewMoreButtonStates } from '../constants'; export default function useFetch(options) { const { fetchMethod, fetchMoreMethod, dataKey, moreKey, additionalDataKeys } = options || {}; diff --git a/kolibri/plugins/coach/assets/src/views/lessons/LessonSummaryPage/sidePanels/LessonResourceSelection/useResourceSelection.js b/kolibri/plugins/coach/assets/src/composables/useResourceSelection.js similarity index 100% rename from kolibri/plugins/coach/assets/src/views/lessons/LessonSummaryPage/sidePanels/LessonResourceSelection/useResourceSelection.js rename to kolibri/plugins/coach/assets/src/composables/useResourceSelection.js diff --git a/kolibri/plugins/coach/assets/src/views/lessons/LessonSummaryPage/UpdatedResourceSelection.vue b/kolibri/plugins/coach/assets/src/views/lessons/LessonSummaryPage/UpdatedResourceSelection.vue index bb0a1260f3c..8409b46ed73 100644 --- a/kolibri/plugins/coach/assets/src/views/lessons/LessonSummaryPage/UpdatedResourceSelection.vue +++ b/kolibri/plugins/coach/assets/src/views/lessons/LessonSummaryPage/UpdatedResourceSelection.vue @@ -39,7 +39,7 @@ import ContentCardList from '../../lessons/LessonResourceSelectionPage/ContentCardList.vue'; import ResourceSelectionBreadcrumbs from '../../lessons/LessonResourceSelectionPage/SearchTools/ResourceSelectionBreadcrumbs.vue'; import { PageNames } from '../../../constants'; - import { injectResourceSelection } from './sidePanels/LessonResourceSelection/useResourceSelection'; + import { injectResourceSelection } from '../../../composables/useResourceSelection'; import { ResourceContentSource } from './sidePanels/LessonResourceSelection/constants'; export default { diff --git a/kolibri/plugins/coach/assets/src/views/lessons/LessonSummaryPage/sidePanels/LessonResourceSelection/index.vue b/kolibri/plugins/coach/assets/src/views/lessons/LessonSummaryPage/sidePanels/LessonResourceSelection/index.vue index 0737d49b2ad..53defe3557c 100644 --- a/kolibri/plugins/coach/assets/src/views/lessons/LessonSummaryPage/sidePanels/LessonResourceSelection/index.vue +++ b/kolibri/plugins/coach/assets/src/views/lessons/LessonSummaryPage/sidePanels/LessonResourceSelection/index.vue @@ -60,7 +60,7 @@ import bytesForHumans from 'kolibri/uiText/bytesForHumans'; import { PageNames } from '../../../../../constants'; import { coachStrings } from '../../../../common/commonCoachStrings'; - import useResourceSelection from './useResourceSelection'; + import useResourceSelection from '../../../../../composables/useResourceSelection'; export default { name: 'LessonResourceSelection', diff --git a/kolibri/plugins/coach/assets/src/views/lessons/LessonSummaryPage/sidePanels/LessonResourceSelection/subPages/SelectFromChannels.vue b/kolibri/plugins/coach/assets/src/views/lessons/LessonSummaryPage/sidePanels/LessonResourceSelection/subPages/SelectFromChannels.vue index 2900a20d3bd..6e590f12790 100644 --- a/kolibri/plugins/coach/assets/src/views/lessons/LessonSummaryPage/sidePanels/LessonResourceSelection/subPages/SelectFromChannels.vue +++ b/kolibri/plugins/coach/assets/src/views/lessons/LessonSummaryPage/sidePanels/LessonResourceSelection/subPages/SelectFromChannels.vue @@ -40,7 +40,7 @@ import { coreStrings } from 'kolibri/uiText/commonCoreStrings'; import { ResourceContentSource } from '../constants'; import UpdatedResourceSelection from '../../../UpdatedResourceSelection.vue'; - import { injectResourceSelection } from '../useResourceSelection'; + import { injectResourceSelection } from '../../../../../../composables/useResourceSelection'; import { coachStrings } from '../../../../../common/commonCoachStrings'; import { PageNames } from '../../../../../../constants'; diff --git a/kolibri/plugins/coach/assets/src/views/lessons/LessonSummaryPage/sidePanels/LessonResourceSelection/subPages/SelectionIndex.vue b/kolibri/plugins/coach/assets/src/views/lessons/LessonSummaryPage/sidePanels/LessonResourceSelection/subPages/SelectionIndex.vue index 854b1172e79..bdb3d96c314 100644 --- a/kolibri/plugins/coach/assets/src/views/lessons/LessonSummaryPage/sidePanels/LessonResourceSelection/subPages/SelectionIndex.vue +++ b/kolibri/plugins/coach/assets/src/views/lessons/LessonSummaryPage/sidePanels/LessonResourceSelection/subPages/SelectionIndex.vue @@ -63,7 +63,7 @@ import { coreStrings } from 'kolibri/uiText/commonCoreStrings'; import AccessibleChannelCard from 'kolibri-common/components/Cards/AccessibleChannelCard.vue'; - import { injectResourceSelection } from '../useResourceSelection'; + import { injectResourceSelection } from '../../../../../../composables/useResourceSelection'; import { PageNames } from '../../../../../../constants'; import { coachStrings } from '../../../../../common/commonCoachStrings';