Skip to content

Commit b7fcca7

Browse files
githublaohujie
andauthored
Implemented all project APIs, the main workflow, and partial features (#199)
* fix(*): 1. 合并代码, 2. 处理格式问题 * fix(*):1. 提升插件版本 2. 添加协议头 --------- Co-authored-by: jie <[email protected]>
1 parent 23abbb9 commit b7fcca7

File tree

637 files changed

+19209
-8635
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

637 files changed

+19209
-8635
lines changed

README.zh-CN.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,4 +94,13 @@ docker run -d --name eventmesh-dashboard -p 8080:8080 yourname/eventmesh-dashboa
9494
2. 配置协议头工具 license-eye。
9595
1. 检查命令:license-eye header check
9696
2. 使用命令:license-eye header fix
97-
3. 下载地址: https://skywalking.apache.org/downloads/
97+
3. 下载地址: https://skywalking.apache.org/downloads/
98+
99+
100+
### 提交代码前
101+
在项目根目录执行下面命令
102+
```
103+
license-eye -v info -c .licenserc.yaml header check
104+
./mvnw -B package -DskipTests --file pom.xml
105+
./mvnw -B test --file pom.xml
106+
```

eventmesh-dashboard-common/pom.xml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,20 +30,17 @@
3030
<artifactId>eventmesh-dashboard-common</artifactId>
3131

3232
<properties>
33-
<java.version>1.8</java.version>
33+
<java.version>17</java.version>
3434
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
3535
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
3636
</properties>
3737

3838
<dependencies>
39-
<!-- TODO: common module should not contains spring framework, considering remove this dependency -->
40-
<!-- Spring Boot Starter -->
4139
<dependency>
42-
<groupId>org.springframework.boot</groupId>
43-
<artifactId>spring-boot-starter-web</artifactId>
44-
<scope>provided</scope>
40+
<groupId>org.springframework</groupId>
41+
<artifactId>spring-core</artifactId>
42+
<version>5.1.19.RELEASE</version>
4543
</dependency>
46-
4744
<!-- Utility -->
4845
<dependency>
4946
<groupId>org.projectlombok</groupId>
@@ -54,6 +51,11 @@
5451
<artifactId>commons-lang3</artifactId>
5552
<version>3.14.0</version>
5653
</dependency>
54+
<dependency>
55+
<groupId>org.apache.commons</groupId>
56+
<artifactId>commons-collections4</artifactId>
57+
<version>4.4</version>
58+
</dependency>
5759
<dependency>
5860
<groupId>com.alibaba.fastjson2</groupId>
5961
<artifactId>fastjson2</artifactId>
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
/*
2+
* Licensed to the Apache Software Foundation (ASF) under one or more
3+
* contributor license agreements. See the NOTICE file distributed with
4+
* this work for additional information regarding copyright ownership.
5+
* The ASF licenses this file to You under the Apache License, Version 2.0
6+
* (the "License"); you may not use this file except in compliance with
7+
* the License. You may obtain a copy of the License at
8+
*
9+
* http://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* Unless required by applicable law or agreed to in writing, software
12+
* distributed under the License is distributed on an "AS IS" BASIS,
13+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
* See the License for the specific language governing permissions and
15+
* limitations under the License.
16+
*/
17+
18+
19+
package org.apache.eventmesh.dashboard.common.annotation;
20+
21+
import org.apache.eventmesh.dashboard.common.enums.ClusterType;
22+
23+
import java.lang.annotation.Documented;
24+
import java.lang.annotation.ElementType;
25+
import java.lang.annotation.Retention;
26+
import java.lang.annotation.RetentionPolicy;
27+
import java.lang.annotation.Target;
28+
29+
@Target(ElementType.TYPE)
30+
@Retention(RetentionPolicy.RUNTIME)
31+
@Documented
32+
public @interface RemotingServiceMapper {
33+
34+
35+
ClusterType clusterType();
36+
37+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
/*
2+
* Licensed to the Apache Software Foundation (ASF) under one or more
3+
* contributor license agreements. See the NOTICE file distributed with
4+
* this work for additional information regarding copyright ownership.
5+
* The ASF licenses this file to You under the Apache License, Version 2.0
6+
* (the "License"); you may not use this file except in compliance with
7+
* the License. You may obtain a copy of the License at
8+
*
9+
* http://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* Unless required by applicable law or agreed to in writing, software
12+
* distributed under the License is distributed on an "AS IS" BASIS,
13+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
* See the License for the specific language governing permissions and
15+
* limitations under the License.
16+
*/
17+
18+
19+
package org.apache.eventmesh.dashboard.common.annotation;
20+
21+
import org.apache.eventmesh.dashboard.common.model.remoting.RemotingActionType;
22+
23+
import java.lang.annotation.Documented;
24+
import java.lang.annotation.ElementType;
25+
import java.lang.annotation.Retention;
26+
import java.lang.annotation.RetentionPolicy;
27+
import java.lang.annotation.Target;
28+
29+
/**
30+
*
31+
*/
32+
@Target(ElementType.METHOD)
33+
@Retention(RetentionPolicy.RUNTIME)
34+
@Documented
35+
public @interface RemotingServiceMethodMapper {
36+
37+
RemotingActionType[] value();
38+
}

eventmesh-dashboard-common/src/main/java/org/apache/eventmesh/dashboard/common/constant/ApiPrefix.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,10 @@
1515
* limitations under the License.
1616
*/
1717

18+
1819
package org.apache.eventmesh.dashboard.common.constant;
1920

21+
@Deprecated
2022
public class ApiPrefix {
2123

2224
public static final String API_PREFIX = "/eventmesh-dashboard/";

eventmesh-dashboard-common/src/main/java/org/apache/eventmesh/dashboard/common/constant/NacosConst.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,10 @@
1515
* limitations under the License.
1616
*/
1717

18+
1819
package org.apache.eventmesh.dashboard.common.constant;
1920

21+
@Deprecated
2022
public class NacosConst {
2123

2224
public static final String LOGIN_API = "/nacos/v1/auth/login";

eventmesh-dashboard-common/src/main/java/org/apache/eventmesh/dashboard/common/constant/StoreTypeConstant.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,10 @@
1515
* limitations under the License.
1616
*/
1717

18+
1819
package org.apache.eventmesh.dashboard.common.constant;
1920

21+
@Deprecated
2022
public class StoreTypeConstant {
2123

2224
public static final String STORE_TYPE_TYPE_UNKNOWN = "unknown";

eventmesh-dashboard-common/src/main/java/org/apache/eventmesh/dashboard/common/constant/health/HealthCheckTypeConstant.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,12 @@
1515
* limitations under the License.
1616
*/
1717

18+
1819
package org.apache.eventmesh.dashboard.common.constant.health;
1920

2021
import org.apache.eventmesh.dashboard.common.constant.StoreTypeConstant;
2122

23+
@Deprecated
2224
public class HealthCheckTypeConstant {
2325

2426
public static final String HEALTH_CHECK_TYPE_UNKNOWN = "unknown";

eventmesh-dashboard-common/src/main/java/org/apache/eventmesh/dashboard/common/constant/health/HealthConstant.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
* limitations under the License.
1616
*/
1717

18+
1819
package org.apache.eventmesh.dashboard.common.constant.health;
1920

2021
public class HealthConstant {

eventmesh-dashboard-common/src/main/java/org/apache/eventmesh/dashboard/common/dto/Result.java

Lines changed: 0 additions & 140 deletions
This file was deleted.

0 commit comments

Comments
 (0)