Skip to content

Commit

Permalink
[Feature] add default welcome page.
Browse files Browse the repository at this point in the history
  • Loading branch information
wolfboys committed Jun 25, 2021
1 parent fbd80be commit f0a4237
Show file tree
Hide file tree
Showing 5 changed files with 49 additions and 15 deletions.
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 @@ -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 f0a4237

Please sign in to comment.