Skip to content

Commit

Permalink
Merge pull request #206 from wolfboys/main
Browse files Browse the repository at this point in the history
add default welcome page
  • Loading branch information
wolfboys authored Jun 25, 2021
2 parents 33c9d4d + f0a4237 commit 569f4f3
Show file tree
Hide file tree
Showing 9 changed files with 53 additions and 22 deletions.
5 changes: 0 additions & 5 deletions streamx-console/streamx-console-service/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -121,11 +121,6 @@
<scope>provided</scope>
</dependency>

<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-devtools</artifactId>
</dependency>

<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-websocket</artifactId>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
/*
* Copyright (c) 2019 The StreamX Project
*
* <p>Licensed to the Apache Software Foundation (ASF) under one or more contributor license
* agreements. See the NOTICE file distributed with this work for additional information regarding
* copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance with the License. You may obtain a
* copy of the License at
*
* <p>http://www.apache.org/licenses/LICENSE-2.0
*
* <p>Unless required by applicable law or agreed to in writing, software distributed under the
* License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.streamxhub.streamx.console.core.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

/**
* @author benjobs
*/
@RequestMapping
@Controller
public class IndexController {

@RequestMapping("/")
public ModelAndView index() {
return new ModelAndView("/index.html");
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ public CheckPointType getCheckPointType() {
}

public String getPath() {
return this.getExternalPath().replaceFirst("^hdfs:", "hdfs://");
return this.getExternalPath().replaceFirst("^hdfs:/[^/]", "hdfs:///");
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper;
import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.streamxhub.streamx.common.util.ClassLoaderUtils;
import com.streamxhub.streamx.common.util.DeflaterUtils;
import com.streamxhub.streamx.console.base.utils.WebUtil;
import com.streamxhub.streamx.console.core.dao.FlinkSqlMapper;
Expand All @@ -51,6 +52,7 @@
import java.util.List;
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
import java.util.function.Supplier;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import java.util.stream.Collectors;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ private void handleCheckPoints(Application application) throws Exception {
savePoint.setAppId(application.getId());
savePoint.setLatest(true);
savePoint.setType(checkPoint.getCheckPointType().get());
savePoint.setPath(checkPoint.getPath());
savePoint.setPath(checkPoint.getExternalPath());
savePoint.setTriggerTime(new Date(checkPoint.getTriggerTimestamp()));
savePoint.setCreateTime(new Date());
savePointService.save(savePoint);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ server:
io: 4
worker: 20

logging:
level: debug

spring:
application.name: streamx
devtools:
Expand Down Expand Up @@ -34,7 +37,7 @@ spring:
# 数据源-1,名称为 primary
primary:
username: root
password: 123322242
password: 123456
driver-class-name: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://localhost:3306/streamx?useUnicode=true&characterEncoding=UTF-8&useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=GMT%2B8
aop.proxy-target-class: true
Expand Down Expand Up @@ -85,5 +88,6 @@ streamx:
/*.js,
/*.png,
/*.jpg,
/*.less
/*.less,
/
Original file line number Diff line number Diff line change
Expand Up @@ -516,6 +516,7 @@
<div
id="startExp"
class="startExp"
ref="startExp"
style="height: 100%"/>
</a-modal>

Expand Down Expand Up @@ -1197,6 +1198,8 @@ export default {
theme: 'log',
value: this.execOption.content,
language: 'log',
readOnly: true,
inherit: true,
scrollBeyondLastLine: false,
overviewRulerBorder: false, // 不要滚动条边框
autoClosingBrackets: true,
Expand Down Expand Up @@ -1267,6 +1270,11 @@ export default {
myTheme() {
this.$refs.confEdit.theme()
this.$refs.different.theme()
if(this.editor.exception !== null) {
this.editor.exception.updateOptions({
theme: this.ideTheme()
})
}
}
},
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ monaco.languages.setMonarchTokensProvider('log', {
[/.*Exception.*/,'log-error'],
[/.*Caused\s+by:.*/,'log-error'],
[/\s+at\s+.*/, 'log-info'],
[/\[[a-zA-Z 0-9:]+\]/, 'log-date'],
[/\[[a-zA-Z 0-9:]+]/, 'log-date'],
]
}
})
Expand Down
12 changes: 0 additions & 12 deletions streamx-parent/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -106,12 +106,6 @@
<artifactId>vertx-core</artifactId>
<version>${vertx.version}</version>
</dependency>

<dependency>
<groupId>io.vertx</groupId>
<artifactId>vertx-lang-scala_2.12</artifactId>
<version>${vertx.version}</version>
</dependency>
<!--mysql async end-->

<dependency>
Expand Down Expand Up @@ -256,12 +250,6 @@
<version>${flink.version}</version>
</dependency>

<dependency>
<groupId>org.apache.flink</groupId>
<artifactId>flink-connector-filesystem_${scala.binary.version}</artifactId>
<version>1.11.3</version>
</dependency>

<dependency>
<groupId>org.apache.flink</groupId>
<artifactId>flink-connector-jdbc_${scala.binary.version}</artifactId>
Expand Down

0 comments on commit 569f4f3

Please sign in to comment.