워크스페이스(탭) - 탭 전환 시 좌측 사이드바(대메뉴/소메뉴) 강조 자동 동기화 - nav 스크립트에 window.govPortalNav.syncByUrl() 공개, renderSidebar(overrideHref) 확장 - 키보드 단축키(Alt 기반): Alt+1~9 탭 이동, Alt+W 닫기, Alt+[ / Alt+] 이전·다음 - iframe 내부 포커스에서도 동작하도록 같은 출처 문서에 핸들러 부착 - 탭 가운데(휠) 클릭으로 닫기, 잘린 탭 제목 전체 툴팁 매뉴얼 - 신규 페이지 [화면 구성·워크스페이스·단축키] (05_workspace.md, 목차 2번째) - 화면 구성, 탭 사용법·유지 범위, 단축키 표, 이동/도움말 안내 - 개요 페이지에서 새 페이지로 안내 e2e: 워크스페이스(사이드바 동기화·가운데클릭) + 매뉴얼(새 페이지·단축키·검색) 케이스 추가 Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
73 lines
3.2 KiB
PHP
73 lines
3.2 KiB
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace Config;
|
|
|
|
use CodeIgniter\Config\BaseConfig;
|
|
|
|
/**
|
|
* 사용자 매뉴얼(설명서) 목차 정의.
|
|
*
|
|
* - 배열 순서가 곧 목차(사이드바) 노출 순서입니다.
|
|
* - slug 는 URL 세그먼트이자 화이트리스트입니다. 여기에 없는 slug 는 404 입니다.
|
|
* - file 은 $dir 하위의 실제 마크다운 파일명입니다(사용자 입력으로 조합하지 않음).
|
|
*/
|
|
class Manual extends BaseConfig
|
|
{
|
|
/** 마크다운 콘텐츠 디렉터리 (웹 루트 밖). */
|
|
public string $dir = APPPATH . 'Docs/manual/';
|
|
|
|
/**
|
|
* @var array<string, array{title: string, file: string}>
|
|
*/
|
|
public array $pages = [
|
|
'overview' => ['title' => '시작하기·시스템 개요', 'file' => '00_overview.md'],
|
|
'workspace' => ['title' => '화면 구성·워크스페이스·단축키', 'file' => '05_workspace.md'],
|
|
'flow' => ['title' => '핵심 업무 흐름', 'file' => '10_workflow.md'],
|
|
'order' => ['title' => '발주·입고', 'file' => '20_order_receiving.md'],
|
|
'inventory' => ['title' => '재고·실사', 'file' => '30_inventory.md'],
|
|
'sales' => ['title' => '판매·반품·불출·주문', 'file' => '40_sales_issue.md'],
|
|
'reports' => ['title' => '현황·리포트·수불', 'file' => '50_reports.md'],
|
|
'basic' => ['title' => '기본정보(판매소·단가·코드)', 'file' => '60_basic_info.md'],
|
|
'codes' => ['title' => '봉투·LOT·바코드 코드체계', 'file' => '90_code_system.md'],
|
|
'faq' => ['title' => '자주 묻는 질문·문의', 'file' => '99_faq.md'],
|
|
];
|
|
|
|
/**
|
|
* 화면 경로(접두) → 그 화면을 설명하는 매뉴얼 slug.
|
|
* "이 화면 설명" 버튼이 현재 경로로 알맞은 매뉴얼 페이지를 연다.
|
|
* 더 긴(구체적) 접두가 우선하도록 길이 내림차순으로 매칭한다.
|
|
*
|
|
* @var array<string, string>
|
|
*/
|
|
public array $screenHelp = [
|
|
'bag/order/phone' => 'sales',
|
|
'bag/order' => 'order',
|
|
'bag/bag-orders' => 'order',
|
|
'bag/receiving' => 'order',
|
|
'bag/bag-receivings' => 'order',
|
|
'bag/inventory' => 'inventory',
|
|
'bag/sale' => 'sales',
|
|
'bag/sales' => 'sales',
|
|
'bag/issue' => 'sales',
|
|
'bag/bag-issues' => 'sales',
|
|
'bag/bag-sales' => 'sales',
|
|
'bag/shop-orders' => 'sales',
|
|
'bag/flow' => 'reports',
|
|
'bag/reports' => 'reports',
|
|
'bag/analytics' => 'reports',
|
|
'bag/designated-shops' => 'basic',
|
|
'bag/bag-prices' => 'basic',
|
|
'bag/prices' => 'basic',
|
|
'bag/packaging-units' => 'basic',
|
|
'bag/code-kinds' => 'basic',
|
|
'bag/code-details' => 'basic',
|
|
'bag/managers' => 'basic',
|
|
'bag/companies' => 'basic',
|
|
'bag/sales-agencies' => 'basic',
|
|
'bag/free-recipients' => 'basic',
|
|
'bag/number-lookup' => 'codes',
|
|
];
|
|
}
|