同上-细节修改
This commit is contained in:
parent
411b4e9de6
commit
cbfb73d1cb
|
@ -1,6 +1,6 @@
|
||||||
import React , { useEffect , useState } from 'react';
|
import React , { useEffect , useState } from 'react';
|
||||||
import { WhiteBack , Box , LongWidth , ShortWidth , Gap , AlignCenter , FlexAJ } from '../Component/layout';
|
import { WhiteBack , Box , LongWidth , ShortWidth , Gap , AlignCenter , FlexAJ } from '../Component/layout';
|
||||||
import { Dropdown , Menu , Divider , Spin, Button } from 'antd';
|
import { Dropdown , Menu , Divider , Spin, Button , Typography } from 'antd';
|
||||||
import { getImageUrl } from "educoder";
|
import { getImageUrl } from "educoder";
|
||||||
import { Link } from 'react-router-dom';
|
import { Link } from 'react-router-dom';
|
||||||
import CloneAddress from '../Branch/CloneAddress';
|
import CloneAddress from '../Branch/CloneAddress';
|
||||||
|
@ -24,7 +24,7 @@ import CheckProfile from '../Component/ProfileModal/Profile';
|
||||||
/**
|
/**
|
||||||
* projectDetail.type:0是托管项目,1是镜像项目,2是同步镜像项目(为2时不支持在线创建、在线上传、在线修改、在线删除、创建合并请求等功能)
|
* projectDetail.type:0是托管项目,1是镜像项目,2是同步镜像项目(为2时不支持在线创建、在线上传、在线修改、在线删除、创建合并请求等功能)
|
||||||
*/
|
*/
|
||||||
|
const { Paragraph } = Typography;
|
||||||
function turnbar(str){
|
function turnbar(str){
|
||||||
if(str && str.length>0 && str.indexOf("/")>-1){
|
if(str && str.length>0 && str.indexOf("/")>-1){
|
||||||
return str.replaceAll('/','%2F');
|
return str.replaceAll('/','%2F');
|
||||||
|
@ -467,25 +467,25 @@ function CoderDepot(props){
|
||||||
{desc && <p className="font-14 color-grey-9 mb15 task-hide-2" style={{lineHeight:"22px",WebkitLineClamp:"4",textAlign:"justify",wordBreak:"break-all"}}>{desc}</p>}
|
{desc && <p className="font-14 color-grey-9 mb15 task-hide-2" style={{lineHeight:"22px",WebkitLineClamp:"4",textAlign:"justify",wordBreak:"break-all"}}>{desc}</p>}
|
||||||
{
|
{
|
||||||
website &&
|
website &&
|
||||||
<p className="color-grey-6 df">
|
<div className="color-grey-6 df pinfos mb5">
|
||||||
<i className="iconfont icon-lianjie2 font-15 mr10 color-grey-9"></i>
|
<i className="iconfont icon-lianjie2 font-15 mr10"></i>
|
||||||
<a href={website} className="color-grey-6" target="_blank" style={{wordBreak:"break-all",lineHeight:"20px",marginTop:"5px",textDecoration:"underline"}}>{website}</a>
|
<a href={website} target="_blank" style={{wordBreak:"break-all",lineHeight:"20px",marginTop:"5px",textDecoration:"underline"}}>{website}</a>
|
||||||
</p>
|
</div>
|
||||||
}
|
}
|
||||||
<p>
|
<div className="pinfos mb5">
|
||||||
<i className="iconfont icon-wenjian4 font-15 mr10 color-grey-9"></i>
|
<i className="iconfont icon-wenjian4 font-15 mr10"></i>
|
||||||
<a href="#readme" className="color-grey-6">README.md</a>
|
<a href="#readme">README.md</a>
|
||||||
</p>
|
</div>
|
||||||
<p className="color-grey-6">
|
<div className="color-grey-6 mb5">
|
||||||
<i className="iconfont icon-dataBase font-15 mr10 color-grey-6"></i>
|
<i className="iconfont icon-neicunicon font-15 mr10"></i>
|
||||||
<span>{projectDetail && projectDetail.size}</span>
|
<span>{projectDetail && projectDetail.size}</span>
|
||||||
</p>
|
</div>
|
||||||
{
|
{
|
||||||
projectDetail && projectDetail.license_name &&
|
projectDetail && projectDetail.license_name &&
|
||||||
<p className="color-grey-6">
|
<div>
|
||||||
<i className="iconfont icon-tianping font-16 mr10 color-grey-3"></i>
|
<i className="iconfont icon-tianping font-16 mr10 color-grey-3"></i>
|
||||||
<span>{projectDetail.license_name}</span>
|
<span className="color-grey-6">{projectDetail.license_name}</span>
|
||||||
</p>
|
</div>
|
||||||
}
|
}
|
||||||
</div>
|
</div>
|
||||||
{
|
{
|
||||||
|
|
|
@ -45,7 +45,7 @@ function CoderDepotReadme({ operate , history , readme , ChangeFile }){
|
||||||
<AlignCenter>
|
<AlignCenter>
|
||||||
<Dropdown overlay={menu()} trigger={['click']} overlayClassName="menuslist">
|
<Dropdown overlay={menu()} trigger={['click']} overlayClassName="menuslist">
|
||||||
<span className="catelogue">
|
<span className="catelogue">
|
||||||
<i className="iconfont icon-zhangjie1 font-14 mr5"></i>
|
<i className="iconfont icon-muluicon font-12 mr5"></i>
|
||||||
<span>目录</span>
|
<span>目录</span>
|
||||||
</span>
|
</span>
|
||||||
</Dropdown>
|
</Dropdown>
|
||||||
|
|
|
@ -204,6 +204,7 @@
|
||||||
padding:13px 20px;
|
padding:13px 20px;
|
||||||
border-radius: 4px 4px 0px 0px;
|
border-radius: 4px 4px 0px 0px;
|
||||||
border: 1px solid rgba(42, 97, 255, 0.23);
|
border: 1px solid rgba(42, 97, 255, 0.23);
|
||||||
|
background-color: #FAFCFF;
|
||||||
.ellipsistxt{
|
.ellipsistxt{
|
||||||
margin-top: 6px;
|
margin-top: 6px;
|
||||||
#ptxt{
|
#ptxt{
|
||||||
|
@ -226,12 +227,12 @@
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
position: relative;
|
position: relative;
|
||||||
padding-right:8px;
|
padding-right:8px;
|
||||||
&::after{
|
// &::after{
|
||||||
position: absolute;
|
// position: absolute;
|
||||||
right: 0px;
|
// right: 0px;
|
||||||
bottom: 0px;
|
// bottom: 0px;
|
||||||
content:"...";
|
// content:"...";
|
||||||
}
|
// }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
.ellipsis{
|
.ellipsis{
|
||||||
|
@ -335,17 +336,22 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.catelogue{
|
.catelogue{
|
||||||
border:1px solid rgb(211, 211, 211);
|
cursor: pointer;
|
||||||
|
background: #FAFBFC;
|
||||||
|
border-radius: 4px;
|
||||||
|
border: 1px solid #D0D0D0;
|
||||||
font-size: 15px;
|
font-size: 15px;
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
border-radius: 5px;
|
margin-right: 12px;
|
||||||
margin-right: 10px;
|
|
||||||
padding:0px 10px;
|
padding:0px 10px;
|
||||||
height: 30px;
|
height: 30px;
|
||||||
line-height: 30px;
|
line-height: 30px;
|
||||||
color: #666!important;
|
color: #666!important;
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
&:hover{
|
||||||
|
background-color: #F3F4F6;
|
||||||
|
}
|
||||||
span{
|
span{
|
||||||
margin-top: 1px;
|
margin-top: 1px;
|
||||||
}
|
}
|
||||||
|
@ -359,3 +365,17 @@
|
||||||
color: #05101a;
|
color: #05101a;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
.pinfos{
|
||||||
|
i,a{color: #666;}
|
||||||
|
&:hover i,&:hover a{
|
||||||
|
color: #2A61FF;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.graph{
|
||||||
|
flex:1;
|
||||||
|
margin:0px 12px;
|
||||||
|
.ant-typography{
|
||||||
|
white-space: pre-wrap;
|
||||||
|
margin-bottom: 0px;
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue