import type { NoticeButton, NoticeConfig } from "../types/notice"; interface ExtendedNoticeButton extends NoticeButton { type: "primary" | "secondary" | "danger"; } interface ExtendedNoticeConfig extends NoticeConfig { enabled: boolean; showFireworks: boolean; defaultShowAfter?: number | "refresh" | null; buttons: ExtendedNoticeButton[]; } export const noticeConfig: ExtendedNoticeConfig = { id: "site_notice_v1", enabled: true, showFireworks: true, title: "网站公告", content: `

🎉 网站改版升级公告

网站已完成改版升级,新增以下功能:

`, width: "500px", maskClosable: true, showClose: true, defaultShowAfter: null, buttons: [ { text: "稍后查看", type: "secondary", action: "close", showAfter: "refresh", }, { text: "立即体验", type: "primary", action: "navigate", to: "/projects", showAfter: 3 * 60 * 60 * 1000, }, ], };