-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #138 from sandboxnu/mlp-backend
Add mlp backend
- Loading branch information
Showing
113 changed files
with
6,651 additions
and
2,528 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
SKIP_PREFLIGHT_CHECK=true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
module.exports = { | ||
extends: ['airbnb-typescript', 'eslint-config-prettier'], | ||
parserOptions: { | ||
project: './tsconfig.eslint.json', | ||
}, | ||
plugins: ['prettier'], | ||
rules: { | ||
'prettier/prettier': [ | ||
'error', | ||
{ | ||
singleQuote: true, | ||
printWidth: 80, | ||
arrowParens: 'avoid', | ||
trailingComma: 'all', | ||
endOfLine: 'auto', | ||
}, | ||
], | ||
// incompatible with prettier | ||
'react/jsx-curly-newline': 'off', | ||
'react/jsx-indent': 'off', | ||
'react/jsx-wrap-multilines': 'off', | ||
'react/jsx-closing-tag-location': 'off', | ||
'react/no-array-index-key': 'warn', | ||
'@typescript-eslint/indent': 'off', | ||
|
||
// we're using typescript, so we have prop types | ||
'react/prop-types': 'off', | ||
|
||
// personal preference | ||
'react/jsx-props-no-spreading': 'off', | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
const tailwindcss = require('tailwindcss'); | ||
|
||
module.exports = { | ||
plugins: [ | ||
tailwindcss('./tailwind.config.js') | ||
] | ||
plugins: [tailwindcss('./tailwind.config.js')], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,44 +1,28 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<html lang="en-us"> | ||
<head> | ||
<meta charset="utf-8" /> | ||
<!--<link rel="icon" href="%PUBLIC_URL%/favicon.ico" />--> | ||
<link rel="icon" href="./favicon.ico" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1" /> | ||
<meta name="theme-color" content="#000000" /> | ||
<meta | ||
name="description" | ||
content="Web site created using create-react-app" | ||
/> | ||
<meta name="description" content="A student-developed project to teach students about artificial intelligence techniques using interactive demos"/> | ||
<meta name="keywords" content="a-eye, artificial intelligence, sandbox, northeastern"/> | ||
<meta name="author" content="SandboxNU"/> | ||
<meta property="og:title" content="Your Eye and A-Eye" /> | ||
<meta property="og:type" content="website" /> | ||
<meta property="og:url" content="https://a-eye.sandboxnu.com" /> | ||
<meta property="og:image" content="%PUBLIC_URL%/logo192.png"/> | ||
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" /> | ||
<link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" /> | ||
<!-- | ||
manifest.json provides metadata used when your web app is installed on a | ||
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/ | ||
--> | ||
<link rel="manifest" href="%PUBLIC_URL%/manifest.json" /> | ||
<!-- | ||
Notice the use of %PUBLIC_URL% in the tags above. | ||
It will be replaced with the URL of the `public` folder during the build. | ||
Only files inside the `public` folder can be referenced from the HTML. | ||
Unlike "/favicon.ico" or "favicon.ico", "%PUBLIC_URL%/favicon.ico" will | ||
work correctly both with client-side routing and a non-root public URL. | ||
Learn how to configure a non-root public URL by running `npm run build`. | ||
--> | ||
<meta name="twitter:card" content="summary"/> | ||
<meta name="twitter:description" content="A student-developed project to teach students about artificial intelligence techniques using interactive demos"/> | ||
<meta name="twitter:title" content="Your Eye and AI"/> | ||
<meta name="twitter:site" content="https://a-eye.sandboxnu.com"/> | ||
<meta name="twitter:image" content="%PUBLIC_URL%/logo192.png"/> | ||
<title>Your Eye and AI</title> | ||
</head> | ||
<body> | ||
<noscript>You need to enable JavaScript to run this app.</noscript> | ||
<div id="root"></div> | ||
<!-- | ||
This HTML file is a template. | ||
If you open it directly in the browser, you will see an empty page. | ||
You can add webfonts, meta tags, or analytics to this file. | ||
The build step will place the bundled scripts into the <body> tag. | ||
To begin the development, run `npm start` or `yarn start`. | ||
To create a production bundle, use `npm run build` or `yarn build`. | ||
--> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
/* eslint-disable */ | ||
import React from 'react'; | ||
import { BrowserRouter, Route, Switch } from 'react-router-dom'; | ||
import { createMuiTheme } from '@material-ui/core/styles'; | ||
import { ThemeProvider } from '@material-ui/styles'; | ||
import Navbar from './Navbar'; | ||
import Footer from './footer'; | ||
|
||
import './index.css'; | ||
import AboutPage from './aboutPage/AboutPage'; | ||
import LandingPage from './landingPage/LandingPage'; | ||
import ModulePage from './modulePage/ModulePage'; | ||
|
||
// change colors as needed | ||
const THEME = createMuiTheme({ | ||
palette: { | ||
primary: { | ||
main: '#394D73', // same as footer color | ||
}, | ||
secondary: { | ||
main: '#0FD4C0', // logo teal | ||
}, | ||
}, | ||
}); | ||
|
||
function App() { | ||
return ( | ||
<BrowserRouter> | ||
<div className="App" id="app"> | ||
<ThemeProvider theme={THEME}> | ||
<div className="App-header"> | ||
<Navbar /> | ||
</div> | ||
<main className="font-mono text-lg font-charcoal"> | ||
<Switch> | ||
<Route exact path="/" component={LandingPage} /> | ||
<Route path="/home" component={LandingPage} /> | ||
<Route path="/modules/:module" component={ModulePage} /> | ||
<Route path="/about" component={AboutPage} /> | ||
</Switch> | ||
</main> | ||
<div> | ||
<Footer /> | ||
</div> | ||
</ThemeProvider> | ||
</div> | ||
</BrowserRouter> | ||
); | ||
} | ||
|
||
export default App; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
/* eslint-disable */ | ||
import React, { useState } from 'react'; | ||
import descriptions from './media/modules/module_descriptions.json'; | ||
|
||
export default function ModuleDropdown() { | ||
const [buttonHover, setButtonHover] = useState(false); | ||
const [dropdownHover, setDropdownHover] = useState(false); | ||
|
||
return ( | ||
<div className=""> | ||
<button | ||
type="button" | ||
onMouseOver={() => setButtonHover(true)} | ||
onFocus={() => setButtonHover(true)} | ||
onMouseOut={() => setButtonHover(false)} | ||
onBlur={() => setButtonHover(false)} | ||
> | ||
<p className="text-xs text-white uppercase font-opensans font-bold"> | ||
Modules | ||
</p> | ||
</button> | ||
<div | ||
className={`absolute ${ | ||
!(buttonHover || dropdownHover) && 'hidden' | ||
} -mt-1 -ml-10 justify-start rounded-b divide-y divide-moduleDarkBlue bg-navbar`} | ||
onMouseOver={() => setDropdownHover(true)} | ||
onFocus={() => setDropdownHover(true)} | ||
onMouseOut={() => setDropdownHover(false)} | ||
onBlur={() => setDropdownHover(false)} | ||
> | ||
<br /> | ||
{descriptions.modules | ||
.filter(({ active }) => active) | ||
.map(module => ( | ||
<div className="py-1 mx-2 text-left"> | ||
<a | ||
className="text-xs uppercase font-opensans font-bold text-white hover:text-moduleTeal" | ||
href={`/modules/${module.path}`} | ||
key={module.number.toString()} | ||
> | ||
{module.dropdownTitle} | ||
</a> | ||
</div> | ||
))} | ||
</div> | ||
</div> | ||
); | ||
} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.