diff --git a/static/package-lock.json b/static/package-lock.json index ad3c97a..2ebc810 100644 --- a/static/package-lock.json +++ b/static/package-lock.json @@ -1,12 +1,12 @@ { "name": "schema-interface", - "version": "0.5.5", + "version": "0.6", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "schema-interface", - "version": "0.5.5", + "version": "0.6", "license": "ISC", "dependencies": { "@emotion/react": "^11.7.1", diff --git a/static/package.json b/static/package.json index 085f568..2195a69 100644 --- a/static/package.json +++ b/static/package.json @@ -1,6 +1,6 @@ { "name": "schema-interface", - "version": "0.5.5", + "version": "0.6", "description": "Schema Curation Interface", "private": true, "scripts": { diff --git a/static/src/public/canvas_bg.png b/static/src/public/canvas_bg.png deleted file mode 100644 index b85d846..0000000 Binary files a/static/src/public/canvas_bg.png and /dev/null differ diff --git a/static/src/public/logo.png b/static/src/public/logo.png deleted file mode 100644 index b2046c7..0000000 Binary files a/static/src/public/logo.png and /dev/null differ diff --git a/static/src/template/Compare.jsx b/static/src/template/Compare.jsx deleted file mode 100644 index c59199c..0000000 --- a/static/src/template/Compare.jsx +++ /dev/null @@ -1,17 +0,0 @@ -import React, { Component } from 'react'; - -class Compare extends Component { - constructor(props) { - super(props) - } - - render() { - return ( -
- This is the Compare. -
- ) - } -} - -export default Compare; \ No newline at end of file diff --git a/static/src/template/Editable.jsx b/static/src/template/Editable.jsx deleted file mode 100644 index 437d120..0000000 --- a/static/src/template/Editable.jsx +++ /dev/null @@ -1,47 +0,0 @@ -import React, { useState } from "react"; - -// BUG editing bar is not wrapped to the sidebar -// From https://github.com/learnwithparam/logrocket-inline-edit-ui// -// https://blog.logrocket.com/building-inline-editable-ui-in-react/ -const Editable = ({ - text, - type, - placeholder, - children, - ...props -}) => { - - const [isEditing, setEditing] = useState(false); - - // Event handler while pressing any key while editing - const handleKeyDown = (e) => { - const keys = ["Escape", "Tab", "Enter"]; - if (e in keys) { - setEditing(false); - } - }; - - return ( -
- {isEditing ? ( -
setEditing(false)} - onKeyDown={e => handleKeyDown(e)} - > - {children} - -
- ) : ( -
setEditing(true)} - > - - {text || placeholder || "___"} - -
- )} -
- ); -}; - -export default Editable; \ No newline at end of file