if(taskModal!==1)failures.push('task editor did not open')
if(taskModal!==1)failures.push('task editor did not open')
if(exploreSources!==2||exploreDetail!==1)failures.push(`explore reader did not render: ${JSON.stringify({exploreSources,exploreDetail})}`)
if(exploreSources!==2||exploreDetail!==1)failures.push(`explore reader did not render: ${JSON.stringify({exploreSources,exploreDetail})}`)
if(documents!==1)failures.push(`expected one document, got ${documents}`)
if(documents!==1)failures.push(`expected one document, got ${documents}`)
if(documentActions!==2||markdownEditor!==1)failures.push(`document actions did not render: ${JSON.stringify({documentActions,markdownEditor})}`)
if(documentActions!==2||markdownEditor!==1||markdownEditing!==1)failures.push(`document actions did not render: ${JSON.stringify({documentActions,markdownEditor,markdownEditing})}`)
if(experts!==1||aiSwitches!==2||aiHistory!==1)failures.push(`AI session pages did not render: ${JSON.stringify({experts,aiSwitches,aiHistory})}`)
if(experts!==1||aiSwitches!==2||aiHistory!==1)failures.push(`AI session pages did not render: ${JSON.stringify({experts,aiSwitches,aiHistory})}`)
if(profileMenu!==1)failures.push('profile menu did not open')
if(profileMenu!==1)failures.push('profile menu did not open')
return<sectionclassName="content-page explore-page"><divclassName="content-heading"><div><Titleheading={4}>探索</Title><Texttype="secondary">集中阅读数据源内容,筛选后沉淀到项目资料。</Text></div><Buttontype="text"shape="circle"aria-label="刷新探索内容"loading={loading}icon={<IconRefresh/>}onClick={()=>{voidrefreshSources();voidrefreshItems()}}/></div>{error?<Alerttype="error"content={error}/>:null}<divclassName="explore-source-strip"><buttonclassName={sourceId==='all'?'active':''}onClick={()=>setSourceId('all')}><IconCompass/><span>全部</span><small>{allCount}</small></button>{sources.map((source)=><buttonclassName={sourceId===source.id?'active':''}key={source.id}onClick={()=>setSourceId(source.id)}>{source.iconUrl?<imgsrc={source.iconUrl}alt=""/>:<IconBook/>}<span>{source.name}</span><small>{source.itemCount}</small></button>)}</div><divclassName="explore-reader">{items.length?<><divclassName="explore-item-list">{items.map((item)=><buttonclassName={item.id===selected?.id?'active':''}key={item.id}onClick={()=>setSelectedId(item.id)}><span><b>{item.title}</b><small>{item.summary||'暂无摘要'}</small></span><i>{item.starred?'★':formatDate(item.publishedAt||item.createdAt)}</i></button>)}</div><articleclassName="explore-detail"><divclassName="explore-detail-meta"><Tagcolor="arcoblue">{selectedSource?.name||'全部'}</Tag><small>{formatDate(selected?.publishedAt||selected?.createdAt||'')}</small></div><Titleheading={5}>{selected?.title}</Title>{selected?.imageUrl?<imgsrc={selected.imageUrl}alt=""/>:null}<p>{selected?.content||selected?.summary||'暂无正文'}</p><divclassName="explore-detail-actions"><Buttontype="text"icon={<IconBook/>}disabled={!projectName}>沉淀到{projectName||'项目'}</Button>{selected?.url?<Buttontype="text"href={selected.url}target="_blank">打开原文</Button>:null}</div></article></>:<Emptydescription="暂无探索内容,请先在 Web 工作台添加或同步数据源"/>}</div></section>
return<sectionclassName="content-page explore-page"><divclassName="content-heading"><div><Titleheading={4}>探索</Title><Texttype="secondary">集中阅读数据源内容,筛选后沉淀到项目资料。</Text></div><Buttontype="text"shape="circle"aria-label="刷新探索内容"loading={loading}icon={<IconRefresh/>}onClick={()=>{voidrefreshSources();voidrefreshItems()}}/></div>{error?<Alerttype="error"content={error}/>:null}<divclassName="explore-source-strip"><buttonclassName={sourceId==='all'?'active':''}onClick={()=>setSourceId('all')}><IconCompass/><span>全部</span><small>{allCount}</small></button>{sources.map((source)=><buttonclassName={sourceId===source.id?'active':''}key={source.id}onClick={()=>setSourceId(source.id)}>{source.iconUrl?<imgsrc={source.iconUrl}alt=""/>:<IconBook/>}<span>{source.name}</span><small>{source.itemCount}</small></button>)}</div><divclassName="explore-reader">{items.length?<><divclassName="explore-item-list">{items.map((item)=><buttonclassName={item.id===selected?.id?'active':''}key={item.id}onClick={()=>setSelectedId(item.id)}><span><b>{item.title}</b><small>{item.summary||'暂无摘要'}</small></span><i>{item.starred?'★':formatDate(item.publishedAt||item.createdAt)}</i></button>)}</div><articleclassName="explore-detail"><divclassName="explore-detail-meta"><Tagcolor="arcoblue">{selectedSource?.name||'全部'}</Tag><small>{formatDate(selected?.publishedAt||selected?.createdAt||'')}</small></div><Titleheading={5}>{selected?.title}</Title>{selected?.imageUrl?<imgsrc={selected.imageUrl}alt=""/>:null}<p>{selected?.content||selected?.summary||'暂无正文'}</p><divclassName="explore-detail-actions"><Buttontype="text"icon={<IconBook/>}disabled={!projectName}>沉淀到{projectName||'项目'}</Button>{selected?.url?<Buttontype="text"href={selected.url}target="_blank">打开原文</Button>:null}</div></article></>:<Emptydescription="暂无探索内容,请先在 Web 工作台添加或同步数据源"/>}</div></section>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.