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

24 commits

Author SHA1 Message Date
Stephen Humphries
84dd20d397
Persist live poll status in browser localStorage (#4976)
* Persist live poll status in browser localStorage

* Prefix localStorage variables with 'sidekiq'

* Minor fix for default handling in localStorage timeInterval parsing
2021-08-30 12:31:41 -07:00
Mike Perham
9aeba313a9 Some mobile UI polish, fixes #4840 2021-03-12 16:05:40 -08:00
Yamagishi Kazutoshi
64be95f4ae
Use media attribute for prefers-color-scheme (#4500) 2020-03-23 05:37:35 -07:00
Mike Perham
e49e16b6e7 Initial pass at dark mode support, courtesy of @silent-e 2019-09-27 10:27:45 -07:00
Hayato
63fddb1b3a fix charset attribute of Web UI meta element
'utf8' is not valid standard IANA MIME name for character encodings.
2018-07-06 05:07:17 -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
Shane O'Grady
99506551d2 Replace jQuery.timeago (#3123)
* Remove jQuery.timeago

* Use new timeago.js library

This library is ~2KB, has no dependencies and includes several built-in locales.
It also updates the timestamp on the page in realtime.

* Set the timeago locale to the application locale

* Convert locale from hyphen to underscore

The localepassed by Rails/browser "Accept-Language" header needs to be
manipulated before being used by timeago.js
2016-09-20 10:15:31 -07:00
Mike Perham
0c098787b0 Remove poll_js and inline JS script, fixes #3133 2016-09-12 14:32:54 -07: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
Nate Matykiewicz
4cbb92f1b9 Use static favicon 2015-10-05 11:39:56 -05:00
Nate Matykiewicz
d1ed79d29a Add favicon of current status 2015-10-05 09:41:58 -05:00
Mike Perham
6e652817e3 Revert "Implement Web UI keyboard shortcuts, #2540"
This reverts commit 4c274f4cfb.
2015-09-08 14:09:48 -07:00
Mike Perham
4c274f4cfb Implement Web UI keyboard shortcuts, #2540
Needs: JS concat
2015-09-08 14:09:11 -07:00
Tom Benner
7982e4e890 Prevent redundant polling in the web UI 2015-06-21 11:33:32 -07:00
Anton Davydov
fc144ddd88 Added helper which provide ability to add your html to <head> tag 2015-03-30 03:39:16 +03:00
Jacob Evelyn
accf330a51 Add non-production environment names to web UI title 2014-10-16 16:46:21 -04:00
Abdelkader Boudih
8f0bdd065d [Webui] Add back button 2014-08-02 00:36:37 +00:00
Dom Hodgson
0d6c61a51b add fix for google translate bar 2014-03-28 08:04:39 +00:00
Jérémy Lecour
462bc4cee1 Display the full Redis connection in Web footer 2013-10-22 16:15:24 +02:00
Jeff Boek
beb5bc2ae3 Bootstrap upgrade 2013-09-30 21:43:24 -07:00
Brian Goff
a4cb27b273 Move poll button into partial 2013-09-23 11:28:26 -04:00
Brian Goff
23a5803711 Do not render status in the main page area 2013-09-22 18:36:44 -04:00
Kirill Nikitin
0a7e8ea439 Closes #1120 Removed slim. 2013-08-22 02:59:34 +04:00