feat : 자료실 카테고리 탭·등록 분류·제목/날짜 검색·다운로드 진행률 표시
SpecialSource Frontend (React) CD / deploy (push) Successful in 14s

- 분류 탭(B0 전체 · B1~ 분류 · 마지막 미분류), 등록 칸은 datalist로 고르거나 새로 입력
- 제목·날짜 범위 검색 + 초기화
- 받는 중이면 2초마다 갱신하며 ▓░ 진행 막대와 속도 표시

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
headporterandClaude Opus 5.5 committed 2026-11-27 17:41:35 +09:00
1 parent eaca07da53
commit aff5d61aa8
7 files changed
+152 -26

No files matched your search

+10
View File
@@ -12,6 +12,8 @@ export const initialState: BbsState = {
token: null,
feed: null,
media: null,
mediaQuery: { category: null, q: "", from: "", to: "" },
mediaCategories: [],
rev: 0,
error: null,
};
@@ -88,6 +90,14 @@ export function execute(
if (state.screen === "media") {
if (isList) return { ...state, rev: state.rev + 1 };
if (!state.user) return { ...state, error: '※ 로그인이 필요합니다. F5 또는 "M" → 7' };
// 분류 탭: B0 = 전체, B1~ = 분류(이름순), 마지막 = 미분류("")
const tab = /^b(\d+)$/.exec(cmd);
if (tab) {
const tabs = [null, ...state.mediaCategories, ""];
const n = Number(tab[1]);
if (n >= tabs.length) return { ...state, error: `※ 없는 분류입니다: "${raw}"` };
return { ...state, media: null, mediaQuery: { ...state.mediaQuery, category: tabs[n] } };
}
const post = state.media?.[Number(raw) - 1];
if (!post) return { ...state, error: `※ 목록에 없는 번호입니다: "${raw}"` };
return { ...state, screen: "mediaPost", postId: post.id };