Skip to content

Instantly share code, notes, and snippets.

View eylulyurdakul's full-sized avatar

Eylül Dicle Yurdakul eylulyurdakul

  • @novoresumeberserkers
  • Copenhagen
View GitHub Profile
View CA Web-App structure
Start with App.js. Direct to LoggedInView. There a model of a whole system is rendered according to the current values of hubs, batches, violations etc. The elements (and the initialization values) that form 'the model' can be found in Model.js under data folder. The requests for fetching these elements are in requests.js under data folder. But there is also an interaction.js file under the same folder, which basically has the functions about the intereactions between these elements (such as getBatch, initViolations); however, they also fetch info. (This file can be merged with requests.js ?) api.js file is just to template the api requests in the project.
App.js first renders LoggedInView and then renders UploadingPhotosInfo if there is a photoQueue (of whcih length is bigger than zero) of the newly fetched model by LoggedInView.
Violation.js uses react-dropzone to drag and drop files to upload area. It imports CompanySearch.js but there is not a proper usage of the import in the file ?