Skip to content

Commit

Permalink
Build
Browse files Browse the repository at this point in the history
  • Loading branch information
promiseonuoha committed Jul 26, 2024
1 parent a82aa1b commit 89c4098
Show file tree
Hide file tree
Showing 53 changed files with 101 additions and 235 deletions.
18 changes: 4 additions & 14 deletions .next/app-build-manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,35 +16,25 @@
"static/chunks/main-app.js",
"static/chunks/app/forms/page.js"
],
"/login/page": [
"static/chunks/webpack.js",
"static/chunks/main-app.js",
"static/chunks/app/login/page.js"
],
"/forms/result/[uuid]/page": [
"/forms/[uuid]/page": [
"static/chunks/webpack.js",
"static/chunks/main-app.js",
"static/chunks/app/forms/result/[uuid]/page.js"
"static/chunks/app/forms/[uuid]/page.js"
],
"/forms/show/[uuid]/page": [
"static/chunks/webpack.js",
"static/chunks/main-app.js",
"static/chunks/app/forms/show/[uuid]/page.js"
],
"/forms/[uuid]/page": [
"static/chunks/webpack.js",
"static/chunks/main-app.js",
"static/chunks/app/forms/[uuid]/page.js"
],
"/forms/[uuid]/response/[response]/page": [
"static/chunks/webpack.js",
"static/chunks/main-app.js",
"static/chunks/app/forms/[uuid]/response/[response]/page.js"
],
"/_not-found/page": [
"/forms/create/page": [
"static/chunks/webpack.js",
"static/chunks/main-app.js",
"static/chunks/app/_not-found/page.js"
"static/chunks/app/forms/create/page.js"
]
}
}
15 changes: 2 additions & 13 deletions .next/build-manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@
"polyfillFiles": [
"static/chunks/polyfills.js"
],
"devFiles": [
"static/chunks/react-refresh.js"
],
"devFiles": [],
"ampDevFiles": [],
"lowPriorityFiles": [
"static/development/_buildManifest.js",
Expand All @@ -15,16 +13,7 @@
"static/chunks/main-app.js"
],
"pages": {
"/_app": [
"static/chunks/webpack.js",
"static/chunks/main.js",
"static/chunks/pages/_app.js"
],
"/_error": [
"static/chunks/webpack.js",
"static/chunks/main.js",
"static/chunks/pages/_error.js"
]
"/_app": []
},
"ampFirstPages": []
}
Binary file modified .next/cache/webpack/client-development/0.pack.gz
Binary file not shown.
Binary file modified .next/cache/webpack/client-development/12.pack.gz
Binary file not shown.
Binary file modified .next/cache/webpack/client-development/15.pack.gz
Binary file not shown.
Binary file modified .next/cache/webpack/client-development/16.pack.gz
Binary file not shown.
Binary file modified .next/cache/webpack/client-development/17.pack.gz
Binary file not shown.
Binary file modified .next/cache/webpack/client-development/18.pack.gz
Binary file not shown.
Binary file modified .next/cache/webpack/client-development/19.pack.gz
Binary file not shown.
Binary file modified .next/cache/webpack/client-development/2.pack.gz
Binary file not shown.
Binary file modified .next/cache/webpack/client-development/20.pack.gz
Binary file not shown.
Binary file modified .next/cache/webpack/client-development/21.pack.gz
Binary file not shown.
Binary file modified .next/cache/webpack/client-development/22.pack.gz
Binary file not shown.
Binary file modified .next/cache/webpack/client-development/3.pack.gz
Binary file not shown.
Binary file modified .next/cache/webpack/client-development/5.pack.gz
Binary file not shown.
Binary file modified .next/cache/webpack/client-development/6.pack.gz
Binary file not shown.
Binary file modified .next/cache/webpack/client-development/7.pack.gz
Binary file not shown.
Binary file modified .next/cache/webpack/client-development/8.pack.gz
Binary file not shown.
Binary file modified .next/cache/webpack/client-development/9.pack.gz
Binary file not shown.
Binary file modified .next/cache/webpack/client-development/index.pack.gz
Binary file not shown.
Binary file modified .next/cache/webpack/client-development/index.pack.gz.old
Binary file not shown.
Binary file modified .next/cache/webpack/server-development/0.pack.gz
Binary file not shown.
Binary file modified .next/cache/webpack/server-development/1.pack.gz
Binary file not shown.
Binary file modified .next/cache/webpack/server-development/10.pack.gz
Binary file not shown.
Binary file modified .next/cache/webpack/server-development/2.pack.gz
Binary file not shown.
Binary file modified .next/cache/webpack/server-development/3.pack.gz
Binary file not shown.
Binary file modified .next/cache/webpack/server-development/4.pack.gz
Binary file not shown.
Binary file modified .next/cache/webpack/server-development/5.pack.gz
Binary file not shown.
Binary file modified .next/cache/webpack/server-development/6.pack.gz
Binary file not shown.
Binary file modified .next/cache/webpack/server-development/7.pack.gz
Binary file not shown.
Binary file modified .next/cache/webpack/server-development/8.pack.gz
Binary file not shown.
Binary file modified .next/cache/webpack/server-development/9.pack.gz
Binary file not shown.
Binary file modified .next/cache/webpack/server-development/index.pack.gz
Binary file not shown.
Binary file modified .next/cache/webpack/server-development/index.pack.gz.old
Binary file not shown.
9 changes: 4 additions & 5 deletions .next/server/app-paths-manifest.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
{
"/_not-found/page": "app/_not-found/page.js",
"/forms/result/[uuid]/page": "app/forms/result/[uuid]/page.js",
"/login/page": "app/login/page.js",
"/page": "app/page.js",
"/forms/page": "app/forms/page.js",
"/forms/[uuid]/page": "app/forms/[uuid]/page.js",
"/forms/[uuid]/response/[response]/page": "app/forms/[uuid]/response/[response]/page.js",
"/forms/show/[uuid]/page": "app/forms/show/[uuid]/page.js",
"/favicon.ico/route": "app/favicon.ico/route.js"
"/forms/[uuid]/response/[response]/page": "app/forms/[uuid]/response/[response]/page.js",
"/forms/create/page": "app/forms/create/page.js"
}
4 changes: 2 additions & 2 deletions .next/server/app/forms/page.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion .next/server/app/forms/page_client-reference-manifest.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion .next/server/middleware-build-manifest.js

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

6 changes: 1 addition & 5 deletions .next/server/pages-manifest.json
Original file line number Diff line number Diff line change
@@ -1,5 +1 @@
{
"/_app": "pages/_app.js",
"/_error": "pages/_error.js",
"/_document": "pages/_document.js"
}
{}
2 changes: 1 addition & 1 deletion .next/server/server-reference-manifest.js

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

2 changes: 1 addition & 1 deletion .next/server/server-reference-manifest.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"node": {},
"edge": {},
"encryptionKey": "mlCOrvVyUAmJsYGaxQ+mAdb5q6qZeHNJxw2uAljyWbI="
"encryptionKey": "YeDg4fwV4+9hU3km4JeItN1wsNcRAiWmCgDxPQ+J+P4="
}
7 changes: 1 addition & 6 deletions .next/server/webpack-runtime.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,6 @@
/******/ __webpack_require__.m = __webpack_modules__;
/******/
/************************************************************************/
/******/ /* webpack/runtime/amd options */
/******/ (() => {
/******/ __webpack_require__.amdO = {};
/******/ })();
/******/
/******/ /* webpack/runtime/compat get default export */
/******/ (() => {
/******/ // getDefaultExport function for compatibility with non-harmony modules
Expand Down Expand Up @@ -130,7 +125,7 @@
/******/
/******/ /* webpack/runtime/getFullHash */
/******/ (() => {
/******/ __webpack_require__.h = () => ("b444829db6174f53")
/******/ __webpack_require__.h = () => ("109e7753c454bf1e")
/******/ })();
/******/
/******/ /* webpack/runtime/hasOwnProperty shorthand */
Expand Down
215 changes: 66 additions & 149 deletions .next/trace

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions src/app/forms/[uuid]/components/edit-question-form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ const EditQuestionForm: React.FC<EditQuestionFormProps> = ({
);

// Update the value of an option
const updateOption: UpdateOption = (index, event) => {
const updateOption: UpdateOption = (index, newValue) => {
const newItems: any = [...options];
newItems[index].value = event.target.value;
newItems[index].value = newValue;
setOptions(newItems);
};

Expand Down Expand Up @@ -177,7 +177,7 @@ const EditQuestionForm: React.FC<EditQuestionFormProps> = ({
{options.map((item: any, index: number) => {
return (
<div
key={crypto.randomUUID()}
key={index}
className="w-full flex justify-between items-cenFter"
>
<div className="w-11/12 flex items-center gap-2.5">
Expand All @@ -187,8 +187,8 @@ const EditQuestionForm: React.FC<EditQuestionFormProps> = ({
}`}
></div>
<input
onChange={(e) => updateOption(index, e)}
value={item.value}
onChange={(e) => updateOption(index, e.target.value)}
className="w-[calc(100%-26px)] border-b focus:border-tremor-brand-boulder300/80 border-primary-boulder200/50 text-[13px] pb-1 px-1 font-light placeholder:text-primary-boulder300 text-primary-boulder950 outline-none"
/>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/app/forms/[uuid]/components/form-questions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ const FormQuestions: React.FC<FormQuestionsProps> = ({
<QuestionSection
handleDeleteQuestion={handleDeleteQuestion}
data={item}
key={crypto.randomUUID()}
key={item.number}
setFormQuestions={setVetQuestions}
/>
))}
Expand Down
2 changes: 1 addition & 1 deletion src/app/forms/[uuid]/components/form-responses.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ const FormResponses: React.FC<FormResponsesInterface> = ({
{responses.map((item: any, index: number) => {
return (
<tr
key={crypto.randomUUID()}
key={item.created_at}
className={`w-full h-11 ${
index % 2 === 0 ? "bg-primary-boulder300/10" : ""
}`}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,7 @@ const AnswerSection: React.FC<AnswerSectionProps> = ({ data }) => {
<RadioGroup defaultValue={data.answer.answer || ""}>
{data.question.options.map((option: any) => {
return (
<div
key={crypto.randomUUID()}
className="flex items-center space-x-2"
>
<div key={data.number} className="flex items-center space-x-2">
<RadioGroupItem
disabled
value={option.value || ""}
Expand Down Expand Up @@ -100,10 +97,7 @@ const AnswerSection: React.FC<AnswerSectionProps> = ({ data }) => {
<div className="w-full flex flex-col gap-2">
{data.question.options.map((option: any) => {
return (
<div
key={crypto.randomUUID()}
className="flex items-center space-x-2"
>
<div key={data.number} className="flex items-center space-x-2">
<Checkbox
id={data.number + option.value}
checked={data.answer.answer?.indexOf(option.value) > -1}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ const ResponseContent: React.FC<ResponseContentProps> = ({ uuid }) => {
<div className="mt-6 w-full flex flex-col gap-5 pb-10">
{answers &&
answers.map((item: any) => {
return <AnswerSection key={crypto.randomUUID()} data={item} />;
return <AnswerSection key={item.number} data={item} />;
})}
</div>
</section>
Expand Down
4 changes: 2 additions & 2 deletions src/app/forms/components/home.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ export default function FormsDashboard() {
.slice(1, currentPageInfo.links.length - 1)
.map((item: any) => {
return (
<PaginationItem key={crypto.randomUUID()}>
<PaginationItem key={item.label}>
<PaginationLink
isActive={item.active}
href={item.url ? "/forms" + item?.url?.slice(45) : ""}
Expand Down Expand Up @@ -151,7 +151,7 @@ export default function FormsDashboard() {
data.map((item: any) => {
return (
<FormGridTile
key={crypto.randomUUID()}
key={item.uuid}
item={item}
deleteForm={() => {
setIdToBeDeleted(item.uuid);
Expand Down
10 changes: 2 additions & 8 deletions src/app/forms/result/[uuid]/components/question-and-answer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,7 @@ const QuestionAndAnswer: React.FC<QuestionAndAnswerProps> = ({ data }) => {
<RadioGroup defaultValue={data?.form_answers[0]?.answer || ""}>
{data?.options.map((option: any) => {
return (
<div
key={crypto.randomUUID()}
className="flex items-center space-x-2"
>
<div key={data.number} className="flex items-center space-x-2">
<RadioGroupItem
disabled
value={option.value || ""}
Expand Down Expand Up @@ -99,10 +96,7 @@ const QuestionAndAnswer: React.FC<QuestionAndAnswerProps> = ({ data }) => {
<div className="w-full flex flex-col gap-2">
{data?.options.map((option: any) => {
return (
<div
key={crypto.randomUUID()}
className="flex items-center space-x-2"
>
<div key={data.number} className="flex items-center space-x-2">
<Checkbox
id={data.number + option.value}
checked={
Expand Down
4 changes: 1 addition & 3 deletions src/app/forms/result/[uuid]/components/show-result.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,7 @@ const ShowResult: React.FC<ShowResultProps> = ({ resultUUID }) => {
<div className="mt-6 w-full flex flex-col gap-5 pb-10">
{response &&
response?.form?.form_questions.map((item: any) => {
return (
<QuestionAndAnswer key={crypto.randomUUID()} data={item} />
);
return <QuestionAndAnswer key={item.number} data={item} />;
})}
</div>
</div>
Expand Down
10 changes: 2 additions & 8 deletions src/app/forms/show/[uuid]/components/render-question.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -119,10 +119,7 @@ const RenderQuestion: React.FC<RenderQuestionProps> = ({
<div className="w-full flex flex-col gap-2">
{item.options.map((option: any) => {
return (
<div
key={crypto.randomUUID()}
className="flex items-center space-x-2"
>
<div key={item.number} className="flex items-center space-x-2">
<Checkbox
id={item.number + option.value}
onCheckedChange={() =>
Expand Down Expand Up @@ -152,10 +149,7 @@ const RenderQuestion: React.FC<RenderQuestionProps> = ({
>
{item.options.map((option: any) => {
return (
<div
key={crypto.randomUUID()}
className="flex items-center space-x-2"
>
<div key={item.number} className="flex items-center space-x-2">
<RadioGroupItem
checked={item.answer === option.value}
value={option.value}
Expand Down
2 changes: 1 addition & 1 deletion src/app/forms/show/[uuid]/components/show-form.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ const ShowForm: React.FC<ShowFormProps> = ({ formUUID }) => {
{questions.map((item: any) => {
return (
<RenderQuestion
key={crypto.randomUUID()}
key={item.number}
item={item}
formUUID={formUUID}
updateAnswerValue={updateAnswerValue}
Expand Down

0 comments on commit 89c4098

Please sign in to comment.