热门开发者-无项目情况
This commit is contained in:
parent
1954a4f8d3
commit
80e20a9cca
|
@ -76,6 +76,7 @@ const tokenizer = {
|
||||||
if (cap) {
|
if (cap) {
|
||||||
const raw = cap[0]
|
const raw = cap[0]
|
||||||
let text = indentCodeCompensation(raw, cap[3] || '')
|
let text = indentCodeCompensation(raw, cap[3] || '')
|
||||||
|
console.log(text);
|
||||||
const lang = cap[2] ? cap[2].trim() : cap[2]
|
const lang = cap[2] ? cap[2].trim() : cap[2]
|
||||||
if (['latex', 'katex', 'math'].indexOf(lang) >= 0) {
|
if (['latex', 'katex', 'math'].indexOf(lang) >= 0) {
|
||||||
const id = next_id()
|
const id = next_id()
|
||||||
|
|
|
@ -30,7 +30,7 @@ export default ({
|
||||||
cleanToc()
|
cleanToc()
|
||||||
}
|
}
|
||||||
rs = rs.replace(/(__special_katext_id_\d+__)/g, (_match, capture) => {
|
rs = rs.replace(/(__special_katext_id_\d+__)/g, (_match, capture) => {
|
||||||
const { type, expression } = math_expressions[capture]
|
const { type, expression } = math_expressions[capture];
|
||||||
return renderToString(_unescape(expression) || '', { displayMode: type === 'block', throwOnError: false, output: 'html' })
|
return renderToString(_unescape(expression) || '', { displayMode: type === 'block', throwOnError: false, output: 'html' })
|
||||||
})
|
})
|
||||||
rs = rs.replace(/▁/g, "▁▁▁")
|
rs = rs.replace(/▁/g, "▁▁▁")
|
||||||
|
|
|
@ -59,9 +59,16 @@ function SubList() {
|
||||||
<Link target="_blank" to={`/${i.login}`}><img src={getImageUrl(`/${i.avatar_url}`)} alt=""/></Link>
|
<Link target="_blank" to={`/${i.login}`}><img src={getImageUrl(`/${i.avatar_url}`)} alt=""/></Link>
|
||||||
<div>
|
<div>
|
||||||
<Link target="_blank" to={`/${i.login}`} className="font-15">{i.name}</Link>
|
<Link target="_blank" to={`/${i.login}`} className="font-15">{i.name}</Link>
|
||||||
<p className="task-hide" style={{maxWidth:"260px"}}>
|
{
|
||||||
<Link target="_blank" to={`/${i.login}/${i.project && i.project.identifier}`}><i className="iconfont icon-daimakuicon1 font-14 mr8"></i>{i.project && i.project.name}</Link>
|
i.project && i.project.name ?
|
||||||
</p>
|
<p className="task-hide" style={{maxWidth:"260px"}}>
|
||||||
|
<Link target="_blank" to={`/${i.login}/${i.project && i.project.identifier}`}>
|
||||||
|
<i className="iconfont icon-daimakuicon1 font-14 mr8"></i>
|
||||||
|
{i.project && i.project.name}
|
||||||
|
</Link>
|
||||||
|
</p>
|
||||||
|
:""
|
||||||
|
}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
|
|
|
@ -44,7 +44,7 @@ function Team(props){
|
||||||
<Menu onClick={(e)=>setSort_by(e.key)}>
|
<Menu onClick={(e)=>setSort_by(e.key)}>
|
||||||
<Menu.Item value="created_at" key="created_at">创建时间排序</Menu.Item>
|
<Menu.Item value="created_at" key="created_at">创建时间排序</Menu.Item>
|
||||||
<Menu.Item value="num_projects" key="num_projects">项目数排序</Menu.Item>
|
<Menu.Item value="num_projects" key="num_projects">项目数排序</Menu.Item>
|
||||||
<Menu.Item value="num_users" key="num_users">用户数排序</Menu.Item>
|
<Menu.Item value="num_users" key="num_users">组织成员数排序</Menu.Item>
|
||||||
</Menu>
|
</Menu>
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue