From 1e0ef0c71325fa2d3fa94a967ccf00bc9f2e934c Mon Sep 17 00:00:00 2001 From: yschoi Date: Mon, 11 Aug 2025 10:23:47 +0900 Subject: [PATCH 01/16] =?UTF-8?q?=EC=98=A8=EB=B0=B0=EC=88=98=20=EC=8B=9C?= =?UTF-8?q?=EC=84=A4=20=EC=A7=80=EB=8F=84=20=ED=91=9C=EC=B6=9C=20=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../(popUp-layout)/mapFeaturePopup/page.tsx | 93 +------------------ apps/wr/middleware.ts | 1 - 2 files changed, 1 insertion(+), 93 deletions(-) diff --git a/apps/wr/app/(popUp-layout)/mapFeaturePopup/page.tsx b/apps/wr/app/(popUp-layout)/mapFeaturePopup/page.tsx index 94c1411f3..debea36c9 100644 --- a/apps/wr/app/(popUp-layout)/mapFeaturePopup/page.tsx +++ b/apps/wr/app/(popUp-layout)/mapFeaturePopup/page.tsx @@ -7,95 +7,6 @@ import { Title, UiTable } from "@common/business_components/ui"; import { useSearchParams } from "next/navigation"; import { useEffect, useState } from "react"; - -export const htdflData ={ - "bdstInfoSn": 54, - "ctpvCd": 11, - "sggCd": 11110, - "daddr": "청라동 100-80", - "bdstNm": "한국중부발전(주)", - "frstArchPrmsnDt": "2013-01-01", - "archArea": "-1.000000000", - "ctpvNm": null, - "sggNm": null, - "lat": 37.57096, - "lot": 126.98143, - "regDt": "2025-04-16", - "rgtr": null, - "mdfcnDt": "2025-04-16", - "mdfr": null, - "reuseBuilding": [ - { - "bdstRuseFcltSn": 4881, - "bdstInfoSn": 54, - "instlCmptnDt": "2025-06-20", - "instlCst": 300, - "operMngCd": null, - "anlOperCst": 400, - "instlCstSprtYn": null, - "instlCstSprtAmt": 0, - "grntchBdstCertYn": null, - "grntchBdstCertYr": null, - "grntchBdstCertNo": "", - "grntchBdstCertGrd": "", - "crgRdctYn": null, - "crgRdctBss": null, - "crgRdctAmt": 0, - "ruseFcltFlg": "HTB", - "bdstUsgCd": 2, - "lawTrgtYn": "N", - "regDt": "2025-04-16", - "rgtr": null, - "mdfcnDt": "2025-04-16", - "mdfr": null, - "htdflObj": { - "bdstRuseFcltSn": 4881, - "etgtType": "", - "fclCpct": 400, - "plwtYn": "Y", - "orgwtWtritSpt": "공장내", - "orgwtOcrnProcs": "1", - "wtritEntrcTp": 3, - "amtgnr": 1, - "prcsProcsYn": "Y", - "prcsFcltCpct": 14, - "regDt": "2025-04-16", - "rgtr": null, - "mdfcnDt": "2025-04-16", - "mdfr": null, - "fmYn": "Y", - "utztnCpct": 1, - "utztnUsg": "1", - "grssClfg": 0, - "combResdch": 0, - "trbt": 4, - "bod": 4, - "smll": "불쾌하지않을것", - "crmty": 4, - "tn": 10, - "tph": 10, - "ph": '1~3', - "clIonQnt": 1, - "cdtnv": 0, - "emsnExitTp": 5 - } - } - ], - "chgBuilding": [ - { - "bdstInfoSn": 54, - "archChgPrmsnDt": null, - "archChgArea": null, - "bdstChgNm": null, - "regDt": "2025-04-16", - "rgtr": null, - "mdfcnDt": "2025-04-16", - "mdfr": null - } - ] -} - - export default function MapFeaturePopup() { const [isFeatureCd, setIsFeatureCd] = useState(null); const { @@ -150,9 +61,7 @@ export default function MapFeaturePopup() { }); } else if (layerNm === "온배수시설") { htdfMapDetile(isFeatureCd).then((res) => { -//가짜데이터로 하였음!!!!!!!!! 기능 수정시 res를 넣어야함 - console.log(res) - setIsDetail(htdflData); + setIsDetail(res); }); } else if (layerNm === "잠재수요처") { ldrmntMapDetile(isFeatureCd).then((res) => { diff --git a/apps/wr/middleware.ts b/apps/wr/middleware.ts index e47a2a8f5..7758ec5ec 100644 --- a/apps/wr/middleware.ts +++ b/apps/wr/middleware.ts @@ -28,7 +28,6 @@ export function middleware(req: NextRequest) { } if (pathname === "/") { - console.log(" maim 화면이동 "); return NextResponse.redirect(new URL("/map/mainMap", req.url)); } From 2fd1159615b68e8c82875375ab3f7532c26fa354 Mon Sep 17 00:00:00 2001 From: bicochan Date: Mon, 11 Aug 2025 10:29:13 +0900 Subject: [PATCH 02/16] =?UTF-8?q?Revert=20"[common/features]=20feat:=20?= =?UTF-8?q?=ED=99=98=EA=B2=BD=20=EB=B3=80=EC=88=98=20URL=20=EB=B0=A9?= =?UTF-8?q?=EC=8B=9D=20=EB=8F=84=EC=9E=85"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit e4d52611d797e02e29fddede9d04f452b018f067. --- apps/common/features/.gitignore | 3 +- apps/common/features/cli.js | 44 ---- apps/common/features/package.json | 8 +- apps/common/features/src/app/index.tsx | 4 - apps/common/features/src/shared/config/api.ts | 8 +- apps/common/features/src/shared/lib/env.ts | 14 -- apps/common/features/src/shared/lib/index.ts | 1 - pnpm-lock.yaml | 220 ++++++++++++------ 8 files changed, 157 insertions(+), 145 deletions(-) delete mode 100644 apps/common/features/cli.js delete mode 100644 apps/common/features/src/shared/lib/env.ts diff --git a/apps/common/features/.gitignore b/apps/common/features/.gitignore index b660a552e..e8d8437ee 100644 --- a/apps/common/features/.gitignore +++ b/apps/common/features/.gitignore @@ -37,5 +37,4 @@ yarn-error.log* *.tsbuildinfo next-env.d.ts -.env* -__ENV__.js \ No newline at end of file +.env* \ No newline at end of file diff --git a/apps/common/features/cli.js b/apps/common/features/cli.js deleted file mode 100644 index 9f165f497..000000000 --- a/apps/common/features/cli.js +++ /dev/null @@ -1,44 +0,0 @@ -import { findUp } from "find-up"; -import { config } from "dotenv"; -import fs from "fs"; -import yargs from "yargs"; -import { hideBin } from "yargs/helpers"; - -async function parseDotenv(nodeEnv) { - const envFilePath = await findUp(`.env.${nodeEnv}`); - - const parsedEnv = config({ path: envFilePath }).parsed || {}; - - return parsedEnv; -} - -function writeEnv(parsedEnv) { - const scriptFilePath = `${fs.realpathSync(process.cwd())}/public/__ENV__.js`; - - fs.writeFileSync( - scriptFilePath, - `window.__ENV__ = ${JSON.stringify(parsedEnv)}`, - ); -} - -yargs(hideBin(process.argv)) - .command( - "next-env", - "Create Next.js runtime environment js", - function builder(y) { - return y.option("env", { - alias: "e", - type: "string", - description: "Environment name(ex: development, production)", - }); - }, - async function handler(args) { - const nodeEnv = args.e || args.env || "development"; - - const parsedEnv = await parseDotenv(nodeEnv); // dotenv 파싱 - writeEnv(parsedEnv); // 환경 변수 스크립트 파일 생성 - - return parsedEnv; - }, - ) - .parse(); diff --git a/apps/common/features/package.json b/apps/common/features/package.json index bfa43377e..304e88bae 100644 --- a/apps/common/features/package.json +++ b/apps/common/features/package.json @@ -1,12 +1,11 @@ { "name": "features", "version": "0.1.0", - "type": "module", "private": true, "scripts": { - "dev": "node cli.js next-env -e ${NODE_ENV:-development} && next dev -p 13000", + "dev": "next dev -p 13000", "build": "next build", - "start": "node cli.js next-env -e ${NODE_ENV:-production} && next start -p 13000", + "start": "next start -p 13000", "lint": "next lint" }, "dependencies": { @@ -28,8 +27,6 @@ "axios": "^1.8.1", "chart.js": "^4.4.8", "dayjs": "^1.11.13", - "dotenv": "^17.2.1", - "find-up": "^7.0.0", "js-cookie": "^3.0.5", "next": "15.3.0", "next-themes": "^0.4.6", @@ -48,7 +45,6 @@ "@types/js-cookie": "^3.0.6", "@types/node": "^22.13.1", "@types/webpack": "^5.28.5", - "@types/yargs": "^17.0.33", "eslint": "^9", "eslint-config-next": "15.1.7", "postcss": "^8", diff --git a/apps/common/features/src/app/index.tsx b/apps/common/features/src/app/index.tsx index eb6e75d00..692b55ef0 100644 --- a/apps/common/features/src/app/index.tsx +++ b/apps/common/features/src/app/index.tsx @@ -4,16 +4,12 @@ import "@fontsource-variable/noto-sans-kr"; import { AppProvider } from "./providers"; import { cookies } from "next/headers"; -import Script from "next/script"; const App = async ({ children }: Readonly<{ children: React.ReactNode }>) => { const theme = (await cookies()).get("site-theme-key"); return ( - -