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

Modularize General Meeting page #686

Merged
merged 13 commits into from
May 15, 2024
Merged
Show file tree
Hide file tree
Changes from 11 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
17 changes: 13 additions & 4 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,25 @@ jobs:
matrix:
node-version: [16.x]

env:
EVENTS_SPREADSHEET_ID: ${{ secrets.EVENTS_SPREADSHEET_ID }}
SERVICE_ACCOUNT: ${{ secrets.SERVICE_ACCOUNT }}
DIRECTORY_SPREADSHEET_ID: ${{ secrets.DIRECTORY_SPREADSHEET_ID }}
TOWNHALL_SPREADSHEET_ID: ${{ secrets.TOWNHALL_SPREADSHEET_ID }}
GM_SPREADSHEET_ID: ${{ secrets.GM_SPREADSHEET_ID }}

steps:
- uses: actions/checkout@v2

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}

- run: npm install

- run: npm run ofp
env:
EVENTS_SPREADSHEET_ID: ${{ secrets.EVENTS_SPREADSHEET_ID }}
SERVICE_ACCOUNT: ${{ secrets.SERVICE_ACCOUNT }}
DIRECTORY_SPREADSHEET_ID: ${{ secrets.DIRECTORY_SPREADSHEET_ID }}

- run: npm run thp

ArshMalik02 marked this conversation as resolved.
Show resolved Hide resolved
- run: npm run lint
22 changes: 14 additions & 8 deletions .github/workflows/node-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,23 +22,29 @@ jobs:
matrix:
node-version: [16.x]

env:
EVENTS_SPREADSHEET_ID: ${{ secrets.EVENTS_SPREADSHEET_ID }}
SERVICE_ACCOUNT: ${{ secrets.SERVICE_ACCOUNT }}
DIRECTORY_SPREADSHEET_ID: ${{ secrets.DIRECTORY_SPREADSHEET_ID }}
TOWNHALL_SPREADSHEET_ID: ${{ secrets.TOWNHALL_SPREADSHEET_ID }}
GM_SPREADSHEET_ID: ${{ secrets.GM_SPREADSHEET_ID }}

steps:
- uses: actions/checkout@v2

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}

- run: npm install

- run: npm run ofp
env:
EVENTS_SPREADSHEET_ID: ${{ secrets.EVENTS_SPREADSHEET_ID }}
SERVICE_ACCOUNT: ${{ secrets.SERVICE_ACCOUNT }}
DIRECTORY_SPREADSHEET_ID: ${{ secrets.DIRECTORY_SPREADSHEET_ID }}

- run: npm run thp

ArshMalik02 marked this conversation as resolved.
Show resolved Hide resolved
- run: npm run build
env:
EVENTS_SPREADSHEET_ID: ${{ secrets.EVENTS_SPREADSHEET_ID }}
SERVICE_ACCOUNT: ${{ secrets.SERVICE_ACCOUNT }}
DIRECTORY_SPREADSHEET_ID: ${{ secrets.DIRECTORY_SPREADSHEET_ID }}

- run: npm test
env:
CI: true
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,6 @@ yarn-error.log*
*.csv
output.json
offoutput.json
townhall.json
past-townhall.json
gmData.json
1 change: 0 additions & 1 deletion _redirects
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
/fallgm /gm/f22
/town-hall /town-hall/s22
/wintergm /gm/w22
4 changes: 2 additions & 2 deletions components/Footer.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import SocialMedia from './SocialMedia';
const footerACMLinks = [
{ title: 'About', path: '/about' },
{ title: 'Events', path: '/events' },
{ title: 'General Meeting', path: '/gm/w24' },
{ title: 'CS Town Hall', path: '/town-hall/f23' },
{ title: 'General Meeting', path: '/gm' },
{ title: 'CS Town Hall', path: '/town-hall' },
{ title: 'Internship Program', path: '/internship' },
{ title: 'Dev Team', path: '/dev'},
{ title: 'Sponsors', path: '/sponsors' },
Expand Down
2 changes: 1 addition & 1 deletion netlify.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[build]
command = "npm run ofp; npm run build"
command = "npm run ofp; npm run thp; npm run gmp; npm run build"
publish = "build"

[[plugins]]
Expand Down
1 change: 1 addition & 0 deletions next.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ module.exports = {
'jcfp.site',
'photos.google.com',
'photos.app.goo.gl',
'www.uclaacm.com',
],
},
target: 'serverless',
Expand Down
74 changes: 58 additions & 16 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"scripts": {
"start": "next dev",
"start-production": "next start",
"build": "node scripts/officer-parser.mjs && next build",
"build": "npm run ofp && npm run thp && npm run gmp && next build",
"lint-js": "eslint \"**/*.js\"",
"lint-js-fix": "eslint --fix \"**/*.js\"",
"lint-css": "stylelint \"**/*.css\" \"**/*.scss\"",
Expand All @@ -34,6 +34,8 @@
"reg": "node scripts/recurring-event-generator.mjs",
"seg": "node scripts/single-event-generator.mjs",
"ofp": "node scripts/officer-parser.mjs",
"thp": "node scripts/town-hall-generator.mjs",
"gmp": "node scripts/gm-generator.mjs",
"test": "jest --env=jsdom"
},
"eslintConfig": {
Expand Down
Loading
Loading