-
Notifications
You must be signed in to change notification settings - Fork 88
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #90 from 0adiy/main
Refactor: added iteration in questions view and separated the questions content, also modified the post logic for the form
- Loading branch information
Showing
3 changed files
with
210 additions
and
345 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,150 @@ | ||
const questions = [ | ||
{ | ||
question: "How often do you find yourself happy?", | ||
options: [ | ||
{ value: 5, text: "Frequently" }, | ||
{ value: 0, text: "Rarely" }, | ||
], | ||
}, | ||
{ | ||
question: "Do you often experience feelings of excitement and enthusiasm?", | ||
options: [ | ||
{ value: 5, text: "Frequently" }, | ||
{ value: 0, text: "Rarely" }, | ||
], | ||
}, | ||
{ | ||
question: | ||
"How frequently do you feel grateful for the good things in your life?", | ||
options: [ | ||
{ value: 5, text: "Frequently" }, | ||
{ value: 0, text: "Rarely" }, | ||
], | ||
}, | ||
{ | ||
question: "Do you feel jealous at some times?", | ||
options: [ | ||
{ value: 0, text: "Affermative" }, | ||
{ value: 5, text: "Negative" }, | ||
], | ||
}, | ||
{ | ||
question: | ||
"Do you actively seek out new challenges to keep yourself engaged?", | ||
options: [ | ||
{ value: 5, text: "Frequently" }, | ||
{ value: 0, text: "Rarely" }, | ||
], | ||
}, | ||
{ | ||
question: | ||
"How often do you lose track of time, when you're doing activities you enjoy?", | ||
options: [ | ||
{ value: 5, text: "Frequently" }, | ||
{ value: 0, text: "Rarely" }, | ||
], | ||
}, | ||
{ | ||
question: "How often do you get completely absorbed in what you're doing?", | ||
options: [ | ||
{ value: 5, text: "Frequently" }, | ||
{ value: 0, text: "Rarely" }, | ||
], | ||
}, | ||
{ | ||
question: "Can you dance without fear in public?", | ||
options: [ | ||
{ value: 5, text: "Affermative" }, | ||
{ value: 0, text: "Negative" }, | ||
], | ||
}, | ||
{ | ||
question: | ||
"Do you feel like you have a support system of friends and family?", | ||
options: [ | ||
{ value: 5, text: "Affermative" }, | ||
{ value: 0, text: "Negative" }, | ||
], | ||
}, | ||
{ | ||
question: | ||
"How often do you spend quality time with people who uplift and inspire you?", | ||
options: [ | ||
{ value: 5, text: "Frequently" }, | ||
{ value: 0, text: "Rarely" }, | ||
], | ||
}, | ||
{ | ||
question: | ||
"Do you feel comfortable sharing your thoughts and feelings with others?", | ||
options: [ | ||
{ value: 5, text: "Affermative" }, | ||
{ value: 0, text: "Negative" }, | ||
], | ||
}, | ||
{ | ||
question: "Do you feel you need a partner?", | ||
options: [ | ||
{ value: 0, text: "Affermative" }, | ||
{ value: 5, text: "Negative" }, | ||
], | ||
}, | ||
{ | ||
question: "Do you feel a sense of purpose and direction in your life?", | ||
options: [ | ||
{ value: 6, text: "Affermative" }, | ||
{ value: 0, text: "Negative" }, | ||
], | ||
}, | ||
{ | ||
question: | ||
"Do you feel that your life has a deeper meaning beyond just day-to-day activities?", | ||
options: [ | ||
{ value: 5, text: "Affermative" }, | ||
{ value: 0, text: "Negative" }, | ||
], | ||
}, | ||
{ | ||
question: "Do you spend negative time on socials?", | ||
options: [ | ||
{ value: 0, text: "Affermative" }, | ||
{ value: 5, text: "Rarely" }, | ||
], | ||
}, | ||
{ | ||
question: "Do you like going to college/school/office?", | ||
options: [ | ||
{ value: 5, text: "Affermative" }, | ||
{ value: 0, text: "Negative" }, | ||
], | ||
}, | ||
{ | ||
question: "Have you achieved any major goals?", | ||
options: [ | ||
{ value: 5, text: "Affermative" }, | ||
{ value: 0, text: "Negative" }, | ||
], | ||
}, | ||
{ | ||
question: "Do you think your Parents are proud of you?", | ||
options: [ | ||
{ value: 5, text: "Affermative" }, | ||
{ value: 0, text: "Negative" }, | ||
], | ||
}, | ||
{ | ||
question: "Do you think people respect you?", | ||
options: [ | ||
{ value: 5, text: "Affermative" }, | ||
{ value: 0, text: "Negative" }, | ||
], | ||
}, | ||
{ | ||
question: "Do you think you have done good in your life so far?", | ||
options: [ | ||
{ value: 5, text: "Affermative" }, | ||
{ value: 0, text: "Negative" }, | ||
], | ||
}, | ||
]; | ||
module.exports = questions; |
Oops, something went wrong.