forked from Gitlink/forgeplus-react
Merge pull request 'issue' (#324) from caishi/forgeplus-react:gitlink_server into gitlink_server
This commit is contained in:
commit
326aede507
|
@ -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, "▁▁▁")
|
||||
|
|
|
@ -128,7 +128,7 @@ function AboutUs(){
|
|||
<div className="feat_fun_img"><img src={fun2} /></div>
|
||||
<div>
|
||||
<p>一站式过程管理</p>
|
||||
<div>支持易修、里程碑、 <br />通知提醒、标签归档、Wiki文档、组织管理 </div>
|
||||
<div>支持疑修、里程碑、 <br />通知提醒、标签归档、Wiki文档、组织管理 </div>
|
||||
</div>
|
||||
</div>
|
||||
</td>
|
||||
|
|
|
@ -152,7 +152,7 @@ class Activity extends Component{
|
|||
<p className="percent_red" style={{width:`${third_per}`}}></p>
|
||||
<p className="percent_green" style={{width:`${fourth_per}`}}></p>
|
||||
</div>
|
||||
<span>{data && data.issues_count}易修</span>
|
||||
<span>{data && data.issues_count}疑修</span>
|
||||
</div>
|
||||
</div>
|
||||
<ul className="percentBox">
|
||||
|
@ -166,11 +166,11 @@ class Activity extends Component{
|
|||
</li>
|
||||
<li>
|
||||
<span className="red">{data && data.close_issues_count}</span>
|
||||
<span className={type==="Issue"&& status==="delay" ?`change active`:"change"} onClick={()=>this.changeTrends("Issue","delay")}>已关闭的易修</span>
|
||||
<span className={type==="Issue"&& status==="delay" ?`change active`:"change"} onClick={()=>this.changeTrends("Issue","delay")}>已关闭的疑修</span>
|
||||
</li>
|
||||
<li>
|
||||
<span className="green">{data && data.open_issues_count}</span>
|
||||
<span className={type==="Issue"&& status==="not_delay" ?`change active`:"change"} onClick={()=>this.changeTrends("Issue","not_delay")}>未处理的易修</span>
|
||||
<span className={type==="Issue"&& status==="not_delay" ?`change active`:"change"} onClick={()=>this.changeTrends("Issue","not_delay")}>未处理的疑修</span>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
|
|
@ -455,10 +455,10 @@ function CoderDepot(props){
|
|||
baseOperate &&
|
||||
<CheckProfile {...props} sureFunc={()=>urlLink(`/${owner}/${projectsId}/compare/master...${branchName || defaultBranch}`)} >+ 合并请求</CheckProfile>
|
||||
}
|
||||
<a onClick={createIssue}>+ 易修</a>
|
||||
<a onClick={createIssue}>+ 疑修</a>
|
||||
{/* {
|
||||
baseOper &&
|
||||
<CheckProfile {...props} sureFunc={()=>urlLink(`/${owner}/${projectsId}/issues/new`)} >+ 易修</CheckProfile>
|
||||
<CheckProfile {...props} sureFunc={()=>urlLink(`/${owner}/${projectsId}/issues/new`)} >+ 疑修</CheckProfile>
|
||||
} */}
|
||||
</div>
|
||||
}
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -50,7 +50,7 @@ function DetailBanner({ history,list , owner , projectsId , isManager , url , pa
|
|||
<Link to={{ pathname: `/${owner}/${projectsId}/issues`, state }}>
|
||||
<Tooltip placement="bottom">
|
||||
<i className={"iconfont icon-yixiuicon1 color-grey-3 mr5 font-14"}></i>
|
||||
<span>易修(Issue)</span>
|
||||
<span>疑修(Issue)</span>
|
||||
</Tooltip>
|
||||
{projectDetail && projectDetail.issues_count ? <span className="num">{numFormat(projectDetail.issues_count)}</span> : ""}
|
||||
</Link>
|
||||
|
|
|
@ -246,9 +246,9 @@ class MilepostDetail extends Component {
|
|||
}
|
||||
{
|
||||
current_user && current_user.login ?
|
||||
<CheckProfile {...this.props} sureFunc={()=>{this.props.history.push(`/${owner}/${projectsId}/issues/${meilid}/new`)}} className="topWrapper_btn">创建易修</CheckProfile>
|
||||
<CheckProfile {...this.props} sureFunc={()=>{this.props.history.push(`/${owner}/${projectsId}/issues/${meilid}/new`)}} className="topWrapper_btn">创建疑修</CheckProfile>
|
||||
:
|
||||
<a className="topWrapper_btn" onClick={showLoginDialog}>创建易修</a>
|
||||
<a className="topWrapper_btn" onClick={showLoginDialog}>创建疑修</a>
|
||||
}
|
||||
</div>
|
||||
</FlexAJ>
|
||||
|
|
|
@ -102,7 +102,7 @@ class OrderItem extends Component {
|
|||
<Popconfirm
|
||||
placement="bottom"
|
||||
overlayClassName={orderid === item.id && isdisplay ? "overlayBox" : "overlayBox hideOverlay" }
|
||||
title={'您确定要删除当前易修吗?'}
|
||||
title={'您确定要删除当前疑修吗?'}
|
||||
okText="是"
|
||||
cancelText="否"
|
||||
onConfirm={() => this.deletedetail(item.id)}
|
||||
|
|
|
@ -357,9 +357,9 @@ class order extends Component {
|
|||
renderNew =()=>{
|
||||
return(
|
||||
// <CheckProfile {...this.props} className="topWrapper_btn ml10" sureoncFunc={()=>{createIssue()}}>
|
||||
// + 创建易修
|
||||
// + 创建疑修
|
||||
// </CheckProfile>
|
||||
<a className="topWrapper_btn ml10" onClick={this.createIssue}>+ 创建易修</a>
|
||||
<a className="topWrapper_btn ml10" onClick={this.createIssue}>+ 创建疑修</a>
|
||||
)
|
||||
}
|
||||
|
||||
|
@ -557,7 +557,7 @@ class order extends Component {
|
|||
<div className="topWrapper" style={{borderBottom:"none"}}>
|
||||
<div className="target-detail-search">
|
||||
<Search
|
||||
placeholder="输入关键字搜索易修"
|
||||
placeholder="输入关键字搜索疑修"
|
||||
enterButton
|
||||
onSearch={this.searchFunc}
|
||||
style={{ width: 300 }}
|
||||
|
|
|
@ -362,14 +362,14 @@ class order_form extends Component {
|
|||
<div className="list-right">
|
||||
<div className="pd20">
|
||||
<h3 className="mb15">
|
||||
{form_type === "edit" ? "编辑" :( form_type === "copy" ? "复制" : "新建")}易修
|
||||
{form_type === "edit" ? "编辑" :( form_type === "copy" ? "复制" : "新建")}疑修
|
||||
</h3>
|
||||
<Form.Item>
|
||||
{getFieldDecorator("subject", {
|
||||
rules: [
|
||||
{
|
||||
required: true,
|
||||
message: "请填写易修标题",
|
||||
message: "请填写疑修标题",
|
||||
},
|
||||
]
|
||||
})(<Input placeholder="标题" size="large" maxLength={200}/>)}
|
||||
|
|
|
@ -12,7 +12,7 @@ const { Option } = Select;
|
|||
const menu = [
|
||||
{name:"主页",index:"home"},
|
||||
{name:"代码库",index:"code"},
|
||||
{name:"易修 (Issue)",index:"issues"},
|
||||
{name:"疑修 (Issue)",index:"issues"},
|
||||
{name:"合并请求 (PR)",index:"pulls"},
|
||||
{name:"引擎 (Engine)",index:"devops"},
|
||||
// {name:"资源库",index:"resources"},
|
||||
|
@ -180,7 +180,7 @@ class Setting extends Component {
|
|||
const { projectsId , owner } = this.props.match.params;
|
||||
const { projectName } = this.state;
|
||||
this.props.confirm({
|
||||
content: <span style={{display:"block",textAlign:"left"}}>该操作无法撤销!且将会一并删除相关的易修、合并请求、工作流、里程碑、动态等数据。<br/>是否确认删除 <span style={{fontWeight:"bold"}}>{owner}/{projectName}({projectsId})</span>?</span>,
|
||||
content: <span style={{display:"block",textAlign:"left"}}>该操作无法撤销!且将会一并删除相关的疑修、合并请求、工作流、里程碑、动态等数据。<br/>是否确认删除 <span style={{fontWeight:"bold"}}>{owner}/{projectName}({projectsId})</span>?</span>,
|
||||
onOk: () => {
|
||||
const url = `/${owner}/${projectsId}.json`;
|
||||
axios.delete(url).then((result) => {
|
||||
|
|
|
@ -253,7 +253,7 @@ class claims extends React.Component {
|
|||
{
|
||||
claimerdata&&claimerdata.length>0?(
|
||||
<div>
|
||||
<span>声明要关注/解决此易修的用户</span><span className="infoCount">{claimerdata.length}</span>
|
||||
<span>声明要关注/解决此疑修的用户</span><span className="infoCount">{claimerdata.length}</span>
|
||||
<div className="attrPerson" onMouseLeave={()=>this.setVisibleFunc(false)}>
|
||||
{claimerdata.map((item,key)=>{
|
||||
return(
|
||||
|
@ -266,7 +266,7 @@ class claims extends React.Component {
|
|||
})}
|
||||
</div>
|
||||
</div>):(
|
||||
<div><span>声明要关注/解决此易修的用户</span> <span className="infoCount">0</span></div>
|
||||
<div><span>声明要关注/解决此疑修的用户</span> <span className="infoCount">0</span></div>
|
||||
)}
|
||||
|
||||
</div>
|
||||
|
|
|
@ -21,7 +21,7 @@ function Line({data}) {
|
|||
trigger: 'axis'
|
||||
},
|
||||
legend: {
|
||||
data: ['提交数', '易修数', '合并请求数'],
|
||||
data: ['提交数', '疑修数', '合并请求数'],
|
||||
right: 'center',
|
||||
bottom: '4%',
|
||||
},
|
||||
|
@ -62,7 +62,7 @@ function Line({data}) {
|
|||
data: d.commits_count
|
||||
},
|
||||
{
|
||||
name: '易修数',
|
||||
name: '疑修数',
|
||||
type: 'line',
|
||||
data: d.issues_count
|
||||
},
|
||||
|
|
|
@ -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>
|
||||
)
|
||||
|
||||
|
|
|
@ -145,7 +145,7 @@ function SecondEdition({setValue}) {
|
|||
</div>
|
||||
<div className="osRightMain">
|
||||
<p className="osRightTitle">一站式过程管理</p>
|
||||
<p>提供<span>易修(Issue)、里程碑、通知提醒、标签归档</span>等多样化任务管理工具,支持各类开发任务的发布、指派与跟踪;</p>
|
||||
<p>提供<span>疑修(Issue)、里程碑、通知提醒、标签归档</span>等多样化任务管理工具,支持各类开发任务的发布、指派与跟踪;</p>
|
||||
<p>同时提供<span>在线Wiki文档、组织多粒度管理</span>等功能,为您搭建一站式的项目过程管理环境;</p>
|
||||
<p><span>让您的团队协作更高效、过程更透明!</span></p>
|
||||
</div>
|
||||
|
|
|
@ -217,7 +217,7 @@ const GlobalSearch = ({ location, showNotification, history }) => {
|
|||
}
|
||||
</TabPane> */}
|
||||
|
||||
<TabPane tab={`易修(${totalType5})`} key="5">
|
||||
<TabPane tab={`疑修(${totalType5})`} key="5">
|
||||
<div className="search-content">
|
||||
<p>{`找到${totalType5}条结果`}</p>
|
||||
<ItemList
|
||||
|
|
|
@ -1062,7 +1062,7 @@ class TPMBanner extends Component {
|
|||
</div> :
|
||||
<div className="task-popup-content">
|
||||
<p className="task-popup-text-center font-16 mt10 mb10">
|
||||
尚未创建易修的实训,不能申请发布
|
||||
尚未创建疑修的实训,不能申请发布
|
||||
</p>
|
||||
</div>
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue