From 60ef6a6a959f2c233d3a969bef5965d54a591fc7 Mon Sep 17 00:00:00 2001 From: dohyeons Date: Thu, 23 Oct 2025 13:30:13 +0900 Subject: [PATCH] =?UTF-8?q?=EB=AC=B8=EC=84=9C=20=EB=B0=8F=20=EB=B6=88?= =?UTF-8?q?=ED=95=84=EC=9A=94=ED=95=9C=20=EC=BB=B4=ED=8F=AC=EB=84=8C?= =?UTF-8?q?=ED=8A=B8=20=EC=82=AD=EC=A0=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../admin/dashboard/DashboardSidebar.tsx | 264 ------------------ .../admin/dashboard/DashboardTopMenu.tsx | 2 +- 2 files changed, 1 insertion(+), 265 deletions(-) delete mode 100644 frontend/components/admin/dashboard/DashboardSidebar.tsx diff --git a/frontend/components/admin/dashboard/DashboardSidebar.tsx b/frontend/components/admin/dashboard/DashboardSidebar.tsx deleted file mode 100644 index 62c50fdc..00000000 --- a/frontend/components/admin/dashboard/DashboardSidebar.tsx +++ /dev/null @@ -1,264 +0,0 @@ -"use client"; - -import React, { useState } from "react"; -import { DragData, ElementType, ElementSubtype } from "./types"; -import { ChevronDown, ChevronRight } from "lucide-react"; - -/** - * 대시보드 사이드바 컴포넌트 - * - 드래그 가능한 차트/위젯 목록 - * - 아코디언 방식으로 카테고리별 구분 - */ -export function DashboardSidebar() { - const [expandedSections, setExpandedSections] = useState({ - charts: true, - widgets: true, - operations: true, - }); - - // 섹션 토글 - const toggleSection = (section: keyof typeof expandedSections) => { - setExpandedSections((prev) => ({ ...prev, [section]: !prev[section] })); - }; - - // 드래그 시작 처리 - const handleDragStart = (e: React.DragEvent, type: ElementType, subtype: ElementSubtype) => { - const dragData: DragData = { type, subtype }; - e.dataTransfer.setData("application/json", JSON.stringify(dragData)); - e.dataTransfer.effectAllowed = "copy"; - }; - - return ( -
- {/* 차트 섹션 */} -
- - - {expandedSections.charts && ( -
- - - - - - - - -
- )} -
- - {/* 위젯 섹션 */} -
- - - {expandedSections.widgets && ( -
- - - - - - {/* */} - - - - -
- )} -
- - {/* 운영/작업 지원 섹션 */} -
- - - {expandedSections.operations && ( -
- - {/* 예약알림 위젯 - 필요시 주석 해제 */} - {/* */} - {/* 정비 일정 관리 위젯 제거 - 커스텀 목록 카드로 대체 가능 */} - - - - -
- )} -
-
- ); -} - -interface DraggableItemProps { - icon?: string; - title: string; - type: ElementType; - subtype: ElementSubtype; - className?: string; - onDragStart: (e: React.DragEvent, type: ElementType, subtype: ElementSubtype) => void; -} - -/** - * 드래그 가능한 아이템 컴포넌트 - */ -function DraggableItem({ title, type, subtype, className = "", onDragStart }: DraggableItemProps) { - return ( -
onDragStart(e, type, subtype)} - > - {title} -
- ); -} diff --git a/frontend/components/admin/dashboard/DashboardTopMenu.tsx b/frontend/components/admin/dashboard/DashboardTopMenu.tsx index f2a11b29..fdac3319 100644 --- a/frontend/components/admin/dashboard/DashboardTopMenu.tsx +++ b/frontend/components/admin/dashboard/DashboardTopMenu.tsx @@ -198,7 +198,7 @@ export function DashboardTopMenu({ 할 일 {/* 예약 알림 */} 정비 일정 - 문서 + {/* 문서 */} 리스크 알림 {/* 범용 위젯으로 대체 가능하여 주석처리 */}