- 테넌트 메뉴: session 대신 로그인 사용자의 tenant_id만 사용 - 메뉴 그룹 토글: 자식 있으면 기본 표시, localStorage 복원 로직 통일 - 프레젠테이션 페이지 CSS: 글로벌 선택자를 .presentation-container로 스코핑
901 lines
65 KiB
PHP
901 lines
65 KiB
PHP
<!-- Sidebar (Dynamic Menu from DB + Static Tools/Labs) -->
|
|
<aside id="sidebar" class="sidebar bg-white shadow-lg flex-shrink-0 transition-all duration-300 ease-in-out w-64">
|
|
<div class="flex flex-col h-full">
|
|
<!-- Logo / Brand -->
|
|
<div class="flex items-center h-16 border-b border-gray-200 px-3">
|
|
<!-- 펼쳐진 상태: 햄버거 버튼 + 로고 -->
|
|
<div class="sidebar-expanded-only flex items-center gap-2 w-full">
|
|
<button
|
|
type="button"
|
|
onclick="toggleSidebar()"
|
|
class="p-2 text-gray-600 hover:text-gray-900 hover:bg-gray-100 rounded-lg transition-colors"
|
|
title="메뉴 접기"
|
|
>
|
|
<svg class="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
|
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 6h16M4 12h16M4 18h16" />
|
|
</svg>
|
|
</button>
|
|
<span class="text-xl font-bold text-gray-900">{{ config('app.name') }}</span>
|
|
</div>
|
|
<!-- 접힌 상태: S 버튼 (클릭하면 확장) -->
|
|
<button
|
|
type="button"
|
|
onclick="toggleSidebar()"
|
|
class="sidebar-collapsed-only hidden w-full p-2 text-xl font-bold text-gray-900 hover:bg-gray-100 rounded-lg transition-colors"
|
|
title="메뉴 펼치기"
|
|
>
|
|
S
|
|
</button>
|
|
</div>
|
|
|
|
<!-- Navigation Menu -->
|
|
<nav class="flex-1 overflow-y-auto p-4 sidebar-nav">
|
|
<ul class="space-y-1">
|
|
{{-- Main Section Menus (Dynamic from DB) --}}
|
|
<x-sidebar.menu-tree :menus="$mainMenus" />
|
|
|
|
{{-- R&D Labs 그룹 (탭 스타일 + 플라이아웃) - 기존 방식 유지 --}}
|
|
<li class="lab-menu-container pt-4 pb-1 border-t border-gray-200 mt-2" id="lab-menu-container">
|
|
<!-- 확장 상태: 헤더 + 탭 + 메뉴 -->
|
|
<div class="lab-expanded-view">
|
|
<button onclick="toggleGroup('lab-group'); scrollSidebarToBottom();" class="sidebar-group-header lab-group-header w-full flex items-center justify-between px-3 py-2 text-xs font-bold text-gray-700 uppercase tracking-wider rounded">
|
|
<span class="flex items-center gap-2">
|
|
<svg class="w-4 h-4 text-amber-600 flex-shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
|
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19.428 15.428a2 2 0 00-1.022-.547l-2.387-.477a6 6 0 00-3.86.517l-.318.158a6 6 0 01-3.86.517L6.05 15.21a2 2 0 00-1.806.547M8 4h8l-1 1v5.172a2 2 0 00.586 1.414l5 5c1.26 1.26.367 3.414-1.415 3.414H4.828c-1.782 0-2.674-2.154-1.414-3.414l5-5A2 2 0 009 10.172V5L8 4z" />
|
|
</svg>
|
|
<span class="sidebar-text">R&D Labs</span>
|
|
</span>
|
|
<svg id="lab-group-icon" class="w-3 h-3 transition-transform sidebar-text" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
|
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 9l-7 7-7-7" />
|
|
</svg>
|
|
</button>
|
|
|
|
<!-- 탭 + 메뉴 콘텐츠 -->
|
|
<div id="lab-group" class="mt-2">
|
|
<!-- S | A | M 탭 버튼 -->
|
|
<div class="lab-tabs flex mx-2 mb-2 bg-gray-100 rounded-lg p-1">
|
|
<button type="button" onclick="switchLabTab('s')" id="lab-tab-s" class="lab-tab active flex-1 py-1.5 text-xs font-bold rounded-md transition-all text-blue-600">
|
|
S
|
|
</button>
|
|
<button type="button" onclick="switchLabTab('a')" id="lab-tab-a" class="lab-tab flex-1 py-1.5 text-xs font-bold rounded-md transition-all text-purple-600">
|
|
A
|
|
</button>
|
|
<button type="button" onclick="switchLabTab('m')" id="lab-tab-m" class="lab-tab flex-1 py-1.5 text-xs font-bold rounded-md transition-all text-green-600">
|
|
M
|
|
</button>
|
|
</div>
|
|
|
|
<!-- S. Strategy 메뉴 -->
|
|
<ul id="lab-panel-s" class="lab-panel space-y-1">
|
|
<li><a href="{{ route('lab.strategy.tax') }}" class="flex items-center gap-2 px-3 py-2 rounded-lg text-sm text-gray-600 hover:bg-gray-100 hover:text-gray-900 transition-colors" title="세무 전략"><svg class="w-4 h-4 flex-shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 7h6m0 10v-3m-3 3h.01M9 17h.01M9 14h.01M12 14h.01M15 11h.01M12 11h.01M9 11h.01M7 21h10a2 2 0 002-2V5a2 2 0 00-2-2H7a2 2 0 00-2 2v14a2 2 0 002 2z" /></svg><span class="font-medium sidebar-text">세무 전략</span></a></li>
|
|
<li><a href="{{ route('lab.strategy.labor') }}" class="flex items-center gap-2 px-3 py-2 rounded-lg text-sm text-gray-600 hover:bg-gray-100 hover:text-gray-900 transition-colors" title="노무 전략"><svg class="w-4 h-4 flex-shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17 20h5v-2a3 3 0 00-5.356-1.857M17 20H7m10 0v-2c0-.656-.126-1.283-.356-1.857M7 20H2v-2a3 3 0 015.356-1.857M7 20v-2c0-.656.126-1.283.356-1.857m0 0a5.002 5.002 0 019.288 0M15 7a3 3 0 11-6 0 3 3 0 016 0z" /></svg><span class="font-medium sidebar-text">노무 전략</span></a></li>
|
|
<li><a href="{{ route('lab.strategy.debt') }}" class="flex items-center gap-2 px-3 py-2 rounded-lg text-sm text-gray-600 hover:bg-gray-100 hover:text-gray-900 transition-colors" title="채권추심 전략"><svg class="w-4 h-4 flex-shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 8c-1.657 0-3 .895-3 2s1.343 2 3 2 3 .895 3 2-1.343 2-3 2m0-8c1.11 0 2.08.402 2.599 1M12 8V7m0 1v8m0 0v1m0-1c-1.11 0-2.08-.402-2.599-1M21 12a9 9 0 11-18 0 9 9 0 0118 0z" /></svg><span class="font-medium sidebar-text">채권추심 전략</span></a></li>
|
|
<li class="border-t border-gray-100 pt-1 mt-1"></li>
|
|
<li><a href="{{ route('lab.strategy.stablecoin') }}" class="flex items-center gap-2 px-3 py-2 rounded-lg text-sm text-gray-600 hover:bg-gray-100 hover:text-gray-900 transition-colors" title="스테이블코인 보고서"><svg class="w-4 h-4 flex-shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z" /></svg><span class="font-medium sidebar-text">스테이블코인 보고서</span></a></li>
|
|
<li><a href="{{ route('lab.strategy.mrp-overseas') }}" class="flex items-center gap-2 px-3 py-2 rounded-lg text-sm text-gray-600 hover:bg-gray-100 hover:text-gray-900 transition-colors" title="MRP 해외사례"><svg class="w-4 h-4 flex-shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3.055 11H5a2 2 0 012 2v1a2 2 0 002 2 2 2 0 012 2v2.945M8 3.935V5.5A2.5 2.5 0 0010.5 8h.5a2 2 0 012 2 2 2 0 104 0 2 2 0 012-2h1.064M15 20.488V18a2 2 0 012-2h3.064M21 12a9 9 0 11-18 0 9 9 0 0118 0z" /></svg><span class="font-medium sidebar-text">MRP 해외사례</span></a></li>
|
|
<li><a href="{{ route('lab.strategy.chatbot') }}" class="flex items-center gap-2 px-3 py-2 rounded-lg text-sm text-gray-600 hover:bg-gray-100 hover:text-gray-900 transition-colors" title="상담용 챗봇 전략"><svg class="w-4 h-4 flex-shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M8 12h.01M12 12h.01M16 12h.01M21 12c0 4.418-4.03 8-9 8a9.863 9.863 0 01-4.255-.949L3 20l1.395-3.72C3.512 15.042 3 13.574 3 12c0-4.418 4.03-8 9-8s9 3.582 9 8z" /></svg><span class="font-medium sidebar-text">상담용 챗봇 전략</span></a></li>
|
|
<li><a href="{{ route('lab.strategy.kodata-vs-nice') }}" class="flex items-center gap-2 px-3 py-2 rounded-lg text-sm text-gray-600 hover:bg-gray-100 hover:text-gray-900 transition-colors" title="KoDATA vs NICE API 비교"><svg class="w-4 h-4 flex-shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 19v-6a2 2 0 00-2-2H5a2 2 0 00-2 2v6a2 2 0 002 2h2a2 2 0 002-2zm0 0V9a2 2 0 012-2h2a2 2 0 012 2v10m-6 0a2 2 0 002 2h2a2 2 0 002-2m0 0V5a2 2 0 012-2h2a2 2 0 012 2v14a2 2 0 01-2 2h-2a2 2 0 01-2-2z" /></svg><span class="font-medium sidebar-text">KoDATA vs NICE API</span></a></li>
|
|
<li><a href="{{ route('lab.strategy.barobill-vs-popbill') }}" class="flex items-center gap-2 px-3 py-2 rounded-lg text-sm text-gray-600 hover:bg-gray-100 hover:text-gray-900 transition-colors" title="바로빌 vs 팝빌 API"><svg class="w-4 h-4 flex-shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M8 9l3 3-3 3m5 0h3M5 20h14a2 2 0 002-2V6a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z" /></svg><span class="font-medium sidebar-text">바로빌 vs 팝빌 API</span></a></li>
|
|
<li><a href="{{ route('lab.strategy.knowledge-search') }}" class="flex items-center gap-2 px-3 py-2 rounded-lg text-sm text-gray-600 hover:bg-gray-100 hover:text-gray-900 transition-colors" title="사내 지식 검색 시스템"><svg class="w-4 h-4 flex-shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z" /></svg><span class="font-medium sidebar-text">사내 지식 검색 시스템</span></a></li>
|
|
<li><a href="{{ route('lab.strategy.chatbot-compare') }}" class="flex items-center gap-2 px-3 py-2 rounded-lg text-sm text-gray-600 hover:bg-gray-100 hover:text-gray-900 transition-colors" title="챗봇 솔루션 비교 분석"><svg class="w-4 h-4 flex-shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-3 7h3m-3 4h3m-6-4h.01M9 16h.01" /></svg><span class="font-medium sidebar-text">챗봇 솔루션 비교 분석</span></a></li>
|
|
<li><a href="{{ route('lab.strategy.rag-startups') }}" class="flex items-center gap-2 px-3 py-2 rounded-lg text-sm text-gray-600 hover:bg-gray-100 hover:text-gray-900 transition-colors" title="RAG 스타트업 현황"><svg class="w-4 h-4 flex-shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 10V3L4 14h7v7l9-11h-7z" /></svg><span class="font-medium sidebar-text">RAG 스타트업 현황</span></a></li>
|
|
<li><a href="{{ route('lab.strategy.douzone') }}" class="flex items-center gap-2 px-3 py-2 rounded-lg text-sm text-gray-600 hover:bg-gray-100 hover:text-gray-900 transition-colors" title="더존비즈온 분석"><svg class="w-4 h-4 flex-shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 21V5a2 2 0 00-2-2H7a2 2 0 00-2 2v16m14 0h2m-2 0h-5m-9 0H3m2 0h5M9 7h1m-1 4h1m4-4h1m-1 4h1m-5 10v-5a1 1 0 011-1h2a1 1 0 011 1v5m-4 0h4" /></svg><span class="font-medium sidebar-text">더존비즈온 분석</span></a></li>
|
|
<li><a href="{{ route('lab.strategy.confluence-vs-notion') }}" class="flex items-center gap-2 px-3 py-2 rounded-lg text-sm text-gray-600 hover:bg-gray-100 hover:text-gray-900 transition-colors" title="Confluence vs Notion"><svg class="w-4 h-4 flex-shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M8 7v8a2 2 0 002 2h6M8 7V5a2 2 0 012-2h4.586a1 1 0 01.707.293l4.414 4.414a1 1 0 01.293.707V15a2 2 0 01-2 2h-2M8 7H6a2 2 0 00-2 2v10a2 2 0 002 2h8a2 2 0 002-2v-2" /></svg><span class="font-medium sidebar-text">Confluence vs Notion</span></a></li>
|
|
<li><a href="{{ route('lab.strategy.qa-solution') }}" class="flex items-center gap-2 px-3 py-2 rounded-lg text-sm text-gray-600 hover:bg-gray-100 hover:text-gray-900 transition-colors" title="차세대 QA 솔루션"><svg class="w-4 h-4 flex-shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z" /></svg><span class="font-medium sidebar-text">차세대 QA 솔루션</span></a></li>
|
|
<li><a href="{{ route('lab.strategy.sales-strategy') }}" class="flex items-center gap-2 px-3 py-2 rounded-lg text-sm text-gray-600 hover:bg-gray-100 hover:text-gray-900 transition-colors" title="SAM 영업전략"><svg class="w-4 h-4 flex-shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 7h8m0 0v8m0-8l-8 8-4-4-6 6" /></svg><span class="font-medium sidebar-text">SAM 영업전략</span></a></li>
|
|
</ul>
|
|
|
|
<!-- A. AI/Automation 메뉴 -->
|
|
<ul id="lab-panel-a" class="lab-panel space-y-1 hidden">
|
|
<li><a href="{{ route('lab.ai.business-ocr') }}" class="flex items-center gap-2 px-3 py-2 rounded-lg text-sm text-gray-600 hover:bg-gray-100 hover:text-gray-900 transition-colors" title="사업자등록증 OCR"><svg class="w-4 h-4 flex-shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z" /></svg><span class="font-medium sidebar-text">사업자등록증 OCR</span></a></li>
|
|
<li><a href="{{ route('lab.ai.web-recording') }}" class="flex items-center gap-2 px-3 py-2 rounded-lg text-sm text-gray-600 hover:bg-gray-100 hover:text-gray-900 transition-colors" title="웹 녹음 AI 요약"><svg class="w-4 h-4 flex-shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 11a7 7 0 01-7 7m0 0a7 7 0 01-7-7m7 7v4m0 0H8m4 0h4m-4-8a3 3 0 01-3-3V5a3 3 0 116 0v6a3 3 0 01-3 3z" /></svg><span class="font-medium sidebar-text">웹 녹음 AI 요약</span></a></li>
|
|
<li><a href="{{ route('lab.ai.meeting-summary') }}" class="flex items-center gap-2 px-3 py-2 rounded-lg text-sm text-gray-600 hover:bg-gray-100 hover:text-gray-900 transition-colors" title="회의록 AI 요약"><svg class="w-4 h-4 flex-shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9.663 17h4.673M12 3v1m6.364 1.636l-.707.707M21 12h-1M4 12H3m3.343-5.657l-.707-.707m2.828 9.9a5 5 0 117.072 0l-.548.547A3.374 3.374 0 0014 18.469V19a2 2 0 11-4 0v-.531c0-.895-.356-1.754-.988-2.386l-.548-.547z" /></svg><span class="font-medium sidebar-text">회의록 AI 요약</span></a></li>
|
|
<li><a href="{{ route('lab.ai.work-memo-summary') }}" class="flex items-center gap-2 px-3 py-2 rounded-lg text-sm text-gray-600 hover:bg-gray-100 hover:text-gray-900 transition-colors" title="업무협의록 AI 요약"><svg class="w-4 h-4 flex-shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M11 5H6a2 2 0 00-2 2v11a2 2 0 002 2h11a2 2 0 002-2v-5m-1.414-9.414a2 2 0 112.828 2.828L11.828 15H9v-2.828l8.586-8.586z" /></svg><span class="font-medium sidebar-text">업무협의록 AI 요약</span></a></li>
|
|
<li class="border-t border-gray-100 pt-1 mt-1"></li>
|
|
<li><a href="{{ route('lab.ai.operator-chatbot') }}" class="flex items-center gap-2 px-3 py-2 rounded-lg text-sm text-gray-600 hover:bg-gray-100 hover:text-gray-900 transition-colors" title="운영자용 챗봇"><svg class="w-4 h-4 flex-shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M8 12h.01M12 12h.01M16 12h.01M21 12c0 4.418-4.03 8-9 8a9.863 9.863 0 01-4.255-.949L3 20l1.395-3.72C3.512 15.042 3 13.574 3 12c0-4.418 4.03-8 9-8s9 3.582 9 8z" /></svg><span class="font-medium sidebar-text">운영자용 챗봇</span></a></li>
|
|
<li><a href="{{ route('lab.ai.vertex-rag') }}" class="flex items-center gap-2 px-3 py-2 rounded-lg text-sm text-gray-600 hover:bg-gray-100 hover:text-gray-900 transition-colors" title="Vertex RAG 챗봇"><svg class="w-4 h-4 flex-shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9.75 17L9 20l-1 1h8l-1-1-.75-3M3 13h18M5 17h14a2 2 0 002-2V5a2 2 0 00-2-2H5a2 2 0 00-2 2v10a2 2 0 002 2z" /></svg><span class="font-medium sidebar-text">Vertex RAG 챗봇</span></a></li>
|
|
<li><a href="{{ route('lab.ai.tenant-knowledge') }}" class="flex items-center gap-2 px-3 py-2 rounded-lg text-sm text-gray-600 hover:bg-gray-100 hover:text-gray-900 transition-colors" title="테넌트 지식 업로드"><svg class="w-4 h-4 flex-shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M7 16a4 4 0 01-.88-7.903A5 5 0 1115.9 6L16 6a5 5 0 011 9.9M15 13l-3-3m0 0l-3 3m3-3v12" /></svg><span class="font-medium sidebar-text">테넌트 지식 업로드</span></a></li>
|
|
<li><a href="{{ route('lab.ai.tenant-chatbot') }}" class="flex items-center gap-2 px-3 py-2 rounded-lg text-sm text-gray-600 hover:bg-gray-100 hover:text-gray-900 transition-colors" title="테넌트 챗봇"><svg class="w-4 h-4 flex-shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17 8h2a2 2 0 012 2v6a2 2 0 01-2 2h-2v4l-4-4H9a1.994 1.994 0 01-1.414-.586m0 0L11 14h4a2 2 0 002-2V6a2 2 0 00-2-2H5a2 2 0 00-2 2v6a2 2 0 002 2h2v4l.586-.586z" /></svg><span class="font-medium sidebar-text">테넌트 챗봇</span></a></li>
|
|
<li class="border-t border-gray-100 pt-1 mt-1"></li>
|
|
<li><a href="{{ route('lab.ai.sam-ai-menu') }}" class="flex items-center gap-2 px-3 py-2 rounded-lg text-sm text-gray-600 hover:bg-gray-100 hover:text-gray-900 transition-colors" title="SAM AI 메뉴 이동"><svg class="w-4 h-4 flex-shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M13 10V3L4 14h7v7l9-11h-7z" /></svg><span class="font-medium sidebar-text">SAM AI 메뉴 이동</span></a></li>
|
|
<li><a href="{{ route('lab.ai.sam-ai-alarm') }}" class="flex items-center gap-2 px-3 py-2 rounded-lg text-sm text-gray-600 hover:bg-gray-100 hover:text-gray-900 transition-colors" title="SAM AI 알람음 제작"><svg class="w-4 h-4 flex-shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15.536 8.464a5 5 0 010 7.072m2.828-9.9a9 9 0 010 12.728M5.586 15H4a1 1 0 01-1-1v-4a1 1 0 011-1h1.586l4.707-4.707C10.923 3.663 12 4.109 12 5v14c0 .891-1.077 1.337-1.707.707L5.586 15z" /></svg><span class="font-medium sidebar-text">SAM AI 알람음 제작</span></a></li>
|
|
<li class="border-t border-gray-100 pt-1 mt-1"></li>
|
|
<li><a href="{{ route('lab.ai.gps-attendance') }}" class="flex items-center gap-2 px-3 py-2 rounded-lg text-sm text-gray-600 hover:bg-gray-100 hover:text-gray-900 transition-colors" title="GPS 출퇴근 관리"><svg class="w-4 h-4 flex-shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17.657 16.657L13.414 20.9a1.998 1.998 0 01-2.827 0l-4.244-4.243a8 8 0 1111.314 0z" /><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 11a3 3 0 11-6 0 3 3 0 016 0z" /></svg><span class="font-medium sidebar-text">GPS 출퇴근 관리</span></a></li>
|
|
<li><a href="{{ route('lab.ai.company-overview') }}" class="flex items-center gap-2 px-3 py-2 rounded-lg text-sm text-gray-600 hover:bg-gray-100 hover:text-gray-900 transition-colors" title="기업개황 조회"><svg class="w-4 h-4 flex-shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 21V5a2 2 0 00-2-2H7a2 2 0 00-2 2v16m14 0h2m-2 0h-5m-9 0H3m2 0h5M9 7h1m-1 4h1m4-4h1m-1 4h1m-5 10v-5a1 1 0 011-1h2a1 1 0 011 1v5m-4 0h4" /></svg><span class="font-medium sidebar-text">기업개황 조회</span></a></li>
|
|
</ul>
|
|
|
|
<!-- M. Management 메뉴 -->
|
|
<ul id="lab-panel-m" class="lab-panel space-y-1 hidden">
|
|
<li><a href="{{ route('lab.management.barobill-tenant') }}" class="flex items-center gap-2 px-3 py-2 rounded-lg text-sm text-gray-600 hover:bg-gray-100 hover:text-gray-900 transition-colors" title="바로빌 테넌트 관리"><svg class="w-4 h-4 flex-shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 21V5a2 2 0 00-2-2H7a2 2 0 00-2 2v16m14 0h2m-2 0h-5m-9 0H3m2 0h5M9 7h1m-1 4h1m4-4h1m-1 4h1m-5 10v-5a1 1 0 011-1h2a1 1 0 011 1v5m-4 0h4" /></svg><span class="font-medium sidebar-text">바로빌 테넌트 관리</span></a></li>
|
|
<li><a href="{{ route('lab.management.tax-invoice-strategy') }}" class="flex items-center gap-2 px-3 py-2 rounded-lg text-sm text-gray-600 hover:bg-gray-100 hover:text-gray-900 transition-colors" title="전자세금계산서 전략"><svg class="w-4 h-4 flex-shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 14l6-6m-5.5.5h.01m4.99 5h.01M19 21V5a2 2 0 00-2-2H7a2 2 0 00-2 2v16l3.5-2 3.5 2 3.5-2 3.5 2z" /></svg><span class="font-medium sidebar-text">전자세금계산서 전략</span></a></li>
|
|
<li><a href="{{ route('lab.management.tax-invoice') }}" class="flex items-center gap-2 px-3 py-2 rounded-lg text-sm text-gray-600 hover:bg-gray-100 hover:text-gray-900 transition-colors" title="전자세금계산서"><svg class="w-4 h-4 flex-shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 14l6-6m-5.5.5h.01m4.99 5h.01M19 21V5a2 2 0 00-2-2H7a2 2 0 00-2 2v16l3.5-2 3.5 2 3.5-2 3.5 2zM10 8.5a.5.5 0 11-1 0 .5.5 0 011 0zm5 5a.5.5 0 11-1 0 .5.5 0 011 0z" /></svg><span class="font-medium sidebar-text">전자세금계산서</span></a></li>
|
|
<li><a href="{{ route('lab.management.business-verify') }}" class="flex items-center gap-2 px-3 py-2 rounded-lg text-sm text-gray-600 hover:bg-gray-100 hover:text-gray-900 transition-colors" title="사업자등록번호 진위 확인"><svg class="w-4 h-4 flex-shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12l2 2 4-4m5.618-4.016A11.955 11.955 0 0112 2.944a11.955 11.955 0 01-8.618 3.04A12.02 12.02 0 003 9c0 5.591 3.824 10.29 9 11.622 5.176-1.332 9-6.03 9-11.622 0-1.042-.133-2.052-.382-3.016z" /></svg><span class="font-medium sidebar-text">사업자등록번호 진위 확인</span></a></li>
|
|
<li><a href="{{ route('lab.management.sales-meeting') }}" class="flex items-center gap-2 px-3 py-2 rounded-lg text-sm text-gray-600 hover:bg-gray-100 hover:text-gray-900 transition-colors" title="영업관리 & 매니저 미팅관리"><svg class="w-4 h-4 flex-shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17 20h5v-2a3 3 0 00-5.356-1.857M17 20H7m10 0v-2c0-.656-.126-1.283-.356-1.857M7 20H2v-2a3 3 0 015.356-1.857M7 20v-2c0-.656.126-1.283.356-1.857m0 0a5.002 5.002 0 019.288 0M15 7a3 3 0 11-6 0 3 3 0 016 0zm6 3a2 2 0 11-4 0 2 2 0 014 0zM7 10a2 2 0 11-4 0 2 2 0 014 0z" /></svg><span class="font-medium sidebar-text">영업관리 & 매니저 미팅관리</span></a></li>
|
|
<li class="border-t border-gray-100 pt-1 mt-1"></li>
|
|
<li><a href="{{ route('lab.management.card-tax-matching') }}" class="flex items-center gap-2 px-3 py-2 rounded-lg text-sm text-gray-600 hover:bg-gray-100 hover:text-gray-900 transition-colors" title="카드 세무항목 매칭 전략"><svg class="w-4 h-4 flex-shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 10h18M7 15h1m4 0h1m-7 4h12a3 3 0 003-3V8a3 3 0 00-3-3H6a3 3 0 00-3 3v8a3 3 0 003 3z" /></svg><span class="font-medium sidebar-text">카드 세무항목 매칭 전략</span></a></li>
|
|
<li><a href="{{ route('lab.management.card-api-report') }}" class="flex items-center gap-2 px-3 py-2 rounded-lg text-sm text-gray-600 hover:bg-gray-100 hover:text-gray-900 transition-colors" title="한국 카드사 API 보고서"><svg class="w-4 h-4 flex-shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 17v-2m3 2v-4m3 4v-6m2 10H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z" /></svg><span class="font-medium sidebar-text">한국 카드사 API 보고서</span></a></li>
|
|
<li><a href="{{ route('lab.management.card-usage-matching') }}" class="flex items-center gap-2 px-3 py-2 rounded-lg text-sm text-gray-600 hover:bg-gray-100 hover:text-gray-900 transition-colors" title="카드 사용내역 수집 후 매칭"><svg class="w-4 h-4 flex-shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 7v10c0 2.21 3.582 4 8 4s8-1.79 8-4V7M4 7c0 2.21 3.582 4 8 4s8-1.79 8-4M4 7c0-2.21 3.582-4 8-4s8 1.79 8 4" /></svg><span class="font-medium sidebar-text">카드 사용내역 수집 후 매칭</span></a></li>
|
|
<li><a href="{{ route('lab.management.account-api') }}" class="flex items-center gap-2 px-3 py-2 rounded-lg text-sm text-gray-600 hover:bg-gray-100 hover:text-gray-900 transition-colors" title="계좌입출금 내역 조회 API"><svg class="w-4 h-4 flex-shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 6l3 1m0 0l-3 9a5.002 5.002 0 006.001 0M6 7l3 9M6 7l6-2m6 2l3-1m-3 1l-3 9a5.002 5.002 0 006.001 0M18 7l3 9m-3-9l-6-2m0-2v2m0 16V5m0 16H9m3 0h3" /></svg><span class="font-medium sidebar-text">계좌입출금 내역 조회 API</span></a></li>
|
|
<li class="border-t border-gray-100 pt-1 mt-1"></li>
|
|
<li><a href="{{ route('lab.management.sales-scenario') }}" class="flex items-center gap-2 px-3 py-2 rounded-lg text-sm text-gray-600 hover:bg-gray-100 hover:text-gray-900 transition-colors" title="영업관리 시나리오"><svg class="w-4 h-4 flex-shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z" /></svg><span class="font-medium sidebar-text">영업관리 시나리오</span></a></li>
|
|
<li><a href="{{ route('lab.management.manager-scenario') }}" class="flex items-center gap-2 px-3 py-2 rounded-lg text-sm text-gray-600 hover:bg-gray-100 hover:text-gray-900 transition-colors" title="매니저 시나리오"><svg class="w-4 h-4 flex-shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-3 7h3m-3 4h3m-6-4h.01M9 16h.01" /></svg><span class="font-medium sidebar-text">매니저 시나리오</span></a></li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
|
|
<!-- 축소 상태: 아이콘 + 플라이아웃 -->
|
|
<div class="lab-collapsed-view hidden">
|
|
<div class="lab-flyout-trigger relative">
|
|
<button type="button" class="flex items-center justify-center w-full p-2 rounded-lg hover:bg-amber-50 transition-colors" title="R&D Labs">
|
|
<svg class="w-5 h-5 text-amber-600" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
|
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19.428 15.428a2 2 0 00-1.022-.547l-2.387-.477a6 6 0 00-3.86.517l-.318.158a6 6 0 01-3.86.517L6.05 15.21a2 2 0 00-1.806.547M8 4h8l-1 1v5.172a2 2 0 00.586 1.414l5 5c1.26 1.26.367 3.414-1.415 3.414H4.828c-1.782 0-2.674-2.154-1.414-3.414l5-5A2 2 0 009 10.172V5L8 4z" />
|
|
</svg>
|
|
</button>
|
|
|
|
<!-- 플라이아웃 팝업 -->
|
|
<div class="lab-flyout hidden fixed w-56 bg-white rounded-lg shadow-xl border border-gray-200 z-[9999]">
|
|
<!-- 화살표 -->
|
|
<div class="absolute -left-2 top-3 w-0 h-0 border-t-8 border-b-8 border-r-8 border-transparent border-r-white"></div>
|
|
<div class="absolute -left-[9px] top-3 w-0 h-0 border-t-8 border-b-8 border-r-8 border-transparent border-r-gray-200"></div>
|
|
|
|
<!-- 헤더 -->
|
|
<div class="px-3 py-2 bg-gradient-to-r from-amber-50 to-amber-100 rounded-t-lg border-b border-amber-200">
|
|
<span class="text-xs font-bold text-amber-800 uppercase tracking-wider">R&D Labs</span>
|
|
</div>
|
|
|
|
<!-- 탭 -->
|
|
<div class="flex p-2 bg-gray-50 border-b border-gray-100">
|
|
<button type="button" onclick="switchLabFlyoutTab('s')" id="lab-flyout-tab-s" class="lab-flyout-tab active flex-1 py-1.5 text-xs font-bold rounded transition-all text-blue-600">
|
|
S
|
|
</button>
|
|
<button type="button" onclick="switchLabFlyoutTab('a')" id="lab-flyout-tab-a" class="lab-flyout-tab flex-1 py-1.5 text-xs font-bold rounded transition-all text-purple-600">
|
|
A
|
|
</button>
|
|
<button type="button" onclick="switchLabFlyoutTab('m')" id="lab-flyout-tab-m" class="lab-flyout-tab flex-1 py-1.5 text-xs font-bold rounded transition-all text-green-600">
|
|
M
|
|
</button>
|
|
</div>
|
|
|
|
<!-- 메뉴 패널들 -->
|
|
<div class="p-2 max-h-64 overflow-y-auto">
|
|
<!-- S. Strategy -->
|
|
<ul id="lab-flyout-panel-s" class="lab-flyout-panel space-y-0.5">
|
|
<li><a href="{{ route('lab.strategy.tax') }}" class="block px-2 py-1 text-xs text-gray-600 rounded hover:bg-gray-100 hover:text-gray-900">세무 전략</a></li>
|
|
<li><a href="{{ route('lab.strategy.labor') }}" class="block px-2 py-1 text-xs text-gray-600 rounded hover:bg-gray-100 hover:text-gray-900">노무 전략</a></li>
|
|
<li><a href="{{ route('lab.strategy.debt') }}" class="block px-2 py-1 text-xs text-gray-600 rounded hover:bg-gray-100 hover:text-gray-900">채권추심 전략</a></li>
|
|
<li class="border-t border-gray-100 my-1"></li>
|
|
<li><a href="{{ route('lab.strategy.stablecoin') }}" class="block px-2 py-1 text-xs text-gray-600 rounded hover:bg-gray-100 hover:text-gray-900">스테이블코인 보고서</a></li>
|
|
<li><a href="{{ route('lab.strategy.mrp-overseas') }}" class="block px-2 py-1 text-xs text-gray-600 rounded hover:bg-gray-100 hover:text-gray-900">MRP 해외사례</a></li>
|
|
<li><a href="{{ route('lab.strategy.chatbot') }}" class="block px-2 py-1 text-xs text-gray-600 rounded hover:bg-gray-100 hover:text-gray-900">상담용 챗봇 전략</a></li>
|
|
<li><a href="{{ route('lab.strategy.kodata-vs-nice') }}" class="block px-2 py-1 text-xs text-gray-600 rounded hover:bg-gray-100 hover:text-gray-900">KoDATA vs NICE API</a></li>
|
|
<li><a href="{{ route('lab.strategy.barobill-vs-popbill') }}" class="block px-2 py-1 text-xs text-gray-600 rounded hover:bg-gray-100 hover:text-gray-900">바로빌 vs 팝빌 API</a></li>
|
|
<li><a href="{{ route('lab.strategy.knowledge-search') }}" class="block px-2 py-1 text-xs text-gray-600 rounded hover:bg-gray-100 hover:text-gray-900">사내 지식 검색 시스템</a></li>
|
|
<li><a href="{{ route('lab.strategy.chatbot-compare') }}" class="block px-2 py-1 text-xs text-gray-600 rounded hover:bg-gray-100 hover:text-gray-900">챗봇 솔루션 비교 분석</a></li>
|
|
<li><a href="{{ route('lab.strategy.rag-startups') }}" class="block px-2 py-1 text-xs text-gray-600 rounded hover:bg-gray-100 hover:text-gray-900">RAG 스타트업 현황</a></li>
|
|
<li><a href="{{ route('lab.strategy.douzone') }}" class="block px-2 py-1 text-xs text-gray-600 rounded hover:bg-gray-100 hover:text-gray-900">더존비즈온 분석</a></li>
|
|
<li><a href="{{ route('lab.strategy.confluence-vs-notion') }}" class="block px-2 py-1 text-xs text-gray-600 rounded hover:bg-gray-100 hover:text-gray-900">Confluence vs Notion</a></li>
|
|
<li><a href="{{ route('lab.strategy.qa-solution') }}" class="block px-2 py-1 text-xs text-gray-600 rounded hover:bg-gray-100 hover:text-gray-900">차세대 QA 솔루션</a></li>
|
|
<li><a href="{{ route('lab.strategy.sales-strategy') }}" class="block px-2 py-1 text-xs text-gray-600 rounded hover:bg-gray-100 hover:text-gray-900">SAM 영업전략</a></li>
|
|
</ul>
|
|
<!-- A. AI/Automation -->
|
|
<ul id="lab-flyout-panel-a" class="lab-flyout-panel space-y-0.5 hidden">
|
|
<li><a href="{{ route('lab.ai.business-ocr') }}" class="block px-2 py-1 text-xs text-gray-600 rounded hover:bg-gray-100 hover:text-gray-900">사업자등록증 OCR</a></li>
|
|
<li><a href="{{ route('lab.ai.web-recording') }}" class="block px-2 py-1 text-xs text-gray-600 rounded hover:bg-gray-100 hover:text-gray-900">웹 녹음 AI 요약</a></li>
|
|
<li><a href="{{ route('lab.ai.meeting-summary') }}" class="block px-2 py-1 text-xs text-gray-600 rounded hover:bg-gray-100 hover:text-gray-900">회의록 AI 요약</a></li>
|
|
<li><a href="{{ route('lab.ai.work-memo-summary') }}" class="block px-2 py-1 text-xs text-gray-600 rounded hover:bg-gray-100 hover:text-gray-900">업무협의록 AI 요약</a></li>
|
|
<li class="border-t border-gray-100 my-1"></li>
|
|
<li><a href="{{ route('lab.ai.operator-chatbot') }}" class="block px-2 py-1 text-xs text-gray-600 rounded hover:bg-gray-100 hover:text-gray-900">운영자용 챗봇</a></li>
|
|
<li><a href="{{ route('lab.ai.vertex-rag') }}" class="block px-2 py-1 text-xs text-gray-600 rounded hover:bg-gray-100 hover:text-gray-900">Vertex RAG 챗봇</a></li>
|
|
<li><a href="{{ route('lab.ai.tenant-knowledge') }}" class="block px-2 py-1 text-xs text-gray-600 rounded hover:bg-gray-100 hover:text-gray-900">테넌트 지식 업로드</a></li>
|
|
<li><a href="{{ route('lab.ai.tenant-chatbot') }}" class="block px-2 py-1 text-xs text-gray-600 rounded hover:bg-gray-100 hover:text-gray-900">테넌트 챗봇</a></li>
|
|
<li class="border-t border-gray-100 my-1"></li>
|
|
<li><a href="{{ route('lab.ai.sam-ai-menu') }}" class="block px-2 py-1 text-xs text-gray-600 rounded hover:bg-gray-100 hover:text-gray-900">SAM AI 메뉴 이동</a></li>
|
|
<li><a href="{{ route('lab.ai.sam-ai-alarm') }}" class="block px-2 py-1 text-xs text-gray-600 rounded hover:bg-gray-100 hover:text-gray-900">SAM AI 알람음 제작</a></li>
|
|
<li class="border-t border-gray-100 my-1"></li>
|
|
<li><a href="{{ route('lab.ai.gps-attendance') }}" class="block px-2 py-1 text-xs text-gray-600 rounded hover:bg-gray-100 hover:text-gray-900">GPS 출퇴근 관리</a></li>
|
|
<li><a href="{{ route('lab.ai.company-overview') }}" class="block px-2 py-1 text-xs text-gray-600 rounded hover:bg-gray-100 hover:text-gray-900">기업개황 조회</a></li>
|
|
</ul>
|
|
<!-- M. Management -->
|
|
<ul id="lab-flyout-panel-m" class="lab-flyout-panel space-y-0.5 hidden">
|
|
<li><a href="{{ route('lab.management.barobill-tenant') }}" class="block px-2 py-1 text-xs text-gray-600 rounded hover:bg-gray-100 hover:text-gray-900">바로빌 테넌트 관리</a></li>
|
|
<li><a href="{{ route('lab.management.tax-invoice-strategy') }}" class="block px-2 py-1 text-xs text-gray-600 rounded hover:bg-gray-100 hover:text-gray-900">전자세금계산서 전략</a></li>
|
|
<li><a href="{{ route('lab.management.tax-invoice') }}" class="block px-2 py-1 text-xs text-gray-600 rounded hover:bg-gray-100 hover:text-gray-900">전자세금계산서</a></li>
|
|
<li><a href="{{ route('lab.management.business-verify') }}" class="block px-2 py-1 text-xs text-gray-600 rounded hover:bg-gray-100 hover:text-gray-900">사업자등록번호 진위 확인</a></li>
|
|
<li><a href="{{ route('lab.management.sales-meeting') }}" class="block px-2 py-1 text-xs text-gray-600 rounded hover:bg-gray-100 hover:text-gray-900">영업관리 & 매니저 미팅</a></li>
|
|
<li class="border-t border-gray-100 my-1"></li>
|
|
<li><a href="{{ route('lab.management.card-tax-matching') }}" class="block px-2 py-1 text-xs text-gray-600 rounded hover:bg-gray-100 hover:text-gray-900">카드 세무항목 매칭 전략</a></li>
|
|
<li><a href="{{ route('lab.management.card-api-report') }}" class="block px-2 py-1 text-xs text-gray-600 rounded hover:bg-gray-100 hover:text-gray-900">한국 카드사 API 보고서</a></li>
|
|
<li><a href="{{ route('lab.management.card-usage-matching') }}" class="block px-2 py-1 text-xs text-gray-600 rounded hover:bg-gray-100 hover:text-gray-900">카드 사용내역 수집 후 매칭</a></li>
|
|
<li><a href="{{ route('lab.management.account-api') }}" class="block px-2 py-1 text-xs text-gray-600 rounded hover:bg-gray-100 hover:text-gray-900">계좌입출금 내역 조회 API</a></li>
|
|
<li class="border-t border-gray-100 my-1"></li>
|
|
<li><a href="{{ route('lab.management.sales-scenario') }}" class="block px-2 py-1 text-xs text-gray-600 rounded hover:bg-gray-100 hover:text-gray-900">영업관리 시나리오</a></li>
|
|
<li><a href="{{ route('lab.management.manager-scenario') }}" class="block px-2 py-1 text-xs text-gray-600 rounded hover:bg-gray-100 hover:text-gray-900">매니저 시나리오</a></li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</li>
|
|
</ul>
|
|
</nav>
|
|
|
|
<!-- 개발 도구 (하단 고정) -->
|
|
<div class="border-t border-gray-200 p-2 bg-gray-50">
|
|
<button onclick="toggleGroup('dev-tools-group')" class="sidebar-group-header w-full flex items-center justify-between px-3 py-2 text-xs font-bold text-gray-600 uppercase tracking-wider hover:bg-gray-100 rounded">
|
|
<span class="flex items-center gap-2">
|
|
<svg class="w-4 h-4 text-orange-500 flex-shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
|
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M10.325 4.317c.426-1.756 2.924-1.756 3.35 0a1.724 1.724 0 002.573 1.066c1.543-.94 3.31.826 2.37 2.37a1.724 1.724 0 001.065 2.572c1.756.426 1.756 2.924 0 3.35a1.724 1.724 0 00-1.066 2.573c.94 1.543-.826 3.31-2.37 2.37a1.724 1.724 0 00-2.572 1.065c-.426 1.756-2.924 1.756-3.35 0a1.724 1.724 0 00-2.573-1.066c-1.543.94-3.31-.826-2.37-2.37a1.724 1.724 0 00-1.065-2.572c-1.756-.426-1.756-2.924 0-3.35a1.724 1.724 0 001.066-2.573c-.94-1.543.826-3.31 2.37-2.37.996.608 2.296.07 2.572-1.065z" />
|
|
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 12a3 3 0 11-6 0 3 3 0 016 0z" />
|
|
</svg>
|
|
<span class="sidebar-text">개발 도구</span>
|
|
</span>
|
|
<svg id="dev-tools-group-icon" class="w-3 h-3 transition-transform sidebar-text" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
|
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 9l-7 7-7-7" />
|
|
</svg>
|
|
</button>
|
|
<ul id="dev-tools-group" class="space-y-1 mt-1">
|
|
<li>
|
|
<a href="{{ route('dev-tools.flow-tester.index') }}"
|
|
class="flex items-center gap-2 px-3 py-2 rounded-lg text-sm text-gray-700 hover:bg-gray-100 {{ request()->routeIs('dev-tools.flow-tester.*') ? 'bg-primary text-white hover:bg-primary' : '' }}"
|
|
title="API 플로우 테스터">
|
|
<svg class="w-4 h-4 flex-shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
|
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M8 9l3 3-3 3m5 0h3M5 20h14a2 2 0 002-2V6a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z" />
|
|
</svg>
|
|
<span class="font-medium sidebar-text">API 플로우 테스터</span>
|
|
</a>
|
|
</li>
|
|
<li>
|
|
<a href="{{ route('dev-tools.api-logs.index') }}"
|
|
class="flex items-center gap-2 px-3 py-2 rounded-lg text-sm text-gray-700 hover:bg-gray-100 {{ request()->routeIs('dev-tools.api-logs.*') ? 'bg-primary text-white hover:bg-primary' : '' }}"
|
|
title="API 요청 로그">
|
|
<svg class="w-4 h-4 flex-shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24">
|
|
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z" />
|
|
</svg>
|
|
<span class="font-medium sidebar-text">API 요청 로그</span>
|
|
</a>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</aside>
|
|
|
|
<style>
|
|
/* ========== 사이드바 기본 스타일 ========== */
|
|
.sidebar {
|
|
width: 16rem;
|
|
overflow: visible;
|
|
transition: width 0.3s ease-in-out;
|
|
}
|
|
|
|
.sidebar-collapsed {
|
|
width: 4rem !important;
|
|
}
|
|
|
|
/* 접힌 상태 기본 설정 */
|
|
.sidebar-expanded-only {
|
|
display: flex;
|
|
}
|
|
|
|
.sidebar-collapsed-only {
|
|
display: none;
|
|
}
|
|
|
|
/* 접힌 상태에서 overflow 설정 (툴팁 표시를 위해) */
|
|
html.sidebar-is-collapsed #sidebar,
|
|
.sidebar.sidebar-collapsed {
|
|
width: 4rem !important;
|
|
overflow: visible !important;
|
|
}
|
|
|
|
html.sidebar-is-collapsed #sidebar .sidebar-nav,
|
|
.sidebar.sidebar-collapsed .sidebar-nav {
|
|
overflow-y: auto !important;
|
|
overflow-x: visible !important;
|
|
}
|
|
|
|
html.sidebar-is-collapsed #sidebar > div,
|
|
.sidebar.sidebar-collapsed > div {
|
|
overflow: visible !important;
|
|
}
|
|
|
|
html.sidebar-is-collapsed #sidebar .sidebar-text,
|
|
.sidebar.sidebar-collapsed .sidebar-text {
|
|
display: none;
|
|
}
|
|
|
|
html.sidebar-is-collapsed #sidebar .sidebar-group-header,
|
|
.sidebar.sidebar-collapsed .sidebar-group-header {
|
|
display: none;
|
|
}
|
|
|
|
html.sidebar-is-collapsed #sidebar .sidebar-nav,
|
|
.sidebar.sidebar-collapsed .sidebar-nav {
|
|
padding: 0.5rem;
|
|
}
|
|
|
|
html.sidebar-is-collapsed #sidebar .sidebar-expanded-only,
|
|
.sidebar.sidebar-collapsed .sidebar-expanded-only {
|
|
display: none;
|
|
}
|
|
|
|
html.sidebar-is-collapsed #sidebar .sidebar-collapsed-only,
|
|
.sidebar.sidebar-collapsed .sidebar-collapsed-only {
|
|
display: block;
|
|
}
|
|
|
|
/* 접힌 상태에서 메뉴 아이템 중앙 정렬 */
|
|
html.sidebar-is-collapsed #sidebar .sidebar-nav a,
|
|
html.sidebar-is-collapsed #sidebar .sidebar-nav span,
|
|
.sidebar.sidebar-collapsed .sidebar-nav a,
|
|
.sidebar.sidebar-collapsed .sidebar-nav span {
|
|
justify-content: center;
|
|
padding-left: 0.75rem !important;
|
|
padding-right: 0.75rem !important;
|
|
}
|
|
|
|
/* 접힌 상태에서 개발 도구 영역 조정 */
|
|
html.sidebar-is-collapsed #sidebar .border-t.border-gray-200.p-2,
|
|
.sidebar.sidebar-collapsed .border-t.border-gray-200.p-2 {
|
|
padding: 0.5rem;
|
|
}
|
|
|
|
/* 접힌 상태에서 메뉴 아이콘 호버 툴팁 */
|
|
html.sidebar-is-collapsed #sidebar .sidebar-nav a,
|
|
html.sidebar-is-collapsed #sidebar .sidebar-nav > ul > li > ul > li > a,
|
|
html.sidebar-is-collapsed #sidebar .sidebar-nav > ul > li > ul > li > span,
|
|
.sidebar.sidebar-collapsed .sidebar-nav a,
|
|
.sidebar.sidebar-collapsed .sidebar-nav > ul > li > ul > li > a,
|
|
.sidebar.sidebar-collapsed .sidebar-nav > ul > li > ul > li > span {
|
|
position: relative;
|
|
}
|
|
|
|
html.sidebar-is-collapsed #sidebar .sidebar-nav a::after,
|
|
html.sidebar-is-collapsed #sidebar .sidebar-nav > ul > li > ul > li > span::after,
|
|
.sidebar.sidebar-collapsed .sidebar-nav a::after,
|
|
.sidebar.sidebar-collapsed .sidebar-nav > ul > li > ul > li > span::after {
|
|
content: attr(title);
|
|
position: absolute;
|
|
left: 100%;
|
|
top: 50%;
|
|
transform: translateY(-50%);
|
|
margin-left: 0.75rem;
|
|
padding: 0.5rem 0.75rem;
|
|
background-color: #1f2937;
|
|
color: white;
|
|
font-size: 0.75rem;
|
|
font-weight: 500;
|
|
white-space: nowrap;
|
|
border-radius: 0.375rem;
|
|
opacity: 0;
|
|
visibility: hidden;
|
|
transition: opacity 0.15s ease-in-out, visibility 0.15s ease-in-out;
|
|
z-index: 1000;
|
|
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
|
|
}
|
|
|
|
html.sidebar-is-collapsed #sidebar .sidebar-nav a:hover::after,
|
|
html.sidebar-is-collapsed #sidebar .sidebar-nav > ul > li > ul > li > span:hover::after,
|
|
.sidebar.sidebar-collapsed .sidebar-nav a:hover::after,
|
|
.sidebar.sidebar-collapsed .sidebar-nav > ul > li > ul > li > span:hover::after {
|
|
opacity: 1;
|
|
visibility: visible;
|
|
}
|
|
|
|
/* 툴팁 화살표 */
|
|
html.sidebar-is-collapsed #sidebar .sidebar-nav a::before,
|
|
html.sidebar-is-collapsed #sidebar .sidebar-nav > ul > li > ul > li > span::before,
|
|
.sidebar.sidebar-collapsed .sidebar-nav a::before,
|
|
.sidebar.sidebar-collapsed .sidebar-nav > ul > li > ul > li > span::before {
|
|
content: '';
|
|
position: absolute;
|
|
left: 100%;
|
|
top: 50%;
|
|
transform: translateY(-50%);
|
|
margin-left: 0.25rem;
|
|
border: 6px solid transparent;
|
|
border-right-color: #1f2937;
|
|
opacity: 0;
|
|
visibility: hidden;
|
|
transition: opacity 0.15s ease-in-out, visibility 0.15s ease-in-out;
|
|
z-index: 1000;
|
|
}
|
|
|
|
html.sidebar-is-collapsed #sidebar .sidebar-nav a:hover::before,
|
|
html.sidebar-is-collapsed #sidebar .sidebar-nav > ul > li > ul > li > span:hover::before,
|
|
.sidebar.sidebar-collapsed .sidebar-nav a:hover::before,
|
|
.sidebar.sidebar-collapsed .sidebar-nav > ul > li > ul > li > span:hover::before {
|
|
opacity: 1;
|
|
visibility: visible;
|
|
}
|
|
|
|
/* 접힌 상태에서 서브메뉴 숨김 */
|
|
html.sidebar-is-collapsed #sidebar .sidebar-nav ul ul,
|
|
.sidebar.sidebar-collapsed .sidebar-nav ul ul {
|
|
display: none;
|
|
}
|
|
|
|
/* 접힌 상태에서 그룹 헤더 버튼 스타일 */
|
|
html.sidebar-is-collapsed #sidebar .sidebar-group-header span.flex,
|
|
.sidebar.sidebar-collapsed .sidebar-group-header span.flex {
|
|
justify-content: center;
|
|
}
|
|
|
|
/* ========== R&D Labs 탭 + 플라이아웃 스타일 ========== */
|
|
|
|
/* R&D Labs 그룹 특별 스타일 */
|
|
.lab-group-header {
|
|
background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
|
|
border: 1px solid #f59e0b;
|
|
}
|
|
|
|
.lab-group-header:hover {
|
|
background: linear-gradient(135deg, #fde68a 0%, #fcd34d 100%);
|
|
}
|
|
|
|
/* 탭 버튼 스타일 */
|
|
.lab-tabs .lab-tab {
|
|
background: transparent;
|
|
border: none;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.lab-tabs .lab-tab.active {
|
|
background: white;
|
|
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
|
|
}
|
|
|
|
.lab-tabs .lab-tab:not(.active):hover {
|
|
background: rgba(255, 255, 255, 0.5);
|
|
}
|
|
|
|
/* 확장 상태에서 축소 뷰 숨김 */
|
|
.lab-expanded-view {
|
|
display: block;
|
|
}
|
|
|
|
.lab-collapsed-view {
|
|
display: none !important;
|
|
}
|
|
|
|
/* 축소 상태에서 확장 뷰 숨김, 축소 뷰 표시 */
|
|
html.sidebar-is-collapsed #sidebar .lab-expanded-view,
|
|
.sidebar.sidebar-collapsed .lab-expanded-view {
|
|
display: none !important;
|
|
}
|
|
|
|
html.sidebar-is-collapsed #sidebar .lab-collapsed-view,
|
|
.sidebar.sidebar-collapsed .lab-collapsed-view {
|
|
display: block !important;
|
|
}
|
|
|
|
/* 플라이아웃 트리거 */
|
|
.lab-flyout-trigger {
|
|
position: relative;
|
|
}
|
|
|
|
/* 플라이아웃 표시 - JavaScript로 제어 */
|
|
.lab-flyout.show {
|
|
display: block !important;
|
|
animation: flyoutFadeIn 0.15s ease-out;
|
|
}
|
|
|
|
/* 플라이아웃 왼쪽 투명 브릿지 영역 (hover gap 연결) */
|
|
.lab-flyout::before {
|
|
content: '';
|
|
position: absolute;
|
|
left: -20px;
|
|
top: 0;
|
|
width: 20px;
|
|
height: 100%;
|
|
background: transparent;
|
|
}
|
|
|
|
@keyframes flyoutFadeIn {
|
|
from {
|
|
opacity: 0;
|
|
transform: translateX(-8px);
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
transform: translateX(0);
|
|
}
|
|
}
|
|
|
|
/* 플라이아웃 탭 스타일 */
|
|
.lab-flyout-tab {
|
|
background: transparent;
|
|
border: none;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.lab-flyout-tab.active {
|
|
background: white;
|
|
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
|
|
}
|
|
|
|
.lab-flyout-tab:not(.active):hover {
|
|
background: rgba(255, 255, 255, 0.7);
|
|
}
|
|
|
|
/* 접힌 상태에서 R&D Labs 메뉴 아이템 스타일 리셋 */
|
|
html.sidebar-is-collapsed #sidebar .lab-panel span,
|
|
.sidebar.sidebar-collapsed .lab-panel span {
|
|
display: none;
|
|
}
|
|
|
|
/* 접힌 상태에서 탭 숨김 */
|
|
html.sidebar-is-collapsed #sidebar .lab-tabs,
|
|
.sidebar.sidebar-collapsed .lab-tabs {
|
|
display: none;
|
|
}
|
|
|
|
/* 접힌 상태에서 R&D Labs 그룹 border-t 유지 */
|
|
html.sidebar-is-collapsed #sidebar .lab-menu-container,
|
|
.sidebar.sidebar-collapsed .lab-menu-container {
|
|
border-top: 1px solid #e5e7eb;
|
|
padding-top: 1rem;
|
|
margin-top: 0.5rem;
|
|
}
|
|
</style>
|
|
|
|
<script>
|
|
// 사이드바 토글 (로컬스토리지 연동)
|
|
function toggleSidebar() {
|
|
const sidebar = document.getElementById('sidebar');
|
|
const html = document.documentElement;
|
|
|
|
if (html.classList.contains('sidebar-is-collapsed')) {
|
|
html.classList.remove('sidebar-is-collapsed');
|
|
sidebar.classList.remove('sidebar-collapsed');
|
|
localStorage.setItem('sidebar-collapsed', 'false');
|
|
} else {
|
|
html.classList.add('sidebar-is-collapsed');
|
|
sidebar.classList.add('sidebar-collapsed');
|
|
localStorage.setItem('sidebar-collapsed', 'true');
|
|
}
|
|
}
|
|
|
|
// 메뉴 그룹 토글 (R&D Labs, 개발 도구 등)
|
|
function toggleGroup(groupId) {
|
|
const sidebar = document.getElementById('sidebar');
|
|
// 사이드바가 접힌 상태면 그룹 토글 무시
|
|
if (sidebar.classList.contains('sidebar-collapsed')) {
|
|
return;
|
|
}
|
|
|
|
const group = document.getElementById(groupId);
|
|
const icon = document.getElementById(groupId + '-icon');
|
|
|
|
if (group.style.display === 'none') {
|
|
group.style.display = 'block';
|
|
icon.style.transform = 'rotate(0deg)';
|
|
localStorage.setItem('sidebar-' + groupId, 'open');
|
|
} else {
|
|
group.style.display = 'none';
|
|
icon.style.transform = 'rotate(-90deg)';
|
|
localStorage.setItem('sidebar-' + groupId, 'closed');
|
|
}
|
|
}
|
|
|
|
// 동적 메뉴 그룹 토글 (DB에서 가져온 메뉴)
|
|
function toggleMenuGroup(groupId) {
|
|
const sidebar = document.getElementById('sidebar');
|
|
// 사이드바가 접힌 상태면 그룹 토글 무시
|
|
if (sidebar.classList.contains('sidebar-collapsed') || document.documentElement.classList.contains('sidebar-is-collapsed')) {
|
|
return;
|
|
}
|
|
|
|
const group = document.getElementById(groupId);
|
|
const icon = document.getElementById(groupId + '-icon');
|
|
|
|
if (!group) return;
|
|
|
|
const isHidden = group.style.display === 'none' || group.style.display === '';
|
|
|
|
if (isHidden) {
|
|
group.style.display = 'block';
|
|
if (icon) {
|
|
icon.classList.add('rotate-180');
|
|
}
|
|
localStorage.setItem('menu-group-' + groupId, 'visible');
|
|
} else {
|
|
group.style.display = 'none';
|
|
if (icon) {
|
|
icon.classList.remove('rotate-180');
|
|
}
|
|
localStorage.setItem('menu-group-' + groupId, 'hidden');
|
|
}
|
|
}
|
|
|
|
// ========== R&D Labs 사이드바 스크롤 함수 ==========
|
|
|
|
// 사이드바를 최하단으로 스크롤하고 위치 저장
|
|
function scrollSidebarToBottom() {
|
|
const sidebarNav = document.querySelector('.sidebar-nav');
|
|
if (sidebarNav) {
|
|
setTimeout(function() {
|
|
sidebarNav.scrollTo({
|
|
top: sidebarNav.scrollHeight,
|
|
behavior: 'smooth'
|
|
});
|
|
localStorage.setItem('sidebar-scroll-bottom', 'true');
|
|
}, 50);
|
|
}
|
|
}
|
|
|
|
// 저장된 스크롤 위치 복원
|
|
function restoreSidebarScroll() {
|
|
const sidebarNav = document.querySelector('.sidebar-nav');
|
|
const scrollToBottom = localStorage.getItem('sidebar-scroll-bottom');
|
|
|
|
if (sidebarNav && scrollToBottom === 'true') {
|
|
setTimeout(function() {
|
|
sidebarNav.scrollTop = sidebarNav.scrollHeight;
|
|
}, 100);
|
|
}
|
|
}
|
|
|
|
// 일반 메뉴 클릭 시 스크롤 위치 초기화
|
|
function resetSidebarScroll() {
|
|
localStorage.removeItem('sidebar-scroll-bottom');
|
|
}
|
|
|
|
// ========== R&D Labs 탭 전환 함수 ==========
|
|
|
|
// 확장 상태: 탭 전환
|
|
function switchLabTab(tabKey) {
|
|
const tabs = ['s', 'a', 'm'];
|
|
|
|
tabs.forEach(function(key) {
|
|
const tab = document.getElementById('lab-tab-' + key);
|
|
const panel = document.getElementById('lab-panel-' + key);
|
|
|
|
if (tab) {
|
|
tab.classList.remove('active');
|
|
}
|
|
if (panel) {
|
|
panel.classList.add('hidden');
|
|
}
|
|
});
|
|
|
|
const activeTab = document.getElementById('lab-tab-' + tabKey);
|
|
const activePanel = document.getElementById('lab-panel-' + tabKey);
|
|
|
|
if (activeTab) {
|
|
activeTab.classList.add('active');
|
|
}
|
|
if (activePanel) {
|
|
activePanel.classList.remove('hidden');
|
|
}
|
|
|
|
localStorage.setItem('lab-active-tab', tabKey);
|
|
|
|
if (!window._skipLabScroll) {
|
|
scrollSidebarToBottom();
|
|
}
|
|
}
|
|
|
|
// 축소 상태 (플라이아웃): 탭 전환
|
|
function switchLabFlyoutTab(tabKey) {
|
|
const tabs = ['s', 'a', 'm'];
|
|
|
|
tabs.forEach(function(key) {
|
|
const tab = document.getElementById('lab-flyout-tab-' + key);
|
|
const panel = document.getElementById('lab-flyout-panel-' + key);
|
|
|
|
if (tab) {
|
|
tab.classList.remove('active');
|
|
}
|
|
if (panel) {
|
|
panel.classList.add('hidden');
|
|
}
|
|
});
|
|
|
|
const activeTab = document.getElementById('lab-flyout-tab-' + tabKey);
|
|
const activePanel = document.getElementById('lab-flyout-panel-' + tabKey);
|
|
|
|
if (activeTab) {
|
|
activeTab.classList.add('active');
|
|
}
|
|
if (activePanel) {
|
|
activePanel.classList.remove('hidden');
|
|
}
|
|
|
|
localStorage.setItem('lab-active-tab', tabKey);
|
|
}
|
|
|
|
// 플라이아웃 위치 동적 계산 및 hover 제어
|
|
function initLabFlyoutPosition() {
|
|
const trigger = document.querySelector('.lab-flyout-trigger');
|
|
const flyout = document.querySelector('.lab-flyout');
|
|
|
|
if (!trigger || !flyout) return;
|
|
|
|
let hideTimeout = null;
|
|
const HIDE_DELAY = 150;
|
|
|
|
function showFlyout() {
|
|
if (hideTimeout) {
|
|
clearTimeout(hideTimeout);
|
|
hideTimeout = null;
|
|
}
|
|
|
|
const triggerRect = trigger.getBoundingClientRect();
|
|
const sidebar = document.getElementById('sidebar');
|
|
const sidebarRect = sidebar.getBoundingClientRect();
|
|
|
|
flyout.style.left = (sidebarRect.right + 8) + 'px';
|
|
flyout.style.top = Math.max(triggerRect.top - 10, 10) + 'px';
|
|
|
|
const flyoutHeight = flyout.offsetHeight || 300;
|
|
const windowHeight = window.innerHeight;
|
|
if (triggerRect.top + flyoutHeight > windowHeight - 20) {
|
|
flyout.style.top = Math.max(windowHeight - flyoutHeight - 20, 10) + 'px';
|
|
}
|
|
|
|
flyout.classList.add('show');
|
|
}
|
|
|
|
function hideFlyout() {
|
|
hideTimeout = setTimeout(function() {
|
|
flyout.classList.remove('show');
|
|
}, HIDE_DELAY);
|
|
}
|
|
|
|
trigger.addEventListener('mouseenter', showFlyout);
|
|
trigger.addEventListener('mouseleave', hideFlyout);
|
|
|
|
flyout.addEventListener('mouseenter', function() {
|
|
if (hideTimeout) {
|
|
clearTimeout(hideTimeout);
|
|
hideTimeout = null;
|
|
}
|
|
});
|
|
flyout.addEventListener('mouseleave', hideFlyout);
|
|
}
|
|
|
|
// JavaScript 기반 툴팁 (overflow 제약 우회) - 이벤트 위임 방식
|
|
function initSidebarTooltips() {
|
|
if (document.getElementById('sidebar-tooltip')) {
|
|
return;
|
|
}
|
|
|
|
const tooltip = document.createElement('div');
|
|
tooltip.id = 'sidebar-tooltip';
|
|
tooltip.className = 'fixed bg-gray-800 text-white text-sm font-medium px-3 py-2 rounded-lg shadow-lg z-[9999] pointer-events-none opacity-0 transition-opacity duration-150 whitespace-nowrap';
|
|
tooltip.style.cssText = 'display: none;';
|
|
document.body.appendChild(tooltip);
|
|
|
|
const sidebar = document.getElementById('sidebar');
|
|
let currentTarget = null;
|
|
|
|
sidebar.addEventListener('mouseover', function(e) {
|
|
if (!sidebar.classList.contains('sidebar-collapsed') && !document.documentElement.classList.contains('sidebar-is-collapsed')) {
|
|
return;
|
|
}
|
|
|
|
const target = e.target.closest('.sidebar-nav a[title], .sidebar-nav span[title], #dev-tools-group a[title]');
|
|
if (!target || target === currentTarget) return;
|
|
|
|
currentTarget = target;
|
|
const title = target.getAttribute('title');
|
|
if (!title) return;
|
|
|
|
if (!target.hasAttribute('data-tooltip')) {
|
|
target.setAttribute('data-tooltip', title);
|
|
}
|
|
target.removeAttribute('title');
|
|
|
|
tooltip.textContent = title;
|
|
tooltip.style.display = 'block';
|
|
|
|
const rect = target.getBoundingClientRect();
|
|
tooltip.style.left = (rect.right + 12) + 'px';
|
|
tooltip.style.top = (rect.top + (rect.height / 2) - (tooltip.offsetHeight / 2)) + 'px';
|
|
|
|
requestAnimationFrame(() => {
|
|
tooltip.style.opacity = '1';
|
|
});
|
|
});
|
|
|
|
sidebar.addEventListener('mouseout', function(e) {
|
|
const target = e.target.closest('.sidebar-nav a, .sidebar-nav span, #dev-tools-group a');
|
|
if (!target) return;
|
|
|
|
const relatedTarget = e.relatedTarget;
|
|
if (relatedTarget && target.contains(relatedTarget)) {
|
|
return;
|
|
}
|
|
|
|
const originalTitle = target.getAttribute('data-tooltip');
|
|
if (originalTitle) {
|
|
target.setAttribute('title', originalTitle);
|
|
}
|
|
|
|
currentTarget = null;
|
|
tooltip.style.opacity = '0';
|
|
setTimeout(() => {
|
|
if (tooltip.style.opacity === '0') {
|
|
tooltip.style.display = 'none';
|
|
}
|
|
}, 150);
|
|
});
|
|
}
|
|
|
|
// 페이지 로드 시 상태 복원
|
|
document.addEventListener('DOMContentLoaded', function() {
|
|
// 사이드바 상태 복원
|
|
const isCollapsed = localStorage.getItem('sidebar-collapsed') === 'true';
|
|
if (isCollapsed) {
|
|
document.documentElement.classList.add('sidebar-is-collapsed');
|
|
document.getElementById('sidebar')?.classList.add('sidebar-collapsed');
|
|
}
|
|
|
|
// 그룹 상태 복원
|
|
['lab-group', 'dev-tools-group'].forEach(function(groupId) {
|
|
const state = localStorage.getItem('sidebar-' + groupId);
|
|
if (state === 'closed') {
|
|
const group = document.getElementById(groupId);
|
|
const icon = document.getElementById(groupId + '-icon');
|
|
if (group) group.style.display = 'none';
|
|
if (icon) icon.style.transform = 'rotate(-90deg)';
|
|
}
|
|
});
|
|
|
|
// 메뉴 그룹 상태 복원 (동적 메뉴) - inline style로 통일
|
|
document.querySelectorAll('[id^="menu-group-"]').forEach(function(group) {
|
|
const groupId = group.id;
|
|
const savedState = localStorage.getItem('menu-group-' + groupId);
|
|
const icon = document.getElementById(groupId + '-icon');
|
|
|
|
if (savedState === 'hidden') {
|
|
group.style.display = 'none';
|
|
icon?.classList.remove('rotate-180');
|
|
} else if (savedState === 'visible') {
|
|
group.style.display = 'block';
|
|
icon?.classList.add('rotate-180');
|
|
}
|
|
// savedState가 없으면 서버에서 렌더링한 초기 상태 유지
|
|
});
|
|
|
|
// R&D Labs 탭 상태 복원
|
|
const savedTab = localStorage.getItem('lab-active-tab');
|
|
if (savedTab && ['s', 'a', 'm'].includes(savedTab)) {
|
|
window._skipLabScroll = true;
|
|
switchLabTab(savedTab);
|
|
switchLabFlyoutTab(savedTab);
|
|
window._skipLabScroll = false;
|
|
}
|
|
|
|
// 플라이아웃 위치 초기화
|
|
initLabFlyoutPosition();
|
|
|
|
// 스크롤 위치 복원
|
|
restoreSidebarScroll();
|
|
|
|
// 사이드바 툴팁 초기화
|
|
initSidebarTooltips();
|
|
|
|
// R&D Labs 메뉴 클릭 시 스크롤
|
|
const labMenuContainer = document.getElementById('lab-menu-container');
|
|
if (labMenuContainer) {
|
|
labMenuContainer.addEventListener('click', function(e) {
|
|
if (e.target.closest('a[href]')) {
|
|
scrollSidebarToBottom();
|
|
}
|
|
});
|
|
}
|
|
|
|
// 일반 메뉴 클릭 시 스크롤 위치 초기화
|
|
const sidebarNav = document.querySelector('.sidebar-nav');
|
|
if (sidebarNav) {
|
|
sidebarNav.addEventListener('click', function(e) {
|
|
const link = e.target.closest('a[href]');
|
|
if (link && !link.closest('#lab-menu-container')) {
|
|
resetSidebarScroll();
|
|
}
|
|
});
|
|
}
|
|
});
|
|
</script>
|