Skip to content

Commit

Permalink
[Refactor][Web] Remove the old version of the data development page a…
Browse files Browse the repository at this point in the history
…nd fix some minor details (#3913)

Co-authored-by: zackyoungh <zackyoungh@users.noreply.github.com>
  • Loading branch information
zackyoungh and zackyoungh authored Nov 13, 2024
1 parent a67ac9a commit c936749
Show file tree
Hide file tree
Showing 136 changed files with 739 additions and 12,755 deletions.
7 changes: 0 additions & 7 deletions dinky-web/config/routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,6 @@ export default [
name: 'datastudio',
icon: 'CodeOutlined',
footerRender: false,
component: './DataStudio'
},
{
path: '/datastudio-new',
name: 'datastudio',
icon: 'CodeOutlined',
footerRender: false,
component: './DataStudioNew'
},
{
Expand Down
22 changes: 0 additions & 22 deletions dinky-web/src/components/CallBackButton/CircleBtn.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@
*
*/

import { TabsItemType, TaskDataType } from '@/pages/DataStudio/model';
import { Tab } from '@/pages/DataStudio/route';
import { Button } from 'antd';
import React from 'react';

Expand All @@ -30,26 +28,6 @@ export type CircleButtonProps = {
key?: string;
href?: string;
};
export type CircleBottomButtonProps = {
icon: React.ReactNode;
loading?: boolean;
onClick?: (
tabs: Tab[],
key: string,
data: TaskDataType | undefined,
refresh: any
) => Promise<void>;
title?: string;
key?: string;
};
export type CircleDataStudioButtonProps = {
icon: React.ReactNode;
loading?: boolean;
onClick?: (panes: TabsItemType[], activeKey: string) => void;
title?: string;
key?: string;
isShow?: boolean;
};

export const CircleBtn: React.FC<CircleButtonProps> = (props) => {
const { onClick, title, icon, loading, href } = props;
Expand Down
213 changes: 124 additions & 89 deletions dinky-web/src/components/Icons/CodeLanguageIcon.tsx

Large diffs are not rendered by default.

5 changes: 3 additions & 2 deletions dinky-web/src/components/Icons/DBIcons.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const defaultSvgSize = '100%';
const style = { overflow: 'hidden' };

export const MysqlIcons = (props: any) => {
const size = props.size || defaultSvgSize;
const { size = 16 } = props;
return (
<>
<Icon
Expand Down Expand Up @@ -59,7 +59,8 @@ export const MysqlIcons = (props: any) => {
};

export const SQLIcons = (props: any) => {
const size = props.size || defaultSvgSize;
const { size = 16 } = props;

return (
<>
<Icon
Expand Down
3 changes: 2 additions & 1 deletion dinky-web/src/locales/en-US/global.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
export default {
'button.add': 'Add',
'button.check': 'Check',
'button.graph': 'DAG',
'button.graph': 'Topology',
'button.create': 'Create',
'button.close': 'Close',
'button.daemon': 'Daemon Mode',
Expand Down Expand Up @@ -87,6 +87,7 @@ export default {
'button.startRefresh': 'Start Auto Refresh(5s/e)',
'button.autoWrap': 'Auto Wrap/Unwrap',
'button.output': 'Output',
'button.ava': 'Automated insights',

'menu.menu': 'Menu',
'right.menu.open': 'Open',
Expand Down
3 changes: 2 additions & 1 deletion dinky-web/src/locales/zh-CN/global.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
export default {
'button.add': '添加',
'button.check': '检查',
'button.graph': 'DAG',
'button.graph': '拓扑图',
'button.create': '新建',
'button.recovery': '恢复',
'button.close': '关闭',
Expand Down Expand Up @@ -87,6 +87,7 @@ export default {
'button.startRefresh': '开始自动刷新(5s/次)',
'button.autoWrap': '自动换行/不换行',
'button.output': '输出',
'button.ava': '自动洞察',

'menu.menu': '菜单',
'right.menu.open': '打开',
Expand Down

This file was deleted.

47 changes: 0 additions & 47 deletions dinky-web/src/pages/DataStudio/BottomContainer/Console/index.tsx

This file was deleted.

Loading

0 comments on commit c936749

Please sign in to comment.