From b174681e3fae81d413ad145ddc379e36cb6469b5 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"mainview=20=EB=94=94=EB=B2=84?= =?UTF-8?q?=EA=B7=B8=20=EC=88=98=EC=A0=95"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit 2210a82027223fe6372679ece5de37fd711b1fbe. --- .../src/views/MainView/MainView.jsx | 354 +++++++++--------- 1 file changed, 171 insertions(+), 183 deletions(-) diff --git a/com.twin.app.shoptime/src/views/MainView/MainView.jsx b/com.twin.app.shoptime/src/views/MainView/MainView.jsx index e9d6d522..1ee1b970 100644 --- a/com.twin.app.shoptime/src/views/MainView/MainView.jsx +++ b/com.twin.app.shoptime/src/views/MainView/MainView.jsx @@ -838,216 +838,204 @@ export default function MainView({ className, initService }) { fontSize: "11px", opacity: ".9", zIndex: "999", - backgroundColor: "rgba(0,0,0,0.7)", - padding: "8px", - width: "700px", - height: "550px", + backgroundColor: "rgba(0,0,0,0.9)", + padding: "15px", + maxWidth: "600px", borderRadius: "5px", fontFamily: "monospace", - overflow: "hidden", - boxSizing: "border-box", - display: "flex", - flexDirection: "column", + maxHeight: "400px", + overflowY: "auto", }} >
🔗 Deep Link Debug Info
-
- {/* Left Column */} -
- {/* Current State */} -
-
- 📊 Current: -
-
- isDeepLink:{" "} - - {deepLinkInfo.isDeepLink ? "✓" : "✗"} - -
-
- contentTarget:{" "} - - {deepLinkInfo.contentTarget || "MISSING"} - -
-
- panels: {panels.length}, top:{" "} - {panels.length > 0 ? panels[panels.length - 1].name : "none"} -
-
- - {/* App Status */} -
-
- 📱 System: -
-
webOS: {appStatus.webOSVersion || "unknown"}
-
- deviceId:{" "} - {appStatus.deviceId - ? appStatus.deviceId.substring(0, 8) + "..." - : "unknown"} -
-
server: {appStatus.serverHOST || "unknown"}
-
- - {/* Redux State */} -
-
- 🏪 Redux: -
-
deepLink: {JSON.stringify(deepLinkInfo)}
-
secondLayer: {JSON.stringify(secondLayerInfo)}
-
+ {/* Deep Link Info */} +
+
+ isDeepLink:{" "} + + {deepLinkInfo.isDeepLink ? "true" : "false"} +
+
+ contentTarget:{" "} + + {deepLinkInfo.contentTarget || "(empty)"} + +
+
- {/* Right Column */} -
- {/* Launch Params */} -
-
- 📱 Launch Params: -
- {(() => { - try { - if ( - !( - typeof window === "object" && - window.PalmSystem && - window.PalmSystem.launchParams - ) - ) { - return ( -
- No webOS environment -
- ); - } - - const raw = window.PalmSystem.launchParams; - const parsed = JSON.parse(raw); - const containerFlag = parsed["x-webos-app-container-launch"]; - const finalParams = - containerFlag === true ? parsed.details : parsed; - const contentTarget = finalParams.contentTarget; - - return ( - <> -
raw: {raw.substring(0, 50)}...
-
containerFlag: {String(containerFlag)}
-
- contentTarget:{" "} - - {contentTarget || "MISSING"} - -
- - ); - } catch (e) { - return ( -
Error: {e.message}
- ); - } - })()} -
- - {/* Real-time Check */} -
-
- 🔄 Real-time: -
- {(() => { - try { - let currentParams = {}; + {/* Launch Params Check */} +
+
+ 📱 Launch Params: +
+
+ {(() => { + try { + const getLaunchParams = () => { if ( typeof window === "object" && window.PalmSystem && window.PalmSystem.launchParams ) { - currentParams = JSON.parse(window.PalmSystem.launchParams); - if ( - currentParams["x-webos-app-container-launch"] === true - ) { - currentParams = currentParams.details; + 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" }; } - return ( - <> -
time: {new Date().toLocaleTimeString()}
-
- current:{" "} - - {currentParams.contentTarget || "MISSING"} - -
- - ); - } catch (e) { - return ( -
Error: {e.message}
- ); - } - })()} + }; + 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: +
+
+ 🔍 Parsed Deep Link:
- {(() => { - const tokens = deepLinkInfo.contentTarget.split("_"); - if (tokens[0] === "V2" || tokens[0] === "V3") { +
+ {(() => { + 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 ( - <> -
- Version: {tokens[0]}, Code: {tokens[1]}, Name: {tokens[2]} - , Type: {tokens[3]} -
- {tokens.length > 4 && ( -
Extra: {tokens.slice(4).join("_")}
- )} - +
+ ❌ Raw format (not V2/V3) +
); - } - return ( -
❌ Not V2/V3 format
- ); - })()} + })()} +
)}