feat: 기본 분류 — 관리자 설정 화면 + 사용자 '기본 분류 불러오기'
CI / build (push) Failing after 14m11s

- 관리자 전용 기본 분류 관리 화면(DefaultCategoryView, 계층 드래그) + 라우트/사이드바 링크
- adminApi 기본분류 CRUD/reorder
- CategoryView '기존 분류 불러오기' → '기본 분류 불러오기'(관리자 정의 분류 복사)

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
ByungCheol
2026-06-24 23:03:52 +09:00
parent f533df0024
commit dd17fae5f4
5 changed files with 383 additions and 3 deletions
+3 -3
View File
@@ -157,8 +157,8 @@ function removeCategory(c) {
})
}
function importExisting() {
askConfirm('기 분류 불러오기', '기존 내역에서 사용한 분류들을 목록으로 가져올까요?', async () => {
function importDefaults() {
askConfirm('기 분류 불러오기', '관리자가 설정한 기본 분류를 내 분류로 가져올까요?\n같은 이름은 건너뜁니다.', async () => {
error.value = null
try {
categories.value = await accountApi.importCategories()
@@ -187,7 +187,7 @@ onBeforeUnmount(destroySortables)
<header class="head">
<h1>분류 관리</h1>
<div class="head-actions">
<button type="button" class="text-btn" @click="importExisting"> 분류 불러오기</button>
<button type="button" class="text-btn" @click="importDefaults"> 분류 불러오기</button>
<IconBtn icon="back" title="가계부로" @click="router.push('/account')" />
</div>
</header>