Skip to content

Commit

Permalink
Spotless Apply
Browse files Browse the repository at this point in the history
  • Loading branch information
zhu-mingye authored and github-actions[bot] committed Nov 2, 2023
1 parent c2db2d2 commit f6c984b
Show file tree
Hide file tree
Showing 5 changed files with 34 additions and 37 deletions.
2 changes: 1 addition & 1 deletion dinky-web/src/components/CallBackButton/CircleBtn.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,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 Down
18 changes: 9 additions & 9 deletions dinky-web/src/components/CustomEditor/CodeShow/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,15 @@
*
*/

import {LogLanguage} from '@/components/CustomEditor/languages/javalog';
import {MonacoEditorOptions} from '@/types/Public/data';
import {convertCodeEditTheme} from '@/utils/function';
import {Editor, useMonaco} from '@monaco-editor/react';
import {editor} from 'monaco-editor';
import {EditorLanguage} from 'monaco-editor/esm/metadata';
import {CSSProperties, useEffect, useState} from 'react';
import {Loading} from "@/pages/Other/Loading";
import EditorFloatBtn from "@/components/CustomEditor/EditorFloatBtn";
import EditorFloatBtn from '@/components/CustomEditor/EditorFloatBtn';
import { LogLanguage } from '@/components/CustomEditor/languages/javalog';
import { Loading } from '@/pages/Other/Loading';
import { MonacoEditorOptions } from '@/types/Public/data';
import { convertCodeEditTheme } from '@/utils/function';
import { Editor, useMonaco } from '@monaco-editor/react';
import { editor } from 'monaco-editor';
import { EditorLanguage } from 'monaco-editor/esm/metadata';
import { CSSProperties, useEffect, useState } from 'react';

// loader.config({monaco});
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,13 @@ import {
TableOutlined
} from '@ant-design/icons';
import { connect } from '@umijs/max';
import {Button, Col, Empty, Modal, Row, Select, Spin, Tabs, Tree} from 'antd';
import { Button, Col, Empty, Modal, Row, Select, Spin, Tabs, Tree } from 'antd';
import { DataNode } from 'antd/es/tree';
import { DefaultOptionType } from 'rc-select/lib/Select';
import React, { useEffect, useState } from 'react';
import { getMSCatalogs, getMSColumns, getMSSchemaInfo } from './service';
import React, {useEffect, useState} from "react";

const {DirectoryTree} = Tree;
const { DirectoryTree } = Tree;

const Catalog: React.FC = (props: connect) => {
const { tabs } = props;
Expand Down Expand Up @@ -77,8 +77,6 @@ const Catalog: React.FC = (props: connect) => {
const [loading, setLoading] = useState<boolean>(false);
const [columnData, setColumnData] = useState([]);



const onRefreshTreeData = (catalogAndDatabase: string) => {
setTreeData([]);
setLoading(true);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ const DocumentForm: React.FC<DocumentFormProps> = (props) => {
*/
const [codeFillValue, setCodeFillValue] = useState<string>(values.fillValue ?? '');


/**
* form
* @constructor
Expand All @@ -84,8 +83,8 @@ const DocumentForm: React.FC<DocumentFormProps> = (props) => {
label={l('rc.doc.functionType')}
rules={[{ required: true, message: l('rc.doc.typePlaceholder') }]}
options={DOCUMENT_FUNCTION_TYPE.map((item) => ({
label: item.text,
value: item.value
label: item.text,
value: item.value
}))}
/>

Expand Down
38 changes: 19 additions & 19 deletions dinky-web/src/pages/RegCenter/Document/constans.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
*
*/

import {DefaultOptionType} from "rc-select/lib/Select";
import { DefaultOptionType } from 'rc-select/lib/Select';

export const DOCUMENT_CATEGORY = [
{
Expand Down Expand Up @@ -100,11 +100,11 @@ export const DOCUMENT_FUNCTION_TYPE = [
* document function type enum map
*/
export const DOCUMENT_FUNCTION_ENUMS = {
"优化参数": { text: '优化参数' },
"建表语句": { text: '建表语句' },
"CataLog": { text: 'CataLog' },
"设置参数": { text: '设置参数' },
"内置函数": { text: '内置函数' },
优化参数: { text: '优化参数' },
建表语句: { text: '建表语句' },
CataLog: { text: 'CataLog' },
设置参数: { text: '设置参数' },
内置函数: { text: '内置函数' },
UDF: { text: 'UDF' },
Other: { text: 'Other' }
};
Expand Down Expand Up @@ -197,22 +197,22 @@ export const DOCUMENT_SUBTYPE_ENUMS = {
Batch: { text: 'Batch' },
Streaming: { text: 'Streaming' },
Other: { text: 'Other' },
"比较函数": { text: '比较函数' },
"逻辑函数": { text: '逻辑函数' },
"算术函数": { text: '算术函数' },
"字符串函数": { text: '字符串函数' },
"时间函数": { text: '时间函数' },
"条件函数": { text: '条件函数' },
"类型转换函数功能": { text: '类型转换函数功能' },
比较函数: { text: '比较函数' },
逻辑函数: { text: '逻辑函数' },
算术函数: { text: '算术函数' },
字符串函数: { text: '字符串函数' },
时间函数: { text: '时间函数' },
条件函数: { text: '条件函数' },
类型转换函数功能: { text: '类型转换函数功能' },
'Collection 函数': { text: 'Collection 函数' },
'Value Construction函数': { text: 'Value Construction函数' },
'Value Access函数': { text: 'Value Access函数' },
"分组函数": { text: '分组函数' },
"hash函数": { text: 'hash函数' },
"聚合函数": { text: '聚合函数' },
"列函数": { text: '列函数' },
"表值聚合函数": { text: '表值聚合函数' },
"其他函数": { text: '其他函数' }
分组函数: { text: '分组函数' },
hash函数: { text: 'hash函数' },
聚合函数: { text: '聚合函数' },
列函数: { text: '列函数' },
表值聚合函数: { text: '表值聚合函数' },
其他函数: { text: '其他函数' }
};

/**
Expand Down

0 comments on commit f6c984b

Please sign in to comment.