Skip to content

Commit 8f27ae3

Browse files
committed
Refactor "jstreetable.js" and update the renderer
- Remove redundant and not-working customization that modifies the "jstree-table-wrapper" style. "jstreetable.js" doesn't provide any minimum version so that MFR has to use the full one and refactor it with "eslint" and add docstr. - Minor updates for the renderer: - Enable cache which was disabled for local test - Update column width for file size - Set `is_folder` optional (`True` as default) - Use closed-folder icon - Remove unused assets
1 parent dcafb11 commit 8f27ae3

File tree

7 files changed

+1051
-1045
lines changed

7 files changed

+1051
-1045
lines changed

mfr/extensions/zip/render.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def file_required(self):
2121

2222
@property
2323
def cache_result(self):
24-
return False
24+
return True
2525

2626
def render(self):
2727

@@ -99,7 +99,7 @@ def obj_list_to_tree(self, obj_list: list) -> List[dict]:
9999

100100
return [tree_root, ]
101101

102-
def update_node_with_attributes(self, node: dict, obj: ZipInfo, is_folder: bool) -> None:
102+
def update_node_with_attributes(self, node: dict, obj: ZipInfo, is_folder: bool=True) -> None:
103103
"""Update details (date, size, icon, etc.) of the node with the given object.
104104
105105
:param node: the node to update
-499 Bytes
Binary file not shown.
-662 Bytes
Binary file not shown.
Binary file not shown.
-80 Bytes
Loading

0 commit comments

Comments
 (0)