Skip to content
This repository was archived by the owner on Oct 7, 2020. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
c53c117
Added Drawer Branch
cindyunrau Nov 19, 2019
1f5ee38
Started drawer contents
cindyunrau Nov 25, 2019
38697af
Semester, GPA, Current Courses, Previous Courses added to Drawer Cont…
cindyunrau Nov 25, 2019
773ef7d
Recommiting to undo windows CR line endings
cindyunrau Nov 26, 2019
ecb5a62
just trying things
cindyunrau Nov 28, 2019
527a229
lets try this again
cindyunrau Nov 28, 2019
7dee131
Fix line endings
BraidenCutforth Nov 28, 2019
2004957
Merged Changes
cindyunrau Nov 28, 2019
32caa81
Fixed issues in Draft Pull Request #34
cindyunrau Nov 28, 2019
7451d15
fix line endings
BraidenCutforth Nov 28, 2019
4f4f28e
Added Drawer Branch
cindyunrau Nov 19, 2019
535b495
Started drawer contents
cindyunrau Nov 25, 2019
741c074
Semester, GPA, Current Courses, Previous Courses added to Drawer Cont…
cindyunrau Nov 25, 2019
57d3c94
Recommiting to undo windows CR line endings
cindyunrau Nov 26, 2019
aae9051
just trying things
cindyunrau Nov 28, 2019
16069b0
lets try this again
cindyunrau Nov 28, 2019
c61d3e1
Fix line endings
BraidenCutforth Nov 28, 2019
53698da
Fixed issues in Draft Pull Request #34
cindyunrau Nov 28, 2019
7afecf6
hard rebase
BraidenCutforth Jan 31, 2020
b17517a
I kinda forgot what changes are included in this commit, I'm just com…
cindyunrau Feb 4, 2020
e4b2b80
Made style in DrawerContent.tsx external (Style.tsx)
cindyunrau Feb 4, 2020
68faaed
messing with app.tsx
cindyunrau Feb 4, 2020
e590465
messing with app.tsx 2
cindyunrau Feb 4, 2020
41a6e65
Fixed Issue with nested lists, the semesters now collapse individually
cindyunrau Feb 4, 2020
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"typescript.tsdk": "node_modules/typescript/lib"
}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

In order to develop on this project you need the following:

- [node 12](https://nodejs.org/en/download/)
- [node 12](https://nodejs.org/en/download/)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like another format thing your editor did by accident 🙃


> It is suggested to use a node version manager such as [nvm](https://github.com/nvm-sh/nvm) (mac/linux) or [nvm-windows](https://github.com/coreybutler/nvm-windows) (windows). These allow you to switch between different node versions very easily. The installation/usage instructions are on the respective github pages.
Expand Down
14,687 changes: 7,348 additions & 7,339 deletions package-lock.json

Large diffs are not rendered by default.

4 changes: 1 addition & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@
"scripts": {
"test": "jest",
"build:prod": "webpack --mode production",
"start": "webpack-dev-server",
"lint": "eslint \"**/*.{t,j}s{x,}\"",
"lint:fix": "eslint --fix \"**/*.{t,j}s{x,}\""
"start": "webpack-dev-server"
},
"repository": {
"type": "git",
Expand Down
254 changes: 128 additions & 126 deletions src/components/ApplicationBar/ApplicationBar.tsx
Original file line number Diff line number Diff line change
@@ -1,135 +1,137 @@
import React from 'react';
import AppBar from '@material-ui/core/AppBar';
import CssBaseline from '@material-ui/core/CssBaseline';
import Drawer from '@material-ui/core/Drawer';
import Hidden from '@material-ui/core/Hidden';
import IconButton from '@material-ui/core/IconButton';
import MenuIcon from '@material-ui/icons/Menu';
import Toolbar from '@material-ui/core/Toolbar';
import Typography from '@material-ui/core/Typography';
import { makeStyles, useTheme, Theme, createStyles } from '@material-ui/core/styles';
import React from 'react'
import AppBar from '@material-ui/core/AppBar'
import CssBaseline from '@material-ui/core/CssBaseline'
import Drawer from '@material-ui/core/Drawer'
import DrawerContent from '../drawer-content/DrawerContent'
import Hidden from '@material-ui/core/Hidden'
import IconButton from '@material-ui/core/IconButton'
import MenuIcon from '@material-ui/icons/Menu'
import Toolbar from '@material-ui/core/Toolbar'
import Typography from '@material-ui/core/Typography'
import {
makeStyles,
useTheme,
Theme,
createStyles,
} from '@material-ui/core/styles'

const drawerWidth = 240;
const drawerWidth = 240

const useStyles = makeStyles((theme: Theme) =>
createStyles({
root: {
display: 'flex',
},
drawer: {
[theme.breakpoints.up('sm')]: {
width: drawerWidth,
flexShrink: 0,
},
},
appBar: {
[theme.breakpoints.up('sm')]: {
width: `calc(100% - ${drawerWidth}px)`,
marginLeft: drawerWidth,
},
},
sectionDesktop: {
display: 'none',
[theme.breakpoints.up('md')]: {
display: 'flex-end',
},
},
menuButton: {
marginRight: theme.spacing(2),
[theme.breakpoints.up('sm')]: {
display: 'none',
},
},
toolbar: theme.mixins.toolbar,
drawerPaper: {
width: drawerWidth,
},
content: {
flexGrow: 1,
padding: theme.spacing(3),
},
}),
);


createStyles({
root: {
display: 'flex',
},
drawer: {
[theme.breakpoints.up('sm')]: {
width: drawerWidth,
flexShrink: 0,
},
},
appBar: {
[theme.breakpoints.up('sm')]: {
width: `calc(100% - ${drawerWidth}px)`,
marginLeft: drawerWidth,
},
},
sectionDesktop: {
display: 'none',
[theme.breakpoints.up('md')]: {
display: 'flex-end',
},
},
menuButton: {
marginRight: theme.spacing(2),
[theme.breakpoints.up('sm')]: {
display: 'none',
},
},
toolbar: theme.mixins.toolbar,
drawerPaper: {
width: drawerWidth,
},
content: {
flexGrow: 1,
padding: theme.spacing(3),
},
}),
)

export default function ApplicationBar() {
const classes = useStyles();
const theme = useTheme();
const [mobileOpen, setMobileOpen] = React.useState(false);
const classes = useStyles()
const theme = useTheme()
const [mobileOpen, setMobileOpen] = React.useState(false)

const handleDrawerToggle = () => {
setMobileOpen(!mobileOpen);
};
const handleDrawerToggle = () => {
setMobileOpen(!mobileOpen)
}

const drawer = <div>
<h1>HELLO THIS IS DRAWER</h1>
</div>
const drawer = (
<div>
<h1>HELLO THIS IS DRAWER</h1>
</div>
)

return (
<div className={classes.root}>
<CssBaseline />
<AppBar position="fixed" className={classes.appBar}>
<Toolbar>
<IconButton
color="inherit"
aria-label="open drawer"
edge="start"
onClick={handleDrawerToggle}
className={classes.menuButton}
>
<MenuIcon />
</IconButton>
<Typography variant="h4" noWrap>
Passr
</Typography>
<div className={classes.sectionDesktop}>
<IconButton
edge="end"
aria-label="account of current user"
aria-haspopup="true"
color="inherit"
>
</IconButton>
</div>
</Toolbar>
</AppBar>
<nav className={classes.drawer} aria-label="mailbox folders">
{/* The implementation can be swapped with js to avoid SEO duplication of links. */}
<Hidden smUp implementation="css">
<Drawer
variant="temporary"
anchor={theme.direction === 'rtl' ? 'right' : 'left'}
open={mobileOpen}
onClose={handleDrawerToggle}
classes={{
paper: classes.drawerPaper,
}}
ModalProps={{
keepMounted: true, // Better open performance on mobile.
}}
>
</Drawer>
</Hidden>
<Hidden xsDown implementation="css">
<Drawer
classes={{
paper: classes.drawerPaper,
}}
variant="permanent"
open
>
{drawer}
</Drawer>
</Hidden>
</nav>
<main className={classes.content}>
<div className={classes.toolbar} />
{/* Insert CourseContent here */}
<Typography paragraph>
INSERT CONTENT HERE
</Typography>
</main>
</div>
);
return (
<div className={classes.root}>
<CssBaseline />
<AppBar position="fixed" className={classes.appBar}>
<Toolbar>
<IconButton
color="inherit"
aria-label="open drawer"
edge="start"
onClick={handleDrawerToggle}
className={classes.menuButton}
>
<MenuIcon />
</IconButton>
<Typography variant="h4" noWrap>
Passr
</Typography>
<div className={classes.sectionDesktop}>
<IconButton
edge="end"
aria-label="account of current user"
aria-haspopup="true"
color="inherit"
></IconButton>
</div>
</Toolbar>
</AppBar>
<nav className={classes.drawer} aria-label="mailbox folders">
{/* The implementation can be swapped with js to avoid SEO duplication of links. */}
<Hidden smUp implementation="css">
<Drawer
variant="temporary"
anchor={theme.direction === 'rtl' ? 'right' : 'left'}
open={mobileOpen}
onClose={handleDrawerToggle}
classes={{
paper: classes.drawerPaper,
}}
ModalProps={{
keepMounted: true, // Better open performance on mobile.
}}
></Drawer>
</Hidden>
<Hidden xsDown implementation="css">
<Drawer
classes={{
paper: classes.drawerPaper,
}}
variant="permanent"
open
>
<DrawerContent />
</Drawer>
</Hidden>
</nav>
<main className={classes.content}>
<div className={classes.toolbar} />
{/* Insert CourseContent here */}
<Typography paragraph>INSERT CONTENT HERE</Typography>
</main>
</div>
)
}
8 changes: 4 additions & 4 deletions src/components/app/app.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import React from 'react'
import NavBar from '../nav/nav'
import { makeStyles, Theme, createStyles, Grid, AppBar } from '@material-ui/core'
import ApplicationBar from '../ApplicationBar/ApplicationBar'
import { makeStyles, Theme, createStyles, Grid } from '@material-ui/core'

const useStyles = makeStyles((theme: Theme) =>
createStyles({
Expand All @@ -15,8 +14,9 @@ export const App: React.FC = () => {
const classes = useStyles()
return (
<div id="app" className={classes.root}>
<ApplicationBar/>
<h1>Content put here will not be rendered properly </h1>
<NavBar />
<h1>Passr</h1>
<p>Congratulation, you have successfully started Passr.</p>
</div>
)
}
Expand Down
10 changes: 10 additions & 0 deletions src/components/drawer-content/CourseSort.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import React from 'react';
import {user1} from '../../services/storage/mock'

export const CourseSort: React.FC = () => {

return <div id='course_sort' >
Heyo
</div>

}
Loading