Remove shapes tab
This commit is contained in:
parent
83301438af
commit
395ba77a37
@ -127,6 +127,7 @@ export default function AreaOverview(props) {
|
|||||||
<Col span={18}>
|
<Col span={18}>
|
||||||
<Input
|
<Input
|
||||||
value={a.name}
|
value={a.name}
|
||||||
|
placeholder="Name"
|
||||||
onChange={(value, e) => updateArea(a.id, { name: value })}
|
onChange={(value, e) => updateArea(a.id, { name: value })}
|
||||||
field="name"
|
field="name"
|
||||||
/>
|
/>
|
||||||
|
@ -3,13 +3,10 @@ import CodeMirror from "@uiw/react-codemirror";
|
|||||||
import { createTheme } from "@uiw/codemirror-themes";
|
import { createTheme } from "@uiw/codemirror-themes";
|
||||||
import { sql } from "@codemirror/lang-sql";
|
import { sql } from "@codemirror/lang-sql";
|
||||||
import { tags as t } from "@lezer/highlight";
|
import { tags as t } from "@lezer/highlight";
|
||||||
import Shape from "./shape";
|
|
||||||
// import { Parser } from "node-sql-parser";
|
|
||||||
import { Tabs } from "@douyinfe/semi-ui";
|
import { Tabs } from "@douyinfe/semi-ui";
|
||||||
import TableOverview from "./table_overview";
|
import TableOverview from "./table_overview";
|
||||||
import ReferenceOverview from "./reference_overview";
|
import ReferenceOverview from "./reference_overview";
|
||||||
import AreaOverview from "./area_overview";
|
import AreaOverview from "./area_overview";
|
||||||
// import { TableContext } from "../pages/editor";
|
|
||||||
import { Tab } from "../data/data";
|
import { Tab } from "../data/data";
|
||||||
import { TabContext } from "../pages/editor";
|
import { TabContext } from "../pages/editor";
|
||||||
|
|
||||||
@ -35,7 +32,7 @@ const EditorPanel = (props) => {
|
|||||||
{ tab: "Tables", itemKey: Tab.tables },
|
{ tab: "Tables", itemKey: Tab.tables },
|
||||||
{ tab: "Relationships", itemKey: Tab.relationships },
|
{ tab: "Relationships", itemKey: Tab.relationships },
|
||||||
{ tab: "Subject Areas", itemKey: Tab.subject_areas },
|
{ tab: "Subject Areas", itemKey: Tab.subject_areas },
|
||||||
{ tab: "Shapes", itemKey: Tab.shapes },
|
// { tab: "Shapes", itemKey: Tab.shapes },
|
||||||
{ tab: "Editor", itemKey: Tab.editor },
|
{ tab: "Editor", itemKey: Tab.editor },
|
||||||
];
|
];
|
||||||
const contentList = [
|
const contentList = [
|
||||||
@ -45,7 +42,6 @@ const EditorPanel = (props) => {
|
|||||||
/>,
|
/>,
|
||||||
<ReferenceOverview />,
|
<ReferenceOverview />,
|
||||||
<AreaOverview/>,
|
<AreaOverview/>,
|
||||||
<Shape />,
|
|
||||||
<CodeMirror
|
<CodeMirror
|
||||||
value={props.code}
|
value={props.code}
|
||||||
height="100%"
|
height="100%"
|
||||||
|
@ -98,8 +98,6 @@ function Area() {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
export default function Shape() {
|
export default function Shape() {
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
|
@ -61,8 +61,8 @@ const Tab = {
|
|||||||
tables: "1",
|
tables: "1",
|
||||||
relationships: "2",
|
relationships: "2",
|
||||||
subject_areas: "3",
|
subject_areas: "3",
|
||||||
shapes: "4",
|
// shapes: "4",
|
||||||
editor: "5",
|
editor: "4",
|
||||||
};
|
};
|
||||||
|
|
||||||
const ObjectType = {
|
const ObjectType = {
|
||||||
|
Loading…
Reference in New Issue
Block a user