From 9c8afcdd9e6b0a451f1d5f8d084ea2fbf0dd204e Mon Sep 17 00:00:00 2001 From: bicochan Date: Wed, 11 Jun 2025 17:45:06 +0900 Subject: [PATCH] =?UTF-8?q?rename:=20=ED=8C=9D=EC=97=85=20=EB=B3=B4?= =?UTF-8?q?=EA=B8=B0=20=ED=8C=8C=EC=9D=BC=EB=AA=85=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../app/(without-base-layout)/popup/[popupSn]/page.tsx | 10 ++++++++++ .../view-popup/[popupSn]/page.tsx | 10 ---------- apps/cs/src/pages/popup/index.ts | 2 +- apps/cs/src/pages/popup/model/table-columns.tsx | 2 +- .../popup/ui/{view-popup-page.tsx => view-popup.tsx} | 4 ++-- packages/common/components/src/ui/header/index.tsx | 2 +- 6 files changed, 15 insertions(+), 15 deletions(-) create mode 100644 apps/cs/app/(without-base-layout)/popup/[popupSn]/page.tsx delete mode 100644 apps/cs/app/(without-base-layout)/view-popup/[popupSn]/page.tsx rename apps/cs/src/pages/popup/ui/{view-popup-page.tsx => view-popup.tsx} (95%) diff --git a/apps/cs/app/(without-base-layout)/popup/[popupSn]/page.tsx b/apps/cs/app/(without-base-layout)/popup/[popupSn]/page.tsx new file mode 100644 index 000000000..16cd8e0af --- /dev/null +++ b/apps/cs/app/(without-base-layout)/popup/[popupSn]/page.tsx @@ -0,0 +1,10 @@ +import { ViewPopup as VViewPopup } from "@/pages/popup"; + +export default async function ViewPopup({ + params, +}: { + params: Promise<{ popupSn: string }>; +}) { + const { popupSn } = await params; + return ; +} diff --git a/apps/cs/app/(without-base-layout)/view-popup/[popupSn]/page.tsx b/apps/cs/app/(without-base-layout)/view-popup/[popupSn]/page.tsx deleted file mode 100644 index fd6705fb7..000000000 --- a/apps/cs/app/(without-base-layout)/view-popup/[popupSn]/page.tsx +++ /dev/null @@ -1,10 +0,0 @@ -import { ViewPopupPage as VViewPopupPage } from "@/pages/popup"; - -export default async function ViewPopupPage({ - params, -}: { - params: Promise<{ popupSn: string }>; -}) { - const { popupSn } = await params; - return ; -} diff --git a/apps/cs/src/pages/popup/index.ts b/apps/cs/src/pages/popup/index.ts index 571c01e24..44e21e42c 100644 --- a/apps/cs/src/pages/popup/index.ts +++ b/apps/cs/src/pages/popup/index.ts @@ -1,4 +1,4 @@ export { CreatePage } from "./ui/create-page"; export { ModifyPage } from "./ui/modify-page"; export { PopupPage } from "./ui/popup-page"; -export { ViewPopupPage } from "./ui/view-popup-page"; +export { ViewPopup } from "./ui/view-popup"; diff --git a/apps/cs/src/pages/popup/model/table-columns.tsx b/apps/cs/src/pages/popup/model/table-columns.tsx index ce6da9072..558b65827 100644 --- a/apps/cs/src/pages/popup/model/table-columns.tsx +++ b/apps/cs/src/pages/popup/model/table-columns.tsx @@ -83,7 +83,7 @@ const PreviewButton = ({ popupSn }: { popupSn: number }) => { const left = response.popupHrzntltyPstn + window.screenX; const top = response.popupVtclPstn + window.screenY; window.open( - `/view-popup/${popupSn}`, + `/popup/${popupSn}`, "", `width=${width},height=${height},left=${left},top=${top}`, ); diff --git a/apps/cs/src/pages/popup/ui/view-popup-page.tsx b/apps/cs/src/pages/popup/ui/view-popup.tsx similarity index 95% rename from apps/cs/src/pages/popup/ui/view-popup-page.tsx rename to apps/cs/src/pages/popup/ui/view-popup.tsx index bcf7f8de3..e587b17cb 100644 --- a/apps/cs/src/pages/popup/ui/view-popup-page.tsx +++ b/apps/cs/src/pages/popup/ui/view-popup.tsx @@ -7,7 +7,7 @@ import { PopupApi } from "../api/popup-service"; import { useEffect, useRef } from "react"; import { setCookie, getCookie } from "@/shared/lib/cookie"; -function ViewPopupPage({ popupSn }: { popupSn: string }) { +function ViewPopup({ popupSn }: { popupSn: string }) { const doNotShowTodayRef = useRef(false); const { data: popupInfo } = useQuery({ @@ -71,4 +71,4 @@ function ViewPopupPage({ popupSn }: { popupSn: string }) { ); } -export { ViewPopupPage }; +export { ViewPopup }; diff --git a/packages/common/components/src/ui/header/index.tsx b/packages/common/components/src/ui/header/index.tsx index fb3026af2..e0e94e17b 100644 --- a/packages/common/components/src/ui/header/index.tsx +++ b/packages/common/components/src/ui/header/index.tsx @@ -64,7 +64,7 @@ export function Header({ viewOnly }: { viewOnly?: boolean }) { const top = (response.popupVtclPstn || 0) + window.screenY; const popupWindow = window.open( - `/view-popup/${popup.popupSn}`, + `/popup/${popup.popupSn}`, "", `width=${width},height=${height},left=${left},top=${top},resizable=yes,scrollbars=yes,status=no,location=no,menubar=no`, );