mirror of
https://github.com/headporter81/ss-front-react.git
synced 2026-12-06 07:41:11 +09:00
feat : 메인 "새 글" 창을 IT 헤드라인(GeekNews)·날씨(Open-Meteo) 창으로 교체
SpecialSource Frontend (React) CD / deploy (push) Successful in 14s
SpecialSource Frontend (React) CD / deploy (push) Successful in 14s
- IT 헤드라인: 백엔드 /api/headlines (로그인 불필요), 줄 클릭 시 새 탭으로 열기 - 날씨: 접속자 위치(거부·무응답 시 서울) 기준 지금/오늘/내일, 좌표는 약 1km 단위로만 전송 - 페이지를 연 동안 한 번만 불러옴 - study-notes 9번 추가 (백엔드 메모리 캐시) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
73ad4705bc
commit
4bbf5c1ba4
7 files changed
+160
-29
No files matched your search
@@ -225,16 +225,7 @@ export default function BbsTerminal() {
|
||||
{pulling && <div className={styles.pull}>↓ 놓으면 새로고침</div>}
|
||||
<div className={styles.grid}>
|
||||
{state.screen === "main" && (
|
||||
<MainMenu
|
||||
feed={state.feed}
|
||||
loggedIn={!!state.user}
|
||||
onSelect={submitFromClick}
|
||||
onOpenPost={(num) => {
|
||||
// 메인에서 숫자는 메뉴 번호라서, 게시판으로 옮긴 뒤 글 번호를 실행
|
||||
dispatch({ screen: "list", list: "board", board: null });
|
||||
dispatch(String(num));
|
||||
}}
|
||||
/>
|
||||
<MainMenu feed={state.feed} loggedIn={!!state.user} onSelect={submitFromClick} />
|
||||
)}
|
||||
{state.screen === "login" && (
|
||||
<LoginForm onSuccess={(user, token) => dispatch({ screen: "main", user, token })} />
|
||||
|
||||
Reference in new issue
Block a user