Skip to content

Commit

Permalink
Spotless Apply
Browse files Browse the repository at this point in the history
  • Loading branch information
Zzm0809 authored and github-actions[bot] committed Dec 21, 2023
1 parent e3c2433 commit e50a3b5
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 12 deletions.
6 changes: 5 additions & 1 deletion dinky-web/src/components/Flink/FlinkDag/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,11 @@ const FlinkDag = (props: DagProps) => {
{
key: '1',
label: 'Detail',
children: <div style={{whiteSpace:"pre"}}>{(currentSelect?.getData().description)?.replaceAll("<br/>","\n")}</div>
children: (
<div style={{ whiteSpace: 'pre' }}>
{currentSelect?.getData().description?.replaceAll('<br/>', '\n')}
</div>
)
},
{
key: '2',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
import { TabsPageType, TaskDataType } from '@/pages/DataStudio/model';
import { JOB_LIFE_CYCLE, JOB_STATUS } from '@/pages/DevOps/constants';
import { DIALECT } from '@/services/constants';
import { EnvironmentOutlined } from '@ant-design/icons';

/**
* @description: 生成面包屑
Expand Down
17 changes: 11 additions & 6 deletions dinky-web/src/pages/DataStudio/HeaderContainer/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,10 @@ import {
import { JOB_LIFE_CYCLE, JOB_STATUS } from '@/pages/DevOps/constants';
import { SysConfigStateType } from '@/pages/SettingCenter/GlobalSetting/model';
import { SettingConfigKeyEnum } from '@/pages/SettingCenter/GlobalSetting/SettingOverView/constants';
import { queryList } from '@/services/api';
import { handleOption, handlePutDataJson, queryDataByParams } from '@/services/BusinessCrud';
import { DIALECT } from '@/services/constants';
import { API_CONSTANTS } from '@/services/endpoints';
import { DolphinTaskDefinition, DolphinTaskMinInfo } from '@/types/Studio/data.d';
import { l } from '@/utils/intl';
import { SuccessMessageAsync } from '@/utils/messages';
Expand All @@ -71,8 +73,6 @@ import { connect } from '@umijs/max';
import { Breadcrumb, Descriptions, Modal, Space } from 'antd';
import { ButtonProps } from 'antd/es/button/button';
import React, { memo, useEffect, useState } from 'react';
import {queryList} from "@/services/api";
import {API_CONSTANTS} from "@/services/endpoints";

const headerStyle: React.CSSProperties = {
display: 'inline-flex',
Expand Down Expand Up @@ -364,10 +364,10 @@ const HeaderContainer = (props: connect) => {
props: {
onClick: async () => {
const result = await queryList(API_CONSTANTS.GET_JOB_LIST, {
filter: {taskId: [currentData?.id]},
currentPage: 1,
filter: { taskId: [currentData?.id] },
currentPage: 1
});
window.open(`/#/devops/job-detail?id=${result.data[0].id}`)
window.open(`/#/devops/job-detail?id=${result.data[0].id}`);
},
target: '_blank'
}
Expand Down Expand Up @@ -446,7 +446,12 @@ const HeaderContainer = (props: connect) => {
return (
<FlexCenterDiv style={{ width: (size.width - 2 * VIEW.paddingInline) / 2 }}>
{/*<Breadcrumb itemRender={(item, params, items, paths)=><span>{item.title}</span>} items={buildBreadcrumbItems(activeBreadcrumbTitle)} />*/}
<EnvironmentOutlined style={{paddingRight:20}}/><Breadcrumb style={{fontSize:12,lineHeight:VIEW.headerHeight+"px"}} separator={'/'} items={buildBreadcrumbItems(activeBreadcrumbTitle)} />
<EnvironmentOutlined style={{ paddingRight: 20 }} />
<Breadcrumb
style={{ fontSize: 12, lineHeight: VIEW.headerHeight + 'px' }}
separator={'/'}
items={buildBreadcrumbItems(activeBreadcrumbTitle)}
/>
</FlexCenterDiv>
);
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ import {
SteamIcons,
UnknownIcons
} from '@/components/Icons/DevopsIcons';
import useHookRequest from '@/hooks/useHookRequest';
import { DevopContext } from '@/pages/DevOps';
import { JOB_STATUS } from '@/pages/DevOps/constants';
import StatisticsCard from '@/pages/DevOps/JobList/components/Overview/StatisticsCard';
Expand All @@ -37,12 +38,11 @@ import { StatusCountOverView } from '@/types/Home/data';
import { l } from '@/utils/intl';
import { ProCard } from '@ant-design/pro-components';
import { Button, Col, Row, Space } from 'antd';
import { useContext, useEffect, useState } from 'react';
import useHookRequest from "@/hooks/useHookRequest";
import { useContext } from 'react';

const JobOverview = (props: any) => {
const { statusFilter, setStatusFilter } = useContext<any>(DevopContext);
const {data} = useHookRequest(getData,{defaultParams:[API_CONSTANTS.GET_STATUS_COUNT]})
const { data } = useHookRequest(getData, { defaultParams: [API_CONSTANTS.GET_STATUS_COUNT] });
const statusCount = data as StatusCountOverView;

return (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ const FlinkK8s = (props: { type: string; value: any; form: FormInstance<Values>
reader.readAsText(file);
reader.onload = () => {
form.setFieldValue(name, reader.result as string);
onChange(reader.result as string + "\n");
onChange((reader.result as string) + '\n');
};
},
showUploadList: false
Expand Down

0 comments on commit e50a3b5

Please sign in to comment.