Link: uReport
- Primarily used HTML & Javascript. PHP is used only for forwarding open311.
- Focused more on the usability & responsive design.
- Auto Refreshing of layout has been disable. Currently, if the page is manually resized after pageload - popup is not placed on the right location.
ureport
│ index.html
│ api.php
│
└───lib
│
└───images
│
└───js
│ └───uReport.js
│
└───css
└───uReport.scss
└───uReport.css
- Loads all the categories & services dynamically on pageload through AJAX
- Similarly on click of each service the service definitions are dynmaically loaded using underscore.js templates
- Templates can be found within script tags in index.html
- has endpoints such as loadServices, getServiceDefinition & postRequest
- uReport.js has the logic for rendering & posting forms
- uReport.scss - has the entire bootstrap 4 import within
- uReport.css is generated from uReport.scss
- Has third party libraries
- For routing and warping open311 api
- Holding encapsulating API key
- Preprocessor for CSS
- Increases the manageability of CSS
- Jquery
- Underscore js
- For Templating html snippets
- Can be migrated to Vue.js or Angular in future
- Bootstrap 4 - For responsive layout
- Google Map API
- blockUI - Can be replaced with JQuery/Plain Javascript