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

17 commits

Author SHA1 Message Date
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
c70e313a80 Change default dashboard poll to 5 sec, fixes #3376
Sidekiq 4.0 changed the heartbeat to update statistics only every five seconds so there’s little point to polling more frequently.
2017-03-08 14:46:21 -08:00
Amadeus Folego
d05066dc1a Implement compatibility interface with sinatra 2016-07-29 04:45:19 -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
Anton Davydov
8a95843692 Fix charts position on dashbord page [skip ci] 2015-03-25 01:43:16 +03:00
Moser, Kevin
736c0892d9 Update dashboard view to direct to /stats. Update Changes.md to include new changes 2014-12-29 11:06:59 -08:00
Abdelkader Boudih
f80f1155e3 [Webui] Fix style bug in tablet mode 2014-08-06 17:07:38 +00:00
Brandon Hilkert
a784478fe4 Use locale labels for dashboard graphs 2014-05-21 19:12:55 -04:00
Brandon Hilkert
123d7bb2f4 Update history graph with new hover legend 2014-05-21 16:37:49 -04:00
Brandon Hilkert
f0f996c6d1 Update labels on hover for realtime dashboard graph 2014-05-21 15:29:31 -04:00
Andrea Singh
165d528e08 removed tick marks and labels; clearing poller interval on page load 2014-05-18 18:16:17 -07:00
Andrea Singh
cf0fc53d46 persisting polling interval setting with localStorage; added tick marks with numbers to HTML5 slider element 2014-05-18 15:57:33 -07:00
Andrea Singh
754187936e Added slider control to make Web UI poll interval configurable 2014-05-17 22:02:16 -07:00
Alex Handley
b7e7d7fcd9 floated Redis stats in the center of the page 2013-09-24 18:15:59 +01:00
Tilmann Bruckhaus
ce66dc789d fix label for peak memory usage in dashboard view 2013-08-26 23:32:43 -07:00
Kirill Nikitin
62bc7f3c73 Fixed realtime and history dashboards. 2013-08-22 11:41:00 +04:00
Kirill Nikitin
0a7e8ea439 Closes #1120 Removed slim. 2013-08-22 02:59:34 +04:00