diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000..ece904f --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,14 @@ +{ + // Use IntelliSense to learn about possible attributes. + // Hover to view descriptions of existing attributes. + // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 + "version": "0.2.0", + "configurations": [ + { + "type": "node", + "request": "launch", + "name": "Launch Program", + "program": "${workspaceFolder}\\start" + } + ] +} \ No newline at end of file diff --git a/src/components/App.tsx b/src/components/App.tsx index b7bd628..40e14fa 100644 --- a/src/components/App.tsx +++ b/src/components/App.tsx @@ -1,20 +1,77 @@ import * as React from 'react'; import '../style/App.css'; -import { Redirect } from 'react-router'; -import Auth from "../services/Auth"; -import { withRouter } from 'react-router-dom'; +import AppBar from 'material-ui/AppBar'; +import Slider from './Slider'; +import Drawer from 'material-ui/Drawer'; +import SideBar from './Sidebar'; +import RaisedButton from 'material-ui/RaisedButton'; + +// hotfix for navbar +const styles = { + appBar: { + flexWrap: "wrap", + }, + floatRight: { + float: "right", + }, +}; class App extends React.Component { + allowedExtensions = ".n3,.ttl,.rdf"; + + constructor(props: string) { + super(props); + this.state = {open: false}; + this.handleToggle = this.handleToggle.bind(this); + } + + handleToggle(): void { + this.setState(prevState => ({ + open: !prevState.open + })); + } + render() { - if (! Auth.isLoggedIn()) { - return ; - } else { - return ( -

Hello World

- ); - } + return ( +
+ + this.setState({open})} + > + + + + +
+ + + + + accept={this.allowedExtensions} /> + +
+
+ +
+ +
+
+ ); + } + + uploadFileButton() { + var input = document.getElementById("importGraph"); + input.click(); } } -export default withRouter(App); +export default App; diff --git a/src/components/containerHome.tsx b/src/components/containerHome.tsx index df83eae..3519f40 100644 --- a/src/components/containerHome.tsx +++ b/src/components/containerHome.tsx @@ -56,6 +56,7 @@ class HomeContainer extends React.Component { style={{color: 'white'}} >