From b0a27b155ea44a75ea41946e8d9e2638af53f295 Mon Sep 17 00:00:00 2001 From: Zzm0809 Date: Mon, 18 Dec 2023 14:28:01 +0000 Subject: [PATCH 1/2] Spotless Apply --- .../components/CallBackButton/CircleBtn.tsx | 67 +- .../BottomContainer/TableData/index.tsx | 126 ++-- .../DataStudio/BottomContainer/index.tsx | 582 +++++++++--------- .../LeftContainer/BtnContext/index.tsx | 163 +++-- .../LeftContainer/Catalog/index.tsx | 6 +- .../LeftContainer/DataSource/index.tsx | 4 +- .../LeftContainer/Project/JobTree/index.tsx | 5 +- .../Project/ProjectTitle/index.tsx | 6 +- .../LeftContainer/Project/index.tsx | 3 +- .../pages/DataStudio/LeftContainer/index.tsx | 4 +- dinky-web/src/pages/DataStudio/TabRoute.tsx | 40 +- dinky-web/src/pages/DataStudio/index.tsx | 18 +- dinky-web/src/pages/DataStudio/route.tsx | 428 +++++++------ 13 files changed, 737 insertions(+), 715 deletions(-) diff --git a/dinky-web/src/components/CallBackButton/CircleBtn.tsx b/dinky-web/src/components/CallBackButton/CircleBtn.tsx index 58f3481f31..d81c7c2911 100644 --- a/dinky-web/src/components/CallBackButton/CircleBtn.tsx +++ b/dinky-web/src/components/CallBackButton/CircleBtn.tsx @@ -17,46 +17,51 @@ * */ -import {TabsItemType, TaskDataType} from '@/pages/DataStudio/model'; -import {Button} from 'antd'; +import { TabsItemType, TaskDataType } from '@/pages/DataStudio/model'; +import { Tab } from '@/pages/DataStudio/route'; +import { Button } from 'antd'; import React from 'react'; -import {Tab} from '@/pages/DataStudio/route'; export type CircleButtonProps = { - icon: React.ReactNode; - loading?: boolean; - onClick?: () => void; - title?: string; - key?: string; + icon: React.ReactNode; + loading?: boolean; + onClick?: () => void; + title?: string; + key?: string; }; export type CircleBottomButtonProps = { - icon: React.ReactNode; - loading?: boolean; - onClick?: (tabs: Tab[], key: string, data: TaskDataType | undefined,refresh:any) => Promise; - title?: string; - key?: string; + icon: React.ReactNode; + loading?: boolean; + onClick?: ( + tabs: Tab[], + key: string, + data: TaskDataType | undefined, + refresh: any + ) => Promise; + title?: string; + key?: string; }; export type CircleDataStudioButtonProps = { - icon: React.ReactNode; - loading?: boolean; - onClick?: (panes: TabsItemType[], activeKey: string) => void; - title?: string; - key?: string; - isShow?: boolean; + icon: React.ReactNode; + loading?: boolean; + onClick?: (panes: TabsItemType[], activeKey: string) => void; + title?: string; + key?: string; + isShow?: boolean; }; export const CircleBtn: React.FC = (props) => { - const {onClick, title, icon, loading} = props; + const { onClick, title, icon, loading } = props; - return ( -