Skip to content

Commit

Permalink
Removing jquery, slider componnet
Browse files Browse the repository at this point in the history
  • Loading branch information
Oksydan committed Oct 9, 2023
1 parent d062416 commit ad9fd99
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
8 changes: 4 additions & 4 deletions _dev/js/theme/components/sliders.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import prestashop from 'prestashop';
import $ from 'jquery';
import PageSlider from '@js/theme/components/sliders/PageSlider';
import SwiperSlider from '@js/theme/components/sliders/SwiperSlider';
import DOMReady from "../utils/DOMReady";

Check failure on line 2 in _dev/js/theme/components/sliders.js

View workflow job for this annotation

GitHub Actions / Code quality - ESLint

Strings must use singlequote
import PageSlider from './sliders/PageSlider';
import SwiperSlider from './sliders/SwiperSlider';

prestashop.pageSlider = new PageSlider();
prestashop.SwiperSlider = SwiperSlider;

$(() => {
DOMReady(() => {
prestashop.pageSlider.init();
});
2 changes: 1 addition & 1 deletion _dev/js/theme/components/sliders/SwiperSlider.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import Swiper, {
Navigation, Pagination, Autoplay,
} from 'swiper';

import DynamicImportSwiperModule from '@js/theme/components/sliders/DynamicImportSwiperModule';
import DynamicImportSwiperModule from './DynamicImportSwiperModule';

/* eslint-disable */
const dynamicModulesMap = {
Expand Down
3 changes: 2 additions & 1 deletion _dev/js/theme/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ import useThemeForm from './components/useThemeForm';
import PageLazyLoad from './components/Lazyload';
import httpRequestErrorHandler from './handler/error/httpRequestErrorHandler';
import usePageLoader from "./components/usePageLoader";
import DOMReady from "./utils/DOMReady";

prestashop.pageLazyLoad = new PageLazyLoad({
selector: '.lazyload',
Expand All @@ -36,7 +37,7 @@ prestashop.pageLoader = usePageLoader();
prestashop.on('handleError', httpRequestErrorHandler);


$(() => {
DOMReady(() => {
const { init: initForm } = useThemeForm();
initForm();
bsCustomFileInput.init();
Expand Down

0 comments on commit ad9fd99

Please sign in to comment.