8000环境样式调整

This commit is contained in:
unknown 2022-02-15 09:19:36 +08:00
parent a2a2847010
commit d26b304a17
6 changed files with 14 additions and 9 deletions

View File

@ -25,7 +25,7 @@ if (isDev) {
}
debugType = window.location.search.indexOf('debug=t') !== -1 ? 'teacher' :
window.location.search.indexOf('debug=s') !== -1 ? 'student' :
window.location.search.indexOf('debug=a') !== -1 ? 'a' : parsed.debug || 'a'
window.location.search.indexOf('debug=a') !== -1 ? 'a' : parsed.debug || 'admin'
}
window._debugType = debugType;
export function initAxiosInterceptors(props) {

View File

@ -11,6 +11,7 @@ import "./css/index.scss";
import Loadable from "react-loadable";
import Loading from "../Loading";
import { ImageLayerOfCommentHOC } from "../modules/page/layers/ImageLayerOfCommentHOC";
import Handbook from "./Component/Handbook";
const ProjectNew = Loadable({
@ -40,6 +41,7 @@ class Index extends Component {
return (
<div className="newMain clearfix">
<Handbook/>
<Switch {...this.props}>
<Route
path="/projects/:projectsType/new/:OIdentifier"

View File

@ -132,7 +132,7 @@ class Index extends Component {
name:'全部语言',
id:0,
});
this.setTypeList(result.data, undefined)
this.setTypeList(result.data, 0)
}
}).catch((error) => { })
}
@ -141,7 +141,7 @@ class Index extends Component {
this.setState({
typeList: list.map((item, key) => {
return (
<li key={key} className={ (active_type && parseInt(active_type) === item.id) ? 'active' : ''} onClick={() => this.changeType(`${item.id}`, list)}>
<li key={key} className={ parseInt(active_type) === item.id ? 'active' : ''} onClick={() => this.changeType(`${item.id}`, list)}>
<p>
<span className="font-16">{item.name}</span>
<span className="color-blue">{item.projects_count}</span>
@ -175,7 +175,7 @@ class Index extends Component {
name:'全部类别',
id:0,
});
this.setCategoryList(result.data, undefined);
this.setCategoryList(result.data, 0);
}
}).catch((error) => { })
}
@ -184,7 +184,7 @@ class Index extends Component {
this.setState({
categoryList: list.map((item, key) => {
return (
<li key={key} className={active_id && parseInt(active_id) === item.id ? 'active' : ''} onClick={() => this.changeCategory(`${item.id}`, list)}>
<li key={key} className={parseInt(active_id) === item.id ? 'active' : ''} onClick={() => this.changeCategory(`${item.id}`, list)}>
<p>
<span className="font-16">{item.name}</span>
<span className="color-blue">{item.projects_count}</span>

View File

@ -66,6 +66,9 @@
}
.list-r-Search{
width: 400px;
.ant-input:hover{
border-color: #4154f1;
}
}
.padding0-25{
padding:0px 25px;

View File

@ -14,7 +14,7 @@ const menu = [
{name:"代码库",index:"code"},
{name:"疑修 (Issue)",index:"issues"},
{name:"合并请求 (PR)",index:"pulls"},
{name:"引擎 (Engine)",index:"devops"},
// {name:"引擎 (Engine)",index:"devops"},
// {name:"资源库",index:"resources"},
{name:"里程碑",index:"versions"},
{name:"维基 (Wiki)",index:"wiki"},

View File

@ -273,7 +273,7 @@ form{
width: 6px;
content: '';
height: 33px;
background: #1484EF;
background: #4154f1;
}
.MenuTitle{
font-size: 16px;
@ -291,10 +291,10 @@ form{
cursor: pointer;
}
span:hover{
color: #1484EF;
color: #4154f1;
.iconfont{
color: #1484EF !important;
color: #4154f1 !important;
}
}
}