Skip to content

Commit

Permalink
多余的jar依赖
Browse files Browse the repository at this point in the history
页面提示等
  • Loading branch information
cgw committed Oct 22, 2022
1 parent b7c6fc4 commit 49e3b52
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ public enum MessageCodeEnum {

//镜像仓库
IMAGE_REPO_PROJECT_FAILURE("200000", "创建镜像仓库项目失败"),
IMAGE_REPO_IS_EMPTY("200000", "请先完成镜像仓库配置"),
SSL_CLIENT_FAILURE("200000", "创建https客户端失败"),
PACK("200000", "打包失败"),
JAVA_HOME_IS_EMPTY("200000", "Java安装目录不能为空"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -466,6 +466,9 @@ public boolean buildImage(DeployContext context) {
}

private String fullNameOfImage(ImageRepo imageRepo, String nameOfImage) {
if(imageRepo == null) {
LogUtils.throwException(logger, MessageCodeEnum.IMAGE_REPO_IS_EMPTY);
}
String imgUrl = imageRepo.getUrl();
if(imgUrl.startsWith("http")) {
imgUrl = imgUrl.substring(imgUrl.indexOf("//") + 2);
Expand Down
6 changes: 2 additions & 4 deletions dhorse-infrastructure/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,6 @@
<groupId>com.baomidou</groupId>
<artifactId>mybatis-plus</artifactId>
</dependency>
<dependency>
<groupId>org.apache.maven.shared</groupId>
<artifactId>maven-invoker</artifactId>
</dependency>
<dependency>
<groupId>org.apache.maven</groupId>
<artifactId>maven-embedder</artifactId>
Expand All @@ -75,6 +71,7 @@
<groupId>org.apache.maven</groupId>
<artifactId>maven-compat</artifactId>
</dependency>
<!-- deploy时需要
<dependency>
<groupId>org.apache.maven.resolver</groupId>
<artifactId>maven-resolver-connector-basic</artifactId>
Expand All @@ -83,6 +80,7 @@
<groupId>org.apache.maven.resolver</groupId>
<artifactId>maven-resolver-transport-http</artifactId>
</dependency>
-->
<dependency>
<groupId>org.gitlab4j</groupId>
<artifactId>gitlab4j-api</artifactId>
Expand Down
7 changes: 2 additions & 5 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@
<artifactId>maven-compat</artifactId>
<version>3.8.1</version>
</dependency>
<!-- deploy时需要
<dependency>
<groupId>org.apache.maven.resolver</groupId>
<artifactId>maven-resolver-connector-basic</artifactId>
Expand All @@ -130,11 +131,7 @@
<artifactId>maven-resolver-transport-http</artifactId>
<version>1.7.1</version>
</dependency>
<dependency>
<groupId>org.apache.maven.shared</groupId>
<artifactId>maven-invoker</artifactId>
<version>3.1.0</version>
</dependency>
-->
<dependency>
<groupId>com.google.cloud.tools</groupId>
<artifactId>jib-core</artifactId>
Expand Down
Binary file modified static/images/home.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions static/page/env/add.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
<div class="layui-form-item">
<label class="layui-form-label required">环境名称</label>
<div class="layui-input-block">
<input type="text" name="envName" lay-verify="required" lay-reqtext="环境名称不能为空" placeholder="请输入环境名称" autocomplete="off" class="layui-input">
<input type="text" name="envName" lay-verify="required" lay-reqtext="环境名称不能为空" placeholder="如:测试" autocomplete="off" class="layui-input">
<input type="hidden" name="projectId" id="projectId2"/>
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label required">环境标识</label>
<div class="layui-input-block">
<input type="text" name="tag" lay-verify="required" lay-reqtext="环境标识不能为空" placeholder="请输入环境标识" autocomplete="off" class="layui-input">
<input type="text" name="tag" lay-verify="required" lay-reqtext="环境标识不能为空" placeholder="如:qa" autocomplete="off" class="layui-input">
</div>
</div>
<div class="layui-form-item">
Expand Down
4 changes: 2 additions & 2 deletions static/page/env/update.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@
<div class="layui-form-item">
<label class="layui-form-label required">环境名称</label>
<div class="layui-input-block">
<input type="text" name="envName" lay-verify="required" lay-reqtext="环境名称不能为空" placeholder="请输入环境名称" autocomplete="off" class="layui-input">
<input type="text" name="envName" lay-verify="required" lay-reqtext="环境名称不能为空" placeholder="如:测试" autocomplete="off" class="layui-input">
<input type="hidden" name="projectId" id="projectId2"/>
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label required">环境标识</label>
<div class="layui-input-block">
<input type="text" name="tag" lay-verify="required" lay-reqtext="环境标识不能为空" placeholder="请输入环境标识" autocomplete="off" class="layui-input" disabled="disabled">
<input type="text" name="tag" lay-verify="required" lay-reqtext="环境标识不能为空" placeholder="如:qa" autocomplete="off" class="layui-input" disabled="disabled">
</div>
</div>
<div class="layui-form-item">
Expand Down
7 changes: 5 additions & 2 deletions static/page/sys_user/update_password.html
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
var password = data.field.password;
var confirmPassword = data.field.confirmPassword;
if(confirmPassword != password){
layer.msg("登录密码不一致", {icon: 5, shift: 6});
layer.msg("新密码和确认新不一致", {icon: 5, shift: 6});
return false;
}
data.field.oldPassword = data.field.oldPassword.md5(32).toUpperCase();
Expand All @@ -63,7 +63,10 @@
time: 1000,
shade: 0.01,
shadeClose: false}, function(){
miniPage.hashHome();
//回到欢迎页面
//miniPage.hashHome();
//跳转到首页
window.location = '/page/login.html';
});
return false;
},
Expand Down

0 comments on commit 49e3b52

Please sign in to comment.