Module: check_mk
Branch: master
Commit: f65aae5ff13fe1418b968ba299b505ecf2d4ad76
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=f65aae5ff13fe1…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Fri Dec 21 10:08:29 2018 +0100
sidebar.js: Refactored sidebar to be a standalone module
* Imports and exports are explicitly declared now
* Moved visibility detection and foldable container logic to own modules
* File is eslint clean now
Change-Id: I2c61537cd76a2ecfdc8b589252dca3f5eb2eb6de
---
cmk/gui/htmllib.py | 4 +-
cmk/gui/plugins/sidebar/bookmarks.py | 4 +-
cmk/gui/plugins/sidebar/dashboards.py | 2 +-
cmk/gui/plugins/sidebar/master_control.py | 2 +-
cmk/gui/plugins/sidebar/site_status.py | 2 +-
cmk/gui/plugins/sidebar/utils.py | 2 +-
cmk/gui/plugins/sidebar/views.py | 4 +-
cmk/gui/plugins/sidebar/virtual_host_tree.py | 8 +-
cmk/gui/plugins/sidebar/wato.py | 10 +-
cmk/gui/sidebar.py | 51 ++--
web/htdocs/js/checkmk.js | 334 +-------------------------
web/htdocs/js/dashboard.js | 8 +-
web/htdocs/js/index.js | 24 +-
web/htdocs/js/modules/foldable_container.js | 107 +++++++++
web/htdocs/js/{ => modules}/sidebar.js | 309 ++++++++++++------------
web/htdocs/js/modules/utils.js | 128 +++++++++-
web/htdocs/js/modules/visibility_detection.js | 102 ++++++++
web/htdocs/js/side_index.js | 13 +-
18 files changed, 582 insertions(+), 532 deletions(-)
Diff:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commitdiff;h=f65aae5ff1…