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

20 commits

Author SHA1 Message Date
Mike Perham
2ed92600fa Missed a few 2018-02-17 14:09:28 -08:00
Mike Perham
ad80323432 Force Redis 4.x now, fixes #3748 2018-02-06 08:58:55 -08:00
Mike Perham
89fcf0c145 Avoid r-n deprecation message, fixes #3716 2018-01-11 07:12:29 -08:00
Mike Perham
84273fb346 Update redis gem to avoid using the deprecated client API, fixes #3617 2017-09-28 21:43:41 -07:00
Mike Perham
596c981f02 Show actual location, not :id, fixes #3560 2017-08-08 10:43:27 -07:00
Mike Perham
df99ca982e Remove Hash#{stringify,symbolize}_keys, #3474 2017-05-15 14:57:03 -07:00
Mike Perham
1399963eb0 It turns out that a deep merge isn’t required, #3474
All locale files are a top-level locale key with a Hash of (key, string) translations, nothing more iirc.
2017-05-15 14:57:03 -07:00
Rafael Fidelis
0d314b145c Update footer UTC time in pooling dashboard refresh (#3457) 2017-05-04 07:20:05 -07:00
Johan Lundström
3b96430046 Improve parsing of HTTP_ACCEPT_LANGUAGE (continue Nate's work) (#3449)
* Add test case for sv locale

* Use Rack::Utils to parse locale header

* Take "q" value into account

* Make '*' match the default locale.

* Add test for available_locales

* Correct test case sv -> en

* Add missing test cases for Safari requests

* Add missing require needed to run a single test file

* Reimplement WebHelpers#locale to handle regions in header

Implementation inspired by:

https://github.com/iain/http_accept_language/blob/master/lib/http_accept_language/parser.rb

Also see:

https://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.4

* Add docs and references

* Add failing test cases for pt-br, pt-pt, pt (examples taken from Chrome & Safari)

* Add more test cases for Mac + Chrome + UK English + US English

* Make test cases for 'pt-PT,pt;q=0.8,en-US;q=0.6,en;q=0.4' and 'pt-pt' pass

* Make special case 'ru,en' work (equal qvalues)
2017-05-01 10:47:51 -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
cfc3f314e4 escape page and poll parameters for safety 2017-02-15 09:29:17 -08:00
Mike Perham
042b61a693 Restore timestamp tooltips, fixes #3310 2017-01-08 17:00:55 -08:00
Mike Perham
b06c1ec7f2 Remove unused method 2016-11-23 20:08:27 -08:00
Mike Perham
e537b4dffb Don’t display “All” action buttons when filtering is active, #3243 2016-11-19 13:24:13 -08:00
sebastienvercammen
ebf04857d2 I swear to god... (#3237) 2016-11-12 17:39:08 -05:00
Mike Perham
0c098787b0 Remove poll_js and inline JS script, fixes #3133 2016-09-12 14:32:54 -07:00
Mike Perham
de13425b44 Fix Ruby warnings, thanks for the reminder @nateberkopec 2016-08-30 13:29:03 -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
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
Renamed from lib/sidekiq/web_helpers.rb (Browse further)