Unverified Commit 524ffc44 authored by gaoyan's avatar gaoyan Committed by GitHub

[Feature] New Home (#3630)

parent a8e40100
...@@ -257,7 +257,7 @@ ...@@ -257,7 +257,7 @@
<dependency> <dependency>
<groupId>com.github.jsqlparser</groupId> <groupId>com.github.jsqlparser</groupId>
<artifactId>jsqlparser</artifactId> <artifactId>jsqlparser</artifactId>
<version>4.4</version> <version>4.9</version>
</dependency> </dependency>
<!-- for cache--> <!-- for cache-->
<dependency> <dependency>
......
...@@ -22,6 +22,7 @@ package org.dinky.controller; ...@@ -22,6 +22,7 @@ package org.dinky.controller;
import org.dinky.data.constant.DirConstant; import org.dinky.data.constant.DirConstant;
import org.dinky.data.constant.PermissionConstants; import org.dinky.data.constant.PermissionConstants;
import org.dinky.data.dto.TreeNodeDTO; import org.dinky.data.dto.TreeNodeDTO;
import org.dinky.data.metrics.MetricsTotal;
import org.dinky.data.result.Result; import org.dinky.data.result.Result;
import org.dinky.service.SystemService; import org.dinky.service.SystemService;
...@@ -50,6 +51,12 @@ public class SystemController { ...@@ -50,6 +51,12 @@ public class SystemController {
private final SystemService systemService; private final SystemService systemService;
@GetMapping("/getSysInfo")
@ApiOperation("Get System Info")
public Result<MetricsTotal> getSysInfo() {
return Result.succeed(new MetricsTotal());
}
/** /**
* All log files for this project * All log files for this project
* *
......
...@@ -60,6 +60,7 @@ import com.fasterxml.jackson.databind.JsonNode; ...@@ -60,6 +60,7 @@ import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.node.ObjectNode; import com.fasterxml.jackson.databind.node.ObjectNode;
import cn.dev33.satoken.annotation.SaCheckLogin; import cn.dev33.satoken.annotation.SaCheckLogin;
import cn.dev33.satoken.stp.StpUtil;
import cn.hutool.core.lang.tree.Tree; import cn.hutool.core.lang.tree.Tree;
import io.swagger.annotations.Api; import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam; import io.swagger.annotations.ApiImplicitParam;
...@@ -276,4 +277,11 @@ public class TaskController { ...@@ -276,4 +277,11 @@ public class TaskController {
public Result<Tree<Integer>> queryAllCatalogue() { public Result<Tree<Integer>> queryAllCatalogue() {
return taskService.queryAllCatalogue(); return taskService.queryAllCatalogue();
} }
@GetMapping("/getUserTask")
@ApiOperation("Get order task")
public Result<List<TaskDTO>> getMyTask() {
int id = StpUtil.getLoginIdAsInt();
return Result.succeed(taskService.getUserTasks(id));
}
} }
...@@ -27,6 +27,7 @@ import org.dinky.data.model.ext.TaskExtConfig; ...@@ -27,6 +27,7 @@ import org.dinky.data.model.ext.TaskExtConfig;
import org.dinky.data.typehandler.ListTypeHandler; import org.dinky.data.typehandler.ListTypeHandler;
import org.dinky.job.JobConfig; import org.dinky.job.JobConfig;
import java.time.LocalDateTime;
import java.util.HashMap; import java.util.HashMap;
import java.util.List; import java.util.List;
import java.util.Map; import java.util.Map;
...@@ -234,6 +235,9 @@ public class TaskDTO extends AbstractStatementDTO { ...@@ -234,6 +235,9 @@ public class TaskDTO extends AbstractStatementDTO {
@TableField(typeHandler = ListTypeHandler.class) @TableField(typeHandler = ListTypeHandler.class)
private List<Integer> secondLevelOwners; private List<Integer> secondLevelOwners;
@ApiModelProperty(value = "Update Time", dataType = "LocalDateTime", example = "2021-05-28 00:00:00")
private LocalDateTime updateTime;
public JobConfig getJobConfig() { public JobConfig getJobConfig() {
Map<String, String> parsedConfig = Map<String, String> parsedConfig =
...@@ -254,4 +258,10 @@ public class TaskDTO extends AbstractStatementDTO { ...@@ -254,4 +258,10 @@ public class TaskDTO extends AbstractStatementDTO {
BeanUtil.copyProperties(this, task); BeanUtil.copyProperties(this, task);
return task; return task;
} }
public static TaskDTO fromTask(Task task) {
TaskDTO dto = new TaskDTO();
BeanUtil.copyProperties(task, dto);
return dto;
}
} }
...@@ -38,13 +38,17 @@ import cn.hutool.json.JSONArray; ...@@ -38,13 +38,17 @@ import cn.hutool.json.JSONArray;
public class ListTypeHandler extends AbstractJsonTypeHandler<List<Object>> { public class ListTypeHandler extends AbstractJsonTypeHandler<List<Object>> {
private static final Logger log = LoggerFactory.getLogger(FastjsonTypeHandler.class); private static final Logger log = LoggerFactory.getLogger(FastjsonTypeHandler.class);
public ListTypeHandler(Class<?> type) {
super(type);
}
@Override @Override
protected List<Object> parse(String json) { public List<Object> parse(String json) {
return new JSONArray(json).toList(Object.class); return new JSONArray(json).toList(Object.class);
} }
@Override @Override
protected String toJson(List<Object> obj) { public String toJson(List<Object> obj) {
return new JSONArray(obj).toString(); return new JSONArray(obj).toString();
} }
} }
...@@ -296,4 +296,11 @@ public interface TaskService extends ISuperService<Task> { ...@@ -296,4 +296,11 @@ public interface TaskService extends ISuperService<Task> {
* @return * @return
*/ */
Boolean checkTaskOperatePermission(Integer taskId); Boolean checkTaskOperatePermission(Integer taskId);
/**
* Get user tasks
* @param userId
* @return
*/
List<TaskDTO> getUserTasks(Integer userId);
} }
...@@ -125,6 +125,7 @@ import org.springframework.web.multipart.MultipartFile; ...@@ -125,6 +125,7 @@ import org.springframework.web.multipart.MultipartFile;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.fasterxml.jackson.core.JsonProcessingException; import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.JsonNode; import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.ObjectMapper; import com.fasterxml.jackson.databind.ObjectMapper;
...@@ -1020,6 +1021,37 @@ public class TaskServiceImpl extends SuperServiceImpl<TaskMapper, Task> implemen ...@@ -1020,6 +1021,37 @@ public class TaskServiceImpl extends SuperServiceImpl<TaskMapper, Task> implemen
return null; return null;
} }
@Override
public List<TaskDTO> getUserTasks(Integer userId) {
Map<Integer, TaskDTO> tskMap = new HashMap<>();
// 流式获取数据,防止OOM
baseMapper.selectList(Wrappers.emptyWrapper(), resultContext -> {
Task task = resultContext.getResultObject();
if (hasTaskOperatePermission(task.getFirstLevelOwner(), task.getSecondLevelOwners())) {
// 去掉statement,防止OOM
task.setStatement(null);
tskMap.put(task.getJobInstanceId(), TaskDTO.fromTask(task));
if (tskMap.size() >= 1000) {
// 任务太多了,停止查询
resultContext.stop();
}
}
});
LambdaQueryWrapper<JobInstance> wrapper = new LambdaQueryWrapper<>();
wrapper.in(JobInstance::getId, tskMap.keySet());
jobInstanceService.getBaseMapper().selectList(wrapper, resultContext -> {
JobInstance jobInstance = resultContext.getResultObject();
TaskDTO taskDTO = tskMap.get(jobInstance.getId());
if (Objects.nonNull(taskDTO)) {
taskDTO.setStatus(jobInstance.getStatus());
}
});
List<TaskDTO> tasks = new ArrayList<>(tskMap.values());
return tasks;
}
private Boolean hasTaskOperatePermission(Integer firstLevelOwner, List<Integer> secondLevelOwners) { private Boolean hasTaskOperatePermission(Integer firstLevelOwner, List<Integer> secondLevelOwners) {
boolean isFirstLevelOwner = firstLevelOwner != null && firstLevelOwner == StpUtil.getLoginIdAsInt(); boolean isFirstLevelOwner = firstLevelOwner != null && firstLevelOwner == StpUtil.getLoginIdAsInt();
if (TaskOwnerLockStrategyEnum.OWNER.equals( if (TaskOwnerLockStrategyEnum.OWNER.equals(
......
...@@ -34,4 +34,5 @@ public class MetricsTotal implements Serializable { ...@@ -34,4 +34,5 @@ public class MetricsTotal implements Serializable {
private Jvm jvm = Jvm.of(); private Jvm jvm = Jvm.of();
private Cpu cpu = Cpu.of(); private Cpu cpu = Cpu.of();
private Mem mem = Mem.of(); private Mem mem = Mem.of();
private SystemInfo systemInfo = SystemInfo.of();
} }
...@@ -17,35 +17,36 @@ ...@@ -17,35 +17,36 @@
* *
*/ */
import { l } from '@/utils/intl'; package org.dinky.data.metrics;
export const imgStyle = { import java.util.Map;
display: 'block', import java.util.Properties;
width: 42,
height: 42
};
export const MONTH_LIST = { import lombok.Data;
'01': l('global.month.january'),
'02': l('global.month.february'),
'03': l('global.month.march'),
'04': l('global.month.april'),
'05': l('global.month.may'),
'06': l('global.month.june'),
'07': l('global.month.july'),
'08': l('global.month.august'),
'09': l('global.month.september'),
'10': l('global.month.october'),
'11': l('global.month.november'),
'12': l('global.month.december')
};
export const WEEK_LIST = [ @Data
l('global.week.sunday'), public class SystemInfo {
l('global.week.monday'), private String osName;
l('global.week.tuesday'), private String osArch;
l('global.week.wednesday'), private String osVersion;
l('global.week.thursday'), private String jvmVersion;
l('global.week.friday'), private String jvmVendor;
l('global.week.saturday') private String jvmName;
]; private String computerName;
private String computerUser;
public static SystemInfo of() {
SystemInfo system = new SystemInfo();
Properties props = System.getProperties();
system.setOsName(props.getProperty("os.name"));
system.setOsArch(props.getProperty("os.arch"));
system.setOsVersion(props.getProperty("os.version"));
system.setJvmVersion(props.getProperty("java.vm.version"));
system.setJvmVendor(props.getProperty("java.vm.vendor"));
system.setJvmName(props.getProperty("java.vm.name"));
Map<String, String> map = System.getenv();
system.setComputerName(map.get("NAME"));
system.setComputerUser(map.get("USER"));
return system;
}
}
...@@ -50,13 +50,13 @@ export default [ ...@@ -50,13 +50,13 @@ export default [
layout: false, layout: false,
hideInMenu: true hideInMenu: true
}, },
// { {
// path: '/home', path: '/home',
// name: 'home', name: 'home',
// icon: 'HomeOutlined', icon: 'HomeOutlined',
// footerRender: false, footerRender: false,
// component: './Home' component: './Home'
// }, },
{ {
path: '/datastudio', path: '/datastudio',
name: 'datastudio', name: 'datastudio',
......
...@@ -42,16 +42,23 @@ ...@@ -42,16 +42,23 @@
"@ant-design/pro-layout": "^7.19.8", "@ant-design/pro-layout": "^7.19.8",
"@ant-design/pro-table": "^3.16.1", "@ant-design/pro-table": "^3.16.1",
"@ant-design/use-emotion-css": "^1.0.4", "@ant-design/use-emotion-css": "^1.0.4",
"@antv/g2": "^5.2.0",
"@antv/layout": "0.3.25", "@antv/layout": "0.3.25",
"@antv/x6": "^2.18.1", "@antv/x6": "^2.18.1",
"@antv/x6-plugin-selection": "^2.2.2", "@antv/x6-plugin-selection": "^2.2.2",
"@antv/x6-react-shape": "^2.2.3", "@antv/x6-react-shape": "^2.2.3",
"@babel/runtime": "^7.24.7",
"@monaco-editor/react": "^4.6.0", "@monaco-editor/react": "^4.6.0",
"@umijs/route-utils": "^4.0.1", "@umijs/route-utils": "^4.0.1",
"@xterm/addon-fit": "^0.10.0",
"@xterm/xterm": "^5.5.0",
"antd": "^5.18.2", "antd": "^5.18.2",
"antd-style": "^3.6.2",
"butterfly-dag": "^4.3.28", "butterfly-dag": "^4.3.28",
"classnames": "^2.5.1", "classnames": "^2.5.1",
"dayjs": "^1.11.11", "dayjs": "^1.11.11",
"echarts": "^5.5.0",
"echarts-for-react": "^3.0.2",
"jquery": "^3.7.1", "jquery": "^3.7.1",
"js-cookie": "^3.0.5", "js-cookie": "^3.0.5",
"lodash": "^4.17.21", "lodash": "^4.17.21",
...@@ -66,6 +73,7 @@ ...@@ -66,6 +73,7 @@
"react": "^18.3.1", "react": "^18.3.1",
"react-countup": "^6.5.3", "react-countup": "^6.5.3",
"react-dom": "^18.3.1", "react-dom": "^18.3.1",
"react-grid-layout": "^1.4.4",
"react-helmet-async": "^2.0.5", "react-helmet-async": "^2.0.5",
"react-lineage-dag": "^2.0.36", "react-lineage-dag": "^2.0.36",
"react-markdown": "^9.0.1", "react-markdown": "^9.0.1",
...@@ -78,31 +86,25 @@ ...@@ -78,31 +86,25 @@
"styled-components": "^6.1.1", "styled-components": "^6.1.1",
"use-sse": "^2.0.1", "use-sse": "^2.0.1",
"uuid": "^10.0.0", "uuid": "^10.0.0",
"echarts": "^5.5.0", "websocket": "^1.0.35"
"echarts-for-react": "^3.0.2",
"react-grid-layout": "^1.4.4",
"@babel/runtime": "^7.24.7",
"websocket": "^1.0.35",
"@xterm/xterm": "^5.5.0",
"@xterm/addon-fit": "^0.10.0"
}, },
"devDependencies": { "devDependencies": {
"@ant-design/pro-cli": "^3.2.1", "@ant-design/pro-cli": "^3.2.1",
"@types/classnames": "^2.3.1", "@types/classnames": "^2.3.1",
"@types/express": "^4.17.21", "@types/express": "^4.17.21",
"js-cookie": "^3.0.5",
"@types/history": "^5.0.0", "@types/history": "^5.0.0",
"@types/lodash": "^4.17.5", "@types/lodash": "^4.17.5",
"@types/react": "^18.2.39", "@types/react": "^18.2.39",
"@types/react-dom": "^18.2.17", "@types/react-dom": "^18.2.17",
"@types/react-grid-layout": "^1.3.5",
"@types/react-helmet": "^6.1.9", "@types/react-helmet": "^6.1.9",
"@umijs/lint": "^4.2.11", "@umijs/lint": "^4.2.11",
"@umijs/max": "^4.2.11", "@umijs/max": "^4.2.11",
"@types/react-grid-layout": "^1.3.5",
"cross-env": "^7.0.3", "cross-env": "^7.0.3",
"eslint": "^9.3.0", "eslint": "^9.3.0",
"express": "^4.19.2", "express": "^4.19.2",
"husky": "^9.0.11", "husky": "^9.0.11",
"js-cookie": "^3.0.5",
"lint-staged": "^15.2.4", "lint-staged": "^15.2.4",
"prettier": "^3.2.5", "prettier": "^3.2.5",
"react-dev-inspector": "^2.0.1", "react-dev-inspector": "^2.0.1",
......
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
export default { export default {
'menu.welcome': 'Welcome', 'menu.welcome': 'Welcome',
'menu.home': 'Home', 'menu.home': 'Worker place',
'menu.exception.403': '403', 'menu.exception.403': '403',
'menu.exception.404': '404', 'menu.exception.404': '404',
'menu.exception.500': '500', 'menu.exception.500': '500',
......
...@@ -266,38 +266,10 @@ export default { ...@@ -266,38 +266,10 @@ export default {
* *
* */ * */
'home.develop': 'Data Develop', 'home.fast.link': 'Quick Start / Easy Navigation',
'home.develop.re': 'Resource Registration', 'home.mywork': 'My Task',
'home.develop.re.ag': 'Alarm Group', 'home.allwork': 'All Task',
'home.develop.re.ai': 'Alarm Instance', 'home.task.not.desc': 'No mission statement at this time',
'home.develop.re.cc': 'Cluster Configuration',
'home.develop.re.ci': 'Flink Cluster Instance',
'home.develop.re.ds': 'Data Source',
'home.develop.re.git': 'Git Project',
'home.develop.re.gv': 'Global Variables',
'home.job.batch': 'Batch Job',
'home.job.development': 'Development',
'home.job.failed': 'Failed Today',
'home.job.failed.handle': 'Handled',
'home.job.failed.name': 'Job Name',
'home.job.failed.rank': 'Rank',
'home.job.failed.time': 'Abnormal Time',
'home.job.failed.unhandle': 'Currently Unhandled Failure',
'home.job.finished': 'Completed Today',
'home.job.instance': 'Task Instance',
'home.job.metrics': 'Job Monitoring',
'home.job.online': 'Online Today',
'home.job.onlineRate': 'Number of Jobs Online Rate',
'home.job.recovery': 'Recovery Today',
'home.job.recovery.rate': 'Recovery Rate',
'home.job.running': 'Currently Running',
'home.job.running.dayonday': 'Day on Day Ratio',
'home.job.running.status': 'Current Job Running Status',
'home.job.stream': 'Streaming Job',
'home.server.load': 'Server Load',
'home.server.load.bad': 'Bad',
'home.server.load.excellent': 'Excellent',
'home.server.load.good': 'Good',
/** /**
* *
* layouts * layouts
......
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
export default { export default {
'menu.welcome': '欢迎', 'menu.welcome': '欢迎',
'menu.home': '首页', 'menu.home': '工作台',
'menu.exception.403': '403', 'menu.exception.403': '403',
'menu.exception.404': '404', 'menu.exception.404': '404',
'menu.exception.500': '500', 'menu.exception.500': '500',
......
...@@ -251,38 +251,13 @@ export default { ...@@ -251,38 +251,13 @@ export default {
* *
* */ * */
'home.develop': ' 数据开发', 'home.fast.link': ' 快速开始 / 便捷导航',
'home.develop.re': '资源注册情况', 'home.mywork': '我负责的任务',
'home.develop.re.ag': '告警组', 'home.allwork': '全部任务',
'home.develop.re.ai': '告警实例', 'home.task.not.desc': '暂无任务说明',
'home.develop.re.cc': '集群配置',
'home.develop.re.ci': 'Flink 集群实例',
'home.develop.re.ds': '数据源',
'home.develop.re.git': 'Git 项目',
'home.develop.re.gv': '全局变量',
'home.job.batch': '批作业',
'home.job.development': '建设情况',
'home.job.failed': '今日失败',
'home.job.failed.handle': '已处理',
'home.job.failed.name': '任务名称',
'home.job.failed.rank': '排名',
'home.job.failed.time': '已异常时间',
'home.job.failed.unhandle': '当前未处理失败',
'home.job.finished': '今日完成',
'home.job.instance': '任务实例',
'home.job.metrics': ' 作业监控',
'home.job.online': '今日上线',
'home.job.onlineRate': '作业上线率',
'home.job.recovery': '今日恢复',
'home.job.recovery.rate': '恢复占比',
'home.job.running': '当前运行',
'home.job.running.dayonday': '日环比',
'home.job.running.status': '当前作业运行状态',
'home.job.stream': '流作业', 'home.job.stream': '流作业',
'home.server.load': '服务器负载', 'home.job.batch': '批作业',
'home.server.load.bad': '较差',
'home.server.load.excellent': '优秀',
'home.server.load.good': '良好',
/** /**
* *
* layouts * layouts
......
...@@ -79,6 +79,7 @@ export const matchLanguage = (language = DIALECT.FLINK_SQL) => { ...@@ -79,6 +79,7 @@ export const matchLanguage = (language = DIALECT.FLINK_SQL) => {
// //
export const getTabIcon = (type: string, size?: number) => { export const getTabIcon = (type: string, size?: number) => {
if (!type) { if (!type) {
console.log('type is null');
return <FileIcon />; return <FileIcon />;
} }
......
...@@ -42,7 +42,7 @@ const AlertHistoryList = (props: JobProps) => { ...@@ -42,7 +42,7 @@ const AlertHistoryList = (props: JobProps) => {
const getAlertHistory = () => { const getAlertHistory = () => {
setAlertHistory((prevState) => ({ ...prevState, loading: true })); setAlertHistory((prevState) => ({ ...prevState, loading: true }));
queryDataByParams(API_CONSTANTS.ALERT_HISTORY_LIST, { queryDataByParams(API_CONSTANTS.ALERT_HISTORY_LIST, {
jobInstanceId: jobDetail.instance.id jobInstanceId: jobDetail?.instance?.id
}).then((res) => { }).then((res) => {
setAlertHistory((prevState) => ({ ...prevState, alertHistory: res as AlertHistory[] })); setAlertHistory((prevState) => ({ ...prevState, alertHistory: res as AlertHistory[] }));
}); });
......
...@@ -55,7 +55,7 @@ const StatisticsCard = (props: StatisticsCardParams) => { ...@@ -55,7 +55,7 @@ const StatisticsCard = (props: StatisticsCardParams) => {
<Space size={20}> <Space size={20}>
{icon} {icon}
<Space direction='vertical'> <Space direction='vertical'>
<Text>{title}</Text> <Text ellipsis={true}>{title}</Text>
<Text style={{ fontSize: 30 }}>{value}</Text> <Text style={{ fontSize: 30 }}>{value}</Text>
</Space> </Space>
{extra} {extra}
......
/*
*
* 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* 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.
*
*/
import { WEEK_LIST } from '@/pages/Home/constants';
import { G2, Heatmap, HeatmapConfig } from '@ant-design/plots';
import { useEffect, useState } from 'react';
const DevHeatmap = () => {
const [data, setData] = useState([]);
useEffect(() => {
asyncFetch();
}, []);
const asyncFetch = () => {
fetch('https://gw.alipayobjects.com/os/antvdemo/assets/data/github-commit.json')
.then((response) => response.json())
.then((json) => setData(json))
.catch((error) => {
console.log('fetch data failed', error);
});
};
G2.registerShape('polygon', 'boundary-polygon', {
draw(cfg, container) {
const group = container.addGroup();
const attrs = {
stroke: '#fff',
lineWidth: 1,
fill: cfg.color,
paht: []
};
const points = cfg.points;
const path = [
['M', points[0].x, points[0].y],
['L', points[1].x, points[1].y],
['L', points[2].x, points[2].y],
['L', points[3].x, points[3].y],
['Z']
]; // @ts-ignore
attrs.path = this.parsePath(path);
group.addShape('path', {
attrs
});
if (cfg.data.lastWeek) {
const linePath = [
['M', points[2].x, points[2].y],
['L', points[3].x, points[3].y]
]; // 最后一周的多边形添加右侧边框
group.addShape('path', {
attrs: {
path: this.parsePath(linePath),
lineWidth: 4,
stroke: '#404040'
}
});
if (cfg.data.lastDay) {
group.addShape('path', {
attrs: {
path: this.parsePath([
['M', points[1].x, points[1].y],
['L', points[2].x, points[2].y]
]),
lineWidth: 4,
stroke: '#404040'
}
});
}
}
return group;
}
});
const config: HeatmapConfig = {
data,
height: 200,
autoFit: false,
xField: 'week',
yField: 'day',
colorField: 'commits',
reflect: 'y',
shape: 'boundary-polygon',
meta: {
day: {
type: 'cat',
values: WEEK_LIST
},
week: {
type: 'cat'
},
commits: {
sync: true
},
date: {
type: 'cat'
}
},
yAxis: {
grid: null
},
tooltip: {
title: 'date',
showMarkers: false
},
interactions: [
{
type: 'element-active'
}
],
xAxis: {
position: 'top',
tickLine: null,
line: null,
label: {
offset: 12,
style: {
fontSize: 12,
fill: '#666',
textBaseline: 'top'
},
formatter: (val) => {
if (val === '2') {
return 'MAY';
} else if (val === '6') {
return 'JUN';
} else if (val === '10') {
return 'JUL';
} else if (val === '15') {
return 'AUG';
} else if (val === '19') {
return 'SEP';
} else if (val === '24') {
return 'OCT';
}
return '';
}
}
}
};
return <Heatmap {...config} />;
};
export default DevHeatmap;
/*
*
* 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* 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.
*
*/
import CountFormatter from '@/components/CountFormatter';
import {
AlertGroupIcon,
AlertInstanceIcon,
ClusterConfigIcon,
ClusterInstanceIcon,
DatabaseIcon,
GitIcon,
GlobalVarIcon
} from '@/components/Icons/HomeIcon';
import { imgStyle } from '@/pages/Home/constants';
import { queryDataByParams } from '@/services/BusinessCrud';
import { API_CONSTANTS } from '@/services/endpoints';
import { ResourceOverView } from '@/types/Home/data';
import { l } from '@/utils/intl';
import { StatisticCard } from '@ant-design/pro-components';
import RcResizeObserver from 'rc-resize-observer';
import { useEffect, useState } from 'react';
const ResourceView = () => {
const [responsive, setResponsive] = useState(false);
const [data, setData] = useState<ResourceOverView>();
useEffect(() => {
queryDataByParams(API_CONSTANTS.GET_RESOURCE_OVERVIEW).then((res) =>
setData(res as ResourceOverView)
);
}, []);
return (
<RcResizeObserver
key='resize-observer'
onResize={(offset) => {
setResponsive(offset.width < 296);
}}
>
<StatisticCard.Group direction={responsive ? 'column' : 'row'}>
<StatisticCard
statistic={{
title: l('home.develop.re.ci'),
value: data?.flinkClusterCount || 0,
icon: <ClusterInstanceIcon style={imgStyle} />,
formatter: (value) => <CountFormatter value={Number(value)} />
}}
/>
<StatisticCard
statistic={{
title: l('home.develop.re.cc'),
value: data?.flinkConfigCount || 0,
icon: <ClusterConfigIcon style={imgStyle} />,
formatter: (value) => <CountFormatter value={Number(value)} />
}}
/>
</StatisticCard.Group>
<StatisticCard.Group direction={responsive ? 'column' : 'row'}>
<StatisticCard
statistic={{
title: l('home.develop.re.ds'),
value: data?.dbSourceCount || 0,
icon: <DatabaseIcon style={imgStyle} />,
formatter: (value) => <CountFormatter value={Number(value)} />
}}
/>
<StatisticCard
statistic={{
title: l('home.develop.re.gv'),
value: data?.globalVarCount || 0,
icon: <GlobalVarIcon style={imgStyle} />,
formatter: (value) => <CountFormatter value={Number(value)} />
}}
/>
</StatisticCard.Group>
<StatisticCard.Group direction={responsive ? 'column' : 'row'}>
<StatisticCard
statistic={{
title: l('home.develop.re.ai'),
value: data?.alertInstanceCount || 0,
icon: <AlertInstanceIcon style={imgStyle} />,
formatter: (value) => <CountFormatter value={Number(value)} />
}}
/>
<StatisticCard
statistic={{
title: l('home.develop.re.ag'),
value: data?.alertGroupCount || 0,
icon: <AlertGroupIcon style={imgStyle} />,
formatter: (value) => <CountFormatter value={Number(value)} />
}}
/>
</StatisticCard.Group>
<StatisticCard.Group direction={responsive ? 'column' : 'row'}>
<StatisticCard
statistic={{
title: l('home.develop.re.git'),
value: data?.gitProjectCount || 0,
icon: <GitIcon style={imgStyle} />,
formatter: (value) => <CountFormatter value={Number(value)} />
}}
/>
</StatisticCard.Group>
</RcResizeObserver>
);
};
export default ResourceView;
/*
*
* 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* 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.
*
*/
import { queryDataByParams } from '@/services/BusinessCrud';
import { API_CONSTANTS } from '@/services/endpoints';
import { TaskDialectSummary } from '@/types/Home/data';
import { l } from '@/utils/intl';
import { Radar, RadarConfig } from '@ant-design/plots';
import { useEffect, useState } from 'react';
const TaskDialectRadar = () => {
const [data, setData] = useState<TaskDialectSummary[]>([]);
useEffect(() => {
queryDataByParams(API_CONSTANTS.GET_JOB_TYPE_OVERVIEW).then((res) => {
setData(res);
});
}, []);
const config: RadarConfig = {
data: data,
xField: 'jobType',
yField: 'rate',
autoFit: true,
appendPadding: [0, 10, 0, 10],
meta: {
rate: {
alias: l('home.job.onlineRate'),
min: 0,
max: 100,
nice: true,
formatter: (v) => Number(v) + '%'
}
},
yAxis: {
label: false,
grid: {
alternateColor: 'rgba(0, 0, 0, 0.04)'
}
},
// 开启辅助点
point: {
size: 2
},
area: {}
};
return (
<div style={{ height: '35vh' }}>
<Radar {...config} />
</div>
);
};
export default TaskDialectRadar;
/*
*
* 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* 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.
*
*/
import CountFormatter from '@/components/CountFormatter';
import styles from '@/global.less';
import { parseMilliSecondStr } from '@/utils/function';
import { l } from '@/utils/intl';
import { Progress, ProgressConfig } from '@ant-design/plots';
import { ProColumns, ProTable, StatisticCard } from '@ant-design/pro-components';
import { Space } from 'antd';
import React, { useState } from 'react';
const { Statistic } = StatisticCard;
interface DataType {
rank: React.Key;
name: string;
value: number;
key: string;
}
const JobErrorView: React.FC = () => {
const [data, setData] = useState<DataType[]>([
{
rank: 1,
name: '任务1',
value: 10000,
key: '任务1'
},
{
rank: 2,
name: '任务2',
value: 20000,
key: '任务2'
},
{
rank: 3,
name: '任务3',
value: 30000,
key: '任务3'
},
{
rank: 4,
name: '任务4',
value: 40000,
key: '任务4'
},
{
rank: 5,
name: '任务5',
value: 50000,
key: '任务5'
},
{
rank: 6,
name: '任务6',
value: 60000,
key: '任务6'
},
{
rank: 7,
name: '任务7',
value: 70000,
key: '任务7'
},
{
rank: 8,
name: '任务8',
value: 80000,
key: '任务8'
}
]);
const columns: ProColumns<DataType>[] = [
{
title: l('home.job.failed.rank'),
dataIndex: 'rank',
valueType: 'indexBorder'
},
{
title: l('home.job.failed.name'),
dataIndex: 'name'
},
{
title: l('home.job.failed.time'),
dataIndex: 'value',
render: (_: any, record: DataType) => {
return <>{parseMilliSecondStr(record.value)}</>;
}
}
];
const config: ProgressConfig = {
height: 50,
width: 200,
autoFit: false,
percent: 0.7,
color: ['#5B8FF9', '#acaeb0']
};
return (
<>
<StatisticCard
chartPlacement='right'
statistic={{
title: l('home.job.failed.unhandle'),
value: 3,
suffix: l('global.item'),
formatter: (value) => <CountFormatter value={Number(value)} />,
description: (
<Space>
<Statistic title={l('home.job.failed')} value='10 ' suffix={l('global.item')} />
<Statistic title={l('home.job.failed.handle')} value='70%' />
</Space>
)
}}
chart={
<div className={styles['tiny-charts']}>
<Progress {...config} />
</div>
}
/>
<ProTable
columns={columns}
scroll={{ y: 200 }}
dataSource={data}
search={false}
toolBarRender={false}
pagination={false}
size='small'
/>
</>
);
};
export default JobErrorView;
/*
*
* 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* 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.
*
*/
import CountFormatter from '@/components/CountFormatter';
import styles from '@/global.less';
import { l } from '@/utils/intl';
import { TinyColumn, TinyColumnConfig } from '@ant-design/plots';
import { StatisticCard } from '@ant-design/pro-components';
import React from 'react';
const { Statistic } = StatisticCard;
const JobFinishedView: React.FC = () => {
const data = [274, 337, 81, 497, 666, 219, 269];
const config: TinyColumnConfig = {
height: 80,
width: 220,
autoFit: false,
data,
tooltip: {
customContent: function (x: any, data: { data: { y: number } }[]) {
return `NO.${x}: ${data[0]?.data?.y.toFixed(2)}`;
}
}
};
return (
<StatisticCard
chartPlacement='right'
statistic={{
title: l('home.job.finished'),
value: 123,
suffix: l('global.bout'),
formatter: (value) => <CountFormatter value={Number(value)} />,
description: <Statistic title={l('home.job.running.dayonday')} value='3.57 %' trend='up' />
}}
chart={
<div className={styles['tiny-charts']}>
<TinyColumn {...config} />
</div>
}
/>
);
};
export default JobFinishedView;
/*
*
* 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* 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.
*
*/
import CountFormatter from '@/components/CountFormatter';
import styles from '@/global.less';
import { l } from '@/utils/intl';
import { RingProgress, RingProgressConfig } from '@ant-design/plots';
import { StatisticCard } from '@ant-design/pro-components';
import { Space } from 'antd';
import React from 'react';
const { Statistic } = StatisticCard;
const JobRecoveryView: React.FC = () => {
const config: RingProgressConfig = {
height: 80,
width: 80,
autoFit: false,
percent: 0.7,
color: ['#5B8FF9', '#E8EDF3']
};
return (
<StatisticCard
chartPlacement='right'
statistic={{
title: l('home.job.recovery'),
value: 2,
suffix: l('global.item'),
formatter: (value) => <CountFormatter value={Number(value)} />,
description: (
<Space>
<Statistic title={l('home.job.online')} value='5 ' suffix={l('global.item')} />
<Statistic title={l('home.job.recovery.rate')} value='40 %' />
</Space>
)
}}
chart={
<div className={styles['tiny-charts']}>
<RingProgress {...config} />
</div>
}
/>
);
};
export default JobRecoveryView;
/*
*
* 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* 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.
*
*/
import { l } from '@/utils/intl';
import { Gauge, GaugeConfig } from '@ant-design/plots';
const LoadScoreGauge = () => {
const ticks = [0, 1 / 3, 2 / 3, 1];
const color = ['#30BF78', '#FAAD14', '#F4664A'];
const config: GaugeConfig = {
padding: 15,
percent: 0.25,
type: 'meter',
innerRadius: 0.75,
range: {
ticks,
color
},
indicator: {
pointer: {
style: {
stroke: '#D0D0D0'
}
},
pin: {
style: {
stroke: '#D0D0D0'
}
}
},
statistic: {
title: {
formatter: ({ percent }) => {
if (percent < ticks[1]) {
return l('home.server.load.excellent');
}
if (percent < ticks[2]) {
return l('home.server.load.good');
}
return l('home.server.load.bad');
},
style: ({ percent }) => {
return {
fontSize: '24px',
lineHeight: 1,
color: percent < ticks[1] ? color[0] : percent < ticks[2] ? color[1] : color[2]
};
}
}
}
};
return (
<div style={{ height: '35vh' }}>
<Gauge {...config} />
</div>
);
};
export default LoadScoreGauge;
/*
*
* 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* 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.
*
*/
import JobErrorView from '@/pages/Home/JobOverView/JobErrorView';
import JobFinishedView from '@/pages/Home/JobOverView/JobFinishedView';
import JobRecoveryView from '@/pages/Home/JobOverView/JobRecoveryView';
import JobRunView from '@/pages/Home/JobOverView/JobRunView';
import JobStatusPie from '@/pages/Home/JobOverView/JobStatusPie';
import LoadScoreGauge from '@/pages/Home/JobOverView/LoadScoreGauge';
import { l } from '@/utils/intl';
import { ProCard } from '@ant-design/pro-components';
import { Badge } from 'antd';
import RcResizeObserver from 'rc-resize-observer';
import React, { useState } from 'react';
const noPadding = {
paddingInline: '0',
paddingBlock: '0'
};
const JobOverView: React.FC = () => {
const [split, setSplit] = useState<'vertical' | 'horizontal' | undefined>('vertical');
return (
<RcResizeObserver.Collection>
<RcResizeObserver
key='resize-observer'
onResize={(offset) => {
setSplit(offset.width < 596 ? 'horizontal' : 'vertical');
}}
>
<ProCard
boxShadow={true}
style={{ height: '100%' }}
title={
<>
<Badge status='processing' />
{l('home.job.metrics')}
</>
}
headerBordered
bordered
size='small'
split={split}
bodyStyle={noPadding}
>
<ProCard split={split} bodyStyle={noPadding}>
<ProCard split='horizontal'>
<ProCard bodyStyle={{ padding: '0 12px' }}>
<JobRunView />
</ProCard>
<ProCard bodyStyle={{ padding: '0 12px' }}>
<JobFinishedView />
</ProCard>
<ProCard bodyStyle={{ padding: '0 12px' }}>
<JobRecoveryView />
</ProCard>
</ProCard>
<ProCard title={l('home.job.running.status')} bodyStyle={noPadding}>
<JobStatusPie />
</ProCard>
</ProCard>
<ProCard split={split} bodyStyle={noPadding}>
<ProCard title={l('home.server.load')} bodyStyle={noPadding}>
<LoadScoreGauge />
</ProCard>
<ProCard split='horizontal' bodyStyle={noPadding}>
<JobErrorView />
</ProCard>
</ProCard>
</ProCard>
</RcResizeObserver>
</RcResizeObserver.Collection>
);
};
export default JobOverView;
...@@ -19,26 +19,24 @@ ...@@ -19,26 +19,24 @@
import CountFormatter from '@/components/CountFormatter'; import CountFormatter from '@/components/CountFormatter';
import { BatchJobIcon, StreamingJobIcon } from '@/components/Icons/HomeIcon'; import { BatchJobIcon, StreamingJobIcon } from '@/components/Icons/HomeIcon';
import { imgStyle } from '@/pages/Home/constants';
import { queryDataByParams } from '@/services/BusinessCrud'; import { queryDataByParams } from '@/services/BusinessCrud';
import { API_CONSTANTS } from '@/services/endpoints'; import { API_CONSTANTS } from '@/services/endpoints';
import { BatchStreamingOverView } from '@/types/Home/data'; import { BatchStreamingOverView } from '@/types/Home/data';
import { l } from '@/utils/intl'; import { l } from '@/utils/intl';
import { ProCard, StatisticCard } from '@ant-design/pro-components'; import { ProCard, StatisticCard } from '@ant-design/pro-components';
import React, { useEffect, useState } from 'react'; import React, { useEffect, useState } from 'react';
import useHookRequest from '@/hooks/useHookRequest';
import { getData } from '@/services/api';
export const BatchStreamProportion: React.FC = () => { export const BatchStreamProportion: React.FC = () => {
const [data, setData] = useState<BatchStreamingOverView>({ const { loading, data } = useHookRequest<any, any>(getData, {
batchJobCount: 0, defaultParams: [API_CONSTANTS.GET_JOB_MODEL_OVERVIEW]
streamingJobCount: 0
}); });
const imgStyle = {
useEffect(() => { display: 'block',
queryDataByParams(API_CONSTANTS.GET_JOB_MODEL_OVERVIEW).then((res) => { width: 40,
setData(res); height: 40
}); };
}, []);
return ( return (
<ProCard split={'vertical'} size={'small'}> <ProCard split={'vertical'} size={'small'}>
<StatisticCard.Group bodyStyle={{ alignContent: 'center' }}> <StatisticCard.Group bodyStyle={{ alignContent: 'center' }}>
......
...@@ -17,48 +17,62 @@ ...@@ -17,48 +17,62 @@
* *
*/ */
import CountFormatter from '@/components/CountFormatter'; import { Button, Card, Space, Typography } from 'antd';
import styles from '@/global.less'; import {
import { l } from '@/utils/intl'; AlertInstanceIcon,
import { TinyArea, TinyAreaConfig } from '@ant-design/plots'; ClusterConfigIcon,
import { StatisticCard } from '@ant-design/pro-components'; ClusterInstanceIcon,
DatabaseIcon
} from '@/components/Icons/HomeIcon';
import React from 'react'; import React from 'react';
import { AllJobIcons } from '@/components/Icons/DevopsIcons';
import { l } from '@/utils/intl';
const { Statistic } = StatisticCard; const FastLink = () => {
const imgStyle = {
display: 'block',
width: 20,
height: 20
};
const JobRunView: React.FC = () => { const links = [
const data = [ {
264, 417, 438, 887, 309, 397, 550, 575, 563, 430, 525, 592, 492, 467, 513, 546, 983, 340, 539, title: l('menu.datastudio'),
243, 226, 192 href: '',
]; icon: <ClusterInstanceIcon style={imgStyle} />
const config: TinyAreaConfig = { },
height: 80, {
width: 220, title: l('menu.registration.alert.instance'),
autoFit: false, href: '',
data, icon: <AlertInstanceIcon style={imgStyle} />
smooth: true, },
areaStyle: { {
fill: '#d6e3fd' title: l('menu.registration.datasource'),
href: '',
icon: <DatabaseIcon style={imgStyle} />
},
{
title: l('menu.registration.cluster.cluster-config'),
href: '',
icon: <ClusterInstanceIcon style={imgStyle} />
},
{
title: l('menu.registration.resource'),
href: '',
icon: <ClusterConfigIcon style={imgStyle} />
} }
}; ];
return ( return (
<StatisticCard <Space size={[12, 8]} wrap>
chartPlacement='right' {links.map((link) => {
statistic={{ return (
title: l('home.job.running'), <Button key={link.title} type='text' ghost size={'large'} icon={link.icon}>
value: 20, {link.title}
suffix: l('global.item'), </Button>
formatter: (value) => <CountFormatter value={Number(value)} />, );
description: <Statistic title='已守护' value='520 天' /> })}
}} </Space>
chart={
<div className={styles['tiny-charts']}>
<TinyArea {...config} />
</div>
}
/>
); );
}; };
export default FastLink;
export default JobRunView;
...@@ -17,61 +17,74 @@ ...@@ -17,61 +17,74 @@
* *
*/ */
import BatchStreamProportion from '@/pages/Home/DevOverView/BatchStreamProportion'; import { Card, Space, Typography } from 'antd';
import DevHeatmap from '@/pages/Home/DevOverView/DevHeatmap'; import useHookRequest from '@/hooks/useHookRequest';
import ResourceView from '@/pages/Home/DevOverView/ResourceView'; import { getData } from '@/services/api';
import TaskDialectRadar from '@/pages/Home/DevOverView/TaskDialectRadar'; import { API_CONSTANTS } from '@/services/endpoints';
import { l } from '@/utils/intl'; import { TaskInfo } from '@/types/Studio/data';
import { getTabIcon } from '@/pages/DataStudio/MiddleContainer/function';
import { ProCard } from '@ant-design/pro-components'; import { ProCard } from '@ant-design/pro-components';
import { Badge } from 'antd'; import JobLifeCycleTag from '@/components/JobTags/JobLifeCycleTag';
import React from 'react'; import StatusTag from '@/components/JobTags/StatusTag';
import EllipsisMiddle from '@/components/Typography/EllipsisMiddle';
import { l } from '@/utils/intl';
const noPadding = { const MyWorker = () => {
paddingInline: '0', const { loading, data } = useHookRequest<any, any>(getData, {
paddingBlock: '0', defaultParams: [API_CONSTANTS.MY_TASK]
height: '100%' });
};
const DevOverView: React.FC = () => { const renderTitle = (item: TaskInfo) => {
return ( return (
<ProCard <Space>
style={{ height: '100%' }} {getTabIcon(item.dialect, 20)}
title={ <EllipsisMiddle copyable={false} maxCount={15}>
<> {item.name}
<Badge status='processing' /> </EllipsisMiddle>
{l('home.develop')} </Space>
</> );
} };
headerBordered
bordered return (
size='small' <Card
split={'vertical'} style={{
bodyStyle={noPadding} marginBottom: 24
}}
title={l('home.mywork')}
bordered={false}
extra={<a href='/'>{l('home.allwork')}</a>}
loading={loading}
bodyStyle={{
padding: 0
}}
>
<Card
style={{
height: '30vh',
overflowY: 'auto'
}}
> >
<ProCard split='vertical' bodyStyle={noPadding} style={{ height: '100%' }}> {data?.map((item: TaskInfo) => (
<Card.Grid key={item.id} style={{ padding: 5 }}>
<ProCard <ProCard
title={l('home.job.development')} bordered={false}
split='horizontal' title={renderTitle(item)}
colSpan={'40%'} extra={
bodyStyle={noPadding} <Space>
<JobLifeCycleTag animation={false} bordered={false} status={item.step} />
</Space>
}
> >
<ProCard> <div style={{ marginBottom: 10 }}>{item.note ?? l('home.task.not.desc')}</div>
<BatchStreamProportion /> <Space style={{ fontSize: 10 }}>
</ProCard> <Typography.Text type='secondary'>{item.updateTime.toString()}</Typography.Text>
<ProCard> <StatusTag animation={false} bordered={false} status={item.status} />
<DevHeatmap /> </Space>
</ProCard>
</ProCard>
<ProCard title={l('home.job.onlineRate')} colSpan={'30%'} bodyStyle={noPadding}>
<TaskDialectRadar />
</ProCard>
<ProCard title={l('home.develop.re')} bodyStyle={noPadding}>
<ResourceView />
</ProCard>
</ProCard>
</ProCard> </ProCard>
</Card.Grid>
))}
</Card>
</Card>
); );
}; };
export default MyWorker;
export default DevOverView;
/*
*
* 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* 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.
*
*/
import useHookRequest from '@/hooks/useHookRequest';
import { getData } from '@/services/api';
import { API_CONSTANTS } from '@/services/endpoints';
import { Card, Col, Descriptions, Divider, Progress, ProgressProps, Row, Space } from 'antd';
import { DescriptionsItemType } from 'antd/es/descriptions';
import React from 'react';
import { Bytes2Mb } from '@/utils/function';
import { ProgressType } from 'antd/es/progress/progress';
const OSMetrics = () => {
const { loading, data } = useHookRequest<any, any>(getData, {
defaultParams: [API_CONSTANTS.SYSTEM_JVM_INFO]
});
const cpu = data?.cpu;
const mem = data?.mem;
const jvm = data?.jvm;
const systemInfo = data?.systemInfo;
const renderProgress = (max: number, free: number, unit: string, type: ProgressType = 'line') => {
max = Math.floor(max);
free = Math.floor(free);
const used = Math.floor(max - free);
const precent = (used / max) * 100;
const twoColors: ProgressProps['strokeColor'] = {
'0%': '#d9d9d9',
'100%': '#d9d9d9'
};
return (
<Progress
percent={precent}
size={type === 'dashboard' ? 100 : [200, 15]}
percentPosition={{ align: 'center', type: 'inner' }}
format={() => `${used}${unit}`}
strokeColor={twoColors}
type={type}
/>
);
};
const items: DescriptionsItemType[] = [
{
key: 'osName',
label: 'Os Name',
children: systemInfo?.osName
},
{
key: 'osArch',
label: 'Os Arch',
children: systemInfo?.osArch
},
{
key: 'cpuNum',
label: 'Cpu Number',
children: cpu?.cpuNum
},
{
key: 'jvmVersion',
label: 'Jvm Version',
children: systemInfo?.jvmVersion
},
{
key: 'jvmName',
label: 'Jvm Name',
children: systemInfo?.jvmName
},
{
key: 'osVersion',
label: 'Os Version',
children: systemInfo?.osVersion
}
];
const metricsItem: DescriptionsItemType[] = [
{
key: 'Heap',
label: 'Heap',
children: renderProgress(Bytes2Mb(jvm?.heapMax), Bytes2Mb(jvm?.heapMax - jvm?.heapUsed), 'MB')
},
{
key: 'Jvm',
label: 'Jvm',
children: renderProgress(Bytes2Mb(jvm?.total), Bytes2Mb(jvm?.free), 'MB')
},
{
key: 'Mem',
label: 'Mem',
children: renderProgress(Bytes2Mb(mem?.total), Bytes2Mb(mem?.free), 'MB')
},
{
key: 'nonHeap',
label: 'nonHeap',
children: renderProgress(
Bytes2Mb(jvm?.nonHeapMax),
Bytes2Mb(jvm?.nonHeapMax - jvm?.nonHeapUsed),
'MB'
)
}
];
return (
<Card
// size={"small"}
style={{
marginBottom: 24
}}
bordered={false}
title={systemInfo?.computerName}
loading={loading}
>
<Row>
<Col span={12}>
<Descriptions layout={'vertical'} items={items} column={2} />
</Col>
<Divider style={{ height: '100%' }} type={'vertical'} />
<Col span={10}>
<Descriptions layout={'horizontal'} items={metricsItem} column={1} />
<Space>
<Space>Cpu:{renderProgress(100, data?.cpu?.free, '%', 'dashboard')}</Space>
<Space>
Mem:
{renderProgress(
Bytes2Mb(mem?.total) / 1024,
Bytes2Mb(mem?.free) / 1024,
'GB',
'dashboard'
)}
</Space>
</Space>
{/*<Space>jvmCpu:{renderProgress(100, (1-jvm?.cpuUsed)*100, "%")}</Space>*/}
</Col>
</Row>
</Card>
);
};
export default OSMetrics;
...@@ -17,90 +17,83 @@ ...@@ -17,90 +17,83 @@
* *
*/ */
import { getStatusCount } from '@/pages/Home/service'; import { useModel } from '@@/exports';
import { PieItem, StatusCountOverView } from '@/types/Home/data.d'; import React, { useEffect, useState } from 'react';
import { l } from '@/utils/intl'; import { Avatar, Card, Descriptions, Space, Tag } from 'antd';
import { Pie, PieConfig } from '@ant-design/plots'; import { getCurrentDateStr, getRandomGreeting } from '@/pages/Home/util';
import { useEffect, useState } from 'react'; import { API } from '@/services/data';
import { UserBaseInfo } from '@/types/AuthCenter/data';
const JobStatusPie = () => { const WorkHeader = () => {
const [jobStatusData, setJobStatusData] = useState<PieItem[]>([]); const { initialState, setInitialState } = useModel('@@initialState');
const [jobCount, setJobCount] = useState<number>(0); const [curTime, setCurTime] = useState(getCurrentDateStr());
const [dayTip, setDayTip] = useState('');
const { roleList, tenantList, currentTenant, user } =
initialState?.currentUser as API.CurrentUser;
useEffect(() => { useEffect(() => {
refreshStatusCount(); const loop = setInterval(() => {
let dataPolling = setInterval(refreshStatusCount, 15000); setCurTime(getCurrentDateStr());
}, 1000);
setDayTip(getRandomGreeting(user?.nickname ?? user?.username));
return () => { return () => {
clearInterval(dataPolling); clearInterval(loop);
}; };
}, []); }, []);
const refreshStatusCount = () => { const renderRoleTagList = (items: UserBaseInfo.Role[]) => {
const res = getStatusCount(); return items?.map((item: UserBaseInfo.Role) => {
res.then((result) => { return (
const statusCountData: StatusCountOverView = result.data.instance; <Descriptions.Item key={item.id}>
const newJobStatusData: PieItem[] = []; <Tag color={'purple'} key={item.id}>
for (const item in statusCountData) { {item.roleCode}
if (item === 'all') { </Tag>
setJobCount(statusCountData[item]); </Descriptions.Item>
continue; );
}
if (statusCountData[item] === 0) {
continue;
}
newJobStatusData.push({
type: item,
value: statusCountData[item]
}); });
} };
setJobStatusData(newJobStatusData); const renderTenantTagList = (items: UserBaseInfo.Tenant[]) => {
return items?.map((item: UserBaseInfo.Tenant) => {
return (
<Descriptions.Item key={item.id}>
<Tag color={'orange'} key={item.id}>
{item.tenantCode}
</Tag>
</Descriptions.Item>
);
}); });
}; };
const config: PieConfig = {
appendPadding: 10,
data: jobStatusData,
angleField: 'value',
colorField: 'type',
innerRadius: 0.6,
radius: 0.8,
legend: false,
label: {
type: 'spider',
labelHeight: 40,
content: '{name}\n{value}'
},
interactions: [
{
type: 'element-selected'
},
{
type: 'element-active'
}
],
statistic: {
title: {
style: {
fontSize: '16px'
},
customHtml: () => l('home.job.instance')
},
content: {
style: {
whiteSpace: 'pre-wrap',
overflow: 'hidden',
textOverflow: 'ellipsis',
fontSize: '24px'
},
content: String(jobCount)
}
}
};
return ( return (
<div style={{ height: '35vh' }}> <div style={{ position: 'relative' }}>
<Pie {...config} /> <Card bordered={false}>
<Space
style={{
fontSize: 20,
marginBottom: 20
}}
>
<Avatar size={60} src={user?.avatar} />
{dayTip}
</Space>
<div>
<Tag color='magenta'>{user.worknum}</Tag>
{renderRoleTagList(roleList || [])}
{renderTenantTagList(tenantList || [])}
</div>
</Card>
<div
style={{
position: 'absolute',
top: 20,
right: 20,
fontSize: 18
}}
>
{curTime}
</div>
</div> </div>
); );
}; };
export default JobStatusPie; export default WorkHeader;
...@@ -17,29 +17,103 @@ ...@@ -17,29 +17,103 @@
* *
*/ */
import { Authorized } from '@/hooks/useAccess'; import { Radar } from '@ant-design/plots';
import DevOverView from '@/pages/Home/DevOverView'; import { PageContainer, ProCard } from '@ant-design/pro-components';
import JobOverView from '@/pages/Home/JobOverView'; import { Link, useRequest } from '@umijs/max';
import { PageContainer } from '@ant-design/pro-components'; import { Avatar, Button, Card, Col, List, Row, Space, Statistic, Tag } from 'antd';
import { Col, Row } from 'antd'; import dayjs from 'dayjs';
import relativeTime from 'dayjs/plugin/relativeTime';
import React, { FC } from 'react';
import { useModel } from '@@/exports';
import { getRandomGreeting } from '@/pages/Home/util';
import useHookRequest from '@/hooks/useHookRequest';
import { getData } from '@/services/api';
import { API_CONSTANTS } from '@/services/endpoints';
import { StatusCountOverView } from '@/types/Home/data';
import StatisticsCard from '@/pages/DevOps/JobList/components/Overview/StatisticsCard';
import { l } from '@/utils/intl';
import {
AllJobIcons,
ErrorIcons,
RunningIcons,
UnknownIcons
} from '@/components/Icons/DevopsIcons';
import { ThunderboltTwoTone } from '@ant-design/icons';
import OSMetrics from '@/pages/Home/components/OSMetrics/OSMetrics';
import MyWorker from '@/pages/Home/components/MyWorker/MyWorker';
import FastLink from '@/pages/Home/components/FastLink/FastLink';
import AlertHistoryList from '@/pages/DevOps/JobDetail/AlertHistory/components/AlertHistoryList';
import BatchStreamProportion from '@/pages/Home/components/BatchStreamProportion';
import WorkHeader from '@/pages/Home/components/WorkerHeader/WorkHeader';
export default () => { dayjs.extend(relativeTime);
const Workplace: FC = () => {
const { data } = useHookRequest(getData, { defaultParams: [API_CONSTANTS.GET_STATUS_COUNT] });
const statusCount = data as StatusCountOverView;
const a: any = {};
const ExtraContent: FC<Record<string, any>> = () => {
return ( return (
<PageContainer title={false} style={{ height: 'calc(100% - 300px)' }}> <ProCard layout='center' ghost>
<Authorized path='/home/jobOverView'> <StatisticsCard
<Row style={{ marginTop: '5px', marginBottom: '10px', height: 'calc(100% - 50%)' }}> title={l('devops.joblist.status.running')}
<Col span={24}> value={statusCount?.running}
<JobOverView /> icon={<RunningIcons size={50} />}
/>
<StatisticsCard
title={l('devops.joblist.status.failed')}
value={statusCount?.failed}
icon={<ErrorIcons size={50} />}
/>
<StatisticsCard
title={l('devops.joblist.status.unknown')}
value={statusCount?.unknown}
icon={<UnknownIcons size={50} />}
/>
</ProCard>
);
};
return (
<PageContainer style={{ padding: 10 }}>
<Row gutter={24}>
<Col xl={16} lg={24} md={24} sm={24} xs={24}>
<WorkHeader />
<br />
<MyWorker />
<Card
bodyStyle={{
padding: 0,
height: 100
}}
bordered={false}
title={l('devops.jobinfo.config.JobAlert')}
>
<AlertHistoryList jobDetail={a} />
</Card>
</Col> </Col>
</Row> <Col xl={8} lg={24} md={24} sm={24} xs={24}>
</Authorized> <Card
<Authorized path='/home/devOverView'> // size={"small"}
<Row style={{ marginTop: '5px', marginBottom: '10px', height: 'calc(100% - 50%)' }}> title={l('home.fast.link')}
<Col span={24}> bordered={false}
<DevOverView /> bodyStyle={{
padding: 0
}}
>
<FastLink />
</Card>
<br />
<BatchStreamProportion />
<br />
<ExtraContent />
<br />
<OSMetrics />
</Col> </Col>
</Row> </Row>
</Authorized>
</PageContainer> </PageContainer>
); );
}; };
export default Workplace;
/*
*
* 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* 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.
*
*/
import { getData } from '@/services/api';
import { API_CONSTANTS } from '@/services/endpoints';
export function getStatusCount() {
return getData(API_CONSTANTS.GET_STATUS_COUNT);
}
/*
*
* 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
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* 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.
*
*/
const greetings = {
morning: [
'早上好,{user}!新的一天,新的代码,新的挑战。',
'早安!{user}!早晨的阳光带来了新的开始,加油!。',
'早上好,{user},程序员!愿你的bug像早晨的雾气一样消散。',
'早安,{user},新的一天,新的创意,期待你的灵感爆发。',
'早上好,{user},早晨的咖啡已经准备好,是时候开始工作了。',
'早安,{user},愿你的早晨像一杯热茶,温暖而舒适。',
'早上好,{user},愿你的代码像早晨的露水一样清新。',
'早安,{user},记得微笑,它会让你的一天更加美好。',
'早上好,{user},保持积极,美好的事情即将发生。',
'早安,{user},愿你的编程之旅充满发现和创新。'
],
forenoon: [
'上午好,{user},愿你的代码像上午的阳光一样明亮。',
'上午好,{user},早上的代码写累了吗?休息一下,再继续加油。',
'上午好,{user},上午的阳光正好,照亮你的工作台。',
'上午好,{user},享受上午的工作,每项任务都值得全力以赴。',
'上午好,{user},愿你的代码像上午的咖啡一样提神。',
'上午好,{user},愿你的代码像上午的天空一样广阔。'
],
noon: [
'中午好,{user},午餐时间,给自己一个休息和充电的机会。',
'中午好,{user},中午的阳光提醒我们,是时候放慢脚步,享受片刻宁静。',
'中午好,{user},中午的短暂休息,可以让你的下午更加精力充沛.',
'中午好,{user},中午的阳光,是一天中温暖的拥抱。',
'中午好,{user},一顿丰盛的午餐,是对自己辛勤工作的最好奖赏。'
],
afternoon: [
'下午好,{user},下午的工作开始了,保持热情和专注。',
'下午好,{user},下午的阳光温柔,适合思考或冥想,找到内心的平静。',
'下午好,{user},下午的微风,带来清新的空气,愿你的心情也如此清新。',
'下午好,{user},忙碌的下午,也别忘了给自己一点甜头哦!(✿✪‿✪。)',
'下午好,{user},下午的微风,愿你的心情像它一样轻松。(✧∀✧)'
],
evening: [
'傍晚好,{user},傍晚好,一天的忙碌结束了,好好放松一下吧!(✿✪‿✪。)',
'傍晚好,{user},傍晚的晚霞,愿你的心情像它一样绚烂。(✧∇✧)',
'傍晚好,{user},享受傍晚的宁静,让一天的忙碌慢慢沉淀。(✧◡◡✧)',
'傍晚好,{user},傍晚的天空,星星开始闪烁,愿你的梦想也随之点亮。(✧✧✧)',
'傍晚好,{user},愿你的代码像傍晚的星光一样璀璨。'
],
lateNight: [
'深夜好,{user},深夜的宁静,愿你有一个平静美好的夜晚。(✿✉✿)',
'深夜好,{user},深夜的星空,为你的思考带来无限灵感。',
'深夜好,{user},深夜的星空,提醒我们宇宙的广阔和思维的可能性。',
'深夜好,{user},深夜的工作,愿你的专注和坚持带来成果。',
'深夜好,{user},愿你的代码像深夜的思考一样深邃。'
]
};
// 获取当前时间并判断时间段
const getTimeSegment = () => {
const now = new Date();
const hour = now.getHours();
if (hour < 6) return 'lateNight'; // 深夜
if (hour < 9) return 'morning'; // 早上
if (hour < 12) return 'forenoon'; // 上午
if (hour < 14) return 'noon'; // 中午
if (hour < 17) return 'afternoon'; // 下午
if (hour < 19) return 'evening'; // 傍晚
return 'lateNight'; // 深夜
};
// 随机选择一条关怀话语
export const getRandomGreeting = (user: string) => {
let greetingsArray: string[];
greetingsArray = greetings[getTimeSegment()];
const randomIndex = Math.floor(Math.random() * greetingsArray.length);
const txt = greetingsArray[randomIndex];
return txt.replace('{user}', user);
};
export const getCurrentDateStr = () => {
const now = new Date();
const year = now.getFullYear();
const month = String(now.getMonth() + 1).padStart(2, '0');
const day = String(now.getDate()).padStart(2, '0');
const hours = String(now.getHours()).padStart(2, '0');
const minutes = String(now.getMinutes()).padStart(2, '0');
const seconds = String(now.getSeconds()).padStart(2, '0');
return `${year}-${month}-${day} ${hours}:${minutes}:${seconds}`;
};
...@@ -25,7 +25,6 @@ import { RunningBtn } from '@/components/CallBackButton/RunningBtn'; ...@@ -25,7 +25,6 @@ import { RunningBtn } from '@/components/CallBackButton/RunningBtn';
import { ClusterConfigIcon } from '@/components/Icons/HomeIcon'; import { ClusterConfigIcon } from '@/components/Icons/HomeIcon';
import { DataAction } from '@/components/StyledComponents'; import { DataAction } from '@/components/StyledComponents';
import { Authorized, HasAuthority } from '@/hooks/useAccess'; import { Authorized, HasAuthority } from '@/hooks/useAccess';
import { imgStyle } from '@/pages/Home/constants';
import ConfigurationModal from '@/pages/RegCenter/Cluster/Configuration/components/ConfigurationModal'; import ConfigurationModal from '@/pages/RegCenter/Cluster/Configuration/components/ConfigurationModal';
import { CLUSTER_TYPE_OPTIONS } from '@/pages/RegCenter/Cluster/constants'; import { CLUSTER_TYPE_OPTIONS } from '@/pages/RegCenter/Cluster/constants';
import { import {
...@@ -257,7 +256,15 @@ export default () => { ...@@ -257,7 +256,15 @@ export default () => {
return { return {
subTitle: renderDataSubTitle(item), subTitle: renderDataSubTitle(item),
actions: <DataAction>{renderDataActionButton(item)}</DataAction>, actions: <DataAction>{renderDataActionButton(item)}</DataAction>,
avatar: <ClusterConfigIcon style={imgStyle} />, avatar: (
<ClusterConfigIcon
style={{
display: 'block',
width: 42,
height: 42
}}
/>
),
content: renderDataContent(item), content: renderDataContent(item),
key: item.id key: item.id
}; };
......
...@@ -183,6 +183,7 @@ export enum API_CONSTANTS { ...@@ -183,6 +183,7 @@ export enum API_CONSTANTS {
SYSTEM_ROOT_LOG = '/api/system/getRootLog', SYSTEM_ROOT_LOG = '/api/system/getRootLog',
SYSTEM_ROOT_LOG_LIST = '/api/system/listLogDir', SYSTEM_ROOT_LOG_LIST = '/api/system/listLogDir',
SYSTEM_ROOT_LOG_READ = '/api/system/readFile', SYSTEM_ROOT_LOG_READ = '/api/system/readFile',
SYSTEM_JVM_INFO = '/api/system/getSysInfo',
// ------------------------------------ system process ------------------------------------ // ------------------------------------ system process ------------------------------------
PROCESS_LIST = '/api/process/listAllProcess', PROCESS_LIST = '/api/process/listAllProcess',
...@@ -266,6 +267,7 @@ export enum API_CONSTANTS { ...@@ -266,6 +267,7 @@ export enum API_CONSTANTS {
// ------------------------------------ task ------------------------------------ // ------------------------------------ task ------------------------------------
TASK = '/api/task', TASK = '/api/task',
MY_TASK = '/api/task/getUserTask',
CANCEL_JOB = '/api/task/cancel', CANCEL_JOB = '/api/task/cancel',
JSON_TO_FLINK_SQL = '/api/tools/jsonToFlinkSql', JSON_TO_FLINK_SQL = '/api/tools/jsonToFlinkSql',
EXPLAIN_SQL = '/api/task/explainSql', EXPLAIN_SQL = '/api/task/explainSql',
......
...@@ -66,6 +66,7 @@ export type TaskInfo = { ...@@ -66,6 +66,7 @@ export type TaskInfo = {
dialect: string; dialect: string;
tenantId: number; tenantId: number;
type: string; type: string;
status: string;
checkPoint: number; checkPoint: number;
savePointStrategy: number; savePointStrategy: number;
savePointPath: string; savePointPath: string;
......
...@@ -469,6 +469,9 @@ export const parseSecondStr = (s_time: number) => { ...@@ -469,6 +469,9 @@ export const parseSecondStr = (s_time: number) => {
} }
return time; return time;
}; };
export function Bytes2Mb(bs: number) {
return bs / 1024 / 1024;
}
export function parseByteStr(limit: number) { export function parseByteStr(limit: number) {
if (limit == null) { if (limit == null) {
......
...@@ -97,7 +97,7 @@ ...@@ -97,7 +97,7 @@
<maven.compiler.target>${target.java.version}</maven.compiler.target> <maven.compiler.target>${target.java.version}</maven.compiler.target>
<maven.resource.version>3.3.1</maven.resource.version> <maven.resource.version>3.3.1</maven.resource.version>
<mockito.version>3.12.4</mockito.version> <mockito.version>3.12.4</mockito.version>
<mybatis-plus-boot-starter.version>3.5.3.1</mybatis-plus-boot-starter.version> <mybatis-plus-boot-starter.version>3.5.7</mybatis-plus-boot-starter.version>
<mysql-connector-java.version>8.0.28</mysql-connector-java.version> <mysql-connector-java.version>8.0.28</mysql-connector-java.version>
<ojdbc8.version>12.2.0.1</ojdbc8.version> <ojdbc8.version>12.2.0.1</ojdbc8.version>
<org.commonmark>0.21.0</org.commonmark> <org.commonmark>0.21.0</org.commonmark>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment