diff --git a/app.py b/app.py index c5ecc7d..176aeed 100644 --- a/app.py +++ b/app.py @@ -1095,6 +1095,15 @@ def r_update_check(): return jsonify(ok=True) +@app.route('/api/system/reboot', methods=['POST']) +def r_system_reboot(): + threading.Thread(target=lambda: ( + __import__('time').sleep(1), + subprocess.Popen(['reboot']) + ), daemon=True).start() + return jsonify(ok=True) + + @app.route('/api/update/install', methods=['POST']) def r_update_install(): try: @@ -1239,7 +1248,7 @@ body{background:var(--bg);color:var(--txt);font-family:-apple-system,BlinkMacSys .tog input{accent-color:var(--acc);width:16px;height:16px;cursor:pointer;flex-shrink:0} .tog span{line-height:1.35} .flash{font-size:.78rem;min-height:1rem;padding:.2rem 0} -.flash.ok{color:var(--grn)}.flash.err{color:var(--red)} +.flash.ok{color:var(--grn)}.flash.err{color:var(--red)}.flash.warn{color:#f4a332} /* ── Port Slots ── */ /* port-pair: immer echtes 1fr 1fr, unabhängig vom Explorer */ @@ -1609,6 +1618,19 @@ body{background:var(--bg);color:var(--txt);font-family:-apple-system,BlinkMacSys + +