diff --git a/com.twin.app.shoptime/src/actions/brandActions.js b/com.twin.app.shoptime/src/actions/brandActions.js index 94a5f3aa..a4a83225 100644 --- a/com.twin.app.shoptime/src/actions/brandActions.js +++ b/com.twin.app.shoptime/src/actions/brandActions.js @@ -184,43 +184,6 @@ export const getBrandRecommendedShowInfo = (props) => (dispatch, getState) => { const onSuccess = (response) => { // console.log("getBrandRecommendedShowInfo onSuccess", response.data); - // pyh, delete later - // const brandRecommendedShowCategoryInfo = - // response.data.data?.brandRecommendedShowCategoryInfo; - // const brandRecommendedShowInfo = - // response.data.data?.brandRecommendedShowInfo; - // const firstCatCd = brandRecommendedShowCategoryInfo[0]?.catCd.toString(); - - // let filteredBrandRecommendedShowInfo; - - // if ( - // brandRecommendedShowCategoryInfo && - // brandRecommendedShowInfo && - // firstCatCd - // ) { - // if (catCd === undefined) { - // filteredBrandRecommendedShowInfo = brandRecommendedShowInfo - // .filter((showInfo) => firstCatCd === showInfo?.catCd) - // .slice(0, 10); - // } else { - // filteredBrandRecommendedShowInfo = brandRecommendedShowInfo - // .filter((showInfo) => catCd === showInfo?.catCd) - // .slice(0, 10); - // } - // } - - // const data = { - // brandRecommendedShowCategoryInfo, - // brandRecommendedShowInfo: filteredBrandRecommendedShowInfo, - // }; - - // dispatch({ - // type: types.GET_BRAND_RECOMMENDED_SHOW_INFO, - // payload: { - // data, - // }, - // }); - dispatch({ type: types.GET_BRAND_RECOMMENDED_SHOW_INFO, payload: { diff --git a/com.twin.app.shoptime/src/actions/mainActions.js b/com.twin.app.shoptime/src/actions/mainActions.js index 1302b1c4..a5b803dd 100644 --- a/com.twin.app.shoptime/src/actions/mainActions.js +++ b/com.twin.app.shoptime/src/actions/mainActions.js @@ -64,14 +64,6 @@ export const setMainLiveUpcomingAlarm = (props) => (dispatch, getState) => { hour: new Date(convertedStrtDt).getHours(), minute: new Date(convertedStrtDt).getMinutes(), second: new Date(convertedStrtDt).getSeconds(), - - // pyh, delete test case - // year: new Date(testStrtDt).getFullYear(), - // month: new Date(testStrtDt).getMonth() + 1, - // day: new Date(testStrtDt).getDate(), - // hour: new Date(testStrtDt).getHours(), - // minute: new Date(testStrtDt).getMinutes(), - // second: new Date(testStrtDt).getSeconds(), }, params: { message: `[${patncNm}] ${showNm}\n${HelperMethods.$L("Watch Now!")}`, diff --git a/com.twin.app.shoptime/src/actions/myPageActions.js b/com.twin.app.shoptime/src/actions/myPageActions.js index c7c4f36d..277dc8b2 100644 --- a/com.twin.app.shoptime/src/actions/myPageActions.js +++ b/com.twin.app.shoptime/src/actions/myPageActions.js @@ -272,7 +272,6 @@ export const deleteMyUpcomingAlertShow = (params) => (dispatch, getState) => { payload: response.data, }); - // pyh test, deleted for (let index = showList.length; index--; ) { dispatch(deleteReservation(showList[index].showId)); } diff --git a/com.twin.app.shoptime/src/views/FeaturedBrandsPanel/FeaturedCreators/FeaturedCreatorsContents/FeaturedCreatorsContents.jsx b/com.twin.app.shoptime/src/views/FeaturedBrandsPanel/FeaturedCreators/FeaturedCreatorsContents/FeaturedCreatorsContents.jsx index fa6d1317..65d1f695 100644 --- a/com.twin.app.shoptime/src/views/FeaturedBrandsPanel/FeaturedCreators/FeaturedCreatorsContents/FeaturedCreatorsContents.jsx +++ b/com.twin.app.shoptime/src/views/FeaturedBrandsPanel/FeaturedCreators/FeaturedCreatorsContents/FeaturedCreatorsContents.jsx @@ -122,7 +122,7 @@ export default memo(function FeaturedCreatorsContents({ data-wheel-point > { - // if (typeof window === window.PalmSystem) { - // if (errorCb) { - // errorCb(true); - // } - - // return; - // } else { - // if (!hlsGlobal) { - // // Probably not a HLS error - // return; - // } - - // console.log("pyh", data); - - // switch (data.type) { - // case hlsGlobal.ErrorTypes.NETWORK_ERROR: - // // hls: fatal network error encountered, trying to recover - // if (errorCb) { - // errorCb(true); - // } - // break; - // case hlsGlobal.ErrorTypes.MEDIA_ERROR: - // // hls: fatal media error encountered, trying to recover - // if (errorCb) { - // errorCb(true); - // } - // break; - // default: - // // cannot recover - // hlsInstance.destroy(); - // break; - // } - // } - - if (!hlsGlobal) { - // Probably not a HLS error - return; - } - - switch (data.type) { - case hlsGlobal.ErrorTypes.NETWORK_ERROR: - // hls: fatal network error encountered, trying to recover - if (errorCb) { - errorCb(true); - } - break; - case hlsGlobal.ErrorTypes.MEDIA_ERROR: - // hls: fatal media error encountered, trying to recover - if (errorCb) { - errorCb(false); - } - break; - default: - // cannot recover - hlsInstance.destroy(); - break; - } - }, - [errorCb] - ); - - const handleReady = useCallback(() => { - if (readyCb) { - readyCb(true); - } - }, [readyCb]); - - // VideoPlayer - // eslint-disable-next-line - const mediainfoHandler = useCallback((e) => { - const type = e.type; - console.log("pyh type", type); - - if (type !== "timeupdate") { - console.log("[mediaInfoHandler].....", type); - } - switch (type) { - case "loadeddata": - console.log("[mediaInfoHandler] loaded data"); - break; - - case "durationchange": - console.log("[mediaInfoHandler] duration", e.currentTarget.duration); - break; - } - }, []); - - return ( -
- {/* - {shouldPlay && ( - - )} - */} - - - - {/* {typeof window === window.PalmSystem ? ( - - {shouldPlay && } - - ) : ( - - )} */} -
- ); -}); diff --git a/com.twin.app.shoptime/src/views/FeaturedBrandsPanel/FeaturedVideoPlayer/FeaturedVideoPlayer.module.less b/com.twin.app.shoptime/src/views/FeaturedBrandsPanel/FeaturedVideoPlayer/FeaturedVideoPlayer.module.less deleted file mode 100644 index b28b04f6..00000000 --- a/com.twin.app.shoptime/src/views/FeaturedBrandsPanel/FeaturedVideoPlayer/FeaturedVideoPlayer.module.less +++ /dev/null @@ -1,3 +0,0 @@ - - - diff --git a/com.twin.app.shoptime/src/views/FeaturedBrandsPanel/FeaturedVideoPlayer/package.json b/com.twin.app.shoptime/src/views/FeaturedBrandsPanel/FeaturedVideoPlayer/package.json deleted file mode 100644 index f9d15bc2..00000000 --- a/com.twin.app.shoptime/src/views/FeaturedBrandsPanel/FeaturedVideoPlayer/package.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "main": "FeaturedVideoPlayer.jsx", - "style": [ - "FeaturedVideoPlayer.module.less" - ] -} diff --git a/com.twin.app.shoptime/src/views/FeaturedBrandsPanel/LiveChannels/LiveChannelsHorizontalContents/LiveChannelsHorizontalProductList/LiveChannelsHorizontalProductList.jsx b/com.twin.app.shoptime/src/views/FeaturedBrandsPanel/LiveChannels/LiveChannelsHorizontalContents/LiveChannelsHorizontalProductList/LiveChannelsHorizontalProductList.jsx index f38ef559..453f85fc 100644 --- a/com.twin.app.shoptime/src/views/FeaturedBrandsPanel/LiveChannels/LiveChannelsHorizontalContents/LiveChannelsHorizontalProductList/LiveChannelsHorizontalProductList.jsx +++ b/com.twin.app.shoptime/src/views/FeaturedBrandsPanel/LiveChannels/LiveChannelsHorizontalContents/LiveChannelsHorizontalProductList/LiveChannelsHorizontalProductList.jsx @@ -162,7 +162,6 @@ export default memo(function LiveChannelsHorizontalProductList({ ); return ( - // pyh, ver. TVirtualGridList
{brandProductInfo && ( )}
- - // pyh, ver. TScroller - //
- // - //
    - // {brandProductInfo.map((brandProductInfoItem, itemIndex) => ( - // - // ))} - //
- //
- //
); }); diff --git a/com.twin.app.shoptime/src/views/HomePanel/HomeBanner/RandomUnit.jsx b/com.twin.app.shoptime/src/views/HomePanel/HomeBanner/RandomUnit.jsx index b8735abf..b27df572 100644 --- a/com.twin.app.shoptime/src/views/HomePanel/HomeBanner/RandomUnit.jsx +++ b/com.twin.app.shoptime/src/views/HomePanel/HomeBanner/RandomUnit.jsx @@ -18,6 +18,7 @@ import emptyHorImage from "../../../../assets/images/img-home-banner-empty-hor.p import emptyVerImage from "../../../../assets/images/img-home-banner-empty-ver.png"; import defaultImageItem from "../../../../assets/images/img-thumb-empty-product@3x.png"; import liveShow from "../../../../assets/images/tag-liveshow.png"; +import { changeAppStatus } from "../../../actions/commonActions"; import { sendLogTopContents } from "../../../actions/logActions"; import { pushPanel } from "../../../actions/panelActions"; import { @@ -29,7 +30,6 @@ import usePriceInfo from "../../../hooks/usePriceInfo"; import { LOG_MENU, LOG_TP_NO, panel_names } from "../../../utils/Config"; import { $L, formatGMTString } from "../../../utils/helperMethods"; import css from "./RandomUnit.module.less"; -import { changeAppStatus } from "../../../actions/commonActions"; const SpottableComponent = Spottable("div"); @@ -107,7 +107,7 @@ export default function RandomUnit({ contTpNm: currentRandomData?.shptmBanrTpNm ?? "", dspyTpNm: bannerDataRef.current?.shptmDspyTpNm ?? "", expsOrd: bannerDataRef.current?.banrLctnNo ?? "", - linkTpCd: "", // pyh todo, get linkTpCd + linkTpCd: "", patncNm: currentRandomData?.patncNm ?? "", patnrId: currentRandomData?.patnrId ?? "", tmplCd: shptmTmplCd, diff --git a/com.twin.app.shoptime/src/views/ImagePanel/ImagePanel.jsx b/com.twin.app.shoptime/src/views/ImagePanel/ImagePanel.jsx index caedec27..bcea21b1 100644 --- a/com.twin.app.shoptime/src/views/ImagePanel/ImagePanel.jsx +++ b/com.twin.app.shoptime/src/views/ImagePanel/ImagePanel.jsx @@ -122,17 +122,6 @@ export default function ImagePanel({ panelInfo, spotlightId, ...rest }) { useEffect(() => { if (panelInfo) { - // console.log( - // "%c pyh panelInfo", - // "background: orange; color:black ", - // panelInfo - // ); - // console.log( - // "%c pyh panelInfo length", - // "background: orange; color:black ", - // Object.keys(panelInfo)?.length - // ); - setOtherRoomThemeInfos( brandShowroomInfo .find(({ roomId }) => roomId === panelInfo?.roomId) @@ -196,11 +185,6 @@ export default function ImagePanel({ panelInfo, spotlightId, ...rest }) { setSpotlightDisabled(false); - // console.log( - // "%c pyh initial focus effect", - // "background: green; color: white " - // ); - if (initialFocusTarget) { Spotlight.focus(initialFocusTarget); } diff --git a/com.twin.app.shoptime/src/views/OnSalePanel/OnSalePanel.jsx b/com.twin.app.shoptime/src/views/OnSalePanel/OnSalePanel.jsx index a2f0e45f..d9527274 100644 --- a/com.twin.app.shoptime/src/views/OnSalePanel/OnSalePanel.jsx +++ b/com.twin.app.shoptime/src/views/OnSalePanel/OnSalePanel.jsx @@ -7,6 +7,7 @@ import Spotlight from "@enact/spotlight"; import { types } from "../../actions/actionTypes"; import { changeAppStatus } from "../../actions/commonActions"; +import { sendLogCuration, sendLogGNB } from "../../actions/logActions"; import { copyCategoryInfos, getOnSaleInfo } from "../../actions/onSaleActions"; import { updatePanel } from "../../actions/panelActions"; import TBody from "../../components/TBody/TBody"; @@ -18,7 +19,6 @@ import { LOG_MENU, LOG_TP_NO, panel_names } from "../../utils/Config"; import OnSaleContents from "./OnSaleContents/OnSaleContents"; import OnSaleNav from "./OnSaleNav/OnSaleNav"; import css from "./OnSalePanel.module.less"; -import { sendLogCuration, sendLogGNB } from "../../actions/logActions"; const getExpsOrdByLgCatCd = (array, value) => { const expsOrd = array.findIndex(({ lgCatCd }) => value === lgCatCd) + 1; @@ -26,7 +26,6 @@ const getExpsOrdByLgCatCd = (array, value) => { }; export default function OnSalePanel({ panelInfo, spotlightId }) { - const dispatch = useDispatch(); const categoryInfos = useSelector( @@ -60,15 +59,6 @@ export default function OnSalePanel({ panelInfo, spotlightId }) { const initialFocusTimeoutJob = useRef(new Job((func) => func(), 100)); const timerRef = useRef(null); - // useEffect(() => { - // console.log( - // "%c pyh panelInfo", - // "background: dodgerblue; color: white ", - // panelInfo, - // Object.keys(panelInfo)?.length - // ); - // }, [panelInfo]); - useEffect(() => { dispatch(sendLogGNB(LOG_MENU.ON_SALE)); }, []); @@ -107,17 +97,10 @@ export default function OnSalePanel({ panelInfo, spotlightId }) { useEffect(() => { if (!categories) { if (previousPanelIsDetail) { - // console.log( - // "%c pyh copied category effect", - // "background: pink; color: black" - // ); - return setCategories(copiedCategoryInfos); } if (categoryInfos) { - // console.log("%c pyh category effect", "background: pink; color: black"); - dispatch(copyCategoryInfos(categoryInfos)); setCategories(categoryInfos); } @@ -132,11 +115,6 @@ export default function OnSalePanel({ panelInfo, spotlightId }) { useEffect(() => { if (selectedLgCatCd) { - // console.log( - // "%c pyh change LgCatCd effect", - // "background: pink; color: black" - // ); - dispatch( getOnSaleInfo({ lgCatCd: selectedLgCatCd, saleInfosIncFlag: "Y" }) ); @@ -145,11 +123,6 @@ export default function OnSalePanel({ panelInfo, spotlightId }) { useEffect(() => { if (categories && saleInfos) { - // console.log( - // "%c pyh saleInfos effect, first focusable target is ready", - // "background: pink; color: black" - // ); - const prdtId = saleInfos[0]?.saleProductInfos[0]?.prdtId; if (prdtId) { @@ -184,25 +157,9 @@ export default function OnSalePanel({ panelInfo, spotlightId }) { setSpotlightDisabled(false); - // console.log( - // "%c pyh initial focus effect", - // "background: pink; color: black" - // ); - if (initialFocusTarget) { - // console.log( - // "%c pyh initialFocusTarget", - // "background: pink; color: black", - // initialFocusTarget - // ); - Spotlight.focus(initialFocusTarget); } else { - // console.log( - // "%c pyh initial focus target, not exist", - // "background: red; color: white" - // ); - if (previousPanelIsHome) { Spotlight.focus("sale-info-0"); } @@ -281,7 +238,7 @@ export default function OnSalePanel({ panelInfo, spotlightId }) { previousPanelIsHome, previousPanelIsDetail, selectedLgCatCd, - selectedLgCatNm + selectedLgCatNm, ]); useEffect(() => {