Skip to content

Commit

Permalink
refactor project tree layout
Browse files Browse the repository at this point in the history
  • Loading branch information
Zzm0809 committed Oct 10, 2023
1 parent bafa357 commit 158d927
Show file tree
Hide file tree
Showing 13 changed files with 698 additions and 512 deletions.
4 changes: 2 additions & 2 deletions dinky-web/src/components/CallBackButton/CircleBtn.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@
*
*/

import { TabsItemType } from '@/pages/DataStudio/model';
import { Button } from 'antd';
import React from 'react';
import {TabsItemType} from "@/pages/DataStudio/model";

export type CircleButtonProps = {
icon: React.ReactNode;
Expand All @@ -30,7 +30,7 @@ export type CircleButtonProps = {
export type CircleDataStudioButtonProps = {
icon: React.ReactNode;
loading?: boolean;
onClick?: (panes:TabsItemType[],activeKey:string) => void;
onClick?: (panes: TabsItemType[], activeKey: string) => void;
title?: string;
key?: string;
};
Expand Down
16 changes: 13 additions & 3 deletions dinky-web/src/components/FlinkDag/component/DagDataNode.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -98,13 +98,20 @@ const DagDataNode = (props: any) => {
<Text style={{ display: 'inline-flex', alignItems: 'center' }} type='secondary'>
{' '}
{l('devops.baseinfo.busy')}:
{renderRatio((backpressure && backpressure.subtasks)?backpressure.subtasks[0]?.busyRatio:0, false)}
{renderRatio(
backpressure && backpressure.subtasks ? backpressure.subtasks[0]?.busyRatio : 0,
false
)}
</Text>
</Col>
<Col flex='auto'>
<Text type='secondary' ellipsis>
{l('devops.baseinfo.backpressure')}:
<StatusTag status={backpressure?backpressure.status:0} bordered={false} animation={false} />
<StatusTag
status={backpressure ? backpressure.status : 0}
bordered={false}
animation={false}
/>
</Text>
</Col>
</Row>
Expand All @@ -113,7 +120,10 @@ const DagDataNode = (props: any) => {
<Col flex='35%'>
<Text style={{ display: 'inline-flex', alignItems: 'center' }} type='secondary'>
{l('devops.baseinfo.idle')}:
{renderRatio((backpressure && backpressure.subtasks)?backpressure.subtasks[0]?.idleRatio:0, true)}
{renderRatio(
backpressure && backpressure.subtasks ? backpressure.subtasks[0]?.idleRatio : 0,
true
)}
</Text>
</Col>
<Col flex='auto'>
Expand Down
Loading

0 comments on commit 158d927

Please sign in to comment.