diff --git a/src/main/resources/static/javascript/panel-script.js b/src/main/resources/static/javascript/panel-script.js index 09ac034..7296594 100644 --- a/src/main/resources/static/javascript/panel-script.js +++ b/src/main/resources/static/javascript/panel-script.js @@ -1,3 +1,7 @@ +var editor = ace.edit("script_editor"); +editor.setTheme("ace/theme/github"); +editor.session.setMode("ace/mode/lua"); + function str_toHex(s) { // utf8 to latin1 var s = unescape(encodeURIComponent(s)); @@ -104,7 +108,8 @@ function form_actions(jobj) { get_text_api(jobj.textDescId, function(t) { $("#action_desc_text").val(t); }); - $("#action_body_text").val(jobj.scriptBody); + //$("#action_body_text").val(jobj.scriptBody); + editor.setValue(jobj.scriptBody); } function show_modal_edit(jobj, oid) { diff --git a/src/main/resources/templates/fragments/footer.html b/src/main/resources/templates/fragments/footer.html index f89635c..b412bdf 100644 --- a/src/main/resources/templates/fragments/footer.html +++ b/src/main/resources/templates/fragments/footer.html @@ -1,5 +1,4 @@
-
\ No newline at end of file diff --git a/src/main/resources/templates/fragments/header.html b/src/main/resources/templates/fragments/header.html index 7ea8878..2373360 100644 --- a/src/main/resources/templates/fragments/header.html +++ b/src/main/resources/templates/fragments/header.html @@ -1,87 +1,7 @@ - - - - + \ No newline at end of file diff --git a/src/main/resources/templates/login.html b/src/main/resources/templates/login.html index bb2adfa..c49bb58 100644 --- a/src/main/resources/templates/login.html +++ b/src/main/resources/templates/login.html @@ -1,15 +1,11 @@ - + - - - -
- -
-
+ + +
+
+

+
-
-

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

+

+ Not a member? + +

-

© alterdekim 2023

- -
+

© alterdekim 2023-2024

+ +
\ No newline at end of file diff --git a/src/main/resources/templates/panel.html b/src/main/resources/templates/panel.html index 7edc77a..07f6eb6 100644 --- a/src/main/resources/templates/panel.html +++ b/src/main/resources/templates/panel.html @@ -321,13 +321,8 @@ - - +