Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
69 commits
Select commit Hold shift + click to select a range
a034c59
Merge pull request #1 from iliterobotics/ProgrammingInitial
GlebBabahov Dec 10, 2020
1a77b79
Change Upcoming Events to Recent Events
GlebBabahov Dec 10, 2020
8a4938a
Resolved merge conflict with package-lock.json
DaveSauce Dec 13, 2020
5be2042
changed to 2020-21
agrimreaper49 Dec 16, 2020
f48b5c5
Catapult comp added to HostedEvents.js
agrimreaper49 Dec 16, 2020
313b0a7
readded virtual
agrimreaper49 Dec 17, 2020
cc28402
Merge pull request #2 from iliterobotics/gleb-recent-events
DaveSauce Dec 17, 2020
b164404
Merge branch 'master' into agrim-catapult
agrimreaper49 Dec 17, 2020
8249988
quick fixes
agrimreaper49 Jan 7, 2021
60fbe95
new folder is added for the catapult comp
agrimreaper49 Jan 7, 2021
9289fab
images fixed for now
agrimreaper49 Jan 7, 2021
fcddba3
Changed .container__content max_width to 1400px instead of 80%
GlebBabahov Jan 13, 2021
5e87627
Merge pull request #3 from iliterobotics/gleb-body-width
DaveSauce Jan 13, 2021
102d022
WIP
agrimreaper49 Jan 19, 2021
511ce3e
Basic text set up
IAbbasi04 Jan 21, 2021
f462e00
final changes, awaiting PR
agrimreaper49 Jan 28, 2021
c9f695d
Merge branch 'master' into agrim-catapult
agrimreaper49 Jan 28, 2021
6131630
Add unit test dependencies
oconnelc Jan 31, 2021
d5d36a9
Add unit test config file
oconnelc Jan 31, 2021
5be7086
Add configuration files for unit tests
oconnelc Jan 31, 2021
0f749c4
Add additional unit test config to get jest to work
oconnelc Jan 31, 2021
69b9747
Add a snapshot unit test for the history page
oconnelc Jan 31, 2021
73b4913
Add unit test capabilities
oconnelc Jan 31, 2021
9d90565
Create a PR template
oconnelc Jan 31, 2021
2542d4d
Merge pull request #5 from iliterobotics/PR_Template
oconnelc Jan 31, 2021
23e2a51
pr ready changed virtual season to 2019-2020 season
agrimreaper49 Feb 10, 2021
6bae337
Merge branch 'master' into agrim-catapult
agrimreaper49 Feb 10, 2021
b898a7e
Merge pull request #4 from iliterobotics/GatsbyUnitTest
DaveSauce Feb 11, 2021
d98bede
Merge pull request #7 from iliterobotics/agrim-catapult
oconnelc Feb 13, 2021
eba0a9e
Create a function to build the iframe for youtube video
oconnelc Jan 31, 2021
a2ecfef
Change the fullscreen flag from boolean to string
oconnelc Jan 31, 2021
a6f12c1
Merge pull request #6 from iliterobotics/HistoryFullScreenVideos
DaveSauce Feb 18, 2021
09e1332
Make the About ILite dropdown disappear on mouse exit
oconnelc Feb 19, 2021
19cd992
Make the Outreach dropdown disappear on mouseexit
oconnelc Feb 19, 2021
6e893c2
Page complete, still need to fix CSS and Banner
IAbbasi04 Feb 20, 2021
ccd2c2c
Fixed Issue with Banner
IAbbasi04 Feb 20, 2021
e9c7f8f
Potential Fix for CSS
IAbbasi04 Feb 20, 2021
49c56e1
Merge pull request #10 from iliterobotics/Pulldown
DaveSauce Mar 11, 2021
5040808
remove node_modules and run yarn install to update packages
GlebBabahov Apr 15, 2021
133cd16
remove container__bar
GlebBabahov Apr 15, 2021
3461671
added margin and fix white bar at bottom
GlebBabahov Apr 15, 2021
3086097
Merge pull request #11 from iliterobotics/gleb-container-layout
DaveSauce Apr 15, 2021
a032bcd
Removed Unnecessary Code
IAbbasi04 Apr 21, 2021
813b927
Merge remote-tracking branch 'origin/ibrahim-404-page' into ibrahim-4…
IAbbasi04 Apr 21, 2021
938e8c9
Renamed Files Back to Original
IAbbasi04 Apr 21, 2021
bb34435
removed past mentors
GlebBabahov Apr 27, 2021
7721e42
Add Debra Garcia
GlebBabahov Apr 27, 2021
f17ebbb
Remove unused css
DaveSauce Apr 29, 2021
9c20d0a
Merge branch 'master' into ibrahim-404-page
DaveSauce Apr 29, 2021
bfbc211
Merge pull request #12 from iliterobotics/ibrahim-404-page
DaveSauce Apr 29, 2021
166ae18
change test team to 'n/a'
GlebBabahov May 13, 2021
5a54ac6
add year joined
GlebBabahov May 16, 2021
7ce2bed
remove old unused team list
GlebBabahov May 16, 2021
0113857
css
GlebBabahov May 20, 2021
65e0acb
test data change
GlebBabahov May 20, 2021
2fc9643
member changes
GlebBabahov May 27, 2021
bfa33ee
added new application
agrimreaper49 Oct 12, 2021
d666bcd
Merge pull request #15 from iliterobotics/agrim-addapplication
oconnelc Oct 15, 2021
c01cd6c
Aligned text with bar with resize
jbiser361 Feb 20, 2021
e3a1d56
Created a max width of 600px for description of 'recent events'
jbiser361 Feb 20, 2021
741c849
Changed the layouts for the sub team bios, removing the headers for t…
jbiser361 Apr 8, 2021
edf49a0
Updated main page layout and updated the team bios paragrpahs padding…
jbiser361 Apr 17, 2021
d7add9a
Merge pull request #8 from iliterobotics/Max-width_pageLayouts
oconnelc Oct 15, 2021
b430a6b
Merge pull request #13 from iliterobotics/gleb-mentors-update
DaveSauce Oct 15, 2021
c3a45a6
google analytics added to gatsby-config
agrimreaper49 Feb 21, 2021
508e40a
Merge branch 'master' into gleb-unused-traits
DaveSauce Oct 15, 2021
2ea9be9
Merge pull request #14 from iliterobotics/gleb-unused-traits
DaveSauce Oct 15, 2021
06917f4
added the GA id through environment variable
agrimreaper49 Feb 24, 2021
990aba4
Merge pull request #9 from iliterobotics/agrim-analytics
oconnelc Oct 15, 2021
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
28 changes: 28 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<!--- Provide a general summary of your changes in the Title above -->

# Description
<!--- Describe your changes in detail -->

# Motivation and Context
<!--- Why is this change required? What problem does it solve? -->
<!--- If it fixes an open issue, please link to the issue here. -->

# How has this been tested?
<!--- Please describe in detail how you tested your changes. -->
<!--- Include details of your testing environment, tests ran to see how -->
<!--- your change affects other areas of the code, etc. -->

# Screenshots (if appropriate):

# Types of changes
<!--- What types of changes does your code introduce? Put an `x` in all the boxes that apply: -->
- [ ] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)

# Checklist:
<!--- Go over all the following points, and put an `x` in all the boxes that apply. -->
<!--- If you're unsure about any of these, don't hesitate to ask. We're here to help! -->
- [ ] My code follows the code style of this project.
- [ ] My change requires a change to the documentation.
- [ ] I have updated the documentation accordingly.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -157,3 +157,7 @@ To run the site locally: `yarn develop`
#### Note:

Do not write in any files in the `/public` directory. They are being generated by Gatsby and will be written over.


# Unit Testing
This project uses Jest. To run: ```npm test```
1 change: 1 addition & 0 deletions __mocks__/file-mock.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = "test-file-stub"
27 changes: 27 additions & 0 deletions __mocks__/gatsby.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
const React = require("react")
const gatsby = jest.requireActual("gatsby")

module.exports = {
...gatsby,
graphql: jest.fn(),
Link: jest.fn().mockImplementation(
// these props are invalid for an `a` tag
({
activeClassName,
activeStyle,
getProps,
innerRef,
partiallyActive,
ref,
replace,
to,
...rest
}) =>
React.createElement("a", {
...rest,
href: to,
})
),
StaticQuery: jest.fn(),
useStaticQuery: jest.fn(),
}
12 changes: 12 additions & 0 deletions gatsby-config.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,22 @@
require("dotenv").config({
path: `.env.${process.env.NODE_ENV}`
})

module.exports = {
siteMetadata: {
title: `Gatsby Default Starter`,
description: `Kick off your next, great Gatsby project with this default starter. This barebones starter ships with the main Gatsby configuration files you might need.`,
author: `@gatsbyjs`,
},
plugins: [
{
resolve: `gatsby-plugin-google-analytics`,
options: {
trackingId: process.env.GA_TRACKING_ID,
head: true,
anonymize: true,
},
},
`gatsby-plugin-react-helmet`,
{
resolve: `gatsby-source-filesystem`,
Expand Down
5 changes: 5 additions & 0 deletions jest-preprocess.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
const babelOptions = {
presets: ["babel-preset-gatsby"],
}

module.exports = require("babel-jest").createTransformer(babelOptions)
16 changes: 16 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
module.exports = {
transform: {
"^.+\\.jsx?$": `<rootDir>/jest-preprocess.js`,
},
moduleNameMapper: {
".+\\.(css|styl|less|sass|scss)$": `identity-obj-proxy`,
".+\\.(jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga|ico)$": `<rootDir>/__mocks__/file-mock.js`,
},
testPathIgnorePatterns: [`node_modules`, `\\.cache`, `<rootDir>.*/public`],
transformIgnorePatterns: [`node_modules/(?!(gatsby)/)`],
globals: {
__PATH_PREFIX__: ``,
},
testURL: `http://localhost`,
setupFiles: [`<rootDir>/loadershim.js`],
}
3 changes: 3 additions & 0 deletions loadershim.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
global.___loader = {
enqueue: jest.fn(),
}
22 changes: 16 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,23 +5,33 @@
"version": "0.1.0",
"author": "Kyle Mathews <mathews.kyle@gmail.com>",
"dependencies": {
"gatsby": "^2.19.12",
"gatsby": "^2.32.4",
"dotenv": "^8.2.0",
"gatsby-cli": "^2.15.0",
"gatsby-image": "^2.2.40",
"gatsby-plugin-google-analytics": "^2.11.0",
"gatsby-plugin-less": "^3.0.19",
"gatsby-plugin-manifest": "^2.2.41",
"gatsby-plugin-offline": "^3.0.34",
"gatsby-plugin-react-helmet": "^3.1.22",
"gatsby-plugin-sharp": "^2.4.5",
"gatsby-plugin-sharp": "^2.14.1",
"gatsby-source-filesystem": "^2.1.48",
"gatsby-transformer-sharp": "^2.3.14",
"gatsby-transformer-sharp": "^2.12.0",
"less": "^3.10.3",
"prop-types": "^15.7.2",
"react": "^16.12.0",
"react-dom": "^16.12.0",
"react-helmet": "^5.2.1"
"react-helmet": "^5.2.1",
"webpack": "^5.23.0",
"webpack-cli": "^4.5.0"
},
"devDependencies": {
"prettier": "^1.19.1"
"babel-jest": "^26.6.3",
"babel-preset-gatsby": "^0.11.0",
"identity-obj-proxy": "^3.0.0",
"jest": "^26.6.3",
"prettier": "^1.19.1",
"react-test-renderer": "^17.0.1"
},
"keywords": [
"gatsby"
Expand All @@ -35,7 +45,7 @@
"serve": "gatsby serve",
"deploy-staging": "aws s3 rm s3://ilite-staging --recursive && aws s3 cp --cache-control max-age=31536000 public s3://ilite-staging --recursive",
"clean": "gatsby clean",
"test": "echo \"Write tests! -> https://gatsby.dev/unit-testing\" && exit 1"
"test": "jest"
},
"repository": {
"type": "git",
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 11 additions & 1 deletion src/components/Dropdown/Dropdown.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,19 @@
import React, { Component } from "react"
import { Link } from "gatsby"

const mouseLeave = (toggleExtended) => {
console.log("STOP IT")
if(toggleExtended) {
toggleExtended();
}
};

class Dropdown extends Component {



render() {
const toggleExtended = this.props.toggleExtended;
const title = this.props.title
const extended = this.props.extended ? "show" : ""
const { links } = this.props
Expand All @@ -13,7 +23,7 @@ class Dropdown extends Component {
<div className="dropdown__button">
{title} <i className={`fa fa-caret-down`}></i>
</div>
<div className={`dropdown__content ${extended}`}>
<div className={`dropdown__content ${extended}`} onMouseLeave={()=>mouseLeave(toggleExtended)}>
{links.map(link => {
let filePath = `/${link.section}/${link.file}`

Expand Down
2 changes: 1 addition & 1 deletion src/components/SideMenu/SideMenu.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React, { Component } from "react"
import Link from "gatsby-link"
import {Link} from "gatsby"

class SideMenu extends Component {
constructor(props) {
Expand Down
2 changes: 1 addition & 1 deletion src/components/Tabs/Tabs.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,4 @@ export default class Tabs extends React.Component {
</div>
);
}
};
};
4 changes: 4 additions & 0 deletions src/components/banner/banner.import.less
Original file line number Diff line number Diff line change
Expand Up @@ -70,4 +70,8 @@

.sponsors__banner {
background-image: url('../../assets/images/frc/background/sponsors-banner.png');
}

.not__found_banner {
background-image: url('../../assets/images/frc/background/FRC-home-banner.png');
}
8 changes: 6 additions & 2 deletions src/components/members/members.import.less
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,18 @@
margin: 20px auto;
border: none;
box-shadow: 0px 5px 25px #DDD;
display: flex;
width: 100%;

@media all and (max-width: 990px) {
display: block;
overflow: hidden;
max-width: 300px;
}

.member__img {
display: block;
margin-right: 15px;
max-height: 200px;
max-width: 300px;
float: left;
Expand All @@ -32,8 +35,9 @@
}

.member__content {
margin-left: 310px;
padding-top: 20px;
margin-top: auto;
margin-bottom: auto;
width: calc(100% - 330px);

@media all and (max-width: 990px) {
float: left;
Expand Down
4 changes: 4 additions & 0 deletions src/components/navbar/Navbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -146,20 +146,24 @@ class Navbar extends Component {
title="Outreach"
links={outreachLinks}
extended={this.state.outreachDropdown}
toggleExtended={this.toggleOutreachDropdown}
/>
</div>
</li>
<li>
<div
onClick={() => this.toggleIliteDropdown()}
onKeyPress={this.handleKeyPress}
toggleExtended={this.toggleIliteDropdown}
role="button"
tabIndex={0}
>
<Dropdown
title="About ILITE"
links={iliteLinks}
extended={this.state.iliteDropdown}
toggleExtended={this.toggleIliteDropdown}
onfocusout={()=>console.log("Focus out!")}
/>
</div>
</li>
Expand Down
Loading