diff --git a/frontend/components/admin/dashboard/DashboardToolbar.tsx b/frontend/components/admin/dashboard/DashboardToolbar.tsx deleted file mode 100644 index c9a9581d..00000000 --- a/frontend/components/admin/dashboard/DashboardToolbar.tsx +++ /dev/null @@ -1,110 +0,0 @@ -'use client'; - -import React, { useState } from 'react'; - -interface DashboardToolbarProps { - onClearCanvas: () => void; - onSaveLayout: () => void; - canvasBackgroundColor: string; - onCanvasBackgroundColorChange: (color: string) => void; -} - -/** - * 대시보드 툴바 컴포넌트 - * - 전체 삭제, 레이아웃 저장 등 주요 액션 버튼 - */ -export function DashboardToolbar({ onClearCanvas, onSaveLayout, canvasBackgroundColor, onCanvasBackgroundColorChange }: DashboardToolbarProps) { - const [showColorPicker, setShowColorPicker] = useState(false); - return ( -
- 비워두면 테이블명으로 자동 생성됩니다 (예: "maintenance_schedules 목록") -
-데이터 소스와 컬럼을 설정하세요
-
- {JSON.stringify(queryResult.rows.slice(0, 3), null, 2)}
-
- - 데이터 소스와 쿼리를 설정하면 자동으로 일정 목록이 표시됩니다 -
-- 쿼리 결과에 다음 컬럼명이 있으면 자동으로 일정 항목으로 변환됩니다: -
-id - 고유 ID (없으면 자동 생성)
- title,{" "}
- task,{" "}
- name - 제목 (필수)
- description,{" "}
- desc,{" "}
- content - 상세 설명
- priority - 우선순위 (urgent, high,
- normal, low)
- status - 상태 (pending, in_progress,
- completed)
- assigned_to,{" "}
- assignedTo,{" "}
- user - 담당자
- due_date,{" "}
- dueDate,{" "}
- deadline - 마감일
- is_urgent,{" "}
- isUrgent,{" "}
- urgent - 긴급 여부
- - 🔍 디버그: queryResult 상태 = {queryResult ? "있음" : "없음"} -
- {queryResult && ( -- rows: {queryResult.rows?.length}개, error: {queryResult.error || "없음"} -
- )} -- 총 {queryResult.rows.length}개의 일정 항목을 찾았습니다. -
-첫 번째 데이터 미리보기:
-
- {JSON.stringify(queryResult.rows[0], null, 2)}
-
- - 위젯에서 추가/수정/삭제 시 데이터베이스에 직접 반영 -
-- 테이블명과 컬럼 매핑만 입력하면 자동으로 INSERT/UPDATE/DELETE 쿼리가 생성됩니다. -
- - {/* 테이블명 */} -- 복잡한 로직이 필요한 경우 직접 쿼리를 작성하세요. -
- - {/* INSERT 쿼리 */} -- 사용 가능한 변수: ${"{title}"}, ${"{description}"}, ${"{priority}"}, ${"{status}"}, ${"{assignedTo}"}, ${"{dueDate}"}, ${"{isUrgent}"} -
-- 사용 가능한 변수: ${"{id}"}, ${"{status}"} -
-- 사용 가능한 변수: ${"{id}"} -
-