import { Button, Card, Empty, Grid, Space, Tag, Typography } from '@arco-design/web-react' import { IconBook, IconCompass, IconLink, IconLoop, IconRefresh, IconStar } from '@arco-design/web-react/icon' import type { ProjectWorkspace } from './projects/project-types' const { Row, Col } = Grid const { Title, Text, Paragraph } = Typography const rssSources = [ { name: '产品更新', url: 'https://example.com/product.xml', status: '运行中', count: 18, color: 'arcoblue' }, { name: '行业情报', url: 'https://example.com/market.xml', status: '运行中', count: 24, color: 'green' }, { name: '技术博客', url: 'https://example.com/engineering.xml', status: '待同步', count: 9, color: 'orange' }, ] export function WorkspaceExplorePage({ workspaces, onSelectItem }: { workspaces: ProjectWorkspace[]; onSelectItem: (title: string) => void }) { const articles = workspaces.flatMap((workspace) => workspace.inbox.map((item) => ({ ...item, project: workspace.project }))) const selected = articles[0] const pendingCount = articles.filter((item) => item.status === 'open').length const sourceCount = rssSources.length return (
探索 集中管理多个 RSS 源,采集外部内容、沉淀线索,并分发到对应项目。
{sourceCount}RSS 源 {pendingCount}待处理采集 {articles.length}采集条目
RSS 源
{rssSources.map((source) => ( ))}
{articles.length ? (
采集队列
{articles.map((item, index) => ( ))}
{selected.title}
{selected.meta} · {selected.project.name} {selected.summary || '暂无采集正文'}
归档到项目
) : ( )}
) }