diff --git a/custom/public/css/git.openi.css b/custom/public/css/git.openi.css index 7d05d503b..92a5cb20c 100644 --- a/custom/public/css/git.openi.css +++ b/custom/public/css/git.openi.css @@ -145,7 +145,7 @@ position: relative; z-index: 9; bottom: -9em; - width: 540px; + width: 500px; } #homenews > p{ color: #BBBBBB; diff --git a/custom/public/rotation3D/rotation3D.js b/custom/public/rotation3D/rotation3D.js index 8ec5b6938..770295153 100644 --- a/custom/public/rotation3D/rotation3D.js +++ b/custom/public/rotation3D/rotation3D.js @@ -154,7 +154,7 @@ var Rotation3D = window.Rotation3D = function (_opts) { * y y起点 + (尺寸 * 正弦 * y压缩) - 元素宽度一半 */ Rotation3D.prototype.itemStyle = function($item, index, rotation) { - console.log("itemStyle=" + rotation + " index=" + index); + //console.log("itemStyle=" + rotation + " index=" + index); var parseSXY = circleMath.parseSXY(rotation, this); var scale = parseSXY.scale; var x = parseSXY.x; @@ -219,7 +219,7 @@ Rotation3D.prototype.itemStyle = function($item, index, rotation) { */ Rotation3D.prototype.lineStyle = function($line, index, rotation) { var rotate = circleMath.parseRotate(rotation, this) - console.log("lineStyle=" + rotation + " index=" + index); + //console.log("lineStyle=" + rotation + " index=" + index); $line.css({ transform: 'rotate(' + rotate + 'deg)', @@ -235,7 +235,7 @@ Rotation3D.prototype.lineStyle = function($line, index, rotation) { Rotation3D.prototype.goTo = function (index) { var self = this; this.currenIndex = index; - console.log('goTo currenIndex', index); + //console.log('goTo currenIndex', index); /** * 1.计算floatIndex,用于控死amdiff */ @@ -319,7 +319,7 @@ Rotation3D.prototype.onAutoPlay = function () { if (self.currenIndex < 0) { self.currenIndex = self.length - 1 } - console.log("autoPlayTimer...."); + //console.log("autoPlayTimer...."); self.goTo(self.currenIndex); self.currenIndex--; //倒叙 }, this.autoPlayDelay) @@ -331,12 +331,12 @@ Rotation3D.prototype.onAutoPlay = function () { Rotation3D.prototype.onDrag = function () { var self = this; var startX, startY, moveX, moveY, endX, endY; - console.log("onDrag...."); + //console.log("onDrag...."); // 拖拽:三个事件-按下 移动 抬起 //按下 this.$rotation.mousedown(function (e) { startX = e.pageX; startY = e.pageY; - console.log("mousedown...."); + //console.log("mousedown...."); // 移动 $(document).mousemove(function (e) { // console.log('移动'); @@ -348,10 +348,10 @@ Rotation3D.prototype.onDrag = function () { $(document).mouseup(function (e) { endX = e.pageX; endY = e.pageY; moveX = endX - startX; moveY = endY - startY; - console.log("mouseup...."); + //console.log("mouseup...."); // 每40旋转一步 var moveIndex = parseInt(Math.abs(moveX) / 50) - console.log('moveIndex',moveIndex) + //console.log('moveIndex',moveIndex) if (moveIndex > 0) { // console.log(moveX<0 ? '向左' : '向右') if (moveX < 0) { //向左 diff --git a/package-lock.json b/package-lock.json index d65d6b49a..9233b813b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -5439,7 +5439,7 @@ "gulp-tap": "^1.0.1", "gulp-uglify": "^3.0.1", "inquirer": "^6.2.1", - "jquery": "^3.5.1", + "jquery": "^3.4.0", "less": "^3.7.0", "map-stream": "^0.1.0", "merge-stream": "^2.0.0", diff --git a/public/home/home.js b/public/home/home.js index 33c7edc47..168224c34 100755 --- a/public/home/home.js +++ b/public/home/home.js @@ -206,17 +206,17 @@ function refresh3DInfo(record){ //cloudbrain one var lines = $('.rotation3D__line'); var span = $('.rotation3D__line').find("span")[0]; - console.log(span); + //console.log(span); span.innerText =record.RefName; //$('.rotation3D__line').find("span").eq(0).text(record.RefName) - console.log("cloudbrain one line length=" + lines.length); + //console.log("cloudbrain one line length=" + lines.length); //lines[0].find("span").text(record.RefName); }else if(record.OpType == "26" || record.OpType == "27" || record.OpType == "28"){ //cloudbrain two var lines = $('.rotation3D__line'); - console.log("cloudbrain two line length=" + lines.length); + //console.log("cloudbrain two line length=" + lines.length); var span = $('.rotation3D__line').find("span")[1]; - console.log(span); + //console.log(span); span.innerText =record.RefName; //$('.rotation3D__line').find("span").eq(1).text(record.RefName) //lines[1].find("span").text(record.RefName); diff --git a/routers/repo/modelarts.go b/routers/repo/modelarts.go index e099a19ff..95ca8df62 100755 --- a/routers/repo/modelarts.go +++ b/routers/repo/modelarts.go @@ -764,6 +764,7 @@ func trainJobErrorNewDataPrepare(ctx *context.Context, form auth.CreateModelArts ctx.Data["bootFile"] = form.BootFile ctx.Data["uuid"] = form.Attachment ctx.Data["branch_name"] = form.BranchName + ctx.Data["cloudbraintype"] = models.TypeCloudBrainTwo return nil } @@ -954,6 +955,7 @@ func versionErrorDataPrepare(ctx *context.Context, form auth.CreateModelArtsTrai return err } ctx.Data["config_list"] = configList.ParaConfigs + ctx.Data["cloudbraintype"] = models.TypeCloudBrainTwo return nil } @@ -2175,6 +2177,7 @@ func inferenceJobErrorNewDataPrepare(ctx *context.Context, form auth.CreateModel ctx.Data["model_version"] = form.ModelVersion ctx.Data["ckpt_name"] = form.CkptName ctx.Data["train_url"] = form.TrainUrl + ctx.Data["cloudbraintype"] = models.TypeCloudBrainTwo return nil } diff --git a/templates/base/footer.tmpl b/templates/base/footer.tmpl index ebf74f7b8..c16cf1ae4 100644 --- a/templates/base/footer.tmpl +++ b/templates/base/footer.tmpl @@ -12,7 +12,7 @@ {{template "base/footer_content" .}} - + @@ -40,15 +40,13 @@ {{if .RequireTribute}} {{end}} - - +{{if .PageIsHome}} + +{{end}} {{template "custom/footer" .}} {{if .PageIsHome}} - - - + {{template "base/footer" .}} diff --git a/templates/repo/datasets/index.tmpl b/templates/repo/datasets/index.tmpl index 4cc84bbe8..74448406f 100755 --- a/templates/repo/datasets/index.tmpl +++ b/templates/repo/datasets/index.tmpl @@ -118,6 +118,20 @@ .diy-popper { max-width: 400px; } + + .ascending { + width: 0; + height: 0; + border: 5px solid transparent; + border-bottom-color: #c0c4cc; + } + + .descending { + width: 0; + height: 0; + border: 5px solid transparent; + border-top-color: #c0c4cc; + }