From 6b2ef2c4516e661631ea97d380998889a593b260 Mon Sep 17 00:00:00 2001 From: LukasDoesDev Date: Wed, 20 Jan 2021 23:10:25 +0200 Subject: [PATCH] Remove unnecessary logs, update logs to have more information, add resizing to file editor --- app/classes/shared/helpers.py | 3 - app/classes/web/ajax_handler.py | 75 +++++++++---------- .../templates/panel/server_files.html | 7 +- 3 files changed, 43 insertions(+), 42 deletions(-) diff --git a/app/classes/shared/helpers.py b/app/classes/shared/helpers.py index 6fa08888..f0da09b7 100644 --- a/app/classes/shared/helpers.py +++ b/app/classes/shared/helpers.py @@ -471,9 +471,7 @@ class Helpers: @staticmethod def generate_tree(folder, output=""): for raw_filename in os.listdir(folder): - print(raw_filename) filename = html.escape(raw_filename) - print(filename) rel = os.path.join(folder, raw_filename) if os.path.isdir(rel): output += \ @@ -485,7 +483,6 @@ class Helpers: output += helper.generate_tree(rel) output += '\n' else: - console.debug('os.path.isdir(rel): "{}", rel: "{}"'.format(os.path.isdir(rel), rel)) output += """
  • Editing file -
    file_contents
    +
    file_contents

    @@ -217,6 +217,11 @@ editor.setTheme('ace/theme/dracula'); editor.session.setUseSoftTabs(true); + // mouseup = css resize end + document.addEventListener("mouseup", function(e){ + editor.resize(); + }); + let extensionChanges = [ { regex: /^js$/,