Skip to content

Commit

Permalink
[Optimize][Web]Optimize dinky flink web UI (#3815)
Browse files Browse the repository at this point in the history
Co-authored-by: zackyoungh <[email protected]>
  • Loading branch information
zackyoungh and zackyoungh committed Sep 18, 2024
1 parent 82eb8cf commit 08c2005
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ const DagDataNode = (props: any) => {
const backpressure = data.backpressure;
return (
<Card
style={{ width: '250px', padding: 0, margin: 0, height: 140 }}
style={{ width: 'inherit', padding: 0, margin: 0, height: 'inherit' }}
bordered={false}
size={'small'}
type={'inner'}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const DagPlanNode = (props: any) => {

return (
<Card
style={{ width: 270, padding: 0, margin: 0, height: 140 }}
style={{ width: "inherit", padding: 0, margin: 0, height: 'inherit' }}
bordered={false}
size={'small'}
type={'inner'}
Expand Down
6 changes: 3 additions & 3 deletions dinky-web/src/components/Flink/FlinkDag/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ const FlinkDag = (props: DagProps) => {

if (maxDepth < maxWidth) {
dir = 'TB';
ranksep = 200;
ranksep = 100;
nodesep = 40;
portConfigs = portConfigTb;
}
Expand Down Expand Up @@ -421,8 +421,8 @@ const FlinkDag = (props: DagProps) => {
key: '1',
label: 'Detail',
children: (
<div style={{ whiteSpace: 'pre' }}>
{currentSelect?.getData().description?.replaceAll('<br/>', '\n')}
<div style={{ whiteSpace: 'pre-wrap' }} >
{currentSelect?.getData().description?.replace(/<br\/>/g, '\n')}
</div>
)
},
Expand Down
4 changes: 2 additions & 2 deletions dinky-web/src/pages/DevOps/JobDetail/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import JobMetrics from '@/pages/DevOps/JobDetail/JobMetrics';
import JobOperator from '@/pages/DevOps/JobDetail/JobOperator/JobOperator';
import JobConfigTab from '@/pages/DevOps/JobDetail/JobOverview/JobOverview';
import JobVersionTab from '@/pages/DevOps/JobDetail/JobVersion/JobVersionTab';
import { refeshJobInstance } from '@/pages/DevOps/JobDetail/srvice';
import { refreshJobInstance } from '@/pages/DevOps/JobDetail/srvice';
import { Jobs } from '@/types/DevOps/data';
import { l } from '@/utils/intl';
import { history } from '@@/core/history';
Expand Down Expand Up @@ -64,7 +64,7 @@ const JobDetail = (props: any) => {
history.push(`/devops/`);
}

const { data, run } = useHookRequest(refeshJobInstance, {
const { data, run } = useHookRequest(refreshJobInstance, {
defaultParams: [id, false],
pollingInterval: 3000
});
Expand Down
2 changes: 1 addition & 1 deletion dinky-web/src/pages/DevOps/JobDetail/srvice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import { JobMetricsItem, MetricsTimeFilter } from '@/pages/DevOps/JobDetail/data
import { getData, putDataAsArray } from '@/services/api';
import { API_CONSTANTS } from '@/services/endpoints';

export const refeshJobInstance = (id: string, isForce?: boolean) => {
export const refreshJobInstance = (id: string, isForce?: boolean) => {
return getData(API_CONSTANTS.REFRESH_JOB_DETAIL, { id, isForce });
};

Expand Down

0 comments on commit 08c2005

Please sign in to comment.