From 1d34d4c093114e171d960c3f805b93ea17aaab4c Mon Sep 17 00:00:00 2001 From: Zzm0809 Date: Sun, 24 Dec 2023 14:18:56 +0000 Subject: [PATCH] Spotless Apply --- dinky-web/src/pages/DataStudio/function.ts | 21 +++++++++++---------- dinky-web/src/pages/DataStudio/index.tsx | 6 +++--- dinky-web/src/pages/DataStudio/model.ts | 15 ++++++++------- 3 files changed, 22 insertions(+), 20 deletions(-) diff --git a/dinky-web/src/pages/DataStudio/function.ts b/dinky-web/src/pages/DataStudio/function.ts index d940f9c782..78758e388a 100644 --- a/dinky-web/src/pages/DataStudio/function.ts +++ b/dinky-web/src/pages/DataStudio/function.ts @@ -23,7 +23,8 @@ import { FooterType, JobRunningMsgType, MetadataTabsItemType, - STUDIO_MODEL, STUDIO_MODEL_ASYNC, + STUDIO_MODEL, + STUDIO_MODEL_ASYNC, TabsItemType, TabsPageType, TaskDataType @@ -86,27 +87,27 @@ export const mapDispatchToProps = (dispatch: Dispatch) => ({ }), queryDatabaseList: () => dispatch({ - type: STUDIO_MODEL_ASYNC.queryDatabaseList, + type: STUDIO_MODEL_ASYNC.queryDatabaseList }), queryTaskData: () => { dispatch({ - type: STUDIO_MODEL_ASYNC.queryTaskData, + type: STUDIO_MODEL_ASYNC.queryTaskData }); }, querySessionData: () => { - dispatch({ - type: STUDIO_MODEL_ASYNC.querySessionData, - }); + dispatch({ + type: STUDIO_MODEL_ASYNC.querySessionData + }); }, queryEnv: () => { dispatch({ - type: STUDIO_MODEL_ASYNC.queryEnv, + type: STUDIO_MODEL_ASYNC.queryEnv }); }, queryClusterConfigurationData: () => { - dispatch({ - type: STUDIO_MODEL_ASYNC.queryClusterConfigurationData, - }); + dispatch({ + type: STUDIO_MODEL_ASYNC.queryClusterConfigurationData + }); }, saveProject: (data: any[]) => diff --git a/dinky-web/src/pages/DataStudio/index.tsx b/dinky-web/src/pages/DataStudio/index.tsx index e7dae906f3..385489a48c 100644 --- a/dinky-web/src/pages/DataStudio/index.tsx +++ b/dinky-web/src/pages/DataStudio/index.tsx @@ -38,17 +38,17 @@ import { import RightContainer from '@/pages/DataStudio/RightContainer'; import { LeftBottomMoreTabs, LeftBottomSide, LeftSide, RightSide } from '@/pages/DataStudio/route'; import { PageContainer } from '@ant-design/pro-layout'; +import { connect, getDvaApp } from '@umijs/max'; import { useAsyncEffect } from 'ahooks'; import { Layout, Menu, theme } from 'antd'; import React, { useEffect, useState } from 'react'; import { PersistGate } from 'redux-persist/integration/react'; -import {connect, getDvaApp} from "@umijs/max"; const { Sider, Content } = Layout; const { useToken } = theme; -const DataStudio: React.FC = (props: any ) => { +const DataStudio: React.FC = (props: any) => { const { bottomContainer, leftContainer, @@ -66,7 +66,7 @@ const DataStudio: React.FC = (props: any ) => { queryClusterConfigurationData, activeBreadcrumbTitle, updateSelectBottomSubKey, - tabs: { panes, activeKey }, + tabs: { panes, activeKey } } = props; const isProject = isProjectTabs(panes, activeKey); const { token } = useToken(); diff --git a/dinky-web/src/pages/DataStudio/model.ts b/dinky-web/src/pages/DataStudio/model.ts index 5bf54238c3..7b133f64b8 100644 --- a/dinky-web/src/pages/DataStudio/model.ts +++ b/dinky-web/src/pages/DataStudio/model.ts @@ -18,11 +18,13 @@ */ import { getFooterValue, isDataStudioTabsItemType } from '@/pages/DataStudio/function'; +import { getDataSourceList } from '@/pages/DataStudio/LeftContainer/DataSource/service'; import { getTaskData } from '@/pages/DataStudio/LeftContainer/Project/service'; import { getClusterConfigurationData, getEnvData, - getFlinkConfigs, getSessionData, + getFlinkConfigs, + getSessionData, querySuggessionData } from '@/pages/DataStudio/RightContainer/JobConfig/service'; import { QueryParams } from '@/pages/RegCenter/DataSource/components/DataSourceDetail/RightTagsRouter/data'; @@ -36,7 +38,6 @@ import { DefaultOptionType } from 'antd/es/select'; import { editor } from 'monaco-editor'; import React from 'react'; import ICodeEditor = editor.ICodeEditor; -import {getDataSourceList} from "@/pages/DataStudio/LeftContainer/DataSource/service"; /** * 初始化布局宽高度 @@ -307,7 +308,7 @@ export type ModelType = { queryFlinkConfigOptions: Effect; querySuggestions: Effect; queryEnv: Effect; - queryDatabaseList: Effect + queryDatabaseList: Effect; queryTaskData: Effect; querySessionData: Effect; queryClusterConfigurationData: Effect; @@ -436,9 +437,9 @@ const Model: ModelType = { *queryDatabaseList({ payload }, { call, put }) { const response: DataSources.DataSource[] = yield call(getDataSourceList, payload); yield put({ - type:'saveDataBase', - payload:response - }) + type: 'saveDataBase', + payload: response + }); }, *queryTaskData({ payload }, { call, put }) { const response: TaskType = yield call(getTaskData, payload); @@ -457,7 +458,7 @@ const Model: ModelType = { *queryEnv({ payload }, { call, put }) { const response: EnvType[] = yield call(getEnvData, payload); yield put({ - type:'saveEnv', + type: 'saveEnv', payload: response }); },