diff --git a/configurator/CHANGELOG.md b/configurator/CHANGELOG.md index b6c5ee7..51017a6 100644 --- a/configurator/CHANGELOG.md +++ b/configurator/CHANGELOG.md @@ -1,42 +1,58 @@ # Changelog +## 3.2 + +- Add `mdi:wrench` as panel icon +- Add options `ignore_pattern` + ## 3.1 + - Add options `dirsfirst` and `enforce_basepath` ## 3.0 + - Update Python to version 3.7 - Update Configurator to version 0.3.5 - Migrate Add-on to new Ingress - Pin Home Assistant requirements to 0.91.1 ## 2.1 + - Update python version ## 2.0 + - Add access to folder: `/share`, `/backup` ## 1.2 + - Update Configurator to version 0.3.2 ## 1.1 + - Fixed ssl certificate path bug ## 1.0 + - Update Configurator to version 0.3.1 ## 0.4 + - Update Configurator to version 0.2.9 ## 0.3 + - Update Configurator to version 0.2.8 ## 0.2.7 + - Setting SO_REUSEADDR on socket for proper restarts - Using Threading to handle multiple connections - New VERIFY_HOSTNAME option to block requests without correct host header - Fixed filebrowser hiding ## 0.2.6 + - Displaying current filename in title - Added menu item to open configurator in new tab - Automatically load last viewed (and not closed) file via localStorage @@ -44,6 +60,7 @@ - Prompting before saving now opt-in in editor settings ## 0.2.5 + - Added warning-logs for access failure - Added transparency to whitespace characters - Using external repository for Docker @@ -52,5 +69,6 @@ - Added "Sesame" feature ## 0.2.4 + - YAML lint support - Support new Hass.io token system diff --git a/configurator/config.json b/configurator/config.json index 15a9da0..a62ddf1 100644 --- a/configurator/config.json +++ b/configurator/config.json @@ -1,6 +1,6 @@ { "name": "Configurator", - "version": "3.1", + "version": "3.2", "slug": "configurator", "description": "Browser-based configuration file editor for Home Assistant.", "url": "https://home-assistant.io/addons/configurator", @@ -9,6 +9,7 @@ "startup": "application", "webui": "http://[HOST]:[PORT:8080]", "ingress": true, + "panel_icon": "mdi:wrench", "auth_api": true, "homeassistant_api": true, "boot": "auto", @@ -23,11 +24,15 @@ }, "options": { "dirsfirst": false, - "enforce_basepath": false + "enforce_basepath": false, + "ignore_pattern": [ + "__pycache__" + ] }, "schema": { "dirsfirst": "bool", - "enforce_basepath": "bool" + "enforce_basepath": "bool", + "ignore_pattern": ["str"] }, "image": "homeassistant/{arch}-addon-configurator" } diff --git a/configurator/data/configurator.conf b/configurator/data/configurator.conf index abc6759..eab9d16 100644 --- a/configurator/data/configurator.conf +++ b/configurator/data/configurator.conf @@ -16,7 +16,7 @@ "ALLOWED_DOMAINS": [], "BANNED_IPS": [], "BANLIMIT": 0, - "IGNORE_PATTERN": [], + "IGNORE_PATTERN": %%IGNORE_PATTERN%%, "DIRSFIRST": %%DIRSFIRST%%, "SESAME": null, "SESAME_TOTP_SECRET": null, diff --git a/configurator/data/run.sh b/configurator/data/run.sh index ebe1e2d..ffb4e59 100755 --- a/configurator/data/run.sh +++ b/configurator/data/run.sh @@ -3,6 +3,7 @@ set -e DIRSFIRST=$(bashio::config 'dirsfirst') ENFORCE_BASEPATH=$(bashio::config 'enforce_basepath') +IGNORE_PATTERN="$(bashio::jq "/data/options.json" ".ignore_pattern")" WAIT_PIDS=() # Setup and run Frontend @@ -16,6 +17,7 @@ WAIT_PIDS+=($!) sed -i "s/%%TOKEN%%/${HASSIO_TOKEN}/g" /etc/configurator.conf sed -i "s/%%DIRSFIRST%%/${DIRSFIRST}/g" /etc/configurator.conf sed -i "s/%%ENFORCE_BASEPATH%%/${ENFORCE_BASEPATH}/g" /etc/configurator.conf +sed -i "s/%%IGNORE_PATTERN%%/${IGNORE_PATTERN}/g" /etc/configurator.conf hass-configurator /etc/configurator.conf & WAIT_PIDS+=($!)