-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
πππ Open Source πππ
- Loading branch information
0 parents
commit 3f76723
Showing
556 changed files
with
69,544 additions
and
0 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,34 @@ | ||
steps: | ||
- label: "npm ci" | ||
commands: | ||
- "source use-node 14" | ||
- "npm ci" | ||
- "tar -czf node_modules.tar node_modules" | ||
artifact_paths: "node_modules.tar" | ||
|
||
- wait | ||
|
||
- label: "Lint" | ||
commands: | ||
- "source use-node 14" | ||
- "buildkite-agent artifact download node_modules.tar ." | ||
- "tar -xzf node_modules.tar" | ||
- "npm run lint" | ||
|
||
- label: "Lighthouse CI" | ||
commands: | ||
- "source use-node 14" | ||
- "buildkite-agent artifact download node_modules.tar ." | ||
- "tar -xzf node_modules.tar" | ||
- "CI=false npm run build" | ||
- "npm install -g @lhci/cli@0.8.x" | ||
- "lhci autorun" | ||
|
||
- wait | ||
|
||
- label: "Release and bump version" | ||
commands: | ||
- "source use-node 14" | ||
- "buildkite-agent artifact download node_modules.tar . && tar -xzf node_modules.tar" | ||
- ".ci/release.sh" | ||
branches: "*.*" |
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,12 @@ | ||
#!/bin/bash | ||
set -e | ||
export CI=false | ||
git checkout master | ||
git pull | ||
|
||
npm version $BUILDKITE_BRANCH --git-tag-version=false | ||
npm run build | ||
|
||
git commit -am "Bump version to $BUILDKITE_BRANCH [ci skip]" | ||
git push origin master | ||
git push -f origin master:release |
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,5 @@ | ||
root = true | ||
|
||
[*.{js,jsx,ts,tsx}] | ||
indent_style = space | ||
indent_size = 2 |
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 @@ | ||
REACT_APP_APP_ENV=development |
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 @@ | ||
REACT_APP_APP_ENV=latest |
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 @@ | ||
REACT_APP_APP_ENV=production |
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 @@ | ||
REACT_APP_APP_ENV=staging |
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,63 @@ | ||
{ | ||
"parser": "@typescript-eslint/parser", | ||
"env": { | ||
"browser": true, | ||
"es6": true, | ||
"jest": true, | ||
"node": true | ||
}, | ||
"extends": [ | ||
"eslint:recommended", | ||
"plugin:@typescript-eslint/recommended", | ||
"plugin:jsx-a11y/recommended", | ||
"plugin:react/recommended", | ||
"plugin:prettier/recommended", | ||
"plugin:import/typescript", | ||
"prettier" | ||
], | ||
"plugins": [ | ||
"@typescript-eslint", | ||
"react", | ||
"jsx-a11y", | ||
"react-hooks", | ||
"import" | ||
], | ||
"rules": { | ||
"@typescript-eslint/explicit-function-return-type": "off", | ||
"@typescript-eslint/no-empty-interface": "off", | ||
"@typescript-eslint/no-empty-function": "off", | ||
"@typescript-eslint/no-explicit-any": "off", | ||
"react/prop-types": "off", | ||
"react/display-name": "off", | ||
"react-hooks/rules-of-hooks": "error", | ||
"react-hooks/exhaustive-deps": "warn", | ||
"import/first": "warn", | ||
"import/no-unused-modules": "warn", | ||
"import/order": [ | ||
"warn", | ||
{ | ||
"alphabetize": { "order": "asc", "caseInsensitive": true }, | ||
"newlines-between": "always", | ||
"groups": [ | ||
"builtin", | ||
"external", | ||
"internal", | ||
"parent", | ||
"sibling", | ||
"index" | ||
] | ||
} | ||
], | ||
"prettier/prettier": [ | ||
"error", | ||
{ | ||
"endOfLine": "auto" | ||
} | ||
] | ||
}, | ||
"settings": { | ||
"react": { | ||
"version": "detect" | ||
} | ||
} | ||
} |
Validating CODEOWNERS rules β¦
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 @@ | ||
* @hackathon/frontend |
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,25 @@ | ||
--- | ||
name: "Bug report \U0001F41B" | ||
about: Create a report to help us improve | ||
title: "\U0001F41B Bug: [INSERT_TITLE_HERE]" | ||
labels: bug | ||
assignees: '' | ||
|
||
--- | ||
|
||
**Describe the bug** | ||
A clear and concise description of what the bug is. | ||
|
||
**Additional context** | ||
Add any other context about the problem here. | ||
|
||
**Screenshots/Videos** | ||
If applicable, add any screenshots or videos to help explain your problem. | ||
|
||
**Details (please complete the following information):** | ||
- Reporter: [e.g. Steven] | ||
- Path [e.g. https://hackthenorth.com/] | ||
- Screen: [e.g. 1263w x 610h] | ||
- Browser [e.g. Chrome (v84.0.4147.105)] | ||
- Engine: [e.g. Blink (v84.0.4147.105)] | ||
- OS: [e.g. Mac OS (v10.15.6)] |
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,17 @@ | ||
--- | ||
name: "Chore task \U0001F4DA" | ||
about: Describe this issue template's purpose here | ||
title: "\U0001F4DA Chore: [INSERT_TITLE_HERE]" | ||
labels: chore | ||
assignees: '' | ||
|
||
--- | ||
|
||
**Describe the chore** | ||
A clear and concise description of what you want to happen. | ||
|
||
**Additional context** | ||
Add any other context about the chore request here. | ||
|
||
**Screenshots/Videos** | ||
If applicable, add any screenshots or videos to help explain your problem. |
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,17 @@ | ||
--- | ||
name: Feature request β¨ | ||
about: Suggest an idea for this project | ||
title: "β¨Feature: [INSERT_TITLE_HERE]" | ||
labels: feature | ||
assignees: '' | ||
|
||
--- | ||
|
||
**Describe the feature** | ||
A clear and concise description of what you want to happen. | ||
|
||
**Additional context** | ||
Add any other context about the feature request here. | ||
|
||
**Screenshots/Videos** | ||
If applicable, add any screenshots or videos to help explain the feature. |
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,26 @@ | ||
### π» Changes | ||
|
||
- A bullet point describing each change, with screenshots attached as needed | ||
|
||
### β Checklist | ||
|
||
- [ ] PR title contains `feature|fix|chore` | ||
- [ ] PR is linked to relevant issue, if applicable | ||
- [ ] Changes have been manually tested and working | ||
|
||
- This is a | ||
|
||
- [ ] New feature (adds functionality) | ||
- [ ] Bug fix (resolves an issue) | ||
- [ ] Chore (documentation, refactoring, etc) | ||
|
||
- This PR contains | ||
|
||
- [ ] π¨ **Breaking** changes | ||
- [ ] **Major** changes | ||
- [ ] **Minor** changes | ||
- [ ] **Patch**es | ||
|
||
### π§ To do | ||
|
||
- [ ] If PR is still a work in progress, list any outstanding tasks here and mark the PR as draft |
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,21 @@ | ||
name: Auto Assign to Project | ||
|
||
on: | ||
issues: | ||
types: [opened] | ||
pull_request: | ||
types: [opened] | ||
|
||
env: | ||
MY_GITHUB_TOKEN: ${{ secrets.FRONTEND_REPO_ACTIONS_TOKEN }} | ||
|
||
jobs: | ||
assign_one_project: | ||
runs-on: ubuntu-latest | ||
name: Assign to Frontend Project | ||
steps: | ||
- name: Assign NEW issues to the Frontend org-level project | ||
uses: srggrs/assign-one-project-github-action@1.2.1 | ||
if: github.event.action == 'opened' | ||
with: | ||
project: 'https://github.com/orgs/hackathon/projects/9' |
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,18 @@ | ||
name: Verify Issue Linked to PR | ||
|
||
on: | ||
pull_request: | ||
types: [opened, reopened] | ||
check_run: | ||
|
||
jobs: | ||
verify_linked_issue: | ||
runs-on: ubuntu-latest | ||
name: Ensure Pull Request has a linked issue. | ||
steps: | ||
- name: Verify Linked Issue | ||
uses: hattan/verify-linked-issue-action@v1.1.0 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.FRONTEND_REPO_ACTIONS_TOKEN }} | ||
with: | ||
message: 'heLLO?? :anger: :anger: you!! have u seen the time? :point_right::arrow_right::point_right: its BEEP BEEP TIME TO LINK AN ISSUE :angry: either link an issue or mention it using #<issue_id> :-1:' |
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,36 @@ | ||
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. | ||
|
||
# dependencies | ||
/node_modules | ||
/.pnp | ||
.pnp.js | ||
|
||
# testing | ||
/coverage | ||
|
||
# next.js | ||
/.next/ | ||
/out/ | ||
|
||
# production | ||
/build | ||
|
||
# misc | ||
.DS_Store | ||
*.pem | ||
|
||
# debug | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
|
||
# local env files | ||
.env.local | ||
.env.development.local | ||
.env.test.local | ||
.env.production.local | ||
|
||
# vercel | ||
.vercel | ||
|
||
.idea/ |
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 @@ | ||
_ |
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,4 @@ | ||
#!/bin/sh | ||
. "$(dirname "$0")/_/husky.sh" | ||
|
||
npm run type-check && npm run lint |
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 @@ | ||
v16.9.1 |
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 @@ | ||
{} |
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,10 @@ | ||
dictionaries: | ||
- en | ||
- en_GB | ||
|
||
excluded_words: | ||
- hackthenorth | ||
- quai | ||
- lottie | ||
|
||
spellcheck_filenames: 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,10 @@ | ||
{ | ||
"recommendations": [ | ||
"esbenp.prettier-vscode", | ||
"dbaeumer.vscode-eslint", | ||
"stylelint.vscode-stylelint", | ||
"jpoissonnier.vscode-styled-components", | ||
"lightyen.tailwindcss-intellisense-twin", | ||
"wix.vscode-import-cost" | ||
] | ||
} |
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,12 @@ | ||
{ | ||
"eslint.validate": [ | ||
"javascript", | ||
"javascriptreact", | ||
"typescript", | ||
"typescriptreact" | ||
], | ||
"typescript.tsdk": "node_modules/typescript/lib", | ||
"editor.codeActionsOnSave": { | ||
"source.fixAll.eslint": true | ||
} | ||
} |
Large diffs are not rendered by default.
Oops, something went wrong.
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,45 @@ | ||
# Hack the North website | ||
|
||
[![Build status](https://badge.buildkite.com/e0b3634fe73c0173056e76fc7c7c22626524d5811c699e1c1f.svg?branch=release)](https://buildkite.com/hack-the-north/hack-the-north-website) [![Netlify Status](https://api.netlify.com/api/v1/badges/f47627a9-5c63-49d2-a3c2-03399ef48964/deploy-status)](https://app.netlify.com/sites/hackthenorth/deploys) | ||
|
||
### Check it out | ||
|
||
πππ [hackthenorth.com](https://hackthenorth.com) πππ | ||
|
||
### Running locally | ||
|
||
First, clone the repo | ||
|
||
``` | ||
$ git clone https://github.com/hackathon/hackthenorth.com.git | ||
$ cd hackthenorth.com | ||
``` | ||
|
||
Then install dependencies and get it running | ||
|
||
``` | ||
$ npm install | ||
$ npm start | ||
``` | ||
|
||
Navigate to `localhost:3000` in your browser and give it a look π | ||
|
||
### Tech stack | ||
|
||
- [React](https://reactjs.org/) | ||
- [TypeScript](https://www.typescriptlang.org/) | ||
- [Create React App](https://github.com/facebook/create-react-app/) | ||
- [TailwindCSS](https://tailwindcss.com/) | ||
- [Emotion](https://emotion.sh/docs/introduction) | ||
- [twin.macro](https://github.com/ben-rogerson/twin.macro) | ||
- [Netlify](https://www.netlify.com/) | ||
- [Buildkite](https://buildkite.com) | ||
- [Bugsnag](https://www.bugsnag.com) | ||
|
||
### License | ||
|
||
Our code is licensed under the MIT license. All other assets are copyright of Hack the North. | ||
|
||
### Cheers | ||
|
||
Built with β€οΈ by [Bradley](https://github.com/bradleyhrc), [Emma](https://github.com/emmahuangg), [Eugene](https://github.com/Ezzhingy), [Ivan](https://github.com/IvanYu327), [Jennifer](https://github.com/jennifer-lu), [Lisa](https://github.com/lisazhao30), and [Roselyn](https://github.com/roselynh100) with the help of the rest of the [Hack the North](https://github.com/orgs/hackathon/people) team. |
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,2 @@ | ||
declare module "react-lottie-player"; | ||
declare module "react-scrollama"; |
Oops, something went wrong.