|
|
|
@@ -71,6 +71,8 @@ import { sendLogTotalRecommend } from "../actions/logActions";
|
|
|
|
// } from "../utils/focus-monitor";
|
|
|
|
// } from "../utils/focus-monitor";
|
|
|
|
// import { PanelHoc } from "../components/TPanel/TPanel";
|
|
|
|
// import { PanelHoc } from "../components/TPanel/TPanel";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
let foreGroundChangeTimer = null;
|
|
|
|
let foreGroundChangeTimer = null;
|
|
|
|
|
|
|
|
|
|
|
|
// 기존 콘솔 메서드를 백업
|
|
|
|
// 기존 콘솔 메서드를 백업
|
|
|
|
@@ -147,15 +149,15 @@ function AppBase(props) {
|
|
|
|
(state) => state.common.appStatus.cursorVisible
|
|
|
|
(state) => state.common.appStatus.cursorVisible
|
|
|
|
);
|
|
|
|
);
|
|
|
|
const introTermsAgree = useSelector((state) => state.common.introTermsAgree);
|
|
|
|
const introTermsAgree = useSelector((state) => state.common.introTermsAgree);
|
|
|
|
const deviceRegistered = useSelector(
|
|
|
|
const deviceRegistered = useSelector((state) => state.common.deviceRegistered);
|
|
|
|
(state) => state.common.deviceRegistered
|
|
|
|
|
|
|
|
);
|
|
|
|
|
|
|
|
// const optionalTermsAgree = useSelector((state) => state.common.optionalTermsAgree);
|
|
|
|
// const optionalTermsAgree = useSelector((state) => state.common.optionalTermsAgree);
|
|
|
|
const termsLoading = useSelector((state) => state.common.termsLoading);
|
|
|
|
const termsLoading = useSelector((state) => state.common.termsLoading);
|
|
|
|
// termsFlag 전체 상태 확인
|
|
|
|
// termsFlag 전체 상태 확인
|
|
|
|
// const termsFlag = useSelector((state) => state.common.termsFlag);
|
|
|
|
// const termsFlag = useSelector((state) => state.common.termsFlag);
|
|
|
|
const termsData = useSelector((state) => state.home.termsData);
|
|
|
|
const termsData = useSelector((state) => state.home.termsData);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
useEffect(() => {
|
|
|
|
useEffect(() => {
|
|
|
|
// Chromium68 호환성을 위해 Optional Chaining 제거
|
|
|
|
// Chromium68 호환성을 위해 Optional Chaining 제거
|
|
|
|
if (termsData && termsData.data && termsData.data.terms) {
|
|
|
|
if (termsData && termsData.data && termsData.data.terms) {
|
|
|
|
@@ -171,8 +173,7 @@ function AppBase(props) {
|
|
|
|
// const macAddress = useSelector((state) => state.common.macAddress);
|
|
|
|
// const macAddress = useSelector((state) => state.common.macAddress);
|
|
|
|
|
|
|
|
|
|
|
|
// Chromium68 호환성을 위해 Optional Chaining 제거
|
|
|
|
// Chromium68 호환성을 위해 Optional Chaining 제거
|
|
|
|
const deviceCountryCode =
|
|
|
|
const deviceCountryCode = httpHeader && httpHeader["X-Device-Country"] || "";
|
|
|
|
(httpHeader && httpHeader["X-Device-Country"]) || "";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
useEffect(() => {
|
|
|
|
useEffect(() => {
|
|
|
|
if (!cursorVisible && !Spotlight.getCurrent()) {
|
|
|
|
if (!cursorVisible && !Spotlight.getCurrent()) {
|
|
|
|
@@ -220,7 +221,9 @@ function AppBase(props) {
|
|
|
|
|
|
|
|
|
|
|
|
// called by [receive httpHeader, launch, relaunch]
|
|
|
|
// called by [receive httpHeader, launch, relaunch]
|
|
|
|
const initService = useCallback(
|
|
|
|
const initService = useCallback(
|
|
|
|
|
|
|
|
|
|
|
|
(haveyInit = true) => {
|
|
|
|
(haveyInit = true) => {
|
|
|
|
|
|
|
|
|
|
|
|
// console.log(
|
|
|
|
// console.log(
|
|
|
|
// "<<<<<<<<<<<<< appinfo >>>>>>>>>>>>{heavyInit, appinfo} ",
|
|
|
|
// "<<<<<<<<<<<<< appinfo >>>>>>>>>>>>{heavyInit, appinfo} ",
|
|
|
|
// haveyInit,
|
|
|
|
// haveyInit,
|
|
|
|
@@ -240,10 +243,7 @@ function AppBase(props) {
|
|
|
|
dispatch(
|
|
|
|
dispatch(
|
|
|
|
changeAppStatus({
|
|
|
|
changeAppStatus({
|
|
|
|
// Chromium68 호환성을 위해 Optional Chaining 제거
|
|
|
|
// Chromium68 호환성을 위해 Optional Chaining 제거
|
|
|
|
cursorVisible:
|
|
|
|
cursorVisible: window.PalmSystem && window.PalmSystem.cursor && window.PalmSystem.cursor.visibility,
|
|
|
|
window.PalmSystem &&
|
|
|
|
|
|
|
|
window.PalmSystem.cursor &&
|
|
|
|
|
|
|
|
window.PalmSystem.cursor.visibility,
|
|
|
|
|
|
|
|
})
|
|
|
|
})
|
|
|
|
);
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@@ -285,7 +285,7 @@ function AppBase(props) {
|
|
|
|
visible: true,
|
|
|
|
visible: true,
|
|
|
|
})
|
|
|
|
})
|
|
|
|
);
|
|
|
|
);
|
|
|
|
// clearLaunchParams();
|
|
|
|
clearLaunchParams();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
},
|
|
|
|
[dispatch]
|
|
|
|
[dispatch]
|
|
|
|
@@ -314,11 +314,7 @@ function AppBase(props) {
|
|
|
|
console.log(
|
|
|
|
console.log(
|
|
|
|
"visibility changed !!! ==> set to foreground cursorVisible",
|
|
|
|
"visibility changed !!! ==> set to foreground cursorVisible",
|
|
|
|
// Chromium68 호환성을 위해 Optional Chaining 제거
|
|
|
|
// Chromium68 호환성을 위해 Optional Chaining 제거
|
|
|
|
JSON.stringify(
|
|
|
|
JSON.stringify(window.PalmSystem && window.PalmSystem.cursor && window.PalmSystem.cursor.visibility)
|
|
|
|
window.PalmSystem &&
|
|
|
|
|
|
|
|
window.PalmSystem.cursor &&
|
|
|
|
|
|
|
|
window.PalmSystem.cursor.visibility
|
|
|
|
|
|
|
|
)
|
|
|
|
|
|
|
|
); // eslint-disable-line no-console
|
|
|
|
); // eslint-disable-line no-console
|
|
|
|
if (platform.platformName !== "webos") {
|
|
|
|
if (platform.platformName !== "webos") {
|
|
|
|
//for debug
|
|
|
|
//for debug
|
|
|
|
@@ -333,10 +329,7 @@ function AppBase(props) {
|
|
|
|
changeAppStatus({
|
|
|
|
changeAppStatus({
|
|
|
|
isAppForeground: true,
|
|
|
|
isAppForeground: true,
|
|
|
|
// Chromium68 호환성을 위해 Optional Chaining 제거
|
|
|
|
// Chromium68 호환성을 위해 Optional Chaining 제거
|
|
|
|
cursorVisible:
|
|
|
|
cursorVisible: window.PalmSystem && window.PalmSystem.cursor && window.PalmSystem.cursor.visibility,
|
|
|
|
window.PalmSystem &&
|
|
|
|
|
|
|
|
window.PalmSystem.cursor &&
|
|
|
|
|
|
|
|
window.PalmSystem.cursor.visibility,
|
|
|
|
|
|
|
|
})
|
|
|
|
})
|
|
|
|
);
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|