Skip to content

Commit

Permalink
Run prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
Clue88 committed Sep 26, 2024
1 parent 5ee235e commit f292dff
Show file tree
Hide file tree
Showing 111 changed files with 672 additions and 814 deletions.
28 changes: 16 additions & 12 deletions .github/cdk/main.ts
Original file line number Diff line number Diff line change
@@ -1,25 +1,29 @@
import { Construct } from "constructs";
import { App, Stack, Workflow } from "cdkactions";
import { DeployJob, ReactProject } from "@pennlabs/kraken";
import { Construct } from 'constructs'
import { App, Stack, Workflow } from 'cdkactions'
import { DeployJob, ReactProject } from '@pennlabs/kraken'

export class WebsiteStack extends Stack {
constructor(scope: Construct, name: string) {
super(scope, name);
super(scope, name)
const workflow = new Workflow(this, 'build-and-deploy', {
name: 'Build and Deploy',
on: 'push',
});
})

const websiteJob = new ReactProject(workflow, {
imageName: 'website',
});
})

new DeployJob(workflow, {}, {
needs: [websiteJob.publishJobId]
});
new DeployJob(
workflow,
{},
{
needs: [websiteJob.publishJobId],
},
)
}
}

const app = new App();
new WebsiteStack(app, 'website');
app.synth();
const app = new App()
new WebsiteStack(app, 'website')
app.synth()
12 changes: 3 additions & 9 deletions .github/cdk/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@
"experimentalDecorators": true,
"inlineSourceMap": true,
"inlineSources": true,
"lib": [
"es2018"
],
"lib": ["es2018"],
"module": "CommonJS",
"noEmitOnError": true,
"noFallthroughCasesInSwitch": true,
Expand All @@ -24,10 +22,6 @@
"stripInternal": true,
"target": "ES2018"
},
"include": [
"**/*.ts"
],
"exclude": [
"node_modules"
]
"include": ["**/*.ts"],
"exclude": ["node_modules"]
}
12 changes: 3 additions & 9 deletions k8s/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@
"experimentalDecorators": true,
"inlineSourceMap": true,
"inlineSources": true,
"lib": [
"es2016"
],
"lib": ["es2016"],
"module": "CommonJS",
"noEmitOnError": true,
"noFallthroughCasesInSwitch": true,
Expand All @@ -24,10 +22,6 @@
"stripInternal": true,
"target": "ES2017"
},
"include": [
"**/*.ts"
],
"exclude": [
"node_modules"
]
"include": ["**/*.ts"],
"exclude": ["node_modules"]
}
2 changes: 1 addition & 1 deletion src/blog/spot-postmortem.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,4 +73,4 @@ To solve these issues more quickly in the future, we should have better alerting

## Reach Out

If any of this looks like it's up your alley or you wanna learn more about our mission, be sure to email us at [[email protected]](mailto:[email protected]) or [apply to be a part of Labs](https://pennlabs.org/apply)! We've got some fantastic teams working on interesting problems with a direct impact on campus.
If any of this looks like it's up your alley or you wanna learn more about our mission, be sure to email us at [[email protected]](mailto:[email protected]) or [apply to be a part of Labs](https://pennlabs.org/apply)! We've got some fantastic teams working on interesting problems with a direct impact on campus.
10 changes: 8 additions & 2 deletions src/components/Blog/Byline.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
import React from 'react'
import { Link, useStaticQuery, graphql } from 'gatsby'
import styled from 'styled-components'
import { FluidObject, GatsbyImageFluidProps, GatsbyImageProps } from 'gatsby-image'
import {
FluidObject,
GatsbyImageFluidProps,
GatsbyImageProps,
} from 'gatsby-image'
import BackgroundImage from 'gatsby-background-image'

import { TEAM_MEMBER_ROUTE, HOME_ROUTE } from '../../constants/routes'
Expand Down Expand Up @@ -83,7 +87,9 @@ const Byline = ({ authors }: { authors: IMember[] }) => {
)
}

const getMemberImage = (localImage: { childImageSharp: GatsbyImageFluidProps }) =>
const getMemberImage = (localImage: {
childImageSharp: GatsbyImageFluidProps
}) =>
(localImage &&
localImage.childImageSharp &&
localImage.childImageSharp.fluid) ||
Expand Down
9 changes: 6 additions & 3 deletions src/components/Blog/MemberBio.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@ const StyledCenteredFlex = styled(CenteredFlex)`
const MemberBio = ({
author: { pennkey, localImage, bio = '', name },
}: IMemberBioProps): React.ReactElement => {

// Bios may contain markdown. Make sure to parse these into HTML!
const [bioAsHtml, updateBioAsHtml] = useState(bio)
markdownProcessor
Expand All @@ -84,12 +83,16 @@ const MemberBio = ({
<Fade distance={M1}>
<Card shaded>
<StyledCenteredFlex>
<Thumbnail src={(localImage?.childImageSharp.fluid as FluidObject).src} />
<Thumbnail
src={(localImage?.childImageSharp.fluid as FluidObject).src}
/>
<div>
<H4 mb2>{name}</H4>
<Bio dangerouslySetInnerHTML={{ __html: bioAsHtml }} />

<div style={{ transform: 'scale(0.8)', transformOrigin: 'top left' }}>
<div
style={{ transform: 'scale(0.8)', transformOrigin: 'top left' }}
>
<Link to={TEAM_MEMBER_ROUTE(pennkey)}>
Learn more <LinkChevronRightIcon />
</Link>
Expand Down
6 changes: 3 additions & 3 deletions src/components/Home/Mailchimp.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export class Mailchimp extends React.Component<{}, IMailchimpState> {
name="EMAIL"
id="email"
required
onChange={e =>
onChange={(e) =>
this.handleChange(e as React.ChangeEvent<HTMLInputElement>)
}
/>
Expand All @@ -76,7 +76,7 @@ export class Mailchimp extends React.Component<{}, IMailchimpState> {
name="FNAME"
id="firstName"
required={false}
onChange={e =>
onChange={(e) =>
this.handleChange(e as React.ChangeEvent<HTMLInputElement>)
}
/>
Expand All @@ -89,7 +89,7 @@ export class Mailchimp extends React.Component<{}, IMailchimpState> {
name="LNAME"
id="lastName"
required={false}
onChange={e =>
onChange={(e) =>
this.handleChange(e as React.ChangeEvent<HTMLInputElement>)
}
/>
Expand Down
4 changes: 2 additions & 2 deletions src/components/Home/Stats.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,12 @@ import {
} from '../../constants/measurements'

const StatWrapper = styled.div<{ colorAlpha: (a: number) => string }>`
background: ${props => props.colorAlpha(1)};
background: ${(props) => props.colorAlpha(1)};
padding: 1rem;
border-radius: ${BORDER_RADIUS_LG};
margin-bottom: 1.5rem;
width: 100%;
box-shadow: 0 1px 8px ${props => props.colorAlpha(0.5)};
box-shadow: 0 1px 8px ${(props) => props.colorAlpha(0.5)};
display: flex;
justify-content: space-between;
Expand Down
2 changes: 1 addition & 1 deletion src/components/Nav/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const StyledNav = styled.nav<{ active: boolean }>`
padding-bottom: 0.5rem;
background: ${WHITE};
min-height: 0;
max-height: ${props => {
max-height: ${(props) => {
// Kinda kills the close transition, but it's a hack to get the height right
return props.active ? '100vh' : MOBILE_HEADER_HEIGHT
}};
Expand Down
11 changes: 6 additions & 5 deletions src/components/Products/ProductOverview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,23 +9,24 @@ const Image = styled.img<{ isEven: boolean }>`
width: 100%;
${maxWidth(TABLET)} {
${props => (props.isEven ? 'padding-left: 15%;' : 'padding-right: 15%;')}
${(props) => (props.isEven ? 'padding-left: 15%;' : 'padding-right: 15%;')}
}
${maxWidth(PHONE)} {
${props => (props.isEven ? 'padding-left: 1rem;' : 'padding-right: 1rem;')}
${(props) =>
props.isEven ? 'padding-left: 1rem;' : 'padding-right: 1rem;'}
}
`

const Img = props => <Image as={GatsbyImage} {...props} />
const Img = (props) => <Image as={GatsbyImage} {...props} />

const StyledContainer = styled(Container)<{ isEven: boolean }>`
display: flex;
justify-content: center;
align-items: ${props => (props.isEven ? 'flex-end' : 'flex-start')};
align-items: ${(props) => (props.isEven ? 'flex-end' : 'flex-start')};
flex-direction: column;
${props =>
${(props) =>
props.isEven &&
`
* {
Expand Down
2 changes: 1 addition & 1 deletion src/components/Resources/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export const Resources = () => (
<Section style={{ paddingTop: 0 }}>
<Fade>
<Row margin={M1}>
{resources.map(props => (
{resources.map((props) => (
<Resource key={props.name} {...props} />
))}
</Row>
Expand Down
8 changes: 4 additions & 4 deletions src/components/Team/TeamMemberPreview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import { TEAM_MEMBER_ROUTE } from '../../constants/routes'
import { BLACK_ALPHA } from '../../constants/colors'
import { IMember } from '../../types'

const StyledLink = styled(Link) <{}>`
const StyledLink = styled(Link)<{}>`
width: calc(100% + ${M2} + ${M2});
padding: ${M2};
border-radius: ${BORDER_RADIUS_LG};
Expand Down Expand Up @@ -52,9 +52,9 @@ export const TeamMemberPreview = ({
}: IMember) => (
<Col margin={M2} sm={12} md={6} lg={3} key={pennkey}>
<StyledLink to={TEAM_MEMBER_ROUTE(pennkey)}>
{
localImage?.childImageSharp.fluid && <Image fluid={localImage.childImageSharp.fluid} />
}
{localImage?.childImageSharp.fluid && (
<Image fluid={localImage.childImageSharp.fluid} />
)}
<P mb1 lg>
<strong>{name}</strong>
</P>
Expand Down
4 changes: 1 addition & 3 deletions src/json/alumni/aanten.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@
"bio": "Hi! I'm a sophomore studying math & CS in the college and an avid proponent of Buffalo Wild Wings.",
"hometown": "Long Island, NY",
"team": "Penn Mobile",
"roles": [
"iOS Mobile Engineer"
],
"roles": ["iOS Mobile Engineer"],
"photo": "https://i.imgur.com/i271XGY.jpg",
"linkedin": "https://www.linkedin.com/in/andrew-antenberg/",
"website": "",
Expand Down
1 change: 0 additions & 1 deletion src/json/alumni/anagwekar.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,3 @@
"graduation_year": 2025,
"job": null
}

6 changes: 2 additions & 4 deletions src/json/alumni/annajg.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@
"bio": "My holy trinity consists of painting, pasta, and Percy Jackson. Also a VSCO HB2 enthusiast :)",
"hometown": "Edison, NJ",
"team": "Penn Mobile",
"roles": [
"Designer"
],
"roles": ["Designer"],
"photo": "https://i.imgur.com/acetToI.jpg",
"linkedin": "https://www.linkedin.com/in/annasjiang/",
"website": "https://annasjiang.github.io/",
Expand All @@ -17,4 +15,4 @@
"alumnus": true,
"graduation_year": 2023,
"job": null
}
}
6 changes: 2 additions & 4 deletions src/json/alumni/annawang.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@
"bio": "former wii fit user",
"hometown": "Saratoga, CA",
"team": "Penn Mobile",
"roles": [
"Designer"
],
"roles": ["Designer"],
"photo": "https://i.imgur.com/QAXyuBW.jpg",
"linkedin": "https://www.linkedin.com/in/annalinwang/",
"website": "http://annalinwang.com/",
Expand All @@ -17,4 +15,4 @@
"alumnus": true,
"graduation_year": 2023,
"job": null
}
}
6 changes: 2 additions & 4 deletions src/json/alumni/annipan.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@
"bio": "Hi there! I'm a sophomore at Penn studying CIS + MATH. In my free time I can be found playing with my cat, practicing guitar, reading or sleeping ;)",
"hometown": "Nanjing, China",
"team": "Penn Mobile",
"roles": [
"Backend Engineer"
],
"roles": ["Backend Engineer"],
"photo": "https://i.imgur.com/S1kfAT4.jpg",
"linkedin": "https://www.linkedin.com/in/anni-pan-17b95b179/",
"website": "https://annypan.github.io/personal_website/",
Expand All @@ -17,4 +15,4 @@
"alumnus": true,
"graduation_year": 2023,
"job": null
}
}
6 changes: 2 additions & 4 deletions src/json/alumni/astrike.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@
"bio": "Backend Dev on Penn mobile, CIS Major 2023 :)",
"hometown": "Johannesburg, South Africa",
"team": "Penn Mobile",
"roles": [
"Backend Engineer"
],
"roles": ["Backend Engineer"],
"photo": "https://i.imgur.com/lXMeM7y.jpg",
"linkedin": null,
"website": null,
Expand All @@ -17,4 +15,4 @@
"alumnus": true,
"graduation_year": 2023,
"job": null
}
}
6 changes: 2 additions & 4 deletions src/json/alumni/avnia.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,7 @@
"bio": "I'm a sophomore studying Comp + Cog Sci and hopefully minoring in Creative Writing. I love movies, food, and playing obscure board games with my siblings :)",
"hometown": "New York City",
"team": "Penn Courses",
"roles": [
"Designer"
],
"roles": ["Designer"],
"photo": "https://i.imgur.com/V4RclNb.png",
"linkedin": null,
"website": null,
Expand All @@ -17,4 +15,4 @@
"alumnus": true,
"graduation_year": 2022,
"job": null
}
}
1 change: 0 additions & 1 deletion src/json/alumni/bqle.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,3 @@
"graduation_year": 2025,
"job": null
}

7 changes: 2 additions & 5 deletions src/json/alumni/cbaile.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,7 @@
"bio": "Hi,I am Peter studying Computer Science.",
"hometown": "Hong Kong",
"team": "Office Hours Queue",
"roles": [
"Backend Engineer",
"Frontend Engineer"
],
"roles": ["Backend Engineer", "Frontend Engineer"],
"photo": "https://i.imgur.com/LLPmYNK.jpg",
"linkedin": "https://www.linkedin.com/in/peter-chen-ba7847153/",
"website": null,
Expand All @@ -18,4 +15,4 @@
"alumnus": true,
"graduation_year": null,
"job": null
}
}
Loading

0 comments on commit f292dff

Please sign in to comment.