feat(notifications): 알림 종 + 공지 기능 추가
- 헤더 프로필 왼쪽 알림 종: 드롭다운·안읽음 배지·60초 폴링(최초 폴링 도입) - 내 프로젝트 좋아요/즐겨찾기/댓글 시 소유자에게 알림(본인 제외·재토글 도배 방지) - 관리자 공지: /announcements 목록 + 작성/수정/삭제, 등록 시 전 직원에게 fan-out 알림 - notifications/announcements 테이블(멱등) + requireAdmin 가드 + bell/megaphone 아이콘 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -6,6 +6,8 @@ import { initReactions } from "./reactions.js";
|
||||
import { initModals, openDetail } from "./modals.js";
|
||||
import { initComments } from "./comments.js";
|
||||
import { initFeed, initMyFilter } from "./feed.js";
|
||||
import { initNotifications } from "./notifications.js";
|
||||
import { initAnnouncements } from "./announcements.js";
|
||||
|
||||
// 서버가 <body data-*> 로 전달한 1회성 신호 처리
|
||||
function initSignals() {
|
||||
@@ -50,6 +52,8 @@ function boot() {
|
||||
initComments();
|
||||
initFeed();
|
||||
initMyFilter();
|
||||
initNotifications();
|
||||
initAnnouncements();
|
||||
initSignals();
|
||||
consoleArt();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user