Skip to content

Commit

Permalink
Merge pull request #377 from Kanaries/refactor-datasource-database-0619
Browse files Browse the repository at this point in the history
[Refactor] move database connection components to current dir
  • Loading branch information
ObservedObserver authored Jun 19, 2023
2 parents ebc28e8 + c24f288 commit e1f813b
Show file tree
Hide file tree
Showing 35 changed files with 48 additions and 1,665 deletions.
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

1 comment on commit e1f813b

@vercel
Copy link

@vercel vercel bot commented on e1f813b Jun 19, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.