diff --git a/src/components/EditorHeader/ControlPanel.jsx b/src/components/EditorHeader/ControlPanel.jsx index 23dedea..19ef957 100644 --- a/src/components/EditorHeader/ControlPanel.jsx +++ b/src/components/EditorHeader/ControlPanel.jsx @@ -24,7 +24,6 @@ import { Popconfirm, } from "@douyinfe/semi-ui"; import { toPng, toJpeg, toSvg } from "html-to-image"; -import { saveAs } from "file-saver"; import { jsonToMySQL, jsonToPostgreSQL, @@ -1049,30 +1048,6 @@ export default function ControlPanel({ }); }, }, - { - DRAWDB: () => { - const result = JSON.stringify( - { - author: "Unnamed", - title: title, - date: new Date().toISOString(), - tables: tables, - relationships: relationships, - notes: notes, - subjectAreas: areas, - database: database, - ...(databases[database].hasTypes && { types: types }), - ...(databases[database].hasEnums && { enums: enums }), - }, - null, - 2, - ); - const blob = new Blob([result], { - type: "text/plain;charset=utf-8", - }); - saveAs(blob, `${exportData.filename}.ddb`); - }, - }, { MERMAID: () => { setModal(MODAL.CODE);