- 디자인 시스템: #151515 배경, 1px 보더 카드, CSS vars, mono 포인트 - GlobalStyle/theme.ts v2 (DESIGN-SYSTEM.md 기반) - 공통 컴포넌트 (ui/base.tsx): LabelMeta, BracketValue, Card, TechBar, Timeline 등 - Sidebar: [대시] 브라켓 네비 + 모바일 하단 탭바 (767px) - LayoutShell: SidebarContext 제거, 단순화 - 대시보드 (/): SYS 상태 카드 4개 + ONGOING PROJECTS + ACTIVITY FEED - 활동 로그 (/activities): 로그 테이블 + 필터 + 검색 + 페이지네이션 (신규) - 설정 (/settings): 4섹션 Toggle/Bracket Input 그리드 - 자매 노드 관리 (/sisters): 3열 수평 레이아웃 (INFO/GRAPH/SYNC) - 자매 상세 (/sisters/[name]): 간소화 + 터미널 스타일 - 조직도 (/org): 터미널 카드 트리 구조 + 레벨 색상 - 프로젝트 목록 (/projects): 새 라우트 - 프로젝트 상세 (/projects/[id]): Phase Timeline + Audit Log + Checklist - FE 14 routes build 성공
41 lines
991 B
TypeScript
41 lines
991 B
TypeScript
'use client';
|
|
|
|
import React from 'react';
|
|
import styled from 'styled-components';
|
|
import { theme } from '@/styles/theme';
|
|
|
|
const Pre = styled.pre`
|
|
background: rgba(0, 0, 0, 0.3);
|
|
border: 1px solid var(--border-color);
|
|
border-radius: 8px;
|
|
padding: 16px;
|
|
font-size: 12px;
|
|
line-height: 1.6;
|
|
color: #a8c4e0;
|
|
font-family: 'Fira Code', 'Cascadia Code', 'JetBrains Mono', monospace;
|
|
overflow-x: auto;
|
|
white-space: pre-wrap;
|
|
word-break: break-word;
|
|
max-height: 480px;
|
|
overflow-y: auto;
|
|
|
|
&::-webkit-scrollbar { width: 4px; }
|
|
&::-webkit-scrollbar-thumb { background: rgba(240,246,252,0.15); border-radius: 2px; }
|
|
`;
|
|
|
|
const Empty = styled.div`
|
|
padding: 32px;
|
|
text-align: center;
|
|
color: var(--text-secondary);
|
|
font-size: 13px;
|
|
`;
|
|
|
|
interface ConfigViewerProps {
|
|
content: string;
|
|
}
|
|
|
|
export default function ConfigViewer({ content }: ConfigViewerProps) {
|
|
if (!content || content.trim() === '') return <Empty>설정 없음</Empty>;
|
|
return <Pre>{content}</Pre>;
|
|
}
|