mirror of
https://github.com/hicccc77/WeFlow.git
synced 2026-05-18 23:26:47 +00:00
@@ -7,6 +7,9 @@ import './NotificationToast.scss'
|
||||
export interface NotificationData {
|
||||
id: string
|
||||
sessionId: string
|
||||
channel?: string
|
||||
insightRecordId?: string
|
||||
targetRoute?: string
|
||||
avatarUrl?: string
|
||||
title: string
|
||||
content: string
|
||||
@@ -16,7 +19,7 @@ export interface NotificationData {
|
||||
interface NotificationToastProps {
|
||||
data: NotificationData | null
|
||||
onClose: () => void
|
||||
onClick: (sessionId: string) => void
|
||||
onClick: (data: NotificationData) => void
|
||||
duration?: number
|
||||
position?: 'top-right' | 'top-left' | 'bottom-right' | 'bottom-left' | 'top-center'
|
||||
isStatic?: boolean
|
||||
@@ -64,7 +67,7 @@ export function NotificationToast({
|
||||
setIsVisible(false)
|
||||
setTimeout(() => {
|
||||
onClose()
|
||||
onClick(currentData.sessionId)
|
||||
onClick(currentData)
|
||||
}, 300)
|
||||
}
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { useState, useEffect, useRef } from 'react'
|
||||
import { NavLink, useLocation, useNavigate } from 'react-router-dom'
|
||||
import { Home, MessageSquare, BarChart3, FileText, Settings, Download, Aperture, UserCircle, Lock, LockOpen, ChevronUp, FolderClosed, Footprints, Users, ArchiveRestore } from 'lucide-react'
|
||||
import { Home, MessageSquare, BarChart3, FileText, Settings, Download, Aperture, UserCircle, Lock, LockOpen, ChevronUp, FolderClosed, Footprints, Users, ArchiveRestore, Sparkles } from 'lucide-react'
|
||||
import { useAppStore } from '../stores/appStore'
|
||||
import * as configService from '../services/config'
|
||||
import { onExportSessionStatus, requestExportSessionStatus } from '../services/exportBridge'
|
||||
@@ -344,6 +344,15 @@ function Sidebar({ collapsed }: SidebarProps) {
|
||||
<span className="nav-label">朋友圈</span>
|
||||
</NavLink>
|
||||
|
||||
<NavLink
|
||||
to="/insight-inbox"
|
||||
className={`nav-item ${isActive('/insight-inbox') ? 'active' : ''}`}
|
||||
title={collapsed ? '灵感信箱' : undefined}
|
||||
>
|
||||
<span className="nav-icon"><Sparkles size={20} /></span>
|
||||
<span className="nav-label">灵感信箱</span>
|
||||
</NavLink>
|
||||
|
||||
{/* 通讯录 */}
|
||||
<NavLink
|
||||
to="/contacts"
|
||||
|
||||
Reference in New Issue
Block a user