refactor: 프로젝트 구조 개선 및 코드 정리
- build/ 아티팩트 141개 파일 git 추적 제거 (.gitignore 누수 수정) - application-example.yml 실제 DB 자격증명 → 플레이스홀더로 교체 - WbxRoleRepository → rbac 패키지, WbxSystemConfigRepository → config 패키지 이동 - HealthController → common 패키지 이동 - auth.service.ts → auth.api.ts 이름 변경 (Vue/React 양쪽) - modules/auth/auth.types.ts 재수출 래퍼 파일 제거 - Vue 프론트엔드에 toArray 유틸 추가 (React와 동일) - settings.gradle.bak, .omc 상태 파일 등 불필요 파일 삭제 - **/.omc/ 패턴 .gitignore 추가 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
이 Commit은 다음에 포함되어 있습니다:
@@ -0,0 +1,14 @@
|
||||
/**
|
||||
* API 응답에서 안전하게 배열을 추출합니다.
|
||||
* - 응답이 배열이면 그대로 반환
|
||||
* - 응답이 { items: [...] } 형태면 items 반환
|
||||
* - 그 외 빈 배열 반환
|
||||
*/
|
||||
export function toArray<T>(data: unknown): T[] {
|
||||
if (Array.isArray(data)) return data as T[];
|
||||
if (data && typeof data === 'object' && 'items' in data) {
|
||||
const items = (data as Record<string, unknown>).items;
|
||||
if (Array.isArray(items)) return items as T[];
|
||||
}
|
||||
return [];
|
||||
}
|
||||
@@ -1 +0,0 @@
|
||||
export type { AuthUser, LoginRequest, LoginResponse } from '@/core/auth/auth.types';
|
||||
새 Issue에서 참조
사용자 차단