* add the influxdbu shortcode for diplaying InfluxDB U banners
* add influxdbu banner media queries
* remove placholder influxdbu shortcode
* blacklist heading elements from having anchor links added
* fix: set cookie to empty string if undefined.
* fix: indent.
* fix: run validation on every keyup, delayed by 500ms.
* fix: replacing URLs and hosts.
1. Safari (and FF?) don't support regex lookbehinds. Instead of a
lookbehind, capture the preceding and following character of a
matched hostname then check that they don't match URL delimiter
characters (to avoid altering a full URL).
2. When replacing full URLs, match an optional port pattern to avoid
partial replacement, e.g. if the previous URL was http://a.com,
the user changed to http://a.com:90, and we've already replaced
once, replace the whole URL, not
just http://a.com with http://a.com:90.
Some refactoring for efficiency and debugging.
* fix: URL validation. Let URL() tell us if it's valid. If it's not, check the pieces with regex. Improve the domain pattern to require a host (not just a port number).
* Update assets/js/influxdb-url.js
Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com>
Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com>
* Change lambda function to recognize clean URLs
* More bug fixes to CF template and function
* Add redirect for root to /v2.0
* Fix lambda rewrite logic
* Switch to using multiple cache behaviors
* Experiment with deleting lambda@edge functions
* Change lambda function to recognize clean URLs
* More bug fixes to CF template and function
* Add redirect for root to /v2.0
* Fix lambda rewrite logic
* Switch to using multiple cache behaviors
* Experiment with deleting lambda@edge functions
* Update nodejs version in redirect lambda
* Use edge lambda function and remove path redirects.
* updated edge.js and cloudformation template
* revamped lambda edge function, made other template adjustments
Co-authored-by: Gunnar Aasen <gunnar.r.aasen@gmail.com>