-
Notifications
You must be signed in to change notification settings - Fork 1
Organizer Portal: Data Entry
number of tables input
: the user will type in the number of tables that will be present at the hackathon, which along with other inputs will be used to calculate how to cluster tables and how many projects per table are needed.
number of clusters input
: the user will type in the number of clusters there needs to be so that with the input of the number of tables we can organize the clusters for the different categories there will be.
waves of judges input
: the user will type in the number of waves of judges there will be so as to use the data in setting times and duration for each judge and participant pairs. This information will be necessary also in creating the participant-facing spreadsheet.
upload devpost input
: the user will click on the upload button to retrieve all the CSV's from devpost when appropriate.
tablenum
: This component takes in the number of tables that the user inputs.
clusternum
: This component takes in the number of clusters that the user inputs.
wavenum
: This component takes in the number of waves of judges that the user inputs.
tableCSVName
: This component stores the name of the tables CSV file. By default, this component is set to 'UPLOAD FILE'
. If a file is uploaded, this component is set to the name of the uploaded file.
tablesreader
: This component stores the FileReader object for parsing the uploaded tables CSV file.
projectCSVName
: This component stores the name of the projects CSV file. By default, this component is set to 'UPLOAD FILE'
. If a file is uploaded, this component is set to the name of the uploaded file.
projectsReader
: This component stores the FileReader object for parsing the uploaded tables projects CSV file.
changeTablesFileName(event)
: This function changes the tables file name once a tables csv file is uploaded.
handleProjectsFileRead(file)
: This function sets the projects files name and creates the FileReader object for the projects file.
changeProjectsFileName(event)
: This function changes the projects file name once a projects csv file is uploaded.
postProjectsAPIs()
: This function posts the projects parsed from the projects CSV table to the projects table in the database.
getProjects()
: This function gets the projects from the projects table in the database.
handleTablesFileUpload(event)
: This function creates the file reader object for the tables csv file.
handleWave(event)
: This function sets the wave of a project.
handleTable(event)
: This function sets the table for a project.
postTables(length)
: This function uploads the data from the tables csv file to the projects table and resets the upload tables button.
routeToNext()
: This function routes the organizer to the next page (Data Entry) and calls all the post functions to upload the relevant information to the database.