gitlink首页style

This commit is contained in:
caishi 2021-11-26 10:15:53 +08:00
parent 633dee9655
commit 9299a1667e
3 changed files with 6 additions and 3 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 ? 'admin' : parsed.debug || 'admin'
window.location.search.indexOf('debug=a') !== -1 ? 'admin' : parsed.debug || 'student'
}
window._debugType = debugType;
export function initAxiosInterceptors(props) {

View File

@ -310,7 +310,6 @@
margin:0px auto;
.left{
width: 850px;
box-shadow: 0px 0px 4px 5px rgba(0, 0, 0, 0.02);
display: flex;
.leftTypes{
width: 220px;
@ -343,6 +342,7 @@
}
.leftLists{
flex:1;
box-shadow: 0px 0px 4px 5px rgba(0, 0, 0, 0.02);
.leftTitles{
height: 60px;
display: flex;

View File

@ -35,9 +35,11 @@ function Calendar({ userLogin , time , chooseTime }) {
const url = `/users/${userLogin}/headmaps.json`;
Axios.get(url).then(result=>{
if(result && result.data){
let m = result.data.headmaps;
// result.data.headmaps
let m = [];
m.sort(compare('contributions'));
let max = m[m.length -1].contributions;
Init(m,max);
}
}).catch(error=>{})
@ -52,6 +54,7 @@ function Calendar({ userLogin , time , chooseTime }) {
}
function getVirtulData(data) {
debugger;
var date = +echarts.number.parseDate(baginT);
var end = +echarts.number.parseDate(endT);
var dayTime = 3600 * 24 * 1000;