From 215e24ffe07223e3d6ffd3edb056103e2d258971 Mon Sep 17 00:00:00 2001 From: Dobin Date: Fri, 8 Mar 2024 11:09:31 +0000 Subject: [PATCH] refactor: make nicer ui, web, log --- app/static/styles.css | 14 +++++++- app/storage.py | 6 ---- app/templates/files.html | 8 ++--- app/templates/project.html | 35 +++++++++++++------ app/templates/project_add_get.html | 1 - app/views.py | 56 ++++++------------------------ log.py | 5 ++- model/project.py | 1 + pe/derbackdoorer.py | 4 +-- pe/superpe.py | 2 -- web.py | 2 ++ 11 files changed, 60 insertions(+), 74 deletions(-) diff --git a/app/static/styles.css b/app/static/styles.css index eb9e5fd..57afa03 100644 --- a/app/static/styles.css +++ b/app/static/styles.css @@ -63,4 +63,16 @@ max-width: 40em; width: 40em; text-align: left; - } \ No newline at end of file + } + + + .nav-item .btn { + margin-bottom: 5px; /* Add some space between the buttons */ + } + + .custom-line { + border-top: 1px solid #7e7e7e; /* Create a solid line */ + width: 100%; /* Span the full width of the container */ + margin: 20px 0; /* Add some vertical spacing */ + } + \ No newline at end of file diff --git a/app/storage.py b/app/storage.py index e631708..036dd37 100644 --- a/app/storage.py +++ b/app/storage.py @@ -25,18 +25,12 @@ class Storage(): self.save_data() def get_data(self): - print("Read data") with open("app/data.pickle", "rb") as f: data = f.read() data = pickle.loads(data) - - for project in data: - print(" {}".format(project.name)) - return data def save_data(self): - print("Save data") with open("app/data.pickle", "wb") as f: f.write(pickle.dumps(self.data)) diff --git a/app/templates/files.html b/app/templates/files.html index 4acf4e1..cafc46d 100644 --- a/app/templates/files.html +++ b/app/templates/files.html @@ -1,12 +1,12 @@
-
-