forked from Gitlink/forgeplus-react
热门开发者-无项目情况
This commit is contained in:
parent
1954a4f8d3
commit
80e20a9cca
|
@ -76,6 +76,7 @@ const tokenizer = {
|
|||
if (cap) {
|
||||
const raw = cap[0]
|
||||
let text = indentCodeCompensation(raw, cap[3] || '')
|
||||
console.log(text);
|
||||
const lang = cap[2] ? cap[2].trim() : cap[2]
|
||||
if (['latex', 'katex', 'math'].indexOf(lang) >= 0) {
|
||||
const id = next_id()
|
||||
|
|
|
@ -30,7 +30,7 @@ export default ({
|
|||
cleanToc()
|
||||
}
|
||||
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' })
|
||||
})
|
||||
rs = rs.replace(/▁/g, "▁▁▁")
|
||||
|
|
|
@ -59,9 +59,16 @@ function SubList() {
|
|||
<Link target="_blank" to={`/${i.login}`}><img src={getImageUrl(`/${i.avatar_url}`)} alt=""/></Link>
|
||||
<div>
|
||||
<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>
|
||||
</p>
|
||||
{
|
||||
i.project && i.project.name ?
|
||||
<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>
|
||||
</li>
|
||||
|
|
|
@ -44,7 +44,7 @@ function Team(props){
|
|||
<Menu onClick={(e)=>setSort_by(e.key)}>
|
||||
<Menu.Item value="created_at" key="created_at">创建时间排序</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>
|
||||
)
|
||||
|
||||
|
|
Loading…
Reference in New Issue