aboutsummaryrefslogtreecommitdiffstats
path: root/web/vendor
Commit message (Collapse)AuthorAgeLines
* Nicer multi-select elements in Admin pagesZarino Zappia2017-11-29-9/+9
| | | | Fixes #1589.
* Switch to minified jQuery multi-select library.Matthew Somerville2017-11-22-337/+9
| | | | And fix reference to it in the front page prefetch list.
* Move jquery.multi-select.js into vendor directoryZarino Zappia2017-11-20-0/+337
| | | | | The multi-select plugin is a separate project, and should be treated as a vendor file.
* Use modern prefetch.Matthew Somerville2017-11-15-1/+0
| | | | | | | | | | | | | This removes the yepnope library, instead using <link rel="prefetch"> with a polyfill (the polyfill will work on Safari but reload cached script on the front page each time). We prefetch map-related JavaScript (and other libraries only used on map pages, such as Dropzone and Fancybox) on non-map pages, and don't bother loading the validate plugin on the front page. Now the map JavaScript list is available everywhere, we can use that in the prefetch rather a hardcoded list.
* Remove ancient geolocation JS library.Matthew Somerville2017-11-06-85/+0
|
* [Zurich] Upgrade OpenLayers to master, matching others.Matthew Somerville2017-08-18-1364/+620
|
* [fixmystreet.com] New version of /reports page.Zarino Zappia2017-07-06-0/+81
| | | | | | | | | | | This is a much broader summary page, plus a body name autocomplete. This uses a cut down version of chart.js. [1] [1] The full version was 149Kb (41Kb gzipped) plus you needed moment (50Kb/17Kb), for a total of 199Kb/58Kb. By stripping out unused graphs and code and config options, and switching to category axis rather than time, it is now a total of 39Kb/13Kb.
* Resize photos client-side before uploadingDave Arter2017-06-30-61/+1
| | | | | | | | | | | | | | | | The newest version of Dropzone has added support for client-side resizing of images, so this commit upgrades to version 5.1.1 and takes advantage of that in order to reduce the disc space consumed by uploaded images. The target size & JPEG quality is quite aggressive, resulting in files in the region of 200-300KB instead of several MB. I've tried to pick a value which doesn't impact the usefulness of the photos in identifying problems. Handily the new version also correctly rotates images according to the EXIF tag so our patch has be reduced dramatically to deal with the sync nature of the mini EXIF library in use. Related to the disc space part of #1411, though EXIF metadata isn't stripped.
* Move third party libraries into vendor directoriesMatthew Somerville2017-05-23-0/+8545
This makes the git hook that lints our own JavaScript easier, and keeps things more cleanly separated. We also remove unused third party libraries (select2 and jquery.placeholder).