From 68940e87f99d245f752f354b35f1f250a663d682 Mon Sep 17 00:00:00 2001 From: Kobe Date: Sat, 14 Jun 2025 14:45:41 +0200 Subject: [PATCH] instance launching (fake) --- routes/__pycache__/main.cpython-313.pyc | Bin 88952 -> 89590 bytes routes/main.py | 12 +- templates/main/instances.html | 228 +++++++++++++++- templates/main/launch_progress.html | 344 ++++++++++++++++++++++++ 4 files changed, 571 insertions(+), 13 deletions(-) create mode 100644 templates/main/launch_progress.html diff --git a/routes/__pycache__/main.cpython-313.pyc b/routes/__pycache__/main.cpython-313.pyc index 4e8d6e657a25d89d97a50c039445032cf8a8690c..26e83816e2e3016e09964383d11e25988eee673c 100644 GIT binary patch delta 505 zcmeydjrH4ZR=&@?yj%=G@Fv$cW4GK!zJn~BPk;h(>Tw!VC(nx$pZuQXHlxO5MON|2 z^Sd}Fzh)I>)Y#0(=FA8bbY)-2s$s$yEHRm%Q+6^3M;N2}7Jek83 zC~%U)aS|KLW*qk2uc zOhAKufX*wr0#skD3DU&qqcmB-hjqGg5ThuU7f^u$NNUG+ry#~wHnR^bPK>PHj2}Fh z7}$8*V;f^H2q5 aELRNBP*9K*Z=Aj_ig5#Hi6o;9*lhq{<%~f9 delta 259 zcmeyioAt*wR=&@?yj%=GpmE77Lq&EY-$546NkD-(wK(;ulRw0XPkzsGn^AqTBCGi1 zJW0;UuUSPI)i*P;IWqzUUD+41s+%wdOHAhHl%34M5yq%CxpA-D=%X^dFoaQ@%bkgVK>;M(xqVUyV=Ei`M;0eWR&U1bzR`>)7&SoBMV>(U rB3lq)1te~9*yQG?l;)(`6-5GNf#xz4Z<=l!%ea9nOOnx>5v&pbr*lI! diff --git a/routes/main.py b/routes/main.py index e568619..6f84a29 100644 --- a/routes/main.py +++ b/routes/main.py @@ -1671,4 +1671,14 @@ def init_routes(main_bp): return jsonify({'error': f'Connection failed: {response.json().get("message", "Unknown error")}'}), 400 except Exception as e: - return jsonify({'error': f'Connection failed: {str(e)}'}), 400 \ No newline at end of file + return jsonify({'error': f'Connection failed: {str(e)}'}), 400 + + @main_bp.route('/instances/launch-progress') + @login_required + @require_password_change + def launch_progress(): + if not os.environ.get('MASTER', 'false').lower() == 'true': + flash('This page is only available in master instances.', 'error') + return redirect(url_for('main.dashboard')) + + return render_template('main/launch_progress.html') \ No newline at end of file diff --git a/templates/main/instances.html b/templates/main/instances.html index e5c8afc..9cc2a95 100644 --- a/templates/main/instances.html +++ b/templates/main/instances.html @@ -315,9 +315,25 @@
Port Configuration
- + -
Ports below 1024 are reserved for system use. Suggested port: 3000
+
Ports below 1024 are reserved for system use. Ports are automatically assigned by the system but you can change it if you want.
+
+
+ +
+
+ https:// + + +
+
+ +
Enter the domain names where your instance will be accessible
@@ -367,12 +383,36 @@
-

Launch

-

Ready to launch your instance!

+
+ +

Ready to Launch!

+

Review your instance configuration before launching

+ +
+
+
Instance Configuration
+
+
+

Repository:

+

Branch:

+

Company:

+
+
+

Port:

+

Web Addresses:

+
+
+
+
+ + +
-