Skip to content

Commit

Permalink
Schema file updated
Browse files Browse the repository at this point in the history
  • Loading branch information
sheninthjr committed Nov 5, 2023
1 parent 12c7616 commit 167ca34
Show file tree
Hide file tree
Showing 8 changed files with 1,127 additions and 580 deletions.
2 changes: 1 addition & 1 deletion apps/client/src/components/NavBar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export default function NavBar() {
</a>
</li>
<li>
<div className="flex items-center space-x-2">
<div className="items-center space-x-2 hidden sm:flex">
<Link
to="https://github.com/sheninthjr/Automatic-Question-Generator"
target="_blank"
Expand Down
74 changes: 49 additions & 25 deletions apps/client/src/components/Posting.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,30 @@ export default function PostingQuestion() {
parta2: string,
parta2qtype: string,
parta2co: string,
partb1: string,
partb1qtype: string,
partb1co: string,
partb2: string,
partb2qtype: string,
partb2co: string,
partc1: string,
partc1qtype: string,
partc1co: string,
partc2: string,
partc2qtype: string,
partc2co: string
partb1a: string,
partb1aqtype: string,
partb1aco: string,
partb1b: string,
partb1bqtype: string,
partb1bco: string,
partb2a: string,
partb2aqtype: string,
partb2aco: string,
partb2b: string,
partb2bqtype: string,
partb2bco: string,
partc1a: string,
partc1aqtype: string,
partc1aco: string,
partc1b: string,
partc1bqtype: string,
partc1bco: string,
partc2a: string,
partc2aqtype: string,
partc2aco: string,
partc2b: string,
partc2bqtype: string,
partc2bco: string
) => {
const allQuestion = {
parta1,
Expand All @@ -33,21 +45,33 @@ export default function PostingQuestion() {
parta2,
parta2qtype,
parta2co,
partb1,
partb1qtype,
partb1co,
partb2,
partb2qtype,
partb2co,
partc1,
partc1qtype,
partc1co,
partc2,
partc2qtype,
partc2co,
partb1a,
partb1aqtype,
partb1aco,
partb1b,
partb1bqtype,
partb1bco,
partb2a,
partb2aqtype,
partb2aco,
partb2b,
partb2bqtype,
partb2bco,
partc1a,
partc1aqtype,
partc1aco,
partc1b,
partc1bqtype,
partc1bco,
partc2a,
partc2aqtype,
partc2aco,
partc2b,
partc2bqtype,
partc2bco,
};
console.log(allQuestion);
const res = await axios.post(`${BASE_URL}/post/2`, allQuestion, {
const res = await axios.post(`${BASE_URL}/post/1`, allQuestion, {
headers: { "Content-Type": "application/json" },
});
const data = res.data;
Expand Down
233 changes: 0 additions & 233 deletions packages/prisma/prisma/migrations/20231102132131_init/migration.sql

This file was deleted.

Loading

0 comments on commit 167ca34

Please sign in to comment.