{"size": 2636, "ext": "js", "max_stars_repo_path": "example/src/App.js", "max_stars_repo_name": "dp50mm/hyperobjects-language", "max_stars_repo_stars_event_min_datetime": null, "max_stars_repo_stars_event_max_datetime": null, "max_issues_repo_path": "example/src/App.js", "max_issues_repo_name": "dp50mm/hyperobjects-language", "max_issues_repo_issues_event_min_datetime": "2022-02-27T11:48:04.000Z", "max_issues_repo_issues_event_max_datetime": "2022-02-27T11:48:04.000Z", "max_forks_repo_path": "example/src/App.js", "max_forks_repo_name": "dp50mm/hyperobjects-language", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": null, "max_issues_count": 1, "max_forks_count": null, "avg_line_length": 30.6511627907, "max_line_length": 69, "alphanum_fraction": 0.5868740516}
import React from 'react'
import {
  BrowserRouter as Router,
  Switch,
  Route,
  Link
} from "react-router-dom";
import {
  Menu
} from 'semantic-ui-react'
import MainPage from 'containers/MainPage'
import GeometriesPage from 'containers/GeometriesPage'
import ProceduresPage from 'containers/ProceduresPage'
import InputsPage from 'containers/InputsPage'
import ImportExportPage from 'containers/ImportExportPage'
import ModelsPage from 'containers/ModelsPage'
import FramePage from 'containers/FramePage'
import ScriptingPage from 'containers/ScriptingPage'
import PerformancePage from 'containers/PerformancePage'
import FullScreenTestPage from 'containers/FullScreenTestPage'

import 'hyperobjects-language/dist/index.css'
import 'semantic-ui-css/semantic.min.css';
import './app.scss';

const App = () => {
  if(window.location.href.includes('/full-screen-test')) {
    return (
      <FullScreenTestPage />
    )
  }
  return (
    <div className='app'>
      <Router>
        <Menu>
          <Menu.Item>
            <h3>Hyperobjects Language test suite</h3>
          </Menu.Item>
          <Menu.Item>
            <Link to='/'>Home</Link>
          </Menu.Item>
          <Menu.Item>
            <Link to='/models'>Models</Link>
          </Menu.Item>
          <Menu.Item>
          <Link to='/import-export'>Import/Export</Link>
          </Menu.Item>
          <Menu.Item>
          <Link to='/geometries'>Geometries</Link>
          </Menu.Item>
          <Menu.Item>
          <Link to='/procedures'>Procedures</Link>
          </Menu.Item>
          <Menu.Item>
          <Link to='/inputs'>Inputs</Link>
          </Menu.Item>
          <Menu.Item>
          <Link to='/frame'>Frame</Link>
          </Menu.Item>
          <Menu.Item>
            <Link to='/scripting'>Scripting</Link>
          </Menu.Item>
          <Menu.Item>
            <Link to='/performance'>Perfomance</Link>
          </Menu.Item>
        </Menu>
        <div className='page-content'>
          <Switch>
            <Route path='/models'><ModelsPage /></Route>
            <Route path='/import-export'><ImportExportPage /></Route>
            <Route path='/geometries'><GeometriesPage /></Route>
            <Route path='/procedures'><ProceduresPage /></Route>
            <Route path='/inputs'><InputsPage /></Route>
            <Route path='/frame'><FramePage /></Route>
            <Route path='/scripting'><ScriptingPage /></Route>
            <Route path='/performance'><PerformancePage /></Route>
            <Route path='/'><MainPage /></Route>
          </Switch>
        </div>
      </Router>
    </div>
  )
}

export default App
