Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
119 commits
Select commit Hold shift + click to select a range
e60b5bf
perf: add temp pdf template generator for image vs all looped
alpharomercoma Dec 9, 2023
add4593
fix: generator signature aspect ratio w/ max dims
alpharomercoma Dec 9, 2023
c104433
perf: add prisma accelerate
alpharomercoma Dec 10, 2023
e6dc005
chore: add & config @t3-oss/env-nextjs
alpharomercoma Dec 11, 2023
a3cc8f1
refactor: add initital undertaking page
alpharomercoma Dec 12, 2023
4e5a7fe
build: add tsx to run prisma seeder
alpharomercoma Dec 12, 2023
84547a7
refactor: add initial generator course search
alpharomercoma Dec 12, 2023
64369c2
refactor: add generator course checkbox
alpharomercoma Dec 13, 2023
fa486bc
fix: remove --turbo preventing pdf generation
alpharomercoma Dec 15, 2023
e53a8a4
feat: working undertaking generator; need cleanup
alpharomercoma Dec 15, 2023
15476b2
refactor: add undertaking generator route & credits
alpharomercoma Dec 16, 2023
3450f68
refactor: add generator image type conditional
alpharomercoma Dec 16, 2023
be2bb8f
style: undertaking generator single page style
alpharomercoma Dec 16, 2023
8695a36
chore: add @vercel/speed-insights package
alpharomercoma Dec 16, 2023
037c596
fix: change to prod url on generator fetch
alpharomercoma Dec 16, 2023
f91ef05
chore: add error logging
alpharomercoma Dec 16, 2023
8509c31
fix: missing pdf template on prod
alpharomercoma Dec 17, 2023
95d8ddd
refactor: generator now uses JSON vs DB; rename page
alpharomercoma Dec 17, 2023
e86f4ec
fix: reversed sig & id in promise
alpharomercoma Dec 16, 2023
f8b86b2
fix: major bug where users pdf can be downloaded by others
alpharomercoma Dec 16, 2023
58bdeb7
fix: amongus homepage bg
alpharomercoma Dec 17, 2023
8c01896
refactor: add 404 redirect on not-found
alpharomercoma Dec 17, 2023
90d75b9
refactor: move reset db route to npx prisma
alpharomercoma Dec 17, 2023
f275b0b
refactor: add generator link to homepage
alpharomercoma Dec 18, 2023
e41b0bf
refactor: add more meaningful alert error
alpharomercoma Dec 18, 2023
e7a272f
refactor: generator to 1 page & select uni name
alpharomercoma Dec 20, 2023
f6b086b
perf: remove generator temp var
alpharomercoma Dec 21, 2023
43655aa
chore: bump deps
alpharomercoma Dec 22, 2023
4f1ad37
refactor: temp styles
alpharomercoma Dec 22, 2023
4f43f80
style: now use react-icons; navbar overhaul; w/ bug
Dec 23, 2023
59d5946
style: home amongus bg position
Dec 23, 2023
6347621
refactor: update imports and remove unused files
Dec 23, 2023
f8732d1
refactor: add PlayStore component to header
alpharomercoma Dec 23, 2023
fb54bec
fix: sound not replaying after no in prompt
alpharomercoma Dec 23, 2023
378e090
fix: image.remotePattern config
alpharomercoma Dec 23, 2023
0b81674
refactor: add offline page; exp config for partytown
alpharomercoma Dec 23, 2023
ba655be
fix: youtube href on share
alpharomercoma Dec 23, 2023
d075426
refactor: add unlighthouse script
alpharomercoma Dec 23, 2023
135c982
refactor: *app file system & prop exports
alpharomercoma Dec 24, 2023
72f2c2a
refactor: file paths and component names
alpharomercoma Dec 24, 2023
592fde4
feat: initial dashboard
alpharomercoma Dec 24, 2023
a6a6a09
refactor: app & website file system w/ middleware
alpharomercoma Dec 24, 2023
dd0dfb7
refactor: component file system
alpharomercoma Dec 24, 2023
36d3c35
fix: nasty bug on firefox not sending signin emails
alpharomercoma Dec 25, 2023
1df788e
refactor: add & config centerComponent wrapper
alpharomercoma Dec 25, 2023
890c326
refactor: add signOut page to nextAuth config
alpharomercoma Dec 25, 2023
ed5fcfd
refactor: separate seeder to each JSON file
alpharomercoma Dec 25, 2023
73d537c
fix: remove unused deps
alpharomercoma Dec 25, 2023
f2b1ff6
fix: signin w/ middleware now working
alpharomercoma Dec 26, 2023
3b8285d
refactor: nextAuth to use global prisma
alpharomercoma Dec 26, 2023
bb638b6
fix: *sound on redirect
alpharomercoma Dec 26, 2023
73150e0
refactor: add microsoft store media
alpharomercoma Dec 27, 2023
155c015
ci: update workflows to cache and version
alpharomercoma Dec 27, 2023
e1d7f55
refactor: *add Docker config files for nextjs
alpharomercoma Dec 27, 2023
ca552c1
fix: docker build fail on prisma
alpharomercoma Dec 27, 2023
fd3fb75
refactor: fill package.json fields
alpharomercoma Dec 27, 2023
63f35de
ci: add semantic release
alpharomercoma Dec 27, 2023
1a198a8
refactor: update microsoft store media files
alpharomercoma Dec 28, 2023
5e25ce5
refactor: add shortcut & screenshot in manifest
alpharomercoma Dec 28, 2023
05d8711
refactor: add amazon app store media
alpharomercoma Dec 28, 2023
5ef4f20
refactor: userTypeId now returned in front end
alpharomercoma Dec 29, 2023
8554fe1
refactor: *add prisma reset & seed in one command
alpharomercoma Dec 29, 2023
de1740d
refactor: add minified ACM logo image
alpharomercoma Dec 29, 2023
8bd35f2
refactor: add dashboard redirect if from twa referer
alpharomercoma Dec 29, 2023
5be020a
fix: loading spinner
alpharomercoma Dec 29, 2023
d74de65
refactor: *h-screen & w-screen to h-svh & w-svw
alpharomercoma Dec 29, 2023
89b97ed
refactor: *amongus now random impostor colors sus
alpharomercoma Dec 29, 2023
37bd2b8
refactor: add closeNav & toggleNav on link redirect
alpharomercoma Dec 30, 2023
48f71f1
refactor: more readable about; initial contact; text-balance
alpharomercoma Dec 30, 2023
d3b50f3
feat: initial contact page
alpharomercoma Dec 30, 2023
2b3a39e
refactor: *extend & split social code
alpharomercoma Dec 30, 2023
0bbfc09
refactor: remove casting of link icons to element or node
alpharomercoma Dec 30, 2023
84af73c
feat: add featured page
alpharomercoma Dec 30, 2023
0dc5a8e
feat: add committees page
alpharomercoma Dec 30, 2023
6178b0f
chore: bump deps
alpharomercoma Jan 1, 2024
41eff6d
build: *docker config
alpharomercoma Jan 1, 2024
1bfd63f
fix: set maxFileSizeToCache to 5MB
alpharomercoma Jan 1, 2024
72c169f
refactor: opt-in experimental features
alpharomercoma Jan 1, 2024
65d875a
chore: deps upgrade
alpharomercoma Jan 1, 2024
093c549
style: prevent links & img from popping out on mobile
alpharomercoma Jan 2, 2024
88ed3b2
style: prevent links & img from popping out on mobile
alpharomercoma Jan 2, 2024
872319c
fix: middleware blocks generator - returns corrupt zip
alpharomercoma Jan 3, 2024
ea5ee2c
refactor: remove some experimentals for turbopack to work
alpharomercoma Jan 5, 2024
5e3c706
feat: add & config auth0 to signin page
alpharomercoma Jan 5, 2024
4fa1c00
fix: env ordering fails build
alpharomercoma Jan 5, 2024
d53a93a
chore: bump deps
alpharomercoma Jan 12, 2024
9d02c9e
feat: add isActive util to handle active navigation links
alpharomercoma Jan 14, 2024
68eb1e5
chore: bump deps
alpharomercoma Jan 15, 2024
65ac8f2
build: add next-compose; add to pwa config
alpharomercoma Jan 16, 2024
b186578
perf: image quality and priority; remove unused zip
alpharomercoma Jan 16, 2024
2447864
fix: remove & reinstall yarn.lock
alpharomercoma Jan 16, 2024
0e6a080
revert: "chore: bump deps"
alpharomercoma Jan 16, 2024
dbc95d1
revert: "chore: bump deps"
alpharomercoma Jan 16, 2024
ad75fde
style: link title hide on small screen
alpharomercoma Jan 17, 2024
9cbf9b5
refactor: add react-share & update dashboard page
alpharomercoma Jan 17, 2024
76c97e2
style: *add min-width: 0 for *
alpharomercoma Jan 19, 2024
bddd80a
style: globals to tw sytnax; desktop nav icon size
alpharomercoma Jan 19, 2024
078a861
refactor: move particles to own component folder
alpharomercoma Jan 19, 2024
fc9f435
refactor: redux slices folder structure
alpharomercoma Jan 19, 2024
8d35fc6
refactor: move & rename CenterComponent
alpharomercoma Jan 20, 2024
1652b6d
refactor: undertaking generator v2 start
alpharomercoma Jan 20, 2024
00974b4
refactor: integrate rfk to generator nextui; improve logic & alt
alpharomercoma Jan 20, 2024
63fc131
refactor: generator v2 completed
alpharomercoma Jan 21, 2024
048b369
docs: add generator bug README
alpharomercoma Jan 21, 2024
3d6736d
fix: generator program field displays number vs value
alpharomercoma Jan 21, 2024
523e3dc
refactor: remove unused & stale files; add misc
alpharomercoma Jan 21, 2024
e79f34c
refactor: *add gh action caching
alpharomercoma Jan 21, 2024
ba405a2
chore: bump deps
alpharomercoma Jan 22, 2024
fdc0223
refactor: migrate signin page to nextui
alpharomercoma Jan 24, 2024
5e35e8d
refactor: add submitting loader in undertaking generator
alpharomercoma Jan 24, 2024
883a7eb
chore: bump deps
alpharomercoma Jan 29, 2024
25e52c5
chore: bump deps
alpharomercoma Feb 5, 2024
a4a7f95
build(deps): bump the npm_and_yarn group across 1 directories with 1 …
dependabot[bot] Feb 4, 2024
7168614
feat: integrate doppler + next-runtime-env + env-next.js
alpharomercoma Feb 6, 2024
8b9f9ac
refactor: remove legacy git lfs files
alpharomercoma Feb 6, 2024
7b4102e
docs: add doppler pre-requisite
alpharomercoma Feb 6, 2024
7fe41ee
feat: update MS PWA images; add PWA.md
alpharomercoma Feb 11, 2024
0622215
revert: yarn.lock of commit 25e52c50c1d97cb89332f0383f49c2cbe5b555a0
alpharomercoma Feb 11, 2024
a86c43a
build(deps): bump the npm_and_yarn group across 1 directories with 3 …
dependabot[bot] Mar 7, 2024
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
13 changes: 13 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
.git
node_modules
README.md
Dockerfile
.dockerignore
docker-compose.yml
.next
.estlint*
.prettier
npm-debug.log
yarn-error.log
.env
next-env.d.ts
26 changes: 13 additions & 13 deletions .github/dependabot.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,31 +3,31 @@
# Please see the documentation for all configuration options:
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates

version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"
time: "09:00"
day: "monday"
timezone: "Asia/Manila"
target-branch: "develop"
- directory: "/"
labels:
- "github-actions"
package-ecosystem: "github-actions"
reviewers:
- "alphacoma18"

- package-ecosystem: "npm" # See documentation for possible values
directory: "/" # Location of package manifests
schedule:
day: "monday"
interval: "weekly"
time: "09:00"
day: "monday"
timezone: "Asia/Manila"
target-branch: "develop"

- directory: "/" # Location of package manifests
labels:
- "yarn"
- "dependencies"
package-ecosystem: "npm" # See documentation for possible values
reviewers:
- "alphacoma18"
schedule:
day: "monday"
interval: "weekly"
time: "09:00"
timezone: "Asia/Manila"
target-branch: "develop"
version: 2
74 changes: 0 additions & 74 deletions .github/workflows/ci.yaml

This file was deleted.

33 changes: 7 additions & 26 deletions .github/workflows/commit-ci.yaml
Original file line number Diff line number Diff line change
@@ -1,32 +1,13 @@
name: Commitlint

on: [push, pull_request]

jobs:
commitlint:
runs-on: ubuntu-latest
timeout-minutes: 2
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install required dependencies
run: |
sudo apt --only-upgrade install nodejs yarn
- name: Checkout
uses: actions/checkout@v4

- name: Print versions
run: |
node --version
yarn --version
- name: Install commitlint
run: |
yarn add conventional-changelog-conventionalcommits
yarn add commitlint@latest

- name: Validate current commit (last commit) with commitlint
if: github.event_name == 'push'
run: yarn commitlint --from HEAD~1 --to HEAD --verbose
- name: Commitlint
uses: wagoid/commitlint-github-action@v5
timeout-minutes: 2

- name: Validate PR commits with commitlint
if: github.event_name == 'pull_request'
run: yarn commitlint --from ${{ github.event.pull_request.head.sha }}~${{ github.event.pull_request.commits }} --to ${{ github.event.pull_request.head.sha }} --verbose
name: Commitlint
on: [push, pull_request]
27 changes: 27 additions & 0 deletions .github/workflows/semantic.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
cache: "yarn"
cache-dependency-path: "**/yarn.lock"
node-version: 20
- name: Install dependencies
run: yarn install --frozen-lockfile --immutable
- name: Build app
run: yarn build
- env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
name: Semantic release
run: yarn semantic-release

name: Semantic release
on:
push:
branches:
- master
- release/*
- hotfix/*
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
/node_modules
/.pnp
.pnp.js
.yarn/install-state.gz

# testing
/coverage
Expand Down Expand Up @@ -57,7 +58,8 @@ next-env.d.ts
.unlighthouse

# sitemap
**/public/sitemap-0.xml
**/public/sitemap-*.xml
**/public/sitemap.xml

## PWA deployments
/pwa/playstore/**/*
Expand Down
14 changes: 10 additions & 4 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,20 @@
"davidanson.vscode-markdownlint",
"redhat.vscode-yaml",
"dbaeumer.vscode-eslint",
"stylelint.vscode-stylelint",
"formulahendry.auto-rename-tag",
"deque-systems.vscode-axe-linter",
"usernamehw.errorlens",
"github.copilot",
"eamodio.gitlens",
"wix.vscode-import-cost",
"ms-vscode.vscode-typescript-next",
"znck.grammarly"
"znck.grammarly",
"github.copilot-chat",
"eamodio.gitlens",
"visualstudioexptteam.vscodeintellicode",
"yzhang.markdown-all-in-one",
"esbenp.prettier-vscode",
"yoavbls.pretty-ts-errors",
"prisma.prisma",
"bradlc.vscode-tailwindcss",
"austenc.tailwind-docs"
]
}
75 changes: 75 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
FROM node:20-alpine AS base

# Install dependencies only when needed
FROM base AS deps
# Check https://github.com/nodejs/docker-node/tree/b4117f9333da4138b03a546ec926ef50a31506c3#nodealpine to understand why libc6-compat might be needed.
RUN apk add --no-cache libc6-compat
WORKDIR /app

# Install dependencies based on the preferred package manager
COPY package.json yarn.lock* package-lock.json* pnpm-lock.yaml* ./
RUN \
if [ -f yarn.lock ]; then yarn --frozen-lockfile; \
elif [ -f package-lock.json ]; then npm ci; \
elif [ -f pnpm-lock.yaml ]; then yarn global add pnpm && pnpm i --frozen-lockfile; \
else echo "Lockfile not found." && exit 1; \
fi

WORKDIR /app
COPY --from=deps /app/node_modules ./node_modules
COPY . .

#Enables Hot Reloading Check https://github.com/vercel/next.js/issues/36774 for more information
ENV CHOKIDAR_USEPOLLING=true
ENV WATCHPACK_POLLING=true

# Rebuild the source code only when needed
FROM base AS builder
WORKDIR /app
COPY --from=deps /app/node_modules ./node_modules
COPY --from=deps /root/.yarn /root/.yarn
COPY . .

# Next.js collects completely anonymous telemetry data about general usage.
# Learn more here: https://nextjs.org/telemetry
# Uncomment the following line in case you want to disable telemetry during the build.
ENV NEXT_TELEMETRY_DISABLED 1

RUN yarn prisma generate --no-engine
RUN yarn build

# Production image, copy all the files and run next
FROM base AS runner
WORKDIR /app

ENV NODE_ENV production
ENV NEXT_TELEMETRY_DISABLED 1

RUN addgroup --system --gid 1001 nodejs
RUN adduser --system --uid 1001 nextjs

COPY --from=builder /app/public ./public

# Set the correct permission for prerender cache
RUN mkdir .next
RUN chown nextjs:nodejs .next

# Automatically leverage output traces to reduce image size
# https://nextjs.org/docs/advanced-features/output-file-tracing
COPY --from=builder --chown=nextjs:nodejs /app/.next/standalone ./
COPY --from=builder --chown=nextjs:nodejs /app/.next/static ./.next/static

# Uncomment this if you're using prisma, copies prisma files for linting
COPY --from=builder --chown=nextjs:nodejs /app/prisma ./prisma

USER nextjs

EXPOSE 3000

ENV PORT 3000
# set hostname to localhost
ENV HOSTNAME "0.0.0.0"

# server.js is created by next build from the standalone output
# https://nextjs.org/docs/pages/api-reference/next-config-js/output
CMD ["node", "server.js"]
Loading