feat: add web layer (FastAPI + worker)

This commit is contained in:
hangshuo652
2026-05-24 12:52:20 +08:00
parent 818e81269c
commit 331b38eac1
8 changed files with 218 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
<!DOCTYPE html>
<html><head><meta charset="utf-8"><title>COBOL→Java Verify</title>
<link rel="stylesheet" href="/static/style.css"></head><body>
<div class="container">
<h1>COBOL→Java Migration Verification</h1>
<form id="verify-form" enctype="multipart/form-data">
<label>COPYBOOK:<input type="file" name="copybook" accept=".cpy,.cbl,.copy" required></label>
<label>COBOL source:<input type="file" name="cobol_src" accept=".cbl" required></label>
<label>Java source (dir with pom.xml):<input type="file" name="java_src" webkitdirectory required></label>
<label>Mapping YAML:<input type="file" name="mapping" accept=".yaml,.yml" required></label>
<label>Runner:<select name="runner"><option value="native">Native Java</option><option value="spark">Spark Java</option></select></label>
<button type="submit">Verify</button>
</form>
<div id="status"></div>
<div id="result"></div>
</div>
<script src="/static/script.js"></script>
</body></html>