Skip to content

Commit

Permalink
Merge pull request #193 from danielperna84/devel
Browse files Browse the repository at this point in the history
0.4.0
  • Loading branch information
danielperna84 authored Feb 24, 2020
2 parents 255136b + 5167e92 commit 1a7775d
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 3 deletions.
4 changes: 4 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
Version 0.4.0 (2020-02-24)
- Fix file history width (Issue #192)
- Store HASS-panel visibility state (Issue #189)

Version 0.3.9 (2020-02-18)
- Some dependencies were missing from the package (Issue #187) @tjorim

Expand Down
2 changes: 1 addition & 1 deletion hass_configurator/configurator.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@
logging.Formatter('%(levelname)s:%(asctime)s:%(name)s:%(message)s'))
LOG.addHandler(SO)
RELEASEURL = "https://api.github.com/repos/danielperna84/hass-configurator/releases/latest"
VERSION = "0.3.9"
VERSION = "0.4.0"
BASEDIR = "."
DEV = False
LISTENPORT = None
Expand Down
9 changes: 9 additions & 0 deletions hass_configurator/dev.html
Original file line number Diff line number Diff line change
Expand Up @@ -1650,6 +1650,7 @@ <h4 class="grey-text text-darken-3"><a class="black-text" href="https://github.c
var init_loadfile = $loadfile;
var global_current_filepath = null;
var global_current_filename = null;
var global_hass_panel_hidden = null;

function toggle_hass_panels() {
if (document.getElementById("hass_menu_l").style.display == "none") {
Expand All @@ -1658,28 +1659,33 @@ <h4 class="grey-text text-darken-3"><a class="black-text" href="https://github.c
document.getElementById("editor").classList.add("l9");
document.getElementById("filename_row").classList.remove("l12");
document.getElementById("filename_row").classList.add("l9");
global_hass_panel_hidden = false;
}
else {
document.getElementById("hass_menu_l").style.display = "none";
document.getElementById("editor").classList.remove("l9");
document.getElementById("editor").classList.add("l12");
document.getElementById("filename_row").classList.remove("l9");
document.getElementById("filename_row").classList.add("l12");
global_hass_panel_hidden = true;
}
if (document.getElementById("hass_menu_s").style.display == "none") {
document.getElementById("hass_menu_s").style.display = "";
document.getElementById("editor").classList.remove("l12");
document.getElementById("editor").classList.add("l9");
document.getElementById("filename_row").classList.remove("l12");
document.getElementById("filename_row").classList.add("l9");
global_hass_panel_hidden = false;
}
else {
document.getElementById("hass_menu_s").style.display = "none";
document.getElementById("editor").classList.remove("l9");
document.getElementById("editor").classList.add("l12");
document.getElementById("filename_row").classList.remove("l9");
document.getElementById("filename_row").classList.add("l12");
global_hass_panel_hidden = true;
}
localStorage.setItem('hass_panel_hidden', global_hass_panel_hidden);
}

function got_focus_or_visibility() {
Expand Down Expand Up @@ -1826,6 +1832,9 @@ <h4 class="grey-text text-darken-3"><a class="black-text" href="https://github.c
localStorage.removeItem("current_file");
}
localStorage.removeItem("new_tab");
if (localStorage.getItem("hass_panel_hidden") =="true") {
toggle_hass_panels();
}
}
});
</script>
Expand Down
2 changes: 1 addition & 1 deletion hass_configurator/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ li.collection-item {
color: #fff;
}

#dropdown_menu, #dropdown_menu_mobile {
#file_history, #dropdown_menu, #dropdown_menu_mobile {
min-width: 235px;
}

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

NAME = "hass-configurator"
PACKAGE_NAME = "hass_configurator"
VERSION = "0.3.9"
VERSION = "0.4.0"

setup(name=NAME,
version=VERSION,
Expand Down

3 comments on commit 1a7775d

@jempo
Copy link

@jempo jempo commented on 1a7775d Sep 29, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry Daniel, but in master branch i can't see this changes. If you check che master branch i see that VERSION is 0.3.7

@danielperna84
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry Daniel, but in master branch i can't see this changes. If you check che master branch i see that VERSION is 0.3.7

You have to look at this file: https://github.com/danielperna84/hass-configurator/blob/master/hass_configurator/configurator.py

@jempo
Copy link

@jempo jempo commented on 1a7775d Sep 29, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok sorry Daniel for my mistake :)

Please sign in to comment.