From 30af06ffac1dafd24c03390b46674e1680e4bb03 Mon Sep 17 00:00:00 2001 From: bicochan Date: Thu, 27 Feb 2025 18:40:39 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20=EC=82=AC=EC=9D=B4=ED=8A=B8=20=EB=93=B1?= =?UTF-8?q?=EB=A1=9D=20=ED=8E=98=EC=9D=B4=EC=A7=80=20=EC=9E=91=EC=97=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/cs/app/layout.tsx | 6 + apps/cs/app/site/register/page.tsx | 2 + apps/cs/next.config.ts | 4 +- apps/cs/package.json | 1 + apps/cs/public/file.svg | 1 - apps/cs/public/globe.svg | 1 - apps/cs/public/next.svg | 1 - apps/cs/public/vercel.svg | 1 - apps/cs/public/window.svg | 1 - apps/cs/src/app/index.tsx | 5 - apps/cs/src/pages/site/index.ts | 3 +- apps/cs/src/pages/site/ui/index.tsx | 45 ---- apps/cs/src/pages/site/ui/layout.tsx | 16 ++ apps/cs/src/pages/site/ui/register-page.tsx | 216 ++++++++++++++++++++ apps/cs/src/pages/site/ui/site-page.tsx | 39 ++++ apps/cs/tsconfig.json | 4 +- 16 files changed, 284 insertions(+), 62 deletions(-) create mode 100644 apps/cs/app/site/register/page.tsx delete mode 100644 apps/cs/public/file.svg delete mode 100644 apps/cs/public/globe.svg delete mode 100644 apps/cs/public/next.svg delete mode 100644 apps/cs/public/vercel.svg delete mode 100644 apps/cs/public/window.svg delete mode 100644 apps/cs/src/pages/site/ui/index.tsx create mode 100644 apps/cs/src/pages/site/ui/layout.tsx create mode 100644 apps/cs/src/pages/site/ui/register-page.tsx create mode 100644 apps/cs/src/pages/site/ui/site-page.tsx diff --git a/apps/cs/app/layout.tsx b/apps/cs/app/layout.tsx index dc361bb31..aa2049dcc 100644 --- a/apps/cs/app/layout.tsx +++ b/apps/cs/app/layout.tsx @@ -1,2 +1,8 @@ +import type { Metadata } from "next"; import { App } from "@/app"; + +export const metadata: Metadata = { + title: "유역하수도 통합 정보플랫폼", +}; + export default App; diff --git a/apps/cs/app/site/register/page.tsx b/apps/cs/app/site/register/page.tsx new file mode 100644 index 000000000..a11d0b60c --- /dev/null +++ b/apps/cs/app/site/register/page.tsx @@ -0,0 +1,2 @@ +import { RegisterPage } from "@/pages/site"; +export default RegisterPage; diff --git a/apps/cs/next.config.ts b/apps/cs/next.config.ts index e9ffa3083..cb651cdc0 100644 --- a/apps/cs/next.config.ts +++ b/apps/cs/next.config.ts @@ -1,7 +1,5 @@ import type { NextConfig } from "next"; -const nextConfig: NextConfig = { - /* config options here */ -}; +const nextConfig: NextConfig = {}; export default nextConfig; diff --git a/apps/cs/package.json b/apps/cs/package.json index 479772234..65039d1b3 100644 --- a/apps/cs/package.json +++ b/apps/cs/package.json @@ -9,6 +9,7 @@ "lint": "next lint" }, "dependencies": { + "@common/assets": "workspace:*", "@common/components": "workspace:*", "@tanstack/react-table": "^8.21.2", "next": "15.1.7" diff --git a/apps/cs/public/file.svg b/apps/cs/public/file.svg deleted file mode 100644 index 004145cdd..000000000 --- a/apps/cs/public/file.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/apps/cs/public/globe.svg b/apps/cs/public/globe.svg deleted file mode 100644 index 567f17b0d..000000000 --- a/apps/cs/public/globe.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/apps/cs/public/next.svg b/apps/cs/public/next.svg deleted file mode 100644 index 5174b28c5..000000000 --- a/apps/cs/public/next.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/apps/cs/public/vercel.svg b/apps/cs/public/vercel.svg deleted file mode 100644 index 770539603..000000000 --- a/apps/cs/public/vercel.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/apps/cs/public/window.svg b/apps/cs/public/window.svg deleted file mode 100644 index b2b2a44f6..000000000 --- a/apps/cs/public/window.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/apps/cs/src/app/index.tsx b/apps/cs/src/app/index.tsx index ee072f007..9223b0790 100644 --- a/apps/cs/src/app/index.tsx +++ b/apps/cs/src/app/index.tsx @@ -1,11 +1,6 @@ -import type { Metadata } from "next"; import "./styles/base.css"; import "./styles/components.css"; -export const metadata: Metadata = { - title: "유역하수도 통합 정보플랫폼", -}; - const App = ({ children }: Readonly<{ children: React.ReactNode }>) => { return ( diff --git a/apps/cs/src/pages/site/index.ts b/apps/cs/src/pages/site/index.ts index 47f236d79..22c7fef7b 100644 --- a/apps/cs/src/pages/site/index.ts +++ b/apps/cs/src/pages/site/index.ts @@ -1 +1,2 @@ -export { SitePage } from "./ui"; +export { RegisterPage } from "./ui/register-page"; +export { SitePage } from "./ui/site-page"; diff --git a/apps/cs/src/pages/site/ui/index.tsx b/apps/cs/src/pages/site/ui/index.tsx deleted file mode 100644 index edf9a5605..000000000 --- a/apps/cs/src/pages/site/ui/index.tsx +++ /dev/null @@ -1,45 +0,0 @@ -"use client"; - -import "@common/assets/styles/grid.css"; - -import { - BaseLayout, - Button, - Input, - BasicTable as Table, -} from "@common/components"; -import { data, columns } from "../model/__mocks__"; - -const SitePage = () => { - return ( - -
-

- 사이트 관리 -

-
-
-
- - - -
-
-
-
-

사이트 목록

- -
-
- - - - - - - ); -}; - -export { SitePage }; diff --git a/apps/cs/src/pages/site/ui/layout.tsx b/apps/cs/src/pages/site/ui/layout.tsx new file mode 100644 index 000000000..19e48fbd0 --- /dev/null +++ b/apps/cs/src/pages/site/ui/layout.tsx @@ -0,0 +1,16 @@ +import { BaseLayout } from "@common/components"; + +function SitePageLayout({ children }: { children: React.ReactNode }) { + return ( + +
+

+ 사이트 관리 +

+ {children} +
+
+ ); +} + +export { SitePageLayout }; diff --git a/apps/cs/src/pages/site/ui/register-page.tsx b/apps/cs/src/pages/site/ui/register-page.tsx new file mode 100644 index 000000000..e970b2de7 --- /dev/null +++ b/apps/cs/src/pages/site/ui/register-page.tsx @@ -0,0 +1,216 @@ +import { + Button, + DropdownMenu, + DropdownMenuContent, + DropdownMenuItem, + DropdownMenuTrigger, + Input, + Label, + RadioGroup, + RadioGroupItem, + Table, + TableBody, + TableCell, + TableHead, + TableRow, +} from "@common/components"; +import { SitePageLayout } from "./layout"; + +function RegisterPage() { + return ( + +
+
+

사이트 등록/수정

+
+
+
+ + + + 사이트 코드 + + + + + + + + 사이트 구분 + + +
+ + + + + + + 내부 + 외부 + + + + +
+
+
+ + + 사이트 디자인 + + + + + + + + + 라이트 + 다크 + + + + + + + + 사이트명 + + + + + + + + 사이트 설명 + + + + + + + + 사이트 하단 표기 주소 + + + + + + + + 사이트 하단 표기 전화번호 + + + + + + + + 사이트 하단 표기 팩스번호 + + + + + + + + 사이트 하단 표기 내용 + + + + + + + + 북마크 아이콘 + + + + + + + + 기본 사이트 여부 + + + +
+ + +
+
+ + +
+
+
+
+ + + 사용 여부 + + + +
+ + +
+
+ + +
+
+
+
+
+
+
+
+
+ + + +
+ + ); +} + +export { RegisterPage }; diff --git a/apps/cs/src/pages/site/ui/site-page.tsx b/apps/cs/src/pages/site/ui/site-page.tsx new file mode 100644 index 000000000..54469c42a --- /dev/null +++ b/apps/cs/src/pages/site/ui/site-page.tsx @@ -0,0 +1,39 @@ +"use client"; + +import "@common/assets/styles/grid.css"; + +import { useRouter } from "next/navigation"; +import { Button, Input, DataTable } from "@common/components"; +import { data, columns } from "../model/__mocks__"; +import { SitePageLayout } from "./layout"; + +function SitePage() { + const router = useRouter(); + + return ( + +
+
+
+ + + +
+
+
+
+

사이트 목록

+ +
+
+ +
+
+
+
+ ); +} + +export { SitePage }; diff --git a/apps/cs/tsconfig.json b/apps/cs/tsconfig.json index 145a51f58..3a9bab950 100644 --- a/apps/cs/tsconfig.json +++ b/apps/cs/tsconfig.json @@ -25,9 +25,7 @@ "baseUrl": "./src", "paths": { "@/*": ["./*"], - "@common/components": ["../../../packages/common/components/src"], - "@common/assets/*": ["../../../packages/common/assets/dist/*"], - "@common/assets": ["../../../packages/common/assets/dist"] + "@common/components": ["../../../packages/common/components/src"] } }, "include": [