diff --git a/com.twin.app.shoptime/src/views/MainView/MainView.jsx b/com.twin.app.shoptime/src/views/MainView/MainView.jsx
index e46d8383..e9d6d522 100644
--- a/com.twin.app.shoptime/src/views/MainView/MainView.jsx
+++ b/com.twin.app.shoptime/src/views/MainView/MainView.jsx
@@ -835,13 +835,13 @@ export default function MainView({ className, initService }) {
left: "0",
bottom: "0",
color: "#fff",
- fontSize: "12px",
+ fontSize: "11px",
opacity: ".9",
zIndex: "999",
backgroundColor: "rgba(0,0,0,0.7)",
- padding: "6px",
- width: "800px",
- height: "700px",
+ padding: "8px",
+ width: "700px",
+ height: "550px",
borderRadius: "5px",
fontFamily: "monospace",
overflow: "hidden",
@@ -853,30 +853,66 @@ export default function MainView({ className, initService }) {
π 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 || "unknown"}
+
+ deviceId:{" "}
+ {appStatus.deviceId
+ ? appStatus.deviceId.substring(0, 8) + "..."
+ : "unknown"}
+
server: {appStatus.serverHOST || "unknown"}
{/* Redux State */}
-
+
πͺ Redux:
deepLink: {JSON.stringify(deepLinkInfo)}
@@ -885,120 +921,94 @@ export default function MainView({ className, initService }) {
{/* Right Column */}
-
+
{/* Launch Params */}
-
-
+
+
π± Launch Params:
{(() => {
try {
- // νμ λͺ¨λ μ 보λ₯Ό νμ
- const hasWebOS =
- typeof window === "object" &&
- window.PalmSystem &&
- window.PalmSystem.launchParams;
-
- let raw = "N/A";
- let parsed = {};
- let containerFlag = "N/A";
- let finalParams = {};
- let contentTarget = "N/A";
- let parseError = null;
-
- if (hasWebOS) {
- try {
- raw = window.PalmSystem.launchParams;
- parsed = JSON.parse(raw);
- containerFlag = parsed["x-webos-app-container-launch"];
- finalParams =
- containerFlag === true ? parsed.details : parsed;
- contentTarget = finalParams.contentTarget;
- } catch (e) {
- parseError = e.message;
- }
+ 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 (
<>
-
-
- webOSνκ²½: {hasWebOS ? "β" : "β"}
-
-
-
-
-
- raw (μ΅μ΄ νλΌλ―Έν°):
-
-
- {raw}
-
-
-
-
- containerFlag: {String(containerFlag)}
-
-
-
-
initialParse:
-
- {JSON.stringify(parsed, null, 2)}
-
-
-
-
-
finalParams:
-
- {JSON.stringify(finalParams, null, 2)}
-
-
-
+
raw: {raw.substring(0, 50)}...
+
containerFlag: {String(containerFlag)}
contentTarget:{" "}
{contentTarget || "MISSING"}
+ >
+ );
+ } catch (e) {
+ return (
+
Error: {e.message}
+ );
+ }
+ })()}
+
- {parseError && (
-
- Parse Error: {parseError}
-
- )}
+ {/* Real-time Check */}
+
+
+ π Real-time:
+
+ {(() => {
+ try {
+ let currentParams = {};
+ 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;
+ }
+ }
+ return (
+ <>
+
time: {new Date().toLocaleTimeString()}
+
+ current:{" "}
+
+ {currentParams.contentTarget || "MISSING"}
+
+
>
);
} catch (e) {
@@ -1010,6 +1020,36 @@ export default function MainView({ className, initService }) {
+
+ {/* Parsed Deep Link */}
+ {deepLinkInfo.contentTarget && (
+
+
+ π Parsed:
+
+ {(() => {
+ const tokens = deepLinkInfo.contentTarget.split("_");
+ if (tokens[0] === "V2" || tokens[0] === "V3") {
+ return (
+ <>
+
+ Version: {tokens[0]}, Code: {tokens[1]}, Name: {tokens[2]}
+ , Type: {tokens[3]}
+
+ {tokens.length > 4 && (
+
Extra: {tokens.slice(4).join("_")}
+ )}
+ >
+ );
+ }
+ return (
+
β Not V2/V3 format
+ );
+ })()}
+
+ )}
);