mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-30 19:43:58 +00:00
code cleanup
This commit is contained in:
@@ -6,7 +6,6 @@ import { ExpandIcon } from '../icons';
|
|||||||
import InlineButton from '../widgets/InlineButton';
|
import InlineButton from '../widgets/InlineButton';
|
||||||
import { ManagerInnerContainer } from './ManagerStyles';
|
import { ManagerInnerContainer } from './ManagerStyles';
|
||||||
import SearchInput from '../widgets/SearchInput';
|
import SearchInput from '../widgets/SearchInput';
|
||||||
import { WidgetTitle } from '../widgets/WidgetStyles';
|
|
||||||
|
|
||||||
const Wrapper = styled.div``;
|
const Wrapper = styled.div``;
|
||||||
|
|
||||||
|
|||||||
@@ -1,18 +1,7 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
import styled from 'styled-components';
|
import styled from 'styled-components';
|
||||||
import DataGridCore from './DataGridCore';
|
|
||||||
import ColumnManager from './ColumnManager';
|
import ColumnManager from './ColumnManager';
|
||||||
|
|
||||||
import {
|
|
||||||
// SearchBoxWrapper,
|
|
||||||
// WidgetsInnerContainer,
|
|
||||||
// Input,
|
|
||||||
ManagerMainContainer,
|
|
||||||
ManagerOuterContainer_60,
|
|
||||||
ManagerOuterContainer_40,
|
|
||||||
ManagerOuterContainerFull,
|
|
||||||
WidgetTitle,
|
|
||||||
} from './ManagerStyles';
|
|
||||||
import ReferenceManager from './ReferenceManager';
|
import ReferenceManager from './ReferenceManager';
|
||||||
import { HorizontalSplitter } from '../widgets/Splitter';
|
import { HorizontalSplitter } from '../widgets/Splitter';
|
||||||
import WidgetColumnBar, { WidgetColumnBarItem } from '../widgets/WidgetColumnBar';
|
import WidgetColumnBar, { WidgetColumnBarItem } from '../widgets/WidgetColumnBar';
|
||||||
|
|||||||
@@ -1,55 +1,9 @@
|
|||||||
import styled from 'styled-components';
|
import styled from 'styled-components';
|
||||||
import theme from '../theme';
|
import theme from '../theme';
|
||||||
|
|
||||||
// export const SearchBoxWrapper = styled.div`
|
|
||||||
// display: flex;
|
|
||||||
// margin-bottom: 5px;
|
|
||||||
// `;
|
|
||||||
|
|
||||||
export const ManagerMainContainer = styled.div`
|
|
||||||
position: relative;
|
|
||||||
display: flex;
|
|
||||||
flex-flow: column wrap;
|
|
||||||
flex: 1;
|
|
||||||
flex-direction: column;
|
|
||||||
user-select: none;
|
|
||||||
`;
|
|
||||||
|
|
||||||
export const ManagerOuterContainer = styled.div`
|
|
||||||
flex: 1 1 0;
|
|
||||||
overflow: hidden;
|
|
||||||
position: relative;
|
|
||||||
flex-direction: column;
|
|
||||||
display: flex;
|
|
||||||
`;
|
|
||||||
|
|
||||||
export const ManagerOuterContainer_60 = styled(ManagerOuterContainer)`
|
|
||||||
flex: 0 0 60%;
|
|
||||||
`;
|
|
||||||
|
|
||||||
export const ManagerOuterContainer_40 = styled(ManagerOuterContainer)`
|
|
||||||
flex: 0 0 40%;
|
|
||||||
`;
|
|
||||||
|
|
||||||
export const ManagerOuterContainerFull = styled(ManagerOuterContainer)`
|
|
||||||
flex: 1;
|
|
||||||
`;
|
|
||||||
|
|
||||||
export const ManagerInnerContainer = styled.div`
|
export const ManagerInnerContainer = styled.div`
|
||||||
flex: 1 1;
|
flex: 1 1;
|
||||||
overflow-y: auto;
|
overflow-y: auto;
|
||||||
overflow-x: auto;
|
overflow-x: auto;
|
||||||
`;
|
`;
|
||||||
|
|
||||||
// export const Input = styled.input`
|
|
||||||
// flex: 1;
|
|
||||||
// min-width: 90px;
|
|
||||||
// `;
|
|
||||||
|
|
||||||
export const WidgetTitle = styled.div`
|
|
||||||
padding: 5px;
|
|
||||||
font-weight: bold;
|
|
||||||
text-transform: uppercase;
|
|
||||||
background-color: gray;
|
|
||||||
// background-color: #CEC;
|
|
||||||
`;
|
|
||||||
|
|||||||
@@ -4,7 +4,6 @@ import { ManagerInnerContainer } from './ManagerStyles';
|
|||||||
import { LinkIcon, ReferenceIcon } from '../icons';
|
import { LinkIcon, ReferenceIcon } from '../icons';
|
||||||
import SearchInput from '../widgets/SearchInput';
|
import SearchInput from '../widgets/SearchInput';
|
||||||
import { filterName } from '@dbgate/datalib';
|
import { filterName } from '@dbgate/datalib';
|
||||||
import { WidgetTitle } from '../widgets/WidgetStyles';
|
|
||||||
|
|
||||||
const SearchBoxWrapper = styled.div`
|
const SearchBoxWrapper = styled.div`
|
||||||
display: flex;
|
display: flex;
|
||||||
|
|||||||
@@ -3,7 +3,6 @@ import React from 'react';
|
|||||||
import _ from 'lodash';
|
import _ from 'lodash';
|
||||||
import styled from 'styled-components';
|
import styled from 'styled-components';
|
||||||
|
|
||||||
import { ManagerMainContainer, ManagerOuterContainer_60, ManagerOuterContainer_40 } from '../datagrid/ManagerStyles';
|
|
||||||
import { HorizontalSplitter, VerticalSplitter } from '../widgets/Splitter';
|
import { HorizontalSplitter, VerticalSplitter } from '../widgets/Splitter';
|
||||||
import FreeTableColumnEditor from './FreeTableColumnEditor';
|
import FreeTableColumnEditor from './FreeTableColumnEditor';
|
||||||
import FreeTableGridCore from './FreeTableGridCore';
|
import FreeTableGridCore from './FreeTableGridCore';
|
||||||
|
|||||||
Reference in New Issue
Block a user