Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Refactor] move database connection components to current dir #377

Merged
merged 2 commits into from
Jun 19, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/rath-client/src/components/dbGraph/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import produce from 'immer';
import { DragEvent, memo, MouseEvent, useCallback, useEffect, useRef, useState } from 'react';
import styled from 'styled-components';
import intl from 'react-intl-universal';
import type { TableInfo } from '../../pages/dataSource/selection/database/type';
import type { TableInfo } from '../../pages/dataConnection/database/interfaces';
import Link from './link';
import { IDBGraph } from './localTypes';
import DBNode from './node';
Expand Down
2 changes: 1 addition & 1 deletion packages/rath-client/src/components/dbGraph/utils.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import type { TableInfo } from "../../pages/dataSource/selection/database/type";
import type { TableInfo } from "../../pages/dataConnection/database/interfaces";
import { BOX_HEIGHT, BOX_WIDTH, STROKE_RADIUS } from "./config";
import type { IDBEdge, IDBGraph } from "./localTypes";

Expand Down
2 changes: 1 addition & 1 deletion packages/rath-client/src/pages/dataConnection/create.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ import { DataSourceTag, IDBMeta, setDataStorage } from '../../utils/storage';
import DataLoadingStatus from '../dataSource/dataLoadingStatus';
import { useGlobalStore } from '../../store';
import { PIVOT_KEYS } from '../../constants';
import DatabaseConnector from '../dataSource/selection/database';
import { notify } from '../../components/error';
import DatabaseConnector from './database/main';
import FileData from './file';
import DemoData from './demo';
// import RestfulData from './restful';
Expand Down
311 changes: 0 additions & 311 deletions packages/rath-client/src/pages/dataConnection/database/api.ts

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import styled from "styled-components";
import { Icon, IconButton, Spinner, IContextualMenuItem, SpinnerSize } from "@fluentui/react";
import { defaultServers } from '..';
import { defaultServers } from '../main';


const ServerItem = styled.div`
Expand Down
Loading