Clean up public folder
This commit is contained in:
parent
54c043204a
commit
8a265831ed
34
index.html
34
index.html
@ -2,28 +2,46 @@
|
|||||||
<html lang="en">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8" />
|
<meta charset="utf-8" />
|
||||||
<link rel="icon" href="src/assets/favicon.ico" />
|
<link rel="icon" href="/favicon.ico" />
|
||||||
|
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
<meta name="theme-color" content="#000000" />
|
<meta name="theme-color" content="#000000" />
|
||||||
<meta
|
<meta
|
||||||
name="description"
|
name="description"
|
||||||
content="Online database entity-realtionship diagram editor and SQL generator. Design, visualize, and export scripts without an account and completely free of charge."
|
content="Online database entity-realtionship diagram editor and SQL generator. Design, visualize, and export scripts without an account and completely free of charge."
|
||||||
/>
|
/>
|
||||||
|
|
||||||
|
<meta name="robots" content="index,follow,max-image-preview:large" />
|
||||||
|
|
||||||
<meta property="og:type" content="website" />
|
<meta property="og:type" content="website" />
|
||||||
<meta property="og:url" content="https://drawdb.vercel.app/" />
|
<meta property="og:url" content="https://drawdb.vercel.app/" />
|
||||||
<meta property="og:title" content="drawDB | Online database diagram editor and SQL generator" />
|
<meta
|
||||||
<meta property="og:description" content="Online database entity-realtionship diagram editor and SQL generator. Design, visualize, and export scripts without an account and completely free of charge." />
|
property="og:title"
|
||||||
|
content="drawDB | Online database diagram editor and SQL generator"
|
||||||
|
/>
|
||||||
|
<meta
|
||||||
|
property="og:description"
|
||||||
|
content="Online database entity-realtionship diagram editor and SQL generator. Design, visualize, and export scripts without an account and completely free of charge."
|
||||||
|
/>
|
||||||
<meta property="og:image" content="https://drawdb.vercel.app/hero_ss.png" />
|
<meta property="og:image" content="https://drawdb.vercel.app/hero_ss.png" />
|
||||||
<meta name="robots" content="index,follow,max-image-preview:large"/>
|
|
||||||
<meta name="twitter:image:src" content="https://drawdb.vercel.app/hero_ss.png">
|
<meta
|
||||||
<meta name="twitter:tile:image" content="https://drawdb.vercel.app/hero_ss.png">
|
name="twitter:image:src"
|
||||||
<meta name="twitter:card" content="summary_large_image">
|
content="https://drawdb.vercel.app/hero_ss.png"
|
||||||
<link rel="apple-touch-icon" href="src/assets/favicon.ico" />
|
/>
|
||||||
|
<meta
|
||||||
|
name="twitter:tile:image"
|
||||||
|
content="https://drawdb.vercel.app/hero_ss.png"
|
||||||
|
/>
|
||||||
|
<meta name="twitter:card" content="summary_large_image" />
|
||||||
|
|
||||||
|
<link rel="apple-touch-icon" href="/favicon.ico" />
|
||||||
<link
|
<link
|
||||||
rel="stylesheet"
|
rel="stylesheet"
|
||||||
href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.1/font/bootstrap-icons.css"
|
href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.1/font/bootstrap-icons.css"
|
||||||
crossorigin="anonymous"
|
crossorigin="anonymous"
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<title>drawDB | Online database diagram editor and SQL generator</title>
|
<title>drawDB | Online database diagram editor and SQL generator</title>
|
||||||
</head>
|
</head>
|
||||||
<body theme-mode="light">
|
<body theme-mode="light">
|
||||||
|
Before Width: | Height: | Size: 3.2 KiB After Width: | Height: | Size: 3.2 KiB |
@ -1,5 +0,0 @@
|
|||||||
Bootstrap Icons
|
|
||||||
https://icons.getbootstrap.com
|
|
||||||
|
|
||||||
Licensed under MIT license
|
|
||||||
https://github.com/twbs/icons/blob/main/LICENSE.md
|
|
@ -1,3 +0,0 @@
|
|||||||
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="lightgrey" class="bi bi-pencil-fill" viewBox="0 0 16 16">
|
|
||||||
<path d="M12.854.146a.5.5 0 0 0-.707 0L10.5 1.793 14.207 5.5l1.647-1.646a.5.5 0 0 0 0-.708l-3-3zm.646 6.061L9.793 2.5 3.293 9H3.5a.5.5 0 0 1 .5.5v.5h.5a.5.5 0 0 1 .5.5v.5h.5a.5.5 0 0 1 .5.5v.5h.5a.5.5 0 0 1 .5.5v.207l6.5-6.5zm-7.468 7.468A.5.5 0 0 1 6 13.5V13h-.5a.5.5 0 0 1-.5-.5V12h-.5a.5.5 0 0 1-.5-.5V11h-.5a.5.5 0 0 1-.5-.5V10h-.5a.499.499 0 0 1-.175-.032l-.179.178a.5.5 0 0 0-.11.168l-2 5a.5.5 0 0 0 .65.65l5-2a.5.5 0 0 0 .168-.11l.178-.178z"/>
|
|
||||||
</svg>
|
|
Before Width: | Height: | Size: 586 B |
@ -1,3 +0,0 @@
|
|||||||
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="rgb(51 65 85)" class="bi bi-pencil-fill" viewBox="0 0 16 16">
|
|
||||||
<path d="M12.854.146a.5.5 0 0 0-.707 0L10.5 1.793 14.207 5.5l1.647-1.646a.5.5 0 0 0 0-.708l-3-3zm.646 6.061L9.793 2.5 3.293 9H3.5a.5.5 0 0 1 .5.5v.5h.5a.5.5 0 0 1 .5.5v.5h.5a.5.5 0 0 1 .5.5v.5h.5a.5.5 0 0 1 .5.5v.207l6.5-6.5zm-7.468 7.468A.5.5 0 0 1 6 13.5V13h-.5a.5.5 0 0 1-.5-.5V12h-.5a.5.5 0 0 1-.5-.5V11h-.5a.5.5 0 0 1-.5-.5V10h-.5a.499.499 0 0 1-.175-.032l-.179.178a.5.5 0 0 0-.11.168l-2 5a.5.5 0 0 0 .65.65l5-2a.5.5 0 0 0 .168-.11l.178-.178z"/>
|
|
||||||
</svg>
|
|
Before Width: | Height: | Size: 590 B |
@ -82,7 +82,7 @@ function positionEditorElement(editor, rect) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function FloatingLinkEditor({ editor, theme }) {
|
function FloatingLinkEditor({ editor }) {
|
||||||
const editorRef = useRef(null);
|
const editorRef = useRef(null);
|
||||||
const inputRef = useRef(null);
|
const inputRef = useRef(null);
|
||||||
const mouseDownRef = useRef(false);
|
const mouseDownRef = useRef(false);
|
||||||
@ -206,15 +206,6 @@ function FloatingLinkEditor({ editor, theme }) {
|
|||||||
<a href={linkUrl} target="_blank" rel="noopener noreferrer">
|
<a href={linkUrl} target="_blank" rel="noopener noreferrer">
|
||||||
{linkUrl}
|
{linkUrl}
|
||||||
</a>
|
</a>
|
||||||
<div
|
|
||||||
className={`link-edit${theme === "dark" ? "-dark" : ""}`}
|
|
||||||
role="button"
|
|
||||||
tabIndex={0}
|
|
||||||
onMouseDown={(event) => event.preventDefault()}
|
|
||||||
onClick={() => {
|
|
||||||
setEditMode(true);
|
|
||||||
}}
|
|
||||||
/>
|
|
||||||
</div>
|
</div>
|
||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
@ -386,8 +377,7 @@ function BlockOptionsDropdownList({ editor, blockType }) {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
export default function ToolbarPlugin(props) {
|
export default function ToolbarPlugin() {
|
||||||
const { theme } = props;
|
|
||||||
const [editor] = useLexicalComposerContext();
|
const [editor] = useLexicalComposerContext();
|
||||||
const toolbarRef = useRef(null);
|
const toolbarRef = useRef(null);
|
||||||
const [canUndo, setCanUndo] = useState(false);
|
const [canUndo, setCanUndo] = useState(false);
|
||||||
@ -527,10 +517,7 @@ export default function ToolbarPlugin(props) {
|
|||||||
<i className={`bi bi-arrow-clockwise ${canRedo ? "" : "opacity-30"}`} />
|
<i className={`bi bi-arrow-clockwise ${canRedo ? "" : "opacity-30"}`} />
|
||||||
</button>
|
</button>
|
||||||
<Divider />
|
<Divider />
|
||||||
<BlockOptionsDropdownList
|
<BlockOptionsDropdownList editor={editor} blockType={blockType} />
|
||||||
editor={editor}
|
|
||||||
blockType={blockType}
|
|
||||||
/>
|
|
||||||
<Divider />
|
<Divider />
|
||||||
{blockType === "code" ? (
|
{blockType === "code" ? (
|
||||||
<div className="flex items-center">
|
<div className="flex items-center">
|
||||||
@ -596,7 +583,7 @@ export default function ToolbarPlugin(props) {
|
|||||||
</button>
|
</button>
|
||||||
{isLink &&
|
{isLink &&
|
||||||
createPortal(
|
createPortal(
|
||||||
<FloatingLinkEditor editor={editor} theme={theme} />,
|
<FloatingLinkEditor editor={editor} />,
|
||||||
document.body
|
document.body
|
||||||
)}
|
)}
|
||||||
<Divider />
|
<Divider />
|
||||||
|
@ -350,34 +350,6 @@ pre::-webkit-scrollbar-thumb {
|
|||||||
font-family: inherit;
|
font-family: inherit;
|
||||||
}
|
}
|
||||||
|
|
||||||
.link-edit {
|
|
||||||
background-image: url(/images/icons/pencil-fill.svg);
|
|
||||||
background-size: 16px;
|
|
||||||
background-position: center;
|
|
||||||
background-repeat: no-repeat;
|
|
||||||
width: 35px;
|
|
||||||
vertical-align: -0.25em;
|
|
||||||
position: absolute;
|
|
||||||
right: 0;
|
|
||||||
top: 0;
|
|
||||||
bottom: 0;
|
|
||||||
cursor: pointer;
|
|
||||||
}
|
|
||||||
|
|
||||||
.link-edit-dark {
|
|
||||||
background-image: url(/images/icons/pencil-fill-dark.svg);
|
|
||||||
background-size: 16px;
|
|
||||||
background-position: center;
|
|
||||||
background-repeat: no-repeat;
|
|
||||||
width: 35px;
|
|
||||||
vertical-align: -0.25em;
|
|
||||||
position: absolute;
|
|
||||||
right: 0;
|
|
||||||
top: 0;
|
|
||||||
bottom: 0;
|
|
||||||
cursor: pointer;
|
|
||||||
}
|
|
||||||
|
|
||||||
.link-editor .link-input a {
|
.link-editor .link-input a {
|
||||||
color: rgb(33, 111, 219);
|
color: rgb(33, 111, 219);
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
|
Loading…
Reference in New Issue
Block a user