From babcece4d46dc04858165fd7e5d1fcd7144885ab Mon Sep 17 00:00:00 2001 From: Alexander_Kabui Date: Thu, 8 Aug 2024 14:27:22 +0300 Subject: Add commit preview page. --- gn2/wqflask/templates/gn_editor.html | 4 +- gn2/wqflask/templates/gn_editor_settings.html | 127 +++++++++++++------------- gn2/wqflask/views.py | 10 +- 3 files changed, 73 insertions(+), 68 deletions(-) diff --git a/gn2/wqflask/templates/gn_editor.html b/gn2/wqflask/templates/gn_editor.html index ab587715..f2f57cec 100644 --- a/gn2/wqflask/templates/gn_editor.html +++ b/gn2/wqflask/templates/gn_editor.html @@ -17,8 +17,8 @@
diff --git a/gn2/wqflask/templates/gn_editor_settings.html b/gn2/wqflask/templates/gn_editor_settings.html index 466e18c3..769fe23d 100644 --- a/gn2/wqflask/templates/gn_editor_settings.html +++ b/gn2/wqflask/templates/gn_editor_settings.html @@ -1,100 +1,99 @@

Select a theme

-
+
-
- +
+
-
-
+
+
-
+
-
+
-
-
-

Select Font Size

- - 16 px -
+
+
+

Select Font Size

+ + 16 px +
-
-
-

Select Wrap Option:

+
+
+

Select Wrap Option:

- - -
-
- - -
-
-
-

Cursor Styles:

+ + +
- - -
-
- - -
-
- - + + +
+
+

Cursor Styles:

+
+ + +
+
+ + +
- - + + +
+
+ + +
-

-
-
- +
+
+ +
-
{% block js %} {% endblock %} - diff --git a/gn2/wqflask/views.py b/gn2/wqflask/views.py index e08ccd8e..5d2bdfb2 100644 --- a/gn2/wqflask/views.py +++ b/gn2/wqflask/views.py @@ -315,11 +315,17 @@ def edit_gn_file(): return render_template("gn_editor.html") -@app.route("/editor/commit", methods=["GET"]) -def commit_page(): +@app.route("/editor/settings", methods=["GET"]) +def editor_settings(): return render_template("gn_editor_settings.html") +@app.route("/editor/commit", methods=["GET", "POST"]) +def commit_editor(): + if request.method == "GET": + return render_template("gn_editor_commit.html") + + @app.route("/gnqna/hist/", methods=["GET"]) @require_oauth2 def get_hist_titles(): -- cgit 1.4.1