diff --git a/README.md b/README.md index eb46ed59..5afd7e7e 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,8 @@ -![Hyperion](doc/logo_dark.png#gh-dark-mode-only) -![Hyperion](doc/logo_light.png#gh-light-mode-only) + + + + Hyperion + [![Latest-Release](https://img.shields.io/github/v/release/hyperion-project/hyperion.ng?include_prereleases&label=Latest%20Release&logo=github&logoColor=white&color=0f83e7)](https://github.com/hyperion-project/hyperion.ng/releases) [![GitHub Actions](https://github.com/hyperion-project/hyperion.ng/workflows/Hyperion%20CI%20Build/badge.svg?branch=master)](https://github.com/hyperion-project/hyperion.ng/actions) diff --git a/assets/webconfig/js/content_effectsconfigurator.js b/assets/webconfig/js/content_effectsconfigurator.js index 34564539..0cf691f2 100644 --- a/assets/webconfig/js/content_effectsconfigurator.js +++ b/assets/webconfig/js/content_effectsconfigurator.js @@ -183,7 +183,7 @@ $(document).ready(function () { // Disable or enable Delete Effect Button $('#effectsdellist').off().on('change', function () { var value = $(this).val(); - value == null ? $('#btn_edit, #btn_delete').prop('disabled', true) : ""; + value == null ? $('#btn_edit').prop('disabled', true) : $('#btn_edit').prop('disabled', false); value.startsWith("int_") ? $('#btn_delete').prop('disabled', true) : $('#btn_delete').prop('disabled', false); }); diff --git a/assets/webconfig/js/lib/jquery.i18n/jquery.i18n.language.js b/assets/webconfig/js/lib/jquery.i18n/jquery.i18n.language.js index f905aa8f..4fdfed2d 100644 --- a/assets/webconfig/js/lib/jquery.i18n/jquery.i18n.language.js +++ b/assets/webconfig/js/lib/jquery.i18n/jquery.i18n.language.js @@ -384,7 +384,7 @@ // Check if the restore to Latin number flag is set: if ( integer ) { - if ( parseFloat( num, 10 ) === num ) { + if ( parseFloat( num, 10 ) === num ) { //lgtm [js/superfluous-trailing-arguments] return num; } @@ -405,7 +405,7 @@ } } - return integer ? parseFloat( convertedNumber, 10 ) : convertedNumber; + return integer ? parseFloat( convertedNumber, 10 ) : convertedNumber; //lgtm [js/superfluous-trailing-arguments] }, /** diff --git a/assets/webconfig/js/ui_utils.js b/assets/webconfig/js/ui_utils.js index 8fa72726..74a27061 100644 --- a/assets/webconfig/js/ui_utils.js +++ b/assets/webconfig/js/ui_utils.js @@ -889,7 +889,11 @@ function createTableRow(list, head, align) { if (align) el.style.verticalAlign = "middle"; - el.innerHTML = list[i]; + var purifyConfig = { + ADD_TAGS: ['button'], + ADD_ATTR: ['onclick'] + }; + el.innerHTML = DOMPurify.sanitize(list[i], purifyConfig); row.appendChild(el); } return row; diff --git a/doc/logo_dark.png b/doc/logo_dark.png index f8bbe7e1..f99f3afb 100644 Binary files a/doc/logo_dark.png and b/doc/logo_dark.png differ diff --git a/doc/logo_light.png b/doc/logo_light.png index 779ac17a..1e34f346 100644 Binary files a/doc/logo_light.png and b/doc/logo_light.png differ