Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Optimize][Web]Optimize dinky flink web UI #3815

Merged
merged 7 commits into from
Sep 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading