From 99b04dbca1926188d94f4ca647beed4e14e27e56 Mon Sep 17 00:00:00 2001 From: LukasDoesDev Date: Sat, 12 Dec 2020 01:57:39 +0200 Subject: [PATCH 1/3] Login looks a tiny bit better :) --- app/frontend/templates/public/login.html | 36 ++++++++++++++++++++---- 1 file changed, 30 insertions(+), 6 deletions(-) diff --git a/app/frontend/templates/public/login.html b/app/frontend/templates/public/login.html index c5c8ad05..ea151ed2 100755 --- a/app/frontend/templates/public/login.html +++ b/app/frontend/templates/public/login.html @@ -26,26 +26,50 @@
-
+ +
{% raw xsrf_form_html() %}
- +
- +
- +
From 0ac3f15b8b79ef559196a6cd0b7ee507b4970616 Mon Sep 17 00:00:00 2001 From: LukasDoesDev Date: Sat, 12 Dec 2020 01:59:52 +0200 Subject: [PATCH 2/3] Start working on the file explorer UI. W.I.P. :construction: --- app/classes/web/panel_handler.py | 6 + app/frontend/templates/panel/file_edit.html | 190 +++++++++++++++++++ app/frontend/templates/panel/files_menu.html | 112 +++++++++++ 3 files changed, 308 insertions(+) create mode 100644 app/frontend/templates/panel/file_edit.html create mode 100644 app/frontend/templates/panel/files_menu.html diff --git a/app/classes/web/panel_handler.py b/app/classes/web/panel_handler.py index d14d6bcc..fcf5c192 100644 --- a/app/classes/web/panel_handler.py +++ b/app/classes/web/panel_handler.py @@ -59,6 +59,12 @@ class PanelHandler(BaseHandler): elif page == 'contribute': template = "panel/contribute.html" + elif page == 'file_edit': + template = "panel/file_edit.html" + + elif page == 'files_menu': + template = "panel/files_menu.html" + elif page == "remove_server": server_id = self.get_argument('id', None) server_data = controller.get_server_data(server_id) diff --git a/app/frontend/templates/panel/file_edit.html b/app/frontend/templates/panel/file_edit.html new file mode 100644 index 00000000..d6f40e89 --- /dev/null +++ b/app/frontend/templates/panel/file_edit.html @@ -0,0 +1,190 @@ +{% extends ../base.html %} + +{% block meta %} + +{% end %} + +{% block title %}Crafty Controller - Editing File -< name >- in server -< server name >- (-< server path id >-){% end %} + +{% block content %} + +
+ + +
+
+ +
+ +
+ + +
+ +
+
+
+ + Back + + +

+ +
-< file_contents >-
+ +
+
+
+
+ + +
+ + +{% end %} + +{% block js %} + + + + +{% end %} \ No newline at end of file diff --git a/app/frontend/templates/panel/files_menu.html b/app/frontend/templates/panel/files_menu.html new file mode 100644 index 00000000..0f883903 --- /dev/null +++ b/app/frontend/templates/panel/files_menu.html @@ -0,0 +1,112 @@ +{% extends ../base.html %} + +{% block meta %} + +{% end %} + +{% block title %}Crafty Controller - Looking at files in server -< server name >- (-< server path id >-){% end %} + +{% block content %} + +
+ + +
+
+ +
+ +
+ + +
+ +
+
+
+ + + +
+
+
+
+ + +
+ + +{% end %} + +{% block js %} + + + +{% end %} \ No newline at end of file From eb1b28473fb9d9396b0c5129b56fd4b2dbe9c0fc Mon Sep 17 00:00:00 2001 From: LukasDoesDev Date: Sat, 12 Dec 2020 18:44:40 +0200 Subject: [PATCH 3/3] See issue #6 --- app/frontend/templates/panel/server_term.html | 50 ++++++++++++++++++- 1 file changed, 48 insertions(+), 2 deletions(-) diff --git a/app/frontend/templates/panel/server_term.html b/app/frontend/templates/panel/server_term.html index 488e08bb..5c7a2390 100644 --- a/app/frontend/templates/panel/server_term.html +++ b/app/frontend/templates/panel/server_term.html @@ -72,13 +72,21 @@

-
- +
+
+ +
+ + + +
+ +
@@ -96,6 +104,44 @@ {% block js %}