From 54bfcd32e141d7cece1b4041b6ff111839b7c0b5 Mon Sep 17 00:00:00 2001 From: htmltiger <1429451+htmltiger@users.noreply.github.com> Date: Sat, 12 Mar 2022 01:17:31 +0000 Subject: [PATCH 1/2] subdir depth config added --- config-editor-card.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/config-editor-card.js b/config-editor-card.js index b28dd4e..3b21cd0 100644 --- a/config-editor-card.js +++ b/config-editor-card.js @@ -1,4 +1,4 @@ -console.info("Config Editor 4.0"); +console.info("Config Editor 4.1"); const LitElement = window.LitElement || Object.getPrototypeOf(customElements.get("hui-masonry-view") ); const html = LitElement.prototype.html; const css = LitElement.prototype.css; @@ -179,7 +179,7 @@ localSet(k,v){ cmd(action, data, file){ return this._hass.callWS({type: "config_editor/ws", action: action, - data: data, file: file, ext: this.edit.ext}); + data: data, file: file, ext: this.edit.ext, depth: this.edit.depth}); } saveList(){ @@ -312,7 +312,7 @@ getCardSize() { } setConfig(config) { - this.edit = {file: '', hidefooter: false, readonly: false, basic: false, size: 0, ext: '', orgCode: '', coder:1, ...config}; + this.edit = {file: '', hidefooter: false, readonly: false, basic: false, size: 0, depth: 2, ext: '', orgCode: '', coder:1, ...config}; if(this.edit.file){ const f=this.edit.file.split('.')[1]; if(f){ From 6c8b99ae10bf00187e9e88208bed88015da42ba8 Mon Sep 17 00:00:00 2001 From: htmltiger <1429451+htmltiger@users.noreply.github.com> Date: Sat, 12 Mar 2022 01:20:37 +0000 Subject: [PATCH 2/2] Update README.md --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index ddebb4d..9b4e425 100644 --- a/README.md +++ b/README.md @@ -70,5 +70,6 @@ choose the first blank in dropdown menu and type some text and hit Save or ctrl+ | hidefooter | `false` | | basic | `false` | Force basic editor | size | `100` | font size +| depth | `2` | subfolder depth 0 or more Please backup your files before using as there is no undo.