Initial eth_hedge_sim: P0 market, auth UI, one-click deploy.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
dekun
2026-07-24 16:33:25 +08:00
commit e51f357b48
49 changed files with 4783 additions and 0 deletions
+38
View File
@@ -0,0 +1,38 @@
import { FormEvent, useState } from "react";
import { getApiBase, setApiBase } from "../api/client";
export default function SettingsPage() {
const [apiBase, setApi] = useState(getApiBase());
const [saved, setSaved] = useState(false);
function onSave(e: FormEvent) {
e.preventDefault();
setApiBase(apiBase);
setSaved(true);
window.setTimeout(() => setSaved(false), 1500);
}
return (
<div className="card" style={{ maxWidth: 560 }}>
<h2 style={{ marginTop: 0 }}></h2>
<p style={{ color: "var(--muted)" }}>
API 5155
</p>
<form onSubmit={onSave}>
<div className="field">
<label htmlFor="api">API </label>
<input
id="api"
className="mono"
value={apiBase}
onChange={(e) => setApi(e.target.value)}
/>
</div>
<button className="btn" type="submit">
</button>
{saved ? <span style={{ marginLeft: 10, color: "var(--up)" }}></span> : null}
</form>
</div>
);
}