Integrate Obfuscator file picker into Contracts
Deploy contracts-flask / validate (push) Canceled after 0s

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
Repinoid
2026-10-30 10:24:23 +03:00
co-authored by Copilot
parent 83002b9644
commit 6e6fc4db8e
41 changed files with 3746 additions and 1485 deletions
+10
View File
@@ -9,6 +9,10 @@ _UPLOAD_FRONTEND = os.path.join(
os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))),
"upload", "frontend",
)
_FILE_PICKER_DIST = os.path.join(
os.path.dirname(os.path.dirname(_UPLOAD_FRONTEND)),
"site", "static", "dist",
)
@pages_bp.route("/")
@@ -25,3 +29,9 @@ def architect():
def upload_frontend(filename):
"""Отдать статику ES-модулей upload/frontend (для клиентского ZIP)."""
return send_from_directory(_UPLOAD_FRONTEND, filename)
@pages_bp.route("/file-picker/<path:filename>")
def file_picker_bundle(filename):
"""Отдать собранный picker bundle."""
return send_from_directory(_FILE_PICKER_DIST, filename)