Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MDX, Typescript, Mantine UI #145

Open
wants to merge 29 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
1 change: 1 addition & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
GITHUB_TOKEN=your_github_token
81 changes: 79 additions & 2 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,81 @@
{
"extends": "next/core-web-vitals",
"rules": { "react/no-unescaped-entities": 0 }
"plugins": [
"import",
"unused-imports",
"promise",
"eslint-comments"
],
"extends": [
"next/core-web-vitals",
"next",
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended"
],
"rules": {
"react/no-unescaped-entities": 0,
"no-extra-label": "error",
"no-label-var": "error",
"no-labels": "warn",
"default-case-last": "warn",
"promise/always-return": "error",
"promise/no-return-wrap": "error",
"promise/param-names": "error",
"promise/catch-or-return": "error",
"promise/no-native": "off",
"promise/no-nesting": "warn",
"promise/no-promise-in-callback": "warn",
"promise/no-callback-in-promise": "warn",
"promise/avoid-new": "warn",
"promise/no-new-statics": "error",
"promise/no-return-in-finally": "warn",
"promise/valid-params": "warn",
"import/newline-after-import": [
"error",
{
"count": 1
}
],
"object-shorthand": [
"error",
"always"
],
"no-debugger": "warn",
"react/jsx-boolean-value": [
"error",
"always"
],
"no-multiple-empty-lines": [
"error",
{
"max": 3
}
],
"react/jsx-indent-props": [
2,
4
],
"react/jsx-indent": [
"error",
4,
{
"indentLogicalExpressions": true
}
],
"@typescript-eslint/indent": [
"error",
4,
{
"ArrayExpression": "first",
"ObjectExpression": "first",
"FunctionDeclaration": {
"parameters": "first"
},
"FunctionExpression": {
"parameters": "first"
},
"SwitchCase": 1
}
]
}
}
25 changes: 7 additions & 18 deletions .github/workflows/nextjs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,31 +34,20 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install PyTest Dependencies
run: |
cd CI
python -m pip install poetry==1.1.14
poetry install
- name: Run Pytest tests
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
cd CI
poetry run python -m unittest
uses: actions/checkout@v4
# Build job
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: "18"
node-version: "latest"
cache: ${{ steps.detect-package-manager.outputs.manager }}
- name: Setup Pages
uses: actions/configure-pages@v3
uses: actions/configure-pages@v5
with:
static_site_generator: next
- name: Install dependencies
Expand All @@ -68,7 +57,7 @@ jobs:
- name: Static HTML export with Next.js
run: npm run export
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
uses: actions/upload-pages-artifact@v3
with:
path: ./out

Expand All @@ -83,4 +72,4 @@ jobs:
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1
uses: actions/deploy-pages@v4
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,4 @@ yarn-error.log*
# typescript
*.tsbuildinfo
next-env.d.ts
.env
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:18-alpine
FROM node:latest
WORKDIR /app

COPY package*.json pnpm-lock.yaml* ./
Expand All @@ -7,4 +7,4 @@ COPY . .

EXPOSE 3000

CMD ["npm", "run", "dev"]
CMD ["npm", "run", "dev"]
9 changes: 8 additions & 1 deletion docs/about.md → docs/about.mdx
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
import Link from "next/link";


## About Us
The Autonomous Mastery Prototyping Laboratory or "AMP Lab" is a co-curricular educational lab within the Electrical and Computer Engineering department of Virginia Tech. The AMP lab is student-run and student-led.

Expand All @@ -10,4 +13,8 @@ Many of our members have received internship and full-time positions because of

## Leadership Team

Want to hear more about our leadership team? Click below to learn more!
Want to hear more about our leadership team? Click below to learn more!

<Link href="/Leadership">
Leadership Team
</Link>
68 changes: 0 additions & 68 deletions docs/adv_soldering.md

This file was deleted.

39 changes: 39 additions & 0 deletions docs/adv_soldering.mdx
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
import Link from 'next/link';


# Advanced Soldering Training

Welcome to the realm of Advanced Soldering Training at the AMP Lab. If you're seeking to elevate your soldering skills and master intricate surface-mount soldering techniques, you're in the right place. There is an exceptional facility tailored at the lab to help you conquer the world of surface-mount soldering with finesse.

### **Prerequisites:**

* Intermediate soldering certification.
* Steady hands. Good eye-hand coordination. Ability to coordinate your fingers' motions with the results displayed on a large monitor connected to a microscope.
* Patience and good attention to detail.

Email the following address to schedule advance soldering training (Please note that intermediate training must be completed before starting advanced soldering training.)
<Link href="mailto:[email protected]">
AMP Lab Solder Training Team
</Link>


### Objectives
Upon completing the Advanced Soldering Training, you'll confidently master soldering the following components:

- SOIC-8, 1.27 mm pitch
- TSSOP-8, 0.65 mm pitch
- VSSOP-8, 0.5 mm pitch
- SOT-23-5, 0.95 mm pitch
- QFP-44-10x10, 0.8 mm pitch
- QFP-100-12x12, 0.4 mm pitch
- QFN-20-5x5, 0.65 mm pitch
- QFN-20-4x4, 0.5 mm pitch
- QFN-20-3x3, 0.4 mm pitch
- 1206 resistors (3216 metric) 3.2 x 1.6 mm
- 0805 resistors (2012 metric) 2.0 x 1.25 mm
- 0603 resistors (1608 metric) 1.6 x 0.8 mm
- 0402 resistors (1005 metric) 1.0 x 0.5 mm

Those who complete the advanced surface-mount certification will be strongly encouraged to mentor others who wish to learn surface-mount prototype soldering.

Please email [email protected] with questions or concerns.
File renamed without changes.
21 changes: 11 additions & 10 deletions docs/cleaning_standards.md → docs/cleaning_standards.mdx
Original file line number Diff line number Diff line change
@@ -1,31 +1,32 @@
import Link from "next/link";

# Amp Lab Cleaning Standards

# Overview:

"Everything has a place. If you don't know, just ask. If no leadership is around, reach out on Discord or refer to this page for general reference"

"


## For Personal Spaces

- "We do not have official personal spaces in the lab"
- You should always leave the spaces how you found them
- You should always leave the spaces how you found them
- If you need a space for an extended period of time, please reach out to Amp Lab staff to coordinate
- Tables should be left clean and free of project materials. If you require a bin, please do the following:

- Find the organization station, and grab yourself a label
- Find a bin that is roughly the size need for your project, and place all project materials in the bin. If there is no bin, reach out to the Amp Lab leadership team through Discord
- Place the bin on the back project wall
- Find the organization station, and grab yourself a label
- Find a bin that is roughly the size need for your project, and place all project materials in the bin. If there is no bin, reach out to the Amp Lab leadership team through Discord
- Place the bin on the back project wall

- Parts and tool on the Amp Lab side are specifically for Amp Lab members. MDE students that need parts need to request it from Amp Lab staff
- The Amp Lab and MDE sides are designated, specific areas divided by an iron curtain (the yellow line). This is to enforce cleanliness and accountability to both co-curricular activities.

# FAQ

Why the heck do we have to keep things clean? It's my project and my space
News flash: no it's not. This is a shared lab space. If you leave a table in a wreck, then other students won't have the ability to work.


News flash: no it's not. This is a shared lab space. If you leave a table in a wreck, then other students won't have the ability to work.


#### For any more questions, contact the leadership team below!
<Link className="btn" href="/Leadership">
Leadership Team
</Link>
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion docs/mentor_checksheet.md → docs/mentor_checksheet.mdx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

# Checksheet for Mentors when bringing on a new Mentee

<input type="checkbox"/> Introductions
Expand All @@ -15,4 +16,3 @@
- For any help, use the dedicated Discord channel

<input type="checkbox"/> Set a goal and timeline for the project

File renamed without changes.
File renamed without changes.
2 changes: 0 additions & 2 deletions docs/new_members.md → docs/new_members.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,3 @@ This process is now simpler than ever! Follow the steps below to get started:
4. Wait for AMP lab staff to reach out to you about your project!

**Too confusing?** We get it, git isn't an easy thing to master. Check <a href = "/beginners_guide">this tutorial</a> to get started without having to clone the repo locally.

<hr>
File renamed without changes.
File renamed without changes.
File renamed without changes.
24 changes: 12 additions & 12 deletions docs/soldering.md → docs/soldering.mdx
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
# **Soldering Trainings**
import Link from 'next/link';

## Soldering Training
The AMP Lab provides three levels of soldering training for students:
<a class="btn" href="/soldering/basic">Basic Soldering Training</a>
<a class="btn" href="/soldering/intermediate">Intermediate Soldering Training</a>
<a class="btn" href="/soldering/advanced">Advanced Soldering Training</a>
<Link href="/soldering/basic">Basic Soldering Training</Link>
<Link href="/soldering/intermediate">Intermediate Soldering Training</Link>
<Link href="/soldering/advanced">Advanced Soldering Training</Link>

Completion of basic or higher soldering training allows the use of soldering equipment, unsupervised, in the AMP Lab. Anyone caught using soldering equipment without the basic or higher training will be denied access to the AMP Lab for at least one semester.

Expand All @@ -11,18 +13,16 @@ Note: If you have completed general training in the past then you are basic cert
### Soldering Training Signup
Use the following link or banner on top of this page to signup for solder training session. (Please note that basic training must be completed before starting intermediate soldering training):

<a class="button is-link" href="/soldering/booking">

<Link href="/soldering/booking">
Soldering Training Sign Up
</a>
</Link>

Email the following address to schedule advance soldering training (Please note that intermediate training must be completed before starting advanced soldering training.)


<a class="button is-link" href="mailto:[email protected]">

<Link href='mailto:[email protected]'>
[email protected]
</a>
</Link>

Note:
Instructors are student volunteers. If you haven't received a reply, please send a follow-up email.
Note:
Instructors are student volunteers. If you haven't received a reply, please send a follow-up email.
Loading
Loading