Skip to content

Commit

Permalink
Cleanup unused responsiveElementMixin
Browse files Browse the repository at this point in the history
  • Loading branch information
marcellamaki committed Oct 11, 2024
1 parent 48c27a3 commit aaecc38
Show file tree
Hide file tree
Showing 7 changed files with 3 additions and 14 deletions.
2 changes: 0 additions & 2 deletions kolibri/core/assets/src/views/InteractionList/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,11 @@

<script>
import responsiveElementMixin from 'kolibri-design-system/lib/KResponsiveElementMixin';
import InteractionItem from './InteractionItem';
export default {
name: 'InteractionList',
components: { InteractionItem },
mixins: [responsiveElementMixin],
props: {
interactions: {
type: Array,
Expand Down
2 changes: 0 additions & 2 deletions kolibri/core/assets/src/views/MultiPaneLayout.vue
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,9 @@
<script>
import useKResponsiveWindow from 'kolibri-design-system/lib/composables/useKResponsiveWindow';
import responsiveElementMixin from 'kolibri-design-system/lib/KResponsiveElementMixin';
export default {
name: 'MultiPaneLayout',
mixins: [responsiveElementMixin],
setup() {
const { windowHeight } = useKResponsiveWindow();
return {
Expand Down
3 changes: 1 addition & 2 deletions kolibri/core/assets/src/views/SideNav.vue
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,6 @@
import commonCoreStrings from 'kolibri.coreVue.mixins.commonCoreStrings';
import { UserKinds, NavComponentSections } from 'kolibri.coreVue.vuex.constants';
import useKResponsiveWindow from 'kolibri-design-system/lib/composables/useKResponsiveWindow';
import responsiveElementMixin from 'kolibri-design-system/lib/KResponsiveElementMixin';
import CoreMenu from 'kolibri.coreVue.components.CoreMenu';
import CoreMenuOption from 'kolibri.coreVue.components.CoreMenuOption';
import CoreLogo from 'kolibri.coreVue.components.CoreLogo';
Expand Down Expand Up @@ -299,7 +298,7 @@
LanguageSwitcherModal,
BottomNavigationBar,
},
mixins: [commonCoreStrings, responsiveElementMixin],
mixins: [commonCoreStrings],
setup() {
const { windowIsSmall, windowIsLarge } = useKResponsiveWindow();
const {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,6 @@
import Lockr from 'lockr';
import FocusLock from 'vue-focus-lock';
import CoreFullscreen from 'kolibri.coreVue.components.CoreFullscreen';
import responsiveElementMixin from 'kolibri-design-system/lib/KResponsiveElementMixin';
import useKResponsiveWindow from 'kolibri-design-system/lib/composables/useKResponsiveWindow';
import iFrameView from './SandboxIFrameView';
import LoadingScreen from './LoadingScreen';
Expand Down Expand Up @@ -221,7 +220,6 @@
SearchButton,
LoadingError,
},
mixins: [responsiveElementMixin],
setup() {
const { windowIsSmall } = useKResponsiveWindow();
return {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,6 @@
import throttle from 'lodash/throttle';
import { languageIdToCode } from 'kolibri.utils.i18n';
import commonCoreStrings from 'kolibri.coreVue.mixins.commonCoreStrings';
import responsiveElementMixin from 'kolibri-design-system/lib/KResponsiveElementMixin';
import useKResponsiveWindow from 'kolibri-design-system/lib/composables/useKResponsiveWindow';
import Settings from '../utils/settings';
import { ReplayButton, ForwardButton } from './customButtons';
Expand All @@ -123,7 +122,7 @@
export default {
name: 'MediaPlayerIndex',
components: { MediaPlayerFullscreen, MediaPlayerTranscript },
mixins: [commonCoreStrings, responsiveElementMixin],
mixins: [commonCoreStrings],
setup() {
const { windowIsSmall, windowIsPortrait } = useKResponsiveWindow();
return { windowIsSmall, windowIsPortrait };
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@
import objectFitImages from 'object-fit-images';
import client from 'kolibri.client';
import responsiveElementMixin from 'kolibri-design-system/lib/KResponsiveElementMixin';
import useKResponsiveWindow from 'kolibri-design-system/lib/composables/useKResponsiveWindow';
import UiIconButton from 'kolibri-design-system/lib/keen/UiIconButton';
Expand All @@ -109,7 +108,6 @@
HooperPagination,
HooperNavigation,
},
mixins: [responsiveElementMixin],
setup() {
const { windowIsLarge, windowIsSmall } = useKResponsiveWindow();
return {
Expand Down
3 changes: 1 addition & 2 deletions packages/kolibri-common/components/SearchBox.vue
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,10 @@
<script>
import commonCoreStrings from 'kolibri.coreVue.mixins.commonCoreStrings';
import responsiveElementMixin from 'kolibri-design-system/lib/KResponsiveElementMixin';
export default {
name: 'SearchBox',
mixins: [commonCoreStrings, responsiveElementMixin],
mixins: [commonCoreStrings],
props: {
icon: {
type: String,
Expand Down

0 comments on commit aaecc38

Please sign in to comment.