Skip to content

Commit 4d0acf1

Browse files
committed
合并typesing constants
1 parent 44ef073 commit 4d0acf1

40 files changed

Lines changed: 150 additions & 196 deletions

File tree

chat2db-client/src/blocks/Setting/index.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,8 @@ import themeLightImg from '@/assets/img/theme-light.png';
1010
import themeAutoImg from '@/assets/img/theme-auto.png';
1111
import { getOsTheme } from '@/utils';
1212
import i18n, { currentLang } from '@/i18n';
13-
import { ThemeType } from '@/constants/common';
14-
import { LangType } from '@/constants/common';
13+
import { ThemeType, LangType, APP_NAME, GITHUB_URL } from '@/constants';
1514
import { useTheme } from '@/hooks';
16-
import { APP_NAME, GITHUB_URL } from '@/constants/appConfig';
1715
import { setLang as setLangLocalStorage } from '@/utils/localStorage'
1816

1917
const { Option } = Select;

chat2db-client/src/components/Console/MonacoEditor/index.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,8 @@ import { useTheme } from '@/hooks';
44
import * as monaco from 'monaco-editor/esm/vs/editor/editor.api';
55
import { language } from 'monaco-editor/esm/vs/basic-languages/sql/sql';
66
const { keywords: SQLKeys } = language;
7-
import { editorDefaultOptions } from '@/constants/monacoEditor';
7+
import { editorDefaultOptions, ThemeType } from '@/constants';
88
import styles from './index.less';
9-
import { ThemeType } from '@/constants/common';
109
import { monacoSqlAutocomplete } from './syntax-parser/plugin/monaco-plugin';
1110

1211
export type IEditorIns = monaco.editor.IStandaloneCodeEditor;

chat2db-client/src/components/Console/index.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import { v4 as uuidv4 } from 'uuid';
1313

1414
import styles from './index.less';
1515
import Loading from '../Loading/Loading';
16-
import { DatabaseTypeCode } from '@/constants/database';
16+
import { DatabaseTypeCode } from '@/constants';
1717

1818
enum IPromptType {
1919
NL_2_SQL = 'NL_2_SQL',
@@ -63,9 +63,9 @@ function Console(props: IProps) {
6363
setContext(value);
6464
}, [value]);
6565

66-
useEffect(()=>{
66+
useEffect(() => {
6767
onChangeValue?.(value);
68-
},[context])
68+
}, [context])
6969

7070
const onPressChatInput = (value: string) => {
7171
const params = formatParams({

0 commit comments

Comments
 (0)