From 096e313a85c79486c7857477d90b24119d394fae Mon Sep 17 00:00:00 2001 From: Tom Wallroth Date: Wed, 10 Apr 2024 23:30:26 +0200 Subject: [PATCH 1/4] fileman: allow managing files in the app loader --- apps/fileman/manage_files.html | 77 ++++++++++++++++++++++++++++++++++ apps/fileman/metadata.json | 1 + 2 files changed, 78 insertions(+) create mode 100644 apps/fileman/manage_files.html diff --git a/apps/fileman/manage_files.html b/apps/fileman/manage_files.html new file mode 100644 index 000000000..719a188d6 --- /dev/null +++ b/apps/fileman/manage_files.html @@ -0,0 +1,77 @@ + + + + + + + + +
+ + + +
Stats
{{s[0]}}{{s[1]}}
+

Files

+
+ + +
+ + + + + + + + + +
Filenameshowdelete
{{file}}
+
+ + + + diff --git a/apps/fileman/metadata.json b/apps/fileman/metadata.json index f5589e396..52f2fd06d 100644 --- a/apps/fileman/metadata.json +++ b/apps/fileman/metadata.json @@ -7,6 +7,7 @@ "icon": "icons8-filing-cabinet-48.png", "tags": "tools", "supports": ["BANGLEJS","BANGLEJS2"], + "interface": "manage_files.html", "readme": "README.md", "storage": [ {"name":"fileman.app.js","url":"fileman.app.js"}, From 53118c28256a9539c2701520589e9c1e65502362 Mon Sep 17 00:00:00 2001 From: Tom Wallroth Date: Wed, 10 Apr 2024 23:31:14 +0200 Subject: [PATCH 2/4] fileman: version bump --- apps/fileman/ChangeLog | 1 + apps/fileman/metadata.json | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/fileman/ChangeLog b/apps/fileman/ChangeLog index f5af86229..e914bca72 100644 --- a/apps/fileman/ChangeLog +++ b/apps/fileman/ChangeLog @@ -1,3 +1,4 @@ 0.01: New app! 0.02: Improve handling of large amounts of files (fix #579) 0.03: Update RegExp use (Was using backreference instead of character code) +0.04: Allow managing files in the app loader diff --git a/apps/fileman/metadata.json b/apps/fileman/metadata.json index 52f2fd06d..7ee2f3c94 100644 --- a/apps/fileman/metadata.json +++ b/apps/fileman/metadata.json @@ -2,7 +2,7 @@ "id": "fileman", "name": "File manager", "shortName": "FileManager", - "version": "0.03", + "version": "0.04", "description": "Simple file manager, allows user to examine watch storage and display, load or delete individual files", "icon": "icons8-filing-cabinet-48.png", "tags": "tools", From 161d965658c6e1bca594000ae26da687150188c2 Mon Sep 17 00:00:00 2001 From: Tom Wallroth Date: Fri, 19 Apr 2024 13:48:58 +0200 Subject: [PATCH 3/4] removed version bump, fixed reloading files after erasure --- apps/fileman/ChangeLog | 2 +- apps/fileman/manage_files.html | 7 ++++--- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/apps/fileman/ChangeLog b/apps/fileman/ChangeLog index e914bca72..cc1456b31 100644 --- a/apps/fileman/ChangeLog +++ b/apps/fileman/ChangeLog @@ -1,4 +1,4 @@ 0.01: New app! 0.02: Improve handling of large amounts of files (fix #579) 0.03: Update RegExp use (Was using backreference instead of character code) -0.04: Allow managing files in the app loader + diff --git a/apps/fileman/manage_files.html b/apps/fileman/manage_files.html index 719a188d6..8501d468a 100644 --- a/apps/fileman/manage_files.html +++ b/apps/fileman/manage_files.html @@ -60,9 +60,10 @@ }, deleteFile: function (file) { if(confirm(`Really delete ${file}?`)) { - Puck.eval(`require("Storage").erase("${file}")`); - this.loadFiles(); - this.getStats(); + Puck.eval(`require("Storage").erase("${file}")`, () => { + this.loadFiles(); + this.getStats(); + }); } }, showFile: function (file) { From fd071bb9f5b2abecf306208787d6256992130ab8 Mon Sep 17 00:00:00 2001 From: Tom Wallroth Date: Fri, 19 Apr 2024 14:03:44 +0200 Subject: [PATCH 4/4] reverted version bump in fileman metadata.json --- apps/fileman/metadata.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/fileman/metadata.json b/apps/fileman/metadata.json index 7ee2f3c94..52f2fd06d 100644 --- a/apps/fileman/metadata.json +++ b/apps/fileman/metadata.json @@ -2,7 +2,7 @@ "id": "fileman", "name": "File manager", "shortName": "FileManager", - "version": "0.04", + "version": "0.03", "description": "Simple file manager, allows user to examine watch storage and display, load or delete individual files", "icon": "icons8-filing-cabinet-48.png", "tags": "tools",