Skip to content

Commit

Permalink
chore(graphin):remove graphin graphin-components css
Browse files Browse the repository at this point in the history
  • Loading branch information
pomelo-nwu committed Jan 25, 2021
1 parent d4cc094 commit 7524665
Show file tree
Hide file tree
Showing 96 changed files with 69 additions and 157 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ import React from 'react';
import ReactDOM from 'react-dom';
import Graphin, { Utils } from '@antv/graphin';

// import '@antv/graphin/dist/index.css'; // Don't forget to import css
import './styles.css';

const App = () => {
Expand Down
2 changes: 1 addition & 1 deletion README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ import ReactDOM from 'react-dom';

import Graphin, { Utils } from '@antv/graphin';

// import '@antv/graphin/dist/index.css'; // 别忘了引入Graphin CSS
// 别忘了引入Graphin CSS
import './styles.css';

const App = () => {
Expand Down
2 changes: 0 additions & 2 deletions packages/graphin-components/README-zh.CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,6 @@ import Graphin, { Utils } from '@antv/graphin';
import { Toolbar } from '@antv/graphin-components';

// 别忘了引入 CSS
// import '@antv/graphin/dist/index.css';
import '@antv/graphin-components/dist/index.css';

const App = () => {
const data = Utils.mock(10).graphin();
Expand Down
2 changes: 0 additions & 2 deletions packages/graphin-components/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,6 @@ import Graphin, { Utils } from '@antv/graphin';
import { Toolbar } from '@antv/graphin-components';

// Do not forget to import required CSS
// import '@antv/graphin/dist/index.css';
import '@antv/graphin-components/dist/index.css';

const App = () => {
const data = Utils.mock(10).graphin();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import Graphin, { Utils, GraphinContext } from '@antv/graphin';
import { ContextMenu } from '@antv/graphin-components';
import { Menu } from 'antd';
// Do not forget to import CSS
// import '@antv/graphin/dist/index.css';

// import { MailOutlined, AppstoreOutlined, SettingOutlined } from '@ant-design/icons';

const { SubMenu } = Menu;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import Graphin, { Utils, GraphinContext } from '@antv/graphin';
import { ContextMenu } from '@antv/graphin-components';
import PieMenu, { Slice } from 'react-pie-menu';
// Do not forget to import CSS
// import '@antv/graphin/dist/index.css';

import { ThemeProvider } from 'styled-components';
import theme from './PieMenuTheme';

Expand Down
3 changes: 1 addition & 2 deletions packages/graphin-components/src/ContextMenu/demos/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,8 @@ import Graphin, { GraphinContext, Utils } from '@antv/graphin';
import { ContextMenu } from '@antv/graphin-components';
import { message } from 'antd';
import { TagFilled, DeleteFilled, ExpandAltOutlined } from '@ant-design/icons';
// import '@antv/graphin/dist/index.css';

// Do not forget to import CSS
import '@antv/graphin-components/dist/index.css';

const { Menu } = ContextMenu;

Expand Down
3 changes: 1 addition & 2 deletions packages/graphin-components/src/ContextMenu/index.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,7 @@ import ReactDOM from 'react-dom';
import Graphin, { Utils } from '@antv/graphin';
import { ContextMenu } from '@antv/graphin-components';
// Do not forget to import CSS
// import '@antv/graphin/dist/index.css';
import '@antv/graphin-components/dist/index.css';

const { Menu, Donut } = ContextMenu;

const App = () => {
Expand Down
3 changes: 1 addition & 2 deletions packages/graphin-components/src/ContextMenu/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,7 @@ import ReactDOM from 'react-dom';
import Graphin, { Utils } from '@antv/graphin';
import { ContextMenu } from '@antv/graphin-components';
// Do not forget to import CSS
// import '@antv/graphin/dist/index.css';
import '@antv/graphin-components/dist/index.css';

const { Menu, Donut } = ContextMenu;

const App = () => {
Expand Down
2 changes: 0 additions & 2 deletions packages/graphin-components/src/CreateEdge/index.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,6 @@ import React from 'react';
import ReactDOM from 'react-dom';
import Graphin, { Utils } from '@antv/graphin';
import { CreateEdge } from '@antv/graphin-components';
// import '@antv/graphin/dist/index.css';
import '@antv/graphin-components/dist/index.css';

const { BreathingLamp } = CreateEdge;

Expand Down
2 changes: 0 additions & 2 deletions packages/graphin-components/src/CreateEdge/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@ import React from 'react';
import ReactDOM from 'react-dom';
import Graphin, { Utils } from '@antv/graphin';
import { CreateEdge } from '@antv/graphin-components';
// import '@antv/graphin/dist/index.css';
import '@antv/graphin-components/dist/index.css';

const { BreathingLamp } = CreateEdge;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import Graphin, { Utils, G6 } from '@antv/graphin';
import { EdgeBundling } from '@antv/graphin-components';

// Do not forget to import CSS
// import '@antv/graphin/dist/index.css';

const data = Utils.mock(5).graphin();
const { edges } = data;
Expand Down
2 changes: 0 additions & 2 deletions packages/graphin-components/src/EdgeBundling/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ import React from 'react';
import ReactDOM from 'react-dom';
import Graphin, { Utils } from '@antv/graphin';
import { EdgeBundling } from '@antv/graphin-components';
// import '@antv/graphin/dist/index.css';
import '@antv/graphin-components/dist/index.css';

const App = () => {
const handleCloseCallback = () => {};
Expand Down
2 changes: 0 additions & 2 deletions packages/graphin-components/src/FindPathPanel/index.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,6 @@ import React from 'react';
import ReactDOM from 'react-dom';
import Graphin, { Utils } from '@antv/graphin';
import { FindPathPanel } from '@antv/graphin-components';
// import '@antv/graphin/dist/index.css';
import '@antv/graphin-components/dist/index.css';

const { BreathingLamp } = FindPathPanel;

Expand Down
2 changes: 0 additions & 2 deletions packages/graphin-components/src/FindPathPanel/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@ import React from 'react';
import ReactDOM from 'react-dom';
import Graphin, { Utils } from '@antv/graphin';
import { FindPathPanel } from '@antv/graphin-components';
// import '@antv/graphin/dist/index.css';
import '@antv/graphin-components/dist/index.css';

const { BreathingLamp } = FindPathPanel;

Expand Down
2 changes: 0 additions & 2 deletions packages/graphin-components/src/FishEye/demos/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@ import React from 'react';
import Graphin, { Utils } from '@antv/graphin';
import { ContextMenu, FishEye } from '@antv/graphin-components';

// import '@antv/graphin/dist/index.css';
// Do not forget to import CSS
import '@antv/graphin-components/dist/index.css';

const { Menu } = ContextMenu;
const App = () => {
Expand Down
1 change: 0 additions & 1 deletion packages/graphin-components/src/Hull/demos/Simple.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import React from 'react';
import Graphin, { Utils } from '@antv/graphin';
import Hull, { HullCfg } from '../index';
// Do not forget to import CSS
// import '@antv/graphin/dist/index.css';

const Demo = () => {
const hullOptions: HullCfg[] = [
Expand Down
2 changes: 0 additions & 2 deletions packages/graphin-components/src/Hull/index.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@ import ReactDOM from 'react-dom';
import Graphin, { Utils } from '@antv/graphin';
import { Hull } from '@antv/graphin-components';
// Do not forget to import CSS
// import '@antv/graphin/dist/index.css';
import '@antv/graphin-components/dist/index.css';

const App = () => {
const hullOptions = [
Expand Down
2 changes: 0 additions & 2 deletions packages/graphin-components/src/Hull/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@ import ReactDOM from 'react-dom';
import Graphin, { Utils } from '@antv/graphin';
import { Hull } from '@antv/graphin-components';
// Do not forget to import CSS
// import '@antv/graphin/dist/index.css';
import '@antv/graphin-components/dist/index.css';

const App = () => {
const hullOptions = [
Expand Down
2 changes: 0 additions & 2 deletions packages/graphin-components/src/LayoutSelector/index.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@ import ReactDOM from 'react-dom';
import Graphin, { Utils } from '@antv/graphin';
import { LayoutSelector } from '@antv/graphin-components';
// Do not forget to import CSS
// import '@antv/graphin/dist/index.css';
import '@antv/graphin-components/dist/index.css';

const App = () => {
const [layout, setLayout] = React.useState({ name: 'force', options: {} });
Expand Down
2 changes: 0 additions & 2 deletions packages/graphin-components/src/LayoutSelector/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,6 @@ import ReactDOM from 'react-dom';
import Graphin, { Utils } from '@antv/graphin';
import { LayoutSelector } from '@antv/graphin-components';
// Do not forget to import CSS
// import '@antv/graphin/dist/index.css';
import '@antv/graphin-components/dist/index.css';

const App = () => {
const [layout, setLayout] = React.useState({ name: 'force', options: {} });
Expand Down
2 changes: 0 additions & 2 deletions packages/graphin-components/src/Legend/index.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@ import ReactDOM from 'react-dom';
import Graphin, { Utils } from '@antv/graphin';
import { Legend } from '@antv/graphin-components';
// Do not forget to import CSS
// import '@antv/graphin/dist/index.css';
import '@antv/graphin-components/dist/index.css';

const App = () => {
return (
Expand Down
2 changes: 0 additions & 2 deletions packages/graphin-components/src/Legend/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,6 @@ import ReactDOM from 'react-dom';
import Graphin, { Utils } from '@antv/graphin';
import { Legend } from '@antv/graphin-components';
// Do not forget to import CSS
// import '@antv/graphin/dist/index.css';
import '@antv/graphin-components/dist/index.css';

const App = () => {
return (
Expand Down
2 changes: 0 additions & 2 deletions packages/graphin-components/src/MapMode/index.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@ import React from 'react';
import ReactDOM from 'react-dom';
import Graphin, { Utils } from '@antv/graphin';
import { MapMode } from '@antv/graphin-components';
// import '@antv/graphin/dist/index.css';
import '@antv/graphin-components/dist/index.css';

const App = () => {
return (
Expand Down
2 changes: 0 additions & 2 deletions packages/graphin-components/src/MapMode/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@ import React from 'react';
import ReactDOM from 'react-dom';
import Graphin, { Utils } from '@antv/graphin';
import { MapMode } from '@antv/graphin-components';
// import '@antv/graphin/dist/index.css';
import '@antv/graphin-components/dist/index.css';

const App = () => {
return (
Expand Down
2 changes: 0 additions & 2 deletions packages/graphin-components/src/MiniMap/demos/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@ import React from 'react';
import Graphin, { Utils } from '@antv/graphin';
import { MiniMap } from '@antv/graphin-components';

// import '@antv/graphin/dist/index.css';
// Do not forget to import CSS
import '@antv/graphin-components/dist/index.css';

const App = () => {
const data = Utils.mock(5).circle().graphin();
Expand Down
2 changes: 0 additions & 2 deletions packages/graphin-components/src/MiniMap/index.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@ import ReactDOM from 'react-dom';
import Graphin, { Utils } from '@antv/graphin';
import { MiniMap } from '@antv/graphin-components';
// Do not forget to import CSS
// import '@antv/graphin/dist/index.css';
import '@antv/graphin-components/dist/index.css';

const data = Utils.mock(10).graphin();
const App = () => {
Expand Down
2 changes: 0 additions & 2 deletions packages/graphin-components/src/MiniMap/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@ import ReactDOM from 'react-dom';
import Graphin, { Utils } from '@antv/graphin';
import { MiniMap } from '@antv/graphin-components';
// Do not forget to import CSS
// import '@antv/graphin/dist/index.css';
import '@antv/graphin-components/dist/index.css';

const data = Utils.mock(10).graphin();
const App = () => {
Expand Down
2 changes: 0 additions & 2 deletions packages/graphin-components/src/Sheetbar/index.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,6 @@ import ReactDOM from 'react-dom';
import Graphin, { Utils } from '@antv/graphin';
import { Sheetbar } from '@antv/graphin-components';
// Do not forget to import CSS
// import '@antv/graphin/dist/index.css';
import '@antv/graphin-components/dist/index.css';

const App = () => {
return (
Expand Down
2 changes: 0 additions & 2 deletions packages/graphin-components/src/Sheetbar/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@ import ReactDOM from 'react-dom';
import Graphin, { Utils } from '@antv/graphin';
import { Sheetbar } from '@antv/graphin-components';
// Do not forget to import CSS
// import '@antv/graphin/dist/index.css';
import '@antv/graphin-components/dist/index.css';

const App = () => {
return (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@ import React from 'react';
import ReactDOM from 'react-dom';
import Graphin, { Utils } from '@antv/graphin';
import { SnapshotGallery, Toolbar } from '@antv/graphin-components';
// import '@antv/graphin/dist/index.css';
import '@antv/graphin-components/dist/index.css';

/** The following is pseudo-code of the controlled mode. SnapshotGallery should have in-built save and redo functionalities **/
const App = () => {
Expand Down
2 changes: 0 additions & 2 deletions packages/graphin-components/src/SnapshotGallery/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@ import React from 'react';
import ReactDOM from 'react-dom';
import Graphin, { Utils } from '@antv/graphin';
import { SnapshotGallery, Toolbar } from '@antv/graphin-components';
// import '@antv/graphin/dist/index.css';
import '@antv/graphin-components/dist/index.css';

/** 以下为受控模式,伪代码。Graphin 封装的 SnapshotGallery 应该将 save 和 redo 全部内置 **/
const App = () => {
Expand Down
2 changes: 0 additions & 2 deletions packages/graphin-components/src/Statistic/index.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,6 @@ import ReactDOM from 'react-dom';
import Graphin, { Utils } from '@antv/graphin';
import { Statistic } from '@antv/graphin-components';
// Do not forget to import CSS
// import '@antv/graphin/dist/index.css';
import '@antv/graphin-components/dist/index.css';

const App = () => {
return (
Expand Down
2 changes: 0 additions & 2 deletions packages/graphin-components/src/Statistic/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,6 @@ import ReactDOM from 'react-dom';
import Graphin, { Utils } from '@antv/graphin';
import { Statistic } from '@antv/graphin-components';
// Do not forget to import CSS
// import '@antv/graphin/dist/index.css';
import '@antv/graphin-components/dist/index.css';

const App = () => {
return (
Expand Down
2 changes: 0 additions & 2 deletions packages/graphin-components/src/TableMode/index.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@ import ReactDOM from 'react-dom';
import Graphin, { Utils } from '@antv/graphin';
import { TableMode } from '@antv/graphin-components';
// Do not forget to import CSS
// import '@antv/graphin/dist/index.css';
import '@antv/graphin-components/dist/index.css';

const data = Utils.mock(10).graphin();
const App = () => {
Expand Down
2 changes: 0 additions & 2 deletions packages/graphin-components/src/TableMode/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@ import ReactDOM from 'react-dom';
import Graphin, { Utils } from '@antv/graphin';
import { TableMode } from '@antv/graphin-components';
// Do not forget to import CSS
// import '@antv/graphin/dist/index.css';
import '@antv/graphin-components/dist/index.css';

const data = Utils.mock(10).graphin();
const App = () => {
Expand Down
2 changes: 0 additions & 2 deletions packages/graphin-components/src/Timebar/index.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@ import ReactDOM from 'react-dom';
import Graphin, { Utils } from '@antv/graphin';
import { Timebar } from '@antv/graphin-components';
// Do not forget to import CSS
// import '@antv/graphin/dist/index.css';
import '@antv/graphin-components/dist/index.css';

const data = Utils.mock(10).graphin();
const App = () => {
Expand Down
2 changes: 0 additions & 2 deletions packages/graphin-components/src/Timebar/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@ import ReactDOM from 'react-dom';
import Graphin, { Utils } from '@antv/graphin';
import { Timebar } from '@antv/graphin-components';
// Do not forget to import CSS
// import '@antv/graphin/dist/index.css';
import '@antv/graphin-components/dist/index.css';

const data = Utils.mock(10).graphin();
const App = () => {
Expand Down
2 changes: 0 additions & 2 deletions packages/graphin-components/src/TodoUndo/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,6 @@ import React from 'react';
import ReactDOM from 'react-dom';
import Graphin, { Utils } from '@antv/graphin';
import { TodoUndo, Toolbar } from '@antv/graphin-components';
// import '@antv/graphin/dist/index.css';
import '@antv/graphin-components/dist/index.css';

const App = () => {
const historyRef = React.createRef();
Expand Down
3 changes: 1 addition & 2 deletions packages/graphin-components/src/Toolbar/index.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,7 @@ import ReactDOM from 'react-dom';
import Graphin, { Utils } from '@antv/graphin';
import { Toolbar } from '@antv/graphin-components';
// Do not forget to import CSS
// import '@antv/graphin/dist/index.css';
import '@antv/graphin-components/dist/index.css';

const { Menu, Donut } = Toolbar;

const App = () => {
Expand Down
3 changes: 1 addition & 2 deletions packages/graphin-components/src/Toolbar/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,7 @@ import ReactDOM from 'react-dom';
import Graphin, { Utils } from '@antv/graphin';
import { Toolbar } from '@antv/graphin-components';
// Do not forget to import CSS
// import '@antv/graphin/dist/index.css';
import '@antv/graphin-components/dist/index.css';

const { Menu, Donut } = Toolbar;

const App = () => {
Expand Down
2 changes: 0 additions & 2 deletions packages/graphin-components/src/Tooltip/index.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@ import ReactDOM from 'react-dom';
import Graphin, { Utils } from '@antv/graphin';
import { Tooltip } from '@antv/graphin-components';
// Do not forget to import CSS
// import '@antv/graphin/dist/index.css';
import '@antv/graphin-components/dist/index.css';

const App = () => {
return (
Expand Down
2 changes: 0 additions & 2 deletions packages/graphin-components/src/Tooltip/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,6 @@ import ReactDOM from 'react-dom';
import Graphin, { Utils } from '@antv/graphin';
import { Tooltip } from '@antv/graphin-components';
// Do not forget to import CSS
// import '@antv/graphin/dist/index.css';
import '@antv/graphin-components/dist/index.css';

const App = () => {
return (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import React from 'react';
import Graphin, { Utils } from '@antv/graphin';
// import { VisSettingPanel } from '@antv/graphin-components';
// Do not forget to import CSS
// import '@antv/graphin/dist/index.css';

const Demo = () => {
return (
Expand Down
Loading

0 comments on commit 7524665

Please sign in to comment.