1
0
Fork 0
mirror of https://github.com/mperham/sidekiq.git synced 2022-11-09 13:52:34 -05:00
Commit graph

18 commits

Author SHA1 Message Date
Rafael Fidelis
0d314b145c Update footer UTC time in pooling dashboard refresh (#3457) 2017-05-04 07:20:05 -07:00
Mike Perham
ed485e47e4 Make Sidekiq Web UI RTL-friendly (#3381)
* Unminify rickshaw graph CSS so we can maintain it

* Initial BiDi support for the Web UI

BiDi means the web app can serve both LTR and RTL languages at the same time.

1. Bootstrap-RTL overrides Bootstrap 3.3 styles for RTL clients
2. Application CSS was preprocessed thru rtlcss and then hand-trimmed to contain only RTL-specific directives.
3. Dashboard was tweaked to hardcode LTR for footer and polling gadget

* Vendor bootstrap-rtl.css

* Various RTL style fixes, need to flip all pull-* elements

* Upgrade Rickshaw to latest, remove dupe CSS

* Add Arabic language (credit to Milena Novakova)
Add Hebrew placeholder
Added dir attribute to html tag

* changes

* Clean up HTTP header generation, add Content-Language response header

* Use correct locale for hebrew
2017-03-16 13:51:29 -07:00
Mike Perham
475865e613 Ensure content-type is always set, fixes #3338 2017-02-01 10:51:35 -08:00
Mike Perham
878ffff0c9 Fix a number of issues with URL-unsafe queue names, fixes #3327 2017-01-24 10:27:50 -08:00
Vladimir Kochnev
1a039f5708 Fixnum -> Integer replacement and Ruby 2.4 support for Travis. (#3293)
Fixnum is deprecated in Ruby 2.4 so we should get rid of it.
2016-12-26 08:47:00 -08:00
Mike Perham
959ab0ad49 Better root URL handling for zany web servers, fixes #3207 2016-11-03 11:10:53 -07:00
Mike Perham
83430b434f Don't use shared mutable constants for headers, fixes #3169. 2016-09-29 13:24:49 -07:00
onigra
c5e2e43a5c Fix uninitialized constant Sidekiq::WebAction::CONTENT_TYPE error (#3168)
* fix uninitialized constant Sidekiq::WebAction::CONTENT_TYPE

* remove space
2016-09-29 06:33:12 -07:00
Tim Dorr
c187be6521 Redirect from no trailing slash on Web UI (#3158)
Fixes #3151

If you mount at `/sidekiq` and visit the `/sidekiq` URL, it will now redirect over to `/sidekiq/`, rather than 404ing.
2016-09-22 12:07:52 -07:00
cconstantine
ba3037d63e Freeze shared header object in rack response so the current response's rack headers don't show up in the next request. 2016-09-16 16:38:58 -07:00
Mike Perham
1c05404e82 Disable Rack::ETag caching for all rendered pages, fixes #3127 2016-09-12 11:42:01 -07:00
Mike Perham
d2c1f491e6 web compat with Pro/Enterprise 2016-08-01 09:05:10 -07:00
Amadeus Folego
9ae228c521 Send Content-Length header 2016-07-29 16:15:07 -03:00
Mike Perham
e8cdbd80b4 Add necessary web infrastructure to support Pro/Ent 2016-07-29 12:09:00 -07:00
Amadeus Folego
d05066dc1a Implement compatibility interface with sinatra 2016-07-29 04:45:19 -03:00
Amadeus Folego
91fd77d44e Minor cleanups and improve extension compatibility 2016-07-27 16:18:52 -03:00
Mike Perham
20e1035bea Implement several extension points 2016-07-26 22:19:56 -07:00
Amadeus Folego
9ea167db16 Migrate Sidekiq::Web to a pure Rack application
Migrate Sidekiq::Web a pure Rack application to avoid sinatra as
dependency. rack-protection is still needed.

The application is mounted on top of Rack::Builder, mantaining all of
the previous http interface.

Rack apps being used:

- Rack::File to serve assets
- Rack::Session::Cookie, the secret can be configured via
  Sidekiq::Web.session_secret
- Rack::Protection, same as before when using sinatra
- Sidekiq::WebApplication, described below.

Sidekiq::WebApplication is a very simple rack application composed of a
Sidekiq::WebRouter and a Sidekiq::WebAction dispatcher. This terminology
was adopted to be able to mantain Sidekiq::Web as a Rack app.

The Router is heavily inspired on Rack::Router[0] (and in many parts
identical), however not being retrocompatible.

The Action is a wrapper to provide convenience, DRY code and maintain
the old interface.

I tried to mantain most of the old application structures so that
customizations and monkey-patches are easily adjustable or even
further work be done to enforce retrocompatibility.

Testing welcome!

0: https://github.com/pjb3/rack-router
2016-07-26 11:43:32 -03:00