Skip to content
No description, website, or topics provided.
JavaScript CSS HTML PHP
Branch: master
Clone or download
Pull request Compare This branch is even with jeffreypeter:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
css
images
js
lib
.gitignore
README.md
api.php
index.html

README.md

uReport

Link: uReport

  • Primarily used HTML & Javascript. PHP is used only for forwarding open311.
  • Focused more on the usability & responsive design.

Issues

  • Auto Refreshing of layout has been disable. Currently, if the page is manually resized after pageload - popup is not placed on the right location.

Directory

ureport
│   index.html
│   api.php
│   
└───lib 
│
└───images
│
└───js 
│   └───uReport.js
│
└───css
    └───uReport.scss
    └───uReport.css

index.html

  • 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

api.php

  • has endpoints such as loadServices, getServiceDefinition & postRequest

JS

  • uReport.js has the logic for rendering & posting forms

CSS

  • uReport.scss - has the entire bootstrap 4 import within
  • uReport.css is generated from uReport.scss

lib

  • Has third party libraries

Dependency

PHP

- For routing and warping open311 api
- Holding encapsulating API key 

SCSS

- Preprocessor for CSS 
- Increases the manageability of CSS 

Javascript Plugins

- 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
You can’t perform that action at this time.