From 3bf94ff2f0c7c8b287f829d2e6817ed0b9da32b7 Mon Sep 17 00:00:00 2001 From: "opacity@t-win.kr" Date: Wed, 27 Aug 2025 18:25:00 +0900 Subject: [PATCH] =?UTF-8?q?Revert=20"deeplink=20=ED=98=B8=EC=B6=9C?= =?UTF-8?q?=EC=8B=9C=20=ED=99=88=ED=8C=A8=EB=84=90=20debug=20=ED=91=9C?= =?UTF-8?q?=EA=B8=B0"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit 1338f336d800b5ad15a41d167c20551f933880ee. --- .../src/views/MainView/MainView.jsx | 212 +----------------- 1 file changed, 9 insertions(+), 203 deletions(-) diff --git a/com.twin.app.shoptime/src/views/MainView/MainView.jsx b/com.twin.app.shoptime/src/views/MainView/MainView.jsx index 1ee1b970..ee1abb42 100644 --- a/com.twin.app.shoptime/src/views/MainView/MainView.jsx +++ b/com.twin.app.shoptime/src/views/MainView/MainView.jsx @@ -673,9 +673,9 @@ export default function MainView({ className, initService }) { }, [dispatch, popupData, activePopup, topPanel?.name]); // 딥링크 확인 테스트 - const deepLinkInfo = useSelector((state) => state.common.deepLinkInfo); - const secondLayerInfo = useSelector((state) => state.common.secondLayerInfo); - const appStatus = useSelector((state) => state.common.appStatus); + const contentTarget = useSelector( + (state) => state.common.deepLinkInfo.contentTarget + ); return (
-
- 🔗 Deep Link Debug Info -
- - {/* Deep Link Info */} -
-
- isDeepLink:{" "} - - {deepLinkInfo.isDeepLink ? "true" : "false"} - -
-
- contentTarget:{" "} - - {deepLinkInfo.contentTarget || "(empty)"} - -
-
- - {/* Launch Params Check */} -
-
- 📱 Launch Params: -
-
- {(() => { - try { - const getLaunchParams = () => { - if ( - typeof window === "object" && - window.PalmSystem && - window.PalmSystem.launchParams - ) { - try { - let params = JSON.parse(window.PalmSystem.launchParams); - if (params["x-webos-app-container-launch"] === true) { - params = params.details; - } - return params; - } catch (e) { - return { error: "Parse failed: " + e.message }; - } - } else { - return { debug: "Not on webOS or no launchParams" }; - } - }; - const params = getLaunchParams(); - return JSON.stringify(params, null, 2); - } catch (e) { - return "Error: " + e.message; - } - })()} -
-
- - {/* App Status */} -
-
- 📊 App Status: -
-
-
- webOSVersion:{" "} - {appStatus.webOSVersion || "unknown"} -
-
- deviceId:{" "} - {appStatus.deviceId || "unknown"} -
-
- serverHOST:{" "} - {appStatus.serverHOST || "unknown"} -
-
-
- - {/* Panel Stack */} -
-
- 📚 Panel Stack ({panels.length}): -
-
- {panels.map((panel, index) => ( -
- {index}: {panel.name}{" "} - {index === panels.length - 1 ? "(current)" : ""} -
- ))} -
-
- - {/* Second Layer Info */} - {secondLayerInfo && Object.keys(secondLayerInfo).length > 0 && ( -
-
- 🔗 Second Layer Info: -
-
- {JSON.stringify(secondLayerInfo, null, 2)} -
-
- )} - - {/* Parsed Deep Link */} - {deepLinkInfo.contentTarget && ( -
-
- 🔍 Parsed Deep Link: -
-
- {(() => { - const tokens = deepLinkInfo.contentTarget.split("_"); - if (tokens[0] === "V2" || tokens[0] === "V3") { - return ( - <> -
- Version:{" "} - {tokens[0]} -
-
- Link Code:{" "} - {tokens[1]} -
-
- Link Name:{" "} - {tokens[2]} -
-
- Type:{" "} - {tokens[3]} -
- {tokens.length > 4 && ( -
- - Extra Params: - {" "} - {tokens.slice(4).join("_")} -
- )} - - ); - } - return ( -
- ❌ Raw format (not V2/V3) -
- ); - })()} -
-
- )} + deepLinkInfo +

{contentTarget}

);