Skip to content

Commit

Permalink
Multipage Surveys (#40)
Browse files Browse the repository at this point in the history
* First page

Co-Authored-By: Karan Sampath <[email protected]>

* Delete survey_page.pug

Co-Authored-By: Karan Sampath <[email protected]>

* Rectifying previous issues

* Remove cookie dependency by not accessing request body

* Csrf protection

* Updates to rendering and posting

* Fixed submission

Co-authored-by: Sumant R Shringari <[email protected]>
  • Loading branch information
karansampath and sumants-dev authored Nov 19, 2021
1 parent 47d505a commit c08ae45
Show file tree
Hide file tree
Showing 5 changed files with 428 additions and 87 deletions.
2 changes: 1 addition & 1 deletion google_drive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ import request = require("request");
// }

// Returns JSON of CSV string
export const parseCSV = (csvData: string): Promise<string> => {
export const parseCSV = (csvData: string): Promise<Object[]> => {
return new Promise((resolve, reject) => {
parse(csvData, { columns: true }, (err, JSONData) => {
if (err) reject(err);
Expand Down
90 changes: 73 additions & 17 deletions package-lock.json

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

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"stop_mongo": "sudo service mongodb stop"
},
"dependencies": {
"@types/csurf": "^1.11.2",
"axios": "^0.24.0",
"bcryptjs": "^2.4.3",
"body-parser": "^1.19.0",
Expand Down
Loading

0 comments on commit c08ae45

Please sign in to comment.