Skip to content

Commit

Permalink
feat: data post and fetch (#33)
Browse files Browse the repository at this point in the history
* feat: add formiz

* feat: add json-server and swr

* feat: page background

* feat: form stepper

* fix: wrong form stepper props call

* feat: checkbox component

* feat: select component

* feat: change padding

* feat: select component placeholder

* feat: placeholder and style wrapper

* feat(wip): form step 1 draft

* feat: input component

* feat: hover response

* feat: hover response

* feat: create button for next step, back, and submit

* feat: create OTP input field and add props delegate for `Input` component

* feat: draft step 2 - 4

* feat: course registration form draft

* feat: dymanic route for course registration form

* feat: outline for keyboard navigation

* feat: add framer motion for animation

* feat(wip): checkbox client side validation

* refactor: improve code readability

* feat: change SWR to simple-rest

* feat: change radix checkbox to react aria checkbox

* feat: admin dashboard draft (#21)

* feat: separate `FormContent`

* feat: separate `OTPForm`

* feat: admin login page draft

* feat: survey table draft

* feat: create survey form draft

* feat: rename path to plural

* feat: switch style

* fix: link typo

* fix: link typo

* feat: reusable survey form and top bar

* feat: top bar and tab style

* fix: side bar href typo

* feat: student table and student form draft

* feat(draft): course table and course form

* refactor: reduce code duplication

* refactor: reduce code duplication

* feat(ui): improve sidebar UI (#22)

* feat: form field submit using `Formiz` (#23)

* feat(Formiz): input field

* feat(Formiz): change `Input`, `Checkbox`, and `Select` for `Formiz`

* fix: dashboard forms missing name property

* feat(wip): course table and student table data fetch

* fix: missing dependencies in `package.json`

* feat: table data fetch integrate (#31)

* fix: Updated types and columns for surveys & courses

* feat: Added survey fetch courses api

* wip: Updating student type

* feat(wip): data post

---------

Co-authored-by: Aidan Ng <[email protected]>
  • Loading branch information
Ualnomis and AidanNPH authored Aug 9, 2024
1 parent 17d70de commit f2e7889
Show file tree
Hide file tree
Showing 71 changed files with 22,060 additions and 2,018 deletions.
14 changes: 13 additions & 1 deletion frontend/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
{
"extends": ["next/babel", "next/core-web-vitals", "prettier"]
"root": true,
"extends": ["next/core-web-vitals", "prettier"],
"overrides": [
{
// Adapt to your needs (e.g. some might want to only override "next.config.js")
"files": ["*.js", "*.mjs"],
// This is the default parser of ESLint
"parser": "espree",
"parserOptions": {
"ecmaVersion": 2020
}
}
]
}
2 changes: 1 addition & 1 deletion frontend/.prettierrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
"tabWidth": 2,
"singleQuote": true,
"jsxSingleQuote": true
}
}
113 changes: 113 additions & 0 deletions frontend/db.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,113 @@
{
"title": {
"name": "Learning Summer 2024 S.T.E.A.M. Camp"
},
"courses": [
{
"id": "1",
"name": "course1",
"startDate": "2024-01-01",
"startTime": "09:00",
"endDate": "2024-01-31",
"daysOfWeek": "Mon-Fri",
"endTime": "13:00",
"weeks": "4"
},
{
"id": "2",
"name": "course2",
"startDate": "2024-02-01",
"startTime": "09:00",
"endDate": "2024-02-28",
"daysOfWeek": "Mon-Fri",
"endTime": "13:00",
"weeks": "4"
},
{
"id": "3",
"name": "course3",
"startDate": "2024-03-01",
"startTime": "09:00",
"endDate": "2024-03-31",
"daysOfWeek": "Mon-Fri",
"endTime": "13:00",
"weeks": "4"
},
{
"id": "4",
"name": "course4",
"startDate": "2024-04-01",
"startTime": "09:00",
"endDate": "2024-04-30",
"daysOfWeek": "Mon-Fri",
"endTime": "13:00",
"weeks": "4"
},
{
"id": "5",
"name": "course5",
"startDate": "2024-05-01",
"startTime": "09:00",
"endDate": "2024-05-31",
"daysOfWeek": "Mon-Fri",
"endTime": "13:00",
"weeks": "4"
},
{
"id": "6",
"name": "course6",
"startDate": "2024-06-01",
"startTime": "09:00",
"endDate": "2024-06-30",
"daysOfWeek": "Mon-Fri",
"endTime": "13:00",
"weeks": "4"
},
{
"id": "7",
"name": "course7",
"startDate": "2024-07-01",
"startTime": "09:00",
"endDate": "2024-07-31",
"daysOfWeek": "Mon-Fri",
"endTime": "13:00",
"weeks": "4"
},
{
"id": "8",
"name": "course8",
"startDate": "2024-08-01",
"startTime": "09:00",
"endDate": "2024-08-31",
"daysOfWeek": "Mon-Fri",
"endTime": "13:00",
"weeks": "4"
},
{
"id": "9",
"name": "course9",
"startDate": "2024-09-01",
"startTime": "09:00",
"endDate": "2024-09-30",
"daysOfWeek": "Mon-Fri",
"endTime": "13:00",
"weeks": "4"
},
{
"id": "10",
"name": "course10",
"startDate": "2024-10-01",
"startTime": "09:00",
"endDate": "2024-10-31",
"daysOfWeek": "Mon-Fri",
"endTime": "13:00",
"weeks": "4"
}
],
"students": [
{
"id": "1",
"name": "student1"
}
]
}
Loading

0 comments on commit f2e7889

Please sign in to comment.